diff --git a/forge/sterling/build/assets/manifest.webapp b/forge/sterling/build/assets/manifest.webapp index 41e880f0..2f59ae95 100644 --- a/forge/sterling/build/assets/manifest.webapp +++ b/forge/sterling/build/assets/manifest.webapp @@ -1,5 +1,5 @@ { - "version": "2.3.0", + "version": "2.3.1", "name": "sterling-layout", "description": "Spytial Sterling is a fork of the Sterling visualizer that encodes spatial layout.", "icons": { diff --git a/forge/sterling/build/assets/yandex-browser-manifest.json b/forge/sterling/build/assets/yandex-browser-manifest.json index 8a95a081..aacf1b67 100644 --- a/forge/sterling/build/assets/yandex-browser-manifest.json +++ b/forge/sterling/build/assets/yandex-browser-manifest.json @@ -1,5 +1,5 @@ { - "version": "2.3.0", + "version": "2.3.1", "api_version": 1, "layout": { "logo": "yandex-browser-50x50.png", diff --git a/forge/sterling/build/vendor/spytial-core-complete.global.js b/forge/sterling/build/vendor/spytial-core-complete.global.js index 9b511ead..239e15a6 100644 --- a/forge/sterling/build/vendor/spytial-core-complete.global.js +++ b/forge/sterling/build/vendor/spytial-core-complete.global.js @@ -1,2 +1,2 @@ /*! For license information please see spytial-core-complete.global.js.LICENSE.txt */ -var CndCore=function(t){"use strict";var e,r,n,i=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=t=>{throw TypeError(t)},h=(e=function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):e),d=(t,e)=>()=>(t&&(e=t(t=0)),e),p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),f=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},g=(t,e,r)=>(r=null!=t?i(l(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of a(e))!u.call(t,r)&&undefined!==r&&o(t,r,{get:()=>e[r],enumerable:!(n=s(e,r))||n.enumerable});return t})(t&&t.__esModule?r:o(r,"default",{value:t,enumerable:!0}),t)),m=(t,e,r)=>((t,e,r)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),y=p(((t,e)=>{e.exports=function(){this.__data__=[],this.size=0}})),_=p(((t,e)=>{e.exports=function(t,e){return t===e||t!=t&&e!=e}})),v=p(((t,e)=>{var r=_();e.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}})),x=p(((t,e)=>{var r=v(),n=Array.prototype.splice;e.exports=function(t){var e=this.__data__,i=r(e,t);return!(i<0||(i==e.length-1?e.pop():n.call(e,i,1),--this.size,0))}})),b=p(((t,e)=>{var r=v();e.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}})),T=p(((t,e)=>{var r=v();e.exports=function(t){return r(this.__data__,t)>-1}})),E=p(((t,e)=>{var r=v();e.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}})),O=p(((t,e)=>{var r=y(),n=x(),i=b(),o=T(),s=E();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=O();e.exports=function(){this.__data__=new r,this.size=0}})),N=p(((t,e)=>{e.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}})),A=p(((t,e)=>{e.exports=function(t){return this.__data__.get(t)}})),w=p(((t,e)=>{e.exports=function(t){return this.__data__.has(t)}})),R=p(((t,e)=>{var r="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=r})),C=p(((t,e)=>{var r=R(),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i})),L=p(((t,e)=>{var r=C().Symbol;e.exports=r})),I=p(((t,e)=>{var r=L(),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,s=r?r.toStringTag:void 0;e.exports=function(t){var e=i.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch{}var a=o.call(t);return n&&(e?t[s]=r:delete t[s]),a}})),k=p(((t,e)=>{var r=Object.prototype.toString;e.exports=function(t){return r.call(t)}})),D=p(((t,e)=>{var r=L(),n=I(),i=k(),o=r?r.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?n(t):i(t)}})),P=p(((t,e)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}})),M=p(((t,e)=>{var r=D(),n=P();e.exports=function(t){if(!n(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}})),j=p(((t,e)=>{var r=C()["__core-js_shared__"];e.exports=r})),K=p(((t,e)=>{var r=j(),n=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=function(t){return!!n&&n in t}})),U=p(((t,e)=>{var r=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return r.call(t)}catch{}try{return t+""}catch{}}return""}})),F=p(((t,e)=>{var r=M(),n=K(),i=P(),o=U(),s=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,h=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!i(t)||n(t))&&(r(t)?h:s).test(o(t))}})),$=p(((t,e)=>{e.exports=function(t,e){return t?.[e]}})),H=p(((t,e)=>{var r=F(),n=$();e.exports=function(t,e){var i=n(t,e);return r(i)?i:void 0}})),B=p(((t,e)=>{var r=H()(C(),"Map");e.exports=r})),q=p(((t,e)=>{var r=H()(Object,"create");e.exports=r})),G=p(((t,e)=>{var r=q();e.exports=function(){this.__data__=r?r(null):{},this.size=0}})),z=p(((t,e)=>{e.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}})),V=p(((t,e)=>{var r=q(),n=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;if(r){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(e,t)?e[t]:void 0}})),Y=p(((t,e)=>{var r=q(),n=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:n.call(e,t)}})),W=p(((t,e)=>{var r=q();e.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}})),X=p(((t,e)=>{var r=G(),n=z(),i=V(),o=Y(),s=W();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=X(),n=O(),i=B();e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}})),J=p(((t,e)=>{e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}})),Z=p(((t,e)=>{var r=J();e.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}})),tt=p(((t,e)=>{var r=Z();e.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}})),et=p(((t,e)=>{var r=Z();e.exports=function(t){return r(this,t).get(t)}})),rt=p(((t,e)=>{var r=Z();e.exports=function(t){return r(this,t).has(t)}})),nt=p(((t,e)=>{var r=Z();e.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}})),it=p(((t,e)=>{var r=Q(),n=tt(),i=et(),o=rt(),s=nt();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=O(),n=B(),i=it();e.exports=function(t,e){var o=this.__data__;if(o instanceof r){var s=o.__data__;if(!n||s.length<199)return s.push([t,e]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(t,e),this.size=o.size,this}})),st=p(((t,e)=>{var r=O(),n=S(),i=N(),o=A(),s=w(),a=ot();function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l})),at=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{var r=H(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}}();e.exports=n})),ut=p(((t,e)=>{var r=lt();e.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}})),ct=p(((t,e)=>{var r=ut(),n=_(),i=Object.prototype.hasOwnProperty;e.exports=function(t,e,o){var s=t[e];(!i.call(t,e)||!n(s,o)||void 0===o&&!(e in t))&&r(t,e,o)}})),ht=p(((t,e)=>{var r=ct(),n=ut();e.exports=function(t,e,i,o){var s=!i;i||(i={});for(var a=-1,l=e.length;++a{e.exports=function(t,e){for(var r=-1,n=Array(t);++r{e.exports=function(t){return null!=t&&"object"==typeof t}})),ft=p(((t,e)=>{var r=D(),n=pt();e.exports=function(t){return n(t)&&"[object Arguments]"==r(t)}})),gt=p(((t,e)=>{var r=ft(),n=pt(),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(t){return n(t)&&o.call(t,"callee")&&!s.call(t,"callee")};e.exports=a})),mt=p(((t,e)=>{var r=Array.isArray;e.exports=r})),yt=p(((t,e)=>{e.exports=function(){return!1}})),_t=p(((t,e)=>{var r=C(),n=yt(),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=(s?s.isBuffer:void 0)||n;e.exports=a})),vt=p(((t,e)=>{var r=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t{e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}})),bt=p(((t,e)=>{var r=D(),n=xt(),i=pt(),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(t){return i(t)&&n(t.length)&&!!o[r(t)]}})),Tt=p(((t,e)=>{e.exports=function(t){return function(e){return t(e)}}})),Et=p(((t,e)=>{var r=R(),n="object"==typeof t&&t&&!t.nodeType&&t,i=n&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})),Ot=p(((t,e)=>{var r=bt(),n=Tt(),i=Et(),o=i&&i.isTypedArray,s=o?n(o):r;e.exports=s})),St=p(((t,e)=>{var r=dt(),n=gt(),i=mt(),o=_t(),s=vt(),a=Ot(),l=Object.prototype.hasOwnProperty;e.exports=function(t,e){var u=i(t),c=!u&&n(t),h=!u&&!c&&o(t),d=!u&&!c&&!h&&a(t),p=u||c||h||d,f=p?r(t.length,String):[],g=f.length;for(var m in t)(e||l.call(t,m))&&(!p||!("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g)))&&f.push(m);return f}})),Nt=p(((t,e)=>{var r=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}})),At=p(((t,e)=>{e.exports=function(t,e){return function(r){return t(e(r))}}})),wt=p(((t,e)=>{var r=At()(Object.keys,Object);e.exports=r})),Rt=p(((t,e)=>{var r=Nt(),n=wt(),i=Object.prototype.hasOwnProperty;e.exports=function(t){if(!r(t))return n(t);var e=[];for(var o in Object(t))i.call(t,o)&&"constructor"!=o&&e.push(o);return e}})),Ct=p(((t,e)=>{var r=M(),n=xt();e.exports=function(t){return null!=t&&n(t.length)&&!r(t)}})),Lt=p(((t,e)=>{var r=St(),n=Rt(),i=Ct();e.exports=function(t){return i(t)?r(t):n(t)}})),It=p(((t,e)=>{var r=ht(),n=Lt();e.exports=function(t,e){return t&&r(e,n(e),t)}})),kt=p(((t,e)=>{e.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}})),Dt=p(((t,e)=>{var r=P(),n=Nt(),i=kt(),o=Object.prototype.hasOwnProperty;e.exports=function(t){if(!r(t))return i(t);var e=n(t),s=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||s.push(a);return s}})),Pt=p(((t,e)=>{var r=St(),n=Dt(),i=Ct();e.exports=function(t){return i(t)?r(t,!0):n(t)}})),Mt=p(((t,e)=>{var r=ht(),n=Pt();e.exports=function(t,e){return t&&r(e,n(e),t)}})),jt=p(((t,e)=>{var r=C(),n="object"==typeof t&&t&&!t.nodeType&&t,i=n&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===n?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}})),Kt=p(((t,e)=>{e.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r{e.exports=function(){return[]}})),$t=p(((t,e)=>{var r=Ut(),n=Ft(),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return i.call(t,e)})))}:n;e.exports=s})),Ht=p(((t,e)=>{var r=ht(),n=$t();e.exports=function(t,e){return r(t,n(t),e)}})),Bt=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r{var r=At()(Object.getPrototypeOf,Object);e.exports=r})),Gt=p(((t,e)=>{var r=Bt(),n=qt(),i=$t(),o=Ft(),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=n(t);return e}:o;e.exports=s})),zt=p(((t,e)=>{var r=ht(),n=Gt();e.exports=function(t,e){return r(t,n(t),e)}})),Vt=p(((t,e)=>{var r=Bt(),n=mt();e.exports=function(t,e,i){var o=e(t);return n(t)?o:r(o,i(t))}})),Yt=p(((t,e)=>{var r=Vt(),n=$t(),i=Lt();e.exports=function(t){return r(t,i,n)}})),Wt=p(((t,e)=>{var r=Vt(),n=Gt(),i=Pt();e.exports=function(t){return r(t,i,n)}})),Xt=p(((t,e)=>{var r=H()(C(),"DataView");e.exports=r})),Qt=p(((t,e)=>{var r=H()(C(),"Promise");e.exports=r})),Jt=p(((t,e)=>{var r=H()(C(),"Set");e.exports=r})),Zt=p(((t,e)=>{var r=H()(C(),"WeakMap");e.exports=r})),te=p(((t,e)=>{var r=Xt(),n=B(),i=Qt(),o=Jt(),s=Zt(),a=D(),l=U(),u="[object Map]",c="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",f=l(r),g=l(n),m=l(i),y=l(o),_=l(s),v=a;(r&&v(new r(new ArrayBuffer(1)))!=p||n&&v(new n)!=u||i&&v(i.resolve())!=c||o&&v(new o)!=h||s&&v(new s)!=d)&&(v=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case f:return p;case g:return u;case m:return c;case y:return h;case _:return d}return e}),e.exports=v})),ee=p(((t,e)=>{var r=Object.prototype.hasOwnProperty;e.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}})),re=p(((t,e)=>{var r=C().Uint8Array;e.exports=r})),ne=p(((t,e)=>{var r=re();e.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}})),ie=p(((t,e)=>{var r=ne();e.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}})),oe=p(((t,e)=>{var r=/\w*$/;e.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}})),se=p(((t,e)=>{var r=L(),n=r?r.prototype:void 0,i=n?n.valueOf:void 0;e.exports=function(t){return i?Object(i.call(t)):{}}})),ae=p(((t,e)=>{var r=ne();e.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}})),le=p(((t,e)=>{var r=ne(),n=ie(),i=oe(),o=se(),s=ae();e.exports=function(t,e,a){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return n(t,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return i(t);case"[object Symbol]":return o(t)}}})),ue=p(((t,e)=>{var r=P(),n=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();e.exports=i})),ce=p(((t,e)=>{var r=ue(),n=qt(),i=Nt();e.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(n(t))}})),he=p(((t,e)=>{var r=te(),n=pt();e.exports=function(t){return n(t)&&"[object Map]"==r(t)}})),de=p(((t,e)=>{var r=he(),n=Tt(),i=Et(),o=i&&i.isMap,s=o?n(o):r;e.exports=s})),pe=p(((t,e)=>{var r=te(),n=pt();e.exports=function(t){return n(t)&&"[object Set]"==r(t)}})),fe=p(((t,e)=>{var r=pe(),n=Tt(),i=Et(),o=i&&i.isSet,s=o?n(o):r;e.exports=s})),ge=p(((t,e)=>{var r=st(),n=at(),i=ct(),o=It(),s=Mt(),a=jt(),l=Kt(),u=Ht(),c=zt(),h=Yt(),d=Wt(),p=te(),f=ee(),g=le(),m=ce(),y=mt(),_=_t(),v=de(),x=P(),b=fe(),T=Lt(),E=Pt(),O="[object Arguments]",S="[object Function]",N="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[N]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,e.exports=function t(e,w,R,C,L,I){var k,D=1&w,P=2&w,M=4&w;if(R&&(k=L?R(e,C,L,I):R(e)),void 0!==k)return k;if(!x(e))return e;var j=y(e);if(j){if(k=f(e),!D)return l(e,k)}else{var K=p(e),U=K==S||"[object GeneratorFunction]"==K;if(_(e))return a(e,D);if(K==N||K==O||U&&!L){if(k=P||U?{}:m(e),!D)return P?c(e,s(k,e)):u(e,o(k,e))}else{if(!A[K])return L?e:{};k=g(e,K,D)}}I||(I=new r);var F=I.get(e);if(F)return F;I.set(e,k),b(e)?e.forEach((function(r){k.add(t(r,w,R,r,e,I))})):v(e)&&e.forEach((function(r,n){k.set(n,t(r,w,R,n,e,I))}));var $=j?void 0:(M?P?d:h:P?E:T)(e);return n($||e,(function(r,n){$&&(r=e[n=r]),i(k,n,t(r,w,R,n,e,I))})),k}})),me=p(((t,e)=>{var r=ge();e.exports=function(t){return r(t,4)}})),ye=p(((t,e)=>{e.exports=function(t){return function(){return t}}})),_e=p(((t,e)=>{e.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),s=n(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===r(o[l],l,o))break}return e}}})),ve=p(((t,e)=>{var r=_e()();e.exports=r})),xe=p(((t,e)=>{var r=ve(),n=Lt();e.exports=function(t,e){return t&&r(t,e,n)}})),be=p(((t,e)=>{var r=Ct();e.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s{var r=xe(),n=be()(r);e.exports=n})),Ee=p(((t,e)=>{e.exports=function(t){return t}})),Oe=p(((t,e)=>{var r=Ee();e.exports=function(t){return"function"==typeof t?t:r}})),Se=p(((t,e)=>{var r=at(),n=Te(),i=Oe(),o=mt();e.exports=function(t,e){return(o(t)?r:n)(t,i(e))}})),Ne=p(((t,e)=>{e.exports=Se()})),Ae=p(((t,e)=>{var r=Te();e.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}})),we=p(((t,e)=>{e.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}})),Re=p(((t,e)=>{e.exports=function(t){return this.__data__.has(t)}})),Ce=p(((t,e)=>{var r=it(),n=we(),i=Re();function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{e.exports=function(t,e){return t.has(e)}})),ke=p(((t,e)=>{var r=Ce(),n=Le(),i=Ie();e.exports=function(t,e,o,s,a,l){var u=1&o,c=t.length,h=e.length;if(c!=h&&!(u&&h>c))return!1;var d=l.get(t),p=l.get(e);if(d&&p)return d==e&&p==t;var f=-1,g=!0,m=2&o?new r:void 0;for(l.set(t,e),l.set(e,t);++f{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}})),Pe=p(((t,e)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}})),Me=p(((t,e)=>{var r=L(),n=re(),i=_(),o=ke(),s=De(),a=Pe(),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(t,e,r,l,c,h,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new n(t),new n(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=s;case"[object Set]":var f=1&l;if(p||(p=a),t.size!=e.size&&!f)return!1;var g=d.get(t);if(g)return g==e;l|=2,d.set(t,e);var m=o(p(t),p(e),l,c,h,d);return d.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}})),je=p(((t,e)=>{var r=Yt(),n=Object.prototype.hasOwnProperty;e.exports=function(t,e,i,o,s,a){var l=1&i,u=r(t),c=u.length;if(c!=r(e).length&&!l)return!1;for(var h=c;h--;){var d=u[h];if(!(l?d in e:n.call(e,d)))return!1}var p=a.get(t),f=a.get(e);if(p&&f)return p==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=l;++h{var r=st(),n=ke(),i=Me(),o=je(),s=te(),a=mt(),l=_t(),u=Ot(),c="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(t,e,f,g,m,y){var _=a(t),v=a(e),x=_?h:s(t),b=v?h:s(e),T=(x=x==c?d:x)==d,E=(b=b==c?d:b)==d,O=x==b;if(O&&l(t)){if(!l(e))return!1;_=!0,T=!1}if(O&&!T)return y||(y=new r),_||u(t)?n(t,e,f,g,m,y):i(t,e,x,f,g,m,y);if(!(1&f)){var S=T&&p.call(t,"__wrapped__"),N=E&&p.call(e,"__wrapped__");if(S||N){var A=S?t.value():t,w=N?e.value():e;return y||(y=new r),m(A,w,f,g,y)}}return!!O&&(y||(y=new r),o(t,e,f,g,m,y))}})),Ue=p(((t,e)=>{var r=Ke(),n=pt();e.exports=function t(e,i,o,s,a){return e===i||(null==e||null==i||!n(e)&&!n(i)?e!=e&&i!=i:r(e,i,o,s,t,a))}})),Fe=p(((t,e)=>{var r=st(),n=Ue();e.exports=function(t,e,i,o){var s=i.length,a=s,l=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=i[s];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s{var r=P();e.exports=function(t){return t==t&&!r(t)}})),He=p(((t,e)=>{var r=$e(),n=Lt();e.exports=function(t){for(var e=n(t),i=e.length;i--;){var o=e[i],s=t[o];e[i]=[o,s,r(s)]}return e}})),Be=p(((t,e)=>{e.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}})),qe=p(((t,e)=>{var r=Fe(),n=He(),i=Be();e.exports=function(t){var e=n(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}})),Ge=p(((t,e)=>{var r=D(),n=pt();e.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==r(t)}})),ze=p(((t,e)=>{var r=mt(),n=Ge(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(t,e){if(r(t))return!1;var s=typeof t;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=t&&!n(t))||o.test(t)||!i.test(t)||null!=e&&t in Object(e)}})),Ve=p(((t,e)=>{var r=it();function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(n.Cache||r),i}n.Cache=r,e.exports=n})),Ye=p(((t,e)=>{var r=Ve();e.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}})),We=p(((t,e)=>{var r=Ye(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));e.exports=o})),Xe=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r{var r=L(),n=Xe(),i=mt(),o=Ge(),s=r?r.prototype:void 0,a=s?s.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(i(e))return n(e,t)+"";if(o(e))return a?a.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}})),Je=p(((t,e)=>{var r=Qe();e.exports=function(t){return null==t?"":r(t)}})),Ze=p(((t,e)=>{var r=mt(),n=ze(),i=We(),o=Je();e.exports=function(t,e){return r(t)?t:n(t,e)?[t]:i(o(t))}})),tr=p(((t,e)=>{var r=Ge();e.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}})),er=p(((t,e)=>{var r=Ze(),n=tr();e.exports=function(t,e){for(var i=0,o=(e=r(e,t)).length;null!=t&&i{var r=er();e.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}})),nr=p(((t,e)=>{e.exports=function(t,e){return null!=t&&e in Object(t)}})),ir=p(((t,e)=>{var r=Ze(),n=gt(),i=mt(),o=vt(),s=xt(),a=tr();e.exports=function(t,e,l){for(var u=-1,c=(e=r(e,t)).length,h=!1;++u{var r=nr(),n=ir();e.exports=function(t,e){return null!=t&&n(t,e,r)}})),sr=p(((t,e)=>{var r=Ue(),n=rr(),i=or(),o=ze(),s=$e(),a=Be(),l=tr();e.exports=function(t,e){return o(t)&&s(e)?a(l(t),e):function(o){var s=n(o,t);return void 0===s&&s===e?i(o,t):r(e,s,3)}}})),ar=p(((t,e)=>{e.exports=function(t){return function(e){return e?.[t]}}})),lr=p(((t,e)=>{var r=er();e.exports=function(t){return function(e){return r(e,t)}}})),ur=p(((t,e)=>{var r=ar(),n=lr(),i=ze(),o=tr();e.exports=function(t){return i(t)?r(o(t)):n(t)}})),cr=p(((t,e)=>{var r=qe(),n=sr(),i=Ee(),o=mt(),s=ur();e.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?o(t)?n(t[0],t[1]):r(t):s(t)}})),hr=p(((t,e)=>{var r=Ut(),n=Ae(),i=cr(),o=mt();e.exports=function(t,e){return(o(t)?r:n)(t,i(e,3))}})),dr=p(((t,e)=>{var r=Object.prototype.hasOwnProperty;e.exports=function(t,e){return null!=t&&r.call(t,e)}})),pr=p(((t,e)=>{var r=dr(),n=ir();e.exports=function(t,e){return null!=t&&n(t,e,r)}})),fr=p(((t,e)=>{var r=Rt(),n=te(),i=gt(),o=mt(),s=Ct(),a=_t(),l=Nt(),u=Ot(),c=Object.prototype.hasOwnProperty;e.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||a(t)||u(t)||i(t)))return!t.length;var e=n(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var h in t)if(c.call(t,h))return!1;return!0}})),gr=p(((t,e)=>{e.exports=function(t){return void 0===t}})),mr=p(((t,e)=>{var r=Te(),n=Ct();e.exports=function(t,e){var i=-1,o=n(t)?Array(t.length):[];return r(t,(function(t,r,n){o[++i]=e(t,r,n)})),o}})),yr=p(((t,e)=>{var r=Xe(),n=cr(),i=mr(),o=mt();e.exports=function(t,e){return(o(t)?r:i)(t,n(e,3))}})),_r=p(((t,e)=>{e.exports=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i{e.exports=function(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}})),xr=p(((t,e)=>{var r=_r(),n=Te(),i=cr(),o=vr(),s=mt();e.exports=function(t,e,a){var l=s(t)?r:o,u=arguments.length<3;return l(t,i(e,4),a,u,n)}})),br=p(((t,e)=>{var r=D(),n=mt(),i=pt();e.exports=function(t){return"string"==typeof t||!n(t)&&i(t)&&"[object String]"==r(t)}})),Tr=p(((t,e)=>{var r=ar()("length");e.exports=r})),Er=p(((t,e)=>{var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return r.test(t)}})),Or=p(((t,e)=>{var r="\\ud800-\\udfff",n="["+r+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",s="[^"+r+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+i+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",h=c+u+"(?:\\u200d(?:"+[s,a,l].join("|")+")"+c+u+")*",d="(?:"+[s+i+"?",i,a,l,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+h,"g");e.exports=function(t){for(var e=p.lastIndex=0;p.test(t);)++e;return e}})),Sr=p(((t,e)=>{var r=Tr(),n=Er(),i=Or();e.exports=function(t){return n(t)?i(t):r(t)}})),Nr=p(((t,e)=>{var r=Rt(),n=te(),i=Ct(),o=br(),s=Sr();e.exports=function(t){if(null==t)return 0;if(i(t))return o(t)?s(t):t.length;var e=n(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}})),Ar=p(((t,e)=>{var r=at(),n=ue(),i=xe(),o=cr(),s=qt(),a=mt(),l=_t(),u=M(),c=P(),h=Ot();e.exports=function(t,e,d){var p=a(t),f=p||l(t)||h(t);if(e=o(e,4),null==d){var g=t&&t.constructor;d=f?p?new g:[]:c(t)&&u(g)?n(s(t)):{}}return(f?r:i)(t,(function(t,r,n){return e(d,t,r,n)})),d}})),wr=p(((t,e)=>{var r=L(),n=gt(),i=mt(),o=r?r.isConcatSpreadable:void 0;e.exports=function(t){return i(t)||n(t)||!!(o&&t&&t[o])}})),Rr=p(((t,e)=>{var r=Bt(),n=wr();e.exports=function t(e,i,o,s,a){var l=-1,u=e.length;for(o||(o=n),a||(a=[]);++l0&&o(c)?i>1?t(c,i-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}})),Cr=p(((t,e)=>{e.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}})),Lr=p(((t,e)=>{var r=Cr(),n=Math.max;e.exports=function(t,e,i){return e=n(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=n(o.length-e,0),l=Array(a);++s{var r=ye(),n=lt(),i=Ee(),o=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;e.exports=o})),kr=p(((t,e)=>{var r=Date.now;e.exports=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}})),Dr=p(((t,e)=>{var r=Ir(),n=kr()(r);e.exports=n})),Pr=p(((t,e)=>{var r=Ee(),n=Lr(),i=Dr();e.exports=function(t,e){return i(n(t,e,r),t+"")}})),Mr=p(((t,e)=>{e.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o{e.exports=function(t){return t!=t}})),Kr=p(((t,e)=>{e.exports=function(t,e,r){for(var n=r-1,i=t.length;++n{var r=Mr(),n=jr(),i=Kr();e.exports=function(t,e,o){return e==e?i(t,e,o):r(t,n,o)}})),Fr=p(((t,e)=>{var r=Ur();e.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}})),$r=p(((t,e)=>{e.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n{e.exports=function(){}})),Br=p(((t,e)=>{var r=Jt(),n=Hr(),i=Pe(),o=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:n;e.exports=o})),qr=p(((t,e)=>{var r=Ce(),n=Fr(),i=$r(),o=Ie(),s=Br(),a=Pe();e.exports=function(t,e,l){var u=-1,c=n,h=t.length,d=!0,p=[],f=p;if(l)d=!1,c=i;else if(h>=200){var g=e?null:s(t);if(g)return a(g);d=!1,c=o,f=new r}else f=e?[]:p;t:for(;++u{var r=Ct(),n=pt();e.exports=function(t){return n(t)&&r(t)}})),zr=p(((t,e)=>{var r=Rr(),n=Pr(),i=qr(),o=Gr(),s=n((function(t){return i(r(t,1,o,!0))}));e.exports=s})),Vr=p(((t,e)=>{var r=Xe();e.exports=function(t,e){return r(e,(function(e){return t[e]}))}})),Yr=p(((t,e)=>{var r=Vr(),n=Lt();e.exports=function(t){return null==t?[]:r(t,n(t))}})),Wr=p(((t,e)=>{var r;if("function"==typeof h)try{r={clone:me(),constant:ye(),each:Ne(),filter:hr(),has:pr(),isArray:mt(),isEmpty:fr(),isFunction:M(),isUndefined:gr(),keys:Lt(),map:yr(),reduce:xr(),size:Nr(),transform:Ar(),union:zr(),values:Yr()}}catch{}r||(r=window._),e.exports=r})),Xr=p(((t,e)=>{var r=Wr();e.exports=i;var n="\0";function i(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function a(t,e,n,i){var o=""+e,s=""+n;if(!t&&o>s){var a=o;o=s,s=a}return o+""+s+""+(r.isUndefined(i)?"\0":i)}function l(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return n&&(a.name=n),a}function u(t,e){return a(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=n,this._children[t]={},this._children[n][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=n;else{for(var i=e+="";!r.isUndefined(i);i=this.parent(i))if(i===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==n)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t=n),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===n)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(i=arguments[1],s=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=a(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return s&&(this._edgeLabels[c]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=s?i:this._defaultEdgeLabelFn(t,e,n);var h=l(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[c]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][c]=h,this._out[t][c]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}})),Qr=p(((t,e)=>{e.exports="2.1.8"})),Jr=p(((t,e)=>{e.exports={Graph:Xr(),version:Qr()}})),Zr=p(((t,e)=>{var r=Wr(),n=Xr();function i(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new n(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}})),tn=p(((t,e)=>{var r=Wr();e.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}})),en=p(((t,e)=>{var r=Wr();function n(){this._arr=[],this._keyIndices={}}e.exports=n,n.prototype.size=function(){return this._arr.length},n.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},n.prototype.has=function(t){return r.has(this._keyIndices,t)},n.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},n.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},n.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},n.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},n.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},n.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,i=t;r>1].priority{var r=Wr(),n=en();e.exports=function(t,e,r,o){return function(t,e,r,i){var o,s,a={},l=new n,u=function(t){var e=t.v!==o?t.v:t.w,n=a[e],i=r(t),u=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);u0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(u);return a}(t,String(e),r||i,o||function(e){return t.outEdges(e)})};var i=r.constant(1)})),nn=p(((t,e)=>{var r=rn(),n=Wr();e.exports=function(t,e,i){return n.transform(t.nodes(),(function(n,o){n[o]=r(t,o,e,i)}),{})}})),on=p(((t,e)=>{var r=Wr();e.exports=function(t){var e=0,n=[],i={},o=[];function s(a){var l=i[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach((function(t){r.has(i,t)?i[t].onStack&&(l.lowlink=Math.min(l.lowlink,i[t].index)):(s(t),l.lowlink=Math.min(l.lowlink,i[t].lowlink))})),l.lowlink===l.index){var u,c=[];do{u=n.pop(),i[u].onStack=!1,c.push(u)}while(a!==u);o.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||s(t)})),o}})),sn=p(((t,e)=>{var r=Wr(),n=on();e.exports=function(t){return r.filter(n(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}})),an=p(((t,e)=>{var r=Wr();e.exports=function(t,e,r){return function(t,e,r){var n={},i=t.nodes();return i.forEach((function(t){n[t]={},n[t][t]={distance:0},i.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var i=r.v===t?r.w:r.v,o=e(r);n[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=n[t];i.forEach((function(r){var o=n[r];i.forEach((function(r){var n=o[t],i=e[r],s=o[r],a=n.distance+i.distance;a{var r=Wr();function n(t){var e={},n={},o=[];if(r.each(t.sinks(),(function s(a){if(r.has(n,a))throw new i;r.has(e,a)||(n[a]=!0,e[a]=!0,r.each(t.predecessors(a),s),delete n[a],o.push(a))})),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}e.exports=n,n.CycleException=i,i.prototype=new Error})),un=p(((t,e)=>{var r=ln();e.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}})),cn=p(((t,e)=>{var r=Wr();function n(t,e,i,o,s,a){r.has(o,e)||(o[e]=!0,i||a.push(e),r.each(s(e),(function(e){n(t,e,i,o,s,a)})),i&&a.push(e))}e.exports=function(t,e,i){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);n(t,e,"post"===i,a,o,s)})),s}})),hn=p(((t,e)=>{var r=cn();e.exports=function(t,e){return r(t,e,"post")}})),dn=p(((t,e)=>{var r=cn();e.exports=function(t,e){return r(t,e,"pre")}})),pn=p(((t,e)=>{var r=Wr(),n=Xr(),i=en();e.exports=function(t,e){var o,s=new n,a={},l=new i;function u(t){var r=t.v===o?t.w:t.v,n=l.priority(r);if(void 0!==n){var i=e(t);i0;){if(o=l.removeMin(),r.has(a,o))s.setEdge(o,a[o]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(o).forEach(u)}return s}})),fn=p(((t,e)=>{e.exports={components:tn(),dijkstra:rn(),dijkstraAll:nn(),findCycles:sn(),floydWarshall:an(),isAcyclic:un(),postorder:hn(),preorder:dn(),prim:pn(),tarjan:on(),topsort:ln()}})),gn=p(((t,e)=>{var r=Jr();e.exports={Graph:r.Graph,json:Zr(),alg:fn(),version:r.version}})),mn=p((t=>{function e(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.getOwnPropertyDescriptors&&(t=e.create(null,e.getOwnPropertyDescriptors(t))),e&&"function"==typeof e.freeze?e.freeze(t):t}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var n=e({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),i=e({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),o=e({script:!1,style:!1,textarea:!0,title:!0});function s(t){return t===a.HTML}var a=e({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=Object.keys(a).map((function(t){return a[t]})),u=e({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(t,e){if(null===t||"object"!=typeof t)throw new TypeError("target is not an object");for(var n in e)r(e,n)&&(t[n]=e[n]);return t},t.find=function(t,e,n){if(void 0===n&&(n=Array.prototype),t&&"function"==typeof n.find)return n.find.call(t,e);for(var i=0;i-1},t.MIME_TYPE=a,t.NAMESPACE=u})),yn=p((t=>{function e(t,e){t.prototype=Object.create(Error.prototype,{constructor:{value:t},name:{value:t.name,enumerable:!0,writable:e}})}var r=mn().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),n=Object.keys(r);function i(t){return"number"==typeof t&&t>=1&&t<=25}function o(t,e){i(t)?(this.name=n[t],this.message=e||""):(this.message=t,this.name=function(t){return"string"==typeof t&&t.substring(t.length-r.Error.length)===r.Error}(e)?e:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,o)}e(o,!0),Object.defineProperties(o.prototype,{code:{enumerable:!0,get:function(){var t=n.indexOf(this.name);return i(t)?t:0}}});var s,a={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},l=Object.entries(a);for(s=0;s{function e(t){try{"function"!=typeof t&&(t=RegExp);var e=new t("𝌆","u").exec("𝌆");return!!e&&2===e[0].length}catch{}return!1}var r=e();function n(t){if("["!==t.source[0])throw new Error(t+" can not be used with chars");return t.source.slice(1,t.source.lastIndexOf("]"))}function i(t,e){if("["!==t.source[0])throw new Error("/"+t.source+"/ can not be used with chars_without");if(!e||"string"!=typeof e)throw new Error(JSON.stringify(e)+" is not a valid search");if(-1===t.source.indexOf(e))throw new Error('"'+e+'" is not is /'+t.source+"/");if("-"===e&&1!==t.source.indexOf(e))throw new Error('"'+e+'" is not at the first postion of /'+t.source+"/");return new RegExp(t.source.replace(e,""),r?"u":"")}function o(t){var e=this;return new RegExp(Array.prototype.slice.call(arguments).map((function(t){var r="string"==typeof t;if(r&&void 0===e&&"|"===t)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?t:t.source})).join(""),r?"mu":"m")}function s(t){if(0===arguments.length)throw new Error("no parameters provided");return o.apply(s,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var a=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;r&&(a=o("[",n(a),"\\u{10000}-\\u{10FFFF}","]"));var l=/[\x20\x09\x0D\x0A]/,u=n(l),c=o(l,"+"),h=o(l,"*"),d=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;r&&(d=o("[",n(d),"\\u{10000}-\\u{10FFFF}","]"));var p=o("[",n(d),n(/[-.0-9\xB7]/),n(/[\u0300-\u036F\u203F-\u2040]/),"]"),f=o(d,p,"*"),g=o(p,"+"),m=o("&",f,";"),y=s(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),_=s(m,"|",y),v=o("%",f,";"),x=s(o('"',s(/[^%&"]/,"|",v,"|",_),"*",'"'),"|",o("'",s(/[^%&']/,"|",v,"|",_),"*","'")),b=s('"',s(/[^<&"]/,"|",_),"*",'"',"|","'",s(/[^<&']/,"|",_),"*","'"),T=o(i(d,":"),i(p,":"),"*"),E=o(T,s(":",T),"?"),O=o("^",E,"$"),S=o("(",E,")"),N=s(/"[^"]*"|'[^']*'/),A=o(/^<\?/,"(",f,")",s(c,"(",a,"*?)"),"?",/\?>/),w=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,R=s('"',w,'*"',"|","'",i(w,"'"),"*'"),C="\x3c!--",L=o(C,s(i(a,"-"),"|",o("-",i(a,"-"))),"*","--\x3e"),I="#PCDATA",k=s(o(/\(/,h,I,s(h,/\|/,h,E),"*",h,/\)\*/),"|",o(/\(/,h,I,h,/\)/)),D=s("EMPTY","|","ANY","|",k,"|",o(/\([^>]+\)/,/[?*+]?/)),P=o(""),M=o("NOTATION",c,/\(/,h,f,s(h,/\|/,h,f),"*",h,/\)/),j=o(/\(/,h,g,s(h,/\|/,h,g),"*",h,/\)/),K=s(M,"|",j),U=s(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",K),F=s(/#REQUIRED|#IMPLIED/,"|",s(s("#FIXED",c),"?",b)),$=o(""),H="about:legacy-compat",B=s('"'+H+'"',"|","'"+H+"'"),q="SYSTEM",G="PUBLIC",z=s(s(q,c,N),"|",s(G,c,R,c,N)),V=o("^",s(s(q,c,"(?",N,")"),"|",s(G,c,"(?",R,")",c,"(?",N,")"))),Y=s(c,"NDATA",c,f),W=""),Q=s(x,"|",z),J=s(X,"|",o(W,c,"%",c,f,c,Q,h,">")),Z=o(G,c,R),tt=o(""),et=o(h,"=",h),rt=/1[.]\d+/,nt=o(c,"version",et,s("'",rt,"'","|",'"',rt,'"')),it=/[A-Za-z][-A-Za-z0-9._]*/,ot=o(/^<\?xml/,nt,s(c,"encoding",et,s('"',it,'"',"|","'",it,"'")),"?",s(c,"standalone",et,s("'",s("yes","|","no"),"'","|",'"',s("yes","|","no"),'"')),"?",h,/\?>/),st=o(a,"*?",/\]\]>/),at=o(/",t.CDSect=at,t.Char=a,t.Comment=L,t.COMMENT_START=C,t.COMMENT_END="--\x3e",t.DOCTYPE_DECL_START="{var e=mn(),r=e.find,n=e.hasDefaultHTMLNamespace,i=e.hasOwn,o=e.isHTMLMimeType,s=e.isHTMLRawTextElement,a=e.isHTMLVoidElement,l=e.MIME_TYPE,u=e.NAMESPACE,c=Symbol(),h=yn(),d=h.DOMException,p=h.DOMExceptionName,f=_n();function g(t){if(t!==c)throw new TypeError("Illegal constructor")}function m(t){return""!==t}function y(t,e){return i(t,e)||(t[e]=!0),t}function _(t){if(!t)return[];var e=function(t){return t?t.split(/[\t\n\f\r ]+/).filter(m):[]}(t);return Object.keys(e.reduce(y,{}))}function v(t){if(!f.QName_exact.test(t))throw new d(d.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+t+'"')}function x(t,r){v(r),t=t||null;var n=null,i=r;if(r.indexOf(":")>=0){var o=r.split(":");n=o[0],i=o[1]}if(null!==n&&null===t)throw new d(d.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&t!==e.NAMESPACE.XML)throw new d(d.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===r)&&t!==e.NAMESPACE.XMLNS)throw new d(d.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(t===e.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==r)throw new d(d.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[t,n,i]}function b(t,e){for(var r in t)i(t,r)&&(e[r]=t[r])}function T(t,e){var r=t.prototype;if(!(r instanceof e)){let n=function(){};n.prototype=e.prototype,n=new n,b(r,n),t.prototype=r=n}r.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),r.constructor=t)}var E={},O=E.ELEMENT_NODE=1,S=E.ATTRIBUTE_NODE=2,N=E.TEXT_NODE=3,A=E.CDATA_SECTION_NODE=4,w=E.ENTITY_REFERENCE_NODE=5,R=E.ENTITY_NODE=6,C=E.PROCESSING_INSTRUCTION_NODE=7,L=E.COMMENT_NODE=8,I=E.DOCUMENT_NODE=9,k=E.DOCUMENT_TYPE_NODE=10,D=E.DOCUMENT_FRAGMENT_NODE=11,P=E.NOTATION_NODE=12,M=e.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function j(t,e){if(e.length=0){for(var i=e.length-1;n<=i;)e[n]=e[++n];if(e.length=i,t){var o=t.ownerDocument;o&&X(o,t,r),r.ownerElement=null}}}function G(){}function z(t){g(t)}function V(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function Y(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(Y(t,e))return!0}while(t=t.nextSibling)}function W(t,e){g(t);var r=e||{};this.ownerDocument=this,this.contentType=r.contentType||l.XML_APPLICATION,this.type=o(this.contentType)?"html":"xml"}function X(t,e,r,n){t&&t._inc++,r.namespaceURI===u.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function Q(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var i=e.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function J(t,e){if(t!==e.parentNode)throw new d(d.NOT_FOUND_ERR,"child's parent is not parent");var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,Q(t.ownerDocument,t),e.parentNode=null,e.previousSibling=null,e.nextSibling=null,e}function Z(t){return t&&t.nodeType===z.DOCUMENT_TYPE_NODE}function tt(t){return t&&t.nodeType===z.ELEMENT_NODE}function et(t){return t&&t.nodeType===z.TEXT_NODE}function rt(t,e){var n=t.childNodes||[];if(r(n,tt)||Z(e))return!1;var i=r(n,Z);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function nt(t,e){var n=t.childNodes||[];if(r(n,(function(t){return tt(t)&&t!==e})))return!1;var i=r(n,Z);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function it(t,e,n){var i=t.childNodes||[],o=e.childNodes||[];if(e.nodeType===z.DOCUMENT_FRAGMENT_NODE){var s=o.filter(tt);if(s.length>1||r(o,et))throw new d(d.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===s.length&&!rt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!rt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Z(e)){if(r(i,Z))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=r(i,tt);if(n&&i.indexOf(a)1||r(o,et))throw new d(d.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===s.length&&!nt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!nt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Z(e)){if(r(i,(function(t){return Z(t)&&t!==n})))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=r(i,tt);if(n&&i.indexOf(a)=0;m--)if(""===(y=n[m]).prefix&&y.namespace===t.namespaceURI){p=y.namespace;break}if(p!==t.namespaceURI)for(m=n.length-1;m>=0;m--){var y;if((y=n[m]).namespace===t.namespaceURI){y.prefix&&(d=y.prefix+":"+h);break}}}e.push("<",d);for(var _=0;_");else{if(e.push(">"),i&&s(h))for(;c;)c.data?e.push(c.data):Et(c,e,r,n.slice()),c=c.nextSibling;else for(;c;)Et(c,e,r,n.slice()),c=c.nextSibling;e.push("")}return;case I:case D:for(c=t.firstChild;c;)Et(c,e,r,n.slice()),c=c.nextSibling;return;case S:return Tt(e,t.name,t.value);case N:return e.push(t.data.replace(/[<&>]/g,V));case A:return e.push(f.CDATA_START,t.data,f.CDATA_END);case L:return e.push(f.COMMENT_START,t.data,f.COMMENT_END);case k:var E=t.publicId,R=t.systemId;return e.push(f.DOCTYPE_DECL_START," ",t.name),E?(e.push(" ",f.PUBLIC," ",E),R&&"."!==R&&e.push(" ",R)):R&&"."!==R&&e.push(" ",f.SYSTEM," ",R),t.internalSubset&&e.push(" [",t.internalSubset,"]"),void e.push(">");case C:return e.push("");case w:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Ot(t,e,r){var n;switch(e.nodeType){case O:(n=e.cloneNode(!1)).ownerDocument=t;case D:break;case S:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(Ot(t,i,r)),i=i.nextSibling;return n}function St(t,e,r){var n=new e.constructor(c);for(var o in e)if(i(e,o)){var s=e[o];"object"!=typeof s&&s!=n[o]&&(n[o]=s)}switch(e.childNodes&&(n.childNodes=new U),n.ownerDocument=t,n.nodeType){case O:var a=e.attributes,l=n.attributes=new H,u=a.length;l._ownerElement=n;for(var h=0;h=0&&tK(e.ownerDocument)?M.DOCUMENT_POSITION_FOLLOWING:M.DOCUMENT_POSITION_PRECEDING);if(i&&e===r)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;if(n&&e===r)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;for(var a=[],l=e.parentNode;l;){if(!i&&l===r)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;a.push(l),l=l.parentNode}a.reverse();for(var u=[],c=r.parentNode;c;){if(!n&&c===e)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;u.push(c),c=c.parentNode}u.reverse();var h=j(a,u);for(var d in h.childNodes){var p=h.childNodes[d];if(p===r)return M.DOCUMENT_POSITION_FOLLOWING;if(p===e)return M.DOCUMENT_POSITION_PRECEDING;if(u.indexOf(p)>=0)return M.DOCUMENT_POSITION_FOLLOWING;if(a.indexOf(p)>=0)return M.DOCUMENT_POSITION_PRECEDING}return 0}},b(E,z),b(E,z.prototype),b(M,z),b(M,z.prototype),W.prototype={implementation:null,nodeName:"#document",nodeType:I,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType===D){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return st(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===O&&(this.documentElement=t),t},removeChild:function(t){var e=J(this,t);return e===this.documentElement&&(this.documentElement=null),e},replaceChild:function(t,e){st(this,t,e,ot),t.ownerDocument=this,e&&this.removeChild(e),tt(t)&&(this.documentElement=t)},importNode:function(t,e){return Ot(this,t,e)},getElementById:function(t){var e=null;return Y(this.documentElement,(function(r){if(r.nodeType==O&&r.getAttribute("id")==t)return e=r,!0})),e},createElement:function(t){var e=new at(c);return e.ownerDocument=this,"html"===this.type&&(t=t.toLowerCase()),n(this.contentType)&&(e.namespaceURI=u.HTML),e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new U,(e.attributes=new H)._ownerElement=e,e},createDocumentFragment:function(){var t=new yt(c);return t.ownerDocument=this,t.childNodes=new U,t},createTextNode:function(t){var e=new ct(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createComment:function(t){var e=new ht(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createCDATASection:function(t){var e=new dt(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new _t(c);return r.ownerDocument=this,r.childNodes=new U,r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){if(!f.QName_exact.test(t))throw new d(d.INVALID_CHARACTER_ERR,'invalid character in name "'+t+'"');return"html"===this.type&&(t=t.toLowerCase()),this._createAttribute(t)},_createAttribute:function(t){var e=new lt(c);return e.ownerDocument=this,e.childNodes=new U,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){if(!f.Name.test(t))throw new d(d.INVALID_CHARACTER_ERR,'not a valid xml name "'+t+'"');if("html"===this.type)throw new d("document is an html document",p.NotSupportedError);var e=new mt(c);return e.ownerDocument=this,e.childNodes=new U,e.nodeName=t,e},createElementNS:function(t,e){var r=x(t,e),n=new at(c),i=n.attributes=new H;return n.childNodes=new U,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],i._ownerElement=n,n},createAttributeNS:function(t,e){var r=x(t,e),n=new lt(c);return n.ownerDocument=this,n.childNodes=new U,n.nodeName=e,n.name=e,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},T(W,z),at.prototype={nodeType:O,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===u.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(t){return!!this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e?e.value:null},getAttributeNode:function(t){return this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase()),this.attributes.getNamedItem(t)},setAttribute:function(t,e){this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());var r=this.getAttributeNode(t);r?r.value=r.nodeValue=""+e:((r=this.ownerDocument._createAttribute(t)).value=r.nodeValue=""+e,this.setAttributeNode(r))},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r?r.value:null},setAttributeNS:function(t,e,r){var n=x(t,e)[2],i=this.getAttributeNodeNS(t,n);i?i.value=i.nodeValue=""+r:((i=this.ownerDocument.createAttributeNS(t,e)).value=i.nodeValue=""+r,this.setAttributeNode(i))},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByClassName:function(t){var e=_(t);return new F(this,(function(r){var n=[];return e.length>0&&Y(r,(function(i){if(i!==r&&i.nodeType===O){var o=i.getAttribute("class");if(o){var s=t===o;if(!s){var a=_(o);s=e.every(function(t){return function(e){return t&&-1!==t.indexOf(e)}}(a))}s&&n.push(i)}}})),n}))},getElementsByTagName:function(t){var e="html"===(this.nodeType===I?this:this.ownerDocument).type,r=t.toLowerCase();return new F(this,(function(n){var i=[];return Y(n,(function(o){o!==n&&o.nodeType===O&&("*"===t||o.getQualifiedName()===(e&&o.namespaceURI===u.HTML?r:t))&&i.push(o)})),i}))},getElementsByTagNameNS:function(t,e){return new F(this,(function(r){var n=[];return Y(r,(function(i){i!==r&&i.nodeType===O&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&n.push(i)})),n}))}},W.prototype.getElementsByClassName=at.prototype.getElementsByClassName,W.prototype.getElementsByTagName=at.prototype.getElementsByTagName,W.prototype.getElementsByTagNameNS=at.prototype.getElementsByTagNameNS,T(at,z),lt.prototype.nodeType=S,T(lt,z),ut.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},T(ut,z),ct.prototype={nodeName:"#text",nodeType:N,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},T(ct,ut),ht.prototype={nodeName:"#comment",nodeType:L},T(ht,ut),dt.prototype={nodeName:"#cdata-section",nodeType:A},T(dt,ct),pt.prototype.nodeType=k,T(pt,z),ft.prototype.nodeType=P,T(ft,z),gt.prototype.nodeType=R,T(gt,z),mt.prototype.nodeType=w,T(mt,z),yt.prototype.nodeName="#document-fragment",yt.prototype.nodeType=D,T(yt,z),_t.prototype.nodeType=C,T(_t,ut),vt.prototype.serializeToString=function(t,e){return xt.call(t,e)},z.prototype.toString=xt;try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case O:case D:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}};Object.defineProperty(F.prototype,"length",{get:function(){return $(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return t(this)},set:function(t){switch(this.nodeType){case O:case D:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Nt=function(t,e,r){t["$$"+e]=r}}}catch{}t._updateLiveList=$,t.Attr=lt,t.CDATASection=dt,t.CharacterData=ut,t.Comment=ht,t.Document=W,t.DocumentFragment=yt,t.DocumentType=pt,t.DOMImplementation=G,t.Element=at,t.Entity=gt,t.EntityReference=mt,t.LiveNodeList=F,t.NamedNodeMap=H,t.Node=z,t.NodeList=U,t.Notation=ft,t.Text=ct,t.ProcessingInstruction=_t,t.XMLSerializer=vt})),xn=p((t=>{var e=mn().freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})),bn=p((t=>{var e=mn(),r=_n(),n=yn(),i=e.isHTMLEscapableRawTextElement,o=e.isHTMLMimeType,s=e.isHTMLRawTextElement,a=e.hasOwn,l=e.NAMESPACE,u=n.ParseError,c=n.DOMException;function h(){}h.prototype={parse:function(t,n,i){var s=this.domBuilder;s.startDocument(),y(n,n=Object.create(null)),function(t,n,i,s,l){var h=o(s.mimeType);function y(t){var e=";"===t[t.length-1]?t:t+";";if(!h&&e!==t)return l.error("EntityRef: expecting ;"),t;var n=r.Reference.exec(e);if(!n||n[0].length!==e.length)return l.error("entity not matching Reference production: "+t),t;var o=e.slice(1,-1);return a(i,o)?i[o]:"#"===o.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}(parseInt(o.substring(1).replace("x","0x"))):(l.error("entity not found:"+t),t)}function _(e){if(e>R){var r=t.substring(R,e).replace(d,y);S&&N(R),s.characters(r,0,e-R),R=e}}t.indexOf(r.UNICODE_REPLACEMENT_CHARACTER)>=0&&l.warning("Unicode replacement character detected, source encoding issues?");var T=0,E=0,O=/\r\n?|\n|$/g,S=s.locator;function N(e,r){for(;e>=E&&(r=O.exec(t));)T=E,E=r.index+r[0].length,S.lineNumber++;S.columnNumber=e-T+1}for(var A=[{currentNSMap:n}],w=[],R=0;;){try{var C=t.indexOf("<",R);if(C<0){if(!h&&w.length>0)return l.fatalError("unclosed xml tag(s): "+w.join(", "));if(!t.substring(R).match(/^\s*$/)){var L=s.doc,I=L.createTextNode(t.substring(R));if(L.documentElement)return l.error("Extra content at the end of the document");L.appendChild(I),s.currentElement=I}return}if(C>R){var k=t.substring(R,C);!h&&0===w.length&&(k=k.replace(new RegExp(r.S_OPT.source,"g"),""))&&l.error("Unexpected content outside root element: '"+k+"'"),_(C)}switch(t.charAt(C+1)){case"/":var D=t.indexOf(">",C+2),P=t.substring(C+2,D>0?D:void 0);if(!P)return l.fatalError("end tag name missing");var M=D>0&&r.reg("^",r.QName_group,r.S_OPT,"$").exec(P);if(!M)return l.fatalError('end tag name contains invalid characters: "'+P+'"');if(!s.currentElement&&!s.doc.documentElement)return;var j=w[w.length-1]||s.currentElement.tagName||s.doc.documentElement.tagName||"";if(j!==M[1]){var K=M[1].toLowerCase();if(!h||j.toLowerCase()!==K)return l.fatalError('Opening and ending tag mismatch: "'+j+'" != "'+P+'"')}var U=A.pop();w.pop();var F=U.localNSMap;if(s.endElement(U.uri,U.localName,j),F)for(var $ in F)a(F,$)&&s.endPrefixMapping($);D++;break;case"?":S&&N(C),D=x(t,C,s,l);break;case"!":S&&N(C),D=v(t,C,s,l,h);break;default:S&&N(C);var H=new b,B=A[A.length-1].currentNSMap,q=(D=f(t,C,H,0,y,l,h),H.length);if(H.closed||(h&&e.isHTMLVoidElement(H.tagName)?H.closed=!0:w.push(H.tagName)),S&&q){for(var G=p(S,{}),z=0;zR?R=D:_(Math.max(C,R)+1)}}(t,n,i,s,this.errorHandler),s.endDocument()}};var d=/&#?\w+;?/g;function p(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,n,i,o,s){function l(t,e,n){return a(r.attributeNames,t)?o.fatalError("Attribute "+t+" redefined"):!s&&e.indexOf("<")>=0?o.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(t,e.replace(/[\t\n\r]/g," ").replace(d,i),n)}for(var u,c=++e,h=0;;){var p=t.charAt(c);switch(p){case"=":if(1===h)u=t.slice(e,c),h=3;else{if(2!==h)throw new Error("attribute equal must after attrName");h=3}break;case"'":case'"':if(3===h||1===h){if(1===h&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(p,e))>0))throw new Error("attribute value no end '"+p+"' match");l(u,f=t.slice(e,c),e-1),h=5}else{if(4!=h)throw new Error('attribute value must after "="');l(u,f=t.slice(e,c),e),o.warning('attribute "'+u+'" missed start quot('+p+")!!"),e=c+1,h=5}break;case"/":switch(h){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:h=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==h&&r.setTagName(t.slice(e,c)),c;case">":switch(h){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=t.slice(e,c)).slice(-1)&&(r.closed=!0,f=f.slice(0,-1));case 2:2===h&&(f=u),4==h?(o.warning('attribute "'+f+'" missed quot(")!'),l(u,f,e)):(s||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),l(f,f,e));break;case 3:if(!s)return o.fatalError("AttValue: ' or \" expected")}return c;case"€":p=" ";default:if(p<=" ")switch(h){case 0:r.setTagName(t.slice(e,c)),h=6;break;case 1:u=t.slice(e,c),h=2;break;case 4:var f=t.slice(e,c);o.warning('attribute "'+f+'" missed quot(")!!'),l(u,f,e);case 5:h=6}else switch(h){case 2:s||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),l(u,u,e),e=c,h=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:h=1,e=c;break;case 3:h=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function g(t,e,r){for(var n=t.tagName,i=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((f=u.indexOf(":"))>0)var h=s.prefix=u.slice(0,f),d=u.slice(f+1),p="xmlns"===h&&d;else d=u,h=null,p="xmlns"===u&&"";s.localName=d,!1!==p&&(null==i&&(i=Object.create(null),y(r,r=Object.create(null))),r[p]=i[p]=c,s.uri=l.XMLNS,e.startPrefixMapping(p,c))}for(o=t.length;o--;)(s=t[o]).prefix&&("xml"===s.prefix&&(s.uri=l.XML),"xmlns"!==s.prefix&&(s.uri=r[s.prefix]));var f;(f=n.indexOf(":"))>0?(h=t.prefix=n.slice(0,f),d=t.localName=n.slice(f+1)):(h=null,d=t.localName=n);var g=t.uri=r[h||""];if(e.startElement(g,d,n,t),!t.closed)return t.currentNSMap=r,t.localNSMap=i,!0;if(e.endElement(g,d,n),i)for(h in i)a(i,h)&&e.endPrefixMapping(h)}function m(t,e,r,n,o){var a=i(r);if(a||s(r)){var l=t.indexOf("",e),u=t.substring(e+1,l);return a&&(u=u.replace(d,n)),o.characters(u,0,u.length),l}return e+1}function y(t,e){for(var r in t)a(t,r)&&(e[r]=t[r])}function _(t,e){var n=e;function i(e){return e=e||0,t.charAt(n+e)}function o(t){n+=t=t||1}function s(){return t.substring(n)}return{char:i,getIndex:function(){return n},getMatch:function(t){var e=r.reg("^",t).exec(s());return e?(o(e[0].length),e[0]):null},getSource:function(){return t},skip:o,skipBlanks:function(){for(var e=0;n"!==s.char()?i.fatalError("doctype not terminated with > at position "+s.getIndex()):(s.skip(1),n.startDTD(u.name,u.publicId,u.systemId,u.internalSubset),n.endDTD(),s.getIndex());default:return i.fatalError('Not well-formed XML starting with "0)return i.fatalError("processing instruction at position "+e+" is an xml declaration which is only at the start of the document");if(!r.XMLDecl.test(t.substring(e)))return i.fatalError("xml declaration is not well-formed")}return n.processingInstruction(o[1],o[2]),e+o[0].length}function b(){this.attributeNames=Object.create(null)}b.prototype={setTagName:function(t){if(!r.QName_exact.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!r.QName_exact.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},t.XMLReader=h,t.parseUtils=_,t.parseDoctypeCommentOrCData=v})),Tn=p((t=>{var e=mn(),r=vn(),n=yn(),i=xn(),o=bn(),s=r.DOMImplementation,a=e.hasDefaultHTMLNamespace,l=e.isHTMLMimeType,u=e.isValidMimeType,c=e.MIME_TYPE,h=e.NAMESPACE,d=n.ParseError,p=o.XMLReader;function f(t){return t.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function g(t){if(void 0===(t=t||{}).locator&&(t.locator=!0),this.assign=t.assign||e.assign,this.domHandler=t.domHandler||m,this.onError=t.onError||t.errorHandler,t.errorHandler&&"function"!=typeof t.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");t.errorHandler&&t.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=t.normalizeLineEndings||f,this.locator=!!t.locator,this.xmlns=this.assign(Object.create(null),t.xmlns)}function m(t){var e=t||{};this.mimeType=e.mimeType||c.XML_APPLICATION,this.defaultNamespace=e.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=e.onError}function y(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function _(t,e,r){return"string"==typeof t?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}function v(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}g.prototype.parseFromString=function(t,r){if(!u(r))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+r+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),o=i.XML_ENTITIES,s=n[""]||null;a(r)?(o=i.HTML_ENTITIES,s=h.HTML):r===c.XML_SVG_IMAGE&&(s=h.SVG),n[""]=s,n.xml=n.xml||h.XML;var l=new this.domHandler({mimeType:r,defaultNamespace:s,onError:this.onError}),d=this.locator?{}:void 0;this.locator&&l.setDocumentLocator(d);var f=new p;return f.errorHandler=l,f.domBuilder=l,!e.isHTMLMimeType(r)&&"string"!=typeof t&&f.errorHandler.fatalError("source is not a string"),f.parse(this.normalizeLineEndings(String(t)),n,o),l.doc.documentElement||f.errorHandler.fatalError("missing root element"),l.doc},m.prototype={startDocument:function(){var t=new s;this.doc=l(this.mimeType)?t.createHTMLDocument(!1):t.createDocument(this.defaultNamespace,"")},startElement:function(t,e,r,n){var i=this.doc,o=i.createElementNS(t,r||e),s=n.length;v(this,o),this.currentElement=o,this.locator&&y(this.locator,o);for(var a=0;a{var e=mn();t.assign=e.assign,t.hasDefaultHTMLNamespace=e.hasDefaultHTMLNamespace,t.isHTMLMimeType=e.isHTMLMimeType,t.isValidMimeType=e.isValidMimeType,t.MIME_TYPE=e.MIME_TYPE,t.NAMESPACE=e.NAMESPACE;var r=yn();t.DOMException=r.DOMException,t.DOMExceptionName=r.DOMExceptionName,t.ExceptionCode=r.ExceptionCode,t.ParseError=r.ParseError;var n=vn();t.Attr=n.Attr,t.CDATASection=n.CDATASection,t.CharacterData=n.CharacterData,t.Comment=n.Comment,t.Document=n.Document,t.DocumentFragment=n.DocumentFragment,t.DocumentType=n.DocumentType,t.DOMImplementation=n.DOMImplementation,t.Element=n.Element,t.Entity=n.Entity,t.EntityReference=n.EntityReference,t.LiveNodeList=n.LiveNodeList,t.NamedNodeMap=n.NamedNodeMap,t.Node=n.Node,t.NodeList=n.NodeList,t.Notation=n.Notation,t.ProcessingInstruction=n.ProcessingInstruction,t.Text=n.Text,t.XMLSerializer=n.XMLSerializer;var i=Tn();t.DOMParser=i.DOMParser,t.normalizeLineEndings=i.normalizeLineEndings,t.onErrorStopParsing=i.onErrorStopParsing,t.onWarningStopParsing=i.onWarningStopParsing})),On=p(((t,e)=>{!function(r,n){"object"==typeof t&&"object"==typeof e?e.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof t?t.ForgeExprEvaluator=n():r.ForgeExprEvaluator=n()}(t,(()=>(()=>{var t={41:(t,e,r)=>{var n=r(655),i=r(8068),o=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{t.exports=Function.prototype.call},309:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;let o=r(5629),s=r(2399),a=r(7760),l=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),e.ListTokenSource=l},324:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;let o=r(8590),s=r(2399),a=r(7435),l=class extends o.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),e.LexerDFASerializer=l},328:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;let i=r(4148),o=r(1492),s=r(7477),a=r(2399);class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){let e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},333:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;let i=r(3907),o=r(5636),s=r(2399),a=r(8840);var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([s.Override],e.prototype,"hashCode",null),n([s.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},360:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;let i=r(7477),o=r(2399),s=r(7760);class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),e.TerminalNode=a},414:t=>{t.exports=Math.round},453:(t,e,r)=>{var n,i=r(9612),o=r(9383),s=r(1237),a=r(9290),l=r(9538),u=r(8068),c=r(9675),h=r(5345),d=r(1514),p=r(8968),f=r(6188),g=r(8002),m=r(5880),y=r(414),_=r(3093),v=Function,x=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch{}},b=r(5795),T=r(655),E=function(){throw new c},O=b?function(){try{return E}catch{try{return b(arguments,"callee").get}catch{return E}}}():E,S=r(4039)(),N=r(3628),A=r(1064),w=r(8648),R=r(1002),C=r(76),L={},I=typeof Uint8Array<"u"&&N?N(Uint8Array):n,k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map<"u"&&S&&N?N((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set<"u"&&S&&N?N((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&N?N(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":O,"%TypedArray%":I,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":R,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":_,"%Reflect.getPrototypeOf%":w};if(N)try{null.error}catch(t){var D=N(N(t));k["%Error.prototype%"]=D}var P=function t(e){var r;if("%AsyncFunction%"===e)r=x("async function () {}");else if("%GeneratorFunction%"===e)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=x("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&N&&(r=N(i.prototype))}return k[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r(6743),K=r(9957),U=j.call(C,Array.prototype.concat),F=j.call(R,Array.prototype.splice),$=j.call(C,String.prototype.replace),H=j.call(C,String.prototype.slice),B=j.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(t,e){var r,n=t;if(K(M,n)&&(n="%"+(r=M[n])[0]+"%"),K(k,n)){var i=k[n];if(i===L&&(i=P(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return $(t,q,(function(t,e,r,i){n[n.length]=r?$(i,G,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=z("%"+n+"%",e),o=i.name,s=i.value,a=!1,l=i.alias;l&&(n=l[0],F(r,U([0,1],l)));for(var h=1,d=!0;h=r.length){var m=b(s,p);s=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[p]}else d=K(s,p),s=s[p];d&&!a&&(k[o]=s)}}return s}},487:(t,e,r)=>{var n=r(6897),i=r(655),o=r(3126),s=r(2205);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},493:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;let o=r(9202),s=r(1533),a=r(4274),l=r(8955),u=r(7037),c=r(5369),h=r(8749),d=r(8744),p=r(6889),f=r(760),g=r(3099),m=r(8016),y=r(3074),_=r(9250),v=r(3357),x=r(9803),b=r(3972),T=r(7920),E=r(9616),O=r(6474),S=r(4283),N=r(4520),A=r(5859),w=r(6479),R=r(6251),C=r(2399),L=r(3575),I=r(3161),k=r(4891),D=r(6305),P=r(6061),M=r(6369),j=r(3053),K=r(9240),U=r(8840),F=r(3334),$=r(1384),H=r(8195),B=r(5481),q=r(4016),G=r(7760),z=r(8644),V=r(8567),Y=r(4650);var W,X;(X=W||(W={}))[X.UNICODE_BMP=0]="UNICODE_BMP",X[X.UNICODE_SMP=1]="UNICODE_SMP";class Q{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=Q.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&Q.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>Q.toInt(t[e]),size:1}:{readUnicode:(t,e)=>Q.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;et.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${Q.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=Q.isFeatureSupported(Q.ADDED_LEXER_ACTIONS,n),l=Q.toInt(t[e++]),p=Q.toInt(t[e++]),m=new a.ATN(l,p),v=[],b=[],E=Q.toInt(t[e++]);for(let r=0;rt.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),P=[];for(let t of m.states){let e=t.ruleIndex>=0&&m.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r0;){let r=m.ruleToStartState[t].removeTransition(m.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}m.ruleToStartState[t].addTransition(new _.EpsilonTransition(e)),i.addTransition(new _.EpsilonTransition(r));let o=new d.BasicState;m.addState(o),o.addTransition(new c.AtomTransition(i,m.ruleToTokenType[t])),e.addTransition(new _.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=Q.inlineSetRules(m),t+=Q.combineChainedEpsilons(m);let e=0===m.grammarType;if(t+=Q.optimizeSets(m,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}return Q.identifyTailCalls(m),m}deserializeSets(t,e,r,n){let i=Q.toInt(t[e++]);for(let o=0;o=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new v.IntervalSet;for(let t=0;t0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r>>0}static toUUID(t,e){let r=Q.toInt32(t,e),n=Q.toInt32(t,e+2),i=Q.toInt32(t,e+4),o=Q.toInt32(t,e+6);return new V.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,a,l){let u=t.states[n];switch(e){case 1:return new _.EpsilonTransition(u);case 2:return 0!==a?new j.RangeTransition(u,G.Token.EOF,s):new j.RangeTransition(u,i,s);case 3:return new F.RuleTransition(t.states[i],s,a,u);case 4:return new M.PredicateTransition(u,i,s,0!==a);case 10:return new P.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,G.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new $.SetTransition(u,l[i]);case 8:return new L.NotSetTransition(u,l[i]);case 9:return new Y.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new x.InvalidState;case u.ATNStateType.BASIC:r=new d.BasicState;break;case u.ATNStateType.RULE_START:r=new K.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new H.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new z.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new B.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new q.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new D.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new b.LexerChannelAction(e);case 1:return new T.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return O.LexerMoreAction.INSTANCE;case 4:return S.LexerPopModeAction.INSTANCE;case 5:return new N.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new w.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}Q.BASE_SERIALIZED_UUID=V.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),Q.ADDED_LEXER_ACTIONS=V.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),Q.ADDED_UNICODE_SMP=V.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),Q.SUPPORTED_UUIDS=[Q.BASE_SERIALIZED_UUID,Q.ADDED_LEXER_ACTIONS,Q.ADDED_UNICODE_SMP],Q.SERIALIZED_UUID=Q.ADDED_UNICODE_SMP,n([C.NotNull],Q.prototype,"deserializationOptions",void 0),n([i(0,C.NotNull)],Q.prototype,"deserialize",null),n([i(0,C.NotNull)],Q.prototype,"markPrecedenceDecisions",null),n([C.NotNull,i(0,C.NotNull)],Q.prototype,"edgeFactory",null),e.ATNDeserializer=Q},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=d(t,i,n)),i}var o=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var s,a=Object.keys(r),l=(s={},a.forEach((function(t,e){s[t]=!0})),s);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var c,h="",T=!1,N=["{","}"];return g(r)&&(T=!0,N=["[","]"]),S(r)&&(h=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(h=" "+RegExp.prototype.toString.call(r)),E(r)&&(h=" "+Date.prototype.toUTCString.call(r)),O(r)&&(h=" "+p(r)),0!==a.length||T&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=T?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,h,N)):N[0]+h+N[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),R(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?d(t,l.value,null):d(t,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function v(t){return"string"==typeof t}function x(t){return void 0===t}function b(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"==typeof t&&null!==t}function E(t){return T(t)&&"[object Date]"===N(t)}function O(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function S(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=g,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=b,e.types.isRegExp=b,e.isObject=T,e.isDate=E,e.types.isDate=E,e.isError=O,e.types.isNativeError=O,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),w[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!T(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var C=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function L(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(C&&t[C]){var e;if("function"!=typeof(e=t[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,C,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;let i=r(2399);class o{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},592:(t,e,r)=>{var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch{return!0}},t.exports=i},642:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.htmlDecodeTree=void 0,e.htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t=>t.charCodeAt(0))))},655:t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}t.exports=e},659:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0})},755:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;let i=r(5922),o=r(9449),s=r(2399);class a extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},760:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),e.BlockEndState=a},811:(t,e)=>{function r(t){for(let e=1;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=r},934:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},960:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getTextBlock=l,e.extractPredicates=function(t){let e=(0,a.decodeHTML)(t),r=n.CharStreams.fromString(e),c=new i.ForgeLexer(r),h=new n.CommonTokenStream(c),d=new o.ForgeParser(h);d.buildParseTree=!0;let p=d.alloyModule(),f=new u;return s.ParseTreeWalker.DEFAULT.walk(f,p),f.predicateSkeletons.map((t=>{let r,n=t.predName,i=l(t.startLine,t.endLine,t.startColumn,t.endColumn,e),o=l(t.predBlock.startLine,t.predBlock.endLine,t.predBlock.startColumn,t.predBlock.endColumn,e);if(t.predArgsBlock){let n=l(t.predArgsBlock.startLine,t.predArgsBlock.endLine,t.predArgsBlock.startColumn,t.predArgsBlock.endColumn,e);n.startsWith("[")&&n.endsWith("]")&&(n=n.substring(1,n.length-1).trim()),r=n.split(",").map((t=>t.trim()))}return{name:n,args:r,body:o,predicateString:i}}))};let n=r(2221),i=r(5288),o=r(5395),s=r(2219),a=r(2049);function l(t,e,r,n,i){let o=i.split("\n"),s="",a=t===e;for(let i=t;i<=e;i++){let l=o[i-1];s+=i===t?a?l.substring(r,n):l.substring(r):i===e?l.substring(0,n):l,i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6869);class a extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},1002:t=>{t.exports=Function.prototype.apply},1064:(t,e,r)=>{var n=r(9612);t.exports=n.getPrototypeOf||null},1072:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;let o=r(2399),s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},1088:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;let o=r(2962),s=r(4274),a=r(8880),l=r(3258),u=r(6298),c=r(9709),h=r(7477),d=r(1492),p=r(2807),f=r(2662),g=r(6181),m=r(2399),y=r(5895),_=r(8859),v=r(8840),x=r(7760),b=r(4148),T=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let a=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR||(n!==d.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===d.IntStream.EOF)))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===d.IntStream.EOF&&e.index===this.startIndex)return x.Token.EOF;throw new g.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t "+n+" upon "+String.fromCharCode(r)),e?.setTarget(r,n)}addDFAState(t){b(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof v.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){10===t.LA(1)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};var E;n([m.NotNull],T.prototype,"prevAccept",void 0),n([i(0,m.NotNull)],T.prototype,"copyState",null),n([i(0,m.NotNull)],T.prototype,"match",null),n([m.Override],T.prototype,"reset",null),n([i(0,m.NotNull)],T.prototype,"matchATN",null),n([i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"execATN",null),n([i(0,m.NotNull)],T.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeTargetState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"getReachableConfigSet",null),n([i(0,m.NotNull)],T.prototype,"accept",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull),i(3,m.NotNull)],T.prototype,"getEpsilonTarget",null),n([i(0,m.NotNull)],T.prototype,"evaluatePredicate",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"captureSimState",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"addDFAState",null),n([m.NotNull],T.prototype,"getDFA",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"getText",null),n([i(0,m.NotNull)],T.prototype,"consume",null),n([m.NotNull],T.prototype,"getTokenName",null),T=n([i(0,m.NotNull)],T),e.LexerATNSimulator=T,(E=T=e.LexerATNSimulator||(e.LexerATNSimulator={})).debug=!1,E.dfa_debug=!1,E.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}},e.LexerATNSimulator=T},1093:t=>{var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1097:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;let i=r(1964),o=r(7477),s=r(2399),a=r(9984),l=r(360);class u extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){let e=t;return e.setParent(this),this.addAnyChild(e)}{let e=t,r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1173:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;let o=r(2399),s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},1189:(t,e,r)=>{var n=Array.prototype.slice,i=r(1093),o=Object.keys,s=o?function(t){return o(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1237:t=>{t.exports=EvalError},1284:function(t,e,r){var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;let s=r(7886),a=r(4274),l=r(6298),u=r(2433),c=r(585),h=r(4241),d=r(2399),p=r(7059),f=r(3161),g=r(7004),m=r(2356),y=r(4364);class _ extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;tthis.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=u,this.decisions[e].SLL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof m.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new g.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,o,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=o?o.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new s.AmbiguityInfo(this.currentDecision,this.currentState,o,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,o,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([d.Override,o(0,d.NotNull)],_.prototype,"adaptivePredict",null),i([d.Override],_.prototype,"getStartState",null),i([d.Override],_.prototype,"computeStartState",null),i([d.Override],_.prototype,"computeReachSet",null),i([d.Override],_.prototype,"getExistingTargetState",null),i([d.Override],_.prototype,"computeTargetState",null),i([d.Override],_.prototype,"evalSemanticContextImpl",null),i([d.Override],_.prototype,"reportContextSensitivity",null),i([d.Override],_.prototype,"reportAttemptingFullContext",null),i([d.Override,o(0,d.NotNull),o(5,d.NotNull),o(6,d.NotNull)],_.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=_},1333:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1384:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;let o=r(3357),s=r(2399),a=r(7760),l=r(1072),u=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},1405:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;let i=r(2399),o=r(659);class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},1492:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME=""},1514:t=>{t.exports=Math.abs},1533:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;let o=r(4148),s=r(5643),a=r(2399),l=r(5636);class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;tthis.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&t.size===this.size&&this.containsAll(t)}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){let t=new Array(this.size),e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},1668:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1838:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.xmlDecodeTree=void 0,e.xmlDecodeTree=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t=>t.charCodeAt(0))))},1862:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;let n=r(8240);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},1964:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;let i=r(2399),o=r(360);class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},2049:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLAttribute=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.DecodingMode=e.EntityDecoder=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.encodeXML=e.EncodingMode=e.EntityLevel=void 0,e.decode=u,e.decodeStrict=function(t,e=s.XML){var r;let i="number"==typeof e?{level:e}:e;return null!==(r=i.mode)&&void 0!==r||(i.mode=n.DecodingMode.Strict),u(t,i)},e.encode=function(t,e=s.XML){let{mode:r=a.Extensive,level:n=s.XML}="number"==typeof e?{level:e}:e;switch(r){case a.UTF8:return(0,o.escapeUTF8)(t);case a.Attribute:return(0,o.escapeAttribute)(t);case a.Text:return(0,o.escapeText)(t);case a.ASCII:return n===s.HTML?(0,i.encodeNonAsciiHTML)(t):(0,o.encodeXML)(t);case a.Extensive:default:return n===s.HTML?(0,i.encodeHTML)(t):(0,o.encodeXML)(t)}};let n=r(9299),i=r(2719),o=r(7366);var s,a,l;function u(t,e=s.XML){if(("number"==typeof e?e:e.level)===s.HTML){let r="object"==typeof e?e.mode:void 0;return(0,n.decodeHTML)(t,r)}return(0,n.decodeXML)(t)}(l=s||(e.EntityLevel=s={}))[l.XML=0]="XML",l[l.HTML=1]="HTML",function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"}(a||(e.EncodingMode=a={}));var c=r(7366);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var h=r(2719);Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var d=r(9299);Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},2193:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6869);class a extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},2205:(t,e,r)=>{var n=r(6743),i=r(1002),o=r(3144);t.exports=function(){return o(n,i,arguments)}},2219:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;let n=r(1964),i=r(360),o=r(5378);class s{walk(t,e){let r=[],s=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),s.push(l),l=0,a=a.getChild(0);else do{if(a instanceof o.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;let o=r(9449),s=r(2399),a=r(6369),l=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),e.FailedPredicateException=l},2299:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function k(t){return Object.keys(t).filter(I).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function D(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;let o=r(1533),s=r(8151),a=r(5636),l=r(2399),u=r(8055),c=r(659);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class d extends t{}t.Operator=d;let p=class r extends d{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e{Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},2431:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;let i=r(2399),o=r(7239),s=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},2433:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ContextSensitivityInfo=a},2464:(t,e,r)=>{var n=r(8452),i=r(6642);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2468:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;let o=r(9449),s=r(2399),a=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,s.NotNull)],a),e.InputMismatchException=a},2543:function(t,e,r){var n;t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",_="[object Date]",v="[object Error]",x="[object Function]",b="[object GeneratorFunction]",T="[object Map]",E="[object Number]",O="[object Object]",S="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",R="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",I="[object DataView]",k="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",K="[object Uint8Array]",U="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,V=RegExp(G.source),Y=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wt="["+bt+"]",Rt="["+At+"]",Ct="["+Tt+"]",Lt="\\d+",It="["+Et+"]",kt="["+Ot+"]",Dt="[^"+bt+At+Lt+Et+Ot+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Mt="[^"+bt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+St+"]",Ft="\\u200d",$t="(?:"+kt+"|"+Dt+")",Ht="(?:"+Ut+"|"+Dt+")",Bt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Ct+"|"+Pt+")?",zt="["+Nt+"]?",Vt=zt+Gt+"(?:"+Ft+"(?:"+[Mt,jt,Kt].join("|")+")"+zt+Gt+")*",Yt="(?:"+[It,jt,Kt].join("|")+")"+Vt,Wt="(?:"+[Mt+Ct+"?",Ct,jt,Kt,wt].join("|")+")",Xt=RegExp("['’]","g"),Qt=RegExp(Ct,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+Wt+Vt,"g"),Zt=RegExp([Ut+"?"+kt+"+"+Bt+"(?="+[Rt,Ut,"$"].join("|")+")",Ht+"+"+qt+"(?="+[Rt,Ut+$t,"$"].join("|")+")",Ut+"?"+$t+"+"+Bt,Ut+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Yt].join("|"),"g"),te=RegExp("["+Ft+bt+Tt+Nt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[k]=ie[D]=ie[P]=ie[M]=ie[j]=ie[K]=ie[U]=ie[F]=ie[$]=!0,ie[g]=ie[m]=ie[L]=ie[y]=ie[I]=ie[_]=ie[v]=ie[x]=ie[T]=ie[E]=ie[O]=ie[N]=ie[A]=ie[w]=ie[C]=!1;var oe={};oe[g]=oe[m]=oe[L]=oe[I]=oe[y]=oe[_]=oe[k]=oe[D]=oe[P]=oe[M]=oe[j]=oe[T]=oe[E]=oe[O]=oe[N]=oe[A]=oe[w]=oe[R]=oe[K]=oe[U]=oe[F]=oe[$]=!0,oe[v]=oe[x]=oe[C]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,le=parseInt,ue="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ce="object"==typeof self&&self&&self.Object===Object&&self,he=ue||ce||Function("return this")(),de=e&&!e.nodeType&&e,pe=de&&t&&!t.nodeType&&t,fe=pe&&pe.exports===de,ge=fe&&ue.process,me=function(){try{return pe&&pe.require&&pe.require("util").types||ge&&ge.binding&&ge.binding("util")}catch{}}(),ye=me&&me.isArrayBuffer,_e=me&&me.isDate,ve=me&&me.isMap,xe=me&&me.isRegExp,be=me&&me.isSet,Te=me&&me.isTypedArray;function Ee(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Oe(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Ce(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Ze(t,e){for(var r=t.length;r--&&Ue(e,t[r],0)>-1;);return r}var tr=qe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=qe({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+se[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),dr=function t(e){var r,n=(e=null==e?he:dr.defaults(he.Object(),e,dr.pick(he,re))).Array,it=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=n.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(r=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mt=Ct.toString,jt=It.call(Ot),Kt=he._,Ut=St("^"+It.call(kt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=fe?e.Buffer:i,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:i,qt=or(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Vt=wt.splice,Yt=$t?$t.isConcatSpreadable:i,Wt=$t?$t.iterator:i,Jt=$t?$t.toStringTag:i,te=function(){try{var t=ao(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),se=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,ue=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,de=Et.ceil,pe=Et.floor,ge=Ot.getOwnPropertySymbols,me=Ft?Ft.isBuffer:i,Me=e.isFinite,qe=wt.join,pr=or(Ot.keys,Ot),fr=Et.max,gr=Et.min,mr=it.now,yr=e.parseInt,_r=Et.random,vr=wt.reverse,xr=ao(e,"DataView"),br=ao(e,"Map"),Tr=ao(e,"Promise"),Er=ao(e,"Set"),Or=ao(e,"WeakMap"),Sr=ao(Ot,"create"),Nr=Or&&new Or,Ar={},wr=Mo(xr),Rr=Mo(br),Cr=Mo(Tr),Lr=Mo(Er),Ir=Mo(Or),kr=$t?$t.prototype:i,Dr=kr?kr.valueOf:i,Pr=kr?kr.toString:i;function Mr(t){if(Zs(t)&&!Hs(t)&&!(t instanceof Fr)){if(t instanceof Ur)return t;if(kt.call(t,"__wrapped__"))return jo(t)}return new Ur(t)}var jr=function(){function t(){}return function(e){if(!Js(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Kr(){}function Ur(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function $r(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function on(t,e,r,n,o,s){var a,l=1&e,u=2&e,c=4&e;if(r&&(a=o?r(t,n,o,s):r(t)),a!==i)return a;if(!Js(t))return t;var h,d,p,f=Hs(t);if(f){if(d=(h=t).length,p=new h.constructor(d),d&&"string"==typeof h[0]&&kt.call(h,"index")&&(p.index=h.index,p.input=h.input),a=p,!l)return Si(t,a)}else{var m=co(t),v=m==x||m==b;if(zs(t))return vi(t,l);if(m==O||m==g||v&&!o){if(a=u||v?{}:po(t),!l)return u?function(t,e){return Ni(t,uo(t),e)}(t,function(t,e){return t&&Ni(e,Ca(e),t)}(a,t)):function(t,e){return Ni(t,lo(t),e)}(t,tn(a,t))}else{if(!oe[m])return o?t:{};a=function(t,e,r){var n,i,o,s=t.constructor;switch(e){case L:return xi(t);case y:case _:return new s(+t);case I:return i=t,o=r?xi(i.buffer):i.buffer,new i.constructor(o,i.byteOffset,i.byteLength);case k:case D:case P:case M:case j:case K:case U:case F:case $:return bi(t,r);case T:return new s;case E:case w:return new s(t);case N:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new s;case R:return n=t,Dr?Ot(Dr.call(n)):{}}}(t,m,l)}}s||(s=new Gr);var S=s.get(t);if(S)return S;s.set(t,a),ia(t)?t.forEach((function(n){a.add(on(n,e,r,n,t,s))})):ta(t)&&t.forEach((function(n,i){a.set(i,on(n,e,r,i,t,s))}));var C=f?i:(c?u?to:Zi:u?Ca:Ra)(t);return Se(C||t,(function(n,i){C&&(n=t[i=n]),Qr(a,i,on(n,e,r,i,t,s))})),a}function sn(t,e,r){var n=r.length;if(null==t)return!n;for(t=Ot(t);n--;){var o=r[n],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function an(t,e,r){if("function"!=typeof t)throw new At(o);return Ao((function(){t.apply(i,r)}),e)}function ln(t,e,r,n){var i=-1,o=Re,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Le(e,We(r))),n?(o=Ce,s=!1):e.length>=200&&(o=Qe,s=!1,e=new qr(e));t:for(;++i-1},Hr.prototype.set=function(t,e){var r=this.__data__,n=Jr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Br.prototype.clear=function(){this.size=0,this.__data__={hash:new $r,map:new(br||Hr),string:new $r}},Br.prototype.delete=function(t){var e=oo(this,t).delete(t);return this.size-=e?1:0,e},Br.prototype.get=function(t){return oo(this,t).get(t)},Br.prototype.has=function(t){return oo(this,t).has(t)},Br.prototype.set=function(t,e){var r=oo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(t){return this.__data__.set(t,s),this},qr.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.clear=function(){this.__data__=new Hr,this.size=0},Gr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Gr.prototype.get=function(t){return this.__data__.get(t)},Gr.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!br||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Br(n)}return r.set(t,e),this.size=r.size,this};var un=Ri(yn),cn=Ri(_n,!0);function hn(t,e){var r=!0;return un(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function dn(t,e,r){for(var n=-1,o=t.length;++n0&&r(a)?e>1?fn(a,e-1,r,n,i):Ie(i,a):n||(i[i.length]=a)}return i}var gn=Ci(),mn=Ci(!0);function yn(t,e){return t&&gn(t,e,Ra)}function _n(t,e){return t&&mn(t,e,Ra)}function vn(t,e){return we(e,(function(e){return Ws(t[e])}))}function xn(t,e){for(var r=0,n=(e=gi(e,t)).length;null!=t&&re}function On(t,e){return null!=t&&kt.call(t,e)}function Sn(t,e){return null!=t&&e in Ot(t)}function Nn(t,e,r){for(var o=r?Ce:Re,s=t[0].length,a=t.length,l=a,u=n(a),c=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Le(d,We(e))),c=gr(d.length,c),u[l]=!r&&(e||s>=120&&d.length>=120)?new qr(l&&d):i}d=t[0];var p=-1,f=u[0];t:for(;++p=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));e--;)t[e]=t[e].value;return t}(Pn(t,(function(t,r,i){return{criteria:Le(e,(function(e){return e(t)})),index:++n,value:t}})))}function $n(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Vt.call(a,l,1),Vt.call(t,l,1);return t}function Bn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;go(i)?Vt.call(t,i,1):ai(t,i)}}return t}function qn(t,e){return t+pe(_r()*(e-t+1))}function Gn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function zn(t,e){return wo(Eo(t,e,el),t+"")}function Vn(t){return Vr(Ka(t))}function Yn(t,e){var r=Ka(t);return Lo(r,nn(e,0,r.length))}function Wn(t,e,r,n){if(!Js(t))return t;for(var o=-1,s=(e=gi(e,t)).length,a=s-1,l=t;null!=l&&++oo?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i>>1,s=t[o];null!==s&&!sa(s)&&(r?s<=e:s=200){var u=e?null:Gi(t);if(u)return ar(u);s=!1,i=Qe,l=new qr}else l=e?[]:a;t:for(;++n=n?t:Zn(t,e,r)}var _i=se||function(t){return he.clearTimeout(t)};function vi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function xi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function bi(t,e){var r=e?xi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ti(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,s=sa(t),a=e!==i,l=null===e,u=e==e,c=sa(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||n&&a&&u||!r&&u||!o)return 1;if(!n&&!s&&!c&&t1?r[o-1]:i,a=o>2?r[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&mo(r[0],r[1],a)&&(s=o<3?i:s,o=1),e=Ot(e);++n-1?o[s?e[a]:a]:i}}function Pi(t){return Ji((function(e){var r=e.length,n=r,s=Ur.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new At(o);if(s&&!l&&"wrapper"==ro(a))var l=new Ur([],!0)}for(n=l?n:r;++n1&&x.reverse(),p&&hl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&r?new qr:i;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Se(f,(function(r){var n="_."+r[0];e&r[1]&&!Re(t,n)&&t.push(n)})),t.sort()}((n=i.match(st))?n[1].split(at):[],r)))}function Co(t){var e=0,r=0;return function(){var n=mr(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,ns(t,r)}));function cs(t){var e=Mr(t);return e.__chain__=!0,e}function hs(t,e){return e(t)}var ds=Ji((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return rn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Fr&&go(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Ur(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),ps=Ai((function(t,e,r){kt.call(t,r)?++t[r]:en(t,r,1)})),fs=Di($o),gs=Di(Ho);function ms(t,e){return(Hs(t)?Se:un)(t,io(e,3))}function ys(t,e){return(Hs(t)?Ne:cn)(t,io(e,3))}var _s=Ai((function(t,e,r){kt.call(t,r)?t[r].push(e):en(t,r,[e])})),vs=zn((function(t,e,r){var i=-1,o="function"==typeof e,s=qs(t)?n(t.length):[];return un(t,(function(t){s[++i]=o?Ee(e,t,r):An(t,e,r)})),s})),xs=Ai((function(t,e,r){en(t,r,e)}));function bs(t,e){return(Hs(t)?Le:Pn)(t,io(e,3))}var Ts=Ai((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Es=zn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&mo(t,e[0],e[1])?e=[]:r>2&&mo(e[0],e[1],e[2])&&(e=[e[0]]),Fn(t,fn(e,1),[])})),Os=ue||function(){return he.Date.now()};function Ss(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Vi(t,u,i,i,i,i,e)}function Ns(t,e){var r;if("function"!=typeof e)throw new At(o);return t=da(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var As=zn((function(t,e,r){var n=1;if(r.length){var i=sr(r,no(As));n|=l}return Vi(t,n,e,r,i)})),ws=zn((function(t,e,r){var n=3;if(r.length){var i=sr(r,no(ws));n|=l}return Vi(e,n,t,r,i)}));function Rs(t,e,r){var n,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(o);function g(e){var r=n,o=s;return n=s=i,h=e,l=t.apply(o,r)}function m(t){var r=t-c;return c===i||r>=e||r<0||p&&t-h>=a}function y(){var t,r,n=Os();if(m(n))return _(n);u=Ao(y,(r=e-((t=n)-c),p?gr(r,a-(t-h)):r))}function _(t){return u=i,f&&n?g(t):(n=s=i,l)}function v(){var t,r=Os(),o=m(r);if(n=arguments,s=this,c=r,o){if(u===i)return h=t=c,u=Ao(y,e),d?g(t):l;if(p)return _i(u),u=Ao(y,e),g(c)}return u===i&&(u=Ao(y,e)),l}return e=fa(e)||0,Js(r)&&(d=!!r.leading,a=(p="maxWait"in r)?fr(fa(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f),v.cancel=function(){u!==i&&_i(u),h=0,n=c=s=u=i},v.flush=function(){return u===i?l:_(Os())},v}var Cs=zn((function(t,e){return an(t,1,e)})),Ls=zn((function(t,e,r){return an(t,fa(e)||0,r)}));function Is(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Is.Cache||Br),r}function ks(t){if("function"!=typeof t)throw new At(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Is.Cache=Br;var Ds=mi((function(t,e){var r=(e=1==e.length&&Hs(e[0])?Le(e[0],We(io())):Le(fn(e,1),We(io()))).length;return zn((function(n){for(var i=-1,o=gr(n.length,r);++i=e})),$s=wn(function(){return arguments}())?wn:function(t){return Zs(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},Hs=n.isArray,Bs=ye?We(ye):function(t){return Zs(t)&&Tn(t)==L};function qs(t){return null!=t&&Qs(t.length)&&!Ws(t)}function Gs(t){return Zs(t)&&qs(t)}var zs=me||fl,Vs=_e?We(_e):function(t){return Zs(t)&&Tn(t)==_};function Ys(t){if(!Zs(t))return!1;var e=Tn(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Ws(t){if(!Js(t))return!1;var e=Tn(t);return e==x||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Xs(t){return"number"==typeof t&&t==da(t)}function Qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Js(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zs(t){return null!=t&&"object"==typeof t}var ta=ve?We(ve):function(t){return Zs(t)&&co(t)==T};function ea(t){return"number"==typeof t||Zs(t)&&Tn(t)==E}function ra(t){if(!Zs(t)||Tn(t)!=O)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var na=xe?We(xe):function(t){return Zs(t)&&Tn(t)==N},ia=be?We(be):function(t){return Zs(t)&&co(t)==A};function oa(t){return"string"==typeof t||!Hs(t)&&Zs(t)&&Tn(t)==w}function sa(t){return"symbol"==typeof t||Zs(t)&&Tn(t)==R}var aa=Te?We(Te):function(t){return Zs(t)&&Qs(t.length)&&!!ie[Tn(t)]},la=Hi(Dn),ua=Hi((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(qs(t))return oa(t)?ur(t):Si(t);if(Wt&&t[Wt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Wt]());var e=co(t);return(e==T?ir:e==A?ar:Ka)(t)}function ha(t){return t?(t=fa(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=ha(t),r=e%1;return e==e?r?e-r:e:0}function pa(t){return t?nn(da(t),0,p):0}function fa(t){if("number"==typeof t)return t;if(sa(t))return d;if(Js(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Js(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=ft.test(t);return r||mt.test(t)?le(t.slice(2),r?2:8):pt.test(t)?d:+t}function ga(t){return Ni(t,Ca(t))}function ma(t){return null==t?"":oi(t)}var ya=wi((function(t,e){if(xo(e)||qs(e))Ni(e,Ra(e),t);else for(var r in e)kt.call(e,r)&&Qr(t,r,e[r])})),_a=wi((function(t,e){Ni(e,Ca(e),t)})),va=wi((function(t,e,r,n){Ni(e,Ca(e),t,n)})),xa=wi((function(t,e,r,n){Ni(e,Ra(e),t,n)})),ba=Ji(rn),Ta=zn((function(t,e){t=Ot(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&mo(e[0],e[1],o)&&(n=1);++r1),e})),Ni(t,to(t),r),n&&(r=on(r,7,Xi));for(var i=e.length;i--;)ai(r,e[i]);return r})),Da=Ji((function(t,e){return null==t?{}:$n(r=t,e,(function(t,e){return Sa(r,e)}));var r}));function Pa(t,e){if(null==t)return{};var r=Le(to(t),(function(t){return[t]}));return e=io(e),$n(t,r,(function(t,r){return e(t,r[0])}))}var Ma=zi(Ra),ja=zi(Ca);function Ka(t){return null==t?[]:Xe(t,Ra(t))}var Ua=Ii((function(t,e,r){return e=e.toLowerCase(),t+(r?Fa(e):e)}));function Fa(t){return Ya(ma(t).toLowerCase())}function $a(t){return(t=ma(t))&&t.replace(_t,tr).replace(Qt,"")}var Ha=Ii((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ba=Ii((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),qa=Li("toLowerCase"),Ga=Ii((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),za=Ii((function(t,e,r){return t+(r?" ":"")+Ya(e)})),Va=Ii((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ya=Li("toUpperCase");function Wa(t,e,r){return t=ma(t),(e=r?i:e)===i?(n=t,ee.test(n)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(lt)||[]}(t)):t.match(e)||[];var n}var Xa=zn((function(t,e){try{return Ee(t,i,e)}catch(t){return Ys(t)?t:new bt(t)}})),Qa=Ji((function(t,e){return Se(e,(function(e){e=Po(e),en(t,e,As(t[e],t))})),t}));function Ja(t){return function(){return t}}var Za=Pi(),tl=Pi(!0);function el(t){return t}function rl(t){return In("function"==typeof t?t:on(t,1))}var nl=zn((function(t,e){return function(r){return An(r,t,e)}})),il=zn((function(t,e){return function(r){return An(t,r,e)}}));function ol(t,e,r){var n=Ra(e),i=vn(e,n);null!=r||Js(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=vn(e,Ra(e)));var o=!(Js(r)&&"chain"in r&&!r.chain),s=Ws(t);return Se(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Ie([this.value()],arguments))})})),t}function sl(){}var al=Ui(Le),ll=Ui(Ae),ul=Ui(Pe);function cl(t){return yo(t)?Be(Po(t)):(e=t,function(t){return xn(t,e)});var e}var hl=$i(),dl=$i(!0);function pl(){return[]}function fl(){return!1}var gl,ml=Ki((function(t,e){return t+e}),0),yl=qi("ceil"),_l=Ki((function(t,e){return t/e}),1),vl=qi("floor"),xl=Ki((function(t,e){return t*e}),1),bl=qi("round"),Tl=Ki((function(t,e){return t-e}),0);return Mr.after=function(t,e){if("function"!=typeof e)throw new At(o);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Mr.ary=Ss,Mr.assign=ya,Mr.assignIn=_a,Mr.assignInWith=va,Mr.assignWith=xa,Mr.at=ba,Mr.before=Ns,Mr.bind=As,Mr.bindAll=Qa,Mr.bindKey=ws,Mr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},Mr.chain=cs,Mr.chunk=function(t,e,r){e=(r?mo(t,e,r):e===i)?1:fr(da(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=n(de(o/e));so?0:o+r),(n=n===i||n>o?o:da(n))<0&&(n+=o),n=r>n?0:pa(n);r>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!na(e))&&!(e=oi(e))&&nr(t)?yi(ur(t),0,r):t.split(e,r):[]},Mr.spread=function(t,e){if("function"!=typeof t)throw new At(o);return e=null==e?0:fr(da(e),0),zn((function(r){var n=r[e],i=yi(r,0,e);return n&&Ie(i,n),Ee(t,this,i)}))},Mr.tail=function(t){var e=null==t?0:t.length;return e?Zn(t,1,e):[]},Mr.take=function(t,e,r){return t&&t.length?Zn(t,0,(e=r||e===i?1:da(e))<0?0:e):[]},Mr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Zn(t,(e=n-(e=r||e===i?1:da(e)))<0?0:e,n):[]},Mr.takeRightWhile=function(t,e){return t&&t.length?ui(t,io(e,3),!1,!0):[]},Mr.takeWhile=function(t,e){return t&&t.length?ui(t,io(e,3)):[]},Mr.tap=function(t,e){return e(t),t},Mr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new At(o);return Js(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Rs(t,e,{leading:n,maxWait:e,trailing:i})},Mr.thru=hs,Mr.toArray=ca,Mr.toPairs=Ma,Mr.toPairsIn=ja,Mr.toPath=function(t){return Hs(t)?Le(t,Po):sa(t)?[t]:Si(Do(ma(t)))},Mr.toPlainObject=ga,Mr.transform=function(t,e,r){var n=Hs(t),i=n||zs(t)||aa(t);if(e=io(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Js(t)&&Ws(o)?jr(qt(t)):{}}return(i?Se:yn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Mr.unary=function(t){return Ss(t,1)},Mr.union=Zo,Mr.unionBy=ts,Mr.unionWith=es,Mr.uniq=function(t){return t&&t.length?si(t):[]},Mr.uniqBy=function(t,e){return t&&t.length?si(t,io(e,2)):[]},Mr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?si(t,i,e):[]},Mr.unset=function(t,e){return null==t||ai(t,e)},Mr.unzip=rs,Mr.unzipWith=ns,Mr.update=function(t,e,r){return null==t?t:li(t,e,fi(r))},Mr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:li(t,e,fi(r),n)},Mr.values=Ka,Mr.valuesIn=function(t){return null==t?[]:Xe(t,Ca(t))},Mr.without=is,Mr.words=Wa,Mr.wrap=function(t,e){return Ps(fi(e),t)},Mr.xor=os,Mr.xorBy=ss,Mr.xorWith=as,Mr.zip=ls,Mr.zipObject=function(t,e){return di(t||[],e||[],Qr)},Mr.zipObjectDeep=function(t,e){return di(t||[],e||[],Wn)},Mr.zipWith=us,Mr.entries=Ma,Mr.entriesIn=ja,Mr.extend=_a,Mr.extendWith=va,ol(Mr,Mr),Mr.add=ml,Mr.attempt=Xa,Mr.camelCase=Ua,Mr.capitalize=Fa,Mr.ceil=yl,Mr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=fa(r))==r?r:0),e!==i&&(e=(e=fa(e))==e?e:0),nn(fa(t),e,r)},Mr.clone=function(t){return on(t,4)},Mr.cloneDeep=function(t){return on(t,5)},Mr.cloneDeepWith=function(t,e){return on(t,5,e="function"==typeof e?e:i)},Mr.cloneWith=function(t,e){return on(t,4,e="function"==typeof e?e:i)},Mr.conformsTo=function(t,e){return null==e||sn(t,e,Ra(e))},Mr.deburr=$a,Mr.defaultTo=function(t,e){return null==t||t!=t?e:t},Mr.divide=_l,Mr.endsWith=function(t,e,r){t=ma(t),e=oi(e);var n=t.length,o=r=r===i?n:nn(da(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},Mr.eq=Ks,Mr.escape=function(t){return(t=ma(t))&&Y.test(t)?t.replace(z,er):t},Mr.escapeRegExp=function(t){return(t=ma(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Mr.every=function(t,e,r){var n=Hs(t)?Ae:hn;return r&&mo(t,e,r)&&(e=i),n(t,io(e,3))},Mr.find=fs,Mr.findIndex=$o,Mr.findKey=function(t,e){return je(t,io(e,3),yn)},Mr.findLast=gs,Mr.findLastIndex=Ho,Mr.findLastKey=function(t,e){return je(t,io(e,3),_n)},Mr.floor=vl,Mr.forEach=ms,Mr.forEachRight=ys,Mr.forIn=function(t,e){return null==t?t:gn(t,io(e,3),Ca)},Mr.forInRight=function(t,e){return null==t?t:mn(t,io(e,3),Ca)},Mr.forOwn=function(t,e){return t&&yn(t,io(e,3))},Mr.forOwnRight=function(t,e){return t&&_n(t,io(e,3))},Mr.get=Oa,Mr.gt=Us,Mr.gte=Fs,Mr.has=function(t,e){return null!=t&&ho(t,e,On)},Mr.hasIn=Sa,Mr.head=qo,Mr.identity=el,Mr.includes=function(t,e,r,n){t=qs(t)?t:Ka(t),r=r&&!n?da(r):0;var i=t.length;return r<0&&(r=fr(i+r,0)),oa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ue(t,e,r)>-1},Mr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:da(r);return i<0&&(i=fr(n+i,0)),Ue(t,e,i)},Mr.inRange=function(t,e,r){return e=ha(e),r===i?(r=e,e=0):r=ha(r),(n=t=fa(t))>=gr(o=e,s=r)&&n=-9007199254740991&&t<=h},Mr.isSet=ia,Mr.isString=oa,Mr.isSymbol=sa,Mr.isTypedArray=aa,Mr.isUndefined=function(t){return t===i},Mr.isWeakMap=function(t){return Zs(t)&&co(t)==C},Mr.isWeakSet=function(t){return Zs(t)&&"[object WeakSet]"==Tn(t)},Mr.join=function(t,e){return null==t?"":qe.call(t,e)},Mr.kebabCase=Ha,Mr.last=Yo,Mr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=da(r))<0?fr(n+o,0):gr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Ke(t,$e,o,!0)},Mr.lowerCase=Ba,Mr.lowerFirst=qa,Mr.lt=la,Mr.lte=ua,Mr.max=function(t){return t&&t.length?dn(t,el,En):i},Mr.maxBy=function(t,e){return t&&t.length?dn(t,io(e,2),En):i},Mr.mean=function(t){return He(t,el)},Mr.meanBy=function(t,e){return He(t,io(e,2))},Mr.min=function(t){return t&&t.length?dn(t,el,Dn):i},Mr.minBy=function(t,e){return t&&t.length?dn(t,io(e,2),Dn):i},Mr.stubArray=pl,Mr.stubFalse=fl,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xl,Mr.nth=function(t,e){return t&&t.length?Un(t,da(e)):i},Mr.noConflict=function(){return he._===this&&(he._=Kt),this},Mr.noop=sl,Mr.now=Os,Mr.pad=function(t,e,r){t=ma(t);var n=(e=da(e))?lr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Fi(pe(i),r)+t+Fi(de(i),r)},Mr.padEnd=function(t,e,r){t=ma(t);var n=(e=da(e))?lr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var o=_r();return gr(t+o*(e-t+ae("1e-"+((o+"").length-1))),e)}return qn(t,e)},Mr.reduce=function(t,e,r){var n=Hs(t)?ke:Ge,i=arguments.length<3;return n(t,io(e,4),r,i,un)},Mr.reduceRight=function(t,e,r){var n=Hs(t)?De:Ge,i=arguments.length<3;return n(t,io(e,4),r,i,cn)},Mr.repeat=function(t,e,r){return e=(r?mo(t,e,r):e===i)?1:da(e),Gn(ma(t),e)},Mr.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mr.result=function(t,e,r){var n=-1,o=(e=gi(e,t)).length;for(o||(o=1,t=i);++nh)return[];var r=p,n=gr(t,p);e=io(e),t-=p;for(var i=Ve(n,e);++r=s)return t;var l=r-lr(n);if(l<1)return n;var u=a?yi(a,0,l).join(""):t.slice(0,l);if(o===i)return u+n;if(a&&(l+=u.length-l),na(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,ma(dt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(oi(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+n},Mr.unescape=function(t){return(t=ma(t))&&V.test(t)?t.replace(G,hr):t},Mr.uniqueId=function(t){var e=++Dt;return ma(t)+e},Mr.upperCase=Va,Mr.upperFirst=Ya,Mr.each=ms,Mr.eachRight=ys,Mr.first=qo,ol(Mr,(gl={},yn(Mr,(function(t,e){kt.call(Mr.prototype,e)||(gl[e]=t)})),gl),{chain:!1}),Mr.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Mr[t].placeholder=Mr})),Se(["drop","take"],(function(t,e){Fr.prototype[t]=function(r){r=r===i?1:fr(da(r),0);var n=this.__filtered__&&!e?new Fr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:t+(n.__dir__<0?"Right":"")}),n},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:io(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Se(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(el)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=zn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return An(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(ks(io(t)))},Fr.prototype.slice=function(t,e){t=da(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Fr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=da(e))<0?r.dropRight(-e):r.take(e-t)),r)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},yn(Fr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=Mr[n?"take"+("last"==e?"Right":""):e],s=n||/^find/.test(e);o&&(Mr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,l=e instanceof Fr,u=a[0],c=l||Hs(e),h=function(t){var e=o.apply(Mr,Ie([t],a));return n&&d?e[0]:e};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new Fr(this);var m=t.apply(e,a);return m.__actions__.push({func:hs,args:[h],thisArg:i}),new Ur(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?n?m.value()[0]:m.value():m)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Mr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Hs(i)?i:[],t)}return this[r]((function(r){return e.apply(Hs(r)?r:[],t)}))}})),yn(Fr.prototype,(function(t,e){var r=Mr[e];if(r){var n=r.name+"";kt.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:e,func:r})}})),Ar[Mi(i,2).name]=[{name:"wrapper",func:i}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Hs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(t){for(var e,r=this;r instanceof Kr;){var n=jo(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},Mr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:hs,args:[Jo],thisArg:i}),new Ur(e,this.__chain__)}return this.thru(Jo)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Wt&&(Mr.prototype[Wt]=function(){return this}),Mr}();he._=dr,(n=function(){return dr}.call(e,r,e,t))===i||(t.exports=n)}.call(this)},2593:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;let i=r(2399);class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},2662:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;let o=r(8151),s=r(9057),a=r(5636),l=r(2399),u=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0})},2682:(t,e,r)=>{var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var s,a;arguments.length>=3&&(s=r),a=t,"[object Array]"===i.call(a)?function(t,e,r){for(var n=0,i=t.length;n{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeHTML=function(t){return s(o,t)},e.encodeNonAsciiHTML=function(t){return s(i.xmlReplacer,t)};let n=r(811),i=r(7366),o=/[\t\n\f!-,./:-@[-`{-}\u0080-\uFFFF]/g;function s(t,e){let r,o="",s=0;for(;null!==(r=t.exec(e));){let{index:a}=r;o+=e.substring(s,a);let l=e.charCodeAt(a),u=n.htmlTrie.get(l);if("object"==typeof u){if(a+1{Object.defineProperty(e,"__esModule",{value:!0})},2806:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;let i=r(7477),o=r(2399),s=r(7760);class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new c(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new u(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),o=new h(this.tokens,t,e,i.length,r);i.push(o)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){return this.lastRewriteTokenIndexes.get(t)??-1}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;en.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndexn.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i'}}n([o.Override],l.prototype,"toString",null),e.RewriteOperation=l;class u extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},2807:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;let i=r(5629),o=r(1862),s=r(7477),a=r(1492),l=r(1088),u=r(6181),c=r(2399),h=r(8831),d=r(7760);class p extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=p.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return d.Token.DEFAULT_CHANNEL}static get HIDDEN(){return d.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=d.Token.INVALID_TYPE,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=p.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=d.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=p.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===d.Token.INVALID_TYPE&&(this._type=t),this._type===p.SKIP)continue t}while(this._type===p.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=p.SKIP}more(){this._type=p.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,d.Token.EOF,void 0,d.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==d.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case d.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}p.DEFAULT_MODE=0,p.MORE=-2,p.SKIP=-3,p.MIN_CHAR_VALUE=0,p.MAX_CHAR_VALUE=1114111,n([c.Override],p.prototype,"nextToken",null),n([c.Override],p.prototype,"tokenFactory",null),n([c.Override],p.prototype,"inputStream",null),n([c.Override],p.prototype,"sourceName",null),n([c.Override],p.prototype,"line",null),n([c.Override],p.prototype,"charPositionInLine",null),e.Lexer=p},2813:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;let i=r(2399);class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,(o=e.ATNState||(e.ATNState={})).INVALID_STATE_NUMBER=-1},2962:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},3003:t=>{t.exports=function(t){return t!=t}},3053:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;let o=r(3357),s=r(2399),a=r(1072),l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.RangeTransition=l},3074:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;let o=r(1533),s=r(3258),a=r(8590),l=r(9709),u=r(324),c=r(2399),h=r(8055),d=r(4016),p=r(7435),f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof d.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=p.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},3093:(t,e,r)=>{var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3099:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;let n=r(8016);class i extends n.DecisionState{}e.BlockStartState=i},3126:(t,e,r)=>{var n=r(6743),i=r(9675),o=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},3144:(t,e,r)=>{var n=r(6743),i=r(1002),o=r(76),s=r(7119);t.exports=s||n.call(o,i)},3161:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;let o=r(2962),s=r(9202),a=r(1533),l=r(5754),u=r(4274),c=r(8880),h=r(3258),d=r(6298),p=r(7037),f=r(5369),g=r(6889),m=r(1405),y=r(8016),_=r(9709),v=r(8240),x=r(7477),b=r(1492),T=r(2399),E=r(3575),O=r(755),S=r(8055),N=r(1097),A=r(8859),w=r(6409),R=r(333),C=r(8840),L=r(3334),I=r(2356),k=r(1384),D=r(4364),P=r(7760),M=r(7435),j=r(4148),K=-2147483648,U=class t extends d.ATNSimulator{constructor(t,e){super(t),this.predictionMode=R.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(j(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(s,e,l,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);return null==e?void 0:new D.SimulatorState(r,e,!1,r)}return null==t.s0?void 0:new D.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(j(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?j(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new D.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=s.getContextTarget(this.getReturnState(l))),null==t){let t=new D.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(e,r,n,t)}j(null!=l),l=l.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}j(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=x.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new D.SimulatorState(o,s,i.useContext,l);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===d.ATNSimulator.ERROR){let t=new D.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,t)}s=u,this.isAcceptState(s,i.useContext)||a===b.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;j(!i.useContext);let a=s.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new D.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new w.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),d.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(j(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),j(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let d=null!=l&&this.userWantsCtxSensitive;if(d&&(d=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,o,d||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(d){j(!s),j(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new g.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;j(null!=o),o=o.parent,s=t}if(j(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new D.SimulatorState(e.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,o,r,i,n);l=e[0],o=e[1]}return l!==d.ATNSimulator.ERROR?(j(!i||!l.configs.dipsIntoOuterContext),new D.SimulatorState(e.outerContext,l,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let a,l,c=r.configs.toArray(),p=new h.ATNConfigSet;do{let e=!o||null!=n;e||(p.isOutermostConfigSet=!0);let r,d=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof C.RuleStopState){j(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===b.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t0);for(let t of r)p.add(t,s)}if(o&&l){p.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new v.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e0;){let t=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,e,t,l,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,a,l,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof C.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;tK),this.closureImpl(p,r,n,i,o,a,l,u-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let d=e.state;d.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let c=0;cK),s--,t.debug&&console.log("dips into outer ctx: "+m)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(j(m.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(m.outerContextDepth=m.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(m))continue;this.closureImpl(m,r,n,i,g,a,l,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:""}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(P.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new g.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==s)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new g.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=s}else if(o!==e){if(o!==a.nextSetBit(e+1)){i=!1;break}e=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,d=n[0].context;for(let t=1;t"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof k.SetTransition&&(e=(r instanceof E.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new O.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof C.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){j(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r&&(r=this.addDFAContextState(e,a.configs,t,s),j(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r)),a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){t?.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return j(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new _.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,a){if(t.debug||t.retry_debug){let t=x.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,a)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(j(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([T.NotNull],U.prototype,"predictionMode",void 0),n([T.NotNull],U.prototype,"getPredictionMode",null),n([i(0,T.NotNull)],U.prototype,"setPredictionMode",null),n([T.Override],U.prototype,"reset",null),n([i(0,T.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"getStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execDFA",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execATN",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"computeTargetState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([T.NotNull],U.prototype,"computeStartState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,T.NotNull),i(4,T.Nullable)],U.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable),i(3,T.NotNull),i(6,T.NotNull)],U.prototype,"closureImpl",null),n([T.NotNull],U.prototype,"getRuleName",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getEpsilonTarget",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"actionTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"precedenceTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"predTransition",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable)],U.prototype,"ruleTransition",null),n([i(0,T.NotNull)],U.prototype,"isConflicted",null),n([T.NotNull],U.prototype,"getTokenName",null),n([i(0,T.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"noViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,T.NotNull)],U.prototype,"configWithAltAtStopState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(4,T.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,T.Nullable),i(2,T.Nullable)],U.prototype,"setDFAEdge",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAContextState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"createDFAState",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,T.NotNull),i(5,T.NotNull),i(6,T.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,T.NotNull)],U),e.ParserATNSimulator=U},3196:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},3258:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;let i=r(3907),o=r(1533),s=r(8151),a=r(4274),l=r(8880),u=r(6889),c=r(2399),h=r(8055),d=r(8859),p=r(6409),f=r(2356),g=r(4148),m=r(659);class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function _(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class v{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=_(),this.unmerged=[]):(this.mergedConfigs=_(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=_(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");g(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new v(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;g(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=p.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=d.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;it.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],v.prototype,"getRepresentedAlternatives",null),n([c.Override],v.prototype,"size",null),n([c.Override],v.prototype,"isEmpty",null),n([c.Override],v.prototype,"contains",null),n([c.Override],v.prototype,Symbol.iterator,null),n([c.Override],v.prototype,"toArray",null),n([c.Override],v.prototype,"containsAll",null),n([c.Override],v.prototype,"clear",null),n([c.Override],v.prototype,"equals",null),n([c.Override],v.prototype,"hashCode",null),e.ATNConfigSet=v},3274:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;let n=r(5577);function i(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function o(t){let{startLine:e,startColumn:r,endLine:o,endColumn:s}=i(t);return new n.Block(e,r,o,s,[])}function s(t){let{startLine:e,startColumn:r,endLine:o,endColumn:s}=i(t);return new n.Expr(e,r,o,s,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=this.getAllNames(t.nameList()),u=t.mult()?.toStringTree(),c=t.sigExt()?.toStringTree(),h=t.block(),d=h?o(h):void 0;for(let t of l){let i=new n.Sig(e,r,s,a,t,d,c,u);this._sigs.push(i)}}exitPredDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name().text,u=t.paraDecls(),c=u?o(u):void 0,h=o(t.block()),d=new n.Predicate(e,r,s,a,l,c,h);this._predicates.push(d)}exitFunDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:o}=i(t),s=t.name().text,a=new Function(e,r,n,o,s);this._functions.push(a)}exitTestDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name()?.IDENTIFIER_TOK().text||Math.random().toString(36).substring(7),u=t.block(),c=u?o(u):void 0,h=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),p=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown",f=new n.Test(e,r,s,a,l,p,c,d,h);this._tests.push(f)}exitSatisfiabilityDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=s(t.expr()),u=t.scope()?.toStringTree(),c=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",d=new n.SatisfiabilityAssertionTest(e,r,o,a,l,h,c,u);this._satisfiabilityAssertions.push(d)}exitPropertyDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===l)throw new Error("Property relation must be either necessary or sufficient.");let u=s(t.expr()),c=t.name().text,h=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),p=new n.AssertionTest(e,r,o,a,c,u,l,d,h);this._assertions.push(p)}exitQuantifiedPropertyDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=i(t),u=!!t.DISJ_TOK(),c=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===c)throw new Error("Property relation must be either necessary or sufficient.");let h=t.name().text,d=s(t.expr()),p=t.exprList(),f=p?o(p):void 0,g=t.scope()?.toStringTree(),m=t.bounds()?.toStringTree(),y=t.quantDeclList(),_=y?o(y):void 0,v=new n.QuantifiedAssertionTest(e,r,a,l,h,d,c,u,_,m,g,f);this._quantifiedAssertions.push(v)}exitConsistencyDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===l)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let u="consistent"===l,c=t.name().text,h=s(t.expr()),d=t.scope()?.toStringTree(),p=t.bounds()?.toStringTree(),f=new n.ConsistencyAssertionTest(e,r,o,a,c,h,u,p,d);this._consistencyAssertions.push(f)}exitExampleDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name().text,u=o(t.expr()),c=o(t.bounds()),h=new n.Example(e,r,s,a,l,u,c);this._examples.push(h)}getAllNames(t){let e=[];return function t(r){r.name()&&e.push(r.name());let n=r.nameList();n&&t(n)}(t),e.map((t=>t.IDENTIFIER_TOK().text))}}},3303:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;let o=r(8291),s=r(2399),a=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TokenTagToken=a},3334:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),e.RuleTransition=a},3357:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;let o=r(8151),s=r(8240),a=r(7477),l=r(2807),u=r(5636),c=r(2399),h=r(7760);class d{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===d._COMPLETE_CHAR_SET&&(d._COMPLETE_CHAR_SET=d.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),d._COMPLETE_CHAR_SET.setReadonly(!0)),d._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==d._EMPTY_SET&&(d._EMPTY_SET=new d,d._EMPTY_SET.setReadonly(!0)),d._EMPTY_SET}static of(t,e=t){let r=new d;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.bs.b)n++;else if(l.a>s.a&&(t=new a.Interval(s.a,l.a-1)),l.b>1,i=this._intervals[n],o=i.a;if(i.bt))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof d&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"":e===h.Token.EPSILON?"":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;rn&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;let o=r(2813),s=r(7037),a=r(2262),l=r(2468),u=r(3357),c=r(755),h=r(8859),d=r(7760),p=r(2399);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(d.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===d.Token.EOF?"":n.getTextFromRange(e.startToken,e.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=d.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===d.Token.EOF?"":"";let o=r,s=t.inputStream.tryLT(-1);return o.type===d.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,d.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===d.Token.EOF?"":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(d.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==d.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([p.Override],f.prototype,"reset",null),n([i(0,p.NotNull)],f.prototype,"beginErrorCondition",null),n([p.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,p.NotNull)],f.prototype,"endErrorCondition",null),n([p.Override],f.prototype,"reportMatch",null),n([p.Override],f.prototype,"reportError",null),n([i(0,p.NotNull)],f.prototype,"notifyErrorListeners",null),n([p.Override],f.prototype,"recover",null),n([p.Override],f.prototype,"sync",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,p.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,p.NotNull)],f.prototype,"reportMissingToken",null),n([p.Override],f.prototype,"recoverInline",null),n([i(0,p.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,p.NotNull)],f.prototype,"singleTokenDeletion",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getMissingSymbol",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,p.NotNull)],f.prototype,"getSymbolText",null),n([i(0,p.NotNull)],f.prototype,"getSymbolType",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"escapeWSAndQuote",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},3530:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},3575:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;let o=r(2399),s=r(1384),a=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),e.NotSetTransition=a},3628:(t,e,r)=>{var n=r(8648),i=r(1064),o=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},3651:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,o){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},3696:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3714:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;let i=r(2399),o=r(1097);class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},3907:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;let n=r(1533);class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class o{constructor(t){this.backingStore=t instanceof o?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof o&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=o},3918:(t,e,r)=>{var n=r(5606);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=r(537).inspect,m=r(9597).codes.ERR_INVALID_ARG_TYPE;function y(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var _="",v="",x="",b="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function O(t){return g(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(N,t);var r,i,u,c,S=(r=N,i=h(),function(){var t,e=p(r);if(i){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function N(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,N),"object"!==f(t)||null===t)throw new m("options","Object",t);var r=t.message,i=t.operator,o=t.stackStartFn,s=t.actual,u=t.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=S.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(_="",v="",b="",x=""):(_="",v="",b="",x="")),"object"===f(s)&&null!==s&&"object"===f(u)&&null!==u&&"stack"in s&&s instanceof Error&&"stack"in u&&u instanceof Error&&(s=E(s),u=E(u)),"deepStrictEqual"===i||"strictEqual"===i)e=S.call(this,function(t,e,r){var i="",o="",s=0,a="",l=!1,u=O(t),c=u.split("\n"),h=O(e).split("\n"),d=0,p="";if("strictEqual"===r&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var g=c[0].length+h[0].length;if(g<=10){if(!("object"===f(t)&&null!==t||"object"===f(e)&&null!==e||0===t&&0===e))return"".concat(T[r],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",d),"^"),d=0)}}for(var m=c[c.length-1],E=h[h.length-1];m===E&&(d++<2?a="\n ".concat(m).concat(a):i=m,c.pop(),h.pop(),0!==c.length&&0!==h.length);)m=c[c.length-1],E=h[h.length-1];var S=Math.max(c.length,h.length);if(0===S){var N=u.split("\n");if(N.length>30)for(N[26]="".concat(_,"...").concat(b);N.length>27;)N.pop();return"".concat(T.notIdentical,"\n\n").concat(N.join("\n"),"\n")}d>3&&(a="\n".concat(_,"...").concat(b).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var A=0,w=T[r]+"\n".concat(v,"+ actual").concat(b," ").concat(x,"- expected").concat(b),R=" ".concat(_,"...").concat(b," Lines skipped");for(d=0;d1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(h[d-2]),A++),o+="\n ".concat(h[d-1]),A++),s=d,i+="\n".concat(x,"-").concat(b," ").concat(h[d]),A++;else if(h.length1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(v,"+").concat(b," ").concat(c[d]),A++;else{var L=h[d],I=c[d],k=I!==L&&(!y(I,",")||I.slice(0,-1)!==L);k&&y(L,",")&&L.slice(0,-1)===I&&(k=!1,I+=","),k?(C>1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(v,"+").concat(b," ").concat(I),i+="\n".concat(x,"-").concat(b," ").concat(L),A+=2):(o+=i,i="",1!==C&&0!==d||(o+="\n ".concat(I),A++))}if(A>20&&d30)for(d[26]="".concat(_,"...").concat(b);d.length>27;)d.pop();e=1===d.length?S.call(this,"".concat(h," ").concat(d[0])):S.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var p=O(s),g="",A=T[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(T[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(O(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(A,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),e=S.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=c,e.generatedMessage=!r,Object.defineProperty(l(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=s,e.expected=u,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(l(e),o),e.stack,e.name="AssertionError",a(e)}return u=N,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return g(this,o(o({},e),{},{customInspect:!1,depth:0}))}}])&&function(t,e){for(var r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerChannelAction=a},4016:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;let i=r(7037),o=r(6889),s=r(8016),a=r(2399);class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},4035:(t,e,r)=>{var n,i=r(6556),o=r(9092)(),s=r(9957),a=r(5795);if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},h={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=c),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{l(t,h)}catch(t){return t===u}}}else{var d=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===d(t)}}t.exports=n},4039:(t,e,r)=>{var n=typeof Symbol<"u"&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4133:(t,e,r)=>{var n=r(487),i=r(8452),o=r(3003),s=r(6642),a=r(2464),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},4148:(t,e,r)=>{var n=r(5606);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r(9597).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,p=r(3918),f=r(537).inspect,g=r(537).types,m=g.isPromise,y=g.isRegExp,_=r(9133)(),v=r(9394)(),x=r(8075)("RegExp.prototype.test");function b(){var t=r(2299);o=t.isDeepEqual,s=t.isDeepStrictEqual}var T=!1,E=t.exports=A,O={};function S(t){throw t.message instanceof Error?t.message:new p(t)}function N(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;let i=r(2399),o=r(360),s=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},4241:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ErrorInfo=a},4274:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;let o=r(3907),s=r(3074),a=r(3357),l=r(9803),u=r(9462),c=r(2399),h=r(8055),d=r(8859),p=r(7760),f=r(4148),g=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(p.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(p.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(p.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(p.Token.EPSILON),r=r._parent}return i.contains(p.Token.EPSILON)&&o.add(p.Token.EOF),o}};n([c.NotNull],g.prototype,"states",void 0),n([c.NotNull],g.prototype,"decisionToState",void 0),n([c.NotNull],g.prototype,"modeNameToStartState",void 0),n([c.NotNull],g.prototype,"modeToStartState",void 0),n([c.NotNull],g.prototype,"decisionToDFA",void 0),n([c.NotNull],g.prototype,"modeToDFA",void 0),n([c.NotNull],g.prototype,"nextTokens",null),n([i(0,c.NotNull)],g.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],g.prototype,"defineMode",null),n([i(0,c.NotNull)],g.prototype,"defineDecisionState",null),n([c.NotNull],g.prototype,"getExpectedTokens",null),g=n([i(0,c.NotNull)],g),e.ATN=g,(g=e.ATN||(e.ATN={})).INVALID_ALT_NUMBER=0,e.ATN=g},4275:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},4283:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,(l=a=e.LexerPopModeAction||(e.LexerPopModeAction={})).INSTANCE=new l},4364:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;let o=r(2399),s=r(1097),a=class{constructor(t,e,r,n){this.outerContext=t??s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),e.SimulatorState=a},4459:t=>{t.exports=Number.isNaN||function(t){return t!=t}},4520:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},4605:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},4650:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.WildcardTransition=a},4699:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;let n=r(5585),i=r(6684);function o(t){let e=new Set;for(let r of t.values())for(let t of r)e.add(t);return e}class s extends n.AbstractParseTreeVisitor{constructor(t,e,r){super(),this.datum=t,this.instanceIndex=e,this.instanceData=this.datum.parsed.instances[this.instanceIndex],this.predicates=r}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(let[r,n]of e.entries()){t.has(r)||t.set(r,new Set);let e=t.get(r);for(let t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,o(e));let n=e.get(t);if(void 0!==r)for(let t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){let e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(let r of t.expr()){let t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){let e=t.name().text,r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([t.name().text])}getQuantDeclVarNames(t){let e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");let n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(let t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected to quantify over something!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=o(e),s=new Set;for(let t of i)r.has(t)||s.add(t);return e.set(t,s),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){let e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr16(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=o(e),s=new Set;for(let t of i)r.has(t)||s.add(t);return e.set(t,s),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");let r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{let r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}isPredicateName(t){return this.predicates.some((e=>e.name===t))}visitName(t){let e=t.IDENTIFIER_TOK().text;if("true"===e||"false"===e)return this.defaultResult();if(this.isPredicateName(e))return this.defaultResult();let r=Object.keys(this.instanceData.types).map((t=>this.instanceData.types[t].id));if(r.includes(e))return this.defaultResult();for(let t of r)if(this.instanceData.types[t].atoms.map((t=>t.id)).includes(e))return this.defaultResult();let n=Object.keys(this.instanceData.relations);for(let t of n)if(this.instanceData.relations[t].name===e)return this.defaultResult();if(i.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();let o=this.defaultResult();return o.set(t,new Set([e])),o}}e.ForgeExprFreeVariableFinder=s},4776:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;let o=r(2399),s=r(7760),a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.RuleTagToken=a},4864:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;let o=r(7442),s=r(6776),a=r(5411),l=r(309),u=r(821),c=r(2399),h=r(9278),d=r(9274),p=r(1097),f=r(8571),g=r(5920),m=r(9449),y=r(5378),_=r(4776),v=r(9086),x=r(360),b=r(6947),T=r(7760),E=r(3303);class O{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r,n=this.tokenize(t),i=new l.ListTokenSource(n),s=new a.CommonTokenStream(i),u=this._parser,c=new d.ParserInterpreter(u.grammarFileName,u.vocabulary,u.ruleNames,u.getATNWithBypassAlts(),s);try{c.errorHandler=new o.BailErrorStrategy,r=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof m.RecognitionException?t:t instanceof Error?new O.CannotInvokeStartRule(t):t}if(s.LA(1)!==T.Token.EOF)throw new O.StartRuleDoesNotConsumeFullPattern;return new g.ParseTreePattern(this,t,e,r)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof x.TerminalNode&&e instanceof x.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof E.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);let i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof p.ParserRuleContext&&e instanceof p.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);let e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+t);if(i.length=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new b.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new b.TextChunk(e))}for(let e=0;e=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new v.TagChunk(l,r)),e+10){let e=o[s-1]+this.stop.length;if(e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},5116:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5288:function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],d._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],d.VOCABULARY=new c.VocabularyImpl(d._LITERAL_NAMES,d._SYMBOLIC_NAMES,[]),d._serializedATNSegments=2,d._serializedATNSegment0='줝쪺֍꾺体؇쉁o̥\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tnî\n\fñ\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ȇ\n:;;;;<<<<<<<Ȓ\n<==========ȝ\n=>>>>>??????ȩ\n?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDDɍ\nDEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\]]^^_____˃\n_```aaabbbccccddddeeeeeeeffgghhˢ\nh\rhhˣiii˨\ni\fii˫\vijjˮ\nj\rjj˯jjkkkkk˸\nk\fkk˻\vkkklllll̃\nl\fll̆\vlllmmmmm̎\nm\fmm̑\vmmmmmmnnnnnnnn̟\nn\fnn̢\vnnn̏o\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏiÑjÓkÕl×mÙnÛo\b$$^^2;&&11C\\aac|&&1;C\\aac|\v\f""\f\f̳\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÓÕ×ÙÛÝâä\tæ\vé\rôøāąćĉđĔĖě!Ġ#Ĥ%Ĩ\'Ĭ)ı+ķ-ļ/ľ1ń3ʼn5ŋ7ŏ9ő;œ=Ś?ŞAŤCŨEŬGŴIŹKžMƃOƅQƈSƌUƒWƚYƦ[Ʈ]Ƴ_ƺaǀcǂedžgǑiǛkǦmdzoǸqǼsȅuȇwȑyȜ{Ȟ}ȨȪȰƒȸ…Ⱦ‡Ɍ‰Ɏ‹ɕɠɦ‘ɭ“ɲ•ɿ—ʁ™ʄ›ʆʉŸʌ¡ʎ£ʐ¥ʒ§ʔ©ʖ«ʘ­ʝ¯ʣ±ʨ³ʭµʵ·ʸ¹ʺ»ʼ½˂¿˄ÁˇÃˊÅˍÇˑÉ˕˘Í˞ÏˡÑ˥Ó˭Õ˳×˾Ù̉Û̗ÝÞqÞßrßàgàápáâã]ãäå_å\bæçcçèuè\néï$êî\nëì^ìî\víêíëîñïíïððòñïòó$ó\fôõxõöcö÷t÷øùcùúdúûuûüvüýtýþcþÿeÿĀvĀāĂuĂăkăĄiĄąĆ}ĆćĈĈĉĊgĊċzċČvČčgčĎpĎďfďĐuĐđĒkĒēpēĔĕ-ĕĖėnėĘqĘępęĚgĚěĜuĜĝqĝĞoĞğgğ ĠġqġĢpĢģgģ"ĤĥvĥĦyĦħqħ$ĨĩuĩĪgĪīvī&ĬĭhĭĮwĮįpįİeİ(ıIJrIJijhijĴwĴĵpĵĶeĶ*ķĸfĸĹkĹĺuĺĻlĻ,ļĽ<Ľ.ľĿyĿŀjŀŁgŁłcłŃvŃ0ńŅrŅņtņŇgŇňfň2ʼnŊ0Ŋ4ŋŌhŌōwōŎpŎ6ŏŐ*Ő8őŒ+Œ:œŔcŔŕuŕŖuŖŗgŗŘtŘřvř<ŚśtśŜwŜŝpŝ>ŞşeşŠjŠšgšŢeŢţmţ@ŤťhťŦqŦŧtŧBŨũdũŪwŪūvūDŬŭgŭŮzŮůcůŰeŰűvűŲnŲų{ųFŴŵpŵŶqŶŷpŷŸgŸHŹźwźŻpŻżkżŽxŽJžſkſƀfƀƁgƁƂpƂLƃƄ/ƄNƅƆkƆƇuƇPƈƉuƉƊcƊƋvƋRƌƍwƍƎpƎƏuƏƐcƐƑvƑTƒƓvƓƔjƔƕgƕƖqƖƗtƗƘgƘƙoƙVƚƛhƛƜqƜƝtƝƞiƞƟgƟƠaƠơgơƢtƢƣtƣƤqƤƥtƥXƦƧeƧƨjƨƩgƩƪeƪƫmƫƬgƬƭfƭZƮƯvƯưgưƱuƱƲvƲ\\ƳƴgƴƵzƵƶrƶƷgƷƸeƸƹvƹ^ƺƻuƻƼwƼƽkƽƾvƾƿgƿ`ǀǁ~ǁbǂǃcǃDŽnDŽDžnDžddžLJuLJLjwLjljhljNJhNJNjkNjnjenjǍkǍǎgǎǏpǏǐvǐfǑǒpǒǓgǓǔeǔǕgǕǖuǖǗuǗǘcǘǙtǙǚ{ǚhǛǜeǜǝqǝǞpǞǟuǟǠkǠǡuǡǢvǢǣgǣǤpǤǥvǥjǦǧkǧǨpǨǩeǩǪqǪǫpǫǬuǬǭkǭǮuǮǯvǯǰgǰDZp',d._serializedATNSegment1="DZDzvDzldzǴyǴǵkǵǶvǶǷjǷnǸǹnǹǺgǺǻvǻpǼǽdǽǾkǾǿpǿȀfȀrȁȂ~ȂȆ~ȃȄqȄȆtȅȁȅȃȆtȇȈzȈȉqȉȊtȊvȋȌ>Ȍȍ?ȍȒ@ȎȏkȏȐhȐȒhȑȋȑȎȒxȓȔkȔȕoȕȖrȖȗnȗȘkȘșgșȝuȚț?țȝ@ȜȓȜȚȝzȞȟgȟȠnȠȡuȡȢgȢ|ȣȤ(Ȥȩ(ȥȦcȦȧpȧȩfȨȣȨȥȩ~ȪȫwȫȬpȬȭvȭȮkȮȯnȯ€ȰȱtȱȲgȲȳnȳȴgȴȵcȵȶuȶȷgȷ‚ȸȹuȹȺkȺȻpȻȼeȼȽgȽ„ȾȿvȿɀtɀɁkɁɂiɂɃiɃɄgɄɅtɅɆgɆɇfɇ†Ɉɍ#ɉɊpɊɋqɋɍvɌɈɌɉɍˆɎɏcɏɐnɐɑyɑɒcɒɓ{ɓɔuɔŠɕɖgɖɗxɗɘgɘəpəɚvɚɛwɛɜcɜɝnɝɞnɞɟ{ɟŒɠɡcɡɢhɢɣvɣɤgɤɥtɥŽɦɧdɧɨgɨɩhɩɪqɪɫtɫɬgɬɭɮqɮɯpɯɰeɰɱgɱ’ɲɳjɳɴkɴɵuɵɶvɶɷqɷɸtɸɹkɹɺeɺɻcɻɼnɼɽnɽɾ{ɾ”ɿʀ%ʀ–ʁʂ-ʂʃ-ʃ˜ʄʅ(ʅšʆʇ>ʇʈ<ʈœʉʊ<ʊʋ@ʋžʌʍ)ʍ ʎʏ€ʏ¢ʐʑ`ʑ¤ʒʓ,ʓ¦ʔʕBʕ¨ʖʗbʗªʘʙvʙʚjʚʛkʛʜuʜ¬ʝʞuʞʟgʟʠzʠʡrʡʢtʢ®ʣʤkʤʥpʥʦuʦʧvʧ°ʨʩgʩʪxʪʫcʫʬnʬ²ʭʮgʮʯzʯʰcʰʱoʱʲrʲʳnʳʴgʴ´ʵʶ/ʶʷ@ʷ¶ʸʹ?ʹ¸ʺʻ>ʻºʼʽ@ʽ¼ʾʿ>ʿ˃?ˀˁ?ˁ˃>˂ʾ˂ˀ˃¾˄˅@˅ˆ?ˆÀˇˈpˈˉkˉÂˊˋpˋˌqˌÄˍˎuˎˏwˏːoːÆˑ˒K˒˓p˓˔v˔È˕˖q˖˗r˗˘v˘˙k˙˚q˚˛p˛Ê˜˝.˝Ì˞˟1˟Îˠˢ\tˡˠˢˣˣˡˣˤˤÐ˥˩\t˦˨\t˧˦˨˫˩˧˩˪˪Ò˫˩ˬˮ\t˭ˬˮ˯˯˭˯˰˰˱˱˲\bj˲Ô˳˴1˴˵1˵˹˶˸\n˷˶˸˻˹˷˹˺˺˼˻˹˼˽\bk˽Ö˾˿/˿̀/̀̄́̃\n̂́̃̆̄̂̄̅̅̇̆̄̇̈\bl̈Ø̉̊1̊̋,̋̏̌̎\v̍̌̎̑̏̐̏̍̐̒̑̏̒̓,̓̔1̖̔̕̕\bm̖Ú̗̘%̘̙n̙̚c̛̚p̛̜i̜̠̝̟\n̢̡̡̢̞̝̟̠̞̠̣̠̣̤\bn̤ÜíïȅȑȜȨɌ˂ˣ˩˯˹̠̄̏\b",d._serializedATN=h.join([d._serializedATNSegment0,d._serializedATNSegment1],"")},5345:t=>{t.exports=URIError},5369:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;let o=r(3357),s=r(2399),a=r(1072),l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.AtomTransition=l},5378:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},5395:function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],_._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],_.VOCABULARY=new m.VocabularyImpl(_._LITERAL_NAMES,_._SYMBOLIC_NAMES,[]),_._serializedATNSegments=2,_._serializedATNSegment0="줝쪺֍꾺体؇쉁oϼ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tV¯\n´\n¸\nÀ\n\fÃ\vÆ\n\fÉ\vÌ\n\fÏ\vÑ\nÙ\nÝ\nã\nå\nø\nû\nþ\nā\nĆ\nĊ\nĎ\n\b\b\b\b\b\b\bĖ\n\b\f\b\bę\v\b\bě\n\b\t\t\n\n\v\v\f\fĤ\n\f\f\f\f\fĩ\n\f\f\f\r\rĮ\n\r\r\r\r\rij\n\r\r\rĸ\nŅ\nʼn\nō\nŖ\nś\nŞ\nŢ\nũ\nŮ\nű\nŵ\nź\nž\nƁ\nƅ\nƋ\nƏ\nƕ\n\fƘ\vƠ\nƤ\nƧ\nư\nƳ\nƺ\nƾ\nǃ\nǐ\nǓ\nǗ\nǠ\nǤ\nǭ\nDZ\nǹ\n\fǼ\vȆ\n   Ȋ\n     ȏ\n !!\"\"\"\"###ș\n#\f##Ȝ\v###$$$$ȣ\n$%%%%%ȩ\n%&&&ȭ\n&&&&&Ȳ\n&\f&&ȵ\v&&&&&Ⱥ\n&''''''Ɂ\n'''Ʉ\n'(())))))ɍ\n)******ɔ\n*++++++ɛ\n+,,,,,,ɢ\n,------ɩ\n-......ɰ\n.//////ɷ\n/000000ɾ\n0111111111111ʋ\n11111ʐ\n12222222ʘ\n2\f22ʛ\v23333333ʣ\n3\f33ʦ\v34444444ʮ\n4\f44ʱ\v45555555ʹ\n55ʻ\n56666666˃\n6\f66ˆ\v6777777777777777777˙\n78888888888888888˪\n8999999˱\n99999˶\n9\f99˹\v9::::˾\n:;;;;;;;̆\n;\f;;̉\v;<<<<̎\n<=======̖\n=\f==̙\v=>>>>>>>̡\n>\f>>̤\v>????????̭\n?\f??̰\v?@@@@@@@̸\n@\f@@̻\v@AAAAAAAAAͅ\nA\fAA͈\vABBBBBBBB͑\nBBBBB͖\nB\fBB͙\vBCCCCCC͠\nC\fCCͣ\vCDDDDͨ\nDEEEEEEEEEEEEEEEEEEEͼ\nEFFFFFF΃\nFGGHHIIIII΍\nIJJKKKLLLLLLLMMMMMMNNNNNNΦ\nNOOPPPά\nP\fPPί\vPPPPγ\nPPPζ\nPQQQQQQν\nQRRRRRRRRφ\nRSSSSSSSώ\nS\rSSϏSϒ\nSTTTTTTTϚ\nTTTTTϟ\nT\fTTϢ\vTUUUUUUUϪ\nUUUUUϯ\nU\fUUϲ\vUVVVVVVVϺ\nVVbdfjptxz|~€‚„¦¨W\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª !*.*+--4567))]bcc((OPRT\\\\ggю¬»Ð\bä\n÷\fúĚĜĞĠģĭķľŀ ŝ\"ş$Ũ&Ź(Ɗ*ƒ,ƣ.Ʀ0Ʋ2ƴ4ƿ6ǘ8ǥ:Dz<ȅ>ȉ@ȐBȒDȖFȢHȨJȹLȻNɅPɌRɓTɚVɡXɨZɯ\\ɶ^ɽ`ʏbʑdʜfʧhʺjʼl˘n˩p˫r˽t˿v̍x̏z̚|̥~̱€̼‚͐„͚†ͧˆͻŠ΂Œ΄ŽΆΈ’Ύ”ΐ–Γ˜ΚšΥœΧžε μ¢υ¤ϑ¦ϙ¨ϩªϹ¬®­¯®­®¯¯³°±J&±²²´³°³´´µµ·N(¶¸ ·¶·¸¸¹¹ºD#º»¼`1¼½½¾À\b¿¾ÀÃÁ¿ÁÂÂÇÃÁÄÆ\nÅÄÆÉÇÅÇÈÈÑÉÇÊÌ”KËÊÌÏÍËÍÎÎÑÏÍÐÁÐÍÑÒÓÓØJ&ÔÕÕÖR*Ö××ÙØÔØÙÙÜÚÛÛÝN(ÜÚÜÝÝåÞßßâàááãN(âàâããåäÒäÞå\tæø\fçøèøéø\"êø$ëø(ìøŒGíø˜Mîø’JïøL'ðøIñø–Lòø6óø4ôø2õø8öø:÷æ÷ç÷è÷é÷ê÷ë÷ì÷í÷î÷ï÷ð÷ñ÷ò÷ó÷ô÷õ÷öø\vùû\búùúûûýüþ\týüýþþĀÿā\tĀÿĀāāĂĂă\năąP)ĄĆ\bąĄąĆĆććĉ\vĈĊX-ĉĈĉĊĊċċč\fČĎD#čČčĎĎ\rďĐ\rĐěJ&đĒĒėJ&ēĔĔĖJ&ĕēĖęėĕėĘĘěęėĚďĚđěĜĝ\tĝĞğ\tğĠġ\tġĢĤģĢģĤĤĥĥĦP)ĦĨħĩ\vĨħĨĩĩĪĪī`1īĬĮĭĬĭĮĮįįİP)İIJıijIJıIJijijĴĴĵ`1ĵĶĸ\bķĶķĸĸĹĹĺP)ĺĻĻļ\nļĽŠFĽľĿĿŀńŁłJ&łŃŃŅńŁńŅŅņņňN(Ňʼn ňŇňʼnʼnŊŊŌŋō\vŌŋŌōōŎŎŏ`1ŏŐ\vŐő`1őŒ\fŒœŕŔŖT+ŕŔŕŖŖŗŗŞŘŚřśT+ŚřŚśśŜŜŞŝœŝŘŞ!şšŠŢN(šŠšŢŢţţŤD#Ť#ťŦN(ŦŧŧũŨťŨũũŪŪŭ\tūŮJ&ŬŮD#ŭūŭŬŭŮŮŰůű,ŰůŰűűŴŲų\"ųŵžPŴŲŴŵŵ%ŶŷN(ŷŸŸźŹŶŹźźŽŻžJ&żžD#ŽŻŽżžƀſƁ,ƀſƀƁƁƄƂƃ\"ƃƅžPƄƂƄƅƅƆƆƇ)Ƈƈ\tƈ'ƉƋ/ƊƉƊƋƋƌƌƎ0ƍƏN(ƎƍƎƏƏƐƐƑ*Ƒ)ƒƖ\vƓƕ&ƔƓƕƘƖƔƖƗƗƙƘƖƙƚ\fƚ+ƛƜ\"ƜƟœOƝƞ#ƞƠ\\/ƟƝƟƠƠƤơƢ\"ƢƤ\\/ƣƛƣơƤ-ƥƧ$ƦƥƦƧƧƨƨƩœOƩƪJ&ƪ/ƫƳ%ƬƳ&ƭƳ'Ʈư(ƯƮƯưưƱƱƳœOƲƫƲƬƲƭƲƯƳ1ƴƵƵƶ`1ƶƷ)Ʒƹ\tƸƺ,ƹƸƹƺƺƽƻƼ\"",_._serializedATNSegment1='ƼƾžPƽƻƽƾƾ3ƿǀǀǂ3ǁǃǂǁǂǃǃDŽDŽDžV,Dždž2džLJ`1LJLj)Ljlj\t\bljNJ"NJǏN(NjnjnjǍ^0ǍǎǎǐǏNjǏǐǐǒǑǓ,ǒǑǒǓǓǖǔǕ"ǕǗžPǖǔǖǗǗ5ǘǙǙǚ`1ǚǛ)Ǜǜ\t\bǜǝ"ǝǟN(ǞǠ,ǟǞǟǠǠǣǡǢ"ǢǤžPǣǡǣǤǤ7ǥǦǦǧ`1ǧǨ)Ǩǩ\t\tǩǪ8ǪǬN(ǫǭ,ǬǫǬǭǭǰǮǯ"ǯDZžPǰǮǰDZDZ9Dzdz/dzǴ1Ǵǵ"ǵǶN(ǶǺ\vǷǹ<ǸǷǹǼǺǸǺǻǻǽǼǺǽǾ\fǾ;ǿȆ–LȀȆ(ȁȆ4ȂȆ6ȃȆ2ȄȆ8ȅǿȅȀȅȁȅȂȅȃȅȄȆ=ȇȊ\tȈȊȉȇȉȈȉȊȊȋȋȎ\\Ȍȏ\tȍȏȎȌȎȍȎȏȏ?Ȑȑ\t\nȑAȒȓN(ȓȔ]Ȕȕ`1ȕCȖȚ\vȗș`1ȘȗșȜȚȘȚțțȝȜȚȝȞ\fȞEȟȣD#Ƞȡ2ȡȣ`1ȢȟȢȠȣGȤȩ3ȥȩcȦȩdȧȩ\tȨȤȨȥȨȦȨȧȩIȪȫWȫȭhȬȪȬȭȭȳȮȯN(ȯȰhȰȲȱȮȲȵȳȱȳȴȴȶȵȳȶȺN(ȷȺeȸȺdȹȬȹȷȹȸȺKȻȼfȼɃJ&ȽɄJ&ȾɄȿɁ(ɀȿɀɁɁɂɂɄœOɃȽɃȾɃɀɄMɅɆjɆOɇɍN(ɈɉN(ɉɊgɊɋP)ɋɍɌɇɌɈɍQɎɔJ&ɏɐJ&ɐɑgɑɒR*ɒɔɓɎɓɏɔSɕɛ\fɖɗ\fɗɘgɘəT+əɛɚɕɚɖɛUɜɢ\rɝɞ\rɞɟgɟɠV,ɠɢɡɜɡɝɢWɣɩɤɥɥɦgɦɧX-ɧɩɨɣɨɤɩYɪɰB"ɫɬB"ɬɭgɭɮZ.ɮɰɯɪɯɫɰ[ɱɷ.ɲɳ.ɳɴgɴɵ\\/ɵɷɶɱɶɲɷ]ɸɾ`1ɹɺ`1ɺɻgɻɼ^0ɼɾɽɸɽɹɾ_ɿʐb2ʀʁ9ʁʂZ.ʂʃF$ʃʐʄʅ:ʅʆZ.ʆʇF$ʇʐʈʊH%ʉʋʊʉʊʋʋʌʌʍV,ʍʎF$ʎʐʏɿʏʀʏʄʏʈʐaʑʒ\b2ʒʓd3ʓʙʔʕ\fʕʖ;ʖʘd3ʗʔʘʛʙʗʙʚʚcʛʙʜʝ\b3ʝʞf4ʞʤʟʠ\fʠʡ<ʡʣf4ʢʟʣʦʤʢʤʥʥeʦʤʧʨ\b4ʨʩh5ʩʯʪʫ\fʫʬ=ʬʮh5ʭʪʮʱʯʭʯʰʰgʱʯʲʻj6ʳʴj6ʴʵ>ʵʸh5ʶʷ?ʷʹh5ʸʶʸʹʹʻʺʲʺʳʻiʼʽ\b6ʽʾl7ʾ˄ʿˀ\fˀˁ@ˁ˃l7˂ʿ˃ˆ˄˂˄˅˅kˆ˄ˇ˙n8ˈˉn8ˉˊAˊˋn8ˋ˙ˌˍn8ˍˎBˎˏn8ˏ˙ːˑn8ˑ˒C˒˓n8˓˙˔˕n8˕˖D˖˗n8˗˙˘ˇ˘ˈ˘ˌ˘ː˘˔˙m˚˪p9˛˜E˜˪n8˝˞F˞˪n8˟ˠGˠ˪n8ˡˢHˢ˪n8ˣˤIˤ˪n8˥˦J˦˪n8˧˨K˨˪n8˩˚˩˛˩˝˩˟˩ˡ˩ˣ˩˥˩˧˪o˫ˬ\b9ˬ˭r:˭˷ˮ˰\f˯˱E˰˯˰˱˱˲˲˳@!˳˴r:˴˶˵ˮ˶˹˷˵˷˸˸q˹˷˺˾t;˻˼\t\v˼˾t;˽˺˽˻˾s˿̀\b;̀́v<́̇̂̃\f̃̄\t\f̄̆x=̅̂̆̉̇̅̇̈̈ủ̇̊̎x=̋̌Ľ̎v<̍̊̍̋̎w̏̐\b=̐̑z>̗̑̒̓\f̓̔M̖̔z>̖̙̗̗̘̘̒̕̕y̛̙̗̚\b>̛̜|?̢̜̝̞\f̞̟N̡̟|?̡̢̢̠̝̤̠̣̣{̢̤̥̦\b?̧̦~@̧̨̮̩\f̩̪> ̪̫~@̨̫̭̬̭̰̮̬̮̯̯}̰̮̱̲\b@̲̳€A̴̵̳̹\f̵̶\t\r̶̸€A̷̴̸̷̻̹̹̺̺̻̹̼̽\bA̽̾‚B̾͆̿̀\f̀́́͂^0͈͇͇͂̓̓̈́̿͆̈́͆ͅͅ͈͉͆͊\bB͊͑„C͋͌N(͍͍͎͌^0͎͏͏͉͓͑͐͐͋͑͗͒\f͓͔͔͖„C͕͖͙͕͒͗͗͘͘ƒ͙͚͗͛\bC͛͜†D͜͡͝͞\f͞͠Qͣ͟͟͢͢͝͠͡͡…ͣͤͨ͡ˆEͥͦ\tͦͨ†Dͧͤͧͥͨ‡ͩͼ0ͪͼJ&ͫͬUͬͼN(ͭͮVͮͼN(ͯͼWͰͱ\vͱͲV,ͲͳF$ͳʹ\fʹͼ͵ͶͶͷ`1ͷ͸͸ͼ͹ͼD#ͺͼŽHͻͩͻͪͻͫͻͭͻͯͻͰͻ͵ͻ͹ͻͺͼ‰ͽ΃J&;ͿJ&Ϳ΀\\΀΁ŠF΁΃΂ͽ΂;΃‹΄΅ŽH΅Ά·X·ΈΉYΉΊN(ΊΌžP΋΍,Ό΋Ό΍΍‘ΎΏΏ“ΐΑZΑΒ`1Β•ΓΔ[ΔΕN(ΕΖ)ΖΗ`1ΗΘ"ΘΙžPΙ—ΚΛN(ΛΜΜΝŠFΝΞ]ΞΟ`1Ο™ΠΦœOΡ΢œO΢ΣgΣΤšNΤΦΥΠΥΡΦ›ΧΨi؝Ωέ\vΪά¢RΫΪάίέΫέήήΰίέΰζ\fαγ$βαβγγδδζJ&εΩεβζŸηθVθνN(ινœOκλ(λνœOμημιμκν¡ξο¤Sοπ@!πρ¦Tρφςσcσφ¤SτφJ&υξυςυτφ£χψLψϒJ&ωϒJ&ϊύ QϋόόώJ&ύϋώϏϏύϏϐϐϒϑχϑωϑϊϒ¥ϓϔ\bTϔϚ¨Uϕϖϖϗ¦TϗϘϘϚϙϓϙϕϚϠϛϜ\fϜϝϝϟ¨UϞϛϟϢϠϞϠϡϡ§ϢϠϣϤ\bUϤϥϥϦ¨UϦϧϧϪϨϪªVϩϣϩϨϪϰϫϬ\fϬϭ\tϭϯªVϮϫϯϲϰϮϰϱϱ©ϲϰϳϺ QϴϺJ&ϵ϶϶Ϸ¦TϷϸϸϺϹϳϹϴϹϵϺ«x®³·ÁÇÍÐØÜâä÷úýĀąĉčėĚģĨĭIJķńňŌŕŚŝšŨŭŰŴŹŽƀƄƊƎƖƟƣƦƯƲƹƽǂǏǒǖǟǣǬǰǺȅȉȎȚȢȨȬȳȹɀɃɌɓɚɡɨɯɶɽʊʏʙʤʯʸʺ˄˘˩˰˷˽̢̗̮̹̇̍͆͐͗ͧ͡ͻ΂ΌΥέβεμυϏϑϙϠϩϰϹ',_._serializedATN=y.join([_._serializedATNSegment0,_._serializedATNSegment1],"");class v extends d.ParserRuleContext{PRED_TOK(){return this.getToken(_.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,I)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=v;class x extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}EOF(){return this.getToken(_.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=x;class b extends d.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(T):this.getRuleContext(t,T)}paragraph(t){return void 0===t?this.getRuleContexts(E):this.getRuleContext(t,E)}evalDecl(t){return void 0===t?this.getRuleContexts(Kt):this.getRuleContext(t,Kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=b;class T extends d.ParserRuleContext{OPEN_TOK(){return this.getToken(_.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(_.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=T;class E extends d.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,O)}predDecl(){return this.tryGetRuleContext(0,v)}funDecl(){return this.tryGetRuleContext(0,k)}assertDecl(){return this.tryGetRuleContext(0,P)}cmdDecl(){return this.tryGetRuleContext(0,M)}testExpectDecl(){return this.tryGetRuleContext(0,K)}sexprDecl(){return this.tryGetRuleContext(0,Dt)}queryDecl(){return this.tryGetRuleContext(0,Ft)}evalRelDecl(){return this.tryGetRuleContext(0,jt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Mt)}exampleDecl(){return this.tryGetRuleContext(0,Ut)}propertyDecl(){return this.tryGetRuleContext(0,G)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}testSuiteDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=E;class O extends d.ParserRuleContext{SIG_TOK(){return this.getToken(_.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(_.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}sigExt(){return this.tryGetRuleContext(0,S)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=O;class S extends d.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(_.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(_.PLUS_TOK):this.getToken(_.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=S;class N extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=N;class A extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=A;class w extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=w;class R extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=R;class C extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=C;class L extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,A)}arrowExpr(){return this.getRuleContext(0,kt)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=L;class I extends d.ParserRuleContext{WHEAT_TOK(){return this.getToken(_.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=I;class k extends d.ParserRuleContext{FUN_TOK(){return this.getToken(_.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=k;class D extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=D;class P extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=P;class M extends d.ParserRuleContext{RUN_TOK(){return this.tryGetToken(_.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(_.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=M;class j extends d.ParserRuleContext{IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(_.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(_.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=j;class K extends d.ParserRuleContext{EXPECT_TOK(){return this.getToken(_.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,U)}TEST_TOK(){return this.tryGetToken(_.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=K;class U extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=U;class F extends d.ParserRuleContext{FOR_TOK(){return this.getToken(_.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}BUT_TOK(){return this.tryGetToken(_.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=F;class $ extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=$;class H extends d.ParserRuleContext{NONE_TOK(){return this.tryGetToken(_.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(_.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(_.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=H;class B extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=B;class q extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(_.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(_.BAR_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=q;class G extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=G;class z extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}WITH_TOK(){return this.getToken(_.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(_.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(_.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=z;class V extends d.ParserRuleContext{TEST_TOK(){return this.getToken(_.TEST_TOK,0)}SUITE_TOK(){return this.getToken(_.SUITE_TOK,0)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=V;class Y extends d.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Ut)}testExpectDecl(){return this.tryGetRuleContext(0,K)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}propertyDecl(){return this.tryGetRuleContext(0,G)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=Y;class W extends d.ParserRuleContext{ARROW_TOK(){return this.getToken(_.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(N):this.getRuleContext(t,N)}SET_TOK(t){return void 0===t?this.getTokens(_.SET_TOK):this.getToken(_.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=W;class X extends d.ParserRuleContext{IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(_.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(_.LT_TOK,0)}GT_TOK(){return this.tryGetToken(_.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(_.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(_.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(_.IS_TOK,0)}NI_TOK(){return this.tryGetToken(_.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=X;class Q extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=Q;class J extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends d.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(_.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends d.ParserRuleContext{ALL_TOK(){return this.tryGetToken(_.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends d.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(_.SLASH_TOK):this.getToken(_.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(_.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends d.ParserRuleContext{OPTION_TOK(){return this.getToken(_.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends d.ParserRuleContext{IDENTIFIER_TOK(){return this.getToken(_.IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class ot extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=ot;class st extends d.ParserRuleContext{paraDecl(){return this.getRuleContext(0,R)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=st;class at extends d.ParserRuleContext{quantDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ut extends d.ParserRuleContext{letDecl(){return this.getRuleContext(0,Q)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ut;class ct extends d.ParserRuleContext{typescope(){return this.getRuleContext(0,$)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ct;class ht extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class dt extends d.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,pt)}LET_TOK(){return this.tryGetToken(_.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(_.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=dt;class pt extends d.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,pt)}OR_TOK(){return this.tryGetToken(_.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=pt;class ft extends d.ParserRuleContext{expr2(){return this.getRuleContext(0,gt)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(_.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class gt extends d.ParserRuleContext{expr3(){return this.getRuleContext(0,mt)}expr2(){return this.tryGetRuleContext(0,gt)}IFF_TOK(){return this.tryGetToken(_.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=gt;class mt extends d.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(_.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(mt):this.getRuleContext(t,mt)}ELSE_TOK(){return this.tryGetToken(_.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=mt;class yt extends d.ParserRuleContext{expr4_5(){return this.getRuleContext(0,_t)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(_.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class _t extends d.ParserRuleContext{expr5(t){return void 0===t?this.getRuleContexts(vt):this.getRuleContext(t,vt)}UNTIL_TOK(){return this.tryGetToken(_.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(_.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(_.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(_.TRIGGERED_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4_5}enterRule(t){t.enterExpr4_5&&t.enterExpr4_5(this)}exitRule(t){t.exitExpr4_5&&t.exitExpr4_5(this)}accept(t){return t.visitExpr4_5?t.visitExpr4_5(this):t.visitChildren(this)}}e.Expr4_5Context=_t;class vt extends d.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,vt)}ALWAYS_TOK(){return this.tryGetToken(_.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(_.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(_.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(_.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(_.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(_.HISTORICALLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=vt;class xt extends d.ParserRuleContext{expr7(){return this.getRuleContext(0,bt)}expr6(){return this.tryGetRuleContext(0,xt)}compareOp(){return this.tryGetRuleContext(0,X)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=xt;class bt extends d.ParserRuleContext{expr8(){return this.getRuleContext(0,Tt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=bt;class Tt extends d.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,Et)}expr8(){return this.tryGetRuleContext(0,Tt)}expr10(){return this.tryGetRuleContext(0,Ot)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=Tt;class Et extends d.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,Ot)}CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,Et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=Et;class Ot extends d.ParserRuleContext{expr11(){return this.getRuleContext(0,St)}expr10(){return this.tryGetRuleContext(0,Ot)}PPLUS_TOK(){return this.tryGetToken(_.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=Ot;class St extends d.ParserRuleContext{expr12(){return this.getRuleContext(0,Nt)}expr11(){return this.tryGetRuleContext(0,St)}AMP_TOK(){return this.tryGetToken(_.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=St;class Nt extends d.ParserRuleContext{expr13(){return this.getRuleContext(0,At)}expr12(){return this.tryGetRuleContext(0,Nt)}arrowOp(){return this.tryGetRuleContext(0,W)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Nt;class At extends d.ParserRuleContext{expr14(){return this.getRuleContext(0,wt)}expr13(){return this.tryGetRuleContext(0,At)}SUBT_TOK(){return this.tryGetToken(_.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(_.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=At;class wt extends d.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Rt)}expr14(){return this.tryGetRuleContext(0,wt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=wt;class Rt extends d.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,Ct)}expr15(){return this.tryGetRuleContext(0,Rt)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=Rt;class Ct extends d.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Lt)}expr16(){return this.tryGetRuleContext(0,Ct)}PRIME_TOK(){return this.tryGetToken(_.PRIME_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr16}enterRule(t){t.enterExpr16&&t.enterExpr16(this)}exitRule(t){t.exitExpr16&&t.exitExpr16(this)}accept(t){return t.visitExpr16?t.visitExpr16(this):t.visitChildren(this)}}e.Expr16Context=Ct;class Lt extends d.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,It)}expr17(){return this.tryGetRuleContext(0,Lt)}TILDE_TOK(){return this.tryGetToken(_.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(_.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(_.STAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=Lt;class It extends d.ParserRuleContext{const(){return this.tryGetRuleContext(0,H)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(_.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=It;class kt extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=kt;class Dt extends d.ParserRuleContext{sexpr(){return this.getRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=Dt;class Pt extends d.ParserRuleContext{SEXPR_TOK(){return this.getToken(_.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=Pt;class Mt extends d.ParserRuleContext{INST_TOK(){return this.getToken(_.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Bt)}scope(){return this.tryGetRuleContext(0,F)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Mt;class jt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=jt;class Kt extends d.ParserRuleContext{EVAL_TOK(){return this.getToken(_.EVAL_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Kt;class Ut extends d.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(_.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}expr(){return this.getRuleContext(0,dt)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Ut;class Ft extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,kt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=Ft;class $t extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,$t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=$t;class Ht extends d.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(_.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=Ht;class Bt extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(Gt):this.getRuleContext(t,Gt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Bt;class qt extends d.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=qt;class Gt extends d.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,zt)}compareOp(){return this.tryGetRuleContext(0,X)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=Gt;class zt extends d.ParserRuleContext{CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}DOT_TOK(t){return void 0===t?this.getTokens(_.DOT_TOK):this.getToken(_.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=zt;class Vt extends d.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=Vt;class Yt extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Wt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=Yt;class Wt extends d.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Wt},5411:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;let o=r(6737),s=r(2399),a=r(7760),l=class extends o.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},5577:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.name=i,this.body=o,this.inheritsFrom=s,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.Test=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.name=i,this.check=o,this.body=s,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l,u,c,h){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.disj=a,this.quantDecls=l,this.bounds=u,this.scope=c,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.testExpr=o,this.bounds=s}},e.Function=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.exp=i,this.check=o,this.bounds=s,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.consistent=s,this.bounds=a,this.scope=l}}},5585:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;let o=r(2399);class s{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch{try{return e.call(null,t,0)}catch{return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch{e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch{r=o}}();var a,l=[],u=!1,c=-1;function h(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c1)for(var r=1;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;let i=r(8291),o=r(7477),s=r(2399);class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,a,l,u){let c=new i.CommonToken(e,r,t,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,a))),c}createSimple(t,e){return new i.CommonToken(t,e)}}var l;n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,(l=a=e.CommonTokenFactory||(e.CommonTokenFactory={})).DEFAULT=new l},5635:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5636:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let o=e(i),s=0;for(let e of t)o=r(o,e),s++;return o=n(o,s),o}}(e.MurmurHash||(e.MurmurHash={}))},5643:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;let i=r(2399),o=r(5636),s=r(8055);class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},5680:(t,e,r)=>{var n=r(5767);t.exports=function(t){return!!n(t)}},5754:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(rn))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},5767:(t,e,r)=>{var n=r(2682),i=r(9209),o=r(487),s=r(6556),a=r(5795),l=r(3628),u=s("Object.prototype.toString"),c=r(9092)(),h=typeof globalThis>"u"?r.g:globalThis,d=i(),p=s("String.prototype.slice"),f=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&(r=t,i=!1,n(g,(function(t,e){if(!i)try{t(r),i=p(e,1)}catch{}})),i)}var r,i;return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch{}})),e}(t):null}},5795:(t,e,r)=>{var n=r(6549);if(n)try{n([],"length")}catch{n=null}t.exports=n},5859:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerSkipAction=a,(l=a=e.LexerSkipAction||(e.LexerSkipAction={})).INSTANCE=new l},5866:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;let n=r(4148),i=r(4605);class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;var r;(r=e||(e={}))[r.BYTE=0]="BYTE",r[r.CHAR=1]="CHAR",r[r.INT=2]="INT";class o{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=o}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},5880:t=>{t.exports=Math.pow},5895:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;let i=r(3258),o=r(2399);class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},5920:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;let o=r(2399),s=r(6605),a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),e.ParseTreePattern=a},5922:function(t,e,r){var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;let a=r(659),l=r(8955),u=r(493),c=r(3361),h=r(1964),d=r(1862),p=r(2807),f=r(2399),g=r(8344),m=r(3161),y=r(6142),_=r(8831),v=r(360),x=r(7760);class b{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],b.prototype,"enterEveryRule",null),i([f.Override],b.prototype,"exitEveryRule",null),i([f.Override],b.prototype,"visitErrorNode",null),i([f.Override],b.prototype,"visitTerminal",null);class T extends _.Recognizer{constructor(t){super(),this._errHandler=new c.DefaultErrorStrategy,this._precedenceStack=new d.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0),this.interpreter?.reset()}match(t){let e=this.currentToken;return e.type===t?(t===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=T.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new u.ATNDeserializer(r).deserialize(a.toCharArray(t)),T.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return s(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof p.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r(4864)))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==T.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new v.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){this._ctx._parent?.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r(1284))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new g.ParseInfo(e)}))}setProfile(t){return s(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r(1284))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new m.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new b(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}T.bypassAltsAtnCache=new Map,i([f.NotNull],T.prototype,"_errHandler",void 0),i([f.NotNull],T.prototype,"match",null),i([f.NotNull],T.prototype,"matchWildcard",null),i([f.NotNull],T.prototype,"getParseListeners",null),i([o(0,f.NotNull)],T.prototype,"addParseListener",null),i([f.NotNull],T.prototype,"getATNWithBypassAlts",null),i([f.NotNull,o(0,f.NotNull)],T.prototype,"errorHandler",null),i([f.Override],T.prototype,"inputStream",null),i([f.NotNull],T.prototype,"currentToken",null),i([o(0,f.NotNull)],T.prototype,"enterRule",null),i([f.Override,o(0,f.Nullable)],T.prototype,"precpred",null),i([f.Override],T.prototype,"getErrorListenerDispatch",null),i([f.NotNull],T.prototype,"getExpectedTokens",null),i([f.NotNull],T.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],T.prototype,"parseInfo",null),e.Parser=T},5979:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=void 0,e.replaceCodePoint=i,e.decodeCodePoint=function(t){return(0,e.fromCodePoint)(i(t))};let n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=n.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e}},6061:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;let o=r(8939),s=r(2399),a=r(2356),l=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PrecedencePredicateTransition=l},6142:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;let i=r(7115),o=r(2399);class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},6145:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;let o=r(2807),s=r(1088),a=r(2399),l=r(2399),u=class extends o.Lexer{constructor(t,e,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),e.LexerInterpreter=u},6181:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;let o=r(9449),s=r(2399),a=r(7477),l=r(659),u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex{t.exports=Math.max},6251:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),e.LoopEndState=a},6298:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;let o=r(3258),s=r(9709),a=r(2399),l=r(8859),u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},6305:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;let i=r(7037),o=r(8016),s=r(2399);class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},6369:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;let o=r(8939),s=r(2399),a=r(2356),l=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PredicateTransition=l},6409:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;let i=r(3907),o=r(2399),s=r(8055),a=r(8859),l=r(4148);class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=u,u.UNCACHED=new u(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},6474:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerMoreAction=a,(l=a=e.LexerMoreAction||(e.LexerMoreAction={})).INSTANCE=new l},6479:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerTypeAction=a},6549:t=>{t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{var n=r(453),i=r(3126),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},6576:(t,e,r)=>{var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6605:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;let n=r(6776),i=r(5411),o=r(6181),s=r(1097),a=r(7760),l=r(9939),u=r(2593),c=r(996),h=r(6739),d=r(2193),p=r(4197),f=r(7712),g=r(2431);class m{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,d=0;t:for(;d0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=m,m.WILDCARD="*",m.NOT="!"},6642:(t,e,r)=>{var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6684:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=f;let n=r(5585),i=r(2543),o=r(4699);function s(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function a(t){return Array.isArray(t)}function l(t){return"boolean"==typeof t}function u(t){return"number"==typeof t}function c(t){return u(t)?t:(e=t,Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&1===e[0].length&&"number"==typeof e[0][0]?t[0][0]:void 0);var e}function h(t){return"string"==typeof t}function d(t,e){return t.length===e.length&&t.every(((t,r)=>t===e[r]))}function p(t,e){return t.every((t=>e.some((e=>d(t,e)))))}function f(t,e){return t.length===e.length&&p(t,e)&&p(e,t)}function g(t){let e=[];for(let r of t)e.some((t=>d(t,r)))||e.push(r);return e}function m(t){return function t(e){if(0===e.length)return[[]];let[r,...n]=e,i=t(n);return r.flatMap((t=>i.map((e=>[t,...e]))))}(t.map((t=>t.flat())))}function y(t){if(0===t.length)return[];t.forEach((t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")}));let e=new Map;for(let[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);let r=new Set;for(let t of e.keys()){let n=new Set,i=[...e.get(t)??[]];for(;i.length>0;){let o=i.shift();if(n.has(o))continue;n.add(o),r.add(JSON.stringify([t,o]));let s=e.get(o);if(s)for(let t of s)n.has(t)||i.push(t)}}return Array.from(r).map((t=>JSON.parse(t)))}function _(t,e){let r=s(t)?[[t]]:t,n=s(e)?[[e]]:e,i=[];if(r.forEach((t=>{n.forEach((e=>{t[t.length-1]===e[0]&&i.push([...t.slice(0,t.length-1),...e.slice(1)])}))})),i.some((t=>0===t.length)))throw new Error("Join would create a relation of arity 0");return i}function v(t,e){let r=Math.pow(2,e),n=(t%r+r)%r;return n>=Math.pow(2,e-1)&&(n-=r),n}let x=["add","subtract","multiply","divide","remainder"],b=["abs","sign"];e.SUPPORTED_BUILTINS=x.concat(b);class T extends n.AbstractParseTreeVisitor{constructor(t,e,r){super(),this.cachedResults=new Map,this.datum=t,this.instanceIndex=e,this.instanceData=this.datum.parsed.instances[this.instanceIndex],this.bitwidth=this.datum.parsed.bitwidth,this.predicates=r,this.environmentStack=[],this.freeVariableFinder=new o.ForgeExprFreeVariableFinder(t,e,r),this.freeVariables=new Map}isPredicateName(t){return this.predicates.some((e=>e.name===t))}getPredicate(t){let e=this.predicates.find((e=>e.name===t));if(void 0===e)throw new Error(`Predicate ${t} not found`);return e}callPredicate(t,e){let r=t.args?t.args.length:0,n=Array.isArray(e)?e.length:1;if(r!==n)throw new Error(`Expected ${r} arguments, but got ${n}`);let i=t.args?.map((t=>t.split(":")[0])),o={env:{},type:"predArgs"};if(i)for(let t=0;t`${e}=${t[e]}`)).join("|")}cacheResult(t,e,r){this.cachedResults.has(t)||this.cachedResults.set(t,new Map),this.cachedResults.get(t).set(e,r)}getIden(){let t=this.instanceData.types,e=[];for(let r in t)t[r].atoms.forEach((t=>{let r=t.id;isNaN(Number(r))?"true"==r||"#t"===r?r=!0:"false"!=r&&"#f"!==r||(r=!1):r=Number(r),e.push([r,r])}));return e}aggregateResult(t,e){if(a(t)&&0===t.length)return e;if(a(e)&&0===e.length)return t;if(s(t)){if(s(e))return e;throw new Error("Expected nextResult to be a single value")}return s(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(let r of t.expr()){let t=this.visit(r);if(!l(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){let r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0,n={};for(let t of e)for(let e=this.environmentStack.length-1;e>=0;e--){let i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}let i,o=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)&&this.cachedResults.get(t).has(o))return this.cachedResults.get(t).get(o);if(t.LET_TOK()&&(i=[],i.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let s=i.expr(),a=[],u=[];for(let t in r)a.push(t),u.push(r[t]);let c=m(u),h=[],d=!1,p=!1;for(let e=0;e1)return this.cacheResult(t,o,!1),!1;if(e.SOME_TOK()&&d)return this.cacheResult(t,o,!0),!0;if(e.ONE_TOK()&&h.length>1)return this.cacheResult(t,o,!1),!1}}if(t.quant().ALL_TOK()){let e=!p;return this.cacheResult(t,o,e),e}if(t.quant().NO_TOK()){let e=!d;return this.cacheResult(t,o,e),e}if(t.quant().mult()){let e=t.quant().mult();if(e.LONE_TOK()){let e=h.length<=1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()){let e=d;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()){let e=1===h.length;return this.cacheResult(t,o,e),e}if(e.TWO_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Two (`two`)")}}let a=this.visitChildren(t);if(void 0===i)return this.cacheResult(t,o,a),a;if(s(i))throw new Error("Expected results to be a tuple array");return s(a)?i.push([a]):i=i.concat(a),this.cacheResult(t,o,i),i}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");let e=this.visit(t.expr1());if(!l(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;let r=this.visit(t.expr1_5());if(!l(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");let e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!l(e)||!l(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");let e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!l(e)||!l(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!l(e))throw new Error("IMP operator expected 2 boolean operands!");if(!e)return!0;let r=this.visit(t.expr3()[0]);if(!l(r))throw new Error("IMP operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr4_5())throw new Error("Expected the AND operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!l(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;let r=this.visit(t.expr4_5());if(!l(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4_5(t){let e=[];return t.UNTIL_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),e):t.RELEASE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),e):t.SINCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),e):t.TRIGGERED_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),e):this.visitChildren(t)}visitExpr5(t){let e=[];if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the temporal operator to have 1 operand!");let r=this.visit(t.expr5());if(t.NEG_TOK()){if(!l(r))throw new Error("Expected the negation operator to have a boolean operand!");return!r}return t.ALWAYS_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),e):t.EVENTUALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),e):t.AFTER_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),e):t.BEFORE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),e):t.ONCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),e):t.HISTORICALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),e):r}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");let r=this.visit(t.expr6()),i=this.visit(t.expr7()),o=c(r),l=c(i);switch(t.compareOp()?.text){case"=":if(s(r)&&s(i))e=r===i;else if(s(r)&&a(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(a(r)&&s(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!a(r)||!a(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=f(r,i)}break;case"<":if(void 0===o||void 0===l)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o":if(void 0===o||void 0===l)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>l;break;case"<=":if(void 0===o||void 0===l)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o<=l;break;case">=":if(void 0===o||void 0===l)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>=l;break;case"in":e=a(r)&&a(i)?!!f(r,i)||p(r,i):!!a(i)&&i.some((t=>1===t.length&&t[0]===r));break;case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");case"ni":return e.push(["**UNIMPLEMENTED** Set Non-Membership (`ni`)"]),e;default:throw new Error(`Unexpected compare operator provided: ${t.compareOp()?.text}`)}}if(r){if(!l(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){let e=this.visit(t.expr8());if(t.SET_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Set (`set`)");if(t.ONE_TOK())return a(e)&&1===e.length;if(t.TWO_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Two (`two`)");return t.NO_TOK()?a(e)&&0===e.length:t.SOME_TOK()?a(e)&&e.length>0:t.LONE_TOK()?a(e)&&e.length<=1:e}visitExpr8(t){if(t.PLUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(s(e)&&s(r))return[[e],[r]];if(s(e)&&a(r)){if(0===r.length)return e;if(1===r[0].length)return g([[e],...r]);throw new Error("arity mismatch in set union!")}if(a(e)&&s(r)){if(0===e.length)return r;if(1===e[0].length)return g([...e,[r]]);throw new Error("arity mismatch in set union!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return g([...e,...r])}if(t.MINUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(s(e)&&s(r))return e===r?[]:e;if(s(e)&&a(r)){if(0===r.length)return e;if(1===r[0].length)return r.some((t=>t[0]===e))?[]:e;throw new Error("arity mismatch in set difference!")}if(a(e)&&s(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter((t=>t[0]!==r));throw new Error("arity mismatch in set difference!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length)return e.filter((t=>!r.some((e=>d(t,e)))))}return this.visitChildren(t)}visitExpr9(t){let e=this.visitChildren(t);if(t.CARD_TOK()){if(!a(e))throw new Error("The cardinal operator must be applied to a set of tuples!");return v(e.length,this.bitwidth)}return e}visitExpr10(t){if(t.PPLUS_TOK())throw void 0===t.expr10()||void 0===t.expr11()?new Error("Expected the pplus operator to have 2 operands of the right type!"):(this.visit(t.expr10()),this.visit(t.expr11()),new Error("**NOT IMPLEMENTING FOR NOW** pplus (`++`)"));return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");let e=this.visit(t.expr11()),r=this.visit(t.expr12());if(s(e)&&s(r))return e===r?e:[];if(s(e)&&a(r)){if(0===r.length)return[];if(1===r[0].length)return r.some((t=>t[0]===e))?e:[];throw new Error("arity mismatch in set intersection!")}if(a(e)&&s(r)){if(0===e.length)return[];if(1===e[0].length)return e.some((t=>t[0]===r))?r:[];throw new Error("arity mismatch in set intersection!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length)return e.filter((t=>r.some((e=>d(t,e)))))}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");let e=this.visit(t.expr12()),r=this.visit(t.expr13()),n=s(e)?[[e]]:e,i=s(r)?[[r]]:r;if(!a(n)||!a(i))throw new Error("Arrow operator operands must be tuple arrays or single values");let o=[];for(let t of n)for(let e of i)o.push([...t,...e]);return g(o)}return this.visitChildren(t)}visitExpr13(t){if(t.SUPT_TOK())throw void 0===t.expr13()||void 0===t.expr14()?new Error("Expected the supertype operator to have 2 operands of the right type!"):(this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Supertype Operator (`:>`)"));if(t.SUBT_TOK())throw void 0===t.expr13()||void 0===t.expr14()?new Error("Expected the subtype operator to have 2 operands of the right type!"):(this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Subtype Operator (`<:`)"));return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){let e=this.visit(t.expr14()),r=this.visit(t.exprList());if(s(e)&&h(e)&&this.isPredicateName(e)){let t=this.getPredicate(e);return this.callPredicate(t,r)}if(h(e)){if(x.includes(e))return this.evaluateBinaryOperation(e,r,this.bitwidth);if(b.includes(e))return this.evaluateUnaryOperation(e,r,this.bitwidth)}return _(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr16())throw new Error("Expected the dot operator to have 2 operands of the right type!");return _(this.visit(t.expr15()),this.visit(t.expr16()))}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr16(t){let e=[];return t.PRIME_TOK()?(this.visit(t.expr16()),e.push(["**UNIMPLEMENTED** Primed Expression _'"]),e):this.visitChildren(t)}visitExpr17(t){let e=this.visitChildren(t);if(t.TILDE_TOK()){if(a(e)&&e.length>0&&2===e[0].length)return e.map((t=>[t[1],t[0]]));throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(a(e))return y(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&a(e)){let t=y(e);return g([...this.getIden(),...t])}return e}getNameListValues(t){return t.COMMA_TOK()?[t.name().text,...this.getNameListValues(t.nameList())]:[t.name().text]}getQuantDeclValues(t){let e=t.nameList(),r=this.getNameListValues(e),n=t.expr(),i=this.visitExpr(n);s(i)&&(i=[[i]]);let o={};for(let t of r)o[t]=i;return o}getQuantDeclListValues(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){let e=[];if(t.const()){let e=t.const();if(void 0!==e.number()){let t=Number(e.number().text),r=void 0!==e.MINUS_TOK()?-t:t,n=Math.pow(2,this.bitwidth-1)-1,i=-1*Math.pow(2,this.bitwidth-1);if(r>n||r=0;t--){let e=this.environmentStack[t];if(void 0!==e.env[r])return e.env[r];if("predArgs"===e.type)break}let n,i=Object.keys(this.instanceData.types).map((t=>this.instanceData.types[t].id));i.includes(r)&&(n=this.instanceData.types[r].atoms.map((t=>t.id)).map((t=>[t])));for(let t of i)if(this.instanceData.types[t].atoms.map((t=>t.id)).includes(r)){n=[[r]];break}let o=[r];for(;o.length>0;){let t=o.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");for(let e of i)if(e!==t&&this.instanceData.types[e].types.includes(t)){void 0===n&&(n=[]);let t=this.instanceData.types[e].atoms.map((t=>t.id));for(let e of t)n.push([e]);o.push(this.instanceData.types[e].id)}}let s=t=>"number"==typeof t||"string"==typeof t&&!isNaN(Number(t)),a=t=>"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t),l=t=>{if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)},u=Object.keys(this.instanceData.relations);for(let t of u)if(this.instanceData.relations[t].name===r){let e=this.instanceData.relations[t].tuples.map((t=>t.atoms));return e=e.map((t=>t.map((t=>s(t)?Number(t):t)))),e=e.map((t=>t.map((t=>a(t)?l(t):t)))),e}if(void 0!==n)return n=n.map((t=>t.map((t=>s(t)?Number(t):t)))),n=n.map((t=>t.map((t=>a(t)?l(t):t)))),n;if(this.isPredicateName(r)||e.SUPPORTED_BUILTINS.includes(r))return r;throw new Error(`bad name ${r} referenced!`)}visitQualName(t){return t.INT_TOK()?this.instanceData.types.Int.atoms.map((t=>[Number(t.id)])):this.visitChildren(t)}evaluateBinaryOperation(t,e,r){if(s(e))throw new Error(`Expected 2 arguments for ${t}`);let n,o,a;if((0,i.isArray)(e[0])){if(!u(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);n=e[0][0]}else{if(!u(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);n=e[0]}if((0,i.isArray)(e[1])){if(!u(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);o=e[1][0]}else{if(!u(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);o=e[1]}if(("divide"===t||"remainder"===t)&&0===o)throw new Error("Division by zero is not allowed");switch(t){case"add":a=n+o;break;case"subtract":a=n-o;break;case"multiply":a=n*o;break;case"divide":a=Math.floor(n/o);break;case"remainder":a=n%o;break;default:throw new Error(`Unsupported operation: ${t}`)}return v(a,r)}evaluateUnaryOperation(t,e,r){if(!s(e)||!u(e))throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);let n=v(e,r);if("abs"===t)return Math.abs(n);if("sign"===t)return n>0?1:n<0?-1:0;throw new Error(`Unsupported operation: ${t}`)}}e.ForgeExprEvaluator=T},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6737:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;let o=r(4148),s=r(8291),a=r(7477),l=r(2807),u=r(2399),c=r(7760),h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},6739:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;let i=r(1097),o=r(2399),s=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},6743:(t,e,r)=>{var n=r(9353);t.exports=Function.prototype.bind||n},6776:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;let n=r(5866),i=r(328),o=r(1492);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;let i=r(2399);class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},6889:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;let n=r(537),i=r(5636),o=new Uint16Array(0);function s(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<>>0:65535>>>15-e^65535>>>16-t}let h=new Uint8Array(65536);for(let t=0;t<16;t++){let e=1<>>0,r=0;for(;rr)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;nr)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n=r)return-1}return a(n)+l(e[n]&i)}or(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");let e=this.data,r=e.length,n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t{var n=r(453),i=r(41),o=r(592)(),s=r(5795),a=r(9675),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var c=s(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},6947:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;let o=r(934),s=r(2399),a=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TextChunk=a},7004:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,a){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),e.PredicateEvalInfo=a},7037:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},7059:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),e.LookaheadEventInfo=a},7115:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;let o=r(2399);class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},7119:t=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},7176:(t,e,r)=>{var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},7239:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;let o=r(4274),s=r(8291),a=r(1964),l=r(2399),u=r(5922),c=r(1097),h=r(5378),d=r(360),p=r(7760),f=r(659);class g{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof d.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;on)&&g.isAncestorOf(i,e)){let e=new s.CommonToken(p.Token.INVALID_TYPE,"...");t.children[o]=new d.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n{var n=r(9092)(),i=r(6556)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},7366:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.getCodePoint=e.xmlReplacer=void 0,e.encodeXML=n,e.xmlReplacer=/["$&'<>\u0080-\uFFFF]/g;let r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(t){let n,i="",o=0;for(;null!==(n=e.xmlReplacer.exec(t));){let{index:s}=n,a=t.charCodeAt(s),l=r.get(a);void 0===l?(i+=`${t.substring(o,s)}&#x${(0,e.getCodePoint)(t,s).toString(16)};`,o=e.xmlReplacer.lastIndex+=+(55296==(64512&a))):(i+=t.substring(o,s)+l,o=s+1)}return i+t.substr(o)}function i(t,e){return function(r){let n,i=0,o="";for(;n=t.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=e.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}e.getCodePoint=null==String.prototype.codePointAt?(t,e)=>55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e):(t,e)=>t.codePointAt(e),e.escape=n,e.escapeUTF8=i(/["&'<>]/g,r),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},7404:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;let i=r(4148),o=r(2399),s=r(1492);class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},7435:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let i=r(2399),o=r(7760);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t=0&&t=0&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;let i=r(3361),o=r(2468),s=r(2399),a=r(9278);class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},7477:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;let i=r(2399);class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},7653:(t,e,r)=>{var n=r(8452),i=r(487),o=r(9211),s=r(9394),a=r(6576),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},7712:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},7760:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;let n=r(1492);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},7862:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;let i=r(4274),o=r(2399),s=r(1097);class a extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},7866:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;let o=r(6889),s=r(2399),a=r(7477);class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},7886:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),e.AmbiguityInfo=a},7920:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),e.LexerCustomAction=a},7997:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},8002:t=>{t.exports=Math.min},8016:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;let n=r(2813);class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},8055:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;let i=r(2399);class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},8068:t=>{t.exports=SyntaxError},8075:(t,e,r)=>{var n=r(453),i=r(487),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},8151:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;let i=r(2399),o=r(5636),s=r(8055);class a{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e||t.length!==e.length)return!1;for(let r=0;r{var n,i=r(6556),o=r(9721)(/^\s*(?:function)?\*/),s=r(9092)(),a=r(3628),l=i("Object.prototype.toString"),u=i("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(o(u(t)))return!0;if(!s)return"[object GeneratorFunction]"===l(t);if(!a)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();n=!!e&&a(e)}return a(t)===n}},8195:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},8240:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;let i=r(5754),o=r(2399),s=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size||t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l)||this._size!==t._size)return!1;for(let e=0;ethis._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;ea)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e=65536?2:1;return t}}n([o.NotNull],l.prototype,"_data",void 0),n([o.Override],l.prototype,"equals",null),n([o.Override],l.prototype,"hashCode",null),n([o.Override],l.prototype,"toString",null),e.IntegerList=l},8291:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;let o=r(7477),s=r(2399),a=r(7760),l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),e.CommonToken=l},8344:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;let o=r(2399),s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0})},8403:(t,e,r)=>{var n=r(1189),i=r(1333)(),o=r(6556),s=r(9612),a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?s.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var o=1;o{var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r(41),l=r(592)(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?a(t,e,r,!0):a(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;let n=r(5636);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},8571:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;let o=r(2399),s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},8590:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;let i=r(6298),o=r(2399),s=r(8859),a=r(8831),l=r(7435);class u{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},8644:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;let i=r(7037),o=r(8016),s=r(2399);class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),e.TokensStartState=a},8648:t=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},8744:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),e.BasicState=a},8749:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},8831:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;let o=r(3196),s=r(7115),a=r(2399),l=r(7760),u=r(659);class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){return this.getTokenTypeMap().get(t)??l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},8840:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),e.RuleStopState=a},8859:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;let o=r(3907),s=r(1533),a=r(5754),l=r(5636),u=r(2399),c=r(6409),h=r(4148);class d{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?d.EMPTY_FULL:d.EMPTY_LOCAL;let n;n=e._parent?d.fromRuleContext(t,e._parent,r):r?d.EMPTY_FULL:d.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return d.isEmptyLocal(t)?t:d.addEmptyContext(e);if(e.isEmpty)return d.isEmptyLocal(e)?e:d.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,p=!0,m=!0;for(;l0){let t=1;for(;1<>>0>o&(1<>>0)-1,s=s&&e>=a.size-1,e>=a.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[l];u+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==d.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],d.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"getCachedContext",null),e.PredictionContext=d;class p extends d{constructor(t){super(d.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],p.prototype,"addEmptyContext",null),n([u.Override],p.prototype,"removeEmptyContext",null),n([u.Override],p.prototype,"getParent",null),n([u.Override],p.prototype,"getReturnState",null),n([u.Override],p.prototype,"findReturnState",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"appendSingleContext",null),n([u.Override],p.prototype,"appendContext",null),n([u.Override],p.prototype,"isEmpty",null),n([u.Override],p.prototype,"hasEmpty",null),n([u.Override],p.prototype,"equals",null),n([u.Override],p.prototype,"toStrings",null);let f=class t extends d{constructor(t,e,r){super(r||d.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==d.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===d.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(d.EMPTY_FULL),r.push(d.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new g(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new d.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(d.isEmptyLocal(r)){if(e.hasEmpty)return d.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let t=0;t1),i=new t(s,a)),e.hasEmpty&&(i=d.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t)||this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t{var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(1093),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window>"u")return!1;for(var t in window)try{if(!d["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch{return!0}}catch{return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),d=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=u&&r;if(a&&t.length>0&&!i.call(t,0))for(var g=0;g0)for(var m=0;m"u"||!p)return h(t);try{return h(t)}catch{return!1}}(t),v=0;v=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;let o=r(3907),s=r(8016),a=r(5636),l=r(2399),u=r(8055),c=r(8859),h=r(2356),d=r(4148),p=2147483648,f=class t{constructor(t,e,r){"number"==typeof e?(d((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new y(o,i,e,r,n,!1):new g(i,e,r,n):null!=o?new m(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){d(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new y(o,n,e,this,r,s):new g(n,e,this,r):null!=o||s?new m(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size{Object.defineProperty(e,"__esModule",{value:!0})},8939:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;let n=r(1072);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},8955:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;let i=r(2399);class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},8968:t=>{t.exports=Math.floor},9032:(t,e,r)=>{var n=r(7244),i=r(8184),o=r(5767),s=r(5680);function a(t){return t.call.bind(t)}var l=typeof BigInt<"u",u=typeof Symbol<"u",c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch{return!1}}function y(t){return"[object Map]"===c(t)}function _(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function x(t){return"[object WeakSet]"===c(t)}function b(t){return"[object ArrayBuffer]"===c(t)}function T(t){return typeof ArrayBuffer<"u"&&(b.working?b(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===c(t)}function O(t){return typeof DataView<"u"&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return typeof Promise<"u"&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working=typeof Map<"u"&&y(new Map),e.isMap=function(t){return typeof Map<"u"&&(y.working?y(t):t instanceof Map)},_.working=typeof Set<"u"&&_(new Set),e.isSet=function(t){return typeof Set<"u"&&(_.working?_(t):t instanceof Set)},v.working=typeof WeakMap<"u"&&v(new WeakMap),e.isWeakMap=function(t){return typeof WeakMap<"u"&&(v.working?v(t):t instanceof WeakMap)},x.working=typeof WeakSet<"u"&&x(new WeakSet),e.isWeakSet=function(t){return x(t)},b.working=typeof ArrayBuffer<"u"&&b(new ArrayBuffer),e.isArrayBuffer=T,E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return void 0!==S&&(void 0===N.working&&(N.working=N(new S)),N.working?N(t):t instanceof S)}function w(t){return m(t,h)}function R(t){return m(t,d)}function C(t){return m(t,p)}function L(t){return l&&m(t,f)}function I(t){return u&&m(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=w,e.isStringObject=R,e.isBooleanObject=C,e.isBigIntObject=L,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return w(t)||R(t)||C(t)||L(t)||I(t)},e.isAnyArrayBuffer=function(t){return typeof Uint8Array<"u"&&(T(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9057:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;let o=r(5636),s=r(2399),a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),e.LexerIndexedCustomAction=a},9086:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;let i=r(934),o=r(2399);class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},9092:(t,e,r)=>{var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.ActionTransition=a},9209:(t,e,r)=>{var n=r(6578),i=typeof globalThis>"u"?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9240:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),e.RuleStartState=a},9250:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.EpsilonTransition=a},9274:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;let o=r(2813),s=r(7037),a=r(6889),l=r(2262),u=r(2468),c=r(3714),h=r(6251),d=r(2399),p=r(2399),f=r(5922),g=r(3161),m=r(9449),y=r(4016),_=r(7760),v=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new g.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new g.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof m.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),_.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=_.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,_.Token.INVALID_TYPE,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([d.NotNull],v.prototype,"_vocabulary",void 0),n([p.Override],v.prototype,"reset",null),n([p.Override],v.prototype,"atn",null),n([p.Override],v.prototype,"vocabulary",null),n([p.Override],v.prototype,"ruleNames",null),n([p.Override],v.prototype,"grammarFileName",null),n([p.Override],v.prototype,"enterRecursionRule",null),v=n([i(1,d.NotNull)],v),e.ParserInterpreter=v},9278:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},9290:t=>{t.exports=RangeError},9299:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=void 0,e.determineBranch=m,e.decodeHTML=function(t,e=u.Legacy){return y(t,e)},e.decodeHTMLAttribute=function(t){return y(t,u.Attribute)},e.decodeHTMLStrict=function(t){return y(t,u.Strict)},e.decodeXML=function(t){return _(t,u.Strict)};let n=r(642),i=r(1838),o=r(5979);var s,a,l,u,c;function h(t){return t>=s.ZERO&&t<=s.NINE}function d(t){return t>=s.UPPER_A&&t<=s.UPPER_F||t>=s.LOWER_A&&t<=s.LOWER_F}function p(t){return t===s.EQUALS||(e=t)>=s.UPPER_A&&e<=s.UPPER_Z||e>=s.LOWER_A&&e<=s.LOWER_Z||h(e);var e}(c=s||(s={}))[c.NUM=35]="NUM",c[c.SEMI=59]="SEMI",c[c.EQUALS=61]="EQUALS",c[c.ZERO=48]="ZERO",c[c.NINE=57]="NINE",c[c.LOWER_A=97]="LOWER_A",c[c.LOWER_F=102]="LOWER_F",c[c.LOWER_X=120]="LOWER_X",c[c.LOWER_Z=122]="LOWER_Z",c[c.UPPER_A=65]="UPPER_A",c[c.UPPER_F=70]="UPPER_F",c[c.UPPER_Z=90]="UPPER_Z",function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(a||(e.BinTrieFlags=a={})),function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(l||(l={})),function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"}(u||(e.DecodingMode=u={}));class f{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}startEntity(t){this.decodeMode=t,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case l.EntityStart:return t.charCodeAt(e)===s.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=l.NamedEntity,this.stateNamedEntity(t,e));case l.NumericStart:return this.stateNumericStart(t,e);case l.NumericDecimal:return this.stateNumericDecimal(t,e);case l.NumericHex:return this.stateNumericHex(t,e);case l.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===s.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,r,n){if(e!==r){let i=r-e;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(e,i),n),this.consumed+=i}}stateNumericHex(t,e){let r=e;for(;e>14;for(;e>14,0!==i){if(o===s.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:r}=this,n=(r[e]&a.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(1===e?n[t]&~a.VALUE_LENGTH:n[t+1],r),3===e&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===u.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function g(t){let e="",r=new f(t,(t=>e+=(0,o.fromCodePoint)(t)));return function(t,n){let i=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(i,o),r.startEntity(n);let s=r.write(t,o+1);if(s<0){i=o+r.end();break}i=o+s,o=0===s?i+1:i}let s=e+t.slice(i);return e="",s}}function m(t,e,r,n){let i=(e&a.BRANCH_LENGTH)>>7,o=e&a.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let e=n-o;return e<0||e>=i?-1:t[r+e]-1}let s=r,l=s+i-1;for(;s<=l;){let e=s+l>>>1,r=t[e];if(rn))return t[e+i];l=e-1}}return-1}e.EntityDecoder=f;let y=g(n.htmlDecodeTree),_=g(i.xmlDecodeTree);var v=r(642);Object.defineProperty(e,"htmlDecodeTree",{enumerable:!0,get:function(){return v.htmlDecodeTree}});var x=r(1838);Object.defineProperty(e,"xmlDecodeTree",{enumerable:!0,get:function(){return x.xmlDecodeTree}});var b=r(5979);Object.defineProperty(e,"decodeCodePoint",{enumerable:!0,get:function(){return b.decodeCodePoint}}),Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return b.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return b.fromCodePoint}})},9353:t=>{var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{t.exports=Error},9394:(t,e,r)=>{var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9449:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},9462:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;let o=r(8939),s=r(1533),a=r(8880),l=r(6889),u=r(3357),c=r(2399),h=r(3575),d=r(8055),p=r(8859),f=r(8840),g=r(3334),m=r(7760),y=r(4650),_=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n{t.exports=ReferenceError},9597:(t,e,r)=>{function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s,a,l={};function u(t,e,r){r||(r=Error);var s=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,r);var s,a,l,u=(a=c,l=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}(),function(){var t,e=o(a);if(l){var r=o(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(r,n,i){var o,s,a,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(o=u.call(this,(s=r,a=n,l=i,"string"==typeof e?e:e(s,a,l)))).code=t,o}return s=c,Object.defineProperty(s,"prototype",{writable:!1}),s}(r);l[t]=s}function c(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,a,l,u,h,d;if(void 0===s&&(s=r(4148)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&"not "===e.substr(0,4)?(o="must not be",e=e.replace(/^not /,"")):o="must be",h=t,(void 0===d||d>h.length)&&(d=h.length)," argument"===h.substring(d-9,d))a="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var p=("number"!=typeof u&&(u=0),u+1>(l=t).length||-1===l.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(p," ").concat(o," ").concat(c(e,"type"))}return a+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(537));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=l},9600:t=>{var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch{return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch{return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch{}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},9612:t=>{t.exports=Object},9616:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerModeAction=a},9675:t=>{t.exports=TypeError},9709:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;let o=r(4274),s=r(6889),a=r(5636),l=r(2399),u=r(8859),c=r(4148);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new s.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},9721:(t,e,r)=>{var n=r(6556),i=r(4035),o=n("RegExp.prototype.exec"),s=r(9675);t.exports=function(t){if(!i(t))throw new s("`regex` must be a RegExp");return function(e){return null!==o(t,e)}}},9803:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;let i=r(7037),o=r(8744),s=r(2399);class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),e.InvalidState=a},9939:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;let n=r(493),i=r(2807),o=r(1088),s=r(7435),a=r(659);class l extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},9957:(t,e,r)=>{var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);t.exports=o.call(n,i)},9984:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;let i=r(4274),o=r(8831),s=r(5378),a=r(7477),l=r(2399),u=r(7239),c=r(1097);class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=e??-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e=0&&t(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForgeExprEvaluatorUtil=void 0;let e=r(2221),i=r(5395),o=r(5288),s=r(3274),a=r(2219),l=r(6684),u=r(960),c=r(3651);function h(t){let r=e.CharStreams.fromString(t),n=new o.ForgeLexer(r),s=new e.CommonTokenStream(n),a=new i.ForgeParser(s);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new c.ParseErrorListener),a}t.ForgeExprEvaluatorUtil=class{constructor(t,e){this.forgeListener=new s.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.datum=t,this.predicates=(0,u.extractPredicates)(e),this.gotPredicateParseTrees=!1}getPredParseTree(t){return h(t).predDecl()}getExpressionParseTree(t){let e=h(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}getPredicateParseTrees(){for(let t of this.predicates){let e=this.getPredParseTree(t.predicateString);t.predTree=e}this.gotPredicateParseTrees=!0}evaluateExpression(t,e=0){this.gotPredicateParseTrees||this.getPredicateParseTrees();try{var r=this.getExpressionParseTree(t)}catch{return{error:new Error(`Error parsing expression "${t}"`)}}let n=new l.ForgeExprEvaluator(this.datum,e,this.predicates);try{return n.visit(r instanceof i.ExprContext?r:r.getChild(0))}catch(e){if(e instanceof Error){let r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}}})(),n})()))})),Sn=p(((t,e)=>{var r,n;r=t,n=()=>(()=>{var t={"./node_modules/antlr4ts/ANTLRErrorListener.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ANTLRErrorStrategy.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ANTLRInputStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;let i=r("./node_modules/assert/build/assert.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/IntStream.js");class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},"./node_modules/antlr4ts/BailErrorStrategy.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;let i=r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),o=r("./node_modules/antlr4ts/InputMismatchException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/ParseCancellationException.js");class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},"./node_modules/antlr4ts/BufferedTokenStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;let o=r("./node_modules/assert/build/assert.js"),s=r("./node_modules/antlr4ts/CommonToken.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Lexer.js"),u=r("./node_modules/antlr4ts/Decorators.js"),c=r("./node_modules/antlr4ts/Token.js"),h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},"./node_modules/antlr4ts/CharStream.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/CharStreams.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;let n=r("./node_modules/antlr4ts/CodePointBuffer.js"),i=r("./node_modules/antlr4ts/CodePointCharStream.js"),o=r("./node_modules/antlr4ts/IntStream.js");(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){(void 0===e||0===e.length)&&(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;let n=r("./node_modules/assert/build/assert.js"),i=r("./node_modules/antlr4ts/misc/Character.js");class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;var r;(r=e||(e={}))[r.BYTE=0]="BYTE",r[r.CHAR=1]="CHAR",r[r.INT=2]="INT";class o{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=o}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},"./node_modules/antlr4ts/CodePointCharStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;let i=r("./node_modules/assert/build/assert.js"),o=r("./node_modules/antlr4ts/IntStream.js"),s=r("./node_modules/antlr4ts/misc/Interval.js"),a=r("./node_modules/antlr4ts/Decorators.js");class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return(void 0===e||0===e.length)&&(e=o.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){let e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},"./node_modules/antlr4ts/CommonToken.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;let o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),e.CommonToken=l},"./node_modules/antlr4ts/CommonTokenFactory.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;let i=r("./node_modules/antlr4ts/CommonToken.js"),o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,a,l,u){let c=new i.CommonToken(e,r,t,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,a))),c}createSimple(t,e){return new i.CommonToken(t,e)}}var l;n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,(l=a=e.CommonTokenFactory||(e.CommonTokenFactory={})).DEFAULT=new l},"./node_modules/antlr4ts/CommonTokenStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;let o=r("./node_modules/antlr4ts/BufferedTokenStream.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class extends o.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},"./node_modules/antlr4ts/Decorators.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/DefaultErrorStrategy.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;let o=r("./node_modules/antlr4ts/atn/ATNState.js"),s=r("./node_modules/antlr4ts/atn/ATNStateType.js"),a=r("./node_modules/antlr4ts/FailedPredicateException.js"),l=r("./node_modules/antlr4ts/InputMismatchException.js"),u=r("./node_modules/antlr4ts/misc/IntervalSet.js"),c=r("./node_modules/antlr4ts/NoViableAltException.js"),h=r("./node_modules/antlr4ts/atn/PredictionContext.js"),d=r("./node_modules/antlr4ts/Token.js"),p=r("./node_modules/antlr4ts/Decorators.js");class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(d.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===d.Token.EOF?"":n.getTextFromRange(e.startToken,e.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=d.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===d.Token.EOF?"":"";let o=r,s=t.inputStream.tryLT(-1);return o.type===d.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,d.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===d.Token.EOF?"":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(d.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==d.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([p.Override],f.prototype,"reset",null),n([i(0,p.NotNull)],f.prototype,"beginErrorCondition",null),n([p.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,p.NotNull)],f.prototype,"endErrorCondition",null),n([p.Override],f.prototype,"reportMatch",null),n([p.Override],f.prototype,"reportError",null),n([i(0,p.NotNull)],f.prototype,"notifyErrorListeners",null),n([p.Override],f.prototype,"recover",null),n([p.Override],f.prototype,"sync",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,p.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,p.NotNull)],f.prototype,"reportMissingToken",null),n([p.Override],f.prototype,"recoverInline",null),n([i(0,p.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,p.NotNull)],f.prototype,"singleTokenDeletion",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getMissingSymbol",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,p.NotNull)],f.prototype,"getSymbolText",null),n([i(0,p.NotNull)],f.prototype,"getSymbolType",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"escapeWSAndQuote",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},"./node_modules/antlr4ts/Dependents.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},"./node_modules/antlr4ts/DiagnosticErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;let o=r("./node_modules/antlr4ts/misc/BitSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/Interval.js");class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},"./node_modules/antlr4ts/FailedPredicateException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/PredicateTransition.js"),l=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),e.FailedPredicateException=l},"./node_modules/antlr4ts/InputMismatchException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,s.NotNull)],a),e.InputMismatchException=a},"./node_modules/antlr4ts/IntStream.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME=""},"./node_modules/antlr4ts/InterpreterRuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/ParserRuleContext.js");class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},"./node_modules/antlr4ts/Lexer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;let i=r("./node_modules/antlr4ts/CommonTokenFactory.js"),o=r("./node_modules/antlr4ts/misc/IntegerStack.js"),s=r("./node_modules/antlr4ts/misc/Interval.js"),a=r("./node_modules/antlr4ts/IntStream.js"),l=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),u=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/Recognizer.js"),d=r("./node_modules/antlr4ts/Token.js");class p extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=p.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return d.Token.DEFAULT_CHANNEL}static get HIDDEN(){return d.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=d.Token.INVALID_TYPE,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=p.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=d.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=p.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===d.Token.INVALID_TYPE&&(this._type=t),this._type===p.SKIP)continue t}while(this._type===p.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=p.SKIP}more(){this._type=p.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,d.Token.EOF,void 0,d.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==d.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case d.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}p.DEFAULT_MODE=0,p.MORE=-2,p.SKIP=-3,p.MIN_CHAR_VALUE=0,p.MAX_CHAR_VALUE=1114111,n([c.Override],p.prototype,"nextToken",null),n([c.Override],p.prototype,"tokenFactory",null),n([c.Override],p.prototype,"inputStream",null),n([c.Override],p.prototype,"sourceName",null),n([c.Override],p.prototype,"line",null),n([c.Override],p.prototype,"charPositionInLine",null),e.Lexer=p},"./node_modules/antlr4ts/LexerInterpreter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;let o=r("./node_modules/antlr4ts/Lexer.js"),s=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=class extends o.Lexer{constructor(t,e,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),e.LexerInterpreter=u},"./node_modules/antlr4ts/LexerNoViableAltException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/misc/Utils.js"),u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;let o=r("./node_modules/antlr4ts/CommonTokenFactory.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),e.ListTokenSource=l},"./node_modules/antlr4ts/NoViableAltException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;let i=r("./node_modules/antlr4ts/Parser.js"),o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},"./node_modules/antlr4ts/Parser.js":function(t,e,r){var n=r("./node_modules/process/browser.js"),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof r?t:new r((function(e){e(t)}))}(t.value).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;let a=r("./node_modules/antlr4ts/misc/Utils.js"),l=r("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),u=r("./node_modules/antlr4ts/atn/ATNDeserializer.js"),c=r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),h=r("./node_modules/antlr4ts/tree/ErrorNode.js"),d=r("./node_modules/antlr4ts/misc/IntegerStack.js"),p=r("./node_modules/antlr4ts/Lexer.js"),f=r("./node_modules/antlr4ts/Decorators.js"),g=r("./node_modules/antlr4ts/atn/ParseInfo.js"),m=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),y=r("./node_modules/antlr4ts/ProxyParserErrorListener.js"),_=r("./node_modules/antlr4ts/Recognizer.js"),v=r("./node_modules/antlr4ts/tree/TerminalNode.js"),x=r("./node_modules/antlr4ts/Token.js");class b{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],b.prototype,"enterEveryRule",null),i([f.Override],b.prototype,"exitEveryRule",null),i([f.Override],b.prototype,"visitErrorNode",null),i([f.Override],b.prototype,"visitTerminal",null);class T extends _.Recognizer{constructor(t){super(),this._errHandler=new c.DefaultErrorStrategy,this._precedenceStack=new d.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0),this.interpreter?.reset()}match(t){let e=this.currentToken;return e.type===t?(t===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=T.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new u.ATNDeserializer(r).deserialize(a.toCharArray(t)),T.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return s(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof p.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r("./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js")))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==T.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new v.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){this._ctx._parent?.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js"))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new g.ParseInfo(e)}))}setProfile(t){return s(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js"))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new m.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new b(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}T.bypassAltsAtnCache=new Map,i([f.NotNull],T.prototype,"_errHandler",void 0),i([f.NotNull],T.prototype,"match",null),i([f.NotNull],T.prototype,"matchWildcard",null),i([f.NotNull],T.prototype,"getParseListeners",null),i([o(0,f.NotNull)],T.prototype,"addParseListener",null),i([f.NotNull],T.prototype,"getATNWithBypassAlts",null),i([f.NotNull,o(0,f.NotNull)],T.prototype,"errorHandler",null),i([f.Override],T.prototype,"inputStream",null),i([f.NotNull],T.prototype,"currentToken",null),i([o(0,f.NotNull)],T.prototype,"enterRule",null),i([f.Override,o(0,f.Nullable)],T.prototype,"precpred",null),i([f.Override],T.prototype,"getErrorListenerDispatch",null),i([f.NotNull],T.prototype,"getExpectedTokens",null),i([f.NotNull],T.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],T.prototype,"parseInfo",null),e.Parser=T},"./node_modules/antlr4ts/ParserErrorListener.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ParserInterpreter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;let o=r("./node_modules/antlr4ts/atn/ATNState.js"),s=r("./node_modules/antlr4ts/atn/ATNStateType.js"),a=r("./node_modules/antlr4ts/misc/BitSet.js"),l=r("./node_modules/antlr4ts/FailedPredicateException.js"),u=r("./node_modules/antlr4ts/InputMismatchException.js"),c=r("./node_modules/antlr4ts/InterpreterRuleContext.js"),h=r("./node_modules/antlr4ts/atn/LoopEndState.js"),d=r("./node_modules/antlr4ts/Decorators.js"),p=r("./node_modules/antlr4ts/Decorators.js"),f=r("./node_modules/antlr4ts/Parser.js"),g=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),m=r("./node_modules/antlr4ts/RecognitionException.js"),y=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),_=r("./node_modules/antlr4ts/Token.js"),v=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new g.ParserATNSimulator(this._atn,this)}else{r=r,n=n,i=i,this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new g.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof m.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),_.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=_.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,_.Token.INVALID_TYPE,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([d.NotNull],v.prototype,"_vocabulary",void 0),n([p.Override],v.prototype,"reset",null),n([p.Override],v.prototype,"atn",null),n([p.Override],v.prototype,"vocabulary",null),n([p.Override],v.prototype,"ruleNames",null),n([p.Override],v.prototype,"grammarFileName",null),n([p.Override],v.prototype,"enterRecursionRule",null),v=n([i(1,d.NotNull)],v),e.ParserInterpreter=v},"./node_modules/antlr4ts/ParserRuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;let i=r("./node_modules/antlr4ts/tree/ErrorNode.js"),o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/RuleContext.js"),l=r("./node_modules/antlr4ts/tree/TerminalNode.js");class u extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){let e=t;return e.setParent(this),this.addAnyChild(e)}{let e=t,r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;let o=r("./node_modules/antlr4ts/Decorators.js");class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},"./node_modules/antlr4ts/ProxyParserErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;let i=r("./node_modules/antlr4ts/ProxyErrorListener.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},"./node_modules/antlr4ts/RecognitionException.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},"./node_modules/antlr4ts/Recognizer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;let o=r("./node_modules/antlr4ts/ConsoleErrorListener.js"),s=r("./node_modules/antlr4ts/ProxyErrorListener.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/Token.js"),u=r("./node_modules/antlr4ts/misc/Utils.js");class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){return this.getTokenTypeMap().get(t)??l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},"./node_modules/antlr4ts/RuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;let i=r("./node_modules/antlr4ts/atn/ATN.js"),o=r("./node_modules/antlr4ts/Recognizer.js"),s=r("./node_modules/antlr4ts/tree/RuleNode.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/tree/Trees.js"),c=r("./node_modules/antlr4ts/ParserRuleContext.js");class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=e??-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e=0&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;let i=r("./node_modules/antlr4ts/atn/ATN.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js");class a extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},"./node_modules/antlr4ts/RuleDependency.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/RuleVersion.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/Token.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;let n=r("./node_modules/antlr4ts/IntStream.js");var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},"./node_modules/antlr4ts/TokenFactory.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenSource.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenStream.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenStreamRewriter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;let i=r("./node_modules/antlr4ts/misc/Interval.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js");class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new c(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new u(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),o=new h(this.tokens,t,e,i.length,r);i.push(o)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){return this.lastRewriteTokenIndexes.get(t)??-1}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;en.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndexn.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i'}}n([o.Override],l.prototype,"toString",null),e.RewriteOperation=l;class u extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},"./node_modules/antlr4ts/Vocabulary.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/VocabularyImpl.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/Token.js");class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t=0&&t=0&&t{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/atn/ATN.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/dfa/DFA.js"),a=r("./node_modules/antlr4ts/misc/IntervalSet.js"),l=r("./node_modules/antlr4ts/atn/InvalidState.js"),u=r("./node_modules/antlr4ts/atn/LL1Analyzer.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/PredictionContext.js"),p=r("./node_modules/antlr4ts/Token.js"),f=r("./node_modules/assert/build/assert.js"),g=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(p.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(p.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(p.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(p.Token.EPSILON),r=r._parent}return i.contains(p.Token.EPSILON)&&o.add(p.Token.EOF),o}};n([c.NotNull],g.prototype,"states",void 0),n([c.NotNull],g.prototype,"decisionToState",void 0),n([c.NotNull],g.prototype,"modeNameToStartState",void 0),n([c.NotNull],g.prototype,"modeToStartState",void 0),n([c.NotNull],g.prototype,"decisionToDFA",void 0),n([c.NotNull],g.prototype,"modeToDFA",void 0),n([c.NotNull],g.prototype,"nextTokens",null),n([i(0,c.NotNull)],g.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],g.prototype,"defineMode",null),n([i(0,c.NotNull)],g.prototype,"defineDecisionState",null),n([c.NotNull],g.prototype,"getExpectedTokens",null),g=n([i(0,c.NotNull)],g),e.ATN=g,(g=e.ATN||(e.ATN={})).INVALID_ALT_NUMBER=0,e.ATN=g},"./node_modules/antlr4ts/atn/ATNConfig.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/atn/DecisionState.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),c=r("./node_modules/antlr4ts/atn/PredictionContext.js"),h=r("./node_modules/antlr4ts/atn/SemanticContext.js"),d=r("./node_modules/assert/build/assert.js"),p=2147483648,f=class t{constructor(t,e,r){"number"==typeof e?(d((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new y(o,i,e,r,n,!1):new g(i,e,r,n):null!=o?new m(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){d(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new y(o,n,e,this,r,s):new g(n,e,this,r):null!=o||s?new m(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNConfig.js"),u=r("./node_modules/antlr4ts/misc/BitSet.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/PredictionContext.js"),p=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),f=r("./node_modules/antlr4ts/atn/SemanticContext.js"),g=r("./node_modules/assert/build/assert.js"),m=r("./node_modules/antlr4ts/misc/Utils.js");class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function _(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class v{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=_(),this.unmerged=[]):(this.mergedConfigs=_(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,(e||!t.isReadOnly)&&(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=_(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");g(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new v(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");g(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=p.PredictionContextCache.UNCACHED);let r,n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=d.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;it.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],v.prototype,"getRepresentedAlternatives",null),n([c.Override],v.prototype,"size",null),n([c.Override],v.prototype,"isEmpty",null),n([c.Override],v.prototype,"contains",null),n([c.Override],v.prototype,Symbol.iterator,null),n([c.Override],v.prototype,"toArray",null),n([c.Override],v.prototype,"containsAll",null),n([c.Override],v.prototype,"clear",null),n([c.Override],v.prototype,"equals",null),n([c.Override],v.prototype,"hashCode",null),e.ATNConfigSet=v},"./node_modules/antlr4ts/atn/ATNDeserializationOptions.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},"./node_modules/antlr4ts/atn/ATNDeserializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;let o=r("./node_modules/antlr4ts/atn/ActionTransition.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),u=r("./node_modules/antlr4ts/atn/ATNStateType.js"),c=r("./node_modules/antlr4ts/atn/AtomTransition.js"),h=r("./node_modules/antlr4ts/atn/BasicBlockStartState.js"),d=r("./node_modules/antlr4ts/atn/BasicState.js"),p=r("./node_modules/antlr4ts/misc/BitSet.js"),f=r("./node_modules/antlr4ts/atn/BlockEndState.js"),g=r("./node_modules/antlr4ts/atn/BlockStartState.js"),m=r("./node_modules/antlr4ts/atn/DecisionState.js"),y=r("./node_modules/antlr4ts/dfa/DFA.js"),_=r("./node_modules/antlr4ts/atn/EpsilonTransition.js"),v=r("./node_modules/antlr4ts/misc/IntervalSet.js"),x=r("./node_modules/antlr4ts/atn/InvalidState.js"),b=r("./node_modules/antlr4ts/atn/LexerChannelAction.js"),T=r("./node_modules/antlr4ts/atn/LexerCustomAction.js"),E=r("./node_modules/antlr4ts/atn/LexerModeAction.js"),O=r("./node_modules/antlr4ts/atn/LexerMoreAction.js"),S=r("./node_modules/antlr4ts/atn/LexerPopModeAction.js"),N=r("./node_modules/antlr4ts/atn/LexerPushModeAction.js"),A=r("./node_modules/antlr4ts/atn/LexerSkipAction.js"),w=r("./node_modules/antlr4ts/atn/LexerTypeAction.js"),R=r("./node_modules/antlr4ts/atn/LoopEndState.js"),C=r("./node_modules/antlr4ts/Decorators.js"),L=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),I=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),k=r("./node_modules/antlr4ts/atn/PlusBlockStartState.js"),D=r("./node_modules/antlr4ts/atn/PlusLoopbackState.js"),P=r("./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js"),M=r("./node_modules/antlr4ts/atn/PredicateTransition.js"),j=r("./node_modules/antlr4ts/atn/RangeTransition.js"),K=r("./node_modules/antlr4ts/atn/RuleStartState.js"),U=r("./node_modules/antlr4ts/atn/RuleStopState.js"),F=r("./node_modules/antlr4ts/atn/RuleTransition.js"),$=r("./node_modules/antlr4ts/atn/SetTransition.js"),H=r("./node_modules/antlr4ts/atn/StarBlockStartState.js"),B=r("./node_modules/antlr4ts/atn/StarLoopbackState.js"),q=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),G=r("./node_modules/antlr4ts/Token.js"),z=r("./node_modules/antlr4ts/atn/TokensStartState.js"),V=r("./node_modules/antlr4ts/misc/UUID.js"),Y=r("./node_modules/antlr4ts/atn/WildcardTransition.js");var W,X;(X=W||(W={}))[X.UNICODE_BMP=0]="UNICODE_BMP",X[X.UNICODE_SMP=1]="UNICODE_SMP";class Q{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=Q.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&Q.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>Q.toInt(t[e]),size:1}:{readUnicode:(t,e)=>Q.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;et.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${Q.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=Q.isFeatureSupported(Q.ADDED_LEXER_ACTIONS,n),l=Q.toInt(t[e++]),p=Q.toInt(t[e++]),m=new a.ATN(l,p),v=[],b=[],E=Q.toInt(t[e++]);for(let r=0;rt.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),P=[];for(let t of m.states){let e=t.ruleIndex>=0&&m.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r0;){let r=m.ruleToStartState[t].removeTransition(m.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}m.ruleToStartState[t].addTransition(new _.EpsilonTransition(e)),i.addTransition(new _.EpsilonTransition(r));let o=new d.BasicState;m.addState(o),o.addTransition(new c.AtomTransition(i,m.ruleToTokenType[t])),e.addTransition(new _.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=Q.inlineSetRules(m),t+=Q.combineChainedEpsilons(m);let e=0===m.grammarType;if(t+=Q.optimizeSets(m,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}return Q.identifyTailCalls(m),m}deserializeSets(t,e,r,n){let i=Q.toInt(t[e++]);for(let o=0;o=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new v.IntervalSet;for(let t=0;t0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r>>0}static toUUID(t,e){let r=Q.toInt32(t,e),n=Q.toInt32(t,e+2),i=Q.toInt32(t,e+4),o=Q.toInt32(t,e+6);return new V.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,a,l){let u=t.states[n];switch(e){case 1:return new _.EpsilonTransition(u);case 2:return 0!==a?new j.RangeTransition(u,G.Token.EOF,s):new j.RangeTransition(u,i,s);case 3:return new F.RuleTransition(t.states[i],s,a,u);case 4:return new M.PredicateTransition(u,i,s,0!==a);case 10:return new P.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,G.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new $.SetTransition(u,l[i]);case 8:return new L.NotSetTransition(u,l[i]);case 9:return new Y.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new x.InvalidState;case u.ATNStateType.BASIC:r=new d.BasicState;break;case u.ATNStateType.RULE_START:r=new K.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new H.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new z.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new B.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new q.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new D.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new b.LexerChannelAction(e);case 1:return new T.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return O.LexerMoreAction.INSTANCE;case 4:return S.LexerPopModeAction.INSTANCE;case 5:return new N.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new w.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}Q.BASE_SERIALIZED_UUID=V.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),Q.ADDED_LEXER_ACTIONS=V.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),Q.ADDED_UNICODE_SMP=V.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),Q.SUPPORTED_UUIDS=[Q.BASE_SERIALIZED_UUID,Q.ADDED_LEXER_ACTIONS,Q.ADDED_UNICODE_SMP],Q.SERIALIZED_UUID=Q.ADDED_UNICODE_SMP,n([C.NotNull],Q.prototype,"deserializationOptions",void 0),n([i(0,C.NotNull)],Q.prototype,"deserialize",null),n([i(0,C.NotNull)],Q.prototype,"markPrecedenceDecisions",null),n([C.NotNull,i(0,C.NotNull)],Q.prototype,"edgeFactory",null),e.ATNDeserializer=Q},"./node_modules/antlr4ts/atn/ATNSimulator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;let o=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),s=r("./node_modules/antlr4ts/dfa/DFAState.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/atn/PredictionContext.js"),u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},"./node_modules/antlr4ts/atn/ATNState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,(o=e.ATNState||(e.ATNState={})).INVALID_STATE_NUMBER=-1},"./node_modules/antlr4ts/atn/ATNStateType.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},"./node_modules/antlr4ts/atn/AbstractPredicateTransition.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;let n=r("./node_modules/antlr4ts/atn/Transition.js");class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},"./node_modules/antlr4ts/atn/ActionTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.ActionTransition=a},"./node_modules/antlr4ts/atn/AmbiguityInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),e.AmbiguityInfo=a},"./node_modules/antlr4ts/atn/AtomTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/Transition.js"),l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.AtomTransition=l},"./node_modules/antlr4ts/atn/BasicBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},"./node_modules/antlr4ts/atn/BasicState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),e.BasicState=a},"./node_modules/antlr4ts/atn/BlockEndState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),e.BlockEndState=a},"./node_modules/antlr4ts/atn/BlockStartState.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;let n=r("./node_modules/antlr4ts/atn/DecisionState.js");class i extends n.DecisionState{}e.BlockStartState=i},"./node_modules/antlr4ts/atn/ConflictInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/Utils.js");class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},"./node_modules/antlr4ts/atn/ContextSensitivityInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ContextSensitivityInfo=a},"./node_modules/antlr4ts/atn/DecisionEventInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},"./node_modules/antlr4ts/atn/DecisionInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},"./node_modules/antlr4ts/atn/DecisionState.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;let n=r("./node_modules/antlr4ts/atn/ATNState.js");class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},"./node_modules/antlr4ts/atn/EpsilonTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.EpsilonTransition=a},"./node_modules/antlr4ts/atn/ErrorInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ErrorInfo=a},"./node_modules/antlr4ts/atn/InvalidState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BasicState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),e.InvalidState=a},"./node_modules/antlr4ts/atn/LL1Analyzer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/atn/ATNConfig.js"),l=r("./node_modules/antlr4ts/misc/BitSet.js"),u=r("./node_modules/antlr4ts/misc/IntervalSet.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),d=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),p=r("./node_modules/antlr4ts/atn/PredictionContext.js"),f=r("./node_modules/antlr4ts/atn/RuleStopState.js"),g=r("./node_modules/antlr4ts/atn/RuleTransition.js"),m=r("./node_modules/antlr4ts/Token.js"),y=r("./node_modules/antlr4ts/atn/WildcardTransition.js"),_=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;let o=r("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),s=r("./node_modules/antlr4ts/atn/ATN.js"),a=r("./node_modules/antlr4ts/atn/ATNConfig.js"),l=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),u=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),c=r("./node_modules/antlr4ts/dfa/DFAState.js"),h=r("./node_modules/antlr4ts/misc/Interval.js"),d=r("./node_modules/antlr4ts/IntStream.js"),p=r("./node_modules/antlr4ts/Lexer.js"),f=r("./node_modules/antlr4ts/atn/LexerActionExecutor.js"),g=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),m=r("./node_modules/antlr4ts/Decorators.js"),y=r("./node_modules/antlr4ts/atn/OrderedATNConfigSet.js"),_=r("./node_modules/antlr4ts/atn/PredictionContext.js"),v=r("./node_modules/antlr4ts/atn/RuleStopState.js"),x=r("./node_modules/antlr4ts/Token.js"),b=r("./node_modules/assert/build/assert.js"),T=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let a=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR||(n!==d.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===d.IntStream.EOF)))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===d.IntStream.EOF&&e.index===this.startIndex)return x.Token.EOF;throw new g.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t "+n+" upon "+String.fromCharCode(r)),e?.setTarget(r,n)}addDFAState(t){b(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof v.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){10===t.LA(1)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};var E;n([m.NotNull],T.prototype,"prevAccept",void 0),n([i(0,m.NotNull)],T.prototype,"copyState",null),n([i(0,m.NotNull)],T.prototype,"match",null),n([m.Override],T.prototype,"reset",null),n([i(0,m.NotNull)],T.prototype,"matchATN",null),n([i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"execATN",null),n([i(0,m.NotNull)],T.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeTargetState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"getReachableConfigSet",null),n([i(0,m.NotNull)],T.prototype,"accept",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull),i(3,m.NotNull)],T.prototype,"getEpsilonTarget",null),n([i(0,m.NotNull)],T.prototype,"evaluatePredicate",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"captureSimState",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"addDFAState",null),n([m.NotNull],T.prototype,"getDFA",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"getText",null),n([i(0,m.NotNull)],T.prototype,"consume",null),n([m.NotNull],T.prototype,"getTokenName",null),T=n([i(0,m.NotNull)],T),e.LexerATNSimulator=T,(E=T=e.LexerATNSimulator||(e.LexerATNSimulator={})).debug=!1,E.dfa_debug=!1,E.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}},e.LexerATNSimulator=T},"./node_modules/antlr4ts/atn/LexerActionExecutor.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;let o=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),s=r("./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerChannelAction=a},"./node_modules/antlr4ts/atn/LexerCustomAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),e.LexerCustomAction=a},"./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),e.LexerIndexedCustomAction=a},"./node_modules/antlr4ts/atn/LexerModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerModeAction=a},"./node_modules/antlr4ts/atn/LexerMoreAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerMoreAction=a,(l=a=e.LexerMoreAction||(e.LexerMoreAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerPopModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,(l=a=e.LexerPopModeAction||(e.LexerPopModeAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerPushModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},"./node_modules/antlr4ts/atn/LexerSkipAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerSkipAction=a,(l=a=e.LexerSkipAction||(e.LexerSkipAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerTypeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerTypeAction=a},"./node_modules/antlr4ts/atn/LookaheadEventInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),e.LookaheadEventInfo=a},"./node_modules/antlr4ts/atn/LoopEndState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),e.LoopEndState=a},"./node_modules/antlr4ts/atn/NotSetTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/SetTransition.js"),a=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),e.NotSetTransition=a},"./node_modules/antlr4ts/atn/OrderedATNConfigSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;let i=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},"./node_modules/antlr4ts/atn/ParseInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;let o=r("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),s=r("./node_modules/antlr4ts/atn/ActionTransition.js"),a=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),l=r("./node_modules/antlr4ts/misc/Arrays.js"),u=r("./node_modules/antlr4ts/atn/ATN.js"),c=r("./node_modules/antlr4ts/atn/ATNConfig.js"),h=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),d=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),p=r("./node_modules/antlr4ts/atn/ATNStateType.js"),f=r("./node_modules/antlr4ts/atn/AtomTransition.js"),g=r("./node_modules/antlr4ts/misc/BitSet.js"),m=r("./node_modules/antlr4ts/atn/ConflictInfo.js"),y=r("./node_modules/antlr4ts/atn/DecisionState.js"),_=r("./node_modules/antlr4ts/dfa/DFAState.js"),v=r("./node_modules/antlr4ts/misc/IntegerList.js"),x=r("./node_modules/antlr4ts/misc/Interval.js"),b=r("./node_modules/antlr4ts/IntStream.js"),T=r("./node_modules/antlr4ts/Decorators.js"),E=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),O=r("./node_modules/antlr4ts/NoViableAltException.js"),S=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),N=r("./node_modules/antlr4ts/ParserRuleContext.js"),A=r("./node_modules/antlr4ts/atn/PredictionContext.js"),w=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),R=r("./node_modules/antlr4ts/atn/PredictionMode.js"),C=r("./node_modules/antlr4ts/atn/RuleStopState.js"),L=r("./node_modules/antlr4ts/atn/RuleTransition.js"),I=r("./node_modules/antlr4ts/atn/SemanticContext.js"),k=r("./node_modules/antlr4ts/atn/SetTransition.js"),D=r("./node_modules/antlr4ts/atn/SimulatorState.js"),P=r("./node_modules/antlr4ts/Token.js"),M=r("./node_modules/antlr4ts/VocabularyImpl.js"),j=r("./node_modules/assert/build/assert.js"),K=-2147483648,U=class t extends d.ATNSimulator{constructor(t,e){super(t),this.predictionMode=R.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(j(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(s,e,l,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);return null==e?void 0:new D.SimulatorState(r,e,!1,r)}return null==t.s0?void 0:new D.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(j(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?j(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new D.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=s.getContextTarget(this.getReturnState(l))),null==t){let t=new D.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(e,r,n,t)}j(null!=l),l=l.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}j(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=x.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new D.SimulatorState(o,s,i.useContext,l);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===d.ATNSimulator.ERROR){let t=new D.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,t)}s=u,!this.isAcceptState(s,i.useContext)&&a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){j(!i.useContext);let t,a=s.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new D.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new w.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),d.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(j(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),j(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let d=null!=l&&this.userWantsCtxSensitive;if(d&&(d=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,o,d||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(d){j(!s),j(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new g.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;j(null!=o),o=o.parent,s=t}if(j(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new D.SimulatorState(e.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,o,r,i,n);l=e[0],o=e[1]}return l!==d.ATNSimulator.ERROR?(j(!i||!l.configs.dipsIntoOuterContext),new D.SimulatorState(e.outerContext,l,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let a,l,c=r.configs.toArray(),p=new h.ATNConfigSet;do{let e=!o||null!=n;e||(p.isOutermostConfigSet=!0);let r,d=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof C.RuleStopState){j(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===b.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t0);for(let t of r)p.add(t,s)}if(o&&l){p.clear(),n=n,n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new v.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e0;){let t=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,e,t,l,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,a,l,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof C.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;tK),this.closureImpl(p,r,n,i,o,a,l,u-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let d=e.state;d.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let c=0;cK),s--,t.debug&&console.log("dips into outer ctx: "+m)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(j(m.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(m.outerContextDepth=m.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(m))continue;this.closureImpl(m,r,n,i,g,a,l,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:""}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(P.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new g.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==s)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new g.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=s}else if(o!==e){if(o!==a.nextSetBit(e+1)){i=!1;break}e=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,d=n[0].context;for(let t=1;t"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof k.SetTransition&&(e=(r instanceof E.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new O.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof C.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){j(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,s),j(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){t?.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return j(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new _.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,a){if(t.debug||t.retry_debug){let t=x.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,a)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(j(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r||(r=t.alt-e.alt,0!==r)?r:0},n([T.NotNull],U.prototype,"predictionMode",void 0),n([T.NotNull],U.prototype,"getPredictionMode",null),n([i(0,T.NotNull)],U.prototype,"setPredictionMode",null),n([T.Override],U.prototype,"reset",null),n([i(0,T.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"getStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execDFA",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execATN",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"computeTargetState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([T.NotNull],U.prototype,"computeStartState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,T.NotNull),i(4,T.Nullable)],U.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable),i(3,T.NotNull),i(6,T.NotNull)],U.prototype,"closureImpl",null),n([T.NotNull],U.prototype,"getRuleName",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getEpsilonTarget",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"actionTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"precedenceTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"predTransition",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable)],U.prototype,"ruleTransition",null),n([i(0,T.NotNull)],U.prototype,"isConflicted",null),n([T.NotNull],U.prototype,"getTokenName",null),n([i(0,T.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"noViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,T.NotNull)],U.prototype,"configWithAltAtStopState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(4,T.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,T.Nullable),i(2,T.Nullable)],U.prototype,"setDFAEdge",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAContextState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"createDFAState",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,T.NotNull),i(5,T.NotNull),i(6,T.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,T.NotNull)],U),e.ParserATNSimulator=U},"./node_modules/antlr4ts/atn/PlusBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},"./node_modules/antlr4ts/atn/PlusLoopbackState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/DecisionState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},"./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/SemanticContext.js"),l=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PrecedencePredicateTransition=l},"./node_modules/antlr4ts/atn/PredicateEvalInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,a){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),e.PredicateEvalInfo=a},"./node_modules/antlr4ts/atn/PredicateTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/SemanticContext.js"),l=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PredicateTransition=l},"./node_modules/antlr4ts/atn/PredictionContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/misc/Arrays.js"),l=r("./node_modules/antlr4ts/misc/MurmurHash.js"),u=r("./node_modules/antlr4ts/Decorators.js"),c=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),h=r("./node_modules/assert/build/assert.js");class d{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?d.EMPTY_FULL:d.EMPTY_LOCAL;let n;n=e._parent?d.fromRuleContext(t,e._parent,r):r?d.EMPTY_FULL:d.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return d.isEmptyLocal(t)?t:d.addEmptyContext(e);if(e.isEmpty)return d.isEmptyLocal(e)?e:d.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,p=!0,m=!0;for(;l0){let t=1;for(;1<>>0>o&(1<>>0)-1,s=s&&e>=a.size-1,e>=a.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[l];u+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==d.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],d.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"getCachedContext",null),e.PredictionContext=d;class p extends d{constructor(t){super(d.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],p.prototype,"addEmptyContext",null),n([u.Override],p.prototype,"removeEmptyContext",null),n([u.Override],p.prototype,"getParent",null),n([u.Override],p.prototype,"getReturnState",null),n([u.Override],p.prototype,"findReturnState",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"appendSingleContext",null),n([u.Override],p.prototype,"appendContext",null),n([u.Override],p.prototype,"isEmpty",null),n([u.Override],p.prototype,"hasEmpty",null),n([u.Override],p.prototype,"equals",null),n([u.Override],p.prototype,"toStrings",null);let f=class t extends d{constructor(t,e,r){super(r||d.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==d.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===d.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(d.EMPTY_FULL),r.push(d.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new g(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new d.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(d.isEmptyLocal(r)){if(e.hasEmpty)return d.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let t=0;t1),i=new t(s,a)),e.hasEmpty&&(i=d.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t)||this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),a=r("./node_modules/antlr4ts/atn/PredictionContext.js"),l=r("./node_modules/assert/build/assert.js");class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=u,u.UNCACHED=new u(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},"./node_modules/antlr4ts/atn/PredictionMode.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/RuleStopState.js");var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([s.Override],e.prototype,"hashCode",null),n([s.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},"./node_modules/antlr4ts/atn/ProfilingATNSimulator.js":function(t,e,r){var n=r("./node_modules/process/browser.js"),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;let s=r("./node_modules/antlr4ts/atn/AmbiguityInfo.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),u=r("./node_modules/antlr4ts/atn/ContextSensitivityInfo.js"),c=r("./node_modules/antlr4ts/atn/DecisionInfo.js"),h=r("./node_modules/antlr4ts/atn/ErrorInfo.js"),d=r("./node_modules/antlr4ts/Decorators.js"),p=r("./node_modules/antlr4ts/atn/LookaheadEventInfo.js"),f=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),g=r("./node_modules/antlr4ts/atn/PredicateEvalInfo.js"),m=r("./node_modules/antlr4ts/atn/SemanticContext.js"),y=r("./node_modules/antlr4ts/atn/SimulatorState.js");class _ extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;tthis.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=u,this.decisions[e].SLL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof m.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new g.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,o,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=o?o.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new s.AmbiguityInfo(this.currentDecision,this.currentState,o,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,o,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([d.Override,o(0,d.NotNull)],_.prototype,"adaptivePredict",null),i([d.Override],_.prototype,"getStartState",null),i([d.Override],_.prototype,"computeStartState",null),i([d.Override],_.prototype,"computeReachSet",null),i([d.Override],_.prototype,"getExistingTargetState",null),i([d.Override],_.prototype,"computeTargetState",null),i([d.Override],_.prototype,"evalSemanticContextImpl",null),i([d.Override],_.prototype,"reportContextSensitivity",null),i([d.Override],_.prototype,"reportAttemptingFullContext",null),i([d.Override,o(0,d.NotNull),o(5,d.NotNull),o(6,d.NotNull)],_.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=_},"./node_modules/antlr4ts/atn/RangeTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/Transition.js"),l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.RangeTransition=l},"./node_modules/antlr4ts/atn/RuleStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),e.RuleStartState=a},"./node_modules/antlr4ts/atn/RuleStopState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),e.RuleStopState=a},"./node_modules/antlr4ts/atn/RuleTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),e.RuleTransition=a},"./node_modules/antlr4ts/atn/SemanticContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),c=r("./node_modules/antlr4ts/misc/Utils.js");class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class d extends t{}t.Operator=d;let p=class r extends d{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=r("./node_modules/antlr4ts/atn/Transition.js"),u=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},"./node_modules/antlr4ts/atn/SimulatorState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js"),a=class{constructor(t,e,r,n){this.outerContext=t??s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),e.SimulatorState=a},"./node_modules/antlr4ts/atn/StarBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},"./node_modules/antlr4ts/atn/StarLoopEntryState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/misc/BitSet.js"),s=r("./node_modules/antlr4ts/atn/DecisionState.js"),a=r("./node_modules/antlr4ts/Decorators.js");class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},"./node_modules/antlr4ts/atn/StarLoopbackState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},"./node_modules/antlr4ts/atn/TokensStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/DecisionState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),e.TokensStartState=a},"./node_modules/antlr4ts/atn/Transition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},"./node_modules/antlr4ts/atn/WildcardTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.WildcardTransition=a},"./node_modules/antlr4ts/dfa/AcceptStateInfo.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},"./node_modules/antlr4ts/dfa/DFA.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),a=r("./node_modules/antlr4ts/dfa/DFASerializer.js"),l=r("./node_modules/antlr4ts/dfa/DFAState.js"),u=r("./node_modules/antlr4ts/dfa/LexerDFASerializer.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),p=r("./node_modules/antlr4ts/VocabularyImpl.js"),f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof d.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=p.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},"./node_modules/antlr4ts/dfa/DFASerializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;let i=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/PredictionContext.js"),a=r("./node_modules/antlr4ts/Recognizer.js"),l=r("./node_modules/antlr4ts/VocabularyImpl.js");class u{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},"./node_modules/antlr4ts/dfa/DFAState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;let o=r("./node_modules/antlr4ts/atn/ATN.js"),s=r("./node_modules/antlr4ts/misc/BitSet.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/atn/PredictionContext.js"),c=r("./node_modules/assert/build/assert.js");class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),!this.isContextSensitive&&(this.contextSymbols||(this.contextSymbols=new s.BitSet))}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},"./node_modules/antlr4ts/dfa/LexerDFASerializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;let o=r("./node_modules/antlr4ts/dfa/DFASerializer.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/VocabularyImpl.js"),l=class extends o.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),e.LexerDFASerializer=l},"./node_modules/antlr4ts/index.js":function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"!==r&&!Object.prototype.hasOwnProperty.call(e,r)&&n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./node_modules/antlr4ts/ANTLRErrorListener.js"),e),i(r("./node_modules/antlr4ts/ANTLRErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/ANTLRInputStream.js"),e),i(r("./node_modules/antlr4ts/BailErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/BufferedTokenStream.js"),e),i(r("./node_modules/antlr4ts/CharStream.js"),e),i(r("./node_modules/antlr4ts/CharStreams.js"),e),i(r("./node_modules/antlr4ts/CodePointBuffer.js"),e),i(r("./node_modules/antlr4ts/CodePointCharStream.js"),e),i(r("./node_modules/antlr4ts/CommonToken.js"),e),i(r("./node_modules/antlr4ts/CommonTokenFactory.js"),e),i(r("./node_modules/antlr4ts/CommonTokenStream.js"),e),i(r("./node_modules/antlr4ts/ConsoleErrorListener.js"),e),i(r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/Dependents.js"),e),i(r("./node_modules/antlr4ts/DiagnosticErrorListener.js"),e),i(r("./node_modules/antlr4ts/FailedPredicateException.js"),e),i(r("./node_modules/antlr4ts/InputMismatchException.js"),e),i(r("./node_modules/antlr4ts/InterpreterRuleContext.js"),e),i(r("./node_modules/antlr4ts/IntStream.js"),e),i(r("./node_modules/antlr4ts/Lexer.js"),e),i(r("./node_modules/antlr4ts/LexerInterpreter.js"),e),i(r("./node_modules/antlr4ts/LexerNoViableAltException.js"),e),i(r("./node_modules/antlr4ts/ListTokenSource.js"),e),i(r("./node_modules/antlr4ts/NoViableAltException.js"),e),i(r("./node_modules/antlr4ts/Parser.js"),e),i(r("./node_modules/antlr4ts/ParserErrorListener.js"),e),i(r("./node_modules/antlr4ts/ParserInterpreter.js"),e),i(r("./node_modules/antlr4ts/ParserRuleContext.js"),e),i(r("./node_modules/antlr4ts/ProxyErrorListener.js"),e),i(r("./node_modules/antlr4ts/ProxyParserErrorListener.js"),e),i(r("./node_modules/antlr4ts/RecognitionException.js"),e),i(r("./node_modules/antlr4ts/Recognizer.js"),e),i(r("./node_modules/antlr4ts/RuleContext.js"),e),i(r("./node_modules/antlr4ts/RuleContextWithAltNum.js"),e),i(r("./node_modules/antlr4ts/RuleDependency.js"),e),i(r("./node_modules/antlr4ts/RuleVersion.js"),e),i(r("./node_modules/antlr4ts/Token.js"),e),i(r("./node_modules/antlr4ts/TokenFactory.js"),e),i(r("./node_modules/antlr4ts/TokenSource.js"),e),i(r("./node_modules/antlr4ts/TokenStream.js"),e),i(r("./node_modules/antlr4ts/TokenStreamRewriter.js"),e),i(r("./node_modules/antlr4ts/Vocabulary.js"),e),i(r("./node_modules/antlr4ts/VocabularyImpl.js"),e),i(r("./node_modules/antlr4ts/WritableToken.js"),e)},"./node_modules/antlr4ts/misc/Array2DHashMap.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;let n=r("./node_modules/antlr4ts/misc/Array2DHashSet.js");class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class o{constructor(t){this.backingStore=t instanceof o?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof o&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=o},"./node_modules/antlr4ts/misc/Array2DHashSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;let o=r("./node_modules/assert/build/assert.js"),s=r("./node_modules/antlr4ts/misc/DefaultEqualityComparator.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/misc/MurmurHash.js");class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;tthis.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&t.size===this.size&&this.containsAll(t)}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){let t=new Array(this.size),e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},"./node_modules/antlr4ts/misc/ArrayEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class a{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e||t.length!==e.length)return!1;for(let r=0;r{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(rn))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},"./node_modules/antlr4ts/misc/BitSet.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;let n=r("./node_modules/util/util.js"),i=r("./node_modules/antlr4ts/misc/MurmurHash.js"),o=new Uint16Array(0);function s(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<>>0:65535>>>15-e^65535>>>16-t}let h=new Uint8Array(65536);for(let t=0;t<16;t++){let e=1<>>0,r=0;for(;rr)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;nr)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n=r)return-1}return a(n)+l(e[n]&i)}or(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");let e=this.data,r=e.length,n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},"./node_modules/antlr4ts/misc/DefaultEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},"./node_modules/antlr4ts/misc/IntegerList.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;let i=r("./node_modules/antlr4ts/misc/Arrays.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size||t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l)||this._size!==t._size)return!1;for(let e=0;ethis._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;ea)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e=65536?2:1;return t}}n([o.NotNull],l.prototype,"_data",void 0),n([o.Override],l.prototype,"equals",null),n([o.Override],l.prototype,"hashCode",null),n([o.Override],l.prototype,"toString",null),e.IntegerList=l},"./node_modules/antlr4ts/misc/IntegerStack.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;let n=r("./node_modules/antlr4ts/misc/IntegerList.js");class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},"./node_modules/antlr4ts/misc/Interval.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},"./node_modules/antlr4ts/misc/IntervalSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;let o=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),s=r("./node_modules/antlr4ts/misc/IntegerList.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Lexer.js"),u=r("./node_modules/antlr4ts/misc/MurmurHash.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/Token.js");class d{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===d._COMPLETE_CHAR_SET&&(d._COMPLETE_CHAR_SET=d.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),d._COMPLETE_CHAR_SET.setReadonly(!0)),d._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==d._EMPTY_SET&&(d._EMPTY_SET=new d,d._EMPTY_SET.setReadonly(!0)),d._EMPTY_SET}static of(t,e=t){let r=new d;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.bs.b)n++;else if(l.a>s.a&&(t=new a.Interval(s.a,l.a-1)),l.b>1,i=this._intervals[n],o=i.a;if(i.bt))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof d&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"":e===h.Token.EPSILON?"":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;rn&&t{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=r},"./node_modules/antlr4ts/misc/MurmurHash.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let o=e(i),s=0;for(let e of t)o=r(o,e),s++;return o=n(o,s),o}}(e.MurmurHash||(e.MurmurHash={}))},"./node_modules/antlr4ts/misc/ObjectEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},"./node_modules/antlr4ts/misc/ParseCancellationException.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},"./node_modules/antlr4ts/misc/UUID.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;let n=r("./node_modules/antlr4ts/misc/MurmurHash.js");class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},"./node_modules/antlr4ts/misc/Utils.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;let o=r("./node_modules/antlr4ts/Decorators.js");class s{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/TerminalNode.js");class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},"./node_modules/antlr4ts/tree/ParseTreeWalker.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;let n=r("./node_modules/antlr4ts/tree/ErrorNode.js"),i=r("./node_modules/antlr4ts/tree/TerminalNode.js"),o=r("./node_modules/antlr4ts/tree/RuleNode.js");class s{walk(t,e){let r=[],s=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),s.push(l),l=0,a=a.getChild(0);else do{if(a instanceof o.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},"./node_modules/antlr4ts/tree/TerminalNode.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;let i=r("./node_modules/antlr4ts/misc/Interval.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js");class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),e.TerminalNode=a},"./node_modules/antlr4ts/tree/Trees.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;let o=r("./node_modules/antlr4ts/atn/ATN.js"),s=r("./node_modules/antlr4ts/CommonToken.js"),a=r("./node_modules/antlr4ts/tree/ErrorNode.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/Parser.js"),c=r("./node_modules/antlr4ts/ParserRuleContext.js"),h=r("./node_modules/antlr4ts/tree/RuleNode.js"),d=r("./node_modules/antlr4ts/tree/TerminalNode.js"),p=r("./node_modules/antlr4ts/Token.js"),f=r("./node_modules/antlr4ts/misc/Utils.js");class g{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof d.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;on)&&g.isAncestorOf(i,e)){let e=new s.CommonToken(p.Token.INVALID_TYPE,"...");t.children[o]=new d.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},"./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},"./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),e.ParseTreePattern=a},"./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;let o=r("./node_modules/antlr4ts/BailErrorStrategy.js"),s=r("./node_modules/antlr4ts/CharStreams.js"),a=r("./node_modules/antlr4ts/CommonTokenStream.js"),l=r("./node_modules/antlr4ts/ListTokenSource.js"),u=r("./node_modules/antlr4ts/misc/MultiMap.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ParseCancellationException.js"),d=r("./node_modules/antlr4ts/ParserInterpreter.js"),p=r("./node_modules/antlr4ts/ParserRuleContext.js"),f=r("./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js"),g=r("./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js"),m=r("./node_modules/antlr4ts/RecognitionException.js"),y=r("./node_modules/antlr4ts/tree/RuleNode.js"),_=r("./node_modules/antlr4ts/tree/pattern/RuleTagToken.js"),v=r("./node_modules/antlr4ts/tree/pattern/TagChunk.js"),x=r("./node_modules/antlr4ts/tree/TerminalNode.js"),b=r("./node_modules/antlr4ts/tree/pattern/TextChunk.js"),T=r("./node_modules/antlr4ts/Token.js"),E=r("./node_modules/antlr4ts/tree/pattern/TokenTagToken.js");class O{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r,n=this.tokenize(t),i=new l.ListTokenSource(n),s=new a.CommonTokenStream(i),u=this._parser,c=new d.ParserInterpreter(u.grammarFileName,u.vocabulary,u.ruleNames,u.getATNWithBypassAlts(),s);try{c.errorHandler=new o.BailErrorStrategy,r=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof m.RecognitionException?t:t instanceof Error?new O.CannotInvokeStartRule(t):t}if(s.LA(1)!==T.Token.EOF)throw new O.StartRuleDoesNotConsumeFullPattern;return new g.ParseTreePattern(this,t,e,r)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof x.TerminalNode&&e instanceof x.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof E.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);let i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof p.ParserRuleContext&&e instanceof p.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);let e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+t);if(i.length=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new b.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new b.TextChunk(e))}for(let e=0;e=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new v.TagChunk(l,r)),e+10){let e=o[s-1]+this.stop.length;if(e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js"),a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.RuleTagToken=a},"./node_modules/antlr4ts/tree/pattern/TagChunk.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;let i=r("./node_modules/antlr4ts/tree/pattern/Chunk.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},"./node_modules/antlr4ts/tree/pattern/TextChunk.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;let o=r("./node_modules/antlr4ts/tree/pattern/Chunk.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TextChunk=a},"./node_modules/antlr4ts/tree/pattern/TokenTagToken.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;let o=r("./node_modules/antlr4ts/CommonToken.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TokenTagToken=a},"./node_modules/antlr4ts/tree/xpath/XPath.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;let n=r("./node_modules/antlr4ts/CharStreams.js"),i=r("./node_modules/antlr4ts/CommonTokenStream.js"),o=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js"),a=r("./node_modules/antlr4ts/Token.js"),l=r("./node_modules/antlr4ts/tree/xpath/XPathLexer.js"),u=r("./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js"),c=r("./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js"),h=r("./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js"),d=r("./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js"),p=r("./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js"),f=r("./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js"),g=r("./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js");class m{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,d=0;t:for(;d0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=m,m.WILDCARD="*",m.NOT="!"},"./node_modules/antlr4ts/tree/xpath/XPathElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},"./node_modules/antlr4ts/tree/xpath/XPathLexer.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;let n=r("./node_modules/antlr4ts/atn/ATNDeserializer.js"),i=r("./node_modules/antlr4ts/Lexer.js"),o=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),s=r("./node_modules/antlr4ts/VocabularyImpl.js"),a=r("./node_modules/antlr4ts/misc/Utils.js");class l extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},"./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},"./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class a extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},"./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;let i=r("./node_modules/antlr4ts/ParserRuleContext.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/tree/Trees.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},"./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class a extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},"./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/TerminalNode.js"),s=r("./node_modules/antlr4ts/tree/Trees.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},"./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},"./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},"./node_modules/assert/build/assert.js":(t,e,r)=>{var n=r("./node_modules/process/browser.js");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r("./node_modules/assert/build/internal/errors.js").codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,p=r("./node_modules/assert/build/internal/assert/assertion_error.js"),f=r("./node_modules/util/util.js").inspect,g=r("./node_modules/util/util.js").types,m=g.isPromise,y=g.isRegExp,_=r("./node_modules/object.assign/polyfill.js")(),v=r("./node_modules/object-is/polyfill.js")(),x=r("./node_modules/call-bind/callBound.js")("RegExp.prototype.test");function b(){var t=r("./node_modules/assert/build/internal/util/comparisons.js");o=t.isDeepEqual,s=t.isDeepStrictEqual}var T=!1,E=t.exports=A,O={};function S(t){throw t.message instanceof Error?t.message:new p(t)}function N(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var n=r("./node_modules/process/browser.js");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=r("./node_modules/util/util.js").inspect,y=r("./node_modules/assert/build/internal/errors.js").codes.ERR_INVALID_ARG_TYPE;function _(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var v="",x="",b="",T="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function O(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function S(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var N=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(i,t);var r=function(t){var e=d();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}(i);function i(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),"object"!==g(t)||null===t)throw new y("options","Object",t);var o=t.message,s=t.operator,a=t.stackStartFn,c=t.actual,h=t.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)e=r.call(this,String(o));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="",x="",T="",b=""):(v="",x="",T="",b="")),"object"===g(c)&&null!==c&&"object"===g(h)&&null!==h&&"stack"in c&&c instanceof Error&&"stack"in h&&h instanceof Error&&(c=O(c),h=O(h)),"deepStrictEqual"===s||"strictEqual"===s)e=r.call(this,function(t,e,r){var i="",o="",s=0,a="",l=!1,u=S(t),c=u.split("\n"),h=S(e).split("\n"),d=0,p="";if("strictEqual"===r&&"object"===g(t)&&"object"===g(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var f=c[0].length+h[0].length;if(f<=10){if(!("object"===g(t)&&null!==t||"object"===g(e)&&null!==e||0===t&&0===e))return"".concat(E[r],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&f<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",d),"^"),d=0)}}for(var m=c[c.length-1],y=h[h.length-1];m===y&&(d++<2?a="\n ".concat(m).concat(a):i=m,c.pop(),h.pop(),0!==c.length&&0!==h.length);)m=c[c.length-1],y=h[h.length-1];var O=Math.max(c.length,h.length);if(0===O){var N=u.split("\n");if(N.length>30)for(N[26]="".concat(v,"...").concat(T);N.length>27;)N.pop();return"".concat(E.notIdentical,"\n\n").concat(N.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(T).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var A=0,w=E[r]+"\n".concat(x,"+ actual").concat(T," ").concat(b,"- expected").concat(T),R=" ".concat(v,"...").concat(T," Lines skipped");for(d=0;d1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(h[d-2]),A++),o+="\n ".concat(h[d-1]),A++),s=d,i+="\n".concat(b,"-").concat(T," ").concat(h[d]),A++;else if(h.length1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(x,"+").concat(T," ").concat(c[d]),A++;else{var L=h[d],I=c[d],k=I!==L&&(!_(I,",")||I.slice(0,-1)!==L);k&&_(L,",")&&L.slice(0,-1)===I&&(k=!1,I+=","),k?(C>1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(x,"+").concat(T," ").concat(I),i+="\n".concat(b,"-").concat(T," ").concat(L),A+=2):(o+=i,i="",(1===C||0===d)&&(o+="\n ".concat(I),A++))}if(A>20&&d30)for(f[26]="".concat(v,"...").concat(T);f.length>27;)f.pop();e=1===f.length?r.call(this,"".concat(p," ").concat(f[0])):r.call(this,"".concat(p,"\n\n").concat(f.join("\n"),"\n"))}else{var m=S(c),N="",A=E[s];"notDeepEqual"===s||"notEqual"===s?(m="".concat(E[s],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(N="".concat(S(h)),m.length>512&&(m="".concat(m.slice(0,509),"...")),N.length>512&&(N="".concat(N.slice(0,509),"...")),"deepEqual"===s||"equal"===s?m="".concat(A,"\n\n").concat(m,"\n\nshould equal\n\n"):N=" ".concat(s," ").concat(N)),e=r.call(this,"".concat(m).concat(N))}return Error.stackTraceLimit=d,e.generatedMessage=!o,Object.defineProperty(u(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=c,e.expected=h,e.operator=s,Error.captureStackTrace&&Error.captureStackTrace(u(e),a),e.stack,e.name="AssertionError",l(e)}return function(t,e,r){e&&function(t,e){for(var r=0;r{function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a,l,u={};function c(t,e,r){r||(r=Error);var n=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(a,r);var n=function(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}(a);function a(r,i,o){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),s=n.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,o)),s.code=t,s}return function(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}(a)}(r);u[t]=n}function h(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s;if(void 0===a&&(a=r("./node_modules/assert/build/assert.js")),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&function(t,e,r){return t.substr(0,e.length)===e}(e,"not ")?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(o," ").concat(h(e,"type"));else{var l=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+".".length>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";s='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(h(e,"type"))}return s+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r("./node_modules/util/util.js"));var i=l.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=u},"./node_modules/assert/build/internal/util/comparisons.js":(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function k(t){return Object.keys(t).filter(I).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function D(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i{var n=r("./node_modules/possible-typed-array-names/index.js"),i=typeof globalThis>"u"?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/call-bind-apply-helpers/functionApply.js"),o=r("./node_modules/call-bind-apply-helpers/functionCall.js"),s=r("./node_modules/call-bind-apply-helpers/reflectApply.js");t.exports=s||n.call(o,i)},"./node_modules/call-bind-apply-helpers/applyBind.js":(t,e,r)=>{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/call-bind-apply-helpers/functionApply.js"),o=r("./node_modules/call-bind-apply-helpers/actualApply.js");t.exports=function(){return o(n,i,arguments)}},"./node_modules/call-bind-apply-helpers/functionApply.js":t=>{t.exports=Function.prototype.apply},"./node_modules/call-bind-apply-helpers/functionCall.js":t=>{t.exports=Function.prototype.call},"./node_modules/call-bind-apply-helpers/index.js":(t,e,r)=>{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/es-errors/type.js"),o=r("./node_modules/call-bind-apply-helpers/functionCall.js"),s=r("./node_modules/call-bind-apply-helpers/actualApply.js");t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},"./node_modules/call-bind-apply-helpers/reflectApply.js":t=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},"./node_modules/call-bind/callBound.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/call-bind/index.js"),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},"./node_modules/call-bind/index.js":(t,e,r)=>{var n=r("./node_modules/set-function-length/index.js"),i=r("./node_modules/es-define-property/index.js"),o=r("./node_modules/call-bind-apply-helpers/index.js"),s=r("./node_modules/call-bind-apply-helpers/applyBind.js");t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},"./node_modules/call-bound/index.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/call-bind-apply-helpers/index.js"),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},"./node_modules/define-data-property/index.js":(t,e,r)=>{var n=r("./node_modules/es-define-property/index.js"),i=r("./node_modules/es-errors/syntax.js"),o=r("./node_modules/es-errors/type.js"),s=r("./node_modules/gopd/index.js");t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},"./node_modules/define-properties/index.js":(t,e,r)=>{var n=r("./node_modules/object-keys/index.js"),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r("./node_modules/define-data-property/index.js"),l=r("./node_modules/has-property-descriptors/index.js")(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if(!function(t){return"function"==typeof t&&"[object Function]"===o.call(t)}(n)||!n())return;l?a(t,e,r,!0):a(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a{var n,i=r("./node_modules/call-bind-apply-helpers/index.js"),o=r("./node_modules/gopd/index.js");try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},"./node_modules/es-define-property/index.js":t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}t.exports=e},"./node_modules/es-errors/eval.js":t=>{t.exports=EvalError},"./node_modules/es-errors/index.js":t=>{t.exports=Error},"./node_modules/es-errors/range.js":t=>{t.exports=RangeError},"./node_modules/es-errors/ref.js":t=>{t.exports=ReferenceError},"./node_modules/es-errors/syntax.js":t=>{t.exports=SyntaxError},"./node_modules/es-errors/type.js":t=>{t.exports=TypeError},"./node_modules/es-errors/uri.js":t=>{t.exports=URIError},"./node_modules/es-object-atoms/index.js":t=>{t.exports=Object},"./node_modules/for-each/index.js":(t,e,r)=>{var n=r("./node_modules/is-callable/index.js"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,r){for(var n=0,i=t.length;n=3&&(i=r),u(t)?s(t,e,i):"string"==typeof t?a(t,e,i):l(t,e,i)}},"./node_modules/function-bind/implementation.js":t=>{var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(t,e){for(var r=[],n=0;n{var n=r("./node_modules/function-bind/implementation.js");t.exports=Function.prototype.bind||n},"./node_modules/get-intrinsic/index.js":(t,e,r)=>{var n,i=r("./node_modules/es-object-atoms/index.js"),o=r("./node_modules/es-errors/index.js"),s=r("./node_modules/es-errors/eval.js"),a=r("./node_modules/es-errors/range.js"),l=r("./node_modules/es-errors/ref.js"),u=r("./node_modules/es-errors/syntax.js"),c=r("./node_modules/es-errors/type.js"),h=r("./node_modules/es-errors/uri.js"),d=r("./node_modules/math-intrinsics/abs.js"),p=r("./node_modules/math-intrinsics/floor.js"),f=r("./node_modules/math-intrinsics/max.js"),g=r("./node_modules/math-intrinsics/min.js"),m=r("./node_modules/math-intrinsics/pow.js"),y=r("./node_modules/math-intrinsics/round.js"),_=r("./node_modules/math-intrinsics/sign.js"),v=Function,x=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch{}},b=r("./node_modules/gopd/index.js"),T=r("./node_modules/es-define-property/index.js"),E=function(){throw new c},O=b?function(){try{return E}catch{try{return b(arguments,"callee").get}catch{return E}}}():E,S=r("./node_modules/has-symbols/index.js")(),N=r("./node_modules/get-proto/index.js"),A=r("./node_modules/get-proto/Object.getPrototypeOf.js"),w=r("./node_modules/get-proto/Reflect.getPrototypeOf.js"),R=r("./node_modules/call-bind-apply-helpers/functionApply.js"),C=r("./node_modules/call-bind-apply-helpers/functionCall.js"),L={},I=typeof Uint8Array>"u"||!N?n:N(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!N?n:N((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!N?n:N((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&N?N(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":O,"%TypedArray%":I,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":R,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":_,"%Reflect.getPrototypeOf%":w};if(N)try{null.error}catch(t){var D=N(N(t));k["%Error.prototype%"]=D}var P=function t(e){var r;if("%AsyncFunction%"===e)r=x("async function () {}");else if("%GeneratorFunction%"===e)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=x("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&N&&(r=N(i.prototype))}return k[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r("./node_modules/function-bind/index.js"),K=r("./node_modules/hasown/index.js"),U=j.call(C,Array.prototype.concat),F=j.call(R,Array.prototype.splice),$=j.call(C,String.prototype.replace),H=j.call(C,String.prototype.slice),B=j.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return $(t,q,(function(t,e,r,i){n[n.length]=r?$(i,G,"$1"):e||t})),n},V=function(t,e){var r,n=t;if(K(M,n)&&(n="%"+(r=M[n])[0]+"%"),K(k,n)){var i=k[n];if(i===L&&(i=P(n)),typeof i>"u"&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(t),n=r.length>0?r[0]:"",i=V("%"+n+"%",e),o=i.name,s=i.value,a=!1,l=i.alias;l&&(n=l[0],F(r,U([0,1],l)));for(var h=1,d=!0;h=r.length){var m=b(s,p);s=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[p]}else d=K(s,p),s=s[p];d&&!a&&(k[o]=s)}}return s}},"./node_modules/get-proto/Object.getPrototypeOf.js":(t,e,r)=>{var n=r("./node_modules/es-object-atoms/index.js");t.exports=n.getPrototypeOf||null},"./node_modules/get-proto/Reflect.getPrototypeOf.js":t=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},"./node_modules/get-proto/index.js":(t,e,r)=>{var n=r("./node_modules/get-proto/Reflect.getPrototypeOf.js"),i=r("./node_modules/get-proto/Object.getPrototypeOf.js"),o=r("./node_modules/dunder-proto/get.js");t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},"./node_modules/gopd/gOPD.js":t=>{t.exports=Object.getOwnPropertyDescriptor},"./node_modules/gopd/index.js":(t,e,r)=>{var n=r("./node_modules/gopd/gOPD.js");if(n)try{n([],"length")}catch{n=null}t.exports=n},"./node_modules/has-property-descriptors/index.js":(t,e,r)=>{var n=r("./node_modules/es-define-property/index.js"),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch{return!0}},t.exports=i},"./node_modules/has-symbols/index.js":(t,e,r)=>{var n=typeof Symbol<"u"&&Symbol,i=r("./node_modules/has-symbols/shams.js");t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},"./node_modules/has-symbols/shams.js":t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"./node_modules/has-tostringtag/shams.js":(t,e,r)=>{var n=r("./node_modules/has-symbols/shams.js");t.exports=function(){return n()&&!!Symbol.toStringTag}},"./node_modules/hasown/index.js":(t,e,r)=>{var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r("./node_modules/function-bind/index.js");t.exports=o.call(n,i)},"./node_modules/inherits/inherits_browser.js":t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},"./node_modules/is-arguments/index.js":(t,e,r)=>{var n=r("./node_modules/has-tostringtag/shams.js")(),i=r("./node_modules/call-bound/index.js")("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},"./node_modules/is-callable/index.js":t=>{var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch{return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch{return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(typeof t>"u"||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch{}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},"./node_modules/is-generator-function/index.js":(t,e,r)=>{var n,i=r("./node_modules/call-bound/index.js"),o=r("./node_modules/safe-regex-test/index.js")(/^\s*(?:function)?\*/),s=r("./node_modules/has-tostringtag/shams.js")(),a=r("./node_modules/get-proto/index.js"),l=i("Object.prototype.toString"),u=i("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(o(u(t)))return!0;if(!s)return"[object GeneratorFunction]"===l(t);if(!a)return!1;if(typeof n>"u"){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();n=!!e&&a(e)}return a(t)===n}},"./node_modules/is-nan/implementation.js":t=>{t.exports=function(t){return t!=t}},"./node_modules/is-nan/index.js":(t,e,r)=>{var n=r("./node_modules/call-bind/index.js"),i=r("./node_modules/define-properties/index.js"),o=r("./node_modules/is-nan/implementation.js"),s=r("./node_modules/is-nan/polyfill.js"),a=r("./node_modules/is-nan/shim.js"),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},"./node_modules/is-nan/polyfill.js":(t,e,r)=>{var n=r("./node_modules/is-nan/implementation.js");t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},"./node_modules/is-nan/shim.js":(t,e,r)=>{var n=r("./node_modules/define-properties/index.js"),i=r("./node_modules/is-nan/polyfill.js");t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},"./node_modules/is-regex/index.js":(t,e,r)=>{var n,i=r("./node_modules/call-bound/index.js"),o=r("./node_modules/has-tostringtag/shams.js")(),s=r("./node_modules/hasown/index.js"),a=r("./node_modules/gopd/index.js");if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},h={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=c),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{l(t,h)}catch(t){return t===u}}}else{var d=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===d(t)}}t.exports=n},"./node_modules/is-typed-array/index.js":(t,e,r)=>{var n=r("./node_modules/which-typed-array/index.js");t.exports=function(t){return!!n(t)}},"./node_modules/lodash/lodash.js":function(t,e,r){var n;t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",_="[object Date]",v="[object Error]",x="[object Function]",b="[object GeneratorFunction]",T="[object Map]",E="[object Number]",O="[object Object]",S="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",R="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",I="[object DataView]",k="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",K="[object Uint8Array]",U="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,V=RegExp(G.source),Y=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wt="["+bt+"]",Rt="["+At+"]",Ct="["+Tt+"]",Lt="\\d+",It="["+Et+"]",kt="["+Ot+"]",Dt="[^"+bt+At+Lt+Et+Ot+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Mt="[^"+bt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+St+"]",Ft="(?:"+kt+"|"+Dt+")",$t="(?:"+Ut+"|"+Dt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Bt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Ct+"|"+Pt+")?",Gt="["+Nt+"]?",zt=Gt+qt+"(?:\\u200d(?:"+[Mt,jt,Kt].join("|")+")"+Gt+qt+")*",Vt="(?:"+[It,jt,Kt].join("|")+")"+zt,Yt="(?:"+[Mt+Ct+"?",Ct,jt,Kt,wt].join("|")+")",Wt=RegExp("['’]","g"),Xt=RegExp(Ct,"g"),Qt=RegExp(Pt+"(?="+Pt+")|"+Yt+zt,"g"),Jt=RegExp([Ut+"?"+kt+"+"+Ht+"(?="+[Rt,Ut,"$"].join("|")+")",$t+"+"+Bt+"(?="+[Rt,Ut+Ft,"$"].join("|")+")",Ut+"?"+Ft+"+"+Ht,Ut+"+"+Bt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Vt].join("|"),"g"),Zt=RegExp("[\\u200d"+bt+Tt+Nt+"]"),te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ne={};ne[k]=ne[D]=ne[P]=ne[M]=ne[j]=ne[K]=ne[U]=ne[F]=ne[$]=!0,ne[g]=ne[m]=ne[L]=ne[y]=ne[I]=ne[_]=ne[v]=ne[x]=ne[T]=ne[E]=ne[O]=ne[N]=ne[A]=ne[w]=ne[C]=!1;var ie={};ie[g]=ie[m]=ie[L]=ie[I]=ie[y]=ie[_]=ie[k]=ie[D]=ie[P]=ie[M]=ie[j]=ie[T]=ie[E]=ie[O]=ie[N]=ie[A]=ie[w]=ie[R]=ie[K]=ie[U]=ie[F]=ie[$]=!0,ie[v]=ie[x]=ie[C]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,le="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ue="object"==typeof self&&self&&self.Object===Object&&self,ce=le||ue||Function("return this")(),he=e&&!e.nodeType&&e,de=he&&t&&!t.nodeType&&t,pe=de&&de.exports===he,fe=pe&&le.process,ge=function(){try{return de&&de.require&&de.require("util").types||fe&&fe.binding&&fe.binding("util")}catch{}}(),me=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,_e=ge&&ge.isMap,ve=ge&&ge.isRegExp,xe=ge&&ge.isSet,be=ge&&ge.isTypedArray;function Te(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Re(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Je(t,e){for(var r=t.length;r--&&Ke(e,t[r],0)>-1;);return r}function Ze(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var tr=Be({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=Be({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+oe[t]}function nr(t){return Zt.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),dr=function t(e){var r,n=(e=null==e?ce:dr.defaults(ce.Object(),e,dr.pick(ce,ee))).Array,it=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=n.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(r=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mt=Ct.toString,jt=It.call(Ot),Kt=ce._,Ut=St("^"+It.call(kt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=pe?e.Buffer:i,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:i,qt=or(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Vt=wt.splice,Yt=$t?$t.isConcatSpreadable:i,Qt=$t?$t.iterator:i,Zt=$t?$t.toStringTag:i,oe=function(){try{var t=lo(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),le=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,ue=it&&it.now!==ce.Date.now&&it.now,he=e.setTimeout!==ce.setTimeout&&e.setTimeout,de=Et.ceil,fe=Et.floor,ge=Ot.getOwnPropertySymbols,Pe=Ft?Ft.isBuffer:i,Be=e.isFinite,pr=wt.join,fr=or(Ot.keys,Ot),gr=Et.max,mr=Et.min,yr=it.now,_r=e.parseInt,vr=Et.random,xr=wt.reverse,br=lo(e,"DataView"),Tr=lo(e,"Map"),Er=lo(e,"Promise"),Or=lo(e,"Set"),Sr=lo(e,"WeakMap"),Nr=lo(Ot,"create"),Ar=Sr&&new Sr,wr={},Rr=Ko(br),Cr=Ko(Tr),Lr=Ko(Er),Ir=Ko(Or),kr=Ko(Sr),Dr=$t?$t.prototype:i,Pr=Dr?Dr.valueOf:i,Mr=Dr?Dr.toString:i;function jr(t){if(ea(t)&&!qs(t)&&!(t instanceof $r)){if(t instanceof Fr)return t;if(kt.call(t,"__wrapped__"))return Uo(t)}return new Fr(t)}var Kr=function(){function t(){}return function(e){if(!ta(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Ur(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,r,n,o,s){var a,l=1&e,u=2&e,c=4&e;if(r&&(a=o?r(t,n,o,s):r(t)),a!==i)return a;if(!ta(t))return t;var h=qs(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Ni(t,a)}else{var d=ho(t),p=d==x||d==b;if(Ys(t))return xi(t,l);if(d==O||d==g||p&&!o){if(a=u||p?{}:fo(t),!l)return u?function(t,e){return Ai(t,co(t),e)}(t,function(t,e){return t&&Ai(e,Ia(e),t)}(a,t)):function(t,e){return Ai(t,uo(t),e)}(t,en(a,t))}else{if(!ie[d])return o?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case L:return bi(t);case y:case _:return new n(+t);case I:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case k:case D:case P:case M:case j:case K:case U:case F:case $:return Ti(t,r);case T:return new n;case E:case w:return new n(t);case N:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new n;case R:return function(t){return Pr?Ot(Pr.call(t)):{}}(t)}}(t,d,l)}}s||(s=new zr);var f=s.get(t);if(f)return f;s.set(t,a),sa(t)?t.forEach((function(n){a.add(sn(n,e,r,n,t,s))})):ra(t)&&t.forEach((function(n,i){a.set(i,sn(n,e,r,i,t,s))}));var m=h?i:(c?u?eo:to:u?Ia:La)(t);return Oe(m||t,(function(n,i){m&&(n=t[i=n]),Jr(a,i,sn(n,e,r,i,t,s))})),a}function an(t,e,r){var n=r.length;if(null==t)return!n;for(t=Ot(t);n--;){var o=r[n],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function ln(t,e,r){if("function"!=typeof t)throw new At(o);return Ro((function(){t.apply(i,r)}),e)}function un(t,e,r,n){var i=-1,o=we,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Ce(e,Ye(r))),n?(o=Re,s=!1):e.length>=200&&(o=Xe,s=!1,e=new Gr(e));t:for(;++i-1},Br.prototype.set=function(t,e){var r=this.__data__,n=Zr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Tr||Br),string:new Hr}},qr.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},qr.prototype.get=function(t){return so(this,t).get(t)},qr.prototype.has=function(t){return so(this,t).has(t)},qr.prototype.set=function(t,e){var r=so(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,s),this},Gr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.clear=function(){this.__data__=new Br,this.size=0},zr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},zr.prototype.get=function(t){return this.__data__.get(t)},zr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!Tr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(t,e),this.size=r.size,this};var cn=Ci(_n),hn=Ci(vn,!0);function dn(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function pn(t,e,r){for(var n=-1,o=t.length;++n0&&r(a)?e>1?gn(a,e-1,r,n,i):Le(i,a):n||(i[i.length]=a)}return i}var mn=Li(),yn=Li(!0);function _n(t,e){return t&&mn(t,e,La)}function vn(t,e){return t&&yn(t,e,La)}function xn(t,e){return Ae(e,(function(e){return Qs(t[e])}))}function bn(t,e){for(var r=0,n=(e=mi(e,t)).length;null!=t&&re}function Sn(t,e){return null!=t&&kt.call(t,e)}function Nn(t,e){return null!=t&&e in Ot(t)}function An(t,e,r){for(var o=r?Re:we,s=t[0].length,a=t.length,l=a,u=n(a),c=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Ce(d,Ye(e))),c=mr(d.length,c),u[l]=!r&&(e||s>=120&&d.length>=120)?new Gr(l&&d):i}d=t[0];var p=-1,f=u[0];t:for(;++p=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Mn(t,(function(t,r,i){return{criteria:Ce(e,(function(e){return e(t)})),index:++n,value:t}})))}function Hn(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Vt.call(a,l,1),Vt.call(t,l,1);return t}function qn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Vt.call(t,i,1):li(t,i)}}return t}function Gn(t,e){return t+fe(vr()*(e-t+1))}function zn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=fe(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return Co(Oo(t,e,nl),t+"")}function Yn(t){return Yr(Fa(t))}function Wn(t,e){var r=Fa(t);return ko(r,on(e,0,r.length))}function Xn(t,e,r,n){if(!ta(t))return t;for(var o=-1,s=(e=mi(e,t)).length,a=s-1,l=t;null!=l&&++oo?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i>>1,s=t[o];null!==s&&!la(s)&&(r?s<=e:s=200){var u=e?null:zi(t);if(u)return ar(u);s=!1,i=Xe,l=new Gr}else l=e?[]:a;t:for(;++n=n?t:ti(t,e,r)}var vi=le||function(t){return ce.clearTimeout(t)};function xi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,s=la(t),a=e!==i,l=null===e,u=e==e,c=la(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||n&&a&&u||!r&&u||!o)return 1;if(!n&&!s&&!c&&t1?r[o-1]:i,a=o>2?r[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&yo(r[0],r[1],a)&&(s=o<3?i:s,o=1),e=Ot(e);++n-1?o[s?e[a]:a]:i}}function Mi(t){return Zi((function(e){var r=e.length,n=r,s=Fr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new At(o);if(s&&!l&&"wrapper"==no(a))var l=new Fr([],!0)}for(n=l?n:r;++n1&&v.reverse(),p&&hl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&r?new Gr:i;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Oe(f,(function(r){var n="_."+r[0];e&r[1]&&!we(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(n),r)))}function Io(t){var e=0,r=0;return function(){var n=yr(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ko(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,os(t,r)}));function ds(t){var e=jr(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var fs=Zi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof $r&&mo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:i}),new Fr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),gs=wi((function(t,e,r){kt.call(t,r)?++t[r]:rn(t,r,1)})),ms=Pi(Bo),ys=Pi(qo);function _s(t,e){return(qs(t)?Oe:cn)(t,oo(e,3))}function vs(t,e){return(qs(t)?Se:hn)(t,oo(e,3))}var xs=wi((function(t,e,r){kt.call(t,r)?t[r].push(e):rn(t,r,[e])})),bs=Vn((function(t,e,r){var i=-1,o="function"==typeof e,s=zs(t)?n(t.length):[];return cn(t,(function(t){s[++i]=o?Te(e,t,r):wn(t,e,r)})),s})),Ts=wi((function(t,e,r){rn(t,r,e)}));function Es(t,e){return(qs(t)?Ce:Mn)(t,oo(e,3))}var Os=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ss=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yo(t,e[0],e[1])?e=[]:r>2&&yo(e[0],e[1],e[2])&&(e=[e[0]]),$n(t,gn(e,1),[])})),Ns=ue||function(){return ce.Date.now()};function As(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function ws(t,e){var r;if("function"!=typeof e)throw new At(o);return t=fa(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var Rs=Vn((function(t,e,r){var n=1;if(r.length){var i=sr(r,io(Rs));n|=l}return Yi(t,n,e,r,i)})),Cs=Vn((function(t,e,r){var n=3;if(r.length){var i=sr(r,io(Cs));n|=l}return Yi(e,n,t,r,i)}));function Ls(t,e,r){var n,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(o);function g(e){var r=n,o=s;return n=s=i,h=e,l=t.apply(o,r)}function m(t){return h=t,u=Ro(_,e),d?g(t):l}function y(t){var r=t-c;return c===i||r>=e||r<0||p&&t-h>=a}function _(){var t=Ns();if(y(t))return v(t);u=Ro(_,function(t){var r=e-(t-c);return p?mr(r,a-(t-h)):r}(t))}function v(t){return u=i,f&&n?g(t):(n=s=i,l)}function x(){var t=Ns(),r=y(t);if(n=arguments,s=this,c=t,r){if(u===i)return m(c);if(p)return vi(u),u=Ro(_,e),g(c)}return u===i&&(u=Ro(_,e)),l}return e=ma(e)||0,ta(r)&&(d=!!r.leading,a=(p="maxWait"in r)?gr(ma(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f),x.cancel=function(){u!==i&&vi(u),h=0,n=c=s=u=i},x.flush=function(){return u===i?l:v(Ns())},x}var Is=Vn((function(t,e){return ln(t,1,e)})),ks=Vn((function(t,e,r){return ln(t,ma(e)||0,r)}));function Ds(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ds.Cache||qr),r}function Ps(t){if("function"!=typeof t)throw new At(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ds.Cache=qr;var Ms=yi((function(t,e){var r=(e=1==e.length&&qs(e[0])?Ce(e[0],Ye(oo())):Ce(gn(e,1),Ye(oo()))).length;return Vn((function(n){for(var i=-1,o=mr(n.length,r);++i=e})),Bs=Rn(function(){return arguments}())?Rn:function(t){return ea(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},qs=n.isArray,Gs=me?Ye(me):function(t){return ea(t)&&En(t)==L};function zs(t){return null!=t&&Zs(t.length)&&!Qs(t)}function Vs(t){return ea(t)&&zs(t)}var Ys=Pe||ml,Ws=ye?Ye(ye):function(t){return ea(t)&&En(t)==_};function Xs(t){if(!ea(t))return!1;var e=En(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Qs(t){if(!ta(t))return!1;var e=En(t);return e==x||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==fa(t)}function Zs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var ra=_e?Ye(_e):function(t){return ea(t)&&ho(t)==T};function na(t){return"number"==typeof t||ea(t)&&En(t)==E}function ia(t){if(!ea(t)||En(t)!=O)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var oa=ve?Ye(ve):function(t){return ea(t)&&En(t)==N},sa=xe?Ye(xe):function(t){return ea(t)&&ho(t)==A};function aa(t){return"string"==typeof t||!qs(t)&&ea(t)&&En(t)==w}function la(t){return"symbol"==typeof t||ea(t)&&En(t)==R}var ua=be?Ye(be):function(t){return ea(t)&&Zs(t.length)&&!!ne[En(t)]},ca=Bi(Pn),ha=Bi((function(t,e){return t<=e}));function da(t){if(!t)return[];if(zs(t))return aa(t)?ur(t):Ni(t);if(Qt&&t[Qt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Qt]());var e=ho(t);return(e==T?ir:e==A?ar:Fa)(t)}function pa(t){return t?(t=ma(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fa(t){var e=pa(t),r=e%1;return e==e?r?e-r:e:0}function ga(t){return t?on(fa(t),0,p):0}function ma(t){if("number"==typeof t)return t;if(la(t))return d;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=ft.test(t);return r||mt.test(t)?ae(t.slice(2),r?2:8):pt.test(t)?d:+t}function ya(t){return Ai(t,Ia(t))}function _a(t){return null==t?"":si(t)}var va=Ri((function(t,e){if(bo(e)||zs(e))Ai(e,La(e),t);else for(var r in e)kt.call(e,r)&&Jr(t,r,e[r])})),xa=Ri((function(t,e){Ai(e,Ia(e),t)})),ba=Ri((function(t,e,r,n){Ai(e,Ia(e),t,n)})),Ta=Ri((function(t,e,r,n){Ai(e,La(e),t,n)})),Ea=Zi(nn),Oa=Vn((function(t,e){t=Ot(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&yo(e[0],e[1],o)&&(n=1);++r1),e})),Ai(t,eo(t),r),n&&(r=sn(r,7,Qi));for(var i=e.length;i--;)li(r,e[i]);return r})),Ma=Zi((function(t,e){return null==t?{}:function(t,e){return Hn(t,e,(function(e,r){return Aa(t,r)}))}(t,e)}));function ja(t,e){if(null==t)return{};var r=Ce(eo(t),(function(t){return[t]}));return e=oo(e),Hn(t,r,(function(t,r){return e(t,r[0])}))}var Ka=Vi(La),Ua=Vi(Ia);function Fa(t){return null==t?[]:We(t,La(t))}var $a=ki((function(t,e,r){return e=e.toLowerCase(),t+(r?Ha(e):e)}));function Ha(t){return Xa(_a(t).toLowerCase())}function Ba(t){return(t=_a(t))&&t.replace(_t,tr).replace(Xt,"")}var qa=ki((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ga=ki((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),za=Ii("toLowerCase"),Va=ki((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ya=ki((function(t,e,r){return t+(r?" ":"")+Xa(e)})),Wa=ki((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xa=Ii("toUpperCase");function Qa(t,e,r){return t=_a(t),(e=r?i:e)===i?function(t){return te.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Ja=Vn((function(t,e){try{return Te(t,i,e)}catch(t){return Xs(t)?t:new bt(t)}})),Za=Zi((function(t,e){return Oe(e,(function(e){e=jo(e),rn(t,e,Rs(t[e],t))})),t}));function tl(t){return function(){return t}}var el=Mi(),rl=Mi(!0);function nl(t){return t}function il(t){return kn("function"==typeof t?t:sn(t,1))}var ol=Vn((function(t,e){return function(r){return wn(r,t,e)}})),sl=Vn((function(t,e){return function(r){return wn(t,r,e)}}));function al(t,e,r){var n=La(e),i=xn(e,n);null==r&&(!ta(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=xn(e,La(e)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Qs(t);return Oe(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=Ni(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Le([this.value()],arguments))})})),t}function ll(){}var ul=Fi(Ce),cl=Fi(Ne),hl=Fi(De);function dl(t){return _o(t)?He(jo(t)):function(t){return function(e){return bn(e,t)}}(t)}var pl=Hi(),fl=Hi(!0);function gl(){return[]}function ml(){return!1}var yl=Ui((function(t,e){return t+e}),0),_l=Gi("ceil"),vl=Ui((function(t,e){return t/e}),1),xl=Gi("floor"),bl=Ui((function(t,e){return t*e}),1),Tl=Gi("round"),El=Ui((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new At(o);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=As,jr.assign=va,jr.assignIn=xa,jr.assignInWith=ba,jr.assignWith=Ta,jr.at=Ea,jr.before=ws,jr.bind=Rs,jr.bindAll=Za,jr.bindKey=Cs,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},jr.chain=ds,jr.chunk=function(t,e,r){e=(r?yo(t,e,r):e===i)?1:gr(fa(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=n(de(o/e));so?0:o+r),(n=n===i||n>o?o:fa(n))<0&&(n+=o),n=r>n?0:ga(n);r>>0)?(t=_a(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=si(e))&&nr(t)?_i(ur(t),0,r):t.split(e,r):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new At(o);return e=null==e?0:gr(fa(e),0),Vn((function(r){var n=r[e],i=_i(r,0,e);return n&&Le(i,n),Te(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},jr.take=function(t,e,r){return t&&t.length?ti(t,0,(e=r||e===i?1:fa(e))<0?0:e):[]},jr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=n-(e=r||e===i?1:fa(e)))<0?0:e,n):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new At(o);return ta(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ls(t,e,{leading:n,maxWait:e,trailing:i})},jr.thru=ps,jr.toArray=da,jr.toPairs=Ka,jr.toPairsIn=Ua,jr.toPath=function(t){return qs(t)?Ce(t,jo):la(t)?[t]:Ni(Mo(_a(t)))},jr.toPlainObject=ya,jr.transform=function(t,e,r){var n=qs(t),i=n||Ys(t)||ua(t);if(e=oo(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:ta(t)&&Qs(o)?Kr(qt(t)):{}}return(i?Oe:_n)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return As(t,1)},jr.union=es,jr.unionBy=rs,jr.unionWith=ns,jr.uniq=function(t){return t&&t.length?ai(t):[]},jr.uniqBy=function(t,e){return t&&t.length?ai(t,oo(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},jr.unset=function(t,e){return null==t||li(t,e)},jr.unzip=is,jr.unzipWith=os,jr.update=function(t,e,r){return null==t?t:ui(t,e,gi(r))},jr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:ui(t,e,gi(r),n)},jr.values=Fa,jr.valuesIn=function(t){return null==t?[]:We(t,Ia(t))},jr.without=ss,jr.words=Qa,jr.wrap=function(t,e){return js(gi(e),t)},jr.xor=as,jr.xorBy=ls,jr.xorWith=us,jr.zip=cs,jr.zipObject=function(t,e){return pi(t||[],e||[],Jr)},jr.zipObjectDeep=function(t,e){return pi(t||[],e||[],Xn)},jr.zipWith=hs,jr.entries=Ka,jr.entriesIn=Ua,jr.extend=xa,jr.extendWith=ba,al(jr,jr),jr.add=yl,jr.attempt=Ja,jr.camelCase=$a,jr.capitalize=Ha,jr.ceil=_l,jr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=ma(r))==r?r:0),e!==i&&(e=(e=ma(e))==e?e:0),on(ma(t),e,r)},jr.clone=function(t){return sn(t,4)},jr.cloneDeep=function(t){return sn(t,5)},jr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:i)},jr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:i)},jr.conformsTo=function(t,e){return null==e||an(t,e,La(e))},jr.deburr=Ba,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=vl,jr.endsWith=function(t,e,r){t=_a(t),e=si(e);var n=t.length,o=r=r===i?n:on(fa(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},jr.eq=Fs,jr.escape=function(t){return(t=_a(t))&&Y.test(t)?t.replace(z,er):t},jr.escapeRegExp=function(t){return(t=_a(t))&&rt.test(t)?t.replace(et,"\\$&"):t},jr.every=function(t,e,r){var n=qs(t)?Ne:dn;return r&&yo(t,e,r)&&(e=i),n(t,oo(e,3))},jr.find=ms,jr.findIndex=Bo,jr.findKey=function(t,e){return Me(t,oo(e,3),_n)},jr.findLast=ys,jr.findLastIndex=qo,jr.findLastKey=function(t,e){return Me(t,oo(e,3),vn)},jr.floor=xl,jr.forEach=_s,jr.forEachRight=vs,jr.forIn=function(t,e){return null==t?t:mn(t,oo(e,3),Ia)},jr.forInRight=function(t,e){return null==t?t:yn(t,oo(e,3),Ia)},jr.forOwn=function(t,e){return t&&_n(t,oo(e,3))},jr.forOwnRight=function(t,e){return t&&vn(t,oo(e,3))},jr.get=Na,jr.gt=$s,jr.gte=Hs,jr.has=function(t,e){return null!=t&&po(t,e,Sn)},jr.hasIn=Aa,jr.head=zo,jr.identity=nl,jr.includes=function(t,e,r,n){t=zs(t)?t:Fa(t),r=r&&!n?fa(r):0;var i=t.length;return r<0&&(r=gr(i+r,0)),aa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ke(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=gr(n+i,0)),Ke(t,e,i)},jr.inRange=function(t,e,r){return e=pa(e),r===i?(r=e,e=0):r=pa(r),function(t,e,r){return t>=mr(e,r)&&t=-h&&t<=h},jr.isSet=sa,jr.isString=aa,jr.isSymbol=la,jr.isTypedArray=ua,jr.isUndefined=function(t){return t===i},jr.isWeakMap=function(t){return ea(t)&&ho(t)==C},jr.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==En(t)},jr.join=function(t,e){return null==t?"":pr.call(t,e)},jr.kebabCase=qa,jr.last=Xo,jr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=fa(r))<0?gr(n+o,0):mr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):je(t,Fe,o,!0)},jr.lowerCase=Ga,jr.lowerFirst=za,jr.lt=ca,jr.lte=ha,jr.max=function(t){return t&&t.length?pn(t,nl,On):i},jr.maxBy=function(t,e){return t&&t.length?pn(t,oo(e,2),On):i},jr.mean=function(t){return $e(t,nl)},jr.meanBy=function(t,e){return $e(t,oo(e,2))},jr.min=function(t){return t&&t.length?pn(t,nl,Pn):i},jr.minBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Pn):i},jr.stubArray=gl,jr.stubFalse=ml,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=bl,jr.nth=function(t,e){return t&&t.length?Fn(t,fa(e)):i},jr.noConflict=function(){return ce._===this&&(ce._=Kt),this},jr.noop=ll,jr.now=Ns,jr.pad=function(t,e,r){t=_a(t);var n=(e=fa(e))?lr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return $i(fe(i),r)+t+$i(de(i),r)},jr.padEnd=function(t,e,r){t=_a(t);var n=(e=fa(e))?lr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var o=vr();return mr(t+o*(e-t+se("1e-"+((o+"").length-1))),e)}return Gn(t,e)},jr.reduce=function(t,e,r){var n=qs(t)?Ie:qe,i=arguments.length<3;return n(t,oo(e,4),r,i,cn)},jr.reduceRight=function(t,e,r){var n=qs(t)?ke:qe,i=arguments.length<3;return n(t,oo(e,4),r,i,hn)},jr.repeat=function(t,e,r){return e=(r?yo(t,e,r):e===i)?1:fa(e),zn(_a(t),e)},jr.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,r){var n=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=i);++nh)return[];var r=p,n=mr(t,p);e=oo(e),t-=p;for(var i=ze(n,e);++r=s)return t;var l=r-lr(n);if(l<1)return n;var u=a?_i(a,0,l).join(""):t.slice(0,l);if(o===i)return u+n;if(a&&(l+=u.length-l),oa(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,_a(dt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(si(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+n},jr.unescape=function(t){return(t=_a(t))&&V.test(t)?t.replace(G,hr):t},jr.uniqueId=function(t){var e=++Dt;return _a(t)+e},jr.upperCase=Wa,jr.upperFirst=Xa,jr.each=_s,jr.eachRight=vs,jr.first=zo,al(jr,function(){var t={};return _n(jr,(function(e,r){kt.call(jr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),jr.VERSION="4.17.21",Oe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),Oe(["drop","take"],(function(t,e){$r.prototype[t]=function(r){r=r===i?1:gr(fa(r),0);var n=this.__filtered__&&!e?new $r(this):this.clone();return n.__filtered__?n.__takeCount__=mr(r,n.__takeCount__):n.__views__.push({size:mr(r,p),type:t+(n.__dir__<0?"Right":"")}),n},$r.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Oe(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;$r.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Oe(["head","last"],(function(t,e){var r="take"+(e?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),Oe(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(nl)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new $r(this):this.map((function(r){return wn(r,t,e)}))})),$r.prototype.reject=function(t){return this.filter(Ps(oo(t)))},$r.prototype.slice=function(t,e){t=fa(t);var r=this;return r.__filtered__&&(t>0||e<0)?new $r(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=fa(e))<0?r.dropRight(-e):r.take(e-t)),r)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(p)},_n($r.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=jr[n?"take"+("last"==e?"Right":""):e],s=n||/^find/.test(e);o&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,l=e instanceof $r,u=a[0],c=l||qs(e),h=function(t){var e=o.apply(jr,Le([t],a));return n&&d?e[0]:e};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new $r(this);var m=t.apply(e,a);return m.__actions__.push({func:ps,args:[h],thisArg:i}),new Fr(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?n?m.value()[0]:m.value():m)})})),Oe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(qs(i)?i:[],t)}return this[r]((function(r){return e.apply(qs(r)?r:[],t)}))}})),_n($r.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";kt.call(wr,n)||(wr[n]=[]),wr[n].push({name:e,func:r})}})),wr[ji(i,2).name]=[{name:"wrapper",func:i}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=qs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,r=this;r instanceof Ur;){var n=Uo(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var e=t;return this.__actions__.length&&(e=new $r(this)),(e=e.reverse()).__actions__.push({func:ps,args:[ts],thisArg:i}),new Fr(e,this.__chain__)}return this.thru(ts)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,Qt&&(jr.prototype[Qt]=function(){return this}),jr}();ce._=dr,(n=function(){return dr}.call(e,r,e,t))!==i&&(t.exports=n)}.call(this)},"./node_modules/math-intrinsics/abs.js":t=>{t.exports=Math.abs},"./node_modules/math-intrinsics/floor.js":t=>{t.exports=Math.floor},"./node_modules/math-intrinsics/isNaN.js":t=>{t.exports=Number.isNaN||function(t){return t!=t}},"./node_modules/math-intrinsics/max.js":t=>{t.exports=Math.max},"./node_modules/math-intrinsics/min.js":t=>{t.exports=Math.min},"./node_modules/math-intrinsics/pow.js":t=>{t.exports=Math.pow},"./node_modules/math-intrinsics/round.js":t=>{t.exports=Math.round},"./node_modules/math-intrinsics/sign.js":(t,e,r)=>{var n=r("./node_modules/math-intrinsics/isNaN.js");t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},"./node_modules/object-is/implementation.js":t=>{var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:!!(t===r||e(t)&&e(r))}},"./node_modules/object-is/index.js":(t,e,r)=>{var n=r("./node_modules/define-properties/index.js"),i=r("./node_modules/call-bind/index.js"),o=r("./node_modules/object-is/implementation.js"),s=r("./node_modules/object-is/polyfill.js"),a=r("./node_modules/object-is/shim.js"),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},"./node_modules/object-is/polyfill.js":(t,e,r)=>{var n=r("./node_modules/object-is/implementation.js");t.exports=function(){return"function"==typeof Object.is?Object.is:n}},"./node_modules/object-is/shim.js":(t,e,r)=>{var n=r("./node_modules/object-is/polyfill.js"),i=r("./node_modules/define-properties/index.js");t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},"./node_modules/object-keys/implementation.js":(t,e,r)=>{var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r("./node_modules/object-keys/isArguments.js"),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window>"u")return!1;for(var t in window)try{if(!d["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch{return!0}}catch{return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),d=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=u&&r;if(a&&t.length>0&&!i.call(t,0))for(var g=0;g0)for(var m=0;m"u"||!p)return h(t);try{return h(t)}catch{return!1}}(t),v=0;v{var n=Array.prototype.slice,i=r("./node_modules/object-keys/isArguments.js"),o=Object.keys,s=o?function(t){return o(t)}:r("./node_modules/object-keys/implementation.js"),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},"./node_modules/object-keys/isArguments.js":t=>{var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},"./node_modules/object.assign/implementation.js":(t,e,r)=>{var n=r("./node_modules/object-keys/index.js"),i=r("./node_modules/has-symbols/shams.js")(),o=r("./node_modules/call-bound/index.js"),s=r("./node_modules/es-object-atoms/index.js"),a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?s.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var o=1;o{var n=r("./node_modules/object.assign/implementation.js");t.exports=function(){return!Object.assign||function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},"./node_modules/process/browser.js":t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch{try{return e.call(null,t,0)}catch{return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch{e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch{r=o}}();var a,l=[],u=!1,c=-1;function h(){!u||!a||(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c1)for(var r=1;r{var n=r("./node_modules/call-bound/index.js"),i=r("./node_modules/is-regex/index.js"),o=n("RegExp.prototype.exec"),s=r("./node_modules/es-errors/type.js");t.exports=function(t){if(!i(t))throw new s("`regex` must be a RegExp");return function(e){return null!==o(t,e)}}},"./node_modules/set-function-length/index.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/define-data-property/index.js"),o=r("./node_modules/has-property-descriptors/index.js")(),s=r("./node_modules/gopd/index.js"),a=r("./node_modules/es-errors/type.js"),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var c=s(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},"./node_modules/util/support/isBufferBrowser.js":t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"./node_modules/util/support/types.js":(t,e,r)=>{var n=r("./node_modules/is-arguments/index.js"),i=r("./node_modules/is-generator-function/index.js"),o=r("./node_modules/which-typed-array/index.js"),s=r("./node_modules/is-typed-array/index.js");function a(t){return t.call.bind(t)}var l=typeof BigInt<"u",u=typeof Symbol<"u",c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch{return!1}}function y(t){return"[object Map]"===c(t)}function _(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function x(t){return"[object WeakSet]"===c(t)}function b(t){return"[object ArrayBuffer]"===c(t)}function T(t){return!(typeof ArrayBuffer>"u")&&(b.working?b(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===c(t)}function O(t){return!(typeof DataView>"u")&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return typeof Promise<"u"&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working=typeof Map<"u"&&y(new Map),e.isMap=function(t){return!(typeof Map>"u")&&(y.working?y(t):t instanceof Map)},_.working=typeof Set<"u"&&_(new Set),e.isSet=function(t){return!(typeof Set>"u")&&(_.working?_(t):t instanceof Set)},v.working=typeof WeakMap<"u"&&v(new WeakMap),e.isWeakMap=function(t){return!(typeof WeakMap>"u")&&(v.working?v(t):t instanceof WeakMap)},x.working=typeof WeakSet<"u"&&x(new WeakSet),e.isWeakSet=function(t){return x(t)},b.working=typeof ArrayBuffer<"u"&&b(new ArrayBuffer),e.isArrayBuffer=T,E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return!(typeof S>"u")&&(typeof N.working>"u"&&(N.working=N(new S)),N.working?N(t):t instanceof S)}function w(t){return m(t,h)}function R(t){return m(t,d)}function C(t){return m(t,p)}function L(t){return l&&m(t,f)}function I(t){return u&&m(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=w,e.isStringObject=R,e.isBooleanObject=C,e.isBigIntObject=L,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return w(t)||R(t)||C(t)||L(t)||I(t)},e.isAnyArrayBuffer=function(t){return typeof Uint8Array<"u"&&(T(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},"./node_modules/util/util.js":(t,e,r)=>{var n=r("./node_modules/process/browser.js"),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return t}})),a=n[r];r"u")return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function u(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=d(t,i,n)),i}var o=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(S(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var u,c="",h=!1,T=["{","}"];return g(r)&&(h=!0,T=["[","]"]),S(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(c=" "+RegExp.prototype.toString.call(r)),E(r)&&(c=" "+Date.prototype.toUTCString.call(r)),O(r)&&(c=" "+p(r)),0!==s.length||h&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=h?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(u,c,T)):T[0]+c+T[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?d(t,l.value,null):d(t,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function v(t){return"string"==typeof t}function x(t){return void 0===t}function b(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"==typeof t&&null!==t}function E(t){return T(t)&&"[object Date]"===N(t)}function O(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function S(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r("./node_modules/util/support/types.js"),e.isArray=g,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=b,e.types.isRegExp=b,e.isObject=T,e.isDate=E,e.types.isDate=E,e.isError=O,e.types.isNativeError=O,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||typeof t>"u"},e.isBuffer=r("./node_modules/util/support/isBufferBrowser.js");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),w[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=r("./node_modules/inherits/inherits_browser.js"),e._extend=function(t,e){if(!e||!T(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o{var n=r("./node_modules/for-each/index.js"),i=r("./node_modules/available-typed-arrays/index.js"),o=r("./node_modules/call-bind/index.js"),s=r("./node_modules/call-bound/index.js"),a=r("./node_modules/gopd/index.js"),l=r("./node_modules/get-proto/index.js"),u=s("Object.prototype.toString"),c=r("./node_modules/has-tostringtag/shams.js")(),h=typeof globalThis>"u"?r.g:globalThis,d=i(),p=s("String.prototype.slice"),f=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(g,(function(r,n){if(!e)try{r(t),e=p(n,1)}catch{}})),e}(t)}return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch{}})),e}(t):null}},"./src/ForgeExprEvaluator.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NameNotFoundError=e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=g;let n=r("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),i=r("./src/forge-antlr/utils.ts"),o=r("./node_modules/lodash/lodash.js"),s=r("./src/ForgeExprFreeVariableFinder.ts"),a=r("./src/NumericConstraintOptimizer.ts");function l(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function u(t){return Array.isArray(t)}function c(t){return"boolean"==typeof t}function h(t){return"number"==typeof t}function d(t){return h(t)?t:function(t){return Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&1===t[0].length&&"number"==typeof t[0][0]}(t)?t[0][0]:void 0}function p(t){return JSON.stringify(t)}function f(t,e){let r=new Set(e.map(p));return t.every((t=>r.has(p(t))))}function g(t,e){return t.length===e.length&&f(t,e)&&f(e,t)}function m(t){let e=new Set,r=[];for(let n of t){let t=p(n);e.has(t)||(e.add(t),r.push(n))}return r}function y(t){let e=t.map((t=>t.flat()));if(0===e.length)return[[]];if(e.some((t=>0===t.length)))return[];let r=[[]];for(let t of e){let e=[];for(let n of r)for(let r of t)e.push([...n,r]);r=e}return r}function _(t){if(0===t.length)return[];t.forEach((t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")}));let e=new Map;for(let[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);let r=new Set;for(let t of e.keys()){let n=new Set,i=[...e.get(t)??[]],o=0;for(;oJSON.parse(t)))}let v=["add","subtract","multiply","divide","remainder"],x=["abs","sign"],b=["min","max"];e.SUPPORTED_BUILTINS=v.concat(x,b);class T extends n.AbstractParseTreeVisitor{constructor(t){super(),this.cachedResults=new Map,this.relationCache=null,this.relationIndexCache=null,this.instanceData=t,this.environmentStack=[],this.freeVariableFinder=new s.ForgeExprFreeVariableFinder(t),this.freeVariables=new Map}buildRelationCache(){if(null!==this.relationCache)return;this.relationCache=new Map,this.relationIndexCache=new Map;let t=this.instanceData.getRelations();for(let e of t){let t=e.tuples.map((t=>t.atoms));t=t.map((t=>t.map((t=>this.isConvertibleToNumber(t)?Number(t):t)))),t=t.map((t=>t.map((t=>this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t)))),this.relationCache.set(e.name,t);let r=new Map;for(let e of t)if(e.length>0){let t=e[0];r.has(t)||r.set(t,[]),r.get(t).push(e)}this.relationIndexCache.set(e.name,r)}}updateFreeVariables(t){if(0===this.freeVariables.size&&(this.freeVariables=t),0!==this.freeVariables.size)for(let[e,r]of t.entries()){this.freeVariables.has(e)||this.freeVariables.set(e,new Set);let t=this.freeVariables.get(e);for(let e of r)t.add(e)}}constructFreeVariableKey(t){let e=Object.keys(t);return e.sort(),e.map((e=>{let r=t[e];return`${e}=${Array.isArray(r)?JSON.stringify(r):String(r)}`})).join("|")}getLabelForValue(t){if("number"==typeof t||"boolean"==typeof t)return String(t);if("string"==typeof t){let e=this.instanceData.getAtoms().find((e=>e.id===t));if(e)return void 0!==e.label?e.label:e.id}return console.error(`No atom found for value: ${t}`),t}getLabelAsString(t){if("number"==typeof t||"boolean"==typeof t)return String(t);let e=this.getLabelForValue(t);return String(e)}getLabelAsBoolean(t){if("boolean"==typeof t)return t;if("number"==typeof t)return 0!==t;let e=this.getLabelForValue(t),r=String(e).toLowerCase();if("true"===r)return!0;if("false"===r)return!1;let n=Number(e);return isNaN(n)?""!==r:0!==n}getLabelAsNumber(t){if("number"==typeof t)return t;let e=this.getLabelForValue(t),r=Number(e);if(isNaN(r))throw new Error(`Cannot convert label "${e}" to number`);return r}isConvertibleToNumber(t){return"number"==typeof t||"string"==typeof t&&!isNaN(Number(t))}isConvertibleToBoolean(t){return"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t)}convertToBoolean(t){if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)}dotJoin(t,e,r){let n,i=l(t)?[[t]]:t,o=l(e)?[[e]]:e;if(r&&this.relationIndexCache&&(n=this.relationIndexCache.get(r)),!n){n=new Map;for(let t of o){let e=t[0];n.has(e)||n.set(e,[]),n.get(e).push(t)}}let s=[];for(let t of i){let e=t[t.length-1],r=n.get(e);if(r)for(let e of r)s.push([...t.slice(0,t.length-1),...e.slice(1)])}if(s.some((t=>0===t.length)))throw new Error("Join would create a relation of arity 0");return m(s)}cacheResult(t,e,r){this.cachedResults.has(t)||this.cachedResults.set(t,new Map),this.cachedResults.get(t).set(e,r)}getIden(){let t=this.instanceData.getTypes(),e=[],r=new Set;for(let n of t)n.atoms.forEach((t=>{if(r.has(t.id))return;r.add(t.id);let n=t.id;isNaN(Number(n))?"true"==n||"#t"===n?n=!0:("false"==n||"#f"===n)&&(n=!1):n=Number(n),e.push([n,n])}));return e}aggregateResult(t,e){if(u(t)&&0===t.length)return e;if(u(e)&&0===e.length)return t;if(l(t)){if(l(e))return e;throw new Error("Expected nextResult to be a single value")}return l(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(let r of t.expr()){let t=this.visit(r);if(!c(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){let r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0,n={};for(let t of e)for(let e=this.environmentStack.length-1;e>=0;e--){let i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}let i,o=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)&&this.cachedResults.get(t).has(o))return this.cachedResults.get(t).get(o);if(t.LET_TOK()&&(i=[],i.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let s=i.expr(),l=[],u=[];for(let t in r)l.push(t),u.push(r[t]);let h,d=!1;if(!n&&l.length>=2&&(0,a.areAllNumericSets)(u)){let t=(0,a.detectNumericComparisonPattern)(s,l);t&&"none"!==t.type?(h=(0,a.generateOptimizedNumericCombinations)(l,u,t),d=!0):h=y(u)}else h=y(u);let p=[],f=!1,g=!1,m={env:{},type:"quantDecl"};this.environmentStack.push(m);for(let e=0;e1){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()&&f){this.environmentStack.pop();let e=!0;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()&&p.length>1){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}if(e.TWO_TOK()&&p.length>2){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}}}if(this.environmentStack.pop(),t.quant().ALL_TOK()){let e=!g;return this.cacheResult(t,o,e),e}if(t.quant().NO_TOK()){let e=!f;return this.cacheResult(t,o,e),e}if(t.quant().mult()){let e=t.quant().mult();if(e.LONE_TOK()){let e=p.length<=1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()){let e=f;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()){let e=1===p.length;return this.cacheResult(t,o,e),e}if(e.TWO_TOK()){let e=2===p.length;return this.cacheResult(t,o,e),e}}}let s=this.visitChildren(t);if(void 0===i)return this.cacheResult(t,o,s),s;if(l(i))throw new Error("Expected results to be a tuple array");return l(s)?i.push([s]):i=i.concat(s),this.cacheResult(t,o,i),i}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");let e=this.visit(t.expr1());if(!c(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;let r=this.visit(t.expr1_5());if(!c(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");let e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!c(e)||!c(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");let e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!c(e)||!c(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!c(e))throw new Error("IMP operator expected 2 boolean operands!");let r=t.expr3()??[],n=r[0],i=r[1];if(t.ELSE_TOK()){if(!n||!i)throw new Error("Expected the ELSE operator to have 2 operands!");let t=this.visit(e?n:i);if(!c(t))throw new Error("IMP operator expected 2 boolean operands!");return t}if(!e)return!0;if(!n)throw new Error("Expected the IMP operator to have a consequent expression!");let o=this.visit(n);if(!c(o))throw new Error("IMP operator expected 2 boolean operands!");return o}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr4_5())throw new Error("Expected the AND operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!c(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;let r=this.visit(t.expr4_5());if(!c(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4_5(t){let e=[];return t.UNTIL_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),e):t.RELEASE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),e):t.SINCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),e):t.TRIGGERED_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),e):this.visitChildren(t)}visitExpr5(t){let e=[];if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the temporal operator to have 1 operand!");let r=this.visit(t.expr5());if(t.NEG_TOK()){if(!c(r))throw new Error("Expected the negation operator to have a boolean operand!");return!r}return t.ALWAYS_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),e):t.EVENTUALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),e):t.AFTER_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),e):t.BEFORE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),e):t.ONCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),e):t.HISTORICALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),e):r}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");let r=this.visit(t.expr6()),i=this.visit(t.expr7()),o=d(r),s=d(i);switch(t.compareOp()?.text){case"=":if(l(r)&&l(i))e=r===i;else if(l(r)&&u(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(u(r)&&l(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!u(r)||!u(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=g(r,i)}break;case"<":if(void 0===o||void 0===s)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o":if(void 0===o||void 0===s)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>s;break;case"<=":if(void 0===o||void 0===s)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o<=s;break;case">=":if(void 0===o||void 0===s)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>=s;break;case"in":case"ni":{let n;n=u(r)&&u(i)?!!g(r,i)||f(r,i):!!u(i)&&i.some((t=>1===t.length&&t[0]===r)),e="ni"===t.compareOp()?.text?!n:n;break}case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");default:throw new Error(`Unexpected compare operator provided: ${t.compareOp()?.text}`)}}if(r){if(!c(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){let e=this.visit(t.expr8());return t.SET_TOK()?e:t.ONE_TOK()?u(e)&&1===e.length:t.TWO_TOK()?u(e)&&2===e.length:t.NO_TOK()?u(e)&&0===e.length:t.SOME_TOK()?u(e)&&e.length>0:t.LONE_TOK()?u(e)&&e.length<=1:e}visitExpr8(t){if(t.PLUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(l(e)&&l(r))return[[e],[r]];if(l(e)&&u(r)){if(0===r.length)return e;if(1===r[0].length)return m([[e],...r]);throw new Error("arity mismatch in set union!")}if(u(e)&&l(r)){if(0===e.length)return r;if(1===e[0].length)return m([...e,[r]]);throw new Error("arity mismatch in set union!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return m([...e,...r])}if(t.MINUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(l(e)&&l(r))return e===r?[]:e;if(l(e)&&u(r)){if(0===r.length)return e;if(1===r[0].length)return r.some((t=>t[0]===e))?[]:e;throw new Error("arity mismatch in set difference!")}if(u(e)&&l(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter((t=>t[0]!==r));throw new Error("arity mismatch in set difference!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length){let t=new Set(r.map(p));return e.filter((e=>!t.has(p(e))))}}return this.visitChildren(t)}visitExpr9(t){let e=this.visitChildren(t);if(t.CARD_TOK()){if(!u(e))throw new Error("The cardinal operator must be applied to a set of tuples!");return e.length}return e}visitExpr10(t){if(t.PPLUS_TOK()){if(void 0===t.expr10()||void 0===t.expr11())throw new Error("Expected the pplus operator to have 2 operands of the right type!");throw this.visit(t.expr10()),this.visit(t.expr11()),new Error("**NOT IMPLEMENTING FOR NOW** pplus (`++`)")}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");let e=this.visit(t.expr11()),r=this.visit(t.expr12());if(l(e)&&l(r))return e===r?e:[];if(l(e)&&u(r)){if(0===r.length)return[];if(1===r[0].length)return r.some((t=>t[0]===e))?e:[];throw new Error("arity mismatch in set intersection!")}if(u(e)&&l(r)){if(0===e.length)return[];if(1===e[0].length)return e.some((t=>t[0]===r))?r:[];throw new Error("arity mismatch in set intersection!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length){let t=new Set(r.map(p));return e.filter((e=>t.has(p(e))))}}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");let e=this.visit(t.expr12()),r=this.visit(t.expr13()),n=l(e)?[[e]]:e,i=l(r)?[[r]]:r;if(!u(n)||!u(i))throw new Error("Arrow operator operands must be tuple arrays or single values");let o=[];for(let t of n)for(let e of i)o.push([...t,...e]);return m(o)}return this.visitChildren(t)}visitExpr13(t){if(t.SUPT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the supertype operator to have 2 operands of the right type!");throw this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Supertype Operator (`:>`)")}if(t.SUBT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the subtype operator to have 2 operands of the right type!");throw this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Subtype Operator (`<:`)")}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){let e=this.visit(t.expr14()),r=this.visit(t.exprList());if("string"==typeof e){if(v.includes(e))return this.evaluateBinaryOperation(e,r);if(x.includes(e))return this.evaluateUnaryOperation(e,r);if(b.includes(e))return this.evaluateSetOperation(e,r)}return this.dotJoin(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr16())throw new Error("Expected the dot operator to have 2 operands of the right type!");let e,r=this.visit(t.expr15()),n=this.visit(t.expr16());if(u(n)&&this.relationCache)for(let[t,r]of this.relationCache.entries())if(r===n){e=t;break}return this.dotJoin(r,n,e)}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr16(t){let e=[];return t.PRIME_TOK()?(this.visit(t.expr16()),e.push(["**UNIMPLEMENTED** Primed Expression _'"]),e):this.visitChildren(t)}visitExpr17(t){if(t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()){let e,r,n=t.expr17();if(!n)throw new Error("Label operator requires an expression");if(t.GET_LABEL_TOK())e=t=>this.getLabelAsString(t),r="@:";else if(t.GET_LABEL_STR_TOK())e=t=>this.getLabelAsString(t),r="@str:";else if(t.GET_LABEL_BOOL_TOK())e=t=>this.getLabelAsBoolean(t),r="@bool:";else{if(!t.GET_LABEL_NUM_TOK())throw new Error("Unknown label operator");e=t=>this.getLabelAsNumber(t),r="@num:"}try{let t=this.visit(n);if(u(t)&&0===t.length){let t=n.text;t.startsWith("(")&&t.endsWith(")")&&(t=t.slice(1,-1));try{return e(t)}catch{return t}}if(l(t))return e(t);if(u(t))return 1===t.length&&1===t[0].length?e(t[0][0]):t.map((t=>t.map((t=>e(t)))));throw new Error(`${r} operator can only be applied to single values or tuple arrays`)}catch(t){if(t instanceof E){let t=n.text;t.startsWith("(")&&t.endsWith(")")&&(t=t.slice(1,-1));try{return e(t)}catch{return t}}throw t}}let e=this.visitChildren(t);if(t.TILDE_TOK()){if(u(e)&&e.length>0&&2===e[0].length)return e.map((t=>[t[1],t[0]]));throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(u(e))return _(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&u(e)){let t=_(e),r=this.getIden(),n=new Set;for(let t of r)n.add(p(t));for(let e of t)n.add(p(e));return Array.from(n).map((t=>JSON.parse(t)))}return e}getNameListValues(t){return t.COMMA_TOK()?[(0,i.getIdentifierName)(t.name()),...this.getNameListValues(t.nameList())]:[(0,i.getIdentifierName)(t.name())]}getQuantDeclValues(t){let e=t.nameList(),r=this.getNameListValues(e),n=t.expr(),i=this.visitExpr(n);l(i)&&(i=[[i]]);let o={};for(let t of r)o[t]=i;return o}getQuantDeclListValues(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){let e=[];if(t.const()){let e=t.const();if(void 0!==e.number()){let t=Number(e.number().text);return void 0!==e.MINUS_TOK()?-t:t}if(void 0!==e.IDEN_TOK()){let t=this.instanceData.getAtoms(),e=[];for(let r of t){let t=r.id;this.isConvertibleToNumber(t)?t=Number(t):this.isConvertibleToBoolean(t)&&(t=this.convertToBoolean(t)),e.push([t,t])}return e}if(void 0!==e.UNIV_TOK()){let t=this.instanceData.getAtoms(),e=[];for(let r of t){let t=r.id;this.isConvertibleToNumber(t)?t=Number(t):this.isConvertibleToBoolean(t)&&(t=this.convertToBoolean(t)),e.push([t])}return e}return"true"===e.text||"false"!==e.text&&`${e.text}`}if(t.qualName())return this.visitQualName(t.qualName());if(t.AT_TOK())throw new Error("`@` operator is Alloy specific; it is not supported by Forge!");if(t.BACKQUOTE_TOK())return this.visitChildren(t),e.push(["**UNIMPLEMENTED** Backquoted Name (`` `x` ``)"]),e;if(t.THIS_TOK())throw new Error("`this` is Alloy specific; it is not supported by Forge!");if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");let i=n.expr(),o=[],s=[];for(let t in r)o.push(t),s.push(r[t]);let l,u=!1;if(o.length>=2&&(0,a.areAllNumericSets)(s)){let t=(0,a.detectNumericComparisonPattern)(i,o);t&&"none"!==t.type?(l=(0,a.generateOptimizedNumericCombinations)(o,s,t),u=!0):l=y(s)}else l=y(s);let h=[],d={env:{},type:"quantDecl"};this.environmentStack.push(d);for(let t=0;t=0;t--){let e=this.environmentStack[t];if(void 0!==e.env[n])return e.env[n];if("predArgs"===e.type)break}if(this.instanceData.getTypes().map((t=>t.id)).includes(n)){let t=this.instanceData.getTypes().find((t=>t.id===n))?.atoms||[],e=new Set,i=[];for(let r of t)e.has(r.id)||(e.add(r.id),i.push(r.id));r=i.map((t=>[t]))}for(let t of this.instanceData.getTypes())if(t.atoms.map((t=>t.id)).includes(n)){r=[[n]];break}this.instanceData.getTypes().map((t=>t.id));let o=[n],s=new Set;for(;o.length>0;){let t=o.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");if(!s.has(t)){s.add(t);for(let e of this.instanceData.getTypes())if(e.id!==t&&e.types&&e.types.includes(t)){void 0===r&&(r=[]);for(let t of e.atoms)r.push([t.id]);o.push(e.id)}}}if(this.buildRelationCache(),this.relationCache.has(n))return this.relationCache.get(n);if(void 0!==r)return r=r.map((t=>t.map((t=>this.isConvertibleToNumber(t)?Number(t):t)))),r=r.map((t=>t.map((t=>this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t)))),r;if(e.SUPPORTED_BUILTINS.includes(n)||/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(n))return n;throw new E(`bad name ${n} referenced!`)}visitQualName(t){if(t.INT_TOK()){let t=this.instanceData.getTypes().find((t=>"Int"===t.id));if(!t)throw new Error('Type "Int" not found in instance data');let e=new Set,r=[];for(let n of t.atoms)e.has(n.id)||(e.add(n.id),r.push([Number(n.id)]));return r}return this.visitChildren(t)}evaluateBinaryOperation(t,e){if(l(e))throw new Error(`Expected 2 arguments for ${t}`);let r,n,i;if((0,o.isArray)(e[0])){if(!h(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0][0]}else{if(!h(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0]}if((0,o.isArray)(e[1])){if(!h(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1][0]}else{if(!h(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1]}if(("divide"===t||"remainder"===t)&&0===n)throw new Error("Division by zero is not allowed");switch(t){case"add":i=r+n;break;case"subtract":i=r-n;break;case"multiply":i=r*n;break;case"divide":i=Math.floor(r/n);break;case"remainder":i=r%n;break;default:throw new Error(`Unsupported operation: ${t}`)}return i}evaluateUnaryOperation(t,e){if(!l(e)||!h(e))throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);let r=e;if("abs"===t)return Math.abs(r);if("sign"===t)return r>0?1:r<0?-1:0;throw new Error(`Unsupported operation: ${t}`)}evaluateSetOperation(t,e){let r=[];if(l(e)){if(!h(e))throw new Error(`Expected a set of numbers for ${t}`);r=[e]}else{if(!u(e))throw new Error(`Expected a set of numbers for ${t}`);for(let n of e){if(1!==n.length)throw new Error(`${t} expects a set of arity 1 (single column)`);let e=n[0];if(!h(e))throw new Error(`${t} expects all elements to be numbers, got: ${typeof e}`);r.push(e)}}if(0===r.length)throw new Error(`${t} requires a non-empty set`);if("min"===t)return Math.min(...r);if("max"===t)return Math.max(...r);throw new Error(`Unsupported set operation: ${t}`)}}e.ForgeExprEvaluator=T;class E extends Error{constructor(t){super(t),this.name="NameNotFoundError"}}e.NameNotFoundError=E},"./src/ForgeExprFreeVariableFinder.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;let n=r("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),i=r("./src/forge-antlr/utils.ts"),o=r("./src/ForgeExprEvaluator.ts");function s(t){let e=new Set;for(let r of t.values())for(let t of r)e.add(t);return e}class a extends n.AbstractParseTreeVisitor{constructor(t){super(),this.instanceData=t}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(let[r,n]of e.entries()){t.has(r)||t.set(r,new Set);let e=t.get(r);for(let t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,s(e));let n=e.get(t);if(void 0!==r)for(let t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){let e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(let r of t.expr()){let t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){let e=(0,i.getIdentifierName)(t.name()),r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([(0,i.getIdentifierName)(t.name())])}getQuantDeclVarNames(t){let e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");let n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(let t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=this.visit(t.quantDeclList()),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");e=void 0!==i.block()?this.visit(i.block()):this.visit(i.expr());let o=this.aggregateResult(e,n),a=s(o),l=new Set;for(let t of a)r.has(t)||l.add(t);return o.set(t,l),o}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){let e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr16(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=s(e),o=new Set;for(let t of i)r.has(t)||o.add(t);return e.set(t,o),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");let r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{let r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}visitName(t){let e=(0,i.getIdentifierName)(t);if("true"===e||"false"===e)return this.defaultResult();if(this.instanceData.getTypes().map((t=>t.id)).includes(e))return this.defaultResult();for(let t of this.instanceData.getTypes())if(t.atoms.map((t=>t.id)).includes(e))return this.defaultResult();for(let t of this.instanceData.getRelations())if(t.name===e)return this.defaultResult();if(o.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();let r=this.defaultResult();return r.set(t,new Set([e])),r}}e.ForgeExprFreeVariableFinder=a},"./src/NumericConstraintOptimizer.ts":(t,e)=>{function r(t){return t.map((t=>t[0]))}function n(t){if(0===t.length)return[[]];if(t.some((t=>0===t.length)))return[];let e=[[]];for(let r of t){let t=[];for(let n of e)for(let e of r)t.push([...n,e]);e=t}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.detectNumericComparisonPattern=function(t,e){let r=t.text;for(let t of e)for(let n of e)if(t!==n){if(r===`${t}<${n}`)return{type:"less_than",leftVar:t,rightVar:n};if(r===`${t}>${n}`)return{type:"greater_than",leftVar:t,rightVar:n};if(r===`${t}<=${n}`)return{type:"less_equal",leftVar:t,rightVar:n};if(r===`${t}>=${n}`)return{type:"greater_equal",leftVar:t,rightVar:n};if(r===`${t}!=${n}`)return{type:"not_equal",leftVar:t,rightVar:n};if(r===`not${t}=${n}`)return{type:"not_equal",leftVar:t,rightVar:n}}return null},e.areAllNumericSets=function(t){for(let e of t)for(let t of e)if(1!==t.length||"number"!=typeof t[0])return!1;return!0},e.generateOptimizedNumericCombinations=function(t,e,i){let o=new Map;t.forEach(((t,e)=>{o.set(t,e)}));let s=o.get(i.leftVar),a=o.get(i.rightVar);if(void 0===s||void 0===a)throw new Error(`Internal error: Pattern variables ${i.leftVar}, ${i.rightVar} not found in variable list`);let l=r(e[s]),u=r(e[a]),c=[],h=[];for(let n=0;n{for(let r of l)for(let i of u)if(e(r,i))if(0===c.length){let e=new Array(t.length);e[s]=r,e[a]=i,d.push(e)}else{let e=n(h);for(let n of e){let e=new Array(t.length);e[s]=r,e[a]=i;for(let t=0;ttt>e));break;case"less_equal":p(((t,e)=>t<=e));break;case"greater_equal":p(((t,e)=>t>=e));break;case"not_equal":p(((t,e)=>t!==e));break;default:return[]}return d}},"./src/SelectorSynthesizer.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SelectorSynthesisError=void 0,e.synthesizeSelector=function(t,e=3){return o(g(t.map((t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map((t=>t.id)))}))),l,e))},e.synthesizeBinaryRelation=function(t,e=3){return o(g(t.map((t=>{let e=new Set(Array.from(t.pairs).map((([t,e])=>`${t.id}\0${e.id}`)));return{datum:t.datum,target:e}})),u,e))},e.synthesizeSelectorWithWhy=function(t,e=3){let r=t.map((t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map((t=>t.id)))}))),n=g(r,l,e),i=o(n),s=new Map;return{expression:i,examples:r.map((t=>{let e=p(t.datum,s);return{datum:t.datum,target:t.target,result:c(n,e,l),why:m(n,e,l)}}))}},e.synthesizeBinaryRelationWithWhy=function(t,e=3){let r=t.map((t=>{let e=new Set(Array.from(t.pairs).map((([t,e])=>`${t.id}\0${e.id}`)));return{datum:t.datum,target:e}})),n=g(r,u,e),i=o(n),s=new Map;return{expression:i,examples:r.map((t=>{let e=p(t.datum,s);return{datum:t.datum,target:t.target,result:c(n,e,u),why:m(n,e,u)}}))}};let n=r("./src/index.ts");class i extends Error{}function o(t){switch(t.kind){case"identifier":return t.name;case"closure":return`^${a(o(t.child))}`;case"reflexive-closure":return`*${a(o(t.child))}`;case"transpose":return`~${a(o(t.child))}`;case"join":return`${s(t.left)}.${s(t.right)}`;case"union":return`(${o(t.left)} + ${o(t.right)})`;case"intersection":return`(${o(t.left)} & ${o(t.right)})`;case"difference":return`(${o(t.left)} - ${o(t.right)})`;case"comprehension":return`{${t.varName}: ${o(t.domain)} | ${o(t.body)}}`;case"all":return`(all ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"some":return`(some ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"no":return`(no ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"one":return`(one ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"lone":return`(lone ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"and":return`(${o(t.left)} and ${o(t.right)})`;case"or":return`(${o(t.left)} or ${o(t.right)})`;case"implies":return`(${o(t.left)} => ${o(t.right)})`;case"iff":return`(${o(t.left)} <=> ${o(t.right)})`;case"not":return`!${a(o(t.child))}`;case"in":return`(${o(t.left)} in ${o(t.right)})`;case"eq":return`(${o(t.left)} = ${o(t.right)})`;case"neq":return`(${o(t.left)} != ${o(t.right)})`;case"lt":return`(${o(t.left)} < ${o(t.right)})`;case"gt":return`(${o(t.left)} > ${o(t.right)})`;case"lte":return`(${o(t.left)} <= ${o(t.right)})`;case"gte":return`(${o(t.left)} >= ${o(t.right)})`;case"box-join":return`${o(t.base)}[${t.args.map(o).join(", ")}]`}}function s(t){return"identifier"===t.kind||"closure"===t.kind||"reflexive-closure"===t.kind||"transpose"===t.kind||"box-join"===t.kind?o(t):`(${o(t)})`}function a(t){return t.startsWith("(")&&t.endsWith(")")?t:`(${t})`}function l(t){if("string"==typeof t)return new Set([t]);if(!Array.isArray(t))return null;let e=t,r=new Set;for(let t of e){if(!Array.isArray(t)||1!==t.length)return null;let e=t[0];if("string"==typeof e)r.add(e);else{if("number"!=typeof e)return null;r.add(String(e))}}return r}function u(t){if(!Array.isArray(t))return null;let e=t,r=new Set;for(let t of e){if(!Array.isArray(t)||2!==t.length)return null;let[e,n]=t,i="string"==typeof e?e:"number"==typeof e?String(e):null,o="string"==typeof n?n:"number"==typeof n?String(n):null;if(null===i||null===o)return null;r.add(`${i}\0${o}`)}return r}function c(t,e,r){let n=o(t);return r(e.evaluateExpression(n))}function h(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function d(t,e){if("univ"===t||"iden"===t)return"builtin";for(let r of e){if(r.getRelations().some((e=>e.name===t)))return"relation";if(r.getTypes().some((e=>e.id===t)))return"type"}return"other"}function p(t,e){let r=e.get(t);if(r)return r;let i=new n.SimpleGraphQueryEvaluator(t);return e.set(t,i),i}function f(t,e,r){for(let n of e){let e=c(t,n.evaluator,r);if(!e||!h(e,n.target))return!1}return!0}function g(t,e,r=3){if(0===t.length)throw new i("No examples provided for synthesis");let n=new Map,s=t.map((t=>({...t,evaluator:p(t.datum,n)}))),a=s.map((t=>t.datum)),l=function(t){let e=function(t){let e=t.map((t=>{let e=t.getTypes().map((t=>t.id)),r=t.getRelations().map((t=>t.name));return new Set([...e,...r])}));if(0===e.length)return new Set;let[r,...n]=e,i=new Set;for(let t of r)n.every((e=>e.has(t)))&&i.add(t);return i}(t);return["univ","iden"].forEach((t=>e.add(t))),Array.from(e).sort(((e,r)=>{let n={relation:0,type:1,builtin:2,other:3},i=n[d(e,t)],o=n[d(r,t)];return i!==o?i-o:e.localeCompare(r)})).map((t=>({kind:"identifier",name:t})))}(a);if(0===l.length)throw new i("No shared identifiers available across provided data instances");for(let t of l)if(f(t,s,e))return t;let u=function(t){let e=[],r=new Set,n=new Set,i=new Set;if(0===t.length)return e;let s=t[0];s.getRelations().forEach((t=>n.add(t.name))),s.getTypes().forEach((t=>i.add(t.id)));for(let e=1;et.name))),s=new Set(r.getTypes().map((t=>t.id)));for(let t of n)o.has(t)||n.delete(t);for(let t of i)s.has(t)||i.delete(t)}for(let t of n){let n=s.getRelations().find((e=>e.name===t));if(!n||n.types.length<2)continue;let a=n.types[0];for(let n of i){let i=s.getTypes().find((t=>t.id===n));if(i&&(n===a||i.types.includes(a)||s.getTypes().find((t=>t.id===a))?.types.includes(n))){let i={kind:"join",left:{kind:"identifier",name:n},right:{kind:"identifier",name:t}},s=o(i);r.has(s)||(r.add(s),e.push(i))}}}for(let t of n){let n=s.getRelations().find((e=>e.name===t));if(!n||n.types.length<2)continue;let a=n.types[n.types.length-1];for(let n of i){let i=s.getTypes().find((t=>t.id===n));if(i&&(n===a||i.types.includes(a)||s.getTypes().find((t=>t.id===a))?.types.includes(n))){let i={kind:"join",left:{kind:"identifier",name:t},right:{kind:"identifier",name:n}},s=o(i);r.has(s)||(r.add(s),e.push(i))}}}return e}(a);for(let t of u)if(f(t,s,e))return t;let c=[],h=new Set,g=new Set,m=[...l],y=(t,e)=>{let r=o(t);g.has(r)||h.has(r)||(c.push({node:t,depth:e}),h.add(r))};for(let t of u)g.add(o(t));for(l.forEach((t=>y(t,0)));c.length>0;){let t=c.shift(),n=o(t.node);if(h.delete(n),!g.has(n)){if(g.add(n),f(t.node,s,e))return t.node;if(!(t.depth>=r)){y({kind:"closure",child:t.node},t.depth+1),y({kind:"reflexive-closure",child:t.node},t.depth+1),y({kind:"transpose",child:t.node},t.depth+1);for(let e of m){let r=o(t.node),n=o(e),[i,s]=rm(t,e,r)))]}}}e.SelectorSynthesisError=i},"./src/errorListener.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,o){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},"./src/forge-antlr/ForgeLexer.ts":function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],d._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],d.VOCABULARY=new c.VocabularyImpl(d._LITERAL_NAMES,d._SYMBOLIC_NAMES,[]),d._serializedATNSegments=2,d._serializedATNSegment0='줝쪺֍꾺体؇쉁t͗\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tno\top\tpq\tqr\trs\tsø\n\fû\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ȑ\n:;;;;<<<<<<<Ȝ\n<==========ȧ\n=>>>>>??????ȳ\n?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDDɗ\nDEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\\\]]]]]]^^^^^^^______``aabbcccccˣ\ncdddeeefffgggghhhhiiiiiiijjkkll̂\nl\rll̃lll̈\nl\rll̉ľ\nlmmmmm̒\nm\rmm̓mmnnn̚\nn\fnn̝\vnoo̠\no\roo̡ooppppp̪\np\fpp̭\vpppqqqqq̵\nq\fqq̸\vqqqrrrrr̀\nr\frr̓\vrrrrrrssssssss͑\ns\fss͔\vssśt\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏiÑjÓkÕl×mÙnÛoÝpßqárãsåt\t$$^^2;^^bb&&11C\\aac|&&1;C\\aac|\v\f""\f\fͩ\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÓÕ×ÙÛÝßáãåçìî\tð\vó\rþĂċďđēěĞĠĥ!Ī#Į%IJ\'Ķ)Ļ+Ł-ņ/ň1Ŏ3œ5ŕ7ř9ś;ŝ=Ť?ŨAŮCŲEŶGžIƃKƈMƍOƏQƒSƖUƜWƤYư[Ƹ]ƽ_DŽaNJcnjeǐgǛiǥkǰmǽoȂqȆsȏuȑwțyȦ{Ȩ}ȲȴȺƒɂ…Ɉ‡ɖ‰ɘ‹ɟɪɰ‘ɷ“ɼ•ʉ—ʋ™ʎ›ʐʓŸʖ¡ʘ£ʚ¥ʜ§ʞ©ʠ«ʢ­ʧ¯ʭ±ʲ³ʷµʿ·˂¹˅»ˋ½˒¿˘Á˚ØÅˢÇˤÉ˧Ë˪Í˭Ï˱Ñ˵Ó˼Õ˾×́Ù̍Û̗Ý̟ß̥á̰ã̻å͉çèqèéréêgêëpëìí]íîï_ï\bðñcñòuò\nóù$ôø\nõö^öø\v÷ô÷õøûù÷ùúúüûùüý$ý\fþÿxÿĀcĀātāĂăcăĄdĄąuąĆvĆćtćĈcĈĉeĉĊvĊċČuČčkčĎiĎďĐ}ĐđĒĒēĔgĔĕzĕĖvĖėgėĘpĘęfęĚuĚěĜkĜĝpĝĞğ-ğĠġnġĢqĢģpģĤgĤĥĦuĦħqħĨoĨĩgĩ ĪīqīĬpĬĭgĭ"Įįvįİyİıqı$IJijuijĴgĴĵvĵ&ĶķhķĸwĸĹpĹĺeĺ(ĻļrļĽhĽľwľĿpĿŀeŀ*ŁłfłŃkŃńuńŅlŅ,ņŇ<Ň.ňʼnyʼnŊjŊŋgŋŌcŌōvō0ŎŏrŏŐtŐőgőŒfŒ2œŔ0Ŕ4ŕŖhŖŗwŗŘpŘ6řŚ*Ś8śŜ+Ŝ:ŝŞcŞşuşŠuŠšgšŢtŢţvţ<ŤťtťŦwŦŧpŧ>ŨũeũŪjŪūgūŬeŬŭmŭ@ŮůhůŰqŰűtűBŲųdųŴwŴŵvŵDŶŷgŷŸzŸŹcŹźeźŻvŻżnżŽ{ŽFžſpſƀqƀƁpƁƂgƂHƃƄwƄƅpƅƆkƆƇxƇJƈƉkƉƊfƊƋgƋƌpƌLƍƎ/ƎNƏƐkƐƑuƑPƒƓuƓƔcƔƕvƕRƖƗwƗƘpƘƙuƙƚcƚƛvƛTƜƝvƝƞjƞƟgƟƠqƠơtơƢgƢƣoƣVƤƥhƥƦqƦƧtƧƨiƨƩgƩƪaƪƫgƫƬtƬƭtƭƮqƮƯtƯXưƱeƱƲjƲƳgƳƴeƴƵmƵƶgƶƷfƷZƸƹvƹƺgƺƻuƻƼvƼ\\ƽƾgƾƿzƿǀrǀǁgǁǂeǂǃvǃ^DŽDžuDždžwdžLJkLJLjvLjljglj`NJNj~NjbnjǍcǍǎnǎǏnǏdǐǑuǑǒwǒǓhǓǔhǔǕkǕǖeǖǗkǗǘgǘǙpǙǚvǚfǛǜp',d._serializedATNSegment1="ǜǝgǝǞeǞǟgǟǠuǠǡuǡǢcǢǣtǣǤ{ǤhǥǦeǦǧqǧǨpǨǩuǩǪkǪǫuǫǬvǬǭgǭǮpǮǯvǯjǰDZkDZDzpDzdzedzǴqǴǵpǵǶuǶǷkǷǸuǸǹvǹǺgǺǻpǻǼvǼlǽǾyǾǿkǿȀvȀȁjȁnȂȃnȃȄgȄȅvȅpȆȇdȇȈkȈȉpȉȊfȊrȋȌ~ȌȐ~ȍȎqȎȐtȏȋȏȍȐtȑȒzȒȓqȓȔtȔvȕȖ>Ȗȗ?ȗȜ@ȘșkșȚhȚȜhțȕțȘȜxȝȞkȞȟoȟȠrȠȡnȡȢkȢȣgȣȧuȤȥ?ȥȧ@ȦȝȦȤȧzȨȩgȩȪnȪȫuȫȬgȬ|ȭȮ(Ȯȳ(ȯȰcȰȱpȱȳfȲȭȲȯȳ~ȴȵwȵȶpȶȷvȷȸkȸȹnȹ€ȺȻtȻȼgȼȽnȽȾgȾȿcȿɀuɀɁgɁ‚ɂɃuɃɄkɄɅpɅɆeɆɇgɇ„ɈɉvɉɊtɊɋkɋɌiɌɍiɍɎgɎɏtɏɐgɐɑfɑ†ɒɗ#ɓɔpɔɕqɕɗvɖɒɖɓɗˆɘəcəɚnɚɛyɛɜcɜɝ{ɝɞuɞŠɟɠgɠɡxɡɢgɢɣpɣɤvɤɥwɥɦcɦɧnɧɨnɨɩ{ɩŒɪɫcɫɬhɬɭvɭɮgɮɯtɯŽɰɱdɱɲgɲɳhɳɴqɴɵtɵɶgɶɷɸqɸɹpɹɺeɺɻgɻ’ɼɽjɽɾkɾɿuɿʀvʀʁqʁʂtʂʃkʃʄeʄʅcʅʆnʆʇnʇʈ{ʈ”ʉʊ%ʊ–ʋʌ-ʌʍ-ʍ˜ʎʏ(ʏšʐʑ>ʑʒ<ʒœʓʔ<ʔʕ@ʕžʖʗ)ʗ ʘʙ€ʙ¢ʚʛ`ʛ¤ʜʝ,ʝ¦ʞʟBʟ¨ʠʡbʡªʢʣvʣʤjʤʥkʥʦuʦ¬ʧʨuʨʩgʩʪzʪʫrʫʬtʬ®ʭʮkʮʯpʯʰuʰʱvʱ°ʲʳgʳʴxʴʵcʵʶnʶ²ʷʸgʸʹzʹʺcʺʻoʻʼrʼʽnʽʾgʾ´ʿˀ/ˀˁ@ˁ¶˂˃B˃˄<˄¸˅ˆBˆˇuˇˈvˈˉtˉˊ<ˊºˋˌBˌˍdˍˎqˎˏqˏːnːˑ<ˑ¼˒˓B˓˔p˔˕w˕˖o˖˗<˗¾˘˙?˙À˚˛>˛Â˜˝@˝Ä˞˟>˟ˣ?ˠˡ?ˡˣ>ˢ˞ˢˠˣÆˤ˥@˥˦?˦È˧˨p˨˩k˩Ê˪˫p˫ˬqˬÌ˭ˮuˮ˯w˯˰o˰Î˱˲K˲˳p˳˴v˴Ð˵˶q˶˷r˷˸v˸˹k˹˺q˺˻p˻Ò˼˽.˽Ô˾˿1˿Ö̀̂\t́̀̂̃̃́̃̄̄̋̅̇0̆̈\ṫ̆̈̉̉̇̉̊̊̌̋̅̋̌̌Ø̍̑b̎̒\n̏̐^̐̒\v̖̑̎̑̏̒̓̓̑̓̔̔̕̕b̖Ứ̗\t̘̚\t̛̛̙̘̝̙̜̜̚Ư̝̞̠̈\t̡̡̡̢̢̟̞̠̟̣̣̤\bo̤Þ̥̦1̧̦1̧̨̫̪\n\b̨̩̪̭̫̩̫̬̬̮̭̫̮̯\bp̯à̰̱/̱̲/̶̵̲̳\n\b̴̵̸̶̴̶̷̷̸̶̳̹̹̺\bq̺â̻̼1̼̽,̽́̾̀\v̿̾̀̓́͂́̿͂̈́̓́̈́ͅ,͆ͅ1͇͇͈͆\br͈ä͉͊%͊͋n͋͌c͍͌p͍͎i͎͒͏͑\n\b͐͏͔͓͓͕͔͕͖͑͒͐͒͒\bs͖æ÷ùȏțȦȲɖˢ̶̡̛̫̃̉̋̑̓́͒\b",d._serializedATN=h.join([d._serializedATNSegment0,d._serializedATNSegment1],"")},"./src/forge-antlr/ForgeListenerImpl.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;let n=r("./src/forge-antlr/utils.ts"),i=r("./src/forge-antlr/ForgeSyntaxConstructs.ts");function o(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function s(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t);return new i.Block(e,r,n,s,[])}function a(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t);return new i.Expr(e,r,n,s,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:a}=o(t),l=this.getAllNames(t.nameList()),u=t.mult()?.toStringTree(),c=t.sigExt()?.toStringTree(),h=t.block(),d=h?s(h):void 0;for(let t of l){let o=new i.Sig(e,r,n,a,t,d,c,u);this._sigs.push(o)}}exitPredDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=(0,n.getIdentifierName)(t.name()),c=t.paraDecls(),h=c?s(c):void 0,d=s(t.block()),p=new i.Predicate(e,r,a,l,u,h,d);this._predicates.push(p)}exitFunDecl(t){let{startLine:e,startColumn:r,endLine:i,endColumn:s}=o(t),a=(0,n.getIdentifierName)(t.name()),l=new Function(e,r,i,s,a);this._functions.push(l)}exitTestDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=t.name(),c=u?(0,n.getIdentifierName)(u):Math.random().toString(36).substring(7),h=t.block(),d=h?s(h):void 0,p=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),g=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown",m=new i.Test(e,r,a,l,c,g,d,f,p);this._tests.push(m)}exitSatisfiabilityDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t),l=a(t.expr()),u=t.scope()?.toStringTree(),c=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",d=new i.SatisfiabilityAssertionTest(e,r,n,s,l,h,c,u);this._satisfiabilityAssertions.push(d)}exitPropertyDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:l}=o(t),u=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===u)throw new Error("Property relation must be either necessary or sufficient.");let c=a(t.expr()),h=(0,n.getIdentifierName)(t.name()),d=t.scope()?.toStringTree(),p=t.bounds()?.toStringTree(),f=new i.AssertionTest(e,r,s,l,h,c,u,p,d);this._assertions.push(f)}exitQuantifiedPropertyDecl(t){let{startLine:e,startColumn:r,endLine:l,endColumn:u}=o(t),c=!!t.DISJ_TOK(),h=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===h)throw new Error("Property relation must be either necessary or sufficient.");let d=(0,n.getIdentifierName)(t.name()),p=a(t.expr()),f=t.exprList(),g=f?s(f):void 0,m=t.scope()?.toStringTree(),y=t.bounds()?.toStringTree(),_=t.quantDeclList(),v=_?s(_):void 0,x=new i.QuantifiedAssertionTest(e,r,l,u,d,p,h,c,v,y,m,g);this._quantifiedAssertions.push(x)}exitConsistencyDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:l}=o(t),u=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===u)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let c="consistent"===u,h=(0,n.getIdentifierName)(t.name()),d=a(t.expr()),p=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),g=new i.ConsistencyAssertionTest(e,r,s,l,h,d,c,f,p);this._consistencyAssertions.push(g)}exitExampleDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=(0,n.getIdentifierName)(t.name()),c=s(t.expr()),h=s(t.bounds()),d=new i.Example(e,r,a,l,u,c,h);this._examples.push(d)}getAllNames(t){let e=[];return function t(r){r.name()&&e.push(r.name());let n=r.nameList();n&&t(n)}(t),e.map((t=>(0,n.getIdentifierName)(t)))}}},"./src/forge-antlr/ForgeParser.ts":function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],_._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],_.VOCABULARY=new m.VocabularyImpl(_._LITERAL_NAMES,_._SYMBOLIC_NAMES,[]),_._serializedATNSegments=2,_._serializedATNSegment0="줝쪺֍꾺体؇쉁tϼ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tV¯\n´\n¸\nÀ\n\fÃ\vÆ\n\fÉ\vÌ\n\fÏ\vÑ\nÙ\nÝ\nã\nå\nø\nû\nþ\nā\nĆ\nĊ\nĎ\n\b\b\b\b\b\b\bĖ\n\b\f\b\bę\v\b\bě\n\b\t\t\n\n\v\v\f\fĤ\n\f\f\f\f\fĩ\n\f\f\f\r\rĮ\n\r\r\r\r\rij\n\r\r\rĸ\nŅ\nʼn\nō\nŖ\nś\nŞ\nŢ\nũ\nŮ\nű\nŵ\nź\nž\nƁ\nƅ\nƋ\nƏ\nƕ\n\fƘ\vƠ\nƤ\nƧ\nư\nƳ\nƺ\nƾ\nǃ\nǐ\nǓ\nǗ\nǠ\nǤ\nǭ\nDZ\nǹ\n\fǼ\vȆ\n   Ȋ\n     ȏ\n !!\"\"\"\"###ș\n#\f##Ȝ\v###$$$$ȣ\n$%%%%%ȩ\n%&&&ȭ\n&&&&&Ȳ\n&\f&&ȵ\v&&&&&Ⱥ\n&''''''Ɂ\n'''Ʉ\n'(())))))ɍ\n)******ɔ\n*++++++ɛ\n+,,,,,,ɢ\n,------ɩ\n-......ɰ\n.//////ɷ\n/000000ɾ\n0111111111111ʋ\n11111ʐ\n12222222ʘ\n2\f22ʛ\v23333333ʣ\n3\f33ʦ\v34444444ʮ\n4\f44ʱ\v45555555ʹ\n55ʻ\n56666666˃\n6\f66ˆ\v6777777777777777777˙\n78888888888888888˪\n8999999˱\n99999˶\n9\f99˹\v9::::˾\n:;;;;;;;̆\n;\f;;̉\v;<<<<̎\n<=======̖\n=\f==̙\v=>>>>>>>̡\n>\f>>̤\v>????????̭\n?\f??̰\v?@@@@@@@̸\n@\f@@̻\v@AAAAAAAAAͅ\nA\fAA͈\vABBBBBBBB͑\nBBBBB͖\nB\fBB͙\vBCCCCCC͠\nC\fCCͣ\vCDDDDͨ\nDEEEEEEEEEEEEEEEEEEEͼ\nEFFFFFF΃\nFGGHHIIIII΍\nIJJKKKLLLLLLLMMMMMMNNNNNNΦ\nNOOPPPά\nP\fPPί\vPPPPγ\nPPPζ\nPQQQQQQν\nQRRRRRRRRφ\nRSSSSSSSώ\nS\rSSϏSϒ\nSTTTTTTTϚ\nTTTTTϟ\nT\fTTϢ\vTUUUUUUUϪ\nUUUUUϯ\nU\fUUϲ\vUVVVVVVVϺ\nVVbdfjptxz|~€‚„¦¨W\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª !*.*+--4567))afnogg((OPRT]`\\\\kkю¬»Ð\bä\n÷\fúĚĜĞĠģĭķľŀ ŝ\"ş$Ũ&Ź(Ɗ*ƒ,ƣ.Ʀ0Ʋ2ƴ4ƿ6ǘ8ǥ:Dz<ȅ>ȉ@ȐBȒDȖFȢHȨJȹLȻNɅPɌRɓTɚVɡXɨZɯ\\ɶ^ɽ`ʏbʑdʜfʧhʺjʼl˘n˩p˫r˽t˿v̍x̏z̚|̥~̱€̼‚͐„͚†ͧˆͻŠ΂Œ΄ŽΆΈ’Ύ”ΐ–Γ˜ΚšΥœΧžε μ¢υ¤ϑ¦ϙ¨ϩªϹ¬®­¯®­®¯¯³°±J&±²²´³°³´´µµ·N(¶¸ ·¶·¸¸¹¹ºD#º»¼`1¼½½¾À\b¿¾ÀÃÁ¿ÁÂÂÇÃÁÄÆ\nÅÄÆÉÇÅÇÈÈÑÉÇÊÌ”KËÊÌÏÍËÍÎÎÑÏÍÐÁÐÍÑÒÓÓØJ&ÔÕÕÖR*Ö××ÙØÔØÙÙÜÚÛÛÝN(ÜÚÜÝÝåÞßßâàááãN(âàâããåäÒäÞå\tæø\fçøèøéø\"êø$ëø(ìøŒGíø˜Mîø’JïøL'ðøIñø–Lòø6óø4ôø2õø8öø:÷æ÷ç÷è÷é÷ê÷ë÷ì÷í÷î÷ï÷ð÷ñ÷ò÷ó÷ô÷õ÷öø\vùû\búùúûûýüþ\týüýþþĀÿā\tĀÿĀāāĂĂă\năąP)ĄĆ\bąĄąĆĆććĉ\vĈĊX-ĉĈĉĊĊċċč\fČĎD#čČčĎĎ\rďĐ\rĐěJ&đĒĒėJ&ēĔĔĖJ&ĕēĖęėĕėĘĘěęėĚďĚđěĜĝ\tĝĞğ\tğĠġ\tġĢĤģĢģĤĤĥĥĦP)ĦĨħĩ\vĨħĨĩĩĪĪī`1īĬĮĭĬĭĮĮįįİP)İIJıijIJıIJijijĴĴĵ`1ĵĶĸ\bķĶķĸĸĹĹĺP)ĺĻĻļ\nļĽŠFĽľĿĿŀńŁłJ&łŃŃŅńŁńŅŅņņňN(Ňʼn ňŇňʼnʼnŊŊŌŋō\vŌŋŌōōŎŎŏ`1ŏŐ\vŐő`1őŒ\fŒœŕŔŖT+ŕŔŕŖŖŗŗŞŘŚřśT+ŚřŚśśŜŜŞŝœŝŘŞ!şšŠŢN(šŠšŢŢţţŤD#Ť#ťŦN(ŦŧŧũŨťŨũũŪŪŭ\tūŮJ&ŬŮD#ŭūŭŬŭŮŮŰůű,ŰůŰűűŴŲų\"ųŵžPŴŲŴŵŵ%ŶŷN(ŷŸŸźŹŶŹźźŽŻžJ&żžD#ŽŻŽżžƀſƁ,ƀſƀƁƁƄƂƃ\"ƃƅžPƄƂƄƅƅƆƆƇ)Ƈƈ\tƈ'ƉƋ/ƊƉƊƋƋƌƌƎ0ƍƏN(ƎƍƎƏƏƐƐƑ*Ƒ)ƒƖ\vƓƕ&ƔƓƕƘƖƔƖƗƗƙƘƖƙƚ\fƚ+ƛƜ\"ƜƟœOƝƞ#ƞƠ\\/ƟƝƟƠƠƤơƢ\"ƢƤ\\/ƣƛƣơƤ-ƥƧ$ƦƥƦƧƧƨƨƩœOƩƪJ&ƪ/ƫƳ%ƬƳ&ƭƳ'Ʈư(ƯƮƯưưƱƱƳœOƲƫƲƬƲƭƲƯƳ1ƴƵƵƶ`1ƶƷ)Ʒƹ\tƸƺ,ƹƸƹƺƺƽ",_._serializedATNSegment1='ƻƼ"ƼƾžPƽƻƽƾƾ3ƿǀǀǂ3ǁǃǂǁǂǃǃDŽDŽDžV,Dždž2džLJ`1LJLj)Ljlj\t\bljNJ"NJǏN(NjnjnjǍ^0ǍǎǎǐǏNjǏǐǐǒǑǓ,ǒǑǒǓǓǖǔǕ"ǕǗžPǖǔǖǗǗ5ǘǙǙǚ`1ǚǛ)Ǜǜ\t\bǜǝ"ǝǟN(ǞǠ,ǟǞǟǠǠǣǡǢ"ǢǤžPǣǡǣǤǤ7ǥǦǦǧ`1ǧǨ)Ǩǩ\t\tǩǪ8ǪǬN(ǫǭ,ǬǫǬǭǭǰǮǯ"ǯDZžPǰǮǰDZDZ9Dzdz/dzǴ1Ǵǵ"ǵǶN(ǶǺ\vǷǹ<ǸǷǹǼǺǸǺǻǻǽǼǺǽǾ\fǾ;ǿȆ–LȀȆ(ȁȆ4ȂȆ6ȃȆ2ȄȆ8ȅǿȅȀȅȁȅȂȅȃȅȄȆ=ȇȊ\tȈȊȉȇȉȈȉȊȊȋȋȎ\\Ȍȏ\tȍȏȎȌȎȍȎȏȏ?Ȑȑ\t\nȑAȒȓN(ȓȔaȔȕ`1ȕCȖȚ\vȗș`1ȘȗșȜȚȘȚțțȝȜȚȝȞ\fȞEȟȣD#Ƞȡ2ȡȣ`1ȢȟȢȠȣGȤȩ3ȥȩgȦȩhȧȩ\tȨȤȨȥȨȦȨȧȩIȪȫWȫȭlȬȪȬȭȭȳȮȯN(ȯȰlȰȲȱȮȲȵȳȱȳȴȴȶȵȳȶȺN(ȷȺiȸȺhȹȬȹȷȹȸȺKȻȼjȼɃJ&ȽɄJ&ȾɄȿɁ(ɀȿɀɁɁɂɂɄœOɃȽɃȾɃɀɄMɅɆ\t\vɆOɇɍN(ɈɉN(ɉɊkɊɋP)ɋɍɌɇɌɈɍQɎɔJ&ɏɐJ&ɐɑkɑɒR*ɒɔɓɎɓɏɔSɕɛ\fɖɗ\fɗɘkɘəT+əɛɚɕɚɖɛUɜɢ\rɝɞ\rɞɟkɟɠV,ɠɢɡɜɡɝɢWɣɩɤɥɥɦkɦɧX-ɧɩɨɣɨɤɩYɪɰB"ɫɬB"ɬɭkɭɮZ.ɮɰɯɪɯɫɰ[ɱɷ.ɲɳ.ɳɴkɴɵ\\/ɵɷɶɱɶɲɷ]ɸɾ`1ɹɺ`1ɺɻkɻɼ^0ɼɾɽɸɽɹɾ_ɿʐb2ʀʁ9ʁʂZ.ʂʃF$ʃʐʄʅ:ʅʆZ.ʆʇF$ʇʐʈʊH%ʉʋʊʉʊʋʋʌʌʍV,ʍʎF$ʎʐʏɿʏʀʏʄʏʈʐaʑʒ\b2ʒʓd3ʓʙʔʕ\fʕʖ;ʖʘd3ʗʔʘʛʙʗʙʚʚcʛʙʜʝ\b3ʝʞf4ʞʤʟʠ\fʠʡ<ʡʣf4ʢʟʣʦʤʢʤʥʥeʦʤʧʨ\b4ʨʩh5ʩʯʪʫ\fʫʬ=ʬʮh5ʭʪʮʱʯʭʯʰʰgʱʯʲʻj6ʳʴj6ʴʵ>ʵʸh5ʶʷ?ʷʹh5ʸʶʸʹʹʻʺʲʺʳʻiʼʽ\b6ʽʾl7ʾ˄ʿˀ\fˀˁ@ˁ˃l7˂ʿ˃ˆ˄˂˄˅˅kˆ˄ˇ˙n8ˈˉn8ˉˊAˊˋn8ˋ˙ˌˍn8ˍˎBˎˏn8ˏ˙ːˑn8ˑ˒C˒˓n8˓˙˔˕n8˕˖D˖˗n8˗˙˘ˇ˘ˈ˘ˌ˘ː˘˔˙m˚˪p9˛˜E˜˪n8˝˞F˞˪n8˟ˠGˠ˪n8ˡˢHˢ˪n8ˣˤIˤ˪n8˥˦J˦˪n8˧˨K˨˪n8˩˚˩˛˩˝˩˟˩ˡ˩ˣ˩˥˩˧˪o˫ˬ\b9ˬ˭r:˭˷ˮ˰\f˯˱E˰˯˰˱˱˲˲˳@!˳˴r:˴˶˵ˮ˶˹˷˵˷˸˸q˹˷˺˾t;˻˼\t\f˼˾t;˽˺˽˻˾s˿̀\b;̀́v<́̇̂̃\f̃̄\t\r̄̆x=̅̂̆̉̇̅̇̈̈ủ̇̊̎x=̋̌Ľ̎v<̍̊̍̋̎w̏̐\b=̐̑z>̗̑̒̓\f̓̔M̖̔z>̖̙̗̗̘̘̒̕̕y̛̙̗̚\b>̛̜|?̢̜̝̞\f̞̟N̡̟|?̡̢̢̠̝̤̠̣̣{̢̤̥̦\b?̧̦~@̧̨̮̩\f̩̪> ̪̫~@̨̫̭̬̭̰̮̬̮̯̯}̰̮̱̲\b@̲̳€A̴̵̳̹\f̵̶\t̶̸€A̷̴̸̷̻̹̹̺̺̻̹̼̽\bA̽̾‚B̾͆̿̀\f̀́́͂^0͈͇͇͂̓̓̈́̿͆̈́͆ͅͅ͈͉͆͊\bB͊͑„C͋͌N(͍͍͎͌^0͎͏͏͉͓͑͐͐͋͑͗͒\f͓͔͔͖„C͕͖͙͕͒͗͗͘͘ƒ͙͚͗͛\bC͛͜†D͜͡͝͞\f͞͠Qͣ͟͟͢͢͝͠͡͡…ͣͤͨ͡ˆEͥͦ\tͦͨ†Dͧͤͧͥͨ‡ͩͼ0ͪͼJ&ͫͬUͬͼN(ͭͮVͮͼN(ͯͼWͰͱ\vͱͲV,ͲͳF$ͳʹ\fʹͼ͵ͶͶͷ`1ͷ͸͸ͼ͹ͼD#ͺͼŽHͻͩͻͪͻͫͻͭͻͯͻͰͻ͵ͻ͹ͻͺͼ‰ͽ΃J&;ͿJ&Ϳ΀\\΀΁ŠF΁΃΂ͽ΂;΃‹΄΅ŽH΅Ά·X·ΈΉYΉΊN(ΊΌžP΋΍,Ό΋Ό΍΍‘ΎΏΏ“ΐΑZΑΒ`1Β•ΓΔ[ΔΕN(ΕΖ)ΖΗ`1ΗΘ"ΘΙžPΙ—ΚΛN(ΛΜΜΝŠFΝΞaΞΟ`1Ο™ΠΦœOΡ΢œO΢ΣkΣΤšNΤΦΥΠΥΡΦ›ΧΨm؝Ωέ\vΪά¢RΫΪάίέΫέήήΰίέΰζ\fαγ$βαβγγδδζJ&εΩεβζŸηθVθνN(ινœOκλ(λνœOμημιμκν¡ξο¤Sοπ@!πρ¦Tρφςσgσφ¤SτφJ&υξυςυτφ£χψLψϒJ&ωϒJ&ϊύ QϋόόώJ&ύϋώϏϏύϏϐϐϒϑχϑωϑϊϒ¥ϓϔ\bTϔϚ¨Uϕϖϖϗ¦TϗϘϘϚϙϓϙϕϚϠϛϜ\fϜϝϝϟ¨UϞϛϟϢϠϞϠϡϡ§ϢϠϣϤ\bUϤϥϥϦ¨UϦϧϧϪϨϪªVϩϣϩϨϪϰϫϬ\fϬϭ\tϭϯªVϮϫϯϲϰϮϰϱϱ©ϲϰϳϺ QϴϺJ&ϵ϶϶Ϸ¦TϷϸϸϺϹϳϹϴϹϵϺ«x®³·ÁÇÍÐØÜâä÷úýĀąĉčėĚģĨĭIJķńňŌŕŚŝšŨŭŰŴŹŽƀƄƊƎƖƟƣƦƯƲƹƽǂǏǒǖǟǣǬǰǺȅȉȎȚȢȨȬȳȹɀɃɌɓɚɡɨɯɶɽʊʏʙʤʯʸʺ˄˘˩˰˷˽̢̗̮̹̇̍͆͐͗ͧ͡ͻ΂ΌΥέβεμυϏϑϙϠϩϰϹ',_._serializedATN=y.join([_._serializedATNSegment0,_._serializedATNSegment1],"");class v extends d.ParserRuleContext{PRED_TOK(){return this.getToken(_.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,I)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=v;class x extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}EOF(){return this.getToken(_.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=x;class b extends d.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(T):this.getRuleContext(t,T)}paragraph(t){return void 0===t?this.getRuleContexts(E):this.getRuleContext(t,E)}evalDecl(t){return void 0===t?this.getRuleContexts(Kt):this.getRuleContext(t,Kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=b;class T extends d.ParserRuleContext{OPEN_TOK(){return this.getToken(_.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(_.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=T;class E extends d.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,O)}predDecl(){return this.tryGetRuleContext(0,v)}funDecl(){return this.tryGetRuleContext(0,k)}assertDecl(){return this.tryGetRuleContext(0,P)}cmdDecl(){return this.tryGetRuleContext(0,M)}testExpectDecl(){return this.tryGetRuleContext(0,K)}sexprDecl(){return this.tryGetRuleContext(0,Dt)}queryDecl(){return this.tryGetRuleContext(0,Ft)}evalRelDecl(){return this.tryGetRuleContext(0,jt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Mt)}exampleDecl(){return this.tryGetRuleContext(0,Ut)}propertyDecl(){return this.tryGetRuleContext(0,G)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}testSuiteDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=E;class O extends d.ParserRuleContext{SIG_TOK(){return this.getToken(_.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(_.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}sigExt(){return this.tryGetRuleContext(0,S)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=O;class S extends d.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(_.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(_.PLUS_TOK):this.getToken(_.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=S;class N extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=N;class A extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=A;class w extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=w;class R extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=R;class C extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=C;class L extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,A)}arrowExpr(){return this.getRuleContext(0,kt)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=L;class I extends d.ParserRuleContext{WHEAT_TOK(){return this.getToken(_.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=I;class k extends d.ParserRuleContext{FUN_TOK(){return this.getToken(_.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=k;class D extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=D;class P extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=P;class M extends d.ParserRuleContext{RUN_TOK(){return this.tryGetToken(_.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(_.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=M;class j extends d.ParserRuleContext{IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(_.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(_.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=j;class K extends d.ParserRuleContext{EXPECT_TOK(){return this.getToken(_.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,U)}TEST_TOK(){return this.tryGetToken(_.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=K;class U extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=U;class F extends d.ParserRuleContext{FOR_TOK(){return this.getToken(_.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}BUT_TOK(){return this.tryGetToken(_.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=F;class $ extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=$;class H extends d.ParserRuleContext{NONE_TOK(){return this.tryGetToken(_.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(_.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(_.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=H;class B extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=B;class q extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(_.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(_.BAR_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=q;class G extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=G;class z extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}WITH_TOK(){return this.getToken(_.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(_.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(_.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=z;class V extends d.ParserRuleContext{TEST_TOK(){return this.getToken(_.TEST_TOK,0)}SUITE_TOK(){return this.getToken(_.SUITE_TOK,0)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=V;class Y extends d.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Ut)}testExpectDecl(){return this.tryGetRuleContext(0,K)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}propertyDecl(){return this.tryGetRuleContext(0,G)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=Y;class W extends d.ParserRuleContext{ARROW_TOK(){return this.getToken(_.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(N):this.getRuleContext(t,N)}SET_TOK(t){return void 0===t?this.getTokens(_.SET_TOK):this.getToken(_.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=W;class X extends d.ParserRuleContext{IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(_.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(_.LT_TOK,0)}GT_TOK(){return this.tryGetToken(_.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(_.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(_.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(_.IS_TOK,0)}NI_TOK(){return this.tryGetToken(_.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=X;class Q extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=Q;class J extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends d.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(_.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends d.ParserRuleContext{ALL_TOK(){return this.tryGetToken(_.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends d.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(_.SLASH_TOK):this.getToken(_.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(_.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends d.ParserRuleContext{OPTION_TOK(){return this.getToken(_.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends d.ParserRuleContext{IDENTIFIER_TOK(){return this.tryGetToken(_.IDENTIFIER_TOK,0)}QUOTED_IDENTIFIER_TOK(){return this.tryGetToken(_.QUOTED_IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class ot extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=ot;class st extends d.ParserRuleContext{paraDecl(){return this.getRuleContext(0,R)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=st;class at extends d.ParserRuleContext{quantDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ut extends d.ParserRuleContext{letDecl(){return this.getRuleContext(0,Q)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ut;class ct extends d.ParserRuleContext{typescope(){return this.getRuleContext(0,$)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ct;class ht extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class dt extends d.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,pt)}LET_TOK(){return this.tryGetToken(_.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(_.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=dt;class pt extends d.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,pt)}OR_TOK(){return this.tryGetToken(_.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=pt;class ft extends d.ParserRuleContext{expr2(){return this.getRuleContext(0,gt)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(_.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class gt extends d.ParserRuleContext{expr3(){return this.getRuleContext(0,mt)}expr2(){return this.tryGetRuleContext(0,gt)}IFF_TOK(){return this.tryGetToken(_.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=gt;class mt extends d.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(_.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(mt):this.getRuleContext(t,mt)}ELSE_TOK(){return this.tryGetToken(_.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=mt;class yt extends d.ParserRuleContext{expr4_5(){return this.getRuleContext(0,_t)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(_.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class _t extends d.ParserRuleContext{expr5(t){return void 0===t?this.getRuleContexts(vt):this.getRuleContext(t,vt)}UNTIL_TOK(){return this.tryGetToken(_.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(_.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(_.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(_.TRIGGERED_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4_5}enterRule(t){t.enterExpr4_5&&t.enterExpr4_5(this)}exitRule(t){t.exitExpr4_5&&t.exitExpr4_5(this)}accept(t){return t.visitExpr4_5?t.visitExpr4_5(this):t.visitChildren(this)}}e.Expr4_5Context=_t;class vt extends d.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,vt)}ALWAYS_TOK(){return this.tryGetToken(_.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(_.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(_.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(_.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(_.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(_.HISTORICALLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=vt;class xt extends d.ParserRuleContext{expr7(){return this.getRuleContext(0,bt)}expr6(){return this.tryGetRuleContext(0,xt)}compareOp(){return this.tryGetRuleContext(0,X)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=xt;class bt extends d.ParserRuleContext{expr8(){return this.getRuleContext(0,Tt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=bt;class Tt extends d.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,Et)}expr8(){return this.tryGetRuleContext(0,Tt)}expr10(){return this.tryGetRuleContext(0,Ot)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=Tt;class Et extends d.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,Ot)}CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,Et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=Et;class Ot extends d.ParserRuleContext{expr11(){return this.getRuleContext(0,St)}expr10(){return this.tryGetRuleContext(0,Ot)}PPLUS_TOK(){return this.tryGetToken(_.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=Ot;class St extends d.ParserRuleContext{expr12(){return this.getRuleContext(0,Nt)}expr11(){return this.tryGetRuleContext(0,St)}AMP_TOK(){return this.tryGetToken(_.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=St;class Nt extends d.ParserRuleContext{expr13(){return this.getRuleContext(0,At)}expr12(){return this.tryGetRuleContext(0,Nt)}arrowOp(){return this.tryGetRuleContext(0,W)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Nt;class At extends d.ParserRuleContext{expr14(){return this.getRuleContext(0,wt)}expr13(){return this.tryGetRuleContext(0,At)}SUBT_TOK(){return this.tryGetToken(_.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(_.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=At;class wt extends d.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Rt)}expr14(){return this.tryGetRuleContext(0,wt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=wt;class Rt extends d.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,Ct)}expr15(){return this.tryGetRuleContext(0,Rt)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=Rt;class Ct extends d.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Lt)}expr16(){return this.tryGetRuleContext(0,Ct)}PRIME_TOK(){return this.tryGetToken(_.PRIME_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr16}enterRule(t){t.enterExpr16&&t.enterExpr16(this)}exitRule(t){t.exitExpr16&&t.exitExpr16(this)}accept(t){return t.visitExpr16?t.visitExpr16(this):t.visitChildren(this)}}e.Expr16Context=Ct;class Lt extends d.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,It)}expr17(){return this.tryGetRuleContext(0,Lt)}TILDE_TOK(){return this.tryGetToken(_.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(_.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(_.STAR_TOK,0)}GET_LABEL_TOK(){return this.tryGetToken(_.GET_LABEL_TOK,0)}GET_LABEL_STR_TOK(){return this.tryGetToken(_.GET_LABEL_STR_TOK,0)}GET_LABEL_BOOL_TOK(){return this.tryGetToken(_.GET_LABEL_BOOL_TOK,0)}GET_LABEL_NUM_TOK(){return this.tryGetToken(_.GET_LABEL_NUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=Lt;class It extends d.ParserRuleContext{const(){return this.tryGetRuleContext(0,H)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(_.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=It;class kt extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=kt;class Dt extends d.ParserRuleContext{sexpr(){return this.getRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=Dt;class Pt extends d.ParserRuleContext{SEXPR_TOK(){return this.getToken(_.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=Pt;class Mt extends d.ParserRuleContext{INST_TOK(){return this.getToken(_.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Bt)}scope(){return this.tryGetRuleContext(0,F)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Mt;class jt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=jt;class Kt extends d.ParserRuleContext{EVAL_TOK(){return this.getToken(_.EVAL_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Kt;class Ut extends d.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(_.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}expr(){return this.getRuleContext(0,dt)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Ut;class Ft extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,kt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=Ft;class $t extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,$t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=$t;class Ht extends d.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(_.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=Ht;class Bt extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(Gt):this.getRuleContext(t,Gt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Bt;class qt extends d.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=qt;class Gt extends d.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,zt)}compareOp(){return this.tryGetRuleContext(0,X)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=Gt;class zt extends d.ParserRuleContext{CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}DOT_TOK(t){return void 0===t?this.getTokens(_.DOT_TOK):this.getToken(_.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=zt;class Vt extends d.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=Vt;class Yt extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Wt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=Yt;class Wt extends d.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Wt},"./src/forge-antlr/ForgeSyntaxConstructs.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.name=i,this.body=o,this.inheritsFrom=s,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.Test=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.name=i,this.check=o,this.body=s,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l,u,c,h){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.disj=a,this.quantDecls=l,this.bounds=u,this.scope=c,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.testExpr=o,this.bounds=s}},e.Function=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.exp=i,this.check=o,this.bounds=s,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.consistent=s,this.bounds=a,this.scope=l}}},"./src/forge-antlr/utils.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=void 0,e.getIdentifierName=function(t){let e=t.IDENTIFIER_TOK();if(e)return e.text;let r=t.QUOTED_IDENTIFIER_TOK();return r?r.text.slice(1,-1).replace(/\\(.)/g,"$1"):t.text},e.quoteIfReserved=function(t,e){return e.has(t)?"`"+t.replace(/([`\\])/g,"\\$1")+"`":t},e.FORGE_RESERVED_KEYWORDS=new Set(["open","as","var","abstract","sig","extends","in","lone","some","one","two","set","func","pfunc","disj","wheat","pred","fun","assert","run","check","for","but","exactly","none","univ","iden","is","sat","unsat","theorem","forge_error","checked","test","expect","suite","all","sufficient","necessary","consistent","inconsistent","with","let","bind","or","xor","iff","implies","else","and","until","release","since","triggered","not","always","eventually","after","before","once","historically","this","sexpr","inst","eval","example","ni","no","sum","Int","option"])},"./src/index.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=e.quoteIfReserved=e.getIdentifierName=e.SelectorSynthesisError=e.synthesizeSelectorWithWhy=e.synthesizeBinaryRelationWithWhy=e.synthesizeBinaryRelation=e.synthesizeSelector=e.SimpleGraphQueryEvaluator=void 0;let n=r("./node_modules/antlr4ts/index.js"),i=r("./src/forge-antlr/ForgeParser.ts"),o=r("./src/forge-antlr/ForgeLexer.ts"),s=r("./src/forge-antlr/ForgeListenerImpl.ts"),a=r("./node_modules/antlr4ts/tree/ParseTreeWalker.js"),l=r("./src/ForgeExprEvaluator.ts"),u=r("./src/errorListener.ts");e.SimpleGraphQueryEvaluator=class{constructor(t){this.forgeListener=new s.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.parseTreeCache=new Map,this.datum=t}getExpressionParseTree(t){let e=function(t){let e=n.CharStreams.fromString(t),r=new o.ForgeLexer(e),s=new n.CommonTokenStream(r),a=new i.ForgeParser(s);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new u.ParseErrorListener),a}(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}evaluateExpression(t){let e;if(this.parseTreeCache.has(t))e=this.parseTreeCache.get(t);else try{let r=this.getExpressionParseTree(t);e=r instanceof i.ExprContext?r:r.getChild(0),this.parseTreeCache.set(t,e)}catch{return{error:new Error(`Error parsing expression "${t}"`)}}let r=new l.ForgeExprEvaluator(this.datum);try{return r.visit(e)}catch(e){if(e instanceof l.NameNotFoundError)return[];if(e instanceof Error){let r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}};var c=r("./src/SelectorSynthesizer.ts");Object.defineProperty(e,"synthesizeSelector",{enumerable:!0,get:function(){return c.synthesizeSelector}}),Object.defineProperty(e,"synthesizeBinaryRelation",{enumerable:!0,get:function(){return c.synthesizeBinaryRelation}}),Object.defineProperty(e,"synthesizeBinaryRelationWithWhy",{enumerable:!0,get:function(){return c.synthesizeBinaryRelationWithWhy}}),Object.defineProperty(e,"synthesizeSelectorWithWhy",{enumerable:!0,get:function(){return c.synthesizeSelectorWithWhy}}),Object.defineProperty(e,"SelectorSynthesisError",{enumerable:!0,get:function(){return c.SelectorSynthesisError}});var h=r("./src/forge-antlr/utils.ts");Object.defineProperty(e,"getIdentifierName",{enumerable:!0,get:function(){return h.getIdentifierName}}),Object.defineProperty(e,"quoteIfReserved",{enumerable:!0,get:function(){return h.quoteIfReserved}}),Object.defineProperty(e,"FORGE_RESERVED_KEYWORDS",{enumerable:!0,get:function(){return h.FORGE_RESERVED_KEYWORDS}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r("./src/index.ts")})(),"object"==typeof t&&"object"==typeof e?e.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof t?t.SimpleGraphQuery=n():r.SimpleGraphQuery=n()}));function Nn(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}t.SGraphQueryEvaluator=void 0;var An=d((()=>{r=g(Sn()),n=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=function(t){return void 0!==t.error}(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:(this.isSingletonResult,this.result)}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>Nn(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>Nn(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>Nn(t)))))}},t.SGraphQueryEvaluator=class{constructor(){this.evaluatorCache=new Map,this.MAX_CACHE_SIZE=1e3,this.ready=!1}initialize(t){if(this.context=t,!t.sourceData||!function(t){return void 0!==t.getAtoms&&void 0!==t.getRelations&&void 0!==t.getTypes&&void 0!==t.applyProjections&&void 0!==t.generateGraph}(t.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let e=t.sourceData;this.eval=new r.SimpleGraphQueryEvaluator(e),this.ready=!0,this.evaluatorCache.clear()}isReady(){return this.ready}evaluate(t,e){if(!this.isReady())throw new Error("Evaluator not initialized");let r=e?.instanceIndex??0,i=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(i)){let t=this.evaluatorCache.get(i);return this.evaluatorCache.delete(i),this.evaluatorCache.set(i,t),t}let o=this.eval.evaluateExpression(t),s=new n(o,t);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let t=this.evaluatorCache.keys().next().value;void 0!==t&&this.evaluatorCache.delete(t)}return this.evaluatorCache.set(i,s),s}dispose(){this.evaluatorCache.clear()}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,hasDataInstance:!1}}}})),wn=p(((t,e)=>{!function(r,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof t?e.exports=n():r.alasql=n()}(t,(function(){var r,n,i;let o=function(t,e,r,n){if(e=e||[],"function"!=typeof importScripts&&o.webworker){var i=o.lastid++;return o.buffer[i]=r,void o.webworker.postMessage({id:i,sql:t,params:e})}return 0===arguments.length?new q.Select({columns:[new q.Column({columnid:"*"})],from:[new q.ParamValue({param:0})]}):1===arguments.length&&t.constructor===Array?o.promise(t):("function"==typeof e&&(n=r,r=e,e=[]),"object"!=typeof e&&(e=[e]),"string"==typeof t&&"#"===t[0]&&"object"==typeof document?t=document.querySelector(t).textContent:"object"==typeof t&&t instanceof HTMLElement?t=t.textContent:"function"==typeof t&&(t=t.toString(),t=(/\/\*([\S\s]+)\*\//m.exec(t)||["","Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function."])[1]),o.exec(t,e,r,n))};o.version="4.16.0",o.build="develop-42f0e181",o.debug=void 0;var s=function(){return null},a=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[2,17],r=[1,112],n=[1,106],i=[1,107],s=[1,108],a=[1,109],l=[1,110],u=[1,111],c=[1,6],h=[1,42],d=[1,80],p=[1,103],f=[1,77],m=[1,97],y=[1,96],_=[1,69],v=[1,105],x=[1,86],b=[1,64],T=[1,71],E=[1,85],O=[1,66],S=[1,70],N=[1,68],A=[1,61],w=[1,74],R=[1,62],C=[1,67],L=[1,84],I=[1,78],k=[1,87],D=[1,88],P=[1,99],M=[1,82],j=[1,83],K=[1,81],U=[1,89],F=[1,90],$=[1,91],H=[1,92],B=[1,93],q=[1,94],G=[1,95],z=[1,101],V=[1,65],Y=[1,79],W=[1,72],X=[1,100],Q=[1,63],J=[1,73],Z=[1,116],tt=[1,115],et=[14,339,639,798],rt=[14,339,343,639,798],nt=[1,123],it=[1,125],ot=[1,124],st=[1,126],at=[1,127],lt=[1,128],ut=[1,129],ct=[139,388,447],ht=[1,137],dt=[1,136],pt=[1,144],ft=[1,174],gt=[1,189],mt=[1,192],yt=[1,185],_t=[1,195],vt=[1,199],xt=[1,170],bt=[1,196],Tt=[1,181],Et=[1,183],Ot=[1,188],St=[1,197],Nt=[1,186],At=[1,214],wt=[1,215],Rt=[1,187],Ct=[1,176],Lt=[1,177],It=[1,207],kt=[1,202],Dt=[1,203],Pt=[1,179],Mt=[1,208],jt=[1,209],Kt=[1,210],Ut=[1,211],Ft=[1,212],$t=[1,213],Ht=[1,216],Bt=[1,217],qt=[1,190],Gt=[1,191],zt=[1,193],Vt=[1,194],Yt=[1,200],Wt=[1,206],Xt=[1,198],Qt=[1,201],Jt=[1,184],Zt=[1,182],te=[1,205],ee=[1,218],re=[2,4,5,6,7,8,9,152,161,190,335],ne=[2,499],ie=[1,222],oe=[1,227],se=[1,236],ae=[1,234],le=[14,76,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],ue=[1,241],ce=[14,76,83,127,271,273,339,343,503,639,798],he=[2,248],de=[1,244],pe=[1,246],fe=[1,245],ge=[2,4,5,6,7,8,9,14,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],me=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],ye=[1,273],_e=[1,280],ve=[1,281],xe=[1,286],be=[1,291],Te=[1,296],Ee=[1,295],Oe=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,177,178,188,189,190,192,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],Se=[2,172],Ne=[1,307],Ae=[14,78,83,339,343,466,639,798],we=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,202,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,423,426,433,437,438,439,440,441,442,443,445,446,454,455,457,461,463,466,471,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,552,553,554,555,639,798],Re=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Ce=[1,595],Le=[1,597],Ie=[1,598],ke=[2,4,5,6,7,8,9],De=[2,531],Pe=[1,604],Me=[1,615],je=[1,618],Ke=[1,619],Ue=[14,82,83,96,141,146,155,198,329,339,343,509,639,798],Fe=[14,78,339,343,639,798],$e=[2,602],He=[1,637],Be=[2,4,5,6,7,8,9,165],qe=[1,675],Ge=[1,647],ze=[1,681],Ve=[1,682],Ye=[1,655],We=[1,666],Xe=[1,653],Qe=[1,661],Je=[1,654],Ze=[1,662],tr=[1,664],er=[1,656],rr=[1,657],nr=[1,676],ir=[1,673],or=[1,674],sr=[1,650],ar=[1,652],lr=[1,644],ur=[1,645],cr=[1,646],hr=[1,648],dr=[1,649],pr=[1,651],fr=[1,658],gr=[1,659],mr=[1,663],yr=[1,665],_r=[1,667],vr=[1,668],xr=[1,669],br=[1,670],Tr=[1,671],Er=[1,677],Or=[1,678],Sr=[1,679],Nr=[1,680],Ar=[1,690],wr=[1,687],Rr=[2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr=[2,298],Lr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ir=[2,296],kr=[2,297],Dr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Pr=[2,380],Mr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],jr=[1,706],Kr=[1,716],Ur=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Fr=[1,733],$r=[1,735],Hr=[1,736],Br=[1,726],qr=[1,744],Gr=[1,743],zr=[2,4,5,6,7,8,9,14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Vr=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Yr=[1,760],Wr=[2,203],Xr=[1,769],Qr=[14,76,83,103,108,127,137,171,177,178,192,252,271,273,339,343,503,639,798],Jr=[2,173],Zr=[1,772],tn=[2,4,5,6,7,8,9,121,229,281],en=[14,76,83,271,273,339,343,503,639,798],rn=[2,260],nn=[1,776],on=[82,198],sn=[1,795],an=[1,814],ln=[1,794],un=[1,793],cn=[1,788],hn=[1,789],dn=[1,791],pn=[1,792],fn=[1,796],gn=[1,797],mn=[1,798],yn=[1,799],_n=[1,800],vn=[1,801],xn=[1,802],bn=[1,803],Tn=[1,804],En=[1,805],On=[1,806],Sn=[1,807],Nn=[1,808],An=[1,809],wn=[1,810],Rn=[1,811],Cn=[1,813],Ln=[1,815],In=[1,816],kn=[1,817],Dn=[1,818],Pn=[1,819],Mn=[1,820],jn=[1,821],Kn=[1,824],Un=[1,825],Fn=[1,826],$n=[1,827],Hn=[1,828],Bn=[1,829],qn=[1,830],Gn=[1,831],zn=[1,832],Vn=[1,833],Yn=[1,835],Wn=[1,836],Xn=[1,834],Qn=[78,82,96,198],Jn=[14,82,96,137,152,154,155,158,161,190,198,335,339,343,378,379,457,461,503,639,798],Zn=[14,78,83,163,196,250,330,339,343,378,391,403,404,407,408,639,798],ti=[1,855],ei=[14,78,83,333,339,343,639,798],ri=[1,856],ni=[1,863],ii=[1,864],oi=[1,868],si=[14,78,83,339,343,639,798],ai=[2,4,5,6,7,8,9,82,140,141,146,152,154,158,161,163,165,188,189,190,229,266,267,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,345,350,457,461],li=[14,76,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],ui=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],ci=[2,4,5,6,7,8,9,141,329],hi=[1,905],di=[14,78,81,83,339,343,639,798],pi=[2,780],fi=[14,78,81,83,141,148,150,154,161,339,343,457,461,639,798],gi=[2,1235],mi=[14,78,81,83,148,150,154,161,339,343,457,461,639,798],yi=[14,78,81,83,148,150,154,339,343,457,461,639,798],_i=[14,78,83,148,150,339,343,639,798],vi=[14,82,83,96,141,155,198,329,339,343,509,639,798],xi=[368,372,373],bi=[2,806],Ti=[1,930],Ei=[1,931],Oi=[1,932],Si=[1,933],Ni=[1,942],Ai=[1,941],wi=[2,759],Ri=[1,945],Ci=[173,175,367],Li=[2,465],Ii=[1,999],ki=[2,4,5,6,7,8,9,82,140,165,293,322,323,324,325,326],Di=[1,1017],Pi=[1,1016],Mi=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],ji=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ki=[2,396],Ui=[1,1028],Fi=[339,341,343],$i=[78,333],Hi=[78,333,463],Bi=[1,1036],qi=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Gi=[78,463],zi=[1,1055],Vi=[1,1054],Yi=[1,1062],Wi=[14,76,83,103,108,127,137,171,177,178,252,271,273,339,343,503,639,798],Xi=[2,183],Qi=[1,1075],Ji=[1,1085],Zi=[14,76,83,339,343,503,639,798],to=[2,271],eo=[1,1088],ro=[1,1089],no=[1,1098],io=[1,1099],oo=[1,1100],so=[2,4,5,6,7,8,9,14,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],ao=[1,1153],lo=[1,1152],uo=[1,1167],co=[1,1166],ho=[1,1174],po=[14,76,78,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],fo=[14,76,83,127,171,177,178,271,273,339,343,503,639,798],go=[2,83],mo=[2,345],yo=[1,1192],_o=[1,1208],vo=[14,82,83,96,155,198,339,343,509,639,798],xo=[1,1228],bo=[1,1227],To=[1,1226],Eo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Oo=[1,1243],So=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],No=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ao=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],wo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ro=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Co=[2,427],Lo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Io=[2,317],ko=[9,83],Do=[2,349],Po=[1,1261],Mo=[2,293],jo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ko=[14,83,339,343,639,798],Uo=[1,1287],Fo=[14,82,83,152,154,161,190,335,339,343,457,461,503,639,798],$o=[14,78,83,339,341,343,503,639,798],Ho=[1,1305],Bo=[1,1308],qo=[2,1143],Go=[14,76,83,127,137,171,177,178,252,271,273,339,343,503,639,798],zo=[1,1314],Vo=[1,1315],Yo=[14,76,78,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],Wo=[2,4,5,6,7,8,9,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Xo=[2,4,5,6,7,8,9,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Qo=[2,1137],Jo=[2,4,5,6,7,8,9,76,78,81,82,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Zo=[1,1366],ts=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],es=[2,515],rs=[1,1369],ns=[14,78,83,137,339,341,343,503,639,798],is=[124,125,133],os=[2,619],ss=[1,1399],as=[81,148],ls=[2,766],us=[1,1416],cs=[1,1417],hs=[2,4,5,6,7,8,9,14,57,76,81,82,96,133,155,165,198,250,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],ds=[1,1446],ps=[2,351],fs=[1,1463],gs=[78,83],ms=[1,1472],ys=[14,339,341,343,503,639,798],_s=[14,76,83,127,171,177,178,252,271,273,339,343,503,639,798],vs=[2,234],xs=[1,1482],bs=[1,1486],Ts=[1,1490],Es=[1,1491],Os=[1,1493],Ss=[1,1494],Ns=[1,1495],As=[1,1496],ws=[1,1497],Rs=[1,1498],Cs=[1,1499],Ls=[1,1500],Is=[1,1507],ks=[9,14,76,78,83,271,273,339,343,503,639,798],Ds=[1,1531],Ps=[83,127],Ms=[2,236],js=[1,1627],Ks=[1,1643],Us=[1,1645],Fs=[2,4,5,6,7,8,9,82,152,154,161,165,190,293,322,323,324,325,326,335,457,461],$s=[1,1684],Hs=[1,1686],Bs=[1,1687],qs=[1,1683],Gs=[1,1682],zs=[1,1681],Vs=[1,1688],Ys=[1,1678],Ws=[1,1679],Xs=[1,1680],Qs=[1,1710],Js=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Zs=[1,1733],ta=[1,1732],ea=[1,1788],ra=[1,1789],na=[1,1787],ia=[1,1803],oa=[1,1805],sa=[1,1802],aa=[1,1804],la=[196,202,403,404,407],ua=[2,543],ca=[1,1810],ha=[1,1827],da=[1,1849],pa=[1,1856],fa=[14,76,78,83,127,171,177,178,259,271,273,339,343,503,639,798],ga=[4,14,269,339,343,378,391,639,798],ma=[2,246],ya=[1,1893],_a=[14,76,83,339,343,452,503,639,798],va=[14,78,83,163,196,330,339,343,378,391,403,404,407,408,639,798],xa=[2,549],ba=[1,1909],Ta=[1,1959],Ea=[1,1958],Oa=[1,1980],Sa=[1,1991],Na=[1,1990],Aa=[1,1992],wa=[1,1993],Ra=[1,2e3],Ca=[1,2017],La=[14,78,83,250,339,343,639,798],Ia={trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,KEY:6,OPEN:7,CLOSE:8,SEPARATOR:9,NonReserved:10,LiteralWithSpaces:11,main:12,Statements:13,EOF:14,Statements_group0:15,AStatement:16,ExplainStatement:17,EXPLAIN:18,QUERY:19,PLAN:20,Statement:21,AlterTable:22,AttachDatabase:23,Call:24,CreateDatabase:25,CreateIndex:26,CreateGraph:27,CreateTable:28,CreateView:29,CreateEdge:30,CreateVertex:31,Declare:32,Delete:33,DetachDatabase:34,DropDatabase:35,DropIndex:36,DropTable:37,DropView:38,If:39,Insert:40,Merge:41,Reindex:42,RenameTable:43,Select:44,ShowCreateTable:45,ShowColumns:46,ShowDatabases:47,ShowIndex:48,ShowTables:49,TruncateTable:50,WithSelect:51,CreateTrigger:52,DropTrigger:53,BeginTransaction:54,CommitTransaction:55,RollbackTransaction:56,EndTransaction:57,UseDatabase:58,Update:59,JavaScript:60,Source:61,Assert:62,While:63,Continue:64,Break:65,BeginEnd:66,Print:67,Require:68,SetVariable:69,ExpressionStatement:70,AddRule:71,Query:72,Echo:73,CreateFunction:74,CreateAggregate:75,WITH:76,WithTablesList:77,COMMA:78,WithTable:79,RECURSIVE:80,AS:81,LPAR:82,RPAR:83,ColumnsList:84,SelectClause:85,Select_option0:86,IntoClause:87,FromClause:88,Select_option1:89,WhereClause:90,GroupClause:91,UnionClause:92,OrderClause:93,LimitClause:94,ParenthesizedSelect:95,SEARCH:96,Select_repetition0:97,Select_option2:98,SelectWithoutOrderOrLimit:99,SelectWithoutOrderOrLimit_option0:100,SelectWithoutOrderOrLimit_option1:101,PivotClause:102,PIVOT:103,Expression:104,FOR:105,PivotClause_option0:106,PivotClause_option1:107,UNPIVOT:108,IN:109,PivotClause_option2:110,PivotClause2:111,AsList:112,AsLiteral:113,AsPart:114,RemoveClause:115,REMOVE:116,RemoveClause_option0:117,RemoveColumnsList:118,RemoveColumn:119,Column:120,LIKE:121,StringValue:122,ArrowDot:123,ARROW:124,DOT:125,SearchSelector:126,ORDER:127,BY:128,OrderExpressionsList:129,SearchSelector_option0:130,DOTDOT:131,CARET:132,EQ:133,SearchSelector_repetition_plus0:134,SearchSelector_repetition_plus1:135,SearchSelector_option1:136,WHERE:137,OF:138,CLASS:139,NUMBER:140,STRING:141,SLASH:142,VERTEX:143,EDGE:144,EXCLAMATION:145,SHARP:146,MODULO:147,GT:148,LT:149,GTGT:150,LTLT:151,DOLLAR:152,Json:153,AT:154,SET:155,SetColumnsList:156,TO:157,VALUE:158,ROW:159,ExprList:160,COLON:161,PlusStar:162,NOT:163,SearchSelector_repetition2:164,IF:165,SearchSelector_repetition3:166,Aggregator:167,SearchSelector_repetition4:168,SearchSelector_group0:169,SearchSelector_repetition5:170,UNION:171,SearchSelectorList:172,ALL:173,SearchSelector_repetition6:174,ANY:175,SearchSelector_repetition7:176,INTERSECT:177,EXCEPT:178,AND:179,OR:180,PATH:181,RETURN:182,ResultColumns:183,REPEAT:184,SearchSelector_repetition8:185,SearchSelectorList_repetition0:186,SearchSelectorList_repetition1:187,PLUS:188,STAR:189,QUESTION:190,SearchFrom:191,FROM:192,SelectModifier:193,DISTINCT:194,TopClause:195,UNIQUE:196,SelectClause_option0:197,SELECT:198,COLUMN:199,MATRIX:200,TEXTSTRING:201,INDEX:202,RECORDSET:203,TOP:204,NumValue:205,TopClause_option0:206,INTO:207,Table:208,FuncValue:209,ParamValue:210,VarValue:211,FromTablesList:212,JoinTablesList:213,ApplyClause:214,CROSS:215,APPLY:216,OUTER:217,FromTable:218,FromTable_option0:219,FromTable_option1:220,FromTable_option2:221,FromTable_option3:222,INDEXED:223,FromTable_option4:224,FromTable_option5:225,FromTable_option6:226,FromString:227,FromTable_option7:228,INSERTED:229,FromTableAlias:230,TargetTable:231,JoinTable:232,JoinMode:233,JoinTableAs:234,OnClause:235,JoinTableAs_option0:236,JoinTableAs_option1:237,JoinTableAs_option2:238,JoinTableAs_option3:239,JoinTableAs_option4:240,JoinModeMode:241,NATURAL:242,JOIN:243,INNER:244,LEFT:245,RIGHT:246,FULL:247,SEMI:248,ANTI:249,ON:250,USING:251,GROUP:252,GroupExpressionsList:253,HavingClause:254,ROLLUP:255,CUBE:256,GroupExpression:257,GROUPING:258,HAVING:259,UnionOp:260,UnionableSelect:261,CORRESPONDING:262,OrderExpression:263,NullsOrder:264,NULLS:265,FIRST:266,LAST:267,DIRECTION:268,COLLATE:269,NOCASE:270,LIMIT:271,OffsetClause:272,OFFSET:273,LimitClause_option0:274,FETCH:275,LimitClause_option1:276,LimitClause_option2:277,LimitClause_option3:278,ResultColumn:279,Star:280,DELETED:281,AggrValue:282,Op:283,LogicValue:284,NullValue:285,ExistsValue:286,CaseValue:287,CastClause:288,ArrayValue:289,NewClause:290,Expression_group0:291,CURRENT_TIMESTAMP:292,CURRENT_DATE:293,JAVASCRIPT:294,CREATE:295,FUNCTION:296,AGGREGATE:297,NEW:298,CAST:299,ColumnType:300,CONVERT:301,PrimitiveValue:302,OverClause:303,GROUP_CONCAT:304,GroupConcatOrderClause:305,GroupConcatSeparatorClause:306,OVER:307,OverClause_option0:308,OverClause_option1:309,OverPartitionClause:310,PARTITION:311,OverOrderByClause:312,SUM:313,TOTAL:314,COUNT:315,MIN:316,MAX:317,AVG:318,AGGR:319,ARRAY:320,FuncValue_option0:321,REPLACE:322,DATEADD:323,DATEDIFF:324,TIMESTAMPDIFF:325,INTERVAL:326,TRUE:327,FALSE:328,NSTRING:329,NULL:330,EXISTS:331,ARRAYLBRA:332,RBRA:333,ParamValue_group0:334,BRAQUESTION:335,CASE:336,WhensList:337,ElseClause:338,END:339,When:340,WHEN:341,THEN:342,ELSE:343,REGEXP:344,TILDA:345,GLOB:346,ESCAPE:347,NOT_LIKE:348,BARBAR:349,MINUS:350,AMPERSAND:351,BAR:352,GE:353,LE:354,EQEQ:355,EQEQEQ:356,NE:357,NEEQEQ:358,NEEQEQEQ:359,CondOp:360,AllSome:361,ColFunc:362,BETWEEN:363,NOT_BETWEEN:364,IS:365,DOUBLECOLON:366,SOME:367,UPDATE:368,OutputClause:369,SetColumn:370,SetColumn_group0:371,DELETE:372,INSERT:373,Into:374,Values:375,ValuesListsList:376,IGNORE:377,DEFAULT:378,VALUES:379,ValuesList:380,Value:381,DateValue:382,TemporaryClause:383,TableClass:384,IfNotExists:385,CreateTableDefClause:386,CreateTableOptionsClause:387,TABLE:388,CreateTableOptions:389,CreateTableOption:390,IDENTITY:391,TEMP:392,ColumnDefsList:393,ConstraintsList:394,Constraint:395,ConstraintName:396,PrimaryKey:397,ForeignKey:398,UniqueKey:399,IndexKey:400,Check:401,CONSTRAINT:402,CHECK:403,PRIMARY:404,PrimaryKey_option0:405,ColsList:406,FOREIGN:407,REFERENCES:408,ForeignKey_option0:409,OnReferentialActions:410,ParColsList:411,OnDeleteClause:412,OnUpdateClause:413,ReferentialAction:414,CASCADE:415,RESTRICT:416,NO:417,ACTION:418,UniqueKey_option0:419,UniqueKey_option1:420,ColumnDef:421,ColumnConstraintsClause:422,ColumnConstraints:423,SingularColumnType:424,NumberMax:425,ENUM:426,MAXNUM:427,ColumnConstraintsList:428,ColumnConstraint:429,ParLiteral:430,ColumnConstraint_option0:431,ColumnConstraint_option1:432,DROP:433,DropTable_group0:434,IfExists:435,TablesList:436,ALTER:437,RENAME:438,ADD:439,MODIFY:440,ATTACH:441,DATABASE:442,DETACH:443,AsClause:444,USE:445,SHOW:446,VIEW:447,CreateView_option0:448,CreateView_option1:449,SubqueryRestriction:450,READ:451,ONLY:452,OPTION:453,SOURCE:454,ASSERT:455,JsonObject:456,ATLBRA:457,JsonArray:458,JsonValue:459,JsonPrimitiveValue:460,LCUR:461,JsonPropertiesList:462,RCUR:463,JsonElementsList:464,JsonProperty:465,COLONDASH:466,OnOff:467,SetPropsList:468,AtDollar:469,SetProp:470,OFF:471,COMMIT:472,TRANSACTION:473,ROLLBACK:474,BEGIN:475,ElseStatement:476,WHILE:477,CONTINUE:478,ITERATE:479,BREAK:480,LEAVE:481,PRINT:482,REQUIRE:483,StringValuesList:484,PluginsList:485,Plugin:486,ECHO:487,DECLARE:488,DeclaresList:489,DeclareItem:490,TRUNCATE:491,MERGE:492,MergeInto:493,MergeUsing:494,MergeOn:495,MergeMatchedList:496,MergeMatched:497,MergeNotMatched:498,MATCHED:499,MergeMatchedAction:500,MergeNotMatchedAction:501,TARGET:502,OUTPUT:503,CreateVertex_option0:504,CreateVertex_option1:505,CreateVertex_option2:506,CreateVertexSet:507,SharpValue:508,CONTENT:509,CreateEdge_option0:510,GRAPH:511,GraphList:512,GraphVertexEdge:513,GraphElement:514,GraphVertexEdge_option0:515,GraphVertexEdge_option1:516,GraphElementVar:517,GraphVertexEdge_option2:518,GraphVertexEdge_option3:519,GraphVertexEdge_option4:520,GraphVar:521,GraphAsClause:522,GraphAtClause:523,GraphElement2:524,GraphElement2_option0:525,GraphElement2_option1:526,GraphElement2_option2:527,GraphElement2_option3:528,GraphElement_option0:529,GraphElement_option1:530,GraphElement_option2:531,SharpLiteral:532,GraphElement_option3:533,GraphElement_option4:534,GraphElement_option5:535,ColonLiteral:536,DeleteVertex:537,DeleteVertex_option0:538,DeleteEdge:539,DeleteEdge_option0:540,DeleteEdge_option1:541,DeleteEdge_option2:542,Term:543,TermsList:544,QUESTIONDASH:545,CALL:546,TRIGGER:547,BeforeAfter:548,InsertDeleteUpdate:549,CreateTrigger_option0:550,CreateTrigger_option1:551,BEFORE:552,AFTER:553,INSTEAD:554,REINDEX:555,A:556,ABSENT:557,ABSOLUTE:558,ACCORDING:559,ADA:560,ADMIN:561,ALWAYS:562,ASC:563,ASSERTION:564,ASSIGNMENT:565,ATTRIBUTE:566,ATTRIBUTES:567,BASE64:568,BERNOULLI:569,BLOCKED:570,BOM:571,BREADTH:572,C:573,CATALOG:574,CATALOG_NAME:575,CHAIN:576,CHARACTERISTICS:577,CHARACTERS:578,CHARACTER_SET_CATALOG:579,CHARACTER_SET_NAME:580,CHARACTER_SET_SCHEMA:581,CLASS_ORIGIN:582,COBOL:583,COLLATION:584,COLLATION_CATALOG:585,COLLATION_NAME:586,COLLATION_SCHEMA:587,COLUMNS:588,COLUMN_NAME:589,COMMAND_FUNCTION:590,COMMAND_FUNCTION_CODE:591,COMMITTED:592,CONDITION_NUMBER:593,CONNECTION:594,CONNECTION_NAME:595,CONSTRAINTS:596,CONSTRAINT_CATALOG:597,CONSTRAINT_NAME:598,CONSTRAINT_SCHEMA:599,CONSTRUCTOR:600,CONTROL:601,CURSOR_NAME:602,DATA:603,DATETIME_INTERVAL_CODE:604,DATETIME_INTERVAL_PRECISION:605,DB:606,DEFAULTS:607,DEFERRABLE:608,DEFERRED:609,DEFINED:610,DEFINER:611,DEGREE:612,DEPTH:613,DERIVED:614,DESC:615,DESCRIPTOR:616,DIAGNOSTICS:617,DISPATCH:618,DOCUMENT:619,DOMAIN:620,DYNAMIC_FUNCTION:621,DYNAMIC_FUNCTION_CODE:622,EMPTY:623,ENCODING:624,ENFORCED:625,EXCLUDE:626,EXCLUDING:627,EXPRESSION:628,FILE:629,FINAL:630,FLAG:631,FOLLOWING:632,FORTRAN:633,FOUND:634,FS:635,G:636,GENERAL:637,GENERATED:638,GO:639,GOTO:640,GRANTED:641,HEX:642,HIERARCHY:643,ID:644,IMMEDIATE:645,IMMEDIATELY:646,IMPLEMENTATION:647,INCLUDING:648,INCREMENT:649,INDENT:650,INITIALLY:651,INPUT:652,INSTANCE:653,INSTANTIABLE:654,INTEGRITY:655,INVOKER:656,ISOLATION:657,K:658,KEY_MEMBER:659,KEY_TYPE:660,LENGTH:661,LEVEL:662,LIBRARY:663,LINK:664,LOCATION:665,LOCATOR:666,M:667,MAP:668,MAPPING:669,MAXVALUE:670,MESSAGE_LENGTH:671,MESSAGE_OCTET_LENGTH:672,MESSAGE_TEXT:673,MINVALUE:674,MORE:675,MUMPS:676,NAME:677,NAMES:678,NAMESPACE:679,NESTING:680,NEXT:681,NFC:682,NFD:683,NFKC:684,NFKD:685,NIL:686,NORMALIZED:687,NULLABLE:688,OBJECT:689,OCTETS:690,OPTIONS:691,ORDERING:692,ORDINALITY:693,OTHERS:694,OVERRIDING:695,P:696,PAD:697,PARAMETER_MODE:698,PARAMETER_NAME:699,PARAMETER_ORDINAL_POSITION:700,PARAMETER_SPECIFIC_CATALOG:701,PARAMETER_SPECIFIC_NAME:702,PARAMETER_SPECIFIC_SCHEMA:703,PARTIAL:704,PASCAL:705,PASSING:706,PASSTHROUGH:707,PERMISSION:708,PLACING:709,PLI:710,PRECEDING:711,PRESERVE:712,PRIOR:713,PRIVILEGES:714,PUBLIC:715,RECOVERY:716,RELATIVE:717,REPEATABLE:718,REQUIRING:719,RESPECT:720,RESTART:721,RESTORE:722,RETURNED_CARDINALITY:723,RETURNED_LENGTH:724,RETURNED_OCTET_LENGTH:725,RETURNED_SQLSTATE:726,RETURNING:727,ROLE:728,ROUTINE:729,ROUTINE_CATALOG:730,ROUTINE_NAME:731,ROUTINE_SCHEMA:732,ROW_COUNT:733,SCALE:734,SCHEMA:735,SCHEMA_NAME:736,SCOPE_CATALOG:737,SCOPE_NAME:738,SCOPE_SCHEMA:739,SECTION:740,SECURITY:741,SELECTIVE:742,SELF:743,SEQUENCE:744,SERIALIZABLE:745,SERVER:746,SERVER_NAME:747,SESSION:748,SETS:749,SIMPLE:750,SIZE:751,SPACE:752,SPECIFIC_NAME:753,STANDALONE:754,STATE:755,STATEMENT:756,STRIP:757,STRUCTURE:758,STYLE:759,SUBCLASS_ORIGIN:760,T:761,TABLE_NAME:762,TEMPORARY:763,TIES:764,TOKEN:765,TOP_LEVEL_COUNT:766,TRANSACTIONS_COMMITTED:767,TRANSACTIONS_ROLLED_BACK:768,TRANSACTION_ACTIVE:769,TRANSFORM:770,TRANSFORMS:771,TRIGGER_CATALOG:772,TRIGGER_NAME:773,TRIGGER_SCHEMA:774,TYPE:775,UNBOUNDED:776,UNCOMMITTED:777,UNDER:778,UNLINK:779,UNNAMED:780,UNTYPED:781,URI:782,USAGE:783,USER_DEFINED_TYPE_CATALOG:784,USER_DEFINED_TYPE_CODE:785,USER_DEFINED_TYPE_NAME:786,USER_DEFINED_TYPE_SCHEMA:787,VALID:788,VERSION:789,WHITESPACE:790,WORK:791,WRAPPER:792,WRITE:793,XMLDECLARATION:794,XMLSCHEMA:795,YES:796,ZONE:797,SEMICOLON:798,PERCENT:799,ROWS:800,FuncValue_option0_group0:801,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",6:"KEY",7:"OPEN",8:"CLOSE",9:"SEPARATOR",14:"EOF",18:"EXPLAIN",19:"QUERY",20:"PLAN",57:"EndTransaction",76:"WITH",78:"COMMA",80:"RECURSIVE",81:"AS",82:"LPAR",83:"RPAR",96:"SEARCH",103:"PIVOT",105:"FOR",108:"UNPIVOT",109:"IN",116:"REMOVE",121:"LIKE",124:"ARROW",125:"DOT",127:"ORDER",128:"BY",131:"DOTDOT",132:"CARET",133:"EQ",137:"WHERE",138:"OF",139:"CLASS",140:"NUMBER",141:"STRING",142:"SLASH",143:"VERTEX",144:"EDGE",145:"EXCLAMATION",146:"SHARP",147:"MODULO",148:"GT",149:"LT",150:"GTGT",151:"LTLT",152:"DOLLAR",154:"AT",155:"SET",157:"TO",158:"VALUE",159:"ROW",161:"COLON",163:"NOT",165:"IF",171:"UNION",173:"ALL",175:"ANY",177:"INTERSECT",178:"EXCEPT",179:"AND",180:"OR",181:"PATH",182:"RETURN",184:"REPEAT",188:"PLUS",189:"STAR",190:"QUESTION",192:"FROM",194:"DISTINCT",196:"UNIQUE",198:"SELECT",199:"COLUMN",200:"MATRIX",201:"TEXTSTRING",202:"INDEX",203:"RECORDSET",204:"TOP",207:"INTO",215:"CROSS",216:"APPLY",217:"OUTER",223:"INDEXED",229:"INSERTED",242:"NATURAL",243:"JOIN",244:"INNER",245:"LEFT",246:"RIGHT",247:"FULL",248:"SEMI",249:"ANTI",250:"ON",251:"USING",252:"GROUP",255:"ROLLUP",256:"CUBE",258:"GROUPING",259:"HAVING",262:"CORRESPONDING",265:"NULLS",266:"FIRST",267:"LAST",268:"DIRECTION",269:"COLLATE",270:"NOCASE",271:"LIMIT",273:"OFFSET",275:"FETCH",281:"DELETED",292:"CURRENT_TIMESTAMP",293:"CURRENT_DATE",294:"JAVASCRIPT",295:"CREATE",296:"FUNCTION",297:"AGGREGATE",298:"NEW",299:"CAST",301:"CONVERT",304:"GROUP_CONCAT",307:"OVER",311:"PARTITION",313:"SUM",314:"TOTAL",315:"COUNT",316:"MIN",317:"MAX",318:"AVG",319:"AGGR",320:"ARRAY",322:"REPLACE",323:"DATEADD",324:"DATEDIFF",325:"TIMESTAMPDIFF",326:"INTERVAL",327:"TRUE",328:"FALSE",329:"NSTRING",330:"NULL",331:"EXISTS",332:"ARRAYLBRA",333:"RBRA",335:"BRAQUESTION",336:"CASE",339:"END",341:"WHEN",342:"THEN",343:"ELSE",344:"REGEXP",345:"TILDA",346:"GLOB",347:"ESCAPE",348:"NOT_LIKE",349:"BARBAR",350:"MINUS",351:"AMPERSAND",352:"BAR",353:"GE",354:"LE",355:"EQEQ",356:"EQEQEQ",357:"NE",358:"NEEQEQ",359:"NEEQEQEQ",363:"BETWEEN",364:"NOT_BETWEEN",365:"IS",366:"DOUBLECOLON",367:"SOME",368:"UPDATE",372:"DELETE",373:"INSERT",377:"IGNORE",378:"DEFAULT",379:"VALUES",382:"DateValue",388:"TABLE",391:"IDENTITY",392:"TEMP",402:"CONSTRAINT",403:"CHECK",404:"PRIMARY",407:"FOREIGN",408:"REFERENCES",415:"CASCADE",416:"RESTRICT",417:"NO",418:"ACTION",423:"ColumnConstraints",426:"ENUM",427:"MAXNUM",433:"DROP",437:"ALTER",438:"RENAME",439:"ADD",440:"MODIFY",441:"ATTACH",442:"DATABASE",443:"DETACH",445:"USE",446:"SHOW",447:"VIEW",451:"READ",452:"ONLY",453:"OPTION",454:"SOURCE",455:"ASSERT",457:"ATLBRA",461:"LCUR",463:"RCUR",466:"COLONDASH",471:"OFF",472:"COMMIT",473:"TRANSACTION",474:"ROLLBACK",475:"BEGIN",477:"WHILE",478:"CONTINUE",479:"ITERATE",480:"BREAK",481:"LEAVE",482:"PRINT",483:"REQUIRE",487:"ECHO",488:"DECLARE",491:"TRUNCATE",492:"MERGE",499:"MATCHED",502:"TARGET",503:"OUTPUT",509:"CONTENT",511:"GRAPH",545:"QUESTIONDASH",546:"CALL",547:"TRIGGER",552:"BEFORE",553:"AFTER",554:"INSTEAD",555:"REINDEX",556:"A",557:"ABSENT",558:"ABSOLUTE",559:"ACCORDING",560:"ADA",561:"ADMIN",562:"ALWAYS",563:"ASC",564:"ASSERTION",565:"ASSIGNMENT",566:"ATTRIBUTE",567:"ATTRIBUTES",568:"BASE64",569:"BERNOULLI",570:"BLOCKED",571:"BOM",572:"BREADTH",573:"C",574:"CATALOG",575:"CATALOG_NAME",576:"CHAIN",577:"CHARACTERISTICS",578:"CHARACTERS",579:"CHARACTER_SET_CATALOG",580:"CHARACTER_SET_NAME",581:"CHARACTER_SET_SCHEMA",582:"CLASS_ORIGIN",583:"COBOL",584:"COLLATION",585:"COLLATION_CATALOG",586:"COLLATION_NAME",587:"COLLATION_SCHEMA",588:"COLUMNS",589:"COLUMN_NAME",590:"COMMAND_FUNCTION",591:"COMMAND_FUNCTION_CODE",592:"COMMITTED",593:"CONDITION_NUMBER",594:"CONNECTION",595:"CONNECTION_NAME",596:"CONSTRAINTS",597:"CONSTRAINT_CATALOG",598:"CONSTRAINT_NAME",599:"CONSTRAINT_SCHEMA",600:"CONSTRUCTOR",601:"CONTROL",602:"CURSOR_NAME",603:"DATA",604:"DATETIME_INTERVAL_CODE",605:"DATETIME_INTERVAL_PRECISION",606:"DB",607:"DEFAULTS",608:"DEFERRABLE",609:"DEFERRED",610:"DEFINED",611:"DEFINER",612:"DEGREE",613:"DEPTH",614:"DERIVED",615:"DESC",616:"DESCRIPTOR",617:"DIAGNOSTICS",618:"DISPATCH",619:"DOCUMENT",620:"DOMAIN",621:"DYNAMIC_FUNCTION",622:"DYNAMIC_FUNCTION_CODE",623:"EMPTY",624:"ENCODING",625:"ENFORCED",626:"EXCLUDE",627:"EXCLUDING",628:"EXPRESSION",629:"FILE",630:"FINAL",631:"FLAG",632:"FOLLOWING",633:"FORTRAN",634:"FOUND",635:"FS",636:"G",637:"GENERAL",638:"GENERATED",639:"GO",640:"GOTO",641:"GRANTED",642:"HEX",643:"HIERARCHY",644:"ID",645:"IMMEDIATE",646:"IMMEDIATELY",647:"IMPLEMENTATION",648:"INCLUDING",649:"INCREMENT",650:"INDENT",651:"INITIALLY",652:"INPUT",653:"INSTANCE",654:"INSTANTIABLE",655:"INTEGRITY",656:"INVOKER",657:"ISOLATION",658:"K",659:"KEY_MEMBER",660:"KEY_TYPE",661:"LENGTH",662:"LEVEL",663:"LIBRARY",664:"LINK",665:"LOCATION",666:"LOCATOR",667:"M",668:"MAP",669:"MAPPING",670:"MAXVALUE",671:"MESSAGE_LENGTH",672:"MESSAGE_OCTET_LENGTH",673:"MESSAGE_TEXT",674:"MINVALUE",675:"MORE",676:"MUMPS",677:"NAME",678:"NAMES",679:"NAMESPACE",680:"NESTING",681:"NEXT",682:"NFC",683:"NFD",684:"NFKC",685:"NFKD",686:"NIL",687:"NORMALIZED",688:"NULLABLE",689:"OBJECT",690:"OCTETS",691:"OPTIONS",692:"ORDERING",693:"ORDINALITY",694:"OTHERS",695:"OVERRIDING",696:"P",697:"PAD",698:"PARAMETER_MODE",699:"PARAMETER_NAME",700:"PARAMETER_ORDINAL_POSITION",701:"PARAMETER_SPECIFIC_CATALOG",702:"PARAMETER_SPECIFIC_NAME",703:"PARAMETER_SPECIFIC_SCHEMA",704:"PARTIAL",705:"PASCAL",706:"PASSING",707:"PASSTHROUGH",708:"PERMISSION",709:"PLACING",710:"PLI",711:"PRECEDING",712:"PRESERVE",713:"PRIOR",714:"PRIVILEGES",715:"PUBLIC",716:"RECOVERY",717:"RELATIVE",718:"REPEATABLE",719:"REQUIRING",720:"RESPECT",721:"RESTART",722:"RESTORE",723:"RETURNED_CARDINALITY",724:"RETURNED_LENGTH",725:"RETURNED_OCTET_LENGTH",726:"RETURNED_SQLSTATE",727:"RETURNING",728:"ROLE",729:"ROUTINE",730:"ROUTINE_CATALOG",731:"ROUTINE_NAME",732:"ROUTINE_SCHEMA",733:"ROW_COUNT",734:"SCALE",735:"SCHEMA",736:"SCHEMA_NAME",737:"SCOPE_CATALOG",738:"SCOPE_NAME",739:"SCOPE_SCHEMA",740:"SECTION",741:"SECURITY",742:"SELECTIVE",743:"SELF",744:"SEQUENCE",745:"SERIALIZABLE",746:"SERVER",747:"SERVER_NAME",748:"SESSION",749:"SETS",750:"SIMPLE",751:"SIZE",752:"SPACE",753:"SPECIFIC_NAME",754:"STANDALONE",755:"STATE",756:"STATEMENT",757:"STRIP",758:"STRUCTURE",759:"STYLE",760:"SUBCLASS_ORIGIN",761:"T",762:"TABLE_NAME",763:"TEMPORARY",764:"TIES",765:"TOKEN",766:"TOP_LEVEL_COUNT",767:"TRANSACTIONS_COMMITTED",768:"TRANSACTIONS_ROLLED_BACK",769:"TRANSACTION_ACTIVE",770:"TRANSFORM",771:"TRANSFORMS",772:"TRIGGER_CATALOG",773:"TRIGGER_NAME",774:"TRIGGER_SCHEMA",775:"TYPE",776:"UNBOUNDED",777:"UNCOMMITTED",778:"UNDER",779:"UNLINK",780:"UNNAMED",781:"UNTYPED",782:"URI",783:"USAGE",784:"USER_DEFINED_TYPE_CATALOG",785:"USER_DEFINED_TYPE_CODE",786:"USER_DEFINED_TYPE_NAME",787:"USER_DEFINED_TYPE_SCHEMA",788:"VALID",789:"VERSION",790:"WHITESPACE",791:"WORK",792:"WRAPPER",793:"WRITE",794:"XMLDECLARATION",795:"XMLSCHEMA",796:"YES",797:"ZONE",798:"SEMICOLON",799:"PERCENT",800:"ROWS"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,2],[11,1],[11,2],[12,2],[13,3],[13,1],[13,1],[17,2],[17,4],[16,1],[21,0],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[51,3],[77,3],[77,4],[77,1],[77,2],[79,5],[79,8],[44,10],[44,4],[44,4],[99,8],[95,3],[102,8],[102,11],[111,4],[113,2],[113,1],[112,3],[112,1],[114,1],[114,3],[115,3],[118,3],[118,1],[119,1],[119,2],[123,1],[123,1],[126,1],[126,5],[126,5],[126,1],[126,2],[126,1],[126,2],[126,2],[126,3],[126,4],[126,4],[126,4],[126,4],[126,4],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,2],[126,2],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,3],[126,4],[126,3],[126,1],[126,4],[126,2],[126,2],[126,4],[126,4],[126,4],[126,4],[126,4],[126,5],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,6],[172,3],[172,1],[162,1],[162,1],[162,1],[191,2],[85,4],[85,4],[85,4],[85,3],[193,1],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[195,3],[195,4],[195,0],[87,0],[87,2],[87,2],[87,2],[87,2],[87,2],[88,2],[88,3],[88,5],[88,5],[88,0],[214,6],[214,7],[214,6],[214,7],[212,1],[212,3],[218,4],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[218,2],[218,1],[230,1],[230,2],[227,1],[208,3],[208,1],[231,1],[231,1],[213,2],[213,2],[213,1],[213,1],[232,3],[234,2],[234,3],[234,2],[234,4],[234,2],[234,2],[233,1],[233,2],[241,1],[241,2],[241,2],[241,3],[241,2],[241,3],[241,2],[241,3],[241,2],[241,2],[241,2],[235,2],[235,2],[235,4],[235,0],[90,0],[90,2],[91,0],[91,4],[91,6],[91,6],[253,1],[253,3],[257,5],[257,4],[257,4],[257,1],[254,0],[254,2],[92,0],[92,2],[260,1],[260,2],[260,1],[260,1],[260,2],[260,3],[260,2],[260,2],[261,1],[261,1],[93,0],[93,3],[129,1],[129,3],[264,2],[264,2],[263,1],[263,2],[263,3],[263,3],[263,4],[94,0],[94,3],[94,8],[272,0],[272,2],[183,3],[183,1],[279,3],[279,2],[279,3],[279,2],[279,3],[279,2],[279,1],[280,5],[280,3],[280,3],[280,3],[280,1],[120,5],[120,3],[120,3],[120,3],[120,3],[120,4],[120,1],[120,1],[120,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,3],[104,3],[104,3],[104,1],[104,1],[104,1],[60,1],[74,5],[75,5],[290,2],[290,2],[288,6],[288,8],[288,6],[288,8],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[282,5],[282,6],[282,6],[282,6],[282,7],[303,0],[303,5],[310,3],[312,3],[305,0],[305,3],[306,0],[306,2],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[209,6],[209,4],[209,4],[209,4],[209,3],[209,8],[209,8],[209,8],[209,8],[209,8],[209,3],[160,1],[160,3],[205,1],[284,1],[284,1],[122,1],[122,1],[285,1],[211,2],[286,4],[289,3],[210,2],[210,2],[210,1],[210,1],[287,5],[287,4],[337,2],[337,1],[340,4],[338,2],[338,0],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,6],[283,6],[283,3],[283,3],[283,2],[283,2],[283,2],[283,2],[283,2],[283,3],[283,5],[283,6],[283,5],[283,6],[283,4],[283,5],[283,3],[283,4],[283,3],[283,4],[283,3],[283,3],[283,3],[283,3],[283,3],[362,1],[362,1],[362,4],[360,1],[360,1],[360,1],[360,1],[360,1],[360,1],[361,1],[361,1],[361,1],[59,7],[59,5],[156,1],[156,3],[370,3],[370,4],[33,6],[33,4],[40,6],[40,5],[40,7],[40,6],[40,10],[40,9],[40,6],[40,9],[40,8],[40,7],[40,6],[40,5],[40,6],[40,9],[40,8],[40,5],[40,7],[40,8],[40,6],[375,1],[375,1],[374,0],[374,1],[376,3],[376,1],[376,1],[376,5],[376,3],[376,3],[380,1],[380,3],[381,1],[381,1],[381,1],[381,1],[381,1],[381,1],[84,1],[84,3],[28,9],[28,5],[384,1],[384,1],[387,0],[387,1],[389,2],[389,1],[390,1],[390,3],[390,3],[390,3],[383,0],[383,1],[385,0],[385,3],[386,3],[386,1],[386,2],[394,1],[394,3],[395,2],[395,2],[395,2],[395,2],[395,2],[396,0],[396,2],[401,4],[397,6],[398,9],[411,3],[410,0],[410,1],[410,1],[410,2],[410,2],[412,3],[413,3],[414,1],[414,2],[414,2],[414,1],[414,2],[399,6],[400,5],[406,1],[406,1],[406,3],[406,3],[393,1],[393,3],[421,3],[421,2],[421,1],[424,6],[424,4],[424,1],[424,4],[300,2],[300,1],[425,1],[425,1],[422,0],[422,1],[428,2],[428,1],[430,3],[429,2],[429,6],[429,4],[429,6],[429,1],[429,2],[429,4],[429,2],[429,1],[429,2],[429,1],[429,1],[429,3],[429,5],[37,4],[436,3],[436,1],[435,0],[435,2],[22,6],[22,6],[22,6],[22,8],[22,6],[43,5],[23,4],[23,7],[23,6],[23,9],[34,3],[25,4],[25,6],[25,9],[25,6],[444,0],[444,2],[58,3],[58,2],[35,4],[35,5],[35,5],[26,8],[26,9],[36,3],[47,2],[47,4],[47,3],[47,5],[49,2],[49,4],[49,4],[49,6],[46,4],[46,6],[48,4],[48,6],[45,4],[45,6],[29,11],[29,8],[450,3],[450,3],[450,5],[38,4],[70,2],[61,2],[62,2],[62,2],[62,4],[153,4],[153,2],[153,2],[153,2],[153,2],[153,1],[153,2],[153,2],[459,1],[459,1],[460,1],[460,2],[460,1],[460,1],[460,1],[460,1],[460,1],[460,1],[460,3],[456,3],[456,4],[456,2],[458,2],[458,3],[458,1],[462,3],[462,1],[465,3],[465,3],[465,3],[465,3],[465,3],[465,3],[464,3],[464,1],[69,4],[69,3],[69,4],[69,5],[69,5],[69,6],[469,1],[469,1],[468,3],[468,2],[470,1],[470,1],[470,3],[467,1],[467,1],[55,2],[56,2],[54,2],[39,4],[39,3],[476,2],[63,3],[64,1],[64,1],[65,1],[65,1],[66,3],[67,2],[67,2],[68,2],[68,2],[486,1],[486,1],[73,2],[484,3],[484,1],[485,3],[485,1],[32,2],[489,1],[489,3],[490,3],[490,4],[490,5],[490,6],[50,3],[41,6],[493,1],[493,2],[494,2],[494,4],[495,2],[496,2],[496,2],[496,1],[496,1],[497,4],[497,6],[500,1],[500,3],[498,5],[498,7],[498,7],[498,9],[498,7],[498,9],[501,3],[501,6],[501,3],[501,6],[369,0],[369,2],[369,5],[369,4],[369,7],[31,6],[508,2],[507,0],[507,2],[507,2],[507,1],[30,8],[27,3],[27,4],[512,3],[512,1],[513,3],[513,7],[513,6],[513,3],[513,4],[517,1],[517,1],[521,2],[522,3],[523,2],[524,4],[514,4],[514,3],[514,2],[514,1],[536,2],[532,2],[532,2],[537,4],[539,6],[71,3],[71,2],[544,3],[544,1],[543,1],[543,4],[72,2],[24,2],[52,9],[52,8],[52,9],[548,0],[548,1],[548,1],[548,1],[548,2],[549,1],[549,1],[549,1],[53,3],[42,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[15,1],[15,1],[86,0],[86,1],[89,0],[89,1],[97,0],[97,2],[98,0],[98,1],[100,0],[100,1],[101,0],[101,1],[106,0],[106,1],[107,0],[107,1],[110,0],[110,1],[117,0],[117,1],[130,0],[130,1],[134,1],[134,2],[135,1],[135,2],[136,0],[136,1],[164,0],[164,2],[166,0],[166,2],[168,0],[168,2],[169,1],[169,1],[170,0],[170,2],[174,0],[174,2],[176,0],[176,2],[185,0],[185,2],[186,0],[186,2],[187,0],[187,2],[197,0],[197,1],[206,0],[206,1],[219,0],[219,1],[220,0],[220,1],[221,0],[221,1],[222,0],[222,1],[224,0],[224,1],[225,0],[225,1],[226,0],[226,1],[228,0],[228,1],[236,0],[236,1],[237,0],[237,1],[238,0],[238,1],[239,0],[239,1],[240,0],[240,1],[274,0],[274,1],[276,0],[276,1],[277,0],[277,1],[278,0],[278,1],[291,1],[291,1],[308,0],[308,1],[309,0],[309,1],[801,1],[801,1],[321,0],[321,1],[334,1],[334,1],[371,1],[371,1],[405,0],[405,1],[409,0],[409,1],[419,0],[419,1],[420,0],[420,1],[431,0],[431,1],[432,0],[432,1],[434,1],[434,1],[448,0],[448,1],[449,0],[449,1],[504,0],[504,1],[505,0],[505,1],[506,0],[506,1],[510,0],[510,1],[515,0],[515,1],[516,0],[516,1],[518,0],[518,1],[519,0],[519,1],[520,0],[520,1],[525,0],[525,1],[526,0],[526,1],[527,0],[527,1],[528,0],[528,1],[529,0],[529,1],[530,0],[530,1],[531,0],[531,1],[533,0],[533,1],[534,0],[534,1],[535,0],[535,1],[538,0],[538,2],[540,0],[540,2],[541,0],[541,2],[542,0],[542,2],[550,0],[550,1],[551,0],[551,1]],performAction:function(t,e,r,n,i,s,a){var l=s.length-1;switch(i){case 1:o.options.casesensitive?this.$=s[l]:this.$=s[l].toLowerCase();break;case 2:this.$=g(s[l].substr(1,s[l].length-2));break;case 3:case 4:case 5:case 6:case 7:this.$=s[l].toLowerCase();break;case 8:case 87:case 88:case 96:case 157:case 199:case 200:case 204:case 205:case 245:case 284:case 299:case 300:case 301:case 302:case 303:case 304:case 305:case 306:case 307:case 308:case 309:case 310:case 311:case 312:case 315:case 316:case 332:case 333:case 334:case 335:case 336:case 337:case 350:case 395:case 461:case 462:case 463:case 464:case 465:case 466:case 544:case 577:case 581:case 583:case 658:case 659:case 660:case 661:case 662:case 663:case 668:case 670:case 671:case 680:case 699:case 700:case 765:case 780:case 781:case 783:case 784:case 790:case 791:case 320:case 458:case 459:case 554:case 555:case 709:this.$=s[l];break;case 9:this.$=s[l]?s[l-1]+" "+s[l]:s[l-1];break;case 10:return new n.Statements({statements:s[l-1]});case 11:this.$=s[l-2],s[l]&&s[l-2].push(s[l]);break;case 12:case 13:case 75:case 90:case 95:case 153:case 188:case 208:case 209:case 240:case 262:case 277:case 375:case 393:case 472:case 502:case 503:case 507:case 515:case 563:case 564:case 601:case 688:case 698:case 724:case 726:case 728:case 743:case 744:case 774:case 798:case 536:case 567:case 1113:case 1115:this.$=[s[l]];break;case 14:case 15:this.$=s[l],s[l].explain=!0;break;case 16:this.$=s[l],n.exists&&(this.$.exists=n.exists),delete n.exists,n.queries&&(this.$.queries=n.queries),delete n.queries;break;case 17:case 172:case 183:case 233:case 234:case 236:case 246:case 248:case 260:case 271:case 274:case 345:case 349:case 351:case 396:case 519:case 529:case 531:case 543:case 602:case 173:case 766:case 580:case 619:this.$=void 0;break;case 72:this.$=new n.WithSelect({withs:s[l-1],select:s[l]});break;case 73:case 600:case 276:case 537:case 568:case 687:case 697:case 723:case 725:case 729:case 376:s[l-2].push(s[l]),this.$=s[l-2];break;case 74:s[l].recursive=!0,s[l-3].push(s[l]),this.$=s[l-3];break;case 76:s[l].recursive=!0,this.$=[s[l]];break;case 77:this.$={name:s[l-4],select:s[l-1]};break;case 78:this.$={name:s[l-7],columns:s[l-5],select:s[l-1]};break;case 79:n.extend(this.$,s[l-9]),n.extend(this.$,s[l-8]),n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-9],n.exists&&(this.$.exists=n.exists.slice());break;case 80:n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-3],n.exists&&(this.$.exists=n.exists.slice());break;case 81:this.$=new n.Search({selectors:s[l-2],from:s[l]}),n.extend(this.$,s[l-1]);break;case 82:n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-7],n.exists&&(this.$.exists=n.exists.slice());break;case 83:case 86:case 548:case 584:case 620:case 654:case 672:case 673:case 676:case 701:case 460:this.$=s[l-1];break;case 84:this.$={pivot:{expr:s[l-5],columnid:s[l-3],inlist:s[l-2],as:s[l]}};break;case 85:this.$={unpivot:{tocolumnid:s[l-8],forcolumnid:s[l-6],inlist:s[l-3],as:s[l]}};break;case 89:case 94:case 773:case 797:case 152:this.$=s[l-2],this.$.push(s[l]);break;case 91:this.$={expr:s[l]};break;case 92:this.$={expr:s[l-2],as:s[l]};break;case 93:this.$={removecolumns:s[l]};break;case 97:this.$={like:s[l]};break;case 100:case 114:this.$={srchid:"PROP",args:[s[l]]};break;case 101:this.$={srchid:"ORDERBY",args:s[l-1]};break;case 102:var u=s[l-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new n.Column({columnid:"_"}),direction:u}]};break;case 103:this.$={srchid:"PARENT"};break;case 104:this.$={srchid:"APROP",args:[s[l]]};break;case 105:this.$={selid:"ROOT"};break;case 106:this.$={srchid:"EQ",args:[s[l]]};break;case 107:this.$={srchid:"LIKE",args:[s[l]]};break;case 108:case 109:this.$={selid:"WITH",args:s[l-1]};break;case 110:this.$={srchid:s[l-3].toUpperCase(),args:s[l-1]};break;case 111:this.$={srchid:"WHERE",args:[s[l-1]]};break;case 112:this.$={selid:"OF",args:[s[l-1]]};break;case 113:this.$={srchid:"CLASS",args:[s[l-1]]};break;case 115:this.$={srchid:"NAME",args:[s[l].substr(1,s[l].length-2)]};break;case 116:this.$={srchid:"CHILD"};break;case 117:this.$={srchid:"VERTEX"};break;case 118:this.$={srchid:"EDGE"};break;case 119:this.$={srchid:"REF"};break;case 120:this.$={srchid:"SHARP",args:[s[l]]};break;case 121:this.$={srchid:"ATTR",args:typeof s[l]>"u"?void 0:[s[l]]};break;case 122:this.$={srchid:"ATTR"};break;case 123:this.$={srchid:"OUT"};break;case 124:this.$={srchid:"IN"};break;case 125:this.$={srchid:"OUTOUT"};break;case 126:this.$={srchid:"ININ"};break;case 127:this.$={srchid:"CONTENT"};break;case 128:this.$={srchid:"EX",args:[new n.Json({value:s[l]})]};break;case 129:this.$={srchid:"AT",args:[s[l]]};break;case 130:this.$={srchid:"AS",args:[s[l]]};break;case 131:this.$={srchid:"SET",args:s[l-1]};break;case 132:this.$={selid:"TO",args:[s[l]]};break;case 133:this.$={srchid:"VALUE"};break;case 134:this.$={srchid:"ROW",args:s[l-1]};break;case 135:this.$={srchid:"CLASS",args:[s[l]]};break;case 136:this.$={selid:s[l],args:[s[l-1]]};break;case 137:this.$={selid:"NOT",args:s[l-1]};break;case 138:this.$={selid:"IF",args:s[l-1]};break;case 139:this.$={selid:s[l-3],args:s[l-1]};break;case 140:this.$={selid:"DISTINCT",args:s[l-1]};break;case 141:this.$={selid:"UNION",args:s[l-1]};break;case 142:this.$={selid:"UNIONALL",args:s[l-1]};break;case 143:this.$={selid:"ALL",args:[s[l-1]]};break;case 144:this.$={selid:"ANY",args:[s[l-1]]};break;case 145:this.$={selid:"INTERSECT",args:s[l-1]};break;case 146:this.$={selid:"EXCEPT",args:s[l-1]};break;case 147:this.$={selid:"AND",args:s[l-1]};break;case 148:this.$={selid:"OR",args:s[l-1]};break;case 149:this.$={selid:"PATH",args:[s[l-1]]};break;case 150:this.$={srchid:"RETURN",args:s[l-1]};break;case 151:this.$={selid:"REPEAT",sels:s[l-3],args:s[l-1]};break;case 154:this.$="PLUS";break;case 155:this.$="STAR";break;case 156:this.$="QUESTION";break;case 158:case 159:this.$=new n.Select({columns:s[l],distinct:!0}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-1]);break;case 160:this.$=new n.Select({columns:s[l],all:!0}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-1]);break;case 161:s[l]?(this.$=new n.Select({columns:s[l]}),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1])):this.$=new n.Select({columns:[new n.Column({columnid:"_"})],modifier:"COLUMN"});break;case 162:"SELECT"==s[l]?this.$=void 0:this.$={modifier:s[l]};break;case 163:this.$={modifier:"VALUE"};break;case 164:this.$={modifier:"ROW"};break;case 165:this.$={modifier:"COLUMN"};break;case 166:this.$={modifier:"MATRIX"};break;case 167:this.$={modifier:"TEXTSTRING"};break;case 168:this.$={modifier:"INDEX"};break;case 169:this.$={modifier:"RECORDSET"};break;case 170:this.$={top:s[l-1],percent:typeof s[l]<"u"||void 0};break;case 171:this.$={top:s[l-1]};break;case 174:case 175:case 176:case 177:case 736:case 737:this.$={into:s[l]};break;case 178:var c=(p=(p=s[l]).substr(1,p.length-2)).substr(-3).toUpperCase(),h=p.substr(-4).toUpperCase();"#"==p[0]?this.$={into:new n.FuncValue({funcid:"HTML",args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}:"XLS"==c||"CSV"==c||"TAB"==c?this.$={into:new n.FuncValue({funcid:c,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new n.FuncValue({funcid:h,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})});break;case 179:this.$={from:s[l]};break;case 180:this.$={from:s[l-1],joins:s[l]};break;case 181:var d=s[l-2];s[l].forEach((t=>{var e=new n.Join({joinmode:"CROSS"});t.tableid?e.table=new n.Table({databaseid:t.databaseid,tableid:t.tableid}):t instanceof n.Select?e.select=t:t instanceof n.Search?e.search=t:t instanceof n.ParamValue?e.param=t:t instanceof n.VarValue?e.variable=t.variable:t instanceof n.FuncValue?e.func=t:t instanceof n.Json&&(e.json=t),t.as&&(e.as=t.as),d.push(e)})),this.$={from:s[l-3],joins:d};break;case 182:this.$={from:s[l-2],joins:s[l-1]};break;case 184:this.$=new n.Apply({select:s[l-2],applymode:"CROSS",as:s[l]});break;case 185:this.$=new n.Apply({select:s[l-3],applymode:"CROSS",as:s[l]});break;case 186:this.$=new n.Apply({select:s[l-2],applymode:"OUTER",as:s[l]});break;case 187:this.$=new n.Apply({select:s[l-3],applymode:"OUTER",as:s[l]});break;case 189:case 241:case 473:case 565:case 566:case 263:case 505:case 506:case 508:case 516:this.$=s[l-2],s[l-2].push(s[l]);break;case 190:this.$=s[l-2],this.$.as=s[l]||"default";break;case 191:this.$=new n.Json({value:s[l-2]}),s[l-2].as=s[l];break;case 192:this.$=s[l-1],s[l]&&(s[l-1].as=s[l]);break;case 193:case 674:case 677:this.$=s[l-2];break;case 194:case 195:case 196:case 197:this.$=s[l-1],s[l-1].as=s[l]||"default";break;case 198:this.$={inserted:!0};break;case 201:var p,f;if(c=(p=(p=s[l]).substr(1,p.length-2)).substr(-3).toUpperCase(),h=p.substr(-4).toUpperCase(),"#"==p[0])f=new n.FuncValue({funcid:"HTML",args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]});else if("XLS"==c||"CSV"==c||"TAB"==c)f=new n.FuncValue({funcid:c,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");f=new n.FuncValue({funcid:h,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}this.$=f;break;case 202:"INFORMATION_SCHEMA"==s[l-2]?this.$=new n.FuncValue({funcid:s[l-2],args:[new n.StringValue({value:s[l]})]}):this.$=new n.Table({databaseid:s[l-2],tableid:s[l]});break;case 203:this.$=new n.Table({tableid:s[l]});break;case 206:case 207:this.$=s[l-1],s[l-1].push(s[l]);break;case 210:this.$=new n.Join(s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]);break;case 211:this.$={table:s[l-1]},s[l]&&(this.$.as=s[l]);break;case 212:this.$={json:new n.Json({value:s[l-2],as:s[l]})};break;case 213:this.$={param:s[l-1],as:s[l]};break;case 214:this.$={select:s[l-2],as:s[l]};break;case 215:this.$={func:s[l-1],as:s[l]||"default"};break;case 216:this.$={variable:s[l-1],as:s[l]||"default"};break;case 217:this.$={joinmode:s[l]};break;case 218:this.$={joinmode:s[l-1],natural:!0};break;case 219:case 220:this.$="INNER";break;case 221:case 222:this.$="LEFT";break;case 223:case 224:this.$="RIGHT";break;case 225:case 226:this.$="OUTER";break;case 227:this.$="SEMI";break;case 228:this.$="ANTI";break;case 229:this.$="CROSS";break;case 230:case 740:this.$={on:s[l]};break;case 231:case 738:this.$={using:s[l]};break;case 232:case 739:this.$={using:s[l-1]};break;case 235:this.$={where:new n.Expression({expression:s[l]})};break;case 237:this.$={group:s[l-1]},n.extend(this.$,s[l]);break;case 238:this.$={group:[new n.GroupExpression({type:"ROLLUP",group:s[l-3]})]},n.extend(this.$,s[l]);break;case 239:this.$={group:[new n.GroupExpression({type:"CUBE",group:s[l-3]})]},n.extend(this.$,s[l]);break;case 242:this.$=new n.GroupExpression({type:"GROUPING SETS",group:s[l-1]});break;case 243:this.$=new n.GroupExpression({type:"ROLLUP",group:s[l-1]});break;case 244:this.$=new n.GroupExpression({type:"CUBE",group:s[l-1]});break;case 247:this.$={having:s[l]};break;case 249:this.$={},this.$[s[l-1].op]=s[l],s[l-1].corresponding&&(this.$.corresponding=!0);break;case 250:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"union"};break;case 251:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"unionall"};break;case 252:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"except"};break;case 253:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"intersect"};break;case 254:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"union",corresponding:!0};break;case 255:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"unionall",corresponding:!0};break;case 256:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"except",corresponding:!0};break;case 257:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"intersect",corresponding:!0};break;case 258:case 259:n.queriesStack&&n.queriesStack.length>0&&(n.queries&&n.queries.length>0&&(s[l].queries=n.queries),n.queries=n.queriesStack.pop()),this.$=s[l];break;case 261:case 348:this.$={order:s[l]};break;case 264:this.$={nullsOrder:"FIRST"};break;case 265:this.$={nullsOrder:"LAST"};break;case 266:this.$=new n.Expression({expression:s[l],direction:"ASC"});break;case 267:this.$=new n.Expression({expression:s[l-1],direction:s[l].toUpperCase()});break;case 268:this.$=new n.Expression({expression:s[l-2],direction:s[l-1].toUpperCase()}),n.extend(this.$,s[l]);break;case 269:this.$=new n.Expression({expression:s[l-2],direction:"ASC",nocase:!0});break;case 270:this.$=new n.Expression({expression:s[l-3],direction:s[l].toUpperCase(),nocase:!0});break;case 272:this.$={limit:s[l-1]},n.extend(this.$,s[l]);break;case 273:this.$={limit:s[l-2],offset:s[l-6]};break;case 275:this.$={offset:s[l]};break;case 278:case 280:s[l-2].as=s[l],this.$=s[l-2];break;case 279:case 281:s[l-1].as=s[l],this.$=s[l-1];break;case 282:s[l-2].as=s[l].value,this.$=s[l-2];break;case 283:s[l-1].as=s[l].value,this.$=s[l-1];break;case 285:this.$=new n.Column({columid:s[l],tableid:s[l-2],databaseid:s[l-4]});break;case 286:case 293:case 294:this.$=new n.Column({columnid:s[l],tableid:s[l-2]});break;case 287:case 291:this.$=new n.Column({columnid:s[l],tableid:"INSERTED"});break;case 288:case 292:this.$=new n.Column({columnid:s[l],tableid:"DELETED"});break;case 289:case 298:this.$=new n.Column({columnid:s[l]});break;case 290:this.$=new n.Column({columnid:s[l],tableid:s[l-2],databaseid:s[l-4]});break;case 295:this.$=new n.Column({columnid:"@"+s[l],tableid:s[l-3]});break;case 296:this.$=new n.Column({columnid:"inserted"});break;case 297:this.$=new n.Column({columnid:"deleted"});break;case 313:this.$=new n.DomainValueValue;break;case 314:this.$=new n.Json({value:s[l]});break;case 317:case 318:case 319:n.queries||(n.queries=[]),n.queries.push(s[l-1]),s[l-1].queriesidx=n.queries.length,this.$=s[l-1];break;case 321:case 338:this.$=new n.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 322:case 339:this.$=new n.FuncValue({funcid:"CURRENT_DATE"});break;case 323:this.$=new n.JavaScript({value:s[l].substr(2,s[l].length-4)});break;case 324:this.$=new n.JavaScript({value:'alasql.fn["'+s[l-2]+'"] = '+s[l].substr(2,s[l].length-4)});break;case 325:this.$=new n.JavaScript({value:'alasql.aggr["'+s[l-2]+'"] = '+s[l].substr(2,s[l].length-4)});break;case 326:this.$=new n.FuncValue({funcid:s[l],newid:!0});break;case 327:this.$=s[l],n.extend(this.$,{newid:!0});break;case 328:this.$=new n.Convert({expression:s[l-3]}),n.extend(this.$,s[l-1]);break;case 329:this.$=new n.Convert({expression:s[l-5],style:s[l-1]}),n.extend(this.$,s[l-3]);break;case 330:this.$=new n.Convert({expression:s[l-1]}),n.extend(this.$,s[l-3]);break;case 331:this.$=new n.Convert({expression:s[l-3],style:s[l-1]}),n.extend(this.$,s[l-5]);break;case 340:s[l-2].length>1&&("MAX"==s[l-4].toUpperCase()||"MIN"==s[l-4].toUpperCase())?this.$=new n.FuncValue({funcid:s[l-4],args:s[l-2]}):this.$=new n.AggrValue({aggregatorid:s[l-4].toUpperCase(),expression:s[l-2].pop(),over:s[l]});break;case 341:this.$=new n.AggrValue({aggregatorid:s[l-5].toUpperCase(),expression:s[l-2],distinct:!0,over:s[l]});break;case 342:this.$=new n.AggrValue({aggregatorid:s[l-5].toUpperCase(),expression:s[l-2],over:s[l]});break;case 343:this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:s[l-3],order:s[l-2],separator:s[l-1]});break;case 344:this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:s[l-3],distinct:!0,order:s[l-2],separator:s[l-1]});break;case 346:this.$=new n.Over,n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]);break;case 347:this.$={partition:s[l]};break;case 352:var m=s[l].substring(1,s[l].length-1);m=m.replace(/\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\r/g,"\r").replace(/\\\\/g,"\\"),this.$=m;break;case 353:this.$="SUM";break;case 354:this.$="TOTAL";break;case 355:this.$="COUNT";break;case 356:this.$="MIN";break;case 357:case 579:this.$="MAX";break;case 358:this.$="AVG";break;case 359:this.$="FIRST";break;case 360:this.$="LAST";break;case 361:this.$="AGGR";break;case 362:this.$="ARRAY";break;case 363:this.$="GROUP_CONCAT";break;case 364:var y=s[l-5],_=s[l-2];_.length>1&&("MIN"==y.toUpperCase()||"MAX"==y.toUpperCase())?this.$=new n.FuncValue({funcid:y,args:_,over:s[l]}):o.aggr[s[l-5]]?this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:y,expression:_[0],args:_,distinct:"DISTINCT"==s[l-3],over:s[l]}):this.$=new n.FuncValue({funcid:y,args:_,over:s[l]});break;case 365:this.$=new n.FuncValue({funcid:s[l-3],over:s[l]});break;case 366:this.$=new n.FuncValue({funcid:"IIF",args:s[l-1]});break;case 367:this.$=new n.FuncValue({funcid:"REPLACE",args:s[l-1]});break;case 368:this.$=new n.FuncValue({funcid:s[l-2]});break;case 369:this.$=new n.FuncValue({funcid:"DATEADD",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 370:this.$=new n.FuncValue({funcid:"DATEADD",args:[s[l-5],s[l-3],s[l-1]]});break;case 371:this.$=new n.FuncValue({funcid:"DATEDIFF",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 372:this.$=new n.FuncValue({funcid:"DATEDIFF",args:[s[l-5],s[l-3],s[l-1]]});break;case 373:this.$=new n.FuncValue({funcid:"TIMESTAMPDIFF",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 374:this.$=new n.FuncValue({funcid:"INTERVAL",args:[s[l-1],new n.StringValue({value:s[l].toLowerCase()})]});break;case 377:this.$=new n.NumValue({value:+s[l]});break;case 378:this.$=new n.LogicValue({value:!0});break;case 379:this.$=new n.LogicValue({value:!1});break;case 380:this.$=new n.StringValue({value:s[l].substr(1,s[l].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 381:this.$=new n.StringValue({value:s[l].substr(2,s[l].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 382:this.$=new n.NullValue({value:void 0});break;case 383:this.$=new n.VarValue({variable:s[l]});break;case 384:n.exists||(n.exists=[]),this.$=new n.ExistsValue({value:s[l-1],existsidx:n.exists.length}),n.exists.push(s[l-1]);break;case 385:this.$=new n.ArrayValue({value:s[l-1]});break;case 386:case 387:this.$=new n.ParamValue({param:s[l]});break;case 388:typeof n.question>"u"&&(n.question=0),this.$=new n.ParamValue({param:n.question++});break;case 389:typeof n.question>"u"&&(n.question=0),this.$=new n.ParamValue({param:n.question++,array:!0});break;case 390:this.$=new n.CaseValue({expression:s[l-3],whens:s[l-2],elses:s[l-1]});break;case 391:this.$=new n.CaseValue({whens:s[l-2],elses:s[l-1]});break;case 392:case 741:case 742:this.$=s[l-1],this.$.push(s[l]);break;case 394:this.$={when:s[l-2],then:s[l]};break;case 397:case 398:this.$=new n.Op({left:s[l-2],op:"REGEXP",right:s[l]});break;case 399:this.$=new n.Op({left:s[l-2],op:"GLOB",right:s[l]});break;case 400:this.$=new n.Op({left:s[l-2],op:"LIKE",right:s[l]});break;case 401:this.$=new n.Op({left:s[l-4],op:"LIKE",right:s[l-2],escape:s[l]});break;case 402:this.$=new n.Op({left:s[l-2],op:"NOT LIKE",right:s[l]});break;case 403:this.$=new n.Op({left:s[l-4],op:"NOT LIKE",right:s[l-2],escape:s[l]});break;case 404:this.$=new n.Op({left:s[l-2],op:"||",right:s[l]});break;case 405:this.$=new n.Op({left:s[l-2],op:"+",right:s[l]});break;case 406:this.$=new n.Op({left:s[l-2],op:"-",right:s[l]});break;case 407:this.$=new n.Op({left:s[l-2],op:"*",right:s[l]});break;case 408:this.$=new n.Op({left:s[l-2],op:"/",right:s[l]});break;case 409:this.$=new n.Op({left:s[l-2],op:"%",right:s[l]});break;case 410:this.$=new n.Op({left:s[l-2],op:"^",right:s[l]});break;case 411:this.$=new n.Op({left:s[l-2],op:">>",right:s[l]});break;case 412:this.$=new n.Op({left:s[l-2],op:"<<",right:s[l]});break;case 413:this.$=new n.Op({left:s[l-2],op:"&",right:s[l]});break;case 414:this.$=new n.Op({left:s[l-2],op:"|",right:s[l]});break;case 415:case 416:case 418:this.$=new n.Op({left:s[l-2],op:"->",right:s[l]});break;case 417:this.$=new n.Op({left:s[l-4],op:"->",right:s[l-1]});break;case 419:case 420:case 422:this.$=new n.Op({left:s[l-2],op:"!",right:s[l]});break;case 421:this.$=new n.Op({left:s[l-4],op:"!",right:s[l-1]});break;case 423:this.$=new n.Op({left:s[l-2],op:">",right:s[l]});break;case 424:this.$=new n.Op({left:s[l-2],op:">=",right:s[l]});break;case 425:this.$=new n.Op({left:s[l-2],op:"<",right:s[l]});break;case 426:this.$=new n.Op({left:s[l-2],op:"<=",right:s[l]});break;case 427:this.$=new n.Op({left:s[l-2],op:"=",right:s[l]});break;case 428:this.$=new n.Op({left:s[l-2],op:"==",right:s[l]});break;case 429:this.$=new n.Op({left:s[l-2],op:"===",right:s[l]});break;case 430:this.$=new n.Op({left:s[l-2],op:"!=",right:s[l]});break;case 431:this.$=new n.Op({left:s[l-2],op:"!==",right:s[l]});break;case 432:this.$=new n.Op({left:s[l-2],op:"!===",right:s[l]});break;case 433:n.queries||(n.queries=[]);var v=n.queries.slice();n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-5],op:s[l-4],allsome:s[l-3],right:s[l-1],queriesidx:n.queries.length-1});break;case 434:this.$=new n.Op({left:s[l-5],op:s[l-4],allsome:s[l-3],right:s[l-1]});break;case 435:"BETWEEN1"==s[l-2].op?"AND"==s[l-2].left.op?this.$=new n.Op({left:s[l-2].left.left,op:"AND",right:new n.Op({left:s[l-2].left.right,op:"BETWEEN",right1:s[l-2].right,right2:s[l]})}):this.$=new n.Op({left:s[l-2].left,op:"BETWEEN",right1:s[l-2].right,right2:s[l]}):"NOT BETWEEN1"==s[l-2].op?"AND"==s[l-2].left.op?this.$=new n.Op({left:s[l-2].left.left,op:"AND",right:new n.Op({left:s[l-2].left.right,op:"NOT BETWEEN",right1:s[l-2].right,right2:s[l]})}):this.$=new n.Op({left:s[l-2].left,op:"NOT BETWEEN",right1:s[l-2].right,right2:s[l]}):this.$=new n.Op({left:s[l-2],op:"AND",right:s[l]});break;case 436:this.$=new n.Op({left:s[l-2],op:"OR",right:s[l]});break;case 437:this.$=new n.UniOp({op:"NOT",right:s[l]});break;case 438:this.$=new n.UniOp({op:"-",right:s[l]});break;case 439:this.$=new n.UniOp({op:"+",right:s[l]});break;case 440:this.$=new n.UniOp({op:"~",right:s[l]});break;case 441:this.$=new n.UniOp({op:"#",right:s[l]});break;case 442:this.$=new n.UniOp({right:s[l-1]});break;case 443:n.queries||(n.queries=[]),v=n.queries.slice(),n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-4],op:"IN",right:s[l-1],queriesidx:n.queries.length-1});break;case 444:n.queries||(n.queries=[]),v=n.queries.slice(),n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-5],op:"NOT IN",right:s[l-1],queriesidx:n.queries.length-1});break;case 445:this.$=new n.Op({left:s[l-4],op:"IN",right:s[l-1]});break;case 446:this.$=new n.Op({left:s[l-5],op:"NOT IN",right:s[l-1]});break;case 447:this.$=new n.Op({left:s[l-3],op:"IN",right:[]});break;case 448:this.$=new n.Op({left:s[l-4],op:"NOT IN",right:[]});break;case 449:case 451:this.$=new n.Op({left:s[l-2],op:"IN",right:s[l]});break;case 450:case 452:this.$=new n.Op({left:s[l-3],op:"NOT IN",right:s[l]});break;case 453:this.$=new n.Op({left:s[l-2],op:"BETWEEN1",right:s[l]});break;case 454:this.$=new n.Op({left:s[l-2],op:"NOT BETWEEN1",right:s[l]});break;case 455:this.$=new n.Op({op:"IS",left:s[l-2],right:s[l]});break;case 456:this.$=new n.Op({op:"IS",left:s[l-2],right:new n.UniOp({op:"NOT",right:new n.NullValue({value:void 0})})});break;case 457:this.$=new n.Convert({expression:s[l-2]}),n.extend(this.$,s[l]);break;case 467:this.$="ALL";break;case 468:this.$="SOME";break;case 469:this.$="ANY";break;case 470:this.$=new n.Update({table:s[l-5],columns:s[l-3],where:s[l-1]}),n.extend(this.$,s[l]);break;case 471:this.$=new n.Update({table:s[l-3],columns:s[l-1]}),n.extend(this.$,s[l]);break;case 474:this.$=new n.SetColumn({column:s[l-2],expression:s[l]});break;case 475:this.$=new n.SetColumn({variable:s[l-2],expression:s[l],method:s[l-3]});break;case 476:this.$=new n.Delete({table:s[l-3],where:s[l-1]}),n.extend(this.$,s[l]);break;case 477:this.$=new n.Delete({table:s[l-1]}),n.extend(this.$,s[l]);break;case 478:this.$=new n.Insert({into:s[l-3],values:s[l-1]}),n.extend(this.$,s[l]);break;case 479:this.$=new n.Insert({into:s[l-2],values:s[l-1]}),n.extend(this.$,s[l]);break;case 480:this.$=new n.Insert({into:s[l-3],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 481:this.$=new n.Insert({into:s[l-2],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 482:this.$=new n.Insert({into:s[l-6],columns:s[l-4],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 483:this.$=new n.Insert({into:s[l-5],columns:s[l-3],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 484:this.$=new n.Insert({into:s[l-2],select:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 485:this.$=new n.Insert({into:s[l-5],columns:s[l-3],select:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 486:case 488:this.$=new n.Insert({into:s[l-3],values:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 487:case 489:this.$=new n.Insert({into:s[l-2],values:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 490:this.$=new n.Insert({into:s[l-3],default:!0}),n.extend(this.$,s[l]);break;case 491:this.$=new n.Insert({into:s[l-6],columns:s[l-4],values:s[l-1]}),n.extend(this.$,s[l]);break;case 492:this.$=new n.Insert({into:s[l-5],columns:s[l-3],values:s[l-1]}),n.extend(this.$,s[l]);break;case 493:this.$=new n.Insert({into:s[l-2],select:s[l-1]}),n.extend(this.$,s[l]);break;case 494:this.$=new n.Insert({into:s[l-2],select:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 495:this.$=new n.Insert({into:s[l-5],columns:s[l-3],select:s[l-1]}),n.extend(this.$,s[l]);break;case 496:this.$=new n.Insert({into:s[l-3],setcolumns:s[l-1]}),n.extend(this.$,s[l]);break;case 501:this.$=[s[l-1]];break;case 504:this.$=s[l-4],s[l-4].push(s[l-1]);break;case 517:this.$=new n.CreateTable({table:s[l-4]}),n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l]);break;case 518:this.$=new n.CreateTable({table:s[l]}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]);break;case 520:this.$={class:!0};break;case 530:this.$={temporary:!0};break;case 532:this.$={ifnotexists:!0};break;case 533:this.$={columns:s[l-2],constraints:s[l]};break;case 534:this.$={columns:s[l]};break;case 535:this.$={as:s[l]};break;case 538:case 539:case 540:case 541:case 542:s[l].constraintid=s[l-1],this.$=s[l];break;case 545:this.$={type:"CHECK",expression:s[l-1]};break;case 546:this.$={type:"PRIMARY KEY",columns:s[l-1],clustered:(s[l-3]+"").toUpperCase()};break;case 547:this.$={type:"FOREIGN KEY",columns:s[l-5],fktable:s[l-2],fkcolumns:s[l-1]},n.extend(this.$,s[l]);break;case 549:case 675:this.$={};break;case 550:this.$={ondelete:s[l]};break;case 551:case 597:this.$={onupdate:s[l]};break;case 552:this.$={ondelete:s[l-1],onupdate:s[l]};break;case 553:this.$={ondelete:s[l],onupdate:s[l-1]};break;case 556:this.$="CASCADE";break;case 557:this.$="SET NULL";break;case 558:this.$="SET DEFAULT";break;case 559:this.$="RESTRICT";break;case 560:this.$="NO ACTION";break;case 561:this.$={type:"UNIQUE",columns:s[l-1],clustered:(s[l-3]+"").toUpperCase()};break;case 562:this.$={type:"INDEX",indexid:s[l-3],columns:s[l-1]};break;case 569:this.$=new n.ColumnDef({columnid:s[l-2]}),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]);break;case 570:this.$=new n.ColumnDef({columnid:s[l-1]}),n.extend(this.$,s[l]);break;case 571:this.$=new n.ColumnDef({columnid:s[l],dbtypeid:""});break;case 572:this.$={dbtypeid:s[l-5],dbsize:s[l-3],dbprecision:+s[l-1]};break;case 573:this.$={dbtypeid:s[l-3],dbsize:s[l-1]};break;case 574:this.$={dbtypeid:s[l]};break;case 575:this.$={dbtypeid:"ENUM",enumvalues:s[l-1]};break;case 576:this.$=s[l-1],s[l-1].dbtypeid+="["+s[l]+"]";break;case 578:case 792:this.$=+s[l];break;case 582:n.extend(s[l-1],s[l]),this.$=s[l-1];break;case 585:this.$={primarykey:!0};break;case 586:case 587:this.$={foreignkey:{table:s[l-2],columnid:s[l-1]}},n.extend(this.$.foreignkey,s[l]);break;case 588:this.$={identity:{value:s[l-3],step:s[l-1]}};break;case 589:this.$={identity:{value:1,step:1}};break;case 590:case 592:this.$={default:s[l]};break;case 591:this.$={default:s[l-1]};break;case 593:this.$={null:!0};break;case 594:this.$={notnull:!0};break;case 595:this.$={check:s[l]};break;case 596:this.$={unique:!0};break;case 598:this.$={onupdate:s[l-1]};break;case 599:this.$=new n.DropTable({tables:s[l],type:s[l-2]}),n.extend(this.$,s[l-1]);break;case 603:this.$={ifexists:!0};break;case 604:this.$=new n.AlterTable({table:s[l-3],renameto:s[l]});break;case 605:this.$=new n.AlterTable({table:s[l-3],addcolumn:s[l]});break;case 606:this.$=new n.AlterTable({table:s[l-3],modifycolumn:s[l]});break;case 607:this.$=new n.AlterTable({table:s[l-5],renamecolumn:s[l-2],to:s[l]});break;case 608:this.$=new n.AlterTable({table:s[l-3],dropcolumn:s[l]});break;case 609:this.$=new n.AlterTable({table:s[l-2],renameto:s[l]});break;case 610:this.$=new n.AttachDatabase({databaseid:s[l],engineid:s[l-2].toUpperCase()});break;case 611:this.$=new n.AttachDatabase({databaseid:s[l-3],engineid:s[l-5].toUpperCase(),args:s[l-1]});break;case 612:this.$=new n.AttachDatabase({databaseid:s[l-2],engineid:s[l-4].toUpperCase(),as:s[l]});break;case 613:this.$=new n.AttachDatabase({databaseid:s[l-5],engineid:s[l-7].toUpperCase(),as:s[l],args:s[l-3]});break;case 614:this.$=new n.DetachDatabase({databaseid:s[l]});break;case 615:this.$=new n.CreateDatabase({databaseid:s[l]}),n.extend(this.$,s[l]);break;case 616:this.$=new n.CreateDatabase({engineid:s[l-4].toUpperCase(),databaseid:s[l-1],as:s[l]}),n.extend(this.$,s[l-2]);break;case 617:this.$=new n.CreateDatabase({engineid:s[l-7].toUpperCase(),databaseid:s[l-4],args:s[l-2],as:s[l]}),n.extend(this.$,s[l-5]);break;case 618:this.$=new n.CreateDatabase({engineid:s[l-4].toUpperCase(),as:s[l],args:[s[l-1]]}),n.extend(this.$,s[l-2]);break;case 621:case 622:this.$=new n.UseDatabase({databaseid:s[l]});break;case 623:this.$=new n.DropDatabase({databaseid:s[l]}),n.extend(this.$,s[l-1]);break;case 624:case 625:this.$=new n.DropDatabase({databaseid:s[l],engineid:s[l-3].toUpperCase()}),n.extend(this.$,s[l-1]);break;case 626:this.$=new n.CreateIndex({indexid:s[l-5],table:s[l-3],columns:s[l-1]});break;case 627:this.$=new n.CreateIndex({indexid:s[l-5],table:s[l-3],columns:s[l-1],unique:!0});break;case 628:this.$=new n.DropIndex({indexid:s[l]});break;case 629:this.$=new n.ShowDatabases;break;case 630:this.$=new n.ShowDatabases({like:s[l]});break;case 631:this.$=new n.ShowDatabases({engineid:s[l-1].toUpperCase()});break;case 632:this.$=new n.ShowDatabases({engineid:s[l-3].toUpperCase(),like:s[l]});break;case 633:this.$=new n.ShowTables;break;case 634:this.$=new n.ShowTables({like:s[l]});break;case 635:this.$=new n.ShowTables({databaseid:s[l]});break;case 636:this.$=new n.ShowTables({like:s[l],databaseid:s[l-2]});break;case 637:this.$=new n.ShowColumns({table:s[l]});break;case 638:this.$=new n.ShowColumns({table:s[l-2],databaseid:s[l]});break;case 639:this.$=new n.ShowIndex({table:s[l]});break;case 640:this.$=new n.ShowIndex({table:s[l-2],databaseid:s[l]});break;case 641:this.$=new n.ShowCreateTable({table:s[l]});break;case 642:this.$=new n.ShowCreateTable({table:s[l-2],databaseid:s[l]});break;case 643:this.$=new n.CreateTable({table:s[l-6],view:!0,select:s[l-1],viewcolumns:s[l-4]}),n.extend(this.$,s[l-9]),n.extend(this.$,s[l-7]);break;case 644:this.$=new n.CreateTable({table:s[l-3],view:!0,select:s[l-1]}),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-4]);break;case 648:this.$=new n.DropTable({tables:s[l],view:!0}),n.extend(this.$,s[l-1]);break;case 649:case 802:this.$=new n.ExpressionStatement({expression:s[l]});break;case 650:this.$=new n.Source({url:s[l].value});break;case 651:this.$=new n.Assert({value:s[l]});break;case 652:this.$=new n.Assert({value:s[l].value});break;case 653:this.$=new n.Assert({value:s[l],message:s[l-2]});break;case 655:case 667:case 669:this.$=s[l].value;break;case 656:case 664:this.$=+s[l].value;break;case 657:this.$=!!s[l].value;break;case 665:this.$=-s[l].value;break;case 666:this.$=""+s[l].value;break;case 678:case 1095:case 1119:case 1121:case 1123:case 1127:case 1129:case 1131:case 1133:case 1135:case 1137:this.$=[];break;case 679:n.extend(s[l-2],s[l]),this.$=s[l-2];break;case 681:this.$={},this.$[s[l-2].substr(1,s[l-2].length-2)]=s[l];break;case 682:case 683:this.$={},this.$[s[l-2]]=s[l];break;case 684:this.$={},this.$[s[l-2].substr(1,s[l-2].length-2)]=-s[l].value;break;case 685:case 686:this.$={},this.$[s[l-2]]=-s[l].value;break;case 689:this.$=new n.SetVariable({variable:s[l-2].toLowerCase(),value:s[l]});break;case 690:this.$=new n.SetVariable({variable:s[l-1].toLowerCase(),value:s[l]});break;case 691:this.$=new n.SetVariable({variable:s[l-2],expression:s[l]});break;case 692:this.$=new n.SetVariable({variable:s[l-3],props:s[l-2],expression:s[l]});break;case 693:this.$=new n.SetVariable({variable:s[l-2],expression:s[l],method:s[l-3]});break;case 694:this.$=new n.SetVariable({variable:s[l-3],props:s[l-2],expression:s[l],method:s[l-4]});break;case 695:this.$="@";break;case 696:this.$="$";break;case 702:this.$=!0;break;case 703:this.$=!1;break;case 704:this.$=new n.CommitTransaction;break;case 705:this.$=new n.RollbackTransaction;break;case 706:this.$=new n.BeginTransaction;break;case 707:this.$=new n.If({expression:s[l-2],thenstat:s[l-1],elsestat:s[l]}),s[l-1].exists&&(this.$.exists=s[l-1].exists),s[l-1].queries&&(this.$.queries=s[l-1].queries);break;case 708:this.$=new n.If({expression:s[l-1],thenstat:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 710:this.$=new n.While({expression:s[l-1],loopstat:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 711:case 712:this.$=new n.Continue;break;case 713:case 714:this.$=new n.Break;break;case 715:this.$=new n.BeginEnd({statements:s[l-1]});break;case 716:this.$=new n.Print({exprs:s[l]});break;case 717:this.$=new n.Print({select:s[l]});break;case 718:this.$=new n.Require({paths:s[l]});break;case 719:this.$=new n.Require({plugins:s[l]});break;case 720:case 721:this.$=s[l].toUpperCase();break;case 722:this.$=new n.Echo({expr:s[l]});break;case 727:this.$=new n.Declare({declares:s[l]});break;case 730:this.$={variable:s[l-1]},n.extend(this.$,s[l]);break;case 731:this.$={variable:s[l-2]},n.extend(this.$,s[l]);break;case 732:this.$={variable:s[l-3],expression:s[l]},n.extend(this.$,s[l-2]);break;case 733:this.$={variable:s[l-4],expression:s[l]},n.extend(this.$,s[l-2]);break;case 734:this.$=new n.TruncateTable({table:s[l]});break;case 735:this.$=new n.Merge,n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,{matches:s[l-1]}),n.extend(this.$,s[l]);break;case 745:this.$={matched:!0,action:s[l]};break;case 746:this.$={matched:!0,expr:s[l-2],action:s[l]};break;case 747:this.$={delete:!0};break;case 748:this.$={update:s[l]};break;case 749:case 750:this.$={matched:!1,bytarget:!0,action:s[l]};break;case 751:case 752:this.$={matched:!1,bytarget:!0,expr:s[l-2],action:s[l]};break;case 753:this.$={matched:!1,bysource:!0,action:s[l]};break;case 754:this.$={matched:!1,bysource:!0,expr:s[l-2],action:s[l]};break;case 755:this.$={insert:!0,values:s[l]};break;case 756:this.$={insert:!0,values:s[l],columns:s[l-3]};break;case 757:this.$={insert:!0,defaultvalues:!0};break;case 758:this.$={insert:!0,defaultvalues:!0,columns:s[l-3]};break;case 760:this.$={output:{columns:s[l]}};break;case 761:this.$={output:{columns:s[l-3],intovar:s[l],method:s[l-1]}};break;case 762:this.$={output:{columns:s[l-2],intotable:s[l]}};break;case 763:this.$={output:{columns:s[l-5],intotable:s[l-3],intocolumns:s[l-1]}};break;case 764:this.$=new n.CreateVertex({class:s[l-3],sharp:s[l-2],name:s[l-1]}),n.extend(this.$,s[l]);break;case 767:this.$={sets:s[l]};break;case 768:this.$={content:s[l]};break;case 769:this.$={select:s[l]};break;case 770:this.$=new n.CreateEdge({from:s[l-3],to:s[l-1],name:s[l-5]}),n.extend(this.$,s[l]);break;case 771:this.$=new n.CreateGraph({graph:s[l]});break;case 772:this.$=new n.CreateGraph({from:s[l]});break;case 775:this.$=s[l-2],s[l-1]&&(this.$.json=new n.Json({value:s[l-1]})),s[l]&&(this.$.as=s[l]);break;case 776:this.$={source:s[l-6],target:s[l]},s[l-3]&&(this.$.json=new n.Json({value:s[l-3]})),s[l-2]&&(this.$.as=s[l-2]),n.extend(this.$,s[l-4]);break;case 777:this.$={source:s[l-5],target:s[l]},s[l-2]&&(this.$.json=new n.Json({value:s[l-3]})),s[l-1]&&(this.$.as=s[l-2]);break;case 778:this.$={source:s[l-2],target:s[l]};break;case 782:this.$={vars:s[l],method:s[l-1]};break;case 785:case 786:var x=s[l-1];this.$={prop:s[l-3],sharp:s[l-2],name:typeof x>"u"?void 0:x.substr(1,x.length-2),class:s[l]};break;case 787:var b=s[l-1];this.$={sharp:s[l-2],name:typeof b>"u"?void 0:b.substr(1,b.length-2),class:s[l]};break;case 788:var T=s[l-1];this.$={name:typeof T>"u"?void 0:T.substr(1,T.length-2),class:s[l]};break;case 789:this.$={class:s[l]};break;case 795:this.$=new n.AddRule({left:s[l-2],right:s[l]});break;case 796:this.$=new n.AddRule({right:s[l]});break;case 799:this.$={termid:s[l]};break;case 800:this.$={termid:s[l-3],args:s[l-1]};break;case 803:this.$=new n.CreateTrigger({trigger:s[l-6],when:s[l-5],action:s[l-4],table:s[l-2],statement:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 804:this.$=new n.CreateTrigger({trigger:s[l-5],when:s[l-4],action:s[l-3],table:s[l-1],funcid:s[l]});break;case 805:this.$=new n.CreateTrigger({trigger:s[l-6],when:s[l-4],action:s[l-3],table:s[l-5],statement:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 806:case 807:case 809:this.$="AFTER";break;case 808:this.$="BEFORE";break;case 810:this.$="INSTEADOF";break;case 811:this.$="INSERT";break;case 812:this.$="DELETE";break;case 813:this.$="UPDATE";break;case 814:this.$=new n.DropTrigger({trigger:s[l]});break;case 815:this.$=new n.Reindex({indexid:s[l]});break;case 1096:case 1114:case 1116:case 1120:case 1122:case 1124:case 1128:case 1130:case 1132:case 1134:case 1136:case 1138:s[l-1].push(s[l])}},table:[t([14,639,798],e,{12:1,13:2,16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,2:r,4:n,5:i,6:s,7:a,8:l,9:u,18:c,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{1:[3]},{14:[1,113],15:114,639:Z,798:tt},t(et,[2,12]),t(et,[2,13]),t(rt,[2,16]),t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:117,2:r,4:n,5:i,6:s,7:a,8:l,9:u,19:[1,118],57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,18]),t(rt,[2,19]),t(rt,[2,20]),t(rt,[2,21]),t(rt,[2,22]),t(rt,[2,23]),t(rt,[2,24]),t(rt,[2,25]),t(rt,[2,26]),t(rt,[2,27]),t(rt,[2,28]),t(rt,[2,29]),t(rt,[2,30]),t(rt,[2,31]),t(rt,[2,32]),t(rt,[2,33]),t(rt,[2,34]),t(rt,[2,35]),t(rt,[2,36]),t(rt,[2,37]),t(rt,[2,38]),t(rt,[2,39]),t(rt,[2,40]),t(rt,[2,41]),t(rt,[2,42]),t(rt,[2,43]),t(rt,[2,44]),t(rt,[2,45]),t(rt,[2,46]),t(rt,[2,47]),t(rt,[2,48]),t(rt,[2,49]),t(rt,[2,50]),t(rt,[2,51]),t(rt,[2,52]),t(rt,[2,53]),t(rt,[2,54]),t(rt,[2,55]),t(rt,[2,56]),t(rt,[2,57]),t(rt,[2,58]),t(rt,[2,59]),t(rt,[2,60]),t(rt,[2,61]),t(rt,[2,62]),t(rt,[2,63]),t(rt,[2,64]),t(rt,[2,65]),t(rt,[2,66]),t(rt,[2,67]),t(rt,[2,68]),t(rt,[2,69]),t(rt,[2,70]),t(rt,[2,71]),{388:[1,119]},{2:r,3:120,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:121,293:it,322:ot,323:st,324:at,325:lt,326:ut},t(ct,[2,529],{3:131,383:135,2:r,4:n,5:i,6:s,7:a,8:l,9:u,143:ht,144:dt,196:[1,133],202:[1,132],296:[1,139],297:[1,140],392:[1,141],442:[1,130],511:[1,134],547:[1,138]}),{154:pt,489:142,490:143},{192:[1,145]},{442:[1,146]},{2:r,3:148,4:n,5:i,6:s,7:a,8:l,9:u,139:[1,154],202:[1,149],388:[1,153],434:150,442:[1,147],447:[1,151],547:[1,152]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:155,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(re,ne,{374:219,180:[1,221],207:ie,377:[1,220]}),t(re,ne,{374:223,207:ie}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,207:[1,226],208:229,209:231,210:230,211:232,218:225,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee,493:224},{2:r,3:237,4:n,5:i,6:s,7:a,8:l,9:u},{388:[1,238]},t(le,[2,1091],{86:239,115:240,116:ue}),t(ce,he,{92:242,260:243,171:de,177:pe,178:fe}),t(ge,[2,1095],{97:247}),{2:r,3:251,4:n,5:i,6:s,7:a,8:l,9:u,199:[1,249],202:[1,252],295:[1,248],388:[1,253],442:[1,250]},{388:[1,254]},{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,77:255,79:256,80:[1,257]},t([339,639,798],e,{16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,13:260,2:r,4:n,5:i,6:s,7:a,8:l,9:u,18:c,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,473:[1,259],474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{473:[1,261]},{473:[1,262]},{2:r,3:264,4:n,5:i,6:s,7:a,8:l,9:u,442:[1,263]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:265,335:Xt},t(me,[2,323]),{122:269,141:mt,329:zt},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,122:275,140:gt,141:[1,272],152:_t,153:270,154:ye,161:bt,165:nt,190:St,205:274,209:279,210:278,284:276,285:277,292:_e,293:ve,302:271,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:282,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,711]),t(rt,[2,712]),t(rt,[2,713]),t(rt,[2,714]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:284,60:175,82:xe,85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:283,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:292,4:n,5:i,6:s,7:a,8:l,9:u,122:289,141:mt,329:zt,484:287,485:288,486:290,487:be},{2:r,3:293,4:n,5:i,6:s,7:a,8:l,9:u,152:Te,154:Ee,469:294},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:297,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{466:[1,298]},{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:299},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:301,293:it,322:ot,323:st,324:at,325:lt,326:ut},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:302,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Oe,Se,{195:306,173:[1,305],194:[1,303],196:[1,304],204:Ne}),{44:308,82:p,85:75,95:76,96:f,193:102,198:v},t(Ae,[2,799],{82:[1,309]}),t([2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],[2,162],{158:[1,310],159:[1,311],199:[1,312],200:[1,313],201:[1,314],202:[1,315],203:[1,316]}),t(we,[2,1]),t(we,[2,2]),t(we,[2,3]),t(we,[2,4]),t(we,[2,5]),t(we,[2,6]),{6:[1,434],7:[1,473],8:[1,350],9:[1,533],10:317,127:[1,476],140:[1,469],181:[1,494],229:[1,426],265:[1,468],266:[1,402],267:[1,437],271:[1,441],281:[1,383],377:[1,417],415:[1,340],416:[1,511],418:[1,322],439:[1,324],447:[1,582],451:[1,503],453:[1,474],454:[1,542],471:[1,472],473:[1,558],478:[1,370],499:[1,448],503:[1,480],509:[1,369],552:[1,334],553:[1,326],554:[1,429],556:[1,318],557:[1,319],558:[1,320],559:[1,321],560:[1,323],561:[1,325],562:[1,327],563:[1,328],564:[1,329],565:[1,330],566:[1,331],567:[1,332],568:[1,333],569:[1,335],570:[1,336],571:[1,337],572:[1,338],573:[1,339],574:[1,341],575:[1,342],576:[1,343],577:[1,344],578:[1,345],579:[1,346],580:[1,347],581:[1,348],582:[1,349],583:[1,351],584:[1,352],585:[1,353],586:[1,354],587:[1,355],588:[1,356],589:[1,357],590:[1,358],591:[1,359],592:[1,360],593:[1,361],594:[1,362],595:[1,363],596:[1,364],597:[1,365],598:[1,366],599:[1,367],600:[1,368],601:[1,371],602:[1,372],603:[1,373],604:[1,374],605:[1,375],606:[1,376],607:[1,377],608:[1,378],609:[1,379],610:[1,380],611:[1,381],612:[1,382],613:[1,384],614:[1,385],615:[1,386],616:[1,387],617:[1,388],618:[1,389],619:[1,390],620:[1,391],621:[1,392],622:[1,393],623:[1,394],624:[1,395],625:[1,396],626:[1,397],627:[1,398],628:[1,399],629:[1,400],630:[1,401],631:[1,403],632:[1,404],633:[1,405],634:[1,406],635:[1,407],636:[1,408],637:[1,409],638:[1,410],639:[1,411],640:[1,412],641:[1,413],642:[1,414],643:[1,415],644:[1,416],645:[1,418],646:[1,419],647:[1,420],648:[1,421],649:[1,422],650:[1,423],651:[1,424],652:[1,425],653:[1,427],654:[1,428],655:[1,430],656:[1,431],657:[1,432],658:[1,433],659:[1,435],660:[1,436],661:[1,438],662:[1,439],663:[1,440],664:[1,442],665:[1,443],666:[1,444],667:[1,445],668:[1,446],669:[1,447],670:[1,449],671:[1,450],672:[1,451],673:[1,452],674:[1,453],675:[1,454],676:[1,455],677:[1,456],678:[1,457],679:[1,458],680:[1,459],681:[1,460],682:[1,461],683:[1,462],684:[1,463],685:[1,464],686:[1,465],687:[1,466],688:[1,467],689:[1,470],690:[1,471],691:[1,475],692:[1,477],693:[1,478],694:[1,479],695:[1,481],696:[1,482],697:[1,483],698:[1,484],699:[1,485],700:[1,486],701:[1,487],702:[1,488],703:[1,489],704:[1,490],705:[1,491],706:[1,492],707:[1,493],708:[1,495],709:[1,496],710:[1,497],711:[1,498],712:[1,499],713:[1,500],714:[1,501],715:[1,502],716:[1,504],717:[1,505],718:[1,506],719:[1,507],720:[1,508],721:[1,509],722:[1,510],723:[1,512],724:[1,513],725:[1,514],726:[1,515],727:[1,516],728:[1,517],729:[1,518],730:[1,519],731:[1,520],732:[1,521],733:[1,522],734:[1,523],735:[1,524],736:[1,525],737:[1,526],738:[1,527],739:[1,528],740:[1,529],741:[1,530],742:[1,531],743:[1,532],744:[1,534],745:[1,535],746:[1,536],747:[1,537],748:[1,538],749:[1,539],750:[1,540],751:[1,541],752:[1,543],753:[1,544],754:[1,545],755:[1,546],756:[1,547],757:[1,548],758:[1,549],759:[1,550],760:[1,551],761:[1,552],762:[1,553],763:[1,554],764:[1,555],765:[1,556],766:[1,557],767:[1,559],768:[1,560],769:[1,561],770:[1,562],771:[1,563],772:[1,564],773:[1,565],774:[1,566],775:[1,567],776:[1,568],777:[1,569],778:[1,570],779:[1,571],780:[1,572],781:[1,573],782:[1,574],783:[1,575],784:[1,576],785:[1,577],786:[1,578],787:[1,579],788:[1,580],789:[1,581],790:[1,583],791:[1,584],792:[1,585],793:[1,586],794:[1,587],795:[1,588],796:[1,589],797:[1,590]},{1:[2,10]},t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:591,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(Re,[2,1089]),t(Re,[2,1090]),t(et,[2,14]),{20:[1,592]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:593},{442:[1,594]},t(rt,[2,802]),{82:Ce},{82:[1,596]},{82:Le},{82:Ie},{82:[1,599]},{82:[1,600]},{82:[1,601]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:602,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ke,De,{385:603,165:Pe}),{442:[1,605]},{2:r,3:606,4:n,5:i,6:s,7:a,8:l,9:u},{202:[1,607]},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,192:[1,609],469:620,512:608,513:610,514:611,517:612,521:617,532:614,536:616},{139:[1,624],384:621,388:[1,623],447:[1,622]},{122:626,141:mt,192:[2,1215],329:zt,510:625},t(Ue,[2,1209],{504:627,3:628,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),{2:r,3:629,4:n,5:i,6:s,7:a,8:l,9:u},{4:[1,630]},{4:[1,631]},t(ct,[2,530]),t(rt,[2,727],{78:[1,632]}),t(Fe,[2,728]),{2:r,3:633,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:634,335:Xt},{2:r,3:635,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,$e,{435:636,165:He}),{442:[1,638]},{2:r,3:639,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,$e,{435:640,165:He}),t(ke,$e,{435:641,165:He}),{2:r,3:642,4:n,5:i,6:s,7:a,8:l,9:u},t(Be,[2,1203]),t(Be,[2,1204]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:643,123:660,360:672,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:We,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:y,163:nr,165:_,179:ir,180:or,188:sr,189:ar,198:v,294:x,295:b,322:T,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(me,[2,299]),t(me,[2,300]),t(me,[2,301]),t(me,[2,302]),t(me,[2,303]),t(me,[2,304]),t(me,[2,305]),t(me,[2,306]),t(me,[2,307]),t(me,[2,308]),t(me,[2,309]),t(me,[2,310]),t(me,[2,311]),t(me,[2,312]),t(me,[2,313]),t(me,[2,314]),t(me,[2,315]),t(me,[2,316]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,30:689,31:688,40:684,44:683,60:175,82:xe,85:75,95:76,96:f,104:686,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:Ct,293:Lt,294:x,295:Ar,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:wr,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,373:S,456:204,457:te,461:ee},t(me,[2,320]),t(me,[2,321]),t(Rr,[2,322],{82:Ie}),{82:[1,691]},{82:[1,692]},t([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr,{82:Ce,125:[1,693]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:694,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:695,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:696,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:697,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:698,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Lr,Ir,{125:[1,699]}),t(Lr,kr,{125:[1,700]}),t(me,[2,289]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,229,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,275,281,292,293,294,295,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,333,335,336,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,452,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798,799,800],[2,377]),t(Dr,[2,378]),t(Dr,[2,379]),t(Dr,Pr),t(Dr,[2,381]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,382]),{2:r,3:702,4:n,5:i,6:s,7:a,8:l,9:u,140:[1,703],334:701},{2:r,3:704,4:n,5:i,6:s,7:a,8:l,9:u},t(Mr,[2,388]),t(Mr,[2,389]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u,82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},{82:[1,712]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:713,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,337:714,340:715,341:Kr,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,717]},{82:[1,718]},t(Ur,[2,659]),{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,333:[1,721],335:Xt,350:Br,456:204,457:te,458:719,459:722,460:724,461:ee,464:720},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:737,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:738,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:739,293:it,322:ot,323:st,324:at,325:lt,326:ut},{82:[2,353]},{82:[2,354]},{82:[2,355]},{82:[2,356]},{82:[2,357]},{82:[2,358]},{82:[2,359]},{82:[2,360]},{82:[2,361]},{82:[2,362]},{2:r,3:745,4:n,5:i,6:s,7:a,8:l,9:u,140:qr,141:Gr,462:740,463:[1,741],465:742},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:746,335:Xt},t(re,ne,{374:747,207:ie}),{322:[1,748]},t(re,[2,500]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:749,335:Xt},{251:[1,751],494:750},{251:[2,736]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:752,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{44:753,82:p,85:75,95:76,96:f,193:102,198:v},t(zr,[2,1145],{220:754,81:[1,755]}),t(Vr,[2,1149],{222:756,230:758,3:759,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,163:[1,757]}),t(Vr,[2,1151],{3:759,224:761,230:762,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1153],{3:759,225:763,230:764,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1155],{3:759,226:765,230:766,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1157],{3:759,228:767,230:768,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,198]),t([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,163,171,177,178,192,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Wr,{82:Ce,125:Xr}),t([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],[2,201]),t(rt,[2,815]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:770},t(Qr,Jr,{87:771,207:Zr}),t(le,[2,1092]),t(tn,[2,1109],{117:773,199:[1,774]}),t(en,rn,{93:775,127:nn}),{82:p,85:780,95:779,99:778,193:102,198:v,261:777},t(on,[2,250],{173:[1,781],262:[1,782]}),t(on,[2,252],{262:[1,783]}),t(on,[2,253],{262:[1,784]}),t([14,83,192,339,343,503,639,798],Jr,{456:204,87:785,126:786,3:787,123:790,153:812,167:822,169:823,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,207:Zr,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),{388:[1,837]},{192:[1,838]},t(rt,[2,629],{121:[1,839]}),{442:[1,840]},{192:[1,841]},t(rt,[2,633],{121:[1,842],192:[1,843]}),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:844},{44:845,78:[1,846],82:p,85:75,95:76,96:f,193:102,198:v},t(Qn,[2,75]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:847},{81:[1,848],82:[1,849]},t(rt,[2,706]),{15:114,339:[1,850],639:Z,798:tt},t(rt,[2,704]),t(rt,[2,705]),{2:r,3:851,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,622]),{155:[1,852]},t(Jn,[2,204]),t(Jn,[2,205]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,105,133,137,152,154,155,157,158,161,163,165,190,192,196,198,250,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],Wr,{125:Xr}),t(rt,[2,650]),t(rt,[2,651]),t(rt,[2,652]),t(rt,Pr,{78:[1,853]}),{82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},t(Zn,[2,332]),t(Zn,[2,333]),t(Zn,[2,334]),t(Zn,[2,335]),t(Zn,[2,336]),t(Zn,[2,337]),t(Zn,[2,338]),t(Zn,[2,339],{82:Ie}),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,123:660,360:672,16:854,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:We,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:y,163:nr,165:_,179:ir,180:or,188:sr,189:ar,198:v,294:x,295:b,322:T,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,716],{78:ti}),t(rt,[2,717]),t(ei,[2,375],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,30:689,31:688,40:684,44:857,60:175,82:xe,85:75,95:76,96:f,104:686,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:Ct,293:Lt,294:x,295:Ar,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:wr,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,373:S,456:204,457:te,461:ee},t(rt,[2,718],{78:[1,858]}),t(rt,[2,719],{78:[1,859]}),t(Fe,[2,724]),t(Fe,[2,726]),t(Fe,[2,720]),t(Fe,[2,721]),{123:865,124:ze,125:Ve,133:[1,860],250:ni,467:861,468:862,471:ii},{2:r,3:866,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,[2,695]),t(ke,[2,696]),t(rt,[2,649],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:867},t(rt,[2,796],{78:oi}),t(si,[2,798]),t(rt,[2,801]),t(rt,[2,722],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(ai,Se,{195:869,204:Ne}),t(ai,Se,{195:870,204:Ne}),t(ai,Se,{195:871,204:Ne}),t(li,[2,1139],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,197:872,183:873,279:874,104:875,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{82:[1,877],140:gt,205:876},{83:[1,878]},{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:879},t(ui,[2,163]),t(ui,[2,164]),t(ui,[2,165]),t(ui,[2,166]),t(ui,[2,167]),t(ui,[2,168]),t(ui,[2,169]),t(we,[2,7]),t(we,[2,816]),t(we,[2,817]),t(we,[2,818]),t(we,[2,819]),t(we,[2,820]),t(we,[2,821]),t(we,[2,822]),t(we,[2,823]),t(we,[2,824]),t(we,[2,825]),t(we,[2,826]),t(we,[2,827]),t(we,[2,828]),t(we,[2,829]),t(we,[2,830]),t(we,[2,831]),t(we,[2,832]),t(we,[2,833]),t(we,[2,834]),t(we,[2,835]),t(we,[2,836]),t(we,[2,837]),t(we,[2,838]),t(we,[2,839]),t(we,[2,840]),t(we,[2,841]),t(we,[2,842]),t(we,[2,843]),t(we,[2,844]),t(we,[2,845]),t(we,[2,846]),t(we,[2,847]),t(we,[2,848]),t(we,[2,849]),t(we,[2,850]),t(we,[2,851]),t(we,[2,852]),t(we,[2,853]),t(we,[2,854]),t(we,[2,855]),t(we,[2,856]),t(we,[2,857]),t(we,[2,858]),t(we,[2,859]),t(we,[2,860]),t(we,[2,861]),t(we,[2,862]),t(we,[2,863]),t(we,[2,864]),t(we,[2,865]),t(we,[2,866]),t(we,[2,867]),t(we,[2,868]),t(we,[2,869]),t(we,[2,870]),t(we,[2,871]),t(we,[2,872]),t(we,[2,873]),t(we,[2,874]),t(we,[2,875]),t(we,[2,876]),t(we,[2,877]),t(we,[2,878]),t(we,[2,879]),t(we,[2,880]),t(we,[2,881]),t(we,[2,882]),t(we,[2,883]),t(we,[2,884]),t(we,[2,885]),t(we,[2,886]),t(we,[2,887]),t(we,[2,888]),t(we,[2,889]),t(we,[2,890]),t(we,[2,891]),t(we,[2,892]),t(we,[2,893]),t(we,[2,894]),t(we,[2,895]),t(we,[2,896]),t(we,[2,897]),t(we,[2,898]),t(we,[2,899]),t(we,[2,900]),t(we,[2,901]),t(we,[2,902]),t(we,[2,903]),t(we,[2,904]),t(we,[2,905]),t(we,[2,906]),t(we,[2,907]),t(we,[2,908]),t(we,[2,909]),t(we,[2,910]),t(we,[2,911]),t(we,[2,912]),t(we,[2,913]),t(we,[2,914]),t(we,[2,915]),t(we,[2,916]),t(we,[2,917]),t(we,[2,918]),t(we,[2,919]),t(we,[2,920]),t(we,[2,921]),t(we,[2,922]),t(we,[2,923]),t(we,[2,924]),t(we,[2,925]),t(we,[2,926]),t(we,[2,927]),t(we,[2,928]),t(we,[2,929]),t(we,[2,930]),t(we,[2,931]),t(we,[2,932]),t(we,[2,933]),t(we,[2,934]),t(we,[2,935]),t(we,[2,936]),t(we,[2,937]),t(we,[2,938]),t(we,[2,939]),t(we,[2,940]),t(we,[2,941]),t(we,[2,942]),t(we,[2,943]),t(we,[2,944]),t(we,[2,945]),t(we,[2,946]),t(we,[2,947]),t(we,[2,948]),t(we,[2,949]),t(we,[2,950]),t(we,[2,951]),t(we,[2,952]),t(we,[2,953]),t(we,[2,954]),t(we,[2,955]),t(we,[2,956]),t(we,[2,957]),t(we,[2,958]),t(we,[2,959]),t(we,[2,960]),t(we,[2,961]),t(we,[2,962]),t(we,[2,963]),t(we,[2,964]),t(we,[2,965]),t(we,[2,966]),t(we,[2,967]),t(we,[2,968]),t(we,[2,969]),t(we,[2,970]),t(we,[2,971]),t(we,[2,972]),t(we,[2,973]),t(we,[2,974]),t(we,[2,975]),t(we,[2,976]),t(we,[2,977]),t(we,[2,978]),t(we,[2,979]),t(we,[2,980]),t(we,[2,981]),t(we,[2,982]),t(we,[2,983]),t(we,[2,984]),t(we,[2,985]),t(we,[2,986]),t(we,[2,987]),t(we,[2,988]),t(we,[2,989]),t(we,[2,990]),t(we,[2,991]),t(we,[2,992]),t(we,[2,993]),t(we,[2,994]),t(we,[2,995]),t(we,[2,996]),t(we,[2,997]),t(we,[2,998]),t(we,[2,999]),t(we,[2,1e3]),t(we,[2,1001]),t(we,[2,1002]),t(we,[2,1003]),t(we,[2,1004]),t(we,[2,1005]),t(we,[2,1006]),t(we,[2,1007]),t(we,[2,1008]),t(we,[2,1009]),t(we,[2,1010]),t(we,[2,1011]),t(we,[2,1012]),t(we,[2,1013]),t(we,[2,1014]),t(we,[2,1015]),t(we,[2,1016]),t(we,[2,1017]),t(we,[2,1018]),t(we,[2,1019]),t(we,[2,1020]),t(we,[2,1021]),t(we,[2,1022]),t(we,[2,1023]),t(we,[2,1024]),t(we,[2,1025]),t(we,[2,1026]),t(we,[2,1027]),t(we,[2,1028]),t(we,[2,1029]),t(we,[2,1030]),t(we,[2,1031]),t(we,[2,1032]),t(we,[2,1033]),t(we,[2,1034]),t(we,[2,1035]),t(we,[2,1036]),t(we,[2,1037]),t(we,[2,1038]),t(we,[2,1039]),t(we,[2,1040]),t(we,[2,1041]),t(we,[2,1042]),t(we,[2,1043]),t(we,[2,1044]),t(we,[2,1045]),t(we,[2,1046]),t(we,[2,1047]),t(we,[2,1048]),t(we,[2,1049]),t(we,[2,1050]),t(we,[2,1051]),t(we,[2,1052]),t(we,[2,1053]),t(we,[2,1054]),t(we,[2,1055]),t(we,[2,1056]),t(we,[2,1057]),t(we,[2,1058]),t(we,[2,1059]),t(we,[2,1060]),t(we,[2,1061]),t(we,[2,1062]),t(we,[2,1063]),t(we,[2,1064]),t(we,[2,1065]),t(we,[2,1066]),t(we,[2,1067]),t(we,[2,1068]),t(we,[2,1069]),t(we,[2,1070]),t(we,[2,1071]),t(we,[2,1072]),t(we,[2,1073]),t(we,[2,1074]),t(we,[2,1075]),t(we,[2,1076]),t(we,[2,1077]),t(we,[2,1078]),t(we,[2,1079]),t(we,[2,1080]),t(we,[2,1081]),t(we,[2,1082]),t(we,[2,1083]),t(we,[2,1084]),t(we,[2,1085]),t(we,[2,1086]),t(we,[2,1087]),t(we,[2,1088]),t(et,[2,11]),t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:880,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{433:[1,884],438:[1,881],439:[1,882],440:[1,883]},{2:r,3:885,4:n,5:i,6:s,7:a,8:l,9:u},t(ai,[2,1185],{321:886,801:888,83:[1,887],173:[1,890],194:[1,889]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:891,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:892,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,893]},{2:r,3:894,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,895]},{2:r,3:896,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,897]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:898,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:899,4:n,5:i,6:s,7:a,8:l,9:u,109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:900,4:n,5:i,6:s,7:a,8:l,9:u},{163:[1,901]},t(ci,De,{385:902,165:Pe}),{250:[1,903]},{2:r,3:904,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,771],{78:hi}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:906,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(si,[2,774]),t(di,[2,1217],{456:204,515:907,153:908,148:pi,150:pi,154:ye,457:te,461:ee}),{148:[1,909],150:[1,910]},t(fi,gi,{529:912,532:913,82:[1,911],146:je}),t(mi,[2,1241],{533:914,141:[1,915]}),t(yi,[2,1245],{535:916,536:917,161:Ke}),t(yi,[2,789]),t(_i,[2,781]),{2:r,3:918,4:n,5:i,6:s,7:a,8:l,9:u,140:[1,919]},{2:r,3:920,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:921,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,De,{385:922,165:Pe}),t(ke,De,{385:923,165:Pe}),t(Be,[2,519]),t(Be,[2,520]),{192:[1,924]},{192:[2,1216]},t(vi,[2,1211],{505:925,508:926,146:[1,927]}),t(Ue,[2,1210]),t(xi,bi,{548:928,105:Ti,250:[1,929],552:Ei,553:Oi,554:Si}),{81:[1,934]},{81:[1,935]},{154:pt,490:936},{4:Ni,11:940,81:[1,938],300:937,424:939,426:Ai},t(rt,wi,{369:944,137:[1,943],503:Ri}),t(rt,[2,614]),{2:r,3:946,4:n,5:i,6:s,7:a,8:l,9:u},{331:[1,947]},t(ci,$e,{435:948,165:He}),t(rt,[2,628]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:950,436:949},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:950,436:951},t(rt,[2,814]),t(et,[2,708],{476:952,343:[1,953]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:954,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:955,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:956,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:957,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:958,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:959,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:960,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:961,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:962,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:963,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:964,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:965,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:966,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:967,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:968,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:969,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:970,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,972],140:gt,165:nt,205:971,209:973,293:it,322:ot,323:st,324:at,325:lt,326:ut},{2:r,3:974,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,976],140:gt,165:nt,205:975,209:977,293:it,322:ot,323:st,324:at,325:lt,326:ut},t(Ci,[2,461],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:978,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,462],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:979,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,463],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:980,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,464],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:981,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,Li,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:982,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:983,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:984,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ci,[2,466],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:985,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:986,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:987,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{173:[1,989],175:[1,991],361:988,367:[1,990]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:992,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:993,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,994],120:997,154:Ii,165:nt,209:998,211:996,229:$r,281:Hr,293:it,322:ot,323:st,324:at,325:lt,326:ut,362:995},{109:[1,1e3],330:[1,1001]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1002,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1003,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1004,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1005,424:939,426:Ai},t(ki,[2,98]),t(ki,[2,99]),{83:[1,1006]},{83:[1,1007]},{83:[1,1008]},{83:[1,1009],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(re,ne,{374:223,82:Le,207:ie}),{83:[2,1177]},{83:[2,1178]},{143:ht,144:dt},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1010,161:bt,163:Tt,165:nt,167:178,173:[1,1012],188:Et,189:Ot,190:St,194:[1,1011],205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1013,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,194:[1,1014],205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1015,4:n,5:i,6:s,7:a,8:l,9:u,154:Di,158:Pi,189:[1,1018]},t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,437],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t(Mi,[2,438],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Mi,[2,439],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(ji,[2,440],{123:660,360:672,349:dr}),t(ji,[2,441],{123:660,360:672,349:dr}),{2:r,3:1019,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1020]},{2:r,3:1021,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1022]},t(Mr,[2,386]),t(Mr,[2,1187]),t(Mr,[2,1188]),t(Mr,[2,387]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,383]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1023,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ur,[2,655]),t(Ur,[2,656]),t(Ur,[2,657]),t(Ur,[2,658]),t(Ur,[2,660]),{44:1024,82:p,85:75,95:76,96:f,193:102,198:v},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,337:1025,340:715,341:Kr,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{338:1026,339:Ki,340:1027,341:Kr,343:Ui},t(Fi,[2,393]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1029,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1030,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1031,424:939,426:Ai},t(Ur,[2,661]),{78:[1,1033],333:[1,1032]},t(Ur,[2,678]),t($i,[2,688]),t(Hi,[2,662]),t(Hi,[2,663]),t(Hi,[2,664]),{140:gt,205:1034},t(Hi,[2,666]),t(Hi,[2,667]),t(Hi,[2,668]),t(Hi,[2,669]),t(Hi,[2,670]),t(Hi,[2,671]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1035,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr,{82:Ce,125:Bi}),t(qi,Ir,{125:[1,1037]}),t(qi,kr,{125:[1,1038]}),{78:ti,333:[1,1039]},t(Rr,[2,326],{82:Ce}),t(me,[2,327]),{78:[1,1041],463:[1,1040]},t(Ur,[2,675]),t(Gi,[2,680]),{161:[1,1042],466:[1,1043]},{161:[1,1044],466:[1,1045]},{161:[1,1046],466:[1,1047]},{44:1052,82:[1,1051],85:75,95:76,96:f,152:_t,153:1056,154:ye,155:[1,1053],158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1048,376:1049,378:[1,1050],379:Vi,456:204,457:te,461:ee},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:1058,335:Xt},t(re,ne,{374:1059,207:ie}),{82:Yi,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,210:1057,335:Xt,375:1060,376:1061,379:Vi,456:204,457:te,461:ee},{250:[1,1064],495:1063},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1066],141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:1065,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{251:[2,737]},{83:[1,1067]},t(Vr,[2,1147],{221:1068,3:1069,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),t(zr,[2,1146]),t(Vr,[2,192]),{223:[1,1070]},t(Vr,[2,1150]),t(Vr,[2,199]),{2:r,3:1071,4:n,5:i,6:s,7:a,8:l,9:u},t(Vr,[2,194]),t(Vr,[2,1152]),t(Vr,[2,195]),t(Vr,[2,1154]),t(Vr,[2,196]),t(Vr,[2,1156]),t(Vr,[2,197]),t(Vr,[2,1158]),{2:r,3:1072,4:n,5:i,6:s,7:a,8:l,9:u},{157:[1,1073]},t(Wi,Xi,{88:1074,192:Qi}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,1080],152:_t,154:[1,1081],161:bt,165:nt,190:St,208:1076,209:1077,210:1078,211:1079,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,118:1082,119:1083,120:1084,121:Ji,229:$r,281:Hr},t(tn,[2,1110]),t(Zi,to,{94:1087,271:eo,273:ro}),{128:[1,1090]},t(ce,[2,249]),t(ce,[2,258]),t(ce,[2,259]),t(le,[2,1099],{100:1091,115:1092,116:ue}),t(on,[2,251],{262:[1,1093]}),t(on,[2,254]),t(on,[2,256]),t(on,[2,257]),t(Zi,[2,1097],{98:1094,191:1095,192:[1,1096]}),t(ge,[2,1096],{162:1097,188:no,189:io,190:oo}),t([2,4,5,6,7,8,9,14,76,78,81,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,100],{82:[1,1101]}),{128:[1,1102]},t(so,[2,103]),{2:r,3:1103,4:n,5:i,6:s,7:a,8:l,9:u},t(so,[2,105]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1104,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1105,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1107,127:cn,131:hn,132:dn,133:pn,134:1106,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{82:[1,1108]},{82:[1,1109]},{82:[1,1110]},{82:[1,1111]},t(so,[2,114]),t(so,[2,115]),t(so,[2,116]),t(so,[2,117]),t(so,[2,118]),t(so,[2,119]),{2:r,3:1112,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1113,4:n,5:i,6:s,7:a,8:l,9:u,142:[1,1114]},t(so,[2,123]),t(so,[2,124]),t(so,[2,125]),t(so,[2,126]),t(so,[2,127]),t(so,[2,128]),{2:r,3:1115,4:n,5:i,6:s,7:a,8:l,9:u,82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},{154:[1,1116]},{82:[1,1117]},{154:[1,1118]},t(so,[2,133]),{82:[1,1119]},{2:r,3:1120,4:n,5:i,6:s,7:a,8:l,9:u},{82:[1,1121]},{82:[1,1122]},{82:[1,1123]},{82:[1,1124]},{82:[1,1125],173:[1,1126]},{82:[1,1127]},{82:[1,1128]},{82:[1,1129]},{82:[1,1130]},{82:[1,1131]},{82:[1,1132]},{82:[1,1133]},{82:[1,1134]},{82:[1,1135]},{82:[2,363]},{82:[2,1125]},{82:[2,1126]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1136},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1137},{122:1138,141:mt,329:zt},t(rt,[2,631],{121:[1,1139]}),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1140},{122:1141,141:mt,329:zt},{2:r,3:1142,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,734]),t(rt,[2,72]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:1143,80:[1,1144]},t(Qn,[2,76]),{82:[1,1145]},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1146,120:1147,229:$r,281:Hr},t(rt,[2,715]),t(rt,[2,621]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1148,229:$r,281:Hr,370:1149,371:1151},{153:1154,154:ye,456:204,457:te,461:ee},t(rt,[2,710]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1155,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ci,Li,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:1156,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{83:[1,1157]},{122:1158,141:mt,329:zt},{2:r,3:292,4:n,5:i,6:s,7:a,8:l,9:u,486:1159,487:be},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1161,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,250:ni,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee,467:1160,471:ii},t(rt,[2,690]),{123:1163,124:ze,125:Ve,133:[1,1162]},t(rt,[2,702]),t(rt,[2,703]),{2:r,3:1165,4:n,5:i,6:s,7:a,8:l,9:u,82:uo,140:co,470:1164},{123:865,124:ze,125:Ve,133:[1,1168],468:1169},t(rt,[2,795],{78:oi}),{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:1170},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1171,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1172,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1173,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(li,[2,161]),t(li,[2,1140],{78:ho}),t(po,[2,277]),t(po,[2,284],{123:660,360:672,3:1176,122:1178,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1175],109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,140:[1,1177],141:mt,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,329:zt,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Oe,[2,1141],{206:1179,799:[1,1180]}),{140:gt,205:1181},t(fo,go),{78:oi,83:[1,1182]},t(et,[2,15]),{157:[1,1183],199:[1,1184]},{199:[1,1185]},{199:[1,1186]},{199:[1,1187]},t(rt,[2,610],{81:[1,1189],82:[1,1188]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1190,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Dr,mo,{303:1191,307:yo}),t(ai,[2,1186]),t(ai,[2,1183]),t(ai,[2,1184]),{78:ti,83:[1,1193]},{78:ti,83:[1,1194]},t(Dr,[2,368]),{78:[1,1195]},{78:[1,1196]},{78:[1,1197]},{78:[1,1198]},{78:[1,1199],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Dr,[2,374]),t(rt,[2,615]),{331:[1,1200]},{2:r,3:1201,4:n,5:i,6:s,7:a,8:l,9:u,122:1202,141:mt,329:zt},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1203},{250:[1,1204]},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,513:1205,514:611,517:612,521:617,532:614,536:616},t(rt,[2,772],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(si,[2,1219],{516:1206,522:1207,81:_o}),t(di,[2,1218]),{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,153:1210,154:ye,161:Ke,456:204,457:te,461:ee,514:1209,532:614,536:616},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1212,521:617,532:614,536:616},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,512:1214,513:610,514:611,517:612,521:617,532:614,536:616},t(mi,[2,1237],{530:1215,141:[1,1216]}),t(fi,[2,1236]),t(yi,[2,1243],{534:1217,536:1218,161:Ke}),t(mi,[2,1242]),t(yi,[2,788]),t(yi,[2,1246]),t(fi,[2,791]),t(fi,[2,792]),t(yi,[2,790]),t(_i,[2,782]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1219},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1220},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1221,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(vo,[2,1213],{506:1222,122:1223,141:mt,329:zt}),t(vi,[2,1212]),{2:r,3:1224,4:n,5:i,6:s,7:a,8:l,9:u},{368:xo,372:bo,373:To,549:1225},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1229},t(xi,[2,807]),t(xi,[2,808]),t(xi,[2,809]),{138:[1,1230]},{294:[1,1231]},{294:[1,1232]},t(Fe,[2,729]),t(Fe,[2,730],{133:[1,1233]}),{4:Ni,11:940,300:1234,424:939,426:Ai},t([2,4,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,577],{5:[1,1235]}),t([2,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,574],{4:[1,1237],82:[1,1236]}),{82:[1,1238]},t(Eo,[2,8]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1239,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,477]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1240,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,623]),t(ci,[2,603]),{2:r,3:1241,4:n,5:i,6:s,7:a,8:l,9:u,122:1242,141:mt,329:zt},t(rt,[2,599],{78:Oo}),t(Fe,[2,601]),t(rt,[2,648],{78:Oo}),t(rt,[2,707]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1244,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(So,[2,397],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(ji,[2,398],{123:660,360:672,349:dr}),t(So,[2,399],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(No,[2,400],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,347:[1,1245],349:dr,350:pr,351:fr,352:gr}),t(No,[2,402],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,347:[1,1246],349:dr,350:pr,351:fr,352:gr}),t(me,[2,404],{123:660,360:672}),t(Mi,[2,405],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Mi,[2,406],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Ao,[2,407],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t(Ao,[2,408],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t(Ao,[2,409],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,132,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,410],{123:660,360:672,124:ze,125:Ve,145:Qe,345:ur,349:dr}),t(wo,[2,411],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,412],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,413],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,414],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(Rr,[2,415],{82:Ce}),t(me,[2,416]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1247,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,418]),t(Rr,[2,419],{82:Ce}),t(me,[2,420]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1248,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,422]),t(Ro,[2,423],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,424],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,425],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,426],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,82,96,109,133,148,149,155,163,165,179,180,198,294,295,322,339,343,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Co,{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,428],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,429],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,430],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,431],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,432],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),{82:[1,1249]},{82:[2,467]},{82:[2,468]},{82:[2,469]},t(Lo,[2,435],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,436],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1250,60:175,82:xe,83:[1,1252],85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1251,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,449]),t(me,[2,451]),t(me,[2,458]),t(me,[2,459]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1253]},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1254],120:997,154:Ii,165:nt,209:998,211:1256,229:$r,281:Hr,293:it,322:ot,323:st,324:at,325:lt,326:ut,362:1255},t(me,[2,456]),t(Lo,[2,453],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t(Lo,[2,454],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,455],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr}),t(me,[2,457]),t(me,Io),t(me,[2,318]),t(me,[2,319]),t(me,[2,442]),{78:ti,83:[1,1257]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1258,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1259,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ko,Do,{123:660,360:672,305:1260,109:qe,121:Ge,124:ze,125:Ve,127:Po,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1262,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,Mo),t(jo,[2,294]),{2:r,3:1264,4:n,5:i,6:s,7:a,8:l,9:u},t(me,[2,286]),t(jo,[2,291]),t(me,[2,287]),t(jo,[2,292]),t(me,[2,288]),{83:[1,1265],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1266]},{338:1267,339:Ki,340:1027,341:Kr,343:Ui},{339:[1,1268]},t(Fi,[2,392]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1269,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1270],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{81:[1,1271],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1272]},t(Ur,[2,676]),{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,333:[1,1273],335:Xt,350:Br,456:204,457:te,459:1274,460:724,461:ee},t(Hi,[2,665]),{83:[1,1275],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:1276,4:n,5:i,6:s,7:a,8:l,9:u,154:Di,158:Pi},{2:r,3:1019,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1021,4:n,5:i,6:s,7:a,8:l,9:u},t(me,[2,385]),t(Ur,[2,673]),{2:r,3:745,4:n,5:i,6:s,7:a,8:l,9:u,140:qr,141:Gr,463:[1,1277],465:1278},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1279,460:724,461:ee},{140:gt,205:1280},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1281,460:724,461:ee},{140:gt,205:1282},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1283,460:724,461:ee},{140:gt,205:1284},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1285,456:204,457:te,461:ee},t(Ko,wi,{369:1286,78:Uo,503:Ri}),{158:zi,375:1288,379:Vi},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,84:1289,85:75,95:76,96:f,104:1292,120:1291,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,wi,{369:1293,503:Ri}),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1294,229:$r,281:Hr,370:1149,371:1151},t(Fo,[2,497]),t(Fo,[2,498]),t($o,[2,502]),t($o,[2,503]),{44:1298,82:[1,1297],85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1295,376:1296,379:Vi,456:204,457:te,461:ee},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:1299,335:Xt},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1300,456:204,457:te,461:ee},t(Ko,wi,{369:1301,78:Uo,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},{341:Ho,496:1302,497:1303,498:1304},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1306,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{250:[2,738]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,44:753,82:Bo,85:75,95:76,96:f,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,193:102,198:v,208:229,209:231,210:230,211:232,218:1307,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(Vr,qo,{3:759,219:1309,230:1310,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,191]),t(Vr,[2,1148]),t(Vr,[2,193]),t(Vr,[2,200]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,127,133,137,152,154,155,157,158,161,163,165,171,177,178,190,192,196,198,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],[2,202]),{2:r,3:1311,4:n,5:i,6:s,7:a,8:l,9:u},t(Go,[2,1093],{89:1312,102:1313,103:zo,108:Vo}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1317],141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,212:1316,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(Qr,[2,174]),t(Qr,[2,175]),t(Qr,[2,176]),t(Qr,[2,177]),t(Qr,[2,178]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u},t(le,[2,93],{78:[1,1319]}),t(Yo,[2,95]),t(Yo,[2,96]),{122:1320,141:mt,329:zt},t([14,76,78,83,103,108,127,133,137,171,177,178,192,207,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],Cr,{125:Bi}),t(Zi,[2,80]),{140:gt,205:1321},{140:gt,205:1322},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1323,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Qr,Jr,{87:1326,207:Zr}),t(le,[2,1100]),t(on,[2,255]),t(Zi,[2,81]),t(Zi,[2,1098]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1327,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,136]),t(so,[2,154]),t(so,[2,155]),t(so,[2,156]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,83:[2,1117],104:285,120:159,122:163,136:1328,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1329,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1330]},t(so,[2,104]),t([2,4,5,6,7,8,9,14,76,78,81,82,83,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,106],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t([2,4,5,6,7,8,9,14,76,78,81,82,83,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,107],{123:660,360:672,109:qe,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1331],121:un,123:790,124:ze,125:Ve,126:1332,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},t(Wo,[2,1113],{162:1097,188:no,189:io,190:oo}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1334,127:cn,131:hn,132:dn,133:pn,135:1333,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1335,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1336,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1337,4:n,5:i,6:s,7:a,8:l,9:u},t(so,[2,120]),t(so,[2,121]),t(so,[2,122]),t(so,[2,129]),{2:r,3:1338,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1339,229:$r,281:Hr,370:1149,371:1151},{2:r,3:1340,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1341,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,135]),t(Wo,[2,1119],{164:1342}),t(Wo,[2,1121],{166:1343}),t(Wo,[2,1123],{168:1344}),t(Wo,[2,1127],{170:1345}),t(Xo,Qo,{172:1346,187:1347}),{82:[1,1348]},t(Wo,[2,1129],{174:1349}),t(Wo,[2,1131],{176:1350}),t(Xo,Qo,{187:1347,172:1351}),t(Xo,Qo,{187:1347,172:1352}),t(Xo,Qo,{187:1347,172:1353}),t(Xo,Qo,{187:1347,172:1354}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1355,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1356,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Jo,[2,1133],{185:1357}),t(rt,[2,641],{192:[1,1358]}),t(rt,[2,637],{192:[1,1359]}),t(rt,[2,630]),{122:1360,141:mt,329:zt},t(rt,[2,639],{192:[1,1361]}),t(rt,[2,634]),t(rt,[2,635],{121:[1,1362]}),t(Qn,[2,73]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:1363},{44:1364,82:p,85:75,95:76,96:f,193:102,198:v},{78:Zo,83:[1,1365]},t(ts,es),t(rt,wi,{369:1368,78:rs,137:[1,1367],503:Ri}),t(ns,[2,472]),{133:[1,1370]},{2:r,3:1371,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,[2,1189]),t(ke,[2,1190]),t(rt,[2,653]),t(ei,[2,376],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ro,Co,{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t([14,78,83,109,121,124,125,127,132,133,142,145,147,148,149,150,151,163,171,177,178,179,180,188,189,271,273,339,343,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,639,798],Io),t(Fe,[2,723]),t(Fe,[2,725]),t(rt,[2,689]),t(rt,[2,691],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1372,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1165,4:n,5:i,6:s,7:a,8:l,9:u,82:uo,140:co,470:1373},t(is,[2,698]),t(is,[2,699]),t(is,[2,700]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1374,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1375,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{123:1163,124:ze,125:Ve,133:[1,1376]},t(si,[2,797]),t(li,[2,158],{78:ho}),t(li,[2,159],{78:ho}),t(li,[2,160],{78:ho}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:1377,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1378,4:n,5:i,6:s,7:a,8:l,9:u,122:1380,140:[1,1379],141:mt,329:zt},t(po,[2,279]),t(po,[2,281]),t(po,[2,283]),t(Oe,[2,170]),t(Oe,[2,1142]),{83:[1,1381]},t(Ae,[2,800]),{2:r,3:1382,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1383,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,421:1384},{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,421:1386},{2:r,3:1387,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1388,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1389,4:n,5:i,6:s,7:a,8:l,9:u},{78:ti,83:[1,1390]},t(Dr,[2,365]),{82:[1,1391]},t(Dr,[2,366]),t(Dr,[2,367]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1392,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1393,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1394,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1395,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1396,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ci,[2,532]),t(rt,os,{444:1397,81:ss,82:[1,1398]}),t(rt,os,{444:1400,81:ss}),{82:[1,1401]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1402},t(si,[2,773]),t(si,[2,775]),t(si,[2,1220]),{152:Te,154:Ee,469:1403},t(as,[2,1221],{456:204,518:1404,153:1405,154:ye,457:te,461:ee}),{81:_o,148:[2,1225],520:1406,522:1407},t([14,78,81,83,141,148,154,161,339,343,457,461,639,798],gi,{529:912,532:913,146:je}),t(si,[2,778]),t(si,pi),{78:hi,83:[1,1408]},t(yi,[2,1239],{531:1409,536:1410,161:Ke}),t(mi,[2,1238]),t(yi,[2,787]),t(yi,[2,1244]),t(rt,[2,518],{82:[1,1411]}),{81:[1,1413],82:[1,1412]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,157:[1,1414],163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Ko,ls,{85:75,95:76,193:102,507:1415,44:1418,82:p,96:f,155:us,198:v,509:cs}),t(vo,[2,1214]),t(vi,[2,765]),{250:[1,1419]},t(hs,[2,811]),t(hs,[2,812]),t(hs,[2,813]),t(xi,bi,{548:1420,105:Ti,552:Ei,553:Oi,554:Si}),t(xi,[2,810]),t(rt,[2,324]),t(rt,[2,325]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1421,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Fe,[2,731],{133:[1,1422]}),t(Eo,[2,576]),{140:[1,1424],425:1423,427:[1,1425]},t(Eo,[2,9]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1426,456:204,457:te,461:ee},t(rt,wi,{123:660,360:672,369:1427,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,503:Ri}),t(Ko,[2,760],{78:ho,207:[1,1428]}),t(rt,[2,624]),t(rt,[2,625]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1429},t(rt,[2,709]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1430,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1431,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1432],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1433],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1434,60:175,82:xe,85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1435,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1436]},{78:ti,83:[1,1437]},t(me,[2,447]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1438,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1439,60:175,82:xe,83:[1,1441],85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1440,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,450]),t(me,[2,452]),t(me,mo,{303:1442,307:yo}),{83:[1,1443],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1444],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{9:ds,83:ps,306:1445},{128:[1,1447]},t(ko,Do,{123:660,360:672,305:1448,109:qe,121:Ge,124:ze,125:Ve,127:Po,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:1449,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1450]},t(jo,[2,295]),t(Ur,[2,654]),t(me,[2,384]),{339:[1,1451]},t(me,[2,391]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,339:[2,395],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1452,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1453,424:939,426:Ai},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1454,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ur,[2,677]),t($i,[2,687]),t(Hi,[2,672]),t(jo,Mo),t(Ur,[2,674]),t(Gi,[2,679]),t(Gi,[2,681]),t(Gi,[2,684]),t(Gi,[2,682]),t(Gi,[2,685]),t(Gi,[2,683]),t(Gi,[2,686]),t(Ko,wi,{369:1456,78:Uo,503:Ri}),t(Ko,[2,479]),{82:[1,1457],152:_t,153:1458,154:ye,161:bt,190:St,210:1459,335:Xt,456:204,457:te,461:ee},t(Ko,wi,{369:1460,503:Ri}),{78:Zo,83:[1,1461]},{78:fs,83:[1,1462]},t([78,83,109,121,124,125,132,133,142,145,147,148,149,150,151,163,179,180,188,189,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366],es),t(gs,[2,507],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ko,[2,493]),t(Ko,wi,{369:1464,78:rs,503:Ri}),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1465,456:204,457:te,461:ee},t(Ko,wi,{369:1466,78:Uo,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,84:1467,85:75,95:76,96:f,104:1292,120:1291,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,wi,{369:1468,503:Ri}),{44:1471,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1469,376:1470,379:Vi,456:204,457:te,461:ee},t(Ko,wi,{369:1473,78:Uo,503:Ri}),t(Ko,[2,489]),t(rt,wi,{369:1474,497:1475,498:1476,341:Ho,503:Ri}),t(ys,[2,743]),t(ys,[2,744]),{163:[1,1478],499:[1,1477]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,341:[2,740],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1479]},{44:1480,82:p,85:75,95:76,96:f,193:102,198:v},t(Vr,[2,190]),t(Vr,[2,1144]),t(rt,[2,609]),t(_s,vs,{90:1481,137:xs}),t(Go,[2,1094]),{82:[1,1483]},{82:[1,1484]},t(Wi,[2,179],{213:1485,232:1487,214:1488,233:1489,241:1492,78:bs,215:Ts,217:Es,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,44:753,82:Bo,85:75,95:76,96:f,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,193:102,198:v,208:229,209:231,210:230,211:232,212:1501,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,188]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,119:1502,120:1084,121:Ji,229:$r,281:Hr},t(Yo,[2,97]),t(Zi,[2,274],{272:1503,273:[1,1504]}),{274:1505,275:[2,1169],800:[1,1506]},t(en,[2,261],{78:Is}),t(ks,[2,262]),t(ks,[2,266],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,268:[1,1508],269:[1,1509],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Wi,Xi,{88:1510,192:Qi}),t(Zi,[2,157],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{83:[1,1511]},{78:ti,83:[2,1118]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,83:[2,1111],104:1325,120:159,122:163,129:1512,130:1513,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,268:[1,1514],280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,108]),t(Wo,[2,1114],{162:1097,188:no,189:io,190:oo}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1515],121:un,123:790,124:ze,125:Ve,126:1516,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},t(Wo,[2,1115],{162:1097,188:no,189:io,190:oo}),{83:[1,1517],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1518],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1519]},t(so,[2,130]),{78:rs,83:[1,1520]},t(so,[2,132]),{78:ti,83:[1,1521]},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1522],121:un,123:790,124:ze,125:Ve,126:1523,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1524],121:un,123:790,124:ze,125:Ve,126:1525,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1526],121:un,123:790,124:ze,125:Ve,126:1527,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1528],121:un,123:790,124:ze,125:Ve,126:1529,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{78:Ds,83:[1,1530]},t(gs,[2,153],{456:204,3:787,123:790,153:812,167:822,169:823,126:1532,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),t(Xo,Qo,{187:1347,172:1533}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1534],121:un,123:790,124:ze,125:Ve,126:1535,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1536],121:un,123:790,124:ze,125:Ve,126:1537,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{78:Ds,83:[1,1538]},{78:Ds,83:[1,1539]},{78:Ds,83:[1,1540]},{78:Ds,83:[1,1541]},{83:[1,1542],162:1097,188:no,189:io,190:oo},{78:ho,83:[1,1543]},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,78:[1,1544],81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1545,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:1546,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1547,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,632]),{2:r,3:1548,4:n,5:i,6:s,7:a,8:l,9:u},{122:1549,141:mt,329:zt},t(Qn,[2,74]),{83:[1,1550]},{81:[1,1551]},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1552,229:$r,281:Hr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1553,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,471]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,229:$r,281:Hr,370:1554,371:1151},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1555,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{133:[1,1556]},t(rt,[2,692],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(is,[2,697]),{83:[1,1557],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,[2,693],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1558,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(po,[2,276]),t(po,[2,278]),t(po,[2,280]),t(po,[2,282]),t(Oe,[2,171]),t(rt,[2,604]),{157:[1,1559]},t(rt,[2,605]),t(si,[2,571],{424:939,11:940,300:1560,4:Ni,423:[1,1561],426:Ai}),t(rt,[2,606]),t(rt,[2,608]),{78:ti,83:[1,1562]},t(rt,[2,612]),t(Dr,mo,{303:1563,307:yo}),t(Ps,[2,1179],{308:1564,310:1565,311:[1,1566]}),{78:[1,1567],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1568],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1569],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1570],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1571],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,[2,616]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1572,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1573,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,618]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1574,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1575]},{2:r,3:1576,4:n,5:i,6:s,7:a,8:l,9:u},{81:_o,148:[2,1223],519:1577,522:1578},t(as,[2,1222]),{148:[1,1579]},{148:[2,1226]},t(si,[2,779]),t(yi,[2,786]),t(yi,[2,1240]),{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1582],386:1580,393:1581,421:1583},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1584,120:1147,229:$r,281:Hr},{44:1585,82:p,85:75,95:76,96:f,193:102,198:v},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1586,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,764]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1587,229:$r,281:Hr,370:1149,371:1151},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1588,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,769]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1589},{368:xo,372:bo,373:To,549:1590},t(Fe,[2,732],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1591,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:[1,1592],83:[1,1593]},t(gs,[2,578]),t(gs,[2,579]),{78:fs,83:[1,1594]},t(rt,[2,476]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:Te,154:Ee,208:1596,469:1595},t(Fe,[2,600]),t(So,[2,401],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(So,[2,403],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(me,[2,417]),t(me,[2,421]),{83:[1,1597]},{78:ti,83:[1,1598]},t(me,[2,443]),t(me,[2,445]),{83:[1,1599],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1600]},{78:ti,83:[1,1601]},t(me,[2,448]),t(me,[2,340]),t(me,mo,{303:1602,307:yo}),t(me,mo,{303:1603,307:yo}),{83:[1,1604]},{141:[1,1605]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1606,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{9:ds,83:ps,306:1607},t(jo,[2,290]),t(me,[2,285]),t(me,[2,390]),t(Fi,[2,394],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{78:[1,1609],83:[1,1608]},{78:[1,1611],83:[1,1610],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:1449,4:n,5:i,6:s,7:a,8:l,9:u},t(Ko,[2,478]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1612,456:204,457:te,461:ee},t($o,[2,505]),t($o,[2,506]),t(Ko,[2,490]),{44:1615,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1613,376:1614,379:Vi,456:204,457:te,461:ee},t($o,[2,501]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1616,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,496]),t(Ko,wi,{369:1617,78:Uo,503:Ri}),t(Ko,[2,481]),{78:Zo,83:[1,1618]},t(Ko,[2,484]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1619,456:204,457:te,461:ee},t(Ko,wi,{369:1620,78:Uo,503:Ri}),t(Ko,wi,{369:1621,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,85:75,95:76,96:f,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,[2,488]),t(rt,[2,735]),t(ys,[2,741]),t(ys,[2,742]),{179:[1,1623],342:[1,1622]},{499:[1,1624]},{250:[2,739]},{83:[1,1625]},t(fo,Ms,{91:1626,252:js}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1628,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1629,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1630,4:n,5:i,6:s,7:a,8:l,9:u},t(Wi,[2,180],{233:1489,241:1492,232:1632,214:1633,78:[1,1631],215:Ts,217:Es,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:1634,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,208]),t(ts,[2,209]),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1639],152:_t,153:1637,154:vt,161:bt,165:nt,190:St,208:1636,209:1640,210:1638,211:1641,234:1635,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{216:[1,1642],243:Ks},{216:[1,1644],243:Us},t(Fs,[2,217]),{215:[1,1648],217:[1,1647],241:1646,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Fs,[2,219]),{243:[1,1649]},{217:[1,1651],243:[1,1650]},{217:[1,1653],243:[1,1652]},{217:[1,1654]},{243:[1,1655]},{243:[1,1656]},{78:bs,213:1657,214:1488,215:Ts,217:Es,232:1487,233:1489,241:1492,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Yo,[2,94]),t(Zi,[2,272]),{140:gt,205:1658},{275:[1,1659]},{275:[2,1170]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1660,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ks,[2,267],{264:1661,265:[1,1662]}),{270:[1,1663]},t(Go,[2,1101],{101:1664,102:1665,103:zo,108:Vo}),t(so,[2,110]),{78:Is,83:[1,1666]},{83:[1,1667]},{83:[2,1112]},t(so,[2,109]),t(Wo,[2,1116],{162:1097,188:no,189:io,190:oo}),t(so,[2,111]),t(so,[2,112]),t(so,[2,113]),t(so,[2,131]),t(so,[2,134]),t(so,[2,137]),t(Wo,[2,1120],{162:1097,188:no,189:io,190:oo}),t(so,[2,138]),t(Wo,[2,1122],{162:1097,188:no,189:io,190:oo}),t(so,[2,139]),t(Wo,[2,1124],{162:1097,188:no,189:io,190:oo}),t(so,[2,140]),t(Wo,[2,1128],{162:1097,188:no,189:io,190:oo}),t(so,[2,141]),t(Xo,[2,1135],{186:1668}),t(Xo,[2,1138],{162:1097,188:no,189:io,190:oo}),{78:Ds,83:[1,1669]},t(so,[2,143]),t(Wo,[2,1130],{162:1097,188:no,189:io,190:oo}),t(so,[2,144]),t(Wo,[2,1132],{162:1097,188:no,189:io,190:oo}),t(so,[2,145]),t(so,[2,146]),t(so,[2,147]),t(so,[2,148]),t(so,[2,149]),t(so,[2,150]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1670,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Jo,[2,1134],{162:1097,188:no,189:io,190:oo}),t(rt,[2,642]),t(rt,[2,638]),t(rt,[2,640]),t(rt,[2,636]),t(Qn,[2,77]),{82:[1,1671]},t(ts,[2,516]),t(rt,wi,{123:660,360:672,369:1672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,503:Ri}),t(ns,[2,473]),t(ns,[2,474],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1673,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(is,[2,701]),t(rt,[2,694],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:1674,4:n,5:i,6:s,7:a,8:l,9:u},t(si,[2,580],{422:1675,428:1676,429:1677,401:1685,163:$s,196:Hs,250:Bs,330:qs,378:Gs,391:zs,403:Vs,404:Ys,407:Ws,408:Xs}),t(si,[2,570]),t(rt,[2,611],{81:[1,1689]}),t(Dr,[2,364]),{83:[2,1181],127:[1,1692],309:1690,312:1691},t(Ps,[2,1180]),{128:[1,1693]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1694,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1695,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1696,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1697,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1698,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:ti,83:[1,1699]},t(rt,[2,620]),{78:Is,83:[1,1700]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1701,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t([14,78,83,148,339,343,639,798],[2,783]),{148:[1,1702]},{148:[2,1224]},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1703,521:617,532:614,536:616},{83:[1,1704]},{78:[1,1705],83:[2,534]},{44:1706,82:p,85:75,95:76,96:f,193:102,198:v},t(gs,[2,567]),{78:Zo,83:[1,1707]},t(rt,[2,1207],{449:1708,450:1709,76:Qs}),t(Ko,ls,{85:75,95:76,193:102,123:660,360:672,44:1418,507:1711,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:us,163:nr,179:ir,180:or,188:sr,189:ar,198:v,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,509:cs}),t(Ko,[2,767],{78:rs}),t(Ko,[2,768],{78:ti}),t([14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],[2,1255],{550:1712,3:1713,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1714]}),t(Js,[2,1257],{551:1715,81:[1,1716]}),t(Fe,[2,733],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{140:[1,1717]},t(Eo,[2,573]),t(Eo,[2,575]),{2:r,3:1718,4:n,5:i,6:s,7:a,8:l,9:u},t(Ko,[2,762],{82:[1,1719]}),t(me,[2,433]),t(me,[2,434]),t(me,[2,460]),t(me,[2,444]),t(me,[2,446]),t(me,[2,341]),t(me,[2,342]),t(me,[2,343]),{83:[2,352]},t(ko,[2,350],{78:Is}),{83:[1,1720]},t(me,[2,328]),{140:[1,1721]},t(me,[2,330]),{140:[1,1722]},{78:fs,83:[1,1723]},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1724,456:204,457:te,461:ee},t(Ko,wi,{369:1725,78:Uo,503:Ri}),t(Ko,wi,{369:1726,503:Ri}),t(gs,[2,508],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ko,[2,480]),{44:1729,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1727,376:1728,379:Vi,456:204,457:te,461:ee},t(Ko,wi,{369:1730,78:Uo,503:Ri}),t(Ko,[2,487]),t(Ko,[2,494]),{368:Zs,372:ta,500:1731},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1734,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{128:[1,1736],179:[1,1737],342:[1,1735]},t([78,215,217,242,243,244,245,246,247,248,249],qo,{3:759,219:1309,230:1310,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,83:go,127:go,171:go,177:go,178:go,271:go,273:go}),t(ce,he,{260:243,92:1738,171:de,177:pe,178:fe}),{128:[1,1739]},t(_s,[2,235],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{105:[1,1740],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{105:[1,1741]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,212:1742,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,206]),t(ts,[2,207]),t(ts,[2,189]),t(ts,[2,233],{235:1743,250:[1,1744],251:[1,1745]}),t(Vr,[2,1159],{3:759,236:1746,230:1747,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(zr,[2,1161],{237:1748,81:[1,1749]}),{2:r,3:759,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,230:1750},{44:1751,82:p,85:75,95:76,96:f,193:102,198:v},t(Vr,[2,1165],{3:759,239:1752,230:1753,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1167],{3:759,240:1754,230:1755,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),{82:[1,1756]},t(Fs,[2,229]),{82:[1,1757]},t(Fs,[2,225]),t(Fs,[2,218]),{243:Us},{243:Ks},t(Fs,[2,220]),t(Fs,[2,221]),{243:[1,1758]},t(Fs,[2,223]),{243:[1,1759]},{243:[1,1760]},t(Fs,[2,227]),t(Fs,[2,228]),{83:[1,1761],214:1633,215:Ts,217:Es,232:1632,233:1489,241:1492,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Zi,[2,275]),{140:[2,1171],276:1762,681:[1,1763]},t(ks,[2,263]),t(ks,[2,268]),{266:[1,1764],267:[1,1765]},t(ks,[2,269],{268:[1,1766]}),t(_s,vs,{90:1767,137:xs}),t(Go,[2,1102]),t(so,[2,101]),t(so,[2,102]),t(gs,[2,152],{456:204,3:787,123:790,153:812,167:822,169:823,126:1768,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),t(so,[2,142]),{78:ti,83:[1,1769]},{44:1770,82:p,85:75,95:76,96:f,193:102,198:v},t(rt,[2,470]),t(ns,[2,475],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(rt,[2,607]),t(si,[2,569]),t(si,[2,581],{401:1685,429:1771,163:$s,196:Hs,250:Bs,330:qs,378:Gs,391:zs,403:Vs,404:Ys,407:Ws,408:Xs}),t(Zn,[2,583]),{6:[1,1772]},{6:[1,1773]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1774},t(Zn,[2,589],{82:[1,1775]}),{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1777],122:275,140:gt,141:mt,152:_t,161:bt,165:nt,190:St,205:274,209:1778,210:278,284:276,285:277,292:_e,293:ve,302:1776,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt},t(Zn,[2,593]),{330:[1,1779]},t(Zn,[2,595]),t(Zn,[2,596]),{368:[1,1780]},{82:[1,1781]},{2:r,3:1782,4:n,5:i,6:s,7:a,8:l,9:u},{83:[1,1783]},{83:[2,1182]},{128:[1,1784]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1785,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1791],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1792],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1793],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1794],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1795],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,os,{444:1796,81:ss}),t(rt,[2,626]),{78:Is,83:[1,1797]},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1798,521:617,532:614,536:616},t(si,[2,777]),t(rt,[2,521],{387:1799,389:1800,390:1801,4:ia,269:oa,378:sa,391:aa}),t(la,ua,{3:1385,394:1806,421:1807,395:1808,396:1809,2:r,4:n,5:i,6:s,7:a,8:l,9:u,402:ca}),{83:[2,535]},{81:[1,1811]},t(rt,[2,644]),t(rt,[2,1208]),{403:[1,1813],451:[1,1812]},t(Ko,[2,770]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1814,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,804]),t(Js,[2,1256]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1815,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(Js,[2,1258]),{83:[1,1816]},t(Ko,[2,761]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1817,120:1147,229:$r,281:Hr},t(me,[2,344]),{83:[1,1818]},{83:[1,1819]},t($o,[2,504]),t(Ko,wi,{369:1820,78:Uo,503:Ri}),t(Ko,[2,492]),t(Ko,[2,495]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1821,456:204,457:te,461:ee},t(Ko,wi,{369:1822,78:Uo,503:Ri}),t(Ko,wi,{369:1823,503:Ri}),t(Ko,[2,486]),t(ys,[2,745]),t(ys,[2,747]),{155:[1,1824]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1825],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{373:ha,501:1826},{454:[1,1829],502:[1,1828]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1830,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(en,rn,{93:1831,127:nn}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1832,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1833,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1834,4:n,5:i,6:s,7:a,8:l,9:u},t(Wi,[2,181],{78:bs}),t(ts,[2,210]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1835,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1837],84:1836,120:1147,229:$r,281:Hr},t(Vr,[2,211]),t(Vr,[2,1160]),t(Vr,[2,1163],{238:1838,3:1839,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),t(zr,[2,1162]),t(Vr,[2,213]),{83:[1,1840]},t(Vr,[2,215]),t(Vr,[2,1166]),t(Vr,[2,216]),t(Vr,[2,1168]),{44:1841,82:p,85:75,95:76,96:f,193:102,198:v},{44:1842,82:p,85:75,95:76,96:f,193:102,198:v},t(Fs,[2,222]),t(Fs,[2,224]),t(Fs,[2,226]),t(Wi,[2,182]),{140:gt,205:1843},{140:[2,1172]},t(ks,[2,264]),t(ks,[2,265]),t(ks,[2,270]),t(fo,Ms,{91:1844,252:js}),t(Xo,[2,1136],{162:1097,188:no,189:io,190:oo}),t(so,[2,151]),{83:[1,1845]},t(Zn,[2,582]),t(Zn,[2,585]),{408:[1,1846]},t(Zn,[2,1201],{432:1847,430:1848,82:da}),{140:gt,205:1850},t(Zn,[2,590]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1851,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Zn,[2,592]),t(Zn,[2,594]),{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1853],122:275,140:gt,141:mt,152:_t,161:bt,165:nt,190:St,205:274,209:279,210:278,284:276,285:277,292:_e,293:ve,302:1852,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1854,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,613]),t(Dr,[2,346]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1855,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ps,[2,347],{78:pa}),t(fa,[2,240]),{155:[1,1857]},{82:[1,1858]},{82:[1,1859]},t(fa,[2,245],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Dr,[2,369]),t(Dr,[2,370]),t(Dr,[2,371]),t(Dr,[2,372]),t(Dr,[2,373]),t(rt,[2,617]),t(rt,[2,627]),t(si,[2,776]),t(rt,[2,517]),t(rt,[2,522],{390:1860,4:ia,269:oa,378:sa,391:aa}),t(ga,[2,524]),t(ga,[2,525]),{133:[1,1861]},{133:[1,1862]},{133:[1,1863]},{78:[1,1864],83:[2,533]},t(gs,[2,568]),t(gs,[2,536]),{196:[1,1872],202:[1,1873],397:1865,398:1866,399:1867,400:1868,401:1869,403:Vs,404:[1,1870],407:[1,1871]},{2:r,3:1874,4:n,5:i,6:s,7:a,8:l,9:u},{44:1875,82:p,85:75,95:76,96:f,193:102,198:v},{452:[1,1876]},{453:[1,1877]},t(rt,[2,803]),t(rt,[2,805]),t(Eo,[2,572]),{78:Zo,83:[1,1878]},t(me,[2,329]),t(me,[2,331]),t(Ko,[2,491]),t(Ko,wi,{369:1879,78:Uo,503:Ri}),t(Ko,[2,483]),t(Ko,[2,485]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1880,229:$r,281:Hr,370:1149,371:1151},{368:Zs,372:ta,500:1881},t(ys,[2,749]),{82:[1,1883],378:[1,1884],379:[1,1882]},{179:[1,1886],342:[1,1885]},{179:[1,1888],342:[1,1887]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1889],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zi,to,{94:1890,271:eo,273:ro}),t([14,83,127,171,177,178,271,273,339,343,503,639,798],ma,{254:1891,76:[1,1892],78:pa,259:ya}),{83:[2,1103],106:1894,109:[1,1896],111:1895},{109:[1,1897]},t(ts,[2,230],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t([14,76,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],[2,231],{78:Zo}),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1898,120:1147,229:$r,281:Hr},t(Vr,[2,212]),t(Vr,[2,1164]),{2:r,3:759,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,230:1899},{83:[1,1900]},{83:[1,1901]},t(_a,[2,1173],{277:1902,800:[1,1903]}),t(ce,he,{260:243,92:1904,171:de,177:pe,178:fe}),t(Qn,[2,78]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1905},t(va,xa,{410:1906,412:1907,413:1908,250:ba}),t(Zn,[2,1202]),{2:r,3:1910,4:n,5:i,6:s,7:a,8:l,9:u},{78:[1,1911]},{83:[1,1912],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zn,[2,597]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1913,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1914],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:Is,83:[2,348]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,255:ea,256:ra,257:1915,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1916]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1917,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1918,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ga,[2,523]),{2:r,3:1919,4:n,5:i,6:s,7:a,8:l,9:u},{140:gt,205:1920},{2:r,3:1921,4:n,5:i,6:s,7:a,8:l,9:u},t(la,ua,{396:1809,395:1922,402:ca}),t(si,[2,538]),t(si,[2,539]),t(si,[2,540]),t(si,[2,541]),t(si,[2,542]),{6:[1,1923]},{6:[1,1924]},t([2,4,5,7,8,9,82],[2,1195],{419:1925,6:[1,1926]}),{2:r,3:1927,4:n,5:i,6:s,7:a,8:l,9:u},t(la,[2,544]),t(rt,[2,1205],{448:1928,450:1929,76:Qs}),t(rt,[2,645]),t(rt,[2,646],{402:[1,1930]}),t(Ko,[2,763]),t(Ko,[2,482]),t(ys,[2,748],{78:rs}),t(ys,[2,746]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1931,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1932,120:1147,229:$r,281:Hr},{379:[1,1933]},{373:ha,501:1934},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1935,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{373:ha,501:1936},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1937,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{373:ha,501:1938},t(Zi,[2,79]),t(fo,[2,237]),{255:[1,1939],256:[1,1940]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1941,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1942]},{83:[2,1104]},{82:[1,1943]},{82:[1,1944]},{78:Zo,83:[1,1945]},t(Vr,[2,214]),{2:r,3:1946,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1947]},{2:r,3:1948,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1949]},t(Zi,[2,1175],{278:1950,452:[1,1951]}),t(_a,[2,1174]),t(ce,[2,82]),t(Zn,[2,1199],{431:1952,430:1953,82:da}),t(Zn,[2,587]),t(va,[2,550],{413:1954,250:[1,1955]}),t(va,[2,551],{412:1956,250:[1,1957]}),{368:Ta,372:Ea},{83:[1,1960]},{140:gt,205:1961},t(Zn,[2,591]),{83:[1,1962],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zn,[2,545]),t(fa,[2,241]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1963,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:pa,83:[1,1964]},{78:pa,83:[1,1965]},t(ga,[2,526]),t(ga,[2,527]),t(ga,[2,528]),t(gs,[2,537]),{2:r,3:1967,4:n,5:i,6:s,7:a,8:l,9:u,82:[2,1191],405:1966},{82:[1,1968]},{2:r,3:1970,4:n,5:i,6:s,7:a,8:l,9:u,82:[2,1197],420:1969},t([2,4,5,6,7,8,9,82],[2,1196]),{82:[1,1971]},t(rt,[2,643]),t(rt,[2,1206]),t(la,ua,{396:1809,395:1972,402:ca}),t(ys,[2,755],{78:Uo}),{78:Zo,83:[1,1973]},t(ys,[2,757]),t(ys,[2,750]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1974],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(ys,[2,753]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1975],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(ys,[2,751]),t(fo,ma,{254:1976,259:ya}),t(fo,ma,{254:1977,259:ya}),t(fo,[2,247],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Go,[2,1105],{107:1978,113:1979,3:1981,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Oa}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1984,112:1982,114:1983,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1985,120:1147,229:$r,281:Hr},t(ts,[2,232]),t(ts,[2,184]),{2:r,3:1986,4:n,5:i,6:s,7:a,8:l,9:u},t(ts,[2,186]),{2:r,3:1987,4:n,5:i,6:s,7:a,8:l,9:u},t(Zi,[2,273]),t(Zi,[2,1176]),t(va,xa,{412:1907,413:1908,410:1988,250:ba}),t(Zn,[2,1200]),t(Zn,[2,552]),{368:Ta},t(Zn,[2,553]),{372:Ea},{155:Sa,414:1989,415:Na,416:Aa,417:wa},{155:Sa,414:1994,415:Na,416:Aa,417:wa},t(Zn,[2,584]),{83:[1,1995]},t(Zn,[2,598]),{78:pa,83:[1,1996]},t(fa,[2,243]),t(fa,[2,244]),{82:[1,1997]},{82:[2,1192]},{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:1998},{82:[1,2001]},{82:[2,1198]},{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2002},t(rt,[2,647]),{378:[1,2004],379:[1,2003]},{373:ha,501:2005},{368:Zs,372:ta,500:2006},t(fo,[2,238]),t(fo,[2,239]),t(Go,[2,84]),t(Go,[2,1106]),{2:r,3:2007,4:n,5:i,6:s,7:a,8:l,9:u},t(Go,[2,88]),{78:[1,2009],83:[1,2008]},t(gs,[2,90]),t(gs,[2,91],{123:660,360:672,81:[1,2010],109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{78:Zo,83:[1,2011]},t(ts,[2,185]),t(ts,[2,187]),t(Zn,[2,586]),t(Zn,[2,554]),t(Zn,[2,556]),{330:[1,2012],378:[1,2013]},t(Zn,[2,559]),{418:[1,2014]},t(Zn,[2,555]),t(Zn,[2,588]),t(fa,[2,242]),{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2015},{78:Ca,83:[1,2016]},t(gs,[2,563]),t(gs,[2,564]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:2018,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:Ca,83:[1,2019]},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:2020,456:204,457:te,461:ee},{379:[1,2021]},t(ys,[2,752]),t(ys,[2,754]),t(Go,[2,87]),{83:[2,86]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1984,114:2022,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:2023,4:n,5:i,6:s,7:a,8:l,9:u},{83:[1,2024]},t(Zn,[2,557]),t(Zn,[2,558]),t(Zn,[2,560]),{78:Ca,83:[1,2025]},{408:[1,2026]},{2:r,3:2027,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,2028]},{78:Is,83:[1,2029]},t(si,[2,562]),t(ys,[2,756],{78:Uo}),t(ys,[2,758]),t(gs,[2,89]),t(gs,[2,92]),t(Go,[2,1107],{3:1981,110:2030,113:2031,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Oa}),t(si,[2,546]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:2032},t(gs,[2,565]),t(gs,[2,566]),t(si,[2,561]),t(Go,[2,85]),t(Go,[2,1108]),t(La,[2,1193],{409:2033,411:2034,82:[1,2035]}),t(si,xa,{412:1907,413:1908,410:2036,250:ba}),t(La,[2,1194]),{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2037},t(si,[2,547]),{78:Ca,83:[1,2038]},t(La,[2,548])],defaultActions:{113:[2,10],208:[2,353],209:[2,354],210:[2,355],211:[2,356],212:[2,357],213:[2,358],214:[2,359],215:[2,360],216:[2,361],217:[2,362],225:[2,736],626:[2,1216],688:[2,1177],689:[2,1178],752:[2,737],834:[2,363],835:[2,1125],836:[2,1126],989:[2,467],990:[2,468],991:[2,469],1065:[2,738],1407:[2,1226],1479:[2,739],1506:[2,1170],1514:[2,1112],1578:[2,1224],1605:[2,352],1691:[2,1182],1706:[2,535],1763:[2,1172],1895:[2,1104],1967:[2,1192],1970:[2,1198],2008:[2,86]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[null],i=[],o=this.table,s="",a=0,l=0,u=0,c=2,h=1,d=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(t,f.yy),f.yy.lexer=p,f.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var m=p.yylloc;i.push(m);var y=p.options&&p.options.ranges;function _(t){r.length=r.length-2*t,n.length=n.length-t,i.length=i.length-t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,b,T,E,O,S,N,A,w=function(){var t;return"number"!=typeof(t=p.lex()||h)&&(t=e.symbols_[t]||t),t},R={};;){if(b=r[r.length-1],this.defaultActions[b]?T=this.defaultActions[b]:((null===v||typeof v>"u")&&(v=w()),T=o[b]&&o[b][v]),typeof T>"u"||!T.length||!T[0]){var C,L="",I=function(t){for(var e=r.length-1,n=0;;){if(c.toString()in o[t])return n;if(0===t||e<2)return!1;t=r[e-=2],++n}};if(u)x!==h&&(C=I(b));else{for(O in C=I(b),A=[],o[b])this.terminals_[O]&&O>c&&A.push("'"+this.terminals_[O]+"'");L=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(a+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(L,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:m,expected:A,recoverable:!1!==C})}if(3==u){if(v===h||x===h)throw new Error(L||"Parsing halted while starting to recover from another error.");l=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,v=w()}if(!1===C)throw new Error(L||"Parsing halted. No suitable error recovery rule available.");_(C),x=v==c?null:v,v=c,b=r[r.length-1],T=o[b]&&o[b][c],u=3}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(T[0]){case 1:r.push(v),n.push(p.yytext),i.push(p.yylloc),r.push(T[1]),v=null,x?(v=x,x=null):(l=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,u>0&&u--);break;case 2:if(S=this.productions_[T[1]][1],R.$=n[n.length-S],R._$={first_line:i[i.length-(S||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(S||1)].first_column,last_column:i[i.length-1].last_column},y&&(R._$.range=[i[i.length-(S||1)].range[0],i[i.length-1].range[1]]),typeof(E=this.performAction.apply(R,[s,l,a,f.yy,T[1],n,i].concat(d)))<"u")return E;S&&(r=r.slice(0,-1*S*2),n=n.slice(0,-1*S),i=i.slice(0,-1*S)),r.push(this.productions_[T[1]][0]),n.push(R.$),i.push(R._$),N=o[r[r.length-2]][r[r.length-1]],r.push(N);break;case 3:return!0}}return!0}},ka=["A","ABSENT","ABSOLUTE","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","ALWAYS","ASC","ASSERTION","ASSIGNMENT","ATTRIBUTE","ATTRIBUTES","BASE64","BEFORE","BERNOULLI","BLOCKED","BOM","BREADTH","C","CASCADE","CATALOG","CATALOG_NAME","CHAIN","CHARACTERISTICS","CHARACTERS","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CLASS_ORIGIN","CLOSE","COBOL","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMITTED","CONDITION_NUMBER","CONNECTION","CONNECTION_NAME","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTENT","CONTINUE","CONTROL","CURSOR_NAME","DATA","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DB","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETED","DEPTH","DERIVED","DESC","DESCRIPTOR","DIAGNOSTICS","DISPATCH","DOCUMENT","DOMAIN","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EMPTY","ENCODING","ENFORCED","EXCLUDE","EXCLUDING","EXPRESSION","FILE","FINAL","FIRST","FLAG","FOLLOWING","FORTRAN","FOUND","FS","G","GENERAL","GENERATED","GO","GOTO","GRANTED","HEX","HIERARCHY","ID","IGNORE","IMMEDIATE","IMMEDIATELY","IMPLEMENTATION","INCLUDING","INCREMENT","INDENT","INITIALLY","INPUT","INSERTED","INSTANCE","INSTANTIABLE","INSTEAD","INTEGRITY","INVOKER","ISOLATION","K","KEY","KEY_MEMBER","KEY_TYPE","LAST","LENGTH","LEVEL","LIBRARY","LIMIT","LINK","LOCATION","LOCATOR","M","MAP","MAPPING","MATCHED","MAXVALUE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","MINVALUE","MORE","MUMPS","NAME","NAMES","NAMESPACE","NESTING","NEXT","NFC","NFD","NFKC","NFKD","NIL","NORMALIZED","NULLABLE","NULLS","NUMBER","OBJECT","OCTETS","OFF","OPEN","OPTION","OPTIONS","ORDER","ORDERING","ORDINALITY","OTHERS","OUTPUT","OVERRIDING","P","PAD","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARTIAL","PASCAL","PASSING","PASSTHROUGH","PATH","PERMISSION","PLACING","PLI","PRECEDING","PRESERVE","PRIOR","PRIVILEGES","PUBLIC","READ","RECOVERY","RELATIVE","REPEATABLE","REQUIRING","RESPECT","RESTART","RESTORE","RESTRICT","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","ROLE","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW_COUNT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SECTION","SECURITY","SELECTIVE","SELF","SEPARATOR","SEQUENCE","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SETS","SIMPLE","SIZE","SOURCE","SPACE","SPECIFIC_NAME","STANDALONE","STATE","STATEMENT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","T","TABLE_NAME","TEMPORARY","TIES","TOKEN","TOP_LEVEL_COUNT","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TYPE","UNBOUNDED","UNCOMMITTED","UNDER","UNLINK","UNNAMED","UNTYPED","URI","USAGE","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","VALID","VERSION","VIEW","WHITESPACE","WORK","WRAPPER","WRITE","XMLDECLARATION","XMLSCHEMA","YES","ZONE"];Ia.parseError=function(t,e){if(!(e.expected&&e.expected.indexOf("'LITERAL'")>-1&&/[a-zA-Z_][a-zA-Z_0-9]*/.test(e.token)&&ka.indexOf(e.token)>-1))throw new SyntaxError(t)};var Da={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;oe[0].length)){if(e=r,n=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return 294;case 1:return 335;case 2:return 457;case 3:return 332;case 4:case 5:return 5;case 6:case 7:return 329;case 8:case 9:return 141;case 10:return;case 11:break;case 12:return 349;case 13:case 258:return 352;case 14:return e.yytext="VALUE",96;case 15:return e.yytext="VALUE",198;case 16:return e.yytext="ROW",198;case 17:return e.yytext="COLUMN",198;case 18:return e.yytext="MATRIX",198;case 19:return e.yytext="INDEX",198;case 20:return e.yytext="RECORDSET",198;case 21:return e.yytext="TEXT",198;case 22:return e.yytext="SELECT",198;case 23:return 558;case 24:return 418;case 25:return 439;case 26:return 553;case 27:return 319;case 28:case 29:return 297;case 30:return 173;case 31:return 437;case 32:return 179;case 33:return 249;case 34:return 175;case 35:return 216;case 36:return 320;case 37:return 81;case 38:return 455;case 39:case 88:return 268;case 40:return 441;case 41:case 119:return 391;case 42:return 318;case 43:return 552;case 44:return 475;case 45:return 363;case 46:return 480;case 47:return 364;case 48:case 51:case 53:case 55:return 348;case 49:return 128;case 50:case 52:case 54:case 139:return 121;case 56:case 99:case 100:return 546;case 57:return 336;case 58:return 415;case 59:return 299;case 60:return 403;case 61:return 139;case 62:return 8;case 63:return 269;case 64:case 65:return 199;case 66:return 472;case 67:return 402;case 68:return 509;case 69:return 478;case 70:return 301;case 71:return 262;case 72:return 315;case 73:return 295;case 74:return 215;case 75:return 256;case 76:return 292;case 77:case 78:return 293;case 79:return"CURSOR";case 80:case 200:return 442;case 81:return 323;case 82:return 324;case 83:return 325;case 84:return 488;case 85:return 378;case 86:return 372;case 87:return 281;case 89:return 443;case 90:return 194;case 91:return 433;case 92:return 487;case 93:return 144;case 94:return 339;case 95:return 426;case 96:return 343;case 97:return 347;case 98:case 147:return 178;case 101:return 331;case 102:return 18;case 103:return 328;case 104:return 275;case 105:return 266;case 106:return 105;case 107:return 407;case 108:return 192;case 109:return 247;case 110:return 296;case 111:return 346;case 112:return 639;case 113:return 511;case 114:return 252;case 115:return 304;case 116:return 258;case 117:return 259;case 118:return 165;case 120:return 377;case 121:return 365;case 122:return 109;case 123:return 202;case 124:return 223;case 125:return 244;case 126:return 554;case 127:return 373;case 128:return 229;case 129:return 177;case 130:return 326;case 131:return 207;case 132:return 479;case 133:return 243;case 134:return 6;case 135:return 267;case 136:return"LET";case 137:return 481;case 138:return 245;case 140:return 271;case 141:return 499;case 142:return 200;case 143:return 317;case 144:return 427;case 145:return 316;case 146:return 492;case 148:return 440;case 149:return 242;case 150:return 681;case 151:return 298;case 152:return 270;case 153:return 417;case 154:return 163;case 155:return 330;case 156:return 265;case 157:return 471;case 158:return 250;case 159:return 452;case 160:return 138;case 161:return 273;case 162:return 7;case 163:return 453;case 164:return 180;case 165:return 127;case 166:return 217;case 167:return 503;case 168:return 307;case 169:return 181;case 170:return 311;case 171:return 799;case 172:return 103;case 173:return 20;case 174:return 404;case 175:return 482;case 176:return 713;case 177:return 19;case 178:return 451;case 179:return 203;case 180:return"REDUCE";case 181:return 80;case 182:return 408;case 183:return 344;case 184:return 555;case 185:return 717;case 186:return 116;case 187:return 438;case 188:return 184;case 189:return 322;case 190:return 416;case 191:return 483;case 192:return 722;case 193:case 194:return 182;case 195:return 246;case 196:return 474;case 197:return 255;case 198:return 159;case 199:return 800;case 201:return 96;case 202:return 248;case 203:return 9;case 204:case 205:return 155;case 206:return 446;case 207:return 367;case 208:return 454;case 209:return"STRATEGY";case 210:return"STORE";case 211:return 313;case 212:return 314;case 213:case 214:return 388;case 215:return 502;case 216:case 217:return 392;case 218:return 201;case 219:return 342;case 220:return"TIMEOUT";case 221:return 157;case 222:return 204;case 223:case 224:case 242:return 473;case 225:return 547;case 226:return 327;case 227:return 491;case 228:return 171;case 229:return 196;case 230:return 108;case 231:return 368;case 232:return 445;case 233:return 251;case 234:return 158;case 235:return 379;case 236:return 143;case 237:return 447;case 238:return 341;case 239:return 137;case 240:return 477;case 241:return 76;case 243:return 4;case 244:return 140;case 245:return 124;case 246:return 146;case 247:return 188;case 248:return 350;case 249:return 189;case 250:return 142;case 251:return 147;case 252:return 359;case 253:return 356;case 254:return 358;case 255:return 355;case 256:return 353;case 257:return 351;case 259:return 151;case 260:return 150;case 261:return 148;case 262:return 354;case 263:case 266:return 357;case 264:return 149;case 265:return 133;case 267:return 82;case 268:return 83;case 269:return 461;case 270:return 463;case 271:return 333;case 272:return 466;case 273:return 545;case 274:return 131;case 275:return 125;case 276:return 78;case 277:return 366;case 278:return 161;case 279:return 798;case 280:return 152;case 281:return 190;case 282:return 145;case 283:return 132;case 284:return 345;case 285:return 154;case 286:return 14;case 287:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/i,/^(?:ARRAY\[)/i,/^(?:\[([^\]'])*?\])/i,/^(?:`([^\`'])*?`)/i,/^(?:N(['](\\.|[^']|\\')*?['])+)/i,/^(?:X(['](\\.|[^']|\\')*?['])+)/i,/^(?:(['](\\.|[^']|\\')*?['])+)/i,/^(?:(["](\\.|[^"]|\\")*?["])+)/i,/^(?:--(.*?)($|\r\n|\r|\n))/i,/^(?:\s+)/i,/^(?:\|\|)/i,/^(?:\|)/i,/^(?:VALUE\s+OF\s+SEARCH\b)/i,/^(?:VALUE\s+OF\s+SELECT\b)/i,/^(?:ROW\s+OF\s+SELECT\b)/i,/^(?:COLUMN\s+OF\s+SELECT\b)/i,/^(?:MATRIX\s+OF\s+SELECT\b)/i,/^(?:INDEX\s+OF\s+SELECT\b)/i,/^(?:RECORDSET\s+OF\s+SELECT\b)/i,/^(?:TEXT\s+OF\s+SELECT\b)/i,/^(?:SELECT\b)/i,/^(?:ABSOLUTE\b)/i,/^(?:ACTION\b)/i,/^(?:ADD\b)/i,/^(?:AFTER\b)/i,/^(?:AGGR\b)/i,/^(?:AGGREGATE\b)/i,/^(?:AGGREGATOR\b)/i,/^(?:ALL\b)/i,/^(?:ALTER\b)/i,/^(?:AND\b)/i,/^(?:ANTI\b)/i,/^(?:ANY\b)/i,/^(?:APPLY\b)/i,/^(?:ARRAY\b)/i,/^(?:AS\b)/i,/^(?:ASSERT\b)/i,/^(?:ASC\b)/i,/^(?:ATTACH\b)/i,/^(?:AUTO(_)?INCREMENT\b)/i,/^(?:AVG\b)/i,/^(?:BEFORE\b)/i,/^(?:BEGIN\b)/i,/^(?:BETWEEN\b)/i,/^(?:BREAK\b)/i,/^(?:NOT\s+BETWEEN\b)/i,/^(?:NOT\s+LIKE\b)/i,/^(?:BY\b)/i,/^(?:~~\*)/i,/^(?:!~~\*)/i,/^(?:~~)/i,/^(?:!~~)/i,/^(?:ILIKE\b)/i,/^(?:NOT\s+ILIKE\b)/i,/^(?:CALL\b)/i,/^(?:CASE\b)/i,/^(?:CASCADE\b)/i,/^(?:CAST\b)/i,/^(?:CHECK\b)/i,/^(?:CLASS\b)/i,/^(?:CLOSE\b)/i,/^(?:COLLATE\b)/i,/^(?:COLUMN\b)/i,/^(?:COLUMNS\b)/i,/^(?:COMMIT\b)/i,/^(?:CONSTRAINT\b)/i,/^(?:CONTENT\b)/i,/^(?:CONTINUE\b)/i,/^(?:CONVERT\b)/i,/^(?:CORRESPONDING\b)/i,/^(?:COUNT\b)/i,/^(?:CREATE\b)/i,/^(?:CROSS\b)/i,/^(?:CUBE\b)/i,/^(?:CURRENT_TIMESTAMP\b)/i,/^(?:CURRENT_DATE\b)/i,/^(?:CURDATE\b)/i,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\b)/i,/^(?:TIMESTAMPDIFF\b)/i,/^(?:DECLARE\b)/i,/^(?:DEFAULT\b)/i,/^(?:DELETE\b)/i,/^(?:DELETED\b)/i,/^(?:DESC\b)/i,/^(?:DETACH\b)/i,/^(?:DISTINCT\b)/i,/^(?:DROP\b)/i,/^(?:ECHO\b)/i,/^(?:EDGE\b)/i,/^(?:END\b)/i,/^(?:ENUM\b)/i,/^(?:ELSE\b)/i,/^(?:ESCAPE\b)/i,/^(?:EXCEPT\b)/i,/^(?:EXEC\b)/i,/^(?:EXECUTE\b)/i,/^(?:EXISTS\b)/i,/^(?:EXPLAIN\b)/i,/^(?:FALSE\b)/i,/^(?:FETCH\b)/i,/^(?:FIRST\b)/i,/^(?:FOR\b)/i,/^(?:FOREIGN\b)/i,/^(?:FROM\b)/i,/^(?:FULL\b)/i,/^(?:FUNCTION\b)/i,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUP_CONCAT\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\b)/i,/^(?:IGNORE\b)/i,/^(?:IS\b)/i,/^(?:IN\b)/i,/^(?:INDEX\b)/i,/^(?:INDEXED\b)/i,/^(?:INNER\b)/i,/^(?:INSTEAD\b)/i,/^(?:INSERT\b)/i,/^(?:INSERTED\b)/i,/^(?:INTERSECT\b)/i,/^(?:INTERVAL\b)/i,/^(?:INTO\b)/i,/^(?:ITERATE\b)/i,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\b)/i,/^(?:LEAVE\b)/i,/^(?:LEFT\b)/i,/^(?:LIKE\b)/i,/^(?:LIMIT\b)/i,/^(?:MATCHED\b)/i,/^(?:MATRIX\b)/i,/^(?:MAX\s*(?=\())/i,/^(?:MAX\s*(?=(,|\))))/i,/^(?:MIN\s*(?=\())/i,/^(?:MERGE\b)/i,/^(?:MINUS\b)/i,/^(?:MODIFY\b)/i,/^(?:NATURAL\b)/i,/^(?:NEXT\b)/i,/^(?:NEW\b)/i,/^(?:NOCASE\b)/i,/^(?:NO\b)/i,/^(?:NOT\b)/i,/^(?:NULL\b)/i,/^(?:NULLS\b)/i,/^(?:OFF\b)/i,/^(?:ON\b)/i,/^(?:ONLY\b)/i,/^(?:OF\b)/i,/^(?:OFFSET\b)/i,/^(?:OPEN\b)/i,/^(?:OPTION\b)/i,/^(?:OR\b)/i,/^(?:ORDER\b)/i,/^(?:OUTER\b)/i,/^(?:OUTPUT\b)/i,/^(?:OVER\b)/i,/^(?:PATH\b)/i,/^(?:PARTITION\b)/i,/^(?:PERCENT\b)/i,/^(?:PIVOT\b)/i,/^(?:PLAN\b)/i,/^(?:PRIMARY\b)/i,/^(?:PRINT\b)/i,/^(?:PRIOR\b)/i,/^(?:QUERY\b)/i,/^(?:READ\b)/i,/^(?:RECORDSET\b)/i,/^(?:REDUCE\b)/i,/^(?:RECURSIVE\b)/i,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\b)/i,/^(?:RESTRICT\b)/i,/^(?:REQUIRE\b)/i,/^(?:RESTORE\b)/i,/^(?:RETURN\b)/i,/^(?:RETURNS\b)/i,/^(?:RIGHT\b)/i,/^(?:ROLLBACK\b)/i,/^(?:ROLLUP\b)/i,/^(?:ROW\b)/i,/^(?:ROWS\b)/i,/^(?:SCHEMA(S)?)/i,/^(?:SEARCH\b)/i,/^(?:SEMI\b)/i,/^(?:SEPARATOR\b)/i,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\b)/i,/^(?:TOTAL\b)/i,/^(?:TABLE\b)/i,/^(?:TABLES\b)/i,/^(?:TARGET\b)/i,/^(?:TEMP\b)/i,/^(?:TEMPORARY\b)/i,/^(?:TEXTSTRING\b)/i,/^(?:THEN\b)/i,/^(?:TIMEOUT\b)/i,/^(?:TO\b)/i,/^(?:TOP\b)/i,/^(?:TRAN\b)/i,/^(?:TRANSACTION\b)/i,/^(?:TRIGGER\b)/i,/^(?:TRUE\b)/i,/^(?:TRUNCATE\b)/i,/^(?:UNION\b)/i,/^(?:UNIQUE\b)/i,/^(?:UNPIVOT\b)/i,/^(?:UPDATE\b)/i,/^(?:USE\b)/i,/^(?:USING\b)/i,/^(?:VALUE\b)/i,/^(?:VALUES\b)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:[0-9]*[a-zA-Z_]+[a-zA-Z_0-9]*)/i,/^(?:(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?(?![a-zA-Z_0-9]))/i,/^(?:->)/i,/^(?:#)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:!===)/i,/^(?:===)/i,/^(?:!==)/i,/^(?:==)/i,/^(?:>=)/i,/^(?:&)/i,/^(?:\|)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:<>)/i,/^(?:<)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\{)/i,/^(?:\})/i,/^(?:\])/i,/^(?::-)/i,/^(?:\?-)/i,/^(?:\.\.)/i,/^(?:\.)/i,/^(?:,)/i,/^(?:::)/i,/^(?::)/i,/^(?:;)/i,/^(?:\$)/i,/^(?:\?)/i,/^(?:!)/i,/^(?:\^)/i,/^(?:~)/i,/^(?:@)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287],inclusive:!0}}};function Pa(){this.yy={}}return Ia.lexer=Da,Pa.prototype=Ia,Ia.Parser=Pa,new Pa}();typeof t<"u"&&(t.parser=a,t.Parser=a.Parser,t.parse=function(){return a.parse.apply(a,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var r=null.readFileSync(null.normalize(e[1]),"utf8");return t.parser.parse(r)},typeof e<"u"&&s.main===e&&t.main(process.argv.slice(1))),o.prettyflag=!1,o.pretty=function(t,e){var r=o.prettyflag;o.prettyflag=!e;var n=o.parse(t).toString();return o.prettyflag=r,n};var l=o.utils={},u=function(t){return"(y="+t+",y===y?y:undefined)"},h=function(t,e){return"(y="+t+',typeof y=="undefined"?undefined:'+e+")"};function d(){return!0}var p=l.escapeq=function(t){return(""+t).replace(/["'\\\n\r\u2028\u2029]/g,(function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}}))},f=l.undoubleq=function(t){return t.replace(/(\')/g,"''")},g=l.doubleq=function(t){return t.replace(/(\'\')/g,"\\'")};l.doubleqq=function(t){return t.replace(/'/g,"\\'")};var y=function(t){return"\ufeff"===t[0]&&(t=t.substr(1)),t};l.global=typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:Function("return this")(),l.isNativeFunction=function(t){return"function"==typeof t&&!!~t.toString().indexOf("[native code]")},l.isWebWorker=function(){try{var t=l.global.importScripts;return l.isNativeFunction(t)}catch{return!1}}(),l.isNode=function(){try{return!(typeof process>"u"||!process.versions||!process.versions.node)}catch{return!1}}(),l.isBrowser=function(){try{return l.isNativeFunction(l.global.location.reload)}catch{return!1}}(),l.isBrowserify=l.isBrowser&&typeof process<"u"&&process.browser,l.isRequireJS=l.isBrowser&&"function"==typeof s.specified,l.isMeteor=typeof Meteor<"u"&&Meteor.release,l.isMeteorClient=l.isMeteorClient=l.isMeteor&&Meteor.isClient,l.isMeteorServer=l.isMeteor&&Meteor.isServer,l.isCordova="object"==typeof cordova,l.isReactNative=!1,l.hasIndexedDB=!!l.global.indexedDB,l.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)};let _=l.loadFile=function(t,e,r,n){var i;if(!l.isNode&&!l.isMeteorServer){if(l.isCordova)return void l.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,(function(e){e.root.getFile(t,{create:!1},(function(t){t.file((function(t){var e=new FileReader;e.onloadend=function(t){r(y(this.result))},e.readAsText(t)}))}))}));if("string"==typeof t)return"#"===t.substr(0,1)&&typeof document<"u"?(i=document.querySelector(t).textContent,void r(i)):void x(t,(t=>r(y(t))),n,e);if(t instanceof Event){var o=t.target.files,s=new FileReader;o[0].name,s.onload=function(t){var e=t.target.result;r(y(e))},s.readAsText(o[0])}x(t,(t=>r(y(t))),n,e)}},v=typeof fetch<"u"?fetch:null;async function x(t,e,r,n){return n?b(t,e,r):await b(t,e,r)}function b(t,e,r){return v(t).then((t=>t.text())).then((t=>{e(t)})).catch((t=>{if(r)return r(t);throw console.error(t),t}))}l.loadBinaryFile=function(t,e,r,n=(t=>{throw t})){if(!l.isNode&&!l.isMeteorServer)if("string"==typeof t){var i=new XMLHttpRequest;i.open("GET",t,e),i.responseType="arraybuffer",i.onload=function(){for(var t=new Uint8Array(i.response),e=[],n=0;n701){let r=((t-26)/676|0)-1;e=String.fromCharCode(65+r%26),t%=676}var r=String.fromCharCode(65+t%26);return t>=26&&(t=(t/26|0)-1,r=String.fromCharCode(65+t%26)+r,t>26&&(t=(t/26|0)-1,r=String.fromCharCode(65+t%26)+r)),e+r},l.xlscn=function(t){var e=t.charCodeAt(0)-65;return t.length>1&&(e=26*(e+1)+t.charCodeAt(1)-65,t.length>2&&(e=26*(e+1)+t.charCodeAt(2)-65)),e},l.domEmptyChildren=function(t){for(var e=t.childNodes.length;e--;)t.removeChild(t.lastChild)};var P={};l.like=function(t,e,r=""){if(!P[t]){for(var n="^",i=0;i-1?n+="\\"+o:n+=o,i++}n+="$",P[t]=RegExp(n,"i")}return(""+(e??"")).search(P[t])>-1},l.glob=function(t,e){for(var r=0,n="^";r-1?n+="\\"+i:n+=i,r++}return n+="$",(""+(t||"")).toUpperCase().search(RegExp(n.toUpperCase()))>-1},l.findAlaSQLPath=function(){if(l.isWebWorker)return"";if(l.isMeteorClient)return"/packages/dist/";if(l.isMeteorServer)return"assets/packages/dist/";if(l.isNode)return"";if(l.isBrowser)for(var t=document.getElementsByTagName("script"),e=0;e0&&t==+t?+t:t;if(j.str.test(e))return String(t);if(j.int.test(e)){var r=parseInt(t,10);return isNaN(r)?t:r}if(j.num.test(e)){var n=parseFloat(t);return isNaN(n)?t:n}return j.bool.test(e)?"string"==typeof t?/^(true|1|yes)$/i.test(t):!!t:j.date.test(e)?t instanceof Date?t:new Date(t):t},o.path=o.utils.findAlaSQLPath(),o.utils.uncomment=function(t){for(var e,r=!1,n=!1,i=!1,o=0,s=(t=("__"+t+"__").split("")).length;oo.MAXSQLCACHESIZE&&s.resetSqlCache(),s.sqlCacheSize++,s.sqlCache[a]=c),l=o.res=c(r,n,i),K(c),l}return o.precompile(u.statements[0],o.useid,r),o.res=u.statements[0].execute(t,r,n,i)}return n?void o.adrun(t,u,r,n,i):o.drun(t,u,r,n,i)}},o.drun=function(t,e,r,n,i){var s=o.useid;s!==t&&o.use(t);for(var a=[],l=0,u=e.statements.length;l"u")throw new Error("Please include a Promise/A+ library");if("string"==typeof t)return U(t,e);if(!l.isArray(t)||t.length<1||typeof e<"u")throw new Error("Error in .promise parameters");return function(t){if(!(t.length<1)){for(var e,r,n,i=[],o=0;o{var r=e.resolve([]);return t.forEach((t=>{r=r.then((e=>U(t.sql,t.params,t.i,t.length).then((t=>[...e,t]))))})),r})(i,l.global.Promise)}}(t)};var F=o.Database=function(t){var e=this;if(e===o)if(t){if(e=o.databases[t],o.databases[t]=e,!e)throw new Error(`Database ${t} not found`)}else e=o.databases.alasql,o.options.tsql&&(o.databases.tempdb=o.databases.alasql);return t||(t="db"+o.databasenum++),e.databaseid=t,o.databases[t]=e,e.dbversion=0,e.tables={},e.views={},e.triggers={},e.indices={},e.objects={},e.counter=0,e.resetSqlCache(),e};F.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0,this.astCache={}},F.prototype.exec=function(t,e,r){return o.dexec(this.databaseid,t,e,r)},F.prototype.autoval=function(t,e,r){return o.autoval(t,e,r,this.databaseid)},F.prototype.transaction=function(t){return t(new o.Transaction(this.databaseid))};class ${constructor(t){m(this,"transactionid",Date.now()),m(this,"committed",!1),m(this,"bank"),this.databaseid=t,this.dbversion=o.databases[t].dbversion,this.bank=JSON.stringify(o.databases[t])}commit(){this.committed=!0,o.databases[this.databaseid].dbversion=Date.now(),delete this.bank}rollback(){if(this.committed)throw new Error("Transaction already commited");o.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank}exec(t,e,r){return o.dexec(this.databaseid,t,e,r)}}$.prototype.executeSQL=$.prototype.exec,o.Transaction=$;var H=o.Table=function(t){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checks=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Object.assign(this,t)};H.prototype.indexColumns=function(){var t=this;t.xcolumns={},t.columns.forEach((function(e){t.xcolumns[e.columnid]=e}))},o.View=class{constructor(t){this.columns=[],this.xcolumns={},this.query=[],Object.assign(this,t)}};class B{constructor(t){this.alasql=o,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Object.assign(this,t)}}o.Recordset=class{constructor(t){Object.assign(this,t)}},o.Query=B;var q={extend:Object.assign,casesensitive:o.options.casesensitive,Base:class{constructor(t){Object.assign(this,t)}toString(){}toType(){}toJS(){}exec(){}compile(){}},compileParamValue:function(t,e,r,n,i,s){return function(a,l){var u=a[t];if(!Array.isArray(u)){var c=new Error(e+" requires an array for parameter "+t);if(l)return l(null,c);throw c}var h="__p"+t+"_"+Date.now(),d=o.databases[n||"alasql"];d.tables[h]=new o.Table({tableid:h}),d.tables[h].data=u;try{var p=i[s];i[s]=new q.Table({tableid:h,databaseid:d.databaseid});var f=i.compile(n);i[s]=p;var g=f(a,l);if(r){var m=d.tables[h].data;u.length=0,Array.prototype.push.apply(u,m)}return g}catch(t){if(l)return l(null,t);throw t}finally{delete d.tables[h]}}}};a.yy=o.yy=q,q.Statements=class{constructor(t){Object.assign(this,t)}toString(){return this.statements.map((t=>t.toString())).join("; ")}compile(t){let e=this.statements.map((e=>e.compile(t)));return 1===e.length?e[0]:(t,r)=>{let n=e.map((e=>e(t)));return r&&r(n),n}}},q.Search=(i=class{constructor(t){((t,e,r)=>{e.has(t)?c("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,void 0)})(this,r),Object.assign(this,t)}toString(){let t="SEARCH ";return this.selectors&&(t+=this.selectors.toString()),this.from&&(t+="FROM "+this.from.toString()),t}toJS(t){return`this.queriesfn[${this.queriesidx-1}](this.params,null,${t})`}compile(t){var e=t,i=(t,o)=>{var s;return((t,e,r)=>(((t,e,r)=>{e.has(t)||c("Cannot access private method")})(t,e),r))(this,r,n).call(this,e,t,(function(t){s=X(i.query,t),o&&(s=o(s))})),s};return i.query={},i}},r=new WeakSet,n=function(t,e,r){var n,i,s={},a=R(this.selectors);if(void 0!==a&&a.length>0&&(a&&a[0]&&"PROP"===a[0].srchid&&a[0].args&&a[0].args[0]&&("XML"===a[0].args[0].toUpperCase()?(s.mode="XML",a.shift()):"HTML"===a[0].args[0].toUpperCase()?(s.mode="HTML",a.shift()):"JSON"===a[0].args[0].toUpperCase()&&(s.mode="JSON",a.shift())),a.length>0&&"VALUE"===a[0].srchid&&(s.value=!0,a.shift())),this.from instanceof q.Column){var l=this.from.databaseid||t;i=o.databases[l].tables[this.from.columnid].data}else if(this.from instanceof q.FuncValue&&o.from[this.from.funcid.toUpperCase()]){var u=this.from.args.map((function(t){var r=t.toJS();return new Function("params,alasql","var y;return "+r).bind(this)(e,o)}));i=o.from[this.from.funcid.toUpperCase()].apply(this,u)}else if(typeof this.from>"u")i=o.databases[t].objects;else{var c=new Function("params,alasql","var y;return "+this.from.toJS());i=c(e,o),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&i instanceof Mongo.Collection&&(i=i.find().fetch())}if(n=void 0!==a&&a.length>0?function t(r,n,a){var l=r[n],u=o.options.loopbreak||1e5;if(l.selid){if("PATH"===l.selid){for(var c=[{node:a,stack:[]}],h={},d=o.databases[o.useid].objects;c.length>0;){var p=c.shift(),f=p.node,g=p.stack;if((C=t(l.args,0,f)).length>0){if(n+1+1>r.length)return g;var m=[];return g&&g.length>0&&g.forEach((function(e){m=m.concat(t(r,n+1,e))})),m}typeof h[f.$id]<"u"||(h[f.$id]=!0,f.$out&&f.$out.length>0&&f.$out.forEach((function(t){var e=d[t],r=g.concat(e);r.push(d[e.$out[0]]),c.push({node:d[e.$out[0]],stack:r})})))}return[]}if("NOT"===l.selid)return(_=t(l.args,0,a)).length>0?[]:n+1+1>r.length?[a]:t(r,n+1,a);if("DISTINCT"===l.selid){if(0===(_=typeof l.args>"u"||0===l.args.length?L(a):t(l.args,0,a)).length)return[];var y=L(_);return n+1+1>r.length?y:t(r,n+1,y)}if("AND"===l.selid)return y=!0,l.args.forEach((function(e){y=y&&t(e,0,a).length>0})),y?n+1+1>r.length?[a]:t(r,n+1,a):[];if("OR"===l.selid)return y=!1,l.args.forEach((function(e){y=y||t(e,0,a).length>0})),y?n+1+1>r.length?[a]:t(r,n+1,a):[];if("ALL"===l.selid)return 0===(_=t(l.args[0],0,a)).length?[]:n+1+1>r.length?_:t(r,n+1,_);if("ANY"===l.selid)return 0===(_=t(l.args[0],0,a)).length?[]:n+1+1>r.length?[_[0]]:t(r,n+1,[_[0]]);if("UNIONALL"===l.selid){var _=[];return l.args.forEach((function(e){_=_.concat(t(e,0,a))})),0===_.length?[]:n+1+1>r.length?_:t(r,n+1,_)}if("UNION"===l.selid){_=[];return l.args.forEach((function(e){_=_.concat(t(e,0,a))})),0===(_=L(_)).length?[]:n+1+1>r.length?_:t(r,n+1,_)}if("IF"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:n+1+1>r.length?[a]:t(r,n+1,a);if("REPEAT"===l.selid){var v,x,b=l.args[0].value;x=l.args[1]?l.args[1].value:b,l.args[2]&&(v=l.args[2].variable);var T=[];if(0===b&&(n+1+1>r.length?T=[a]:(v&&(o.vars[v]=0),T=T.concat(t(r,n+1,a)))),x>0)for(var E=[{value:a,lvl:1}],O=0;E.length>0;){_=E[0];if(E.shift(),_.lvl<=x){v&&(o.vars[v]=_.lvl);var S=t(l.sels,0,_.value);S.forEach((function(t){E.push({value:t,lvl:_.lvl+1})})),_.lvl>=b&&(n+1+1>r.length?T=T.concat(S):S.forEach((function(e){T=T.concat(t(r,n+1,e))})))}if(++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O)}return T}if("OF"===l.selid){if(n+1+1>r.length)return[a];var N=[];return Object.keys(a).forEach((function(e){o.vars[l.args[0].variable]=e,N=N.concat(t(r,n+1,a[e]))})),N}if("TO"===l.selid){var A=o.vars[l.args[0]],w=[];return(w=void 0!==A?A.slice(0):[]).push(a),n+1+1>r.length?[a]:(o.vars[l.args[0]]=w,N=t(r,n+1,a),o.vars[l.args[0]]=A,N)}if("ARRAY"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("SUM"===l.selid){if(!((_=t(l.args,0,a)).length>0))return[];var R=_.reduce((function(t,e){return t+e}),0);return n+1+1>r.length?[R]:t(r,n+1,R)}if("AVG"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_.reduce((function(t,e){return t+e}),0)/_.length,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("COUNT"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_.length,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("FIRST"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_[0],n+1+1>r.length?[R]:t(r,n+1,R)):[];if("LAST"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_[_.length-1],n+1+1>r.length?[R]:t(r,n+1,R)):[];if("MIN"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:(R=_.reduce((function(t,e){return Math.min(t,e)}),1/0),n+1+1>r.length?[R]:t(r,n+1,R));if("MAX"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:(R=_.reduce((function(t,e){return Math.max(t,e)}),-1/0),n+1+1>r.length?[R]:t(r,n+1,R));if("PLUS"===l.selid){for(T=[],E=t(l.args,0,a).slice(),n+1+1>r.length?T=T.concat(E):E.forEach((function(e){T=T.concat(t(r,n+1,e))})),O=0;E.length>0;)if(_=E.shift(),_=t(l.args,0,_),E=E.concat(_),n+1+1>r.length?T=T.concat(_):_.forEach((function(e){var i=t(r,n+1,e);T=T.concat(i)})),++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O);return T}if("STAR"===l.selid){for(T=[],T=t(r,n+1,a),E=t(l.args,0,a).slice(),n+1+1>r.length?T=T.concat(E):E.forEach((function(e){T=T.concat(t(r,n+1,e))})),O=0;E.length>0;)if(_=E[0],E.shift(),_=t(l.args,0,_),E=E.concat(_),n+1+1<=r.length&&_.forEach((function(e){T=T.concat(t(r,n+1,e))})),++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O);return T}if("QUESTION"===l.selid)return T=(T=[]).concat(t(r,n+1,a)),_=t(l.args,0,a),n+1+1<=r.length&&_.forEach((function(e){T=T.concat(t(r,n+1,e))})),T;if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>r.length?[a]:t(r,n+1,i);throw new Error("Wrong selector "+l.selid)}if(0===(_=t(l.args,0,a)).length)return[];var C={status:1,values:_}}else{if(!l.srchid)throw new Error("Selector not found");C=o.srch[l.srchid.toUpperCase()](a,l.args,s,e)}if(typeof C>"u"&&(C={status:1,values:[a]}),y=[],1===C.status){var I=C.values;if(n+1+1>r.length)y=I;else for(O=0;O0&&(n=n[0]),r&&(n=r(n));return n},i),o.srch={PROP(t,e,r){if("XML"===r.mode){let r=t.children.filter((t=>t.name.toUpperCase()===e[0].toUpperCase()));return{status:r.length?1:-1,values:r}}return"object"!=typeof t||null===t||"object"!=typeof e||typeof t[e[0]]>"u"?{status:-1,values:[]}:{status:1,values:[t[e[0]]]}},APROP:(t,e)=>"object"!=typeof t||null===t||"object"!=typeof e||typeof t[e[0]]>"u"?{status:1,values:[void 0]}:{status:1,values:[t[e[0]]]},EQ(t,e,r,n){var i=e[0].toJS("x","");return t===new Function("x,alasql,params","return "+i)(t,o,n)?{status:1,values:[t]}:{status:-1,values:[]}},LIKE(t,e,r,n){var i=e[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return t.toUpperCase().match(new RegExp("^"+s(t,o,n).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[t]}:{status:-1,values:[]}},ATTR(t,e,r){if("XML"===r.mode)return typeof e>"u"?{status:1,values:[t.attributes]}:"object"==typeof t&&"object"==typeof t.attributes&&typeof t.attributes[e[0]]<"u"?{status:1,values:[t.attributes[e[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},CONTENT(t,e,r){if("XML"!==r.mode)throw new Error("ATTR is not using in usual mode");return{status:1,values:[t.content]}},SHARP(t,e){let r=o.databases[o.useid].objects[e[0]];return void 0!==t&&t===r?{status:1,values:[t]}:{status:-1,values:[]}},PARENT(){return console.error("PARENT not implemented",arguments),{status:-1,values:[]}},CHILD:(t,e,r)=>"object"==typeof t?Array.isArray(t)?{status:1,values:t}:"XML"===r.mode?{status:1,values:Object.keys(t.children).map((function(e){return t.children[e]}))}:{status:1,values:Object.keys(t).map((function(e){return t[e]}))}:{status:1,values:[]},KEYS:t=>"object"==typeof t&&null!==t?{status:1,values:Object.keys(t)}:{status:1,values:[]},WHERE(t,e,r,n){var i=e[0].toJS("x","");return new Function("x,alasql,params","return "+i)(t,o,n)?{status:1,values:[t]}:{status:-1,values:[]}},NAME:(t,e)=>t.name===e[0]?{status:1,values:[t]}:{status:-1,values:[]},CLASS:(t,e)=>t.$class==e?{status:1,values:[t]}:{status:-1,values:[]},VERTEX:t=>"VERTEX"===t.$node?{status:1,values:[t]}:{status:-1,values:[]},INSTANCEOF:(t,e)=>t instanceof o.fn[e[0]]?{status:1,values:[t]}:{status:-1,values:[]},EDGE:t=>"EDGE"===t.$node?{status:1,values:[t]}:{status:-1,values:[]},EX(t,e,r,n){var i=e[0].toJS("x","");return{status:1,values:[new Function("x,alasql,params","return "+i)(t,o,n)]}},RETURN(t,e,r,n){var i={};return e&&e.length>0&&e.forEach((function(e){var r=e.toJS("x",""),s=new Function("x,alasql,params","return "+r);typeof e.as>"u"&&(e.as=e.toString()),i[e.as]=s(t,o,n)})),{status:1,values:[i]}},REF:t=>({status:1,values:[o.databases[o.useid].objects[t]]}),OUT:t=>t.$out&&t.$out.length>0?{status:1,values:t.$out.map((function(t){return o.databases[o.useid].objects[t]}))}:{status:-1,values:[]},OUTOUT(t){if(t.$out&&t.$out.length>0){var e=[];return t.$out.forEach((function(t){var r=o.databases[o.useid].objects[t];r&&r.$out&&r.$out.length>0&&r.$out.forEach((function(t){e=e.concat(o.databases[o.useid].objects[t])}))})),{status:1,values:e}}return{status:-1,values:[]}},IN:t=>t.$in&&t.$in.length>0?{status:1,values:t.$in.map((function(t){return o.databases[o.useid].objects[t]}))}:{status:-1,values:[]},ININ(t){if(t.$in&&t.$in.length>0){var e=[];return t.$in.forEach((function(t){var r=o.databases[o.useid].objects[t];r&&r.$in&&r.$in.length>0&&r.$in.forEach((function(t){e=e.concat(o.databases[o.useid].objects[t])}))})),{status:1,values:e}}return{status:-1,values:[]}},AS:(t,e)=>(o.vars[e[0]]=t,{status:1,values:[t]}),AT:(t,e)=>({status:1,values:[o.vars[e[0]]]}),CLONEDEEP:t=>({status:1,values:[R(t)]}),SET(t,e,r,n){var i=e.map((function(t){return"@"===t.method?`alasql.vars[${JSON.stringify(t.variable)}]=`+t.expression.toJS("x",""):"$"===t.method?`params[${JSON.stringify(t.variable)}]=`+t.expression.toJS("x",""):`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");return new Function("x,params,alasql",i)(t,n,o),{status:1,values:[t]}},ROW(t,e,r,n){var i="var y;return [";return i+=e.map((t=>t.toJS("x",""))).join(","),i+="]",{status:1,values:[new Function("x,params,alasql",i)(t,n,o)]}},D3:t=>("VERTEX"!==t.$node&&"EDGE"===t.$node&&(t.source=t.$in[0],t.target=t.$out[0]),{status:1,values:[t]}),ORDERBY:(t,e)=>({status:1,values:t.sort(G(e))})};var G=function(t){if(t){if("function"==typeof t?.[0]?.expression){var e=t[0].expression;return function(t,r){var n=e(t),i=e(r);return n>i?1:n===i?0:-1}}var r="",n="";return t.forEach((function(t){var e="";if(t.expression instanceof q.NumValue&&(t.expression=self.columns[t.expression.value-1]),t.expression instanceof q.Column){var i=t.expression.columnid;o.options.valueof&&(e=".valueOf()"),t.nocase&&(e+=".toUpperCase()"),"_"===i?(r+="if(a"+e+("ASC"===t.direction?">":"<")+"b"+e+")return 1;",r+="if(a"+e+"==b"+e+"){"):r+=`if (\n\t\t\t\t\t\t\t(a[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t\t${"ASC"===t.direction?">":"<"}\n\t\t\t\t\t\t\t(b[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t) return 1;\n\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t(a[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t\t==\n\t\t\t\t\t\t\t(b[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t){\n\t\t\t\t\t\t`}else e=".valueOf()",t.nocase&&(e+=".toUpperCase()"),r+=`\n\t\t\t\t\tif (\n\t\t\t\t\t\t(${t.toJS("a","")} || '')${e}\n\t\t\t\t\t\t${"ASC"===t.direction?">":"<"}\n\t\t\t\t\t\t(${t.toJS("b","")} || '')${e}\n\t\t\t\t\t) return 1;\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t(${t.toJS("a","")} || '')${e} ==\n\t\t\t\t\t\t(${t.toJS("b","")} || '')${e}\n\t\t\t\t\t) {`;n+="}"})),r+="return 0;",r+=n+"return -1",new Function("a,b",r)}};function z(t,e,r){if(e>=0){let n=r.sources[e];n.data=t,"function"==typeof n.data&&(n.getfn=n.data,n.dontcache=n.getfn.dontcache,["OUTER","RIGHT","ANTI"].includes(n.joinmode)&&(n.dontcache=!1),n.data={})}else r.queriesdata[-e-1]=D(t);if(r.sourceslen--,!(r.sourceslen>0))return V(r)}function V(t){var e,r=t.scope;if(Y(t),t.data=[],t.xgroups={},t.groups=[],W(t,r,0),t.groupfn){if(t.data=[],0===t.groups.length&&0===t.allgroups.length){var n={};t.selectGroup.length>0&&t.selectGroup.forEach((function(t){"COUNT"==t.aggregatorid||"SUM"==t.aggregatorid||"TOTAL"==t.aggregatorid?n[t.nick]=0:n[t.nick]=void 0})),t.groups=[n]}if(t.aggrKeys.length>0){var i="";t.aggrKeys.forEach((function(t){var e;e=t.args&&t.args.length>1?Array(t.args.length).fill("undefined").join(",")+",":"undefined,",i+=`\n\t\t\t\tg[${JSON.stringify(t.nick)}] = alasql.aggr[${JSON.stringify(t.funcid)}](${e}g[${JSON.stringify(t.nick)}],3); `}));var s=new Function("g,params,alasql","var y;"+i)}for(var a=0,l=t.groups.length;a0){var x=t.removeKeys;if((e=x.length)>0)for(l=t.data.length,a=0;a0&&(t.columns=t.columns.filter((function(t){var e=!1;return x.forEach((function(r){t.columnid==r&&(e=!0)})),!e})))}if(typeof t.removeLikeKeys<"u"&&t.removeLikeKeys.length>0){var b=t.removeLikeKeys;for(a=0,l=t.data.length;a0&&(t.columns=t.columns.filter((function(t){var e=!1;return b.forEach((function(r){o.utils.like(r,t.columnid)&&(e=!0)})),!e})))}if(t.pivotfn&&t.pivotfn(),t.unpivotfn&&t.unpivotfn(),t.intoallfn){var E=t.intoallfn(t.columns,t.cb,t.params,t.alasql);return E}if(t.intofn){for(l=t.data.length,a=0;a0&&"ix"==c.optimization&&c.onleftfn&&c.onrightfn){if(c.databaseid&&o.databases[c.databaseid].tables[c.tableid]&&(o.databases[c.databaseid].tables[c.tableid].indices||(t.database.tables[c.tableid].indices={}),l=o.databases[c.databaseid].tables[c.tableid].indices[T(c.onrightfns+"`"+c.srcwherefns)],!o.databases[c.databaseid].tables[c.tableid].dirty&&l&&(c.ix=l)),!c.ix){for(c.ix={},n={},i=0,s=c.data.length;(a=c.data[i])||c.getfn&&(a=c.getfn(i))||i=t.sources.length)t.wherefn(e,t.params,o)&&(t.groupfn?t.groupfn(e,t.params,o):t.data.push(t.selectfn(e,t.params,o)));else if(t.sources[r].applyselect){var n=t.sources[r];n.applyselect(t.params,(function(i){if(i.length>0)for(var o=0;o"u")throw new Error("Data source number "+r+" in undefined");let g,m=d.length;for(;(g=d[f])||!p&&n.getfn&&(g=n.getfn(f))||f"u"||"number"==typeof e||"string"==typeof e||"boolean"==typeof e)return e;var r=t.modifier||o.options.modifier,n=t.columns;if(t.dirtyColumns&&e.length>0){for(var i={},s=Math.min(e.length,o.options.columnlookup||10)-1;0<=s;s--)for(var a in e[s])i[a]=!0;var l=Object.keys(i).map((function(t){return{columnid:t}}));if(n&&0!==n.length){var u={};n.forEach((function(t){u[t.columnid]=!0})),l.forEach((function(t){u[t.columnid]||n.push(t)}))}else n=l}else if(typeof n>"u"||0===n.length)if(e.length>0){for(i={},s=Math.min(e.length,o.options.columnlookup||10)-1;0<=s;s--)for(var a in e[s])i[a]=!0;n=Object.keys(i).map((function(t){return{columnid:t}}))}else n=[],t&&t.sources&&t.sources.forEach((t=>{t&&t.columns&&Array.isArray(t.columns)&&(n=n.concat(t.columns))}));switch(r){case"VALUE":if(0===e.length)return;let r=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];return e[0][r];case"ROW":return 0===e.length?void 0:Object.values(e[0]);case"COLUMN":if(0===e.length)return[];let i;i=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];let a=[];s=0;for(var c=e.length;sn.map((e=>t[e.columnid]))));case"INDEX":if(0===e.length)return;let l=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0],u=n&&n.length>1?n[1].columnid:Object.keys(e[0])[1];return e.reduce(((t,e)=>({...t,[e[l]]:e[u]})),{});case"RECORDSET":return new o.Recordset({columns:n,data:e});case"TEXTSTRING":if(0===e.length)return;let h=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];return e.map((t=>t[h])).join("\n");case"ALASQL_DETAILS":return{data:e,columns:n,length:e.length}}return e}function Q(t,e,r){t.onleftfn||(t.onleftfns=e,t.onrightfns=r,t.onleftfn=new Function("p,params,alasql","var y;return "+e),t.onrightfn=new Function("p,params,alasql","var y;return "+r),t.optimization="ix")}function J(t,e,r){var n="("+e+"=="+r+")";t.srcwherefns=t.srcwherefns?t.srcwherefns+"&&"+n:n}function Z(t){var e=[];return function t(r){if(r){if(r instanceof q.Column)return void(r.tableid&&-1===e.indexOf(r.tableid)&&e.push(r.tableid));r instanceof q.Op&&(t(r.left),t(r.right))}}(t),e}function tt(t){return t.funcid&&"GROUP_CONCAT"===t.funcid.toUpperCase()?`,${void 0!==t.separator?JSON.stringify(t.separator):"undefined"},${t.order&&t.order.length>0&&t.order[0].direction?JSON.stringify(t.order[0].direction):"undefined"}`:""}q.Select=class{constructor(t){Object.assign(this,t)}toString(){var t;return t="",this.explain&&(t+="EXPLAIN "),t+="SELECT ",this.modifier&&(t+=this.modifier+" "),this.distinct&&(t+="DISTINCT "),this.top&&(t+="TOP "+this.top.value+" ",this.percent&&(t+="PERCENT ")),t+=this.columns.map((function(t){var e;return e=t.toString(),typeof t.as<"u"&&(e+=" AS "+t.as),e})).join(", "),this.from&&(t+=" FROM "+this.from.map((function(t){var e;return e=t.toString(),t.as&&(e+=" AS "+t.as),e})).join(",")),this.joins&&(t+=this.joins.map((function(t){var e;if(e=" ",t.joinmode&&(e+=t.joinmode+" "),t.table)e+="JOIN "+t.table.toString();else if(t.select)e+="JOIN ("+t.select.toString()+")";else{if(!(t instanceof o.yy.Apply))throw new Error("Wrong type in JOIN mode");e+=t.toString()}return t.as&&(e+=" AS "+t.as),t.using&&(e+=" USING "+t.using.toString()),t.on&&(e+=" ON "+t.on.toString()),e})).join("")),this.where&&(t+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(t+=" GROUP BY "+this.group.map((function(t){return t.toString()})).join(", ")),this.having&&(t+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(t+=" ORDER BY "+this.order.map((function(t){return t.toString()})).join(", ")),this.limit&&(t+=" LIMIT "+this.limit.value),this.offset&&(t+=" OFFSET "+this.offset.value),this.union&&(t+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(t+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(t+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(t+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),t}toJS(t){return"alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+"))[0]"}compile(t,e){var r=o.databases[t],n=new B;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=r,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,t),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],n.grouprownums=[],n.windowaggrs=[],this.into instanceof q.FuncValue&&"OBJECT"===this.into.funcid.toUpperCase()&&(n.intoObject=!0),this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n,e),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n,e),n.orderColumns=this.orderColumns),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n,e),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(t),!n.orderfn&&this.union.order&&(n.orderfn=this.union.compileOrder(n,e))):this.unionall?(n.unionallfn=this.unionall.compile(t),!n.orderfn&&this.unionall.order&&(n.orderfn=this.unionall.compileOrder(n,e))):this.except?(n.exceptfn=this.except.compile(t),!n.orderfn&&this.except.order&&(n.orderfn=this.except.compileOrder(n,e))):this.intersect&&(n.intersectfn=this.intersect.compile(t),!n.orderfn&&this.intersect.order&&(n.orderfn=this.intersect.compileOrder(n,e))),this.into){if(this.into instanceof q.Table)if(o.options.autocommit&&o.databases[this.into.databaseid||t].engineid)n.intoallfns=`return alasql\n\t\t\t\t\t\t\t\t.engines[${JSON.stringify(o.databases[this.into.databaseid||t].engineid)}]\n\t\t\t\t\t\t\t\t.intoTable(\n\t\t\t\t\t\t\t\t\t${JSON.stringify(this.into.databaseid||t)},\n\t\t\t\t\t\t\t\t\t${JSON.stringify(this.into.tableid)},\n\t\t\t\t\t\t\t\t\tthis.data,\n\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\tcb\n\t\t\t\t\t\t\t\t);`;else{var i=this.into.databaseid||t,s=this.into.tableid;n.intofns=`\n\t\t\t\t\t\tvar db = alasql.databases[${JSON.stringify(i)}];\n\t\t\t\t\t\tvar table = db.tables[${JSON.stringify(s)}];\n\t\t\t\t\t\tvar converted = {};\n\t\t\t\t\t\tfor (var key in r) {\n\t\t\t\t\t\t\tvar colDef = table.xcolumns && table.xcolumns[key];\n\t\t\t\t\t\t\tconverted[key] = alasql.utils.typeConverter(r[key], colDef ? colDef.dbtypeid : null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttable.data.push(converted);\n\t\t\t\t\t`}else if(this.into instanceof q.VarValue)n.intoallfns=`\n\t\t\t\t\talasql.vars[${JSON.stringify(this.into.variable)}]=this.data;\n\t\t\t\t\tres=this.data.length;\n\t\t\t\t\tif(cb) res = cb(res);\n\t\t\t\t\treturn res;\n\t\t\t\t`;else if(this.into instanceof q.FuncValue){var a=this.into.funcid.toUpperCase(),l="return alasql.into["+JSON.stringify(a)+"](";this.into.args&&this.into.args.length>0?(l+=this.into.args[0].toJS()+",",this.into.args.length>1?l+=this.into.args[1].toJS()+",":l+="undefined,"):l+="undefined, undefined,",n.intoallfns=l+"this.data,columns,cb)","OBJECT"===a&&(n.preserveArrayResult=!0)}else this.into instanceof q.ParamValue&&("string"==typeof this.into.param?n.intoallfns=`\n\t\t\t\t\t\tif(!params[${JSON.stringify(this.into.param)}]) params[${JSON.stringify(this.into.param)}]=[];\n\t\t\t\t\t\tparams[${JSON.stringify(this.into.param)}]=this.data;\n\t\t\t\t\t\tres=this.data.length;\n\t\t\t\t\t\tif(cb) res = cb(res);\n\t\t\t\t\t\treturn res;\n\t\t\t\t\t`:n.intofns=`params[${JSON.stringify(this.into.param)}].push(r)`);n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var u=function(t,e,r){n.params=t;var i=function(t,e,r,n,i){t.sourceslen=t.sources.length;let s,a=t.sourceslen;if(t.query=t,t.A=void 0,t.B=void 0,t.cb=r,t.oldscope=e,t.subqueryCache={},t.queriesfn&&(t.sourceslen+=t.queriesfn.length,a+=t.queriesfn.length,t.queriesdata=[],t.queriesfn.forEach((function(e,r){e.query.params=t.params,z([],-r-1,t)}))),t.scope=e?R(e):{},t.sources.forEach((function(e,r){e.query=t;var n=e.datafn(t,t.params,z,r,o);typeof n<"u"&&((t.intofn||t.intoallfn)&&Array.isArray(n)&&!t.preserveArrayResult&&(n=n.length),s=n),e.queriesdata=t.queriesdata})),0==t.sources.length||0===a)try{s=V(t)}catch(t){if(r)return r(null,t);throw t}return s}(n,r,(function(t,r){if(r){if(e)return e(null,r);throw r}if(n.rownums.length>0)for(var i=0,o=t.length;i0)for(s=0,a=n.grouprownums.length;s0?d.partitionColumns:[Object.keys(t[0]||{})[0]];var u=null,c=0;for(i=0,o=t.length;i0)for(s=0,a=n.windowaggrs.length;s0?d.partitionColumns.map((function(e){return t[i][e]})).join("|"):"__all__"]||(p[f]=[]),p[f].push(i);for(var f in p){var g,m=p[f],y=[],_=d.expression&&d.expression.columnid;if("COUNT"!==d.aggregatorid||_&&"*"!==_)for(var v=0;v0?y.reduce((function(t,e){return t+e}),0)/y.length:null;break;case"MAX":g=y.length>0?Math.max.apply(null,y):null;break;case"MIN":g=y.length>0?Math.min.apply(null,y):null}for(v=0;v{if(!t.from)return!1;let r=new Set;t.from.forEach((t=>{t.tableid&&r.add(t.tableid),t.as&&r.add(t.as)}));let n=t=>{if(!t)return!1;if(t instanceof q.Column&&t.tableid&&!r.has(t.tableid))return!0;for(let e of Object.keys(t))if(t[e]&&"object"==typeof t[e]&&n(t[e]))return!0;return!1};return n(t.where)||n(t.columns)})(e),e.queries&&e.queries.length>0&&(n.query.queriesfn=e.queries.map((function(e){var r=e.compile(t.database.databaseid);return r.query.modifier="RECORDSET",r}))),n})))}},q.ExistsValue=class{constructor(t){Object.assign(this,t)}toString(){return"EXISTS("+this.value.toString()+")"}toType(){return"boolean"}toJS(t,e,r){return`!!this.existsfn[${this.existsidx}](params, null, ${t}).data.length`}},o.precompile=function(t,e,r){if(t){if(t.params=r,t.view&&t.select&&t.queries)return void(t.select.queries=t.queries);t.queries&&(t.queriesfn=t.queries.map((function(r){var n=r.compile(e||t.database.databaseid);return n.query.modifier="RECORDSET",n}))),t.exists&&(t.existsfn=t.exists.map((function(r){var n=r.compile(e||t.database.databaseid);return n.query.modifier="RECORDSET",n})))}},q.Select.prototype.compileFrom=function(t){t.sources=[],t.aliases={},this.from&&(this.from.forEach((e=>{let r=e.as||e.tableid;if(e instanceof q.Table)t.aliases[r]={tableid:e.tableid,databaseid:e.databaseid||t.database.databaseid,type:"table"};else if(e instanceof q.Select)t.aliases[r]={type:"subquery"};else if(e instanceof q.Search)t.aliases[r]={type:"subsearch"};else if(e instanceof q.ParamValue)t.aliases[r]={type:"paramvalue"};else if(e instanceof q.FuncValue)t.aliases[r]={type:"funcvalue"};else if(e instanceof q.VarValue)t.aliases[r]={type:"varvalue"};else if(e instanceof q.FromData)t.aliases[r]={type:"fromdata"};else if(e instanceof q.Json)t.aliases[r]={type:"json"};else{if(!e.inserted)throw new Error("Wrong table at FROM");t.aliases[r]={type:"inserted"}}let n={alias:r,databaseid:e.databaseid||t.database.databaseid,tableid:e.tableid,joinmode:"INNER",onmiddlefn:d,srcwherefns:"",srcwherefn:d};if(e instanceof q.Table)n.columns=o.databases[n.databaseid].tables[n.tableid].columns,o.options.autocommit&&o.databases[n.databaseid].engineid&&!o.databases[n.databaseid].tables[n.tableid].view?n.datafn=(t,e,r,i,o)=>o.engines[o.databases[n.databaseid].engineid].fromTable(n.databaseid,n.tableid,r,i,t):o.databases[n.databaseid].tables[n.tableid].view?n.datafn=(t,e,r,i,o)=>{let s=o.databases[n.databaseid].tables[n.tableid];!s.select&&s.viewSelect&&(s.select=s.viewSelect.compile(s.viewDatabaseid));let a=s.select(e);return r&&(a=r(a,i,t)),a}:n.datafn=(t,e,r,i,o)=>{let s=o.databases[n.databaseid].tables[n.tableid].data;return r&&(s=r(s,i,t)),s};else if(e instanceof q.Select)n.subquery=e.compile(t.database.databaseid),typeof n.subquery.query.modifier>"u"&&(n.subquery.query.modifier="RECORDSET"),n.columns=n.subquery.query.columns,n.datafn=(t,e,r,i,o)=>{let s;return n.subquery(t.params,(e=>{s=e.data,r&&(s=r(s,i,t))})),s};else if(e instanceof q.Search)n.subsearch=e,n.columns=[],n.datafn=(t,e,r,i,o)=>{let s;return n.subsearch.execute(t.database.databaseid,t.params,(e=>{s=e,r&&(s=r(s,i,t))})),s};else if(e instanceof q.ParamValue){let t=`var res = alasql.prepareFromData(params['${e.param}']`;e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e.inserted){let t="var res = alasql.prepareFromData(alasql.inserted";e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.Json){let t="var res = alasql.prepareFromData("+e.toJS();e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.VarValue){let t=`var res = alasql.prepareFromData(alasql.vars['${e.variable}']`;e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.FuncValue){let t="var res=alasql.from["+JSON.stringify(e.funcid.toUpperCase())+"](";e.args&&e.args.length>0?(e.args[0]?t+=e.args[0].toJS("query.oldscope")+",":t+="null,",e.args[1]?t+=e.args[1].toJS("query.oldscope")+",":t+="null,"):t+="null,null,",t+="cb,idx,query); return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else{if(!(e instanceof q.FromData))throw new Error("Wrong table at FROM");n.datafn=(t,r,n,i,o)=>{let s=e.data;return n&&(s=n(s,i,t)),s}}t.sources.push(n)})),t.defaultTableid=t.sources[0].alias)},o.prepareFromData=function(t,e){let r=t;if("string"==typeof t)r=t.split(/\r?\n/),e&&(r=r.map((t=>[t])));else if(e)r=t.map((t=>[t]));else if("object"==typeof t&&!Array.isArray(t))if(typeof Mongo<"u"&&typeof Mongo.Collection<"u"&&t instanceof Mongo.Collection)r=t.find().fetch();else{r=[];for(let e in t)t.hasOwnProperty(e)&&r.push([e,t[e]])}return r},q.Select.prototype.compileJoins=function(t){this.joins.forEach((e=>{let r,n,i;if("CROSS"===e.joinmode&&(e.joinmode="INNER"),e instanceof q.Apply)return i={alias:e.as,applymode:e.applymode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},i.applyselect=e.select.compile(t.database.databaseid),i.columns=i.applyselect.query.columns,i.datafn=function(t,e,r,n,i){let o;return r&&(o=r(o,n,t)),o},void t.sources.push(i);if(e.table){if(r=e.table,i={alias:e.as||r.tableid,databaseid:r.databaseid||t.database.databaseid,tableid:r.tableid,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},!o.databases[i.databaseid].tables[i.tableid])throw new Error("Table '"+i.tableid+"' is not exists in database '"+i.databaseid+"'");i.columns=o.databases[i.databaseid].tables[i.tableid].columns,o.options.autocommit&&o.databases[i.databaseid].engineid?i.datafn=function(t,e,r,n,o){return o.engines[o.databases[i.databaseid].engineid].fromTable(i.databaseid,i.tableid,r,n,t)}:o.databases[i.databaseid].tables[i.tableid].view?i.datafn=function(t,e,r,n,o){let s=o.databases[i.databaseid].tables[i.tableid].select(e);return r&&(s=r(s,n,t)),s}:i.datafn=function(t,e,r,n,o){let s=o.databases[i.databaseid].tables[i.tableid].data;return r&&(s=r(s,n,t)),s},t.aliases[i.alias]={tableid:r.tableid,databaseid:r.databaseid||t.database.databaseid}}else if(e.select)r=e.select,i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},i.subquery=r.compile(t.database.databaseid),typeof i.subquery.query.modifier>"u"&&(i.subquery.query.modifier="RECORDSET"),i.columns=i.subquery.query.columns,i.datafn=function(t,e,r,n,o){i.data=i.subquery(t.params,null,r,n).data;let s=i.data;return r&&(s=r(s,n,t)),s},t.aliases[i.alias]={type:"subquery"};else if(e.param)i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d},n="let res=alasql.prepareFromData(params['"+e.param.param+"']",e.array&&(n+=",true"),n+="); if(cb) res=cb(res, idx, query); return res",i.datafn=new Function("query,params,cb,idx, alasql",n),t.aliases[i.alias]={type:"paramvalue"};else if(e.variable)i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d},n="let res=alasql.prepareFromData(alasql.vars['"+e.variable+"']",e.array&&(n+=", true"),n+="); if(cb)res=cb(res, idx, query);return res",i.datafn=new Function("query,params,cb,idx, alasql",n),t.aliases[i.alias]={type:"varvalue"};else if(e.func){i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d};let r="let res=alasql.from["+JSON.stringify(e.func.funcid.toUpperCase())+"](",n=e.func.args;n&&n.length>0?(n[0]?r+=n[0].toJS("query.oldscope")+", ":r+="null, ",n[1]?r+=n[1].toJS("query.oldscope")+", ":r+="null, "):r+="null, null, ",r+="cb, idx, query); return res",i.datafn=new Function("query, params, cb, idx, alasql",r),t.aliases[i.alias]={type:"funcvalue"}}let s=i.alias;if(e.natural){if(e.using||e.on)throw new Error("NATURAL JOIN cannot have USING or ON clauses");if(t.sources.length>0){let r=t.sources[t.sources.length-1],n=o.databases[r.databaseid].tables[r.tableid],s=o.databases[i.databaseid].tables[i.tableid];if(!n||!s)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");{let t=n.columns.map((t=>t.columnid)),r=s.columns.map((t=>t.columnid));e.using=S(t,r).map((t=>({columnid:t})))}}}if(e.using){let r=t.sources[t.sources.length-1];i.onleftfns=e.using.map((t=>"p['"+(r.alias||r.tableid)+"']['"+t.columnid+"']")).join('+"`"+'),i.onleftfn=new Function("p,params,alasql","let y;return "+i.onleftfns),i.onrightfns=e.using.map((t=>"p['"+(i.alias||i.tableid)+"']['"+t.columnid+"']")).join('+"`"+'),i.onrightfn=new Function("p,params,alasql","let y;return "+i.onrightfns),i.optimization="ix"}else if(e.on)if(e.on instanceof q.Op&&"="===e.on.op&&!e.on.allsome){i.optimization="ix";let r="",n="",o="",a=!1,l=e.on.left.toJS("p",t.defaultTableid,t.defcols),u=e.on.right.toJS("p",t.defaultTableid,t.defcols);l.indexOf("p['"+s+"']")>-1&&!(u.indexOf("p['"+s+"']")>-1)?(l.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?n=l:a=!0:!(l.indexOf("p['"+s+"']")>-1)&&u.indexOf("p['"+s+"']")>-1&&(u.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?r=l:a=!0,u.indexOf("p['"+s+"']")>-1&&!(l.indexOf("p['"+s+"']")>-1)?(u.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?n=u:a=!0:!(u.indexOf("p['"+s+"']")>-1)&&l.indexOf("p['"+s+"']")>-1&&(l.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?r=u:a=!0,a&&(n="",r="",o=e.on.toJS("p",t.defaultTableid,t.defcols),i.optimization="no"),i.onleftfns=r,i.onrightfns=n,i.onmiddlefns=o||"true",i.onleftfn=new Function("p,params,alasql","let y;return "+i.onleftfns),i.onrightfn=new Function("p,params,alasql","let y;return "+i.onrightfns),i.onmiddlefn=new Function("p,params,alasql","let y;return "+i.onmiddlefns)}else i.optimization="no",i.onmiddlefns=e.on.toJS("p",t.defaultTableid,t.defcols),i.onmiddlefn=new Function("p,params,alasql","let y;return "+e.on.toJS("p",t.defaultTableid,t.defcols));t.sources.push(i)}))},q.Select.prototype.compileWhere=function(t){if(this.where){if("function"==typeof this.where)return this.where;var e=this.where.toJS("p",t.defaultTableid,t.defcols);return t.wherefns=e,new Function("p,params,alasql","var y;return "+e)}return function(){return!0}},q.Select.prototype.compileWhereJoins=function(t){if(this.where&&!(t.sources.length<=1)&&!t.sources.some((function(t,e){return e>0&&t.onleftfn}))){var e=function(t){var e=[];return function t(r){if(r){if(r.expression)return void t(r.expression);r instanceof q.Op&&("AND"===r.op?(t(r.left),t(r.right)):"="===r.op&&e.push(r))}}(t),e}(this.where),r={};t.sources.forEach((function(t,e){r[t.alias]=e})),e.forEach((function(e){if("="===e.op&&!e.allsome){var n=Z(e.left),i=Z(e.right),o=e.left.toJS("p",t.defaultTableid,t.defcols),s=e.right.toJS("p",t.defaultTableid,t.defcols);if(1===n.length&&1===i.length){var a=n[0],l=i[0];if(void 0===r[a]||void 0===r[l])return;var u=r[a],c=r[l];c>u?Q(t.sources[c],o,s):u>c&&Q(t.sources[u],s,o)}else 1===n.length&&0===i.length?void 0!==r[n[0]]&&J(t.sources[r[n[0]]],o,s):0===n.length&&1===i.length&&void 0!==r[i[0]]&&J(t.sources[r[i[0]]],o,s)}})),t.sources.forEach((function(t){t.srcwherefns&&(t.srcwherefn=new Function("p,params,alasql","var y;return "+t.srcwherefns))}))}},q.Select.prototype.compileGroup=function(t){if(t.sources.length>0)var e=t.sources[0].alias;else e="";var r=t.defcols,n=[[]];this.group&&(n=at(this.group,t));var i=[];n.forEach((function(t){i=E(i,t)})),t.allgroups=i,t.ingroup=[];var o="";return n.forEach((function(n){o+="var g=this.xgroups[";var s=n.map((function(e){var r=e.split("\t")[0],n=e.split("\t")[1];return""===r?"1":(t.ingroup.push(r),n)}));0===s.length&&(s=["''"]),o+=s.join('+"`"+'),o+="];if(!g) {this.groups.push((g=this.xgroups[",o+=s.join('+"`"+'),o+="] = {",o+=n.map((function(t){var e=t.split("\t")[0],r=t.split("\t")[1];return""===e?"":"'"+e+"':"+r+","})).join("");var a=O(i,n);o+=a.map((function(t){return"'"+t.split("\t")[0]+"':null,"})).join("");var l="",u="";typeof t.groupStar<"u"&&(u+="for(var f in p['"+t.groupStar+"']) {g[f]=p['"+t.groupStar+"'][f];};"),o+=t.selectGroup.map((function(n){var i=n.expression.toJS("p",e,r),o=n.nick;let s=t=>t.args[0].toJS("p",e,r);if(n instanceof q.AggrValue){if(n.distinct&&(l+=",g['$$_VALUES_"+o+"']={},g['$$_VALUES_"+o+"']["+i+"]=true"),"SUM"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}':(__alasql_tmp = ${i}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`):`'${o}':(__alasql_tmp = ${i}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`;if("TOTAL"===n.aggregatorid){if("funcid"in n.expression){let t=s(n.expression);return`'${o}':(${t}) || typeof ${t} == 'number' ?\n\t\t\t\t\t\t\t${t} : ${t} == 'string' && typeof Number(${t}) == 'number' ? Number(${t}) :\n\t\t\t\t\t\t\ttypeof ${t} == 'boolean' ? Number(${t}) : 0,`}return`'${o}':(${i})|| typeof ${i} == 'number' ?\n\t\t\t\t\t\t\t${i} : ${i} == 'string' && typeof Number(${i}) == 'number' ? Number(${i}) :\n\t\t\t\t\t\t\ttypeof ${i} === 'boolean' ? Number(${i}) : 0,`}if("FIRST"===n.aggregatorid||"LAST"===n.aggregatorid)return"'"+o+"':"+i+",";if("MIN"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`):`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`;if("MAX"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`):`'${o}' : (${i} !== null && (typeof ${i} == 'number' || typeof ${i} == 'bigint') ? ${i} : ${i} !== null && typeof ${i} == 'object' ?\n\t\t\t\t\t\t\ttypeof Number(${i}) == 'number' ? ${i} : undefined : undefined),`;if("ARRAY"===n.aggregatorid)return`'${o}':[${i}],`;if("COUNT"===n.aggregatorid)return"*"===n.expression.columnid?`'${o}':1,`:`'${o}':(typeof ${i} == "undefined" || ${i} === null) ? 0 : 1,`;if("AVG"===n.aggregatorid)return t.removeKeys.push(`_SUM_${o}`),t.removeKeys.push(`_COUNT_${o}`),`'${o}':(function() { var t = ${i}; return (t instanceof Date) ? undefined : t; })(),'_SUM_${o}':(function() { var t = ${i}; return (t instanceof Date) ? undefined : (t || 0); })(),'_COUNT_${o}':(typeof ${i} == "undefined" || ${i} === null) ? 0 : 1,`;if("AGGR"===n.aggregatorid)return l+=`,g['${o}']=${n.expression.toJS("g",-1)}`,"";if("REDUCE"===n.aggregatorid){t.aggrKeys.push(n);let s=tt(n);if(n.args&&n.args.length>1){let t=n.args.map((t=>t.toJS("p",e,r))).join(",");return`'${o}':alasql.aggr['${n.funcid}'](${t},undefined,1${s}),`}return`'${o}':alasql.aggr['${n.funcid}'](${i},undefined,1${s}),`}return""}return""})).join(""),o+="}"+l+",g));"+u+"} else {",o+=t.selectGroup.map((function(t){var n=t.nick,i=t.expression.toJS("p",e,r);let o=t=>t.args[0].toJS("p",e,r);if(t instanceof q.AggrValue){var s="",a="";if(t.distinct&&(s=`if(typeof ${i}!="undefined" && (!g['$$_VALUES_${n}'][${i}])) {`,a=`g['$$_VALUES_${n}'][${i}]=true;}`),"SUM"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\t\tconst __typeof_colexp1 = typeof ${e};\n\t\t\t\t\t\t\t\t\tconst __colexp1 = ${e};\n\n\t\t\t\t\t\t\t\t\tif (__g_colas == null && ${e} == null) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else if (typeof __g_colas === 'bigint' || typeof __colexp1 === 'bigint') {\n \t\t\t\t\t \tg['${n}'] = BigInt(__g_colas) + BigInt(__colexp);\n \t\t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 !== 'object' && __typeof_colexp1 !== 'number') ||\n\t\t\t\t\t\t\t\t\t\t (__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${e} == null || (__typeof_colexp1 !== 'number' && __typeof_colexp1 !== 'object'))) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 == 'number') ||\n\t\t\t\t\t\t\t\t\t\t\t (__g_colas == null && __typeof_colexp1 == 'number')) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t\t\t} else if (typeof __g_colas == 'number' && ${e} == null) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t\t} else if (__g_colas instanceof Date || __colexp1 instanceof Date) {\n\t\t\t\t\t\t\t\t\t\t// Date objects cause string concatenation with +=, return undefined instead\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] += ${i} || 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t`+a}return s+`\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\tconst __typeof_colexp = typeof ${i};\n\t\t\t\t\t\t\t\tconst __colexp = ${i};\n\n\t\t\t\t\t\t\t\tif (__g_colas == null && ${i} == null) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t} else if (typeof __g_colas === 'bigint' || typeof __colexp === 'bigint') {\n \t\t\t\t\t g['${n}'] = BigInt(__g_colas) + BigInt(__colexp);\n \t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp !== 'object' && __typeof_colexp !== 'number') ||\n\t\t\t\t\t\t\t\t\t\t (__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${i} == null || (__typeof_colexp !== 'number' && __typeof_colexp !== 'object'))) {\n\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else if (typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp == 'number') {\n\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t} else if (typeof __g_colas == 'number' && ${i} == null) {\n\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t} else if (__g_colas == null && __typeof_colexp == 'number') {\n\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t} else if (__g_colas instanceof Date || __colexp instanceof Date) {\n\t\t\t\t\t\t\t\t// Date objects cause string concatenation with +=, return undefined instead\n\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tg['${n}'] += ${i} || 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t`+a}if("TOTAL"===t.aggregatorid)return"funcid"in t.expression?s+`{\n\t\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\t\tconst __colexp1 = ${o(t.expression)};\n\t\t\t\t\t\t\t\t\tconst __typeof_g_colas = typeof __g_colas;\n\t\t\t\t\t\t\t\t\tconst __typeof_colexp1 = typeof __colexp1;\n\n\t\t\t\t\t\t\t\t\tif (__typeof_g_colas == 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) == 'number' &&\n\t\t\t\t\t\t\t\t\t\t__typeof_colexp1 == 'string' && !isNaN(__colexp1) && typeof Number(__colexp1) == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = Number(__g_colas) + Number(__colexp1);\n\t\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'bigint' || __typeof_colexp1 === 'bigint') {\n \t\t\t\t\t\t\t \tg['${n}'] = BigInt(__g_colas || 0) + BigInt(__colexp1 || 0);\n \t\t\t\t\t\t\t\t} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'string') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = 0;\n\t\t\t\t\t\t\t\t\t} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __colexp1;\n\t\t\t\t\t\t\t\t\t} else if (__typeof_colexp1 == 'string' && __typeof_g_colas == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] += __colexp1 || 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}`+a:s+`{\n\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\tconst __colexp = ${i};\n\t\t\t\t\t\t\t\tconst __typeof_g_colas = typeof __g_colas;\n\t\t\t\t\t\t\t\tconst __typeof_colexp = typeof __colexp;\n\n\t\t\t\t\t\t\t\tif (__typeof_g_colas === 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) === 'number' &&\n\t\t\t\t\t\t\t\t\t__typeof_colexp === 'string' && !isNaN(__colexp) && typeof Number(__colexp) === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(__g_colas) + Number(__colexp);\n\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'bigint' || __typeof_colexp === 'bigint') {\n \t\t\t\t\t\t\t g['${n}'] = BigInt(__g_colas || 0) + BigInt(__colexp || 0);\n \t\t\t\t\t\t\t} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'string') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = 0;\n\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = __colexp;\n\t\t\t\t\t\t\t\t} else if (__typeof_colexp === 'string' && __typeof_g_colas === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tg['${n}'] += __colexp || 0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t`+a;if("COUNT"===t.aggregatorid)return"*"===t.expression.columnid?`${s}\n\t\t\t\t\t\t\t\tg['${n}']++;\n\t\t\t\t\t\t\t\t${a}`:`${s}\n\t\t\t\t\t\t\tif(typeof ${i}!="undefined" && ${i} !== null) g['${n}']++;\n\t\t\t\t\t\t\t${a}`;if("ARRAY"===t.aggregatorid)return s+"g['"+n+"'].push("+i+");"+a;if("MIN"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`if ((g['${n}'] == null && ${e} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${e} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t\t((y = ${i}) < g['${n}'])) {\n\t\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t\t}`+a}return s+`if((g['${n}'] == null && ${i}!== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t(g['${n}']!== null && ${i} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t((y=${i}) < g['${n}'])) { \n\t\t\t\t\t\t\t\tif(typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if(typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if(typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(g['${n}']!== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t} else if(g['${n}']!== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t}`+a}if("MAX"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`if ((g['${n}'] == null && ${e} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${e} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t\t((y = ${i}) > g['${n}'])) {\n\t\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t\t}`+a}return s+`if ((g['${n}'] == null && ${i} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${i} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t((y = ${i}) > g['${n}'])) {\n\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t}`+a}if("FIRST"===t.aggregatorid)return"";if("LAST"===t.aggregatorid)return`${s}g['${n}']=${i};${a}`;if("AVG"===t.aggregatorid)return`${s}\n\t\t\t\t\t\t\ty= (${i});\n\t\t\t\t\t\t\tg['_COUNT_${n}'] += (typeof y == "undefined" || y === null) ? 0 : 1;\n\t\t\t\t\t\t\tif (y instanceof Date || (g['_SUM_${n}'] && g['_SUM_${n}'] instanceof Date)) {\n\t\t\t\t\t\t\t// AVG on Date objects doesn't make semantic sense - return undefined\n\t\t\t\t\t\t\tg['_SUM_${n}'] = undefined;\n\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else if (typeof g['_SUM_${n}'] === 'bigint' || typeof y === 'bigint') {\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] = BigInt(g['_SUM_${n}']);\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] += BigInt(y || 0);\n \t\t\t\t\t\t\tg['${n}'] = BigInt(g['_SUM_${n}']) / BigInt(g['_COUNT_${n}']); \n \t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] += (y || 0);\n \t\t\t\t\t\t\tg['${n}'] = g['_SUM_${n}'] / g['_COUNT_${n}']; \n \t\t\t\t\t\t}\n\t\t\t\t\t\t\t${a}`;if("AGGR"===t.aggregatorid)return`${s}\n\t\t\t\t\t\t\tg['${n}']=${t.expression.toJS("g",-1)};\n\t\t\t\t\t\t\t${a}`;if("REDUCE"===t.aggregatorid){let o=tt(t);if(t.args&&t.args.length>1){let i=t.args.map((t=>t.toJS("p",e,r))).join(",");return`${s}\n\t\t\t\t\t\t\t\tg['${n}'] = alasql.aggr.${t.funcid}(${i},g['${n}'],2${o});\n\t\t\t\t\t\t\t\t${a}`}return`${s}\n\t\t\t\t\t\t\t\tg['${n}'] = alasql.aggr.${t.funcid}(${i},g['${n}'],2${o});\n\t\t\t\t\t\t\t\t${a}`}return""}return""})).join(""),o+="}"})),new Function("p,params,alasql","var y;"+o)};var et=/^(SUM|MAX|MIN|FIRST|LAST|AVG|ARRAY|REDUCE|TOTAL)$/;function rt(t,e,r){var n="",i=[],s={};return e.forEach((function(e){if(t.ixsources={},t.sources.forEach((function(e){t.ixsources[e.alias]=e})),t.ixsources[e])var a=t.ixsources[e].columns;r&&"json"==o.options.joinstar&&(n+="r['"+e+"']={};"),a&&a.length>0?a.forEach((function(a){let l=p(a.columnid);if(r&&"underscore"==o.options.joinstar)i.push("'"+e+"_"+l+"':p['"+e+"']['"+l+"']");else if(r&&"json"==o.options.joinstar)n+="r['"+e+"']['"+l+"']=p['"+e+"']['"+l+"'];";else{var u="p['"+e+"']['"+l+"']";if(s[a.columnid]){var c=u+" !== undefined ? "+u+" : "+s[a.columnid].value;i[s[a.columnid].id]=s[a.columnid].key+c,s[a.columnid].value=c}else{var h="'"+l+"':";i.push(h+u),s[a.columnid]={id:i.length-1,value:u,key:h}}}t.selectColumns[l]=!0;var d={columnid:a.columnid,dbtypeid:a.dbtypeid,dbsize:a.dbsize,dbprecision:a.dbprecision,dbenum:a.dbenum};t.columns.push(d),t.xcolumns[d.columnid]=d})):(r&&"json"==o.options.joinstar?n+="r['"+p(e)+"']=p['"+p(e)+"'];":r&&"underscore"==o.options.joinstar?n+='var w=p["'+p(e)+'"];for(var k in w){r["'+p(e)+'_"+k]=w[k]};':n+='var w=p["'+p(e)+'"];for(var k in w){r[k]=w[k]};',t.dirtyColumns=!0)})),{s:i.join(","),sp:n}}q.Select.prototype.compileSelect1=function(t,e){var r=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var n="var r={",i="",s=[];return this.columns.forEach((function(n){if(n instanceof q.Column)if("*"===n.columnid)if(n.func)i+="r=params['"+n.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(n.tableid)(a=rt(t,[n.tableid],!1)).s&&(s=s.concat(a.s)),i+=a.sp;else{var a;(a=rt(t,Object.keys(t.aliases),!0)).s&&(s=s.concat(a.s)),i+=a.sp}else{var l=n.tableid,c=n.databaseid||t.sources[0].databaseid||t.database.databaseid;if(l||(l=t.defcols[n.columnid]),l||(l=t.defaultTableid),"_"!==n.columnid)if(e&&e.length>1&&Array.isArray(e[0])&&e[0].length>=1&&e[0][0].hasOwnProperty("sheetid"))i='var r={};var w=p["'+l+'"];var cols=['+r.columns.map((function(t){return"'"+t.columnid+"'"})).join(",")+"];var colas=["+r.columns.map((function(t){return"'"+(t.as||t.columnid)+"'"})).join(",")+"];for (var i=0;i1)||t.defcols[n.columnid]&&"-"!==t.defcols[n.columnid])s.push("'"+p(n.as||n.columnid)+"':p['"+l+"']['"+n.columnid+"']");else{var h=Object.keys(t.aliases).map((function(t){return"p['"+t+"']['"+n.columnid+"']"})).join(" ?? ");s.push("'"+p(n.as||n.columnid)+"':("+h+")")}else s.push("'"+p(n.as||n.columnid)+"':p['"+l+"']");if(t.selectColumns[p(n.as||n.columnid)]=!0,t.aliases[l]&&"table"===t.aliases[l].type){if(!o.databases[c].tables[t.aliases[l].tableid])throw new Error("Table '"+l+"' does not exist in database");var d=o.databases[c].tables[t.aliases[l].tableid].columns,f=o.databases[c].tables[t.aliases[l].tableid].xcolumns;if(f&&d.length>0){var g=f[n.columnid];if(void 0===g)throw new Error("Column does not exist: "+n.columnid);var m={columnid:n.as||n.columnid,dbtypeid:g.dbtypeid,dbsize:g.dbsize,dbpecision:g.dbprecision,dbenum:g.dbenum};t.columns.push(m),t.xcolumns[m.columnid]=m}else m={columnid:n.as||n.columnid},t.columns.push(m),t.xcolumns[m.columnid]=m,t.dirtyColumns=!0}else m={columnid:n.as||n.columnid},t.columns.push(m),t.xcolumns[m.columnid]=m}else if(n instanceof q.AggrValue)n.as||(n.as=p(n.toString())),n.over?t.windowaggrs.push({as:n.as,aggregatorid:n.aggregatorid,expression:n.expression,partitionColumns:n.over.partition?n.over.partition.map((function(t){return t.columnid||t.toString()})):[]}):(r.group||(r.group=[""]),et.test(n.aggregatorid)?s.push("'"+p(n.as)+"':"+u(n.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===n.aggregatorid&&s.push("'"+p(n.as)+"':1")),m={columnid:n.as||n.columnid||n.toString()},t.columns.push(m),t.xcolumns[m.columnid]=m;else{var y=t.intoObject&&!n.as?function(t){if(!t||"->"!==t.op)return null;for(var e=[],r=t;r&&"->"===r.op;){if("string"==typeof r.right)e.unshift(r.right);else{if("number"!=typeof r.right)return null;e.unshift(r.right)}r=r.left}return r&&r.columnid?(e.unshift(r.columnid),e):null}(n):null;if(y&&y.length>1){for(var _=u(n.toJS("p",t.defaultTableid,t.defcols)),v=0;v0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach((function(n,i){var o="$$$"+i;void 0!==n._useColumnIndex?r+="var keys=Object.keys(r);r['"+o+"']=r[keys["+n.columnIndex+"]];":n instanceof q.Column&&t.xcolumns[n.columnid]?r+="r['"+o+"']=r['"+n.columnid+"'];":n instanceof q.ParamValue&&t.xcolumns[e[n.param]]?r+="r['"+o+"']=r['"+e[n.param]+"'];":r+="r['"+o+"']="+n.toJS("p",t.defaultTableid,t.defcols)+";",t.removeKeys.push(o)})),new Function("p,params,alasql","var y;"+r+"return r")},q.Select.prototype.compileSelectGroup0=function(t){var e=this,r=null,n=null;e.group&&(r={},e.group.forEach((function(t,e){t instanceof q.Column&&t.columnid&&!t.tableid&&(r[t.columnid]=e)})),n={},e.columns.forEach((function(t){t instanceof q.Column&&t.columnid&&(n[t.columnid]=!0)}))),e.columns.forEach((function(i,o){if(i instanceof q.Column&&"*"===i.columnid)t.groupStar=i.tableid||"default";else{var s;s=i instanceof q.Column?p(i.columnid):p(i.toString(!0));for(var a=0;a-1&&(e.group[l].nick=s),i.as&&r&&r.hasOwnProperty(i.as)&&!n[i.as]){var u=r[i.as],c=R(i);delete c.as,c.nick=s,e.group[u]=c}}i.funcid&&("ROWNUM"===i.funcid.toUpperCase()||"ROW_NUMBER"===i.funcid.toUpperCase())&&(i.over&&i.over.partition?t.grouprownums.push({as:i.as,partitionColumns:i.over.partition.map((function(t){return t.columnid||t.toString()}))}):t.rownums.push(i.as)),i.funcid&&"GROUP_ROW_NUMBER"===i.funcid.toUpperCase()&&t.grouprownums.push({as:i.as,columnIndex:0})}})),this.columns.forEach((function(e){e.findAggregator&&e.findAggregator(t)})),this.having&&this.having.findAggregator&&this.having.findAggregator(t)},q.Select.prototype.compileSelectGroup1=function(t){var e="var r = {};";return this.columns.forEach((function(r){if(r instanceof q.Column&&"*"===r.columnid)return e+="for(var k in g) {r[k]=g[k]};","";var n=r.as;void 0===n&&(n=r instanceof q.Column?p(r.columnid):r.nick),t.groupColumns[n]=r.nick,e+="r['"+n+"']=",e+=u(r.toJS("g",""))+";";for(var i=0;i-1){var a=o&&o.nick||i.nick;r+="r['"+(i.as||i.nick)+"']=g['"+a+"'];"}}})),this.orderColumns&&this.orderColumns.length>0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach((function(e,n){var i="$$$"+n;void 0!==e._useColumnIndex?r+="var keys=Object.keys(r);r['"+i+"']=r[keys["+e.columnIndex+"]];":e instanceof q.Column&&t.groupColumns[e.columnid]?r+="r['"+i+"']=r['"+e.columnid+"'];":r+="r['"+i+"']="+e.toJS("g","")+";",t.removeKeys.push(i)})),new Function("g,params,alasql","var y;"+r+"return r")},q.Select.prototype.compileRemoveColumns=function(t){typeof this.removecolumns<"u"&&(t.removeKeys=t.removeKeys.concat(this.removecolumns.filter((function(t){return typeof t.like>"u"})).map((function(t){return t.columnid}))),t.removeLikeKeys=this.removecolumns.filter((function(t){return typeof t.like<"u"})).map((function(t){return t.like.value})))},q.Select.prototype.compileHaving=function(t){if(this.having){var e=this.having.toJS("g",-1);return t.havingfns=e,new Function("g,params,alasql","var y;return "+e)}return function(){return!0}},q.Select.prototype.compileOrder=function(t,e){var r=this;if(r.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression,i="FIRST"==this.order[0].nullsOrder?-1:"LAST"==this.order[0].nullsOrder?1:0;return function(t,e){var r=n(t),o=n(e);if(i){if(null==r)return null==o?0:i;if(null==o)return-i}return r>o?1:r==o?0:-1}}var s="",a="";return this.order.forEach((function(n,i){if(n.expression instanceof q.NumValue){if(n.expression.value<1)throw new Error(`Invalid column number ${n.expression.value}. Column numbers must be at least 1.`);var l=r.columns[n.expression.value-1];if(1===r.columns.length&&r.columns[0]instanceof q.Column&&"*"===r.columns[0].columnid)l={_useColumnIndex:!0,columnIndex:n.expression.value-1};else{if(n.expression.value>r.columns.length)throw new Error(`You are trying to order by column number ${n.expression.value} but you have only selected ${r.columns.length} columns.`);l instanceof q.Column&&"*"===l.columnid&&(l={_useColumnIndex:!0,columnIndex:n.expression.value-1})}}else l=n.expression instanceof q.StringValue?new q.Column({columnid:n.expression.value}):n.expression;r.orderColumns.push(l);var u,c="$$$"+i,h="";if(n.expression instanceof q.Column?u=n.expression.columnid:n.expression instanceof q.ParamValue?u=e[n.expression.param]:n.expression instanceof q.StringValue&&(u=n.expression.value),u)if(o.options.valueof)h=".valueOf()";else if(t.xcolumns[u]){var d=t.xcolumns[u].dbtypeid;("DATE"==d||"DATETIME"==d||"DATETIME2"==d||"STRING"==d||"NUMBER"==d)&&(h=".valueOf()")}n.nocase&&(h+=".toUpperCase()"),n.nullsOrder&&("FIRST"==n.nullsOrder?s+="if((a['"+c+"'] != null) && (b['"+c+"'] == null)) return 1;":"LAST"==n.nullsOrder&&(s+="if((a['"+c+"'] == null) && (b['"+c+"'] != null)) return 1;"),s+="if((a['"+c+"'] == null) == (b['"+c+"'] == null)) {",a+="}"),s+="if((a['"+c+"']||'')"+h+("ASC"==n.direction?">":"<")+"(b['"+c+"']||'')"+h+")return 1;",s+="if((a['"+c+"']||'')"+h+"==(b['"+c+"']||'')"+h+"){",a+="}"})),s+="return 0;",s+=a+"return -1",t.orderfns=s,new Function("a,b","var y;"+s)}},q.Select.prototype.compilePivot=function(t){var e,r=this,n=r.pivot.columnid,i=r.pivot.expr.aggregatorid,s=r.pivot.inlist;if(null==(e=r.pivot.expr.expression.hasOwnProperty("columnid")?r.pivot.expr.expression.columnid:r.pivot.expr.expression.expression.columnid))throw"columnid not found";return s&&(s=s.map((function(t){return t.expr.columnid}))),function(){var t=this;if(!t.data||0===t.data.length)return void(t.columns=[]);var r=Object.keys(t.data[0]).filter((function(t){return t!==n&&t!==e})),a=[],l={},u={},c={},h=[];if(t.data.forEach((function(t){if(!s||-1!==s.indexOf(t[n])){var d=r.map((function(e){return void 0===t[e]||null===t[e]?"":t[e]})).join("`"),p=u[d];p||(p={},u[d]=p,h.push(p),r.forEach((function(e){p[e]=t[e]}))),c[d]||(c[d]={});var f=t[n],g=t[e];if(c[d][f]?null!==g&&typeof g<"u"&&c[d][f]++:c[d][f]=null!==g&&typeof g<"u"?1:0,l[f]||(l[f]=!0,a.push(f)),"SUM"==i||"AVG"==i||"TOTAL"==i)null!==g&&typeof g<"u"?p[f]=typeof p[f]>"u"||null===p[f]?Number(g):p[f]+Number(g):typeof p[f]>"u"&&(p[f]=null);else if("COUNT"==i)"*"===e||null!==g&&typeof g<"u"?p[f]=(p[f]||0)+1:typeof p[f]>"u"&&(p[f]=0);else if("MIN"==i)null!==g&&typeof g<"u"?(typeof p[f]>"u"||null===p[f]||g"u"&&(p[f]=null);else if("MAX"==i)null!==g&&typeof g<"u"?(typeof p[f]>"u"||null===p[f]||g>p[f])&&(p[f]=g):typeof p[f]>"u"&&(p[f]=null);else if("FIRST"==i)typeof p[f]>"u"&&(p[f]=g);else if("LAST"==i)p[f]=g;else{if(!o.aggr[i])throw new Error("Unknown aggregator in PIVOT clause: "+i);typeof p[f]>"u"?p[f]=o.aggr[i](g,void 0,1):p[f]=o.aggr[i](g,p[f],2)}}})),"AVG"==i)for(var d in u){var p=u[d];for(var f in c[d])if(p.hasOwnProperty(f)&&null!==p[f]){var g=c[d][f];p[f]=g>0?p[f]/g:null}}t.data=h,s?a=s:a.sort();let m=t.columns.find((t=>t.columnid===e));if(!m&&t.sources&&t.sources.length>0){let r=t.sources[0].tableid,n=t.sources[0].databaseid;r&&n&&o.databases[n]?.tables?.[r]?.xcolumns&&(m=o.databases[n].tables[r].xcolumns[e])}m=m||{columnid:e,dbtypeid:"OBJECT"},t.columns=t.columns.filter((function(t){return r.includes(t.columnid)})),a.forEach((function(e){var r=R(m);r.columnid=e;let n=(m.dbtypeid||"OBJECT").toUpperCase(),o=["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"],s=[...o,"NUMBER","FLOAT","DECIMAL","NUMERIC","MONEY"];"COUNT"===i?r.dbtypeid="INT":"AVG"===i?o.includes(n)?r.dbtypeid=m.dbtypeid:r.dbtypeid="FLOAT":"SUM"===i||"TOTAL"===i?s.includes(n)?r.dbtypeid=m.dbtypeid:r.dbtypeid="FLOAT":"MIN"===i||"MAX"===i||"FIRST"===i||"LAST"===i?r.dbtypeid=m.dbtypeid:r.dbtypeid||(r.dbtypeid="OBJECT"),t.columns.push(r)}))}},q.Select.prototype.compileUnpivot=function(t){var e=this,r=e.unpivot.tocolumnid,n=e.unpivot.forcolumnid,i=e.unpivot.inlist.map((function(t){return t.columnid}));return function(){var e=[],o=t.columns.map((function(t){return t.columnid})).filter((function(t){return-1==i.indexOf(t)&&t!=n&&t!=r}));t.data.forEach((function(t){i.forEach((function(i){var s={};o.forEach((function(e){s[e]=t[e]})),s[n]=i,s[r]=t[i],e.push(s)}))})),t.data=e}};let nt=(t,e)=>{let r=[],n=0,i=t.length;for(let o=0;o{let r=[],n=t.length,i=1<t.reduce(((t,r)=>t.concat(at(r,e))),[]),st=(t,e)=>{let r=[];for(let n=0;nr.concat(`${t[n].nick}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));else if(t[n]instanceof q.FuncValue)e.groupColumns[p(t[n].toString())]=p(t[n].toString()),r=r.map((r=>r.concat(`${p(t[n].toString())}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));else if(t[n]instanceof q.GroupExpression)if("ROLLUP"==t[n].type)r=st(r,nt(t[n].group,e));else if("CUBE"==t[n].type)r=st(r,it(t[n].group,e));else{if("GROUPING SETS"!=t[n].type)throw new Error("Unknown grouping function");r=st(r,ot(t[n].group,e))}else r=""===t[n]?[["1\t1"]]:r.map((r=>r.concat(`${p(t[n].toString())}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));return r}return t instanceof q.FuncValue?(e.groupColumns[p(t.toString())]=p(t.toString()),[`${t.toString()}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`]):t instanceof q.Column?(t.nick=p(t.columnid),e.groupColumns[t.nick]=t.nick,[`${t.nick}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`]):(e.groupColumns[p(t.toString())]=p(t.toString()),[`${p(t.toString())}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`])}q.Select.prototype.compileDefCols=function(t,e){var r={".":{}};return this.from&&this.from.forEach((function(t){if(r["."][t.as||t.tableid]=!0,t instanceof q.Table){var n=t.as||t.tableid,i=o.databases[t.databaseid||e].tables[t.tableid];if(void 0===i)throw new Error("Table does not exist: "+t.tableid);i.columns&&i.columns.forEach((function(t){r[t.columnid]?r[t.columnid]="-":r[t.columnid]=n}))}else if(!(t instanceof q.Select||t instanceof q.Search||t instanceof q.ParamValue||t instanceof q.VarValue||t instanceof q.FuncValue||t instanceof q.FromData||t instanceof q.Json||t.inserted))throw new Error("Unknown type of FROM clause")})),this.joins&&this.joins.forEach((function(t){if(r["."][t.as||t.table.tableid]=!0,t.table){var n=t.as||t.table.tableid,i=t.table.databaseid||e,s=o.databases[i];if(void 0===s)throw new Error("Database does not exist: "+i);var a=s.tables[t.table.tableid];if(void 0===a)throw new Error("Table does not exist: "+t.table.tableid);a.columns&&a.columns.forEach((function(t){r[t.columnid]?r[t.columnid]="-":r[t.columnid]=n}))}else if(!t.select&&!t.param&&!t.func)throw new Error("Unknown type of FROM clause")})),r},q.Union=class{constructor(t){Object.assign(this,t)}toString(){return"UNION"}compile(t){return null}},q.Apply=class{constructor(t){Object.assign(this,t)}toString(){let t=`${this.applymode} APPLY (${this.select.toString()})`;return this.as&&(t+=` AS ${this.as}`),t}},q.Over=class{constructor(t){Object.assign(this,t)}toString(){let t="OVER (";return this.partition&&(t+=`PARTITION BY ${this.partition.toString()}`,this.order&&(t+=" ")),this.order&&(t+=`ORDER BY ${this.order.toString()}`),t+=")",t}};{let t=Object.assign;class e{constructor(e){t(this,e)}toString(){return this.expression.toString()}execute(t,e,r){if(this.expression){o.precompile(this,t,e);var n=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this)(e,o);return r&&(n=r(n)),n}}}class r{constructor(e){t(this,e)}toString(){var t=this.expression.toString();return this.order&&(t+=" "+this.order.toString()),this.nocase&&(t+=" COLLATE NOCASE"),this.direction&&(t+=" "+this.direction),t}findAggregator(t){this.expression.findAggregator&&this.expression.findAggregator(t)}toJS(t,e,r){return this.expression.reduced?"true":this.expression.toJS(t,e,r)}compile(t,e,r){return!!this.reduced||new Function("p","var y;return "+this.toJS(t,e,r))}}class n{constructor(e){t(this,e)}toString(){return"``"+this.value+"``"}toJS(){return"("+this.value+")"}execute(t,e,r){var n=1;return new Function("params,alasql,p",this.value)(e,o),r&&(n=r(n)),n}}class i{constructor(e){t(this,e)}toString(){var t=this.value;return this.value1&&(t=this.value1+"."+t),t}}class s{constructor(e){t(this,e)}toString(){var t=" ";return this.joinmode&&(t+=this.joinmode+" "),t+"JOIN "+this.table.toString()}}class a{constructor(e){t(this,e)}toString(){var t=this.tableid;return this.databaseid&&(t=this.databaseid+"."+t),t}}class l{constructor(e){t(this,e)}toString(){var t=this.viewid;return this.databaseid&&(t=this.databaseid+"."+t),t}}let u=new Set(["-","*","/","%","^","<<",">>","&","|"]),c=new Set(["||"]),h=/[\s.\-\[\]]/,d=new Set(["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB","BETWEEN","NOT BETWEEN","IS NULL","IS NOT NULL"]);class f{constructor(e){t(this,e)}toString(){let t,e=this.left.toString();return"IN"===this.op||"NOT IN"===this.op?`${e} ${this.op} (${this.right.toString()})`:this.allsome?`${e} ${this.op} ${this.allsome} (${this.right.toString()})`:"->"===this.op||"!"===this.op?(t=`${e}${this.op}`,"string"!=typeof this.right&&"number"!=typeof this.right?t+`(${this.right.toString()})`:t+this.right.toString()):"BETWEEN"===this.op||"NOT BETWEEN"===this.op?`${e} ${this.op} ${this.right1.toString()} AND ${this.right2.toString()}`:`${e} ${this.op} ${this.allsome?this.allsome+" ":""}${this.right.toString()}`}findAggregator(t){this.left&&this.left.findAggregator&&this.left.findAggregator(t),("BETWEEN"===this.op||"NOT BETWEEN"===this.op)&&(this.right1&&this.right1.findAggregator&&this.right1.findAggregator(t),this.right2&&this.right2.findAggregator&&this.right2.findAggregator(t)),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(t)}toType(t){if(u.has(this.op))return"number";if(c.has(this.op))return"string";if("+"===this.op){let e=this.left.toType(t),r=this.right.toType(t);if("string"===e||"string"===r)return"string";if("number"===e||"number"===r)return"number"}return d.has(this.op)||this.allsome?"boolean":this.op?"unknown":this.left.toType(t)}toJS(t,e,r){let n=[],i=this.op,s=!1,a=this,l=function(i){return i.toJS&&(i=i.toJS(t,e,r)),"y["+(n.push(i)-1)+"]"};var u,c=function(){return l(a.left)},h=function(){return l(a.right)};if("="===this.op)i="===";else if("<>"===this.op)i="!=";else if("OR"===this.op)i="||";else if("->"===this.op){let t=`(${c()} || {})`;if("string"==typeof this.right)u=`${t}["${p(this.right)}"]`;else if("number"==typeof this.right)u=`${t}[${this.right}]`;else if(this.right instanceof q.FuncValue){let e=[];this.right.args&&this.right.args.length>0&&(e=this.right.args.map(l)),u=`${t}[${JSON.stringify(this.right.funcid)}](${e.join(",")})`}else u=`${t}[${h()}]`}else if("!"===this.op)"string"==typeof this.right&&(u=`alasql.databases[alasql.useid].objects[${c()}]["${this.right}"]`);else if("IS"===this.op){let t=c(),e=h();u=this.right instanceof q.NullValue||"NOT"===this.right.op&&this.right.right instanceof q.NullValue?`((${t} == null) === (${e} == null))`:`((${t} == ${e}) || (${t} < 0 && true == ${e}))`}else if("=="===this.op)u=`alasql.utils.deepEqual(${c()}, ${h()})`;else if("==="===this.op||"!==="===this.op)u=`(${"!==="===this.op?"!":""}((${c()}).valueOf() === (${h()}).valueOf()))`;else if("!=="===this.op)u=`(!alasql.utils.deepEqual(${c()}, ${h()}))`;else if("||"===this.op)u=`(''+(${c()} || '') + (${h()} || ''))`;else if("LIKE"===this.op||"NOT LIKE"===this.op)u=`(${"NOT LIKE"===this.op?"!":""}alasql.utils.like(${h()}, ${c()}${this.escape?`, ${l(this.escape)}`:""}))`;else if("REGEXP"===this.op)u=`alasql.stdfn.REGEXP_LIKE(${c()}, ${h()})`;else if("GLOB"===this.op)u=`alasql.utils.glob(${c()}, ${h()})`;else if("BETWEEN"===this.op||"NOT BETWEEN"===this.op){let t=c();u=`(${"NOT BETWEEN"===this.op?"!":""}((${l(this.right1)} <= ${t}) && (${t} <= ${l(this.right2)})))`}else if("IN"===this.op)if(this.right instanceof q.Select){let e=`in${this.queriesidx}`,r=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,n=`((this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${e} || (this.subqueryCache.${e} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${c()})))`;u=`(${r} ? (alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).indexOf(alasql.utils.getValueOf(${c()})) > -1) : ${n})`}else if(Array.isArray(this.right))if(0===this.right.length)c(),u="false",s=!0;else if(!o.options.cache||this.right.some((t=>t instanceof q.ParamValue)))u=`(new Set([${this.right.map(l).join(",")}]).has(alasql.utils.getValueOf(${c()})))`;else{o.sets=o.sets||{};let t=this.right.map((t=>t.value)),e=t.join(",");o.sets[e]=o.sets[e]||new Set(t),u=`alasql.sets["${e}"].has(alasql.utils.getValueOf(${c()}))`}else u=`(${h()}.indexOf(${c()}) > -1)`;else if("NOT IN"===this.op)if(this.right instanceof q.Select){let e=`notIn${this.queriesidx}`,r=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,n=`(!(this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${e} || (this.subqueryCache.${e} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${c()})))`;u=`(${r} ? (alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).indexOf(alasql.utils.getValueOf(${c()})) < 0) : ${n})`}else if(Array.isArray(this.right))if(0===this.right.length)c(),u="true",s=!0;else if(!o.options.cache||this.right.some((t=>t instanceof q.ParamValue)))u=`(!(new Set([${this.right.map(l).join(",")}]).has(alasql.utils.getValueOf(${c()}))))`;else{o.sets=o.sets||{};let t=this.right.map((t=>t.value)),e=t.join(",");o.sets[e]=o.sets[e]||new Set(t),u=`!alasql.sets["${e}"].has(alasql.utils.getValueOf(${c()}))`}else u=`(${h()}.indexOf(${c()}) === -1)`;if("ALL"===this.allsome)if(this.right instanceof q.Select)u="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",u+=".every(function(b){return (",u+=c()+")"+i+"b})";else{if(!Array.isArray(this.right))throw new Error("NOT IN operator without SELECT");u=""+(1==this.right.length?l(this.right[0]):"["+this.right.map(l).join(",")+"]"),u+=".every(function(b){return (",u+=c()+")"+i+"b})"}if("SOME"===this.allsome||"ANY"===this.allsome)if(this.right instanceof q.Select)u="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",u+=".some(function(b){return (",u+=c()+")"+i+"b})";else{if(!Array.isArray(this.right))throw new Error("SOME/ANY operator without SELECT");u=""+(1==this.right.length?l(this.right[0]):"["+this.right.map(l).join(",")+"]"),u+=".some(function(b){return (",u+=c()+")"+i+"b})"}if("AND"===this.op){if(this.left.reduced){if(this.right.reduced)return"true";u=h()}else this.right.reduced&&(u=c());i="&&"}var d=u||"("+c()+i+h()+")",f="y=[("+n.join("), (")+")]";return s||"&&"===i||"||"===i||"IS"===i||"IS NULL"===i||"IS NOT NULL"===i?"("+f+", "+d+")":`(${f}, y.some(e => e == null || (typeof e === 'number' && isNaN(e))) ? void 0 : ${d})`}}class g{constructor(e){t(this,e)}toString(){return"@"+this.variable}toType(){return"unknown"}toJS(){return"alasql.vars['"+p(this.variable)+"']"}}class m{constructor(e){t(this,e)}toString(){return this.value.toString()}toType(){return"number"}toJS(){return""+this.value}}class y{constructor(e){t(this,e)}toString(){return"'"+this.value.toString()+"'"}toType(){return"string"}toJS(){return"'"+p(this.value)+"'"}}class _{constructor(e){t(this,e)}toString(){return"VALUE"}toType(){return"object"}toJS(t,e,r){return t}}class v{constructor(e){t(this,e)}toString(){return"ARRAY[]"}toType(){return"object"}toJS(t,e,r){return"[("+this.value.map((function(n){return n.toJS(t,e,r)})).join("), (")+")]"}}class x{constructor(e){t(this,e)}toString(){return this.value?"TRUE":"FALSE"}toType(){return"boolean"}toJS(){return this.value?"true":"false"}}class b{constructor(e){t(this,e)}toString(){return"NULL"}toJS(){return"undefined"}}class T{constructor(e){t(this,e)}toString(){return"$"+this.param}toJS(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"}}let E={"~":"~","-":"-","+":"+",NOT:"!"};class O{constructor(e){t(this,e)}toString(){let{op:t,right:e}=this,r=e.toString();switch(t){case"~":case"-":case"+":case"#":return t+r;case"NOT":return t+"("+r+")";default:return"("+r+")"}}findAggregator(t){this.right.findAggregator&&this.right.findAggregator(t)}toType(){switch(this.op){case"-":case"+":return"number";case"NOT":return"boolean";default:return"string"}}toJS(t,e,r){if(this.right instanceof S&&"#"===this.op)return`(alasql.databases[alasql.useid].objects['${this.right.columnid}'])`;let n=this.right.toJS(t,e,r);if(E.hasOwnProperty(this.op))return`(${E[this.op]}(${n}))`;if(null==this.op)return`(${n})`;throw new Error(`Unsupported operator: ${this.op}`)}}class S{constructor(e){t(this,e)}static needsBrackets(t){return null!=t&&(t==+t||h.test(t))}static wrapId(t){return S.needsBrackets(t)?"["+t+"]":t}toString(){let t=S.needsBrackets(this.columnid),e=t?"["+this.columnid+"]":this.columnid;if(this.tableid){let r=t?"":".";e=S.wrapId(this.tableid)+r+e,this.databaseid&&(e=S.wrapId(this.databaseid)+"."+e)}return e}toJS(t,e,r){if(!this.tableid&&""===e&&!r)return"_"!==this.columnid?`${t}['${this.columnid}']`:"g"===t?"g['_']":t;if("g"===t)return`g['${this.nick||this.columnid}']`;if(this.tableid)return"_"!==this.columnid?`${t}['${this.tableid}']['${this.columnid}']`:"g"===t?"g['_']":`${t}['${this.tableid}']`;if(r){let n=r[this.columnid];if("-"===n)throw new Error(`Cannot resolve column "${this.columnid}" because it exists in two source tables`);return n?"_"!==this.columnid?`${t}['${n}']['${this.columnid}']`:`${t}['${n}']`:"_"!==this.columnid?`${t}['${this.tableid||e}']['${this.columnid}']`:`${t}['${this.tableid||e}']`}return-1===e?`${t}['${this.columnid}']`:"_"!==this.columnid?`${t}['${this.tableid||e}']['${this.columnid}']`:`${t}['${this.tableid||e}']`}}class N{constructor(e){t(this,e)}toString(){return`${"REDUCE"===this.aggregatorid?this.funcid.replace(lt,""):this.aggregatorid}(${this.distinct?"DISTINCT ":""}${this.expression?this.expression.toString():""})${this.over?` ${this.over.toString()}`:""}`}findAggregator(t){if(this.over)return;let e=t.selectGroup.find((t=>t.toString()===this.toString()));e?this.aggrNick=e.nick:(this.nick||(this.nick=p(this.toString())+":"+t.selectGroup.length,t.removeKeys.includes(this.nick)||t.removeKeys.push(this.nick)),this.aggrNick=this.nick,t.selectGroup.push(this))}toType(){return["SUM","COUNT","AVG","MIN","MAX","AGGR","VAR","STDDEV","TOTAL"].includes(this.aggregatorid)?"number":"ARRAY"===this.aggregatorid?"array":this.expression.toType()}toJS(){var t=this.aggrNick||this.nick;return void 0===t&&(t=p(this.toString())),"g['"+t+"']"}}class A{constructor(e){t(this,e)}}A.prototype.toString=r.prototype.toString;class w{constructor(e){t(this,e)}toString(){return this.type+"("+this.group.toString()+")"}}t(q,{AggrValue:N,ArrayValue:v,Column:S,DomainValueValue:_,Expression:r,ExpressionStatement:e,GroupExpression:w,JavaScript:n,Join:s,Literal:i,LogicValue:x,NullValue:b,NumValue:m,Op:f,OrderExpression:A,ParamValue:T,StringValue:y,Table:a,UniOp:O,VarValue:g,View:l})}q.FromData=function(t){return q.extend(this,t)},q.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},q.FromData.prototype.toJS=function(){},q.Select.prototype.exec=function(t,e){this.preparams&&(t=this.preparams.concat(t));var r=o.useid,n=o.databases[r],i=this.toString(),s=T(i),a=this.compile(r);if(a)return a.sql=i,a.dbversion=n.dbversion,n.sqlCacheSize>o.MAXSQLCACHESIZE&&n.resetSqlCache(),n.sqlCacheSize++,n.sqlCache[s]=a,o.res=a(t,e)},q.Select.prototype.Select=function(){var t=this,e=[];if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return t.columns=[],e.forEach((function(e){if("string"==typeof e)t.columns.push(new q.Column({columnid:e}));else if("function"==typeof e){var r=0;t.preparams?r=t.preparams.length:t.preparams=[],t.preparams.push(e),t.columns.push(new q.Column({columnid:"*",func:e,param:r}))}})),t},q.Select.prototype.From=function(t){var e=this;if(e.from||(e.from=[]),Array.isArray(t)){var r=0;e.preparams?r=e.preparams.length:e.preparams=[],e.preparams.push(t),e.from.push(new q.ParamValue({param:r}))}else{if("string"!=typeof t)throw new Error("Unknown arguments in From() function");e.from.push(new q.Table({tableid:t}))}return e},q.Select.prototype.OrderBy=function(){var t=this,e=[];if(t.order=[],0==arguments.length)e=["_"];else if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return e.length>0&&e.forEach((function(e){var r=new q.Column({columnid:e});"function"==typeof e&&(r=e),t.order.push(new q.OrderExpression({expression:r,direction:"ASC"}))})),t},q.Select.prototype.Top=function(t){return this.top=new q.NumValue({value:t}),this},q.Select.prototype.GroupBy=function(){var t=this,e=[];if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return t.group=[],e.forEach((function(e){var r=new q.Column({columnid:e});t.group.push(r)})),t},q.Select.prototype.Where=function(t){return"function"==typeof t&&(this.where=t),this},q.FuncValue=function(t){return Object.assign(this,t)};let lt=/[^0-9A-Z_$]+/i;q.FuncValue.prototype.toString=function(){let t="";return o.fn[this.funcid]||o.aggr[this.funcid]?t+=this.funcid:(o.stdlib[this.funcid.toUpperCase()]||o.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase().replace(lt,"")),"CURRENT_TIMESTAMP"!==this.funcid&&(t+="(",this.args&&this.args.length>0&&(t+=this.args.map((function(t){return t.toString()})).join(",")),t+=")"),this.over&&(t+=" "+this.over.toString()),t},q.FuncValue.prototype.execute=function(t,e,r){let n=1;return o.precompile(this,t,e),new Function("params,alasql","var y;return "+this.toJS("","",null))(e,o),r&&(n=r(n)),n},q.FuncValue.prototype.findAggregator=function(t){this.args&&this.args.length>0&&this.args.forEach((function(e){e.findAggregator&&e.findAggregator(t)}))},q.FuncValue.prototype.toJS=function(t,e,r){var n="",i=this.funcid;return!o.fn[i]&&o.stdlib[i.toUpperCase()]?this.args&&this.args.length>0?n+=o.stdlib[i.toUpperCase()].apply(this,this.args.map((function(r){return r.toJS(t,e)}))):n+=o.stdlib[i.toUpperCase()]():!o.fn[i]&&o.stdfn[i.toUpperCase()]?(this.newid&&(n+="new "),n+="alasql.stdfn["+JSON.stringify(this.funcid.toUpperCase())+"](",this.args&&this.args.length>0&&(n+=this.args.map((function(n){return n.toJS(t,e,r)})).join(",")),n+=")"):(this.newid&&(n+="new "),n+="alasql.fn["+JSON.stringify(this.funcid)+"](",this.args&&this.args.length>0&&(n+=this.args.map((function(n){return n.toJS(t,e,r)})).join(",")),n+=")"),n};var ut=o.stdlib={},ct=o.stdfn={};ut.ABS=function(t){return"Math.abs("+t+")"},ut.CLONEDEEP=function(t){return"alasql.utils.cloneDeep("+t+")"},ct.CONCAT=function(){return Array.prototype.slice.call(arguments).join("")},ut.EXP=function(t){return"Math.pow(Math.E,"+t+")"},ut.IIF=function(t,e,r){if(3===arguments.length)return`((${t}) ? (${e}) : (${r}))`;throw new Error("Number of arguments of IFF is not equals to 3")},ut.IFNULL=function(t,e){return`((typeof ${t} === "undefined" || ${t} === null) ? ${e} : ${t})`},ut.INSTR=function(t,e){return`((${t}).indexOf(${e}) + 1)`},ut.LEN=ut.LENGTH=function(t){return h(t,"y.length")},ut.LOWER=ut.LCASE=function(t){return h(t,"String(y).toLowerCase()")},ut.LTRIM=function(t){return h(t,'y.replace(/^[ ]+/,"")')},ut.RTRIM=function(t){return h(t,'y.replace(/[ ]+$/,"")')},ut.MAX=ut.GREATEST=function(){return"["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a > b ? a : b; })"},ut.MIN=ut.LEAST=function(){return"["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a < b ? a : b; })"},ut.SUBSTRING=ut.SUBSTR=ut.MID=function(t,e,r){return 2==arguments.length?h(t,"y.substr("+e+"-1)"):3==arguments.length?h(t,"y.substr("+e+"-1,"+r+")"):void 0},ct.REGEXP_LIKE=function(t,e,r){var n=e.replace(/\[\[:<:\]\]/g,"\\b").replace(/\[\[:>:\]\]/g,"\\b");return(t||"").search(RegExp(n,r))>-1},ut.ISNULL=ut.NULLIF=function(t,e){return"("+t+"=="+e+"?undefined:"+t+")"},ut.POWER=function(t,e){return"Math.pow("+t+","+e+")"},ut.RANDOM=function(t){return 0==arguments.length?"Math.random()":"(Math.random()*("+t+")|0)"},ut.ROUND=function(t,e){return 2==arguments.length?"(__alasql_tmp = ("+t+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp*Math.pow(10,('+e+")))/Math.pow(10,("+e+"))))":"(__alasql_tmp = ("+t+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp)))'},ut.CEIL=ut.CEILING=function(t){return"Math.ceil("+t+")"},ut.FLOOR=function(t){return"Math.floor("+t+")"},ut.ROWNUM=function(){return"1"},ut.ROW_NUMBER=function(){return"1"},ut.GROUP_ROW_NUMBER=function(){return"1"},ut.SQRT=function(t){return"Math.sqrt("+t+")"},ut.TRIM=function(t){return h(t,"y.trim()")},ut.UPPER=ut.UCASE=function(t){return h(t,"String(y).toUpperCase()")},ct.CONCAT_WS=function(){var t=Array.prototype.slice.call(arguments);return(t=t.filter((t=>!(null===t||typeof t>"u")))).slice(1,t.length).join(t[0]||"")},o.aggr.group_concat=o.aggr.GROUP_CONCAT=function(t,e,r,n,i){if(void 0===n&&(n=","),1===r)return null==t?{values:[],separator:n,orderDirection:i}:{values:[t],separator:n,orderDirection:i};if(2===r)return null==t?e:null==e?{values:[t],separator:n,orderDirection:i}:("string"==typeof e&&(e={values:e.split(","),separator:",",orderDirection:void 0}),e.values.push(t),e);{if(null==e)return;if("string"==typeof e)return e;let t=e.values;if(0===t.length)return;if(e.orderDirection&&void 0!==e.orderDirection){let r="ASC"===e.orderDirection;t=t.slice().sort(((t,e)=>t===e?0:null==t?1:null==e?-1:"string"==typeof t&&"string"==typeof e?r?t.localeCompare(e):e.localeCompare(t):r?tt>e?1:te?1:-1}));let o=n*(i.length+1)/4;return Number.isInteger(o)?i[o-1]:i[Math.floor(o)]},o.aggr.QUART2=function(t,e,r){return o.aggr.QUART(t,e,r,2)},o.aggr.QUART3=function(t,e,r){return o.aggr.QUART(t,e,r,3)},o.aggr.VAR=function(t,e,r){return 1===r?null===t?{sum:0,sumSq:0,count:0}:{sum:t,sumSq:t*t,count:1}:2===r?(null!==t&&(e.sum+=t,e.sumSq+=t*t,e.count++),e):e.count>1?(e.sumSq-e.sum*e.sum/e.count)/(e.count-1):0},o.aggr.STDEV=function(t,e,r){return 1===r||2===r?o.aggr.VAR(t,e,r):Math.sqrt(o.aggr.VAR(t,e,r))},o.aggr.STDEV=function(t,e,r){return 1===r||2===r?o.aggr.VAR(t,e,r):Math.sqrt(o.aggr.VAR(t,e,r))},o.aggr.VARP=function(t,e,r){if(1===r)return{count:1,sum:t,sumSq:t*t};if(2===r)return e.count++,e.sum+=t,e.sumSq+=t*t,e;if(e.count>0){let t=e.sum/e.count;return e.sumSq/e.count-t*t}return 0},o.aggr.STD=o.aggr.STDDEV=o.aggr.STDEVP=function(t,e,r){return 1==r||2==r?o.aggr.VARP(t,e,r):Math.sqrt(o.aggr.VARP(t,e,r))},o._aggrOriginal=o.aggr,o.aggr={},Object.keys(o._aggrOriginal).forEach((function(t){o.aggr[t]=function(e,r,n){if(!(3===n&&typeof r>"u"))return o._aggrOriginal[t].apply(null,arguments)}})),ct.REPLACE=function(t,e,r){return String(t??"").split(String(e??"")).join(String(r??""))};for(var ht=[],dt=0;dt<256;dt++)ht[dt]=(dt<16?"0":"")+dt.toString(16);ct.NEWID=ct.UUID=ct.GEN_RANDOM_UUID=function(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return ht[255&t]+ht[t>>8&255]+ht[t>>16&255]+ht[t>>24&255]+"-"+ht[255&e]+ht[e>>8&255]+"-"+ht[e>>16&15|64]+ht[e>>24&255]+"-"+ht[63&r|128]+ht[r>>8&255]+"-"+ht[r>>16&255]+ht[r>>24&255]+ht[255&n]+ht[n>>8&255]+ht[n>>16&255]+ht[n>>24&255]},q.CaseValue=function(t){return Object.assign(this,t)},q.CaseValue.prototype.toString=function(){var t="CASE ";return this.expression&&(t+=this.expression.toString()),this.whens&&(t+=this.whens.map((function(t){return" WHEN "+t.when.toString()+" THEN "+t.then.toString()})).join()),t+" END"},q.CaseValue.prototype.findAggregator=function(t){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(t),this.whens&&this.whens.length>0&&this.whens.forEach((function(e){e.when.findAggregator&&e.when.findAggregator(t),e.then.findAggregator&&e.then.findAggregator(t)})),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(t)},q.CaseValue.prototype.toJS=function(t,e,r){let n=`(((${t}, params, alasql) => {\n let y, r;`;return this.expression?(n+=`let v = ${this.expression.toJS(t,e,r)};`,this.whens.forEach(((i,o)=>{let s=`v === ${i.when.toJS(t,e,r)}`,a=`r = ${i.then.toJS(t,e,r)}`;n+=`${0===o?"if":" else if"} (${s}) { ${a}; }`}))):this.whens.forEach(((i,o)=>{let s=i.when.toJS(t,e,r),a=`r = ${i.then.toJS(t,e,r)}`;n+=`${0===o?"if":" else if"} (${s}) { ${a}; }`})),this.elses&&(n+=` else { r = ${this.elses.toJS(t,e,r)}; }`),n+="; return r; }))("+t+", params, alasql)",n},q.Json=function(t){return Object.assign(this,t)},q.Json.prototype.toString=function(){var t="";return(t+=pt(this.value))+""};let pt=o.utils.JSONtoString=function(t){if("string"==typeof t)return`"${t}"`;if("number"==typeof t||"boolean"==typeof t)return String(t);if("bigint"==typeof t)return`${t.toString()}n`;if(Array.isArray(t))return`[${t.map((t=>pt(t))).join(",")}]`;if("object"==typeof t){if(!t.toJS||t instanceof q.Json){let e=[];for(let r in t){let n="string"==typeof r?`"${r}"`:String(r),i=pt(t[r]);e.push(`${n}:${i}`)}return`{${e.join(",")}}`}if(t.toString)return t.toString();throw new Error(`1: Cannot show JSON object ${JSON.stringify(t)}`)}throw new Error(`2: Cannot show JSON object ${JSON.stringify(t)}`)};function ft(t,e,r,n){var i="";if("string"==typeof t)i='"'+t+'"';else if("number"==typeof t)i="("+t+")";else if("boolean"==typeof t)i=t;else if("bigint"==typeof t)i=t.toString()+"n";else{if("object"!=typeof t)throw new Error("2Can not parse JSON object "+JSON.stringify(t));if(Array.isArray(t))i+=`[${t.map((t=>ft(t,e,r,n))).join(",")}]`;else if(!t.toJS||t instanceof q.Json){let o=[];for(let i in t){let s="string"==typeof i?`"${i}"`:i.toString(),a=ft(t[i],e,r,n);o.push(`${s}:${a}`)}i=`{${o.join(",")}}`}else{if(!t.toJS)throw new Error(`Cannot parse JSON object ${JSON.stringify(t)}`);i=t.toJS(e,r,n)}}return i}q.Json.prototype.toJS=function(t,e,r){return ft(this.value,t,e,r)},q.Convert=function(t){return Object.assign(this,t)},q.Convert.prototype.toString=function(){var t="CONVERT(";return t+=this.dbtypeid,typeof this.dbsize<"u"&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),t+=","+this.expression.toString(),this.style&&(t+=","+this.style),t+")"},q.Convert.prototype.toJS=function(t,e,r){return`alasql.stdfn.CONVERT(${this.expression.toJS(t,e,r)}, {\n dbtypeid: "${this.dbtypeid}",\n dbsize: ${this.dbsize},\n dbprecision: ${this.dbprecision},\n style: ${this.style}\n })`},o.stdfn.CONVERT=function(t,e){var r,n=t,i=e.dbtypeid?.toUpperCase();if((e.style||"Date"==e.dbtypeid||["DATE","DATETIME","DATETIME2"].indexOf(i)>-1)&&(r=function(t){var e=t.getMonth()+1,r=t.getYear(),n=t.getFullYear(),i=t.getDate();return{month:e,year:r,fullYear:n,date:i,day:t.toString().substr(4,3),formattedDate:("0"+i).substr(-2),formattedMonth:("0"+e).substr(-2),formattedYear:("0"+r).substr(-2),formattedHour:("0"+t.getHours()).substr(-2),formattedMinutes:("0"+t.getMinutes()).substr(-2),formattedSeconds:("0"+t.getSeconds()).substr(-2),formattedMilliseconds:("00"+t.getMilliseconds()).substr(-3)}}(/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):yt(n))),e.style)switch(e.style){case 1:n=r.formattedMonth+"/"+r.formattedDate+"/"+r.formattedYear;break;case 2:n=r.formattedYear+"."+r.formattedMonth+"."+r.formattedDate;break;case 3:n=r.formattedDate+"/"+r.formattedMonth+"/"+r.formattedYear;break;case 4:n=r.formattedDate+"."+r.formattedMonth+"."+r.formattedYear;break;case 5:n=r.formattedDate+"-"+r.formattedMonth+"-"+r.formattedYear;break;case 6:n=r.formattedDate+" "+r.day.toLowerCase()+" "+r.formattedYear;break;case 7:n=r.day+" "+r.formattedDate+","+r.formattedYear;break;case 8:case 108:n=r.formattedHour+":"+r.formattedMinutes+":"+r.formattedSeconds;break;case 10:n=r.formattedMonth+"-"+r.formattedDate+"-"+r.formattedYear;break;case 11:n=r.formattedYear+"/"+r.formattedMonth+"/"+r.formattedDate;break;case 12:n=r.formattedYear+r.formattedMonth+r.formattedDate;break;case 101:n=r.formattedMonth+"/"+r.formattedDate+"/"+r.fullYear;break;case 102:n=r.fullYear+"."+r.formattedMonth+"."+r.formattedDate;break;case 103:n=r.formattedDate+"/"+r.formattedMonth+"/"+r.fullYear;break;case 104:n=r.formattedDate+"."+r.formattedMonth+"."+r.fullYear;break;case 105:n=r.formattedDate+"-"+r.formattedMonth+"-"+r.fullYear;break;case 106:n=r.formattedDate+" "+r.day.toLowerCase()+" "+r.fullYear;break;case 107:n=r.day+" "+r.formattedDate+","+r.fullYear;break;case 110:n=r.formattedMonth+"-"+r.formattedDate+"-"+r.fullYear;break;case 111:n=r.fullYear+"/"+r.formattedMonth+"/"+r.formattedDate;break;case 112:n=r.fullYear+r.formattedMonth+r.formattedDate;break;default:throw new Error("The CONVERT style "+e.style+" is not realized yet.")}switch(i){case"DATE":return`${r.formattedYear}.${r.formattedMonth}.${r.formattedDate}`;case"DATETIME":case"DATETIME2":return`${r.fullYear}.${r.formattedMonth}.${r.formattedDate} ${r.formattedHour}:${r.formattedMinutes}:${r.formattedSeconds}.${r.formattedMilliseconds}`;case"MONEY":return(0|(o=+n))+100*o%100/100;case"BOOLEAN":return!!n;case"INT":case"INTEGER":case"SMALLINT":case"BIGINT":case"SERIAL":case"SMALLSERIAL":case"BIGSERIAL":return 0|n;case"STRING":case"VARCHAR":case"NVARCHAR":case"CHARACTER VARIABLE":return e.dbsize?String(n).substr(0,e.dbsize):String(n);case"CHAR":case"CHARACTER":case"NCHAR":return(n+" ".repeat(e.dbsize)).substr(0,e.dbsize);case"NUMBER":case"FLOAT":case"DECIMAL":case"NUMERIC":var o=+n;return void 0!==e.dbsize&&(o=parseFloat(o.toPrecision(e.dbsize))),void 0!==e.dbprecision&&(o=parseFloat(o.toFixed(e.dbprecision))),o;case"JSON":if("object"==typeof n)return n;try{return JSON.parse(n)}catch{throw new Error("Cannot convert string to JSON")}default:return n}},q.ColumnDef=function(t){return Object.assign(this,t)},q.ColumnDef.prototype.toString=function(){let t=this.columnid;return this.dbtypeid&&(t+=" "+this.dbtypeid),this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),this.primarykey&&(t+=" PRIMARY KEY"),this.notnull&&(t+=" NOT NULL"),t},q.CreateTable=function(t){return Object.assign(this,t)},q.CreateTable.prototype.toString=function(){let t=`CREATE${this.temporary?" TEMPORARY":""}${this.view?" VIEW":" "+(this.class?"CLASS":"TABLE")}${this.ifnotexists?" IF NOT EXISTS":""} ${this.table.toString()}`;return this.viewcolumns&&(t+=`(${this.viewcolumns.map((t=>t.toString())).join(",")})`),this.as?t+=` AS ${this.as}`:t+=` (${this.columns.map((t=>t.toString())).join(",")})`,this.view&&this.select&&(t+=` AS ${this.select.toString()}`),t},q.CreateTable.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||t],i=this.table.tableid;if(!i)throw new Error("Table name is not defined");var s=this.columns,a=this.constraints||[];if(this.ifnotexists&&n.tables[i])return r?r(0):0;if(n.tables[i])throw new Error("Can not create table '"+i+"', because it already exists in the database '"+n.databaseid+"'");var l=n.tables[i]=new o.Table;this.class&&(l.isclass=!0);var u,c=[],h=[];if(s&&s.forEach((function(e){var r=e.dbtypeid;o.fn[r]||(r=r.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(r)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:r,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(l.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&l.checks.push({id:e.check.constrantid,fn:new Function("r,params,alasql","var y;return "+e.check.expression.toJS("r",""))}),e.default&&c.push(JSON.stringify(""+e.columnid)+":"+e.default.toJS("r","")),e.primarykey){var i=l.pk={};i.columns=[e.columnid],i.onrightfns=`r[${JSON.stringify(e.columnid)}]`,i.onrightfn=new Function("r","var y;return "+i.onrightfns),i.hh=T(i.onrightfns),l.uniqs[i.hh]={}}if(e.unique){var s={};l.uk=l.uk||[],l.uk.push(s),s.columns=[e.columnid],s.onrightfns=`r[${JSON.stringify(e.columnid)}]`,s.onrightfn=new Function("r","var y;return "+s.onrightfns),s.hh=T(s.onrightfns),l.uniqs[s.hh]={}}if(e.foreignkey){var a=e.foreignkey.table,u=o.databases[a.databaseid||t].tables[a.tableid];if(typeof a.columnid>"u"){if(!(u.pk.columns&&u.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");a.columnid=u.pk.columns[0]}n.foreignkey={tableid:a.tableid,columnid:a.columnid},l.checks.push({fn:function(t){var r={},n=t[e.columnid];if(null!=n&&("number"!=typeof n||!isNaN(n))){r[a.columnid]=n;var i=u.pk.onrightfn(r);if(!u.uniqs[u.pk.hh][i])throw new Error('Foreign key "'+n+'" not found in table "'+a.tableid+'"')}return!0},fk:!0})}e.onupdate&&h.push(`r[${JSON.stringify(e.columnid)}]=`+e.onupdate.toJS("r","")),l.columns.push(n),l.xcolumns[n.columnid]=n})),l.defaultfns=c.join(","),l.onupdatefns=h.join(";"),a.forEach((function(e){var r;if("PRIMARY KEY"===e.type){if(l.pk)throw new Error("Primary key already exists");var n=l.pk={};n.columns=e.columns,n.onrightfns=n.columns.map((function(t){return`r[${JSON.stringify(t)}]`})).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=T(n.onrightfns),l.uniqs[n.hh]={},n.columns.forEach((function(t){l.xcolumns[t]&&(l.xcolumns[t].primarykey=!0)}))}else if("CHECK"===e.type)r=new Function("r,params,alasql","var y;return "+e.expression.toJS("r",""));else if("UNIQUE"===e.type){var i={};l.uk=l.uk||[],l.uk.push(i),i.columns=e.columns,i.onrightfns=i.columns.map((function(t){return t.expression.toJS("r","")})).join("+'`'+"),i.onrightfn=new Function("r","var y;return "+i.onrightfns),i.hh=T(i.onrightfns),l.uniqs[i.hh]={}}else if("FOREIGN KEY"===e.type){var s=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(s.fkcolumns=e.fkcolumns);var a=o.databases[s.databaseid||t].tables[s.tableid];if(typeof s.fkcolumns>"u"&&(s.fkcolumns=a.pk.columns),s.columns=e.columns,s.fkcolumns.length>s.columns.length)throw new Error("Invalid foreign key on table "+l.tableid);s.columns.forEach((function(t,r){l.xcolumns[t]&&(l.xcolumns[t].foreignkey={tableid:s.tableid,columnid:s.fkcolumns[r],constraintid:e.constraintid})})),r=function(e){var r={};if(s.fkcolumns.forEach((function(t,n){var i=e[s.columns[n]];null!=i&&("number"!=typeof i||!isNaN(i))&&(r[t]=i)})),0===Object.keys(r).length)return!0;if(Object.keys(r).length!==s.columns.length)throw new Error("Invalid foreign key on table "+l.tableid);var n=o.databases[s.databaseid||t].tables[s.tableid],i=n.pk.onrightfn(r);if(!n.uniqs[n.pk.hh][i]){var a=s.columns.map((function(t){return e[t]}));throw new Error('Foreign key "'+a.join(", ")+'" not found in table "'+s.tableid+'"')}return!0}}r&&l.checks.push({fn:r,id:e.constraintid,fk:"FOREIGN KEY"===e.type})})),this.view&&this.viewcolumns){var d=this;this.viewcolumns.forEach((function(t,e){d.select.columns[e].as=t.columnid}))}return this.view&&this.select&&(l.view=!0,l.viewSelect=this.select,l.viewDatabaseid=this.table.databaseid||t),n.engineid?o.engines[n.engineid].createTable(this.table.databaseid||t,i,this.ifnotexists,r):(l.insert=function(r,n,i){var s=o.inserted;o.inserted=[r];var a=this;n&&i&&(i=!1);var l=!1,u=!1;for(var c in a.beforeinsert)(T=a.beforeinsert[c])&&!1===o.executeTrigger(T,t,r)&&(u=u||!0);if(!u){var h=!1;for(c in a.insteadofinsert)h=!0,(T=a.insteadofinsert[c])&&o.executeTrigger(T,t,r);if(!h){for(var d in a.identities){var p=a.identities[d];(typeof r[d]>"u"||null===r[d])&&(r[d]=p.value)}if(a.checks&&a.checks.length>0&&a.checks.forEach((function(t){if(!1===t.fn(r,{},o))throw new Error("Violation of CHECK constraint "+(t.id||""))})),a.columns.forEach((function(t){if(t.notnull&&typeof r[t.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+t.columnid)})),a.pk){var f=(_=a.pk).onrightfn(r);if(typeof a.uniqs[_.hh][f]<"u"){if(!n){if(i)return o.inserted=s,!1;throw new Error("Cannot insert record, because it already exists in primary key index")}l=a.uniqs[_.hh][f]}}if(a.uk&&a.uk.length)for(var g=0;g=p.value?p.value=+r[d]+p.step:p.value+=p.step;var _;if(a.pk)f=(_=a.pk).onrightfn(r),a.uniqs[_.hh][f]=r;if(a.uk&&a.uk.length&&a.uk.forEach((function(t){var e=t.onrightfn(r);a.uniqs[t.hh][e]=r})),a.inddefs)for(var v in a.inddefs){var x=a.inddefs[v],b=x.hh;a.indices[b]&&(f=new Function("r,params,alasql","return "+x.rightfns)(r,e,o),a.indices[b][f]||(a.indices[b][f]=[]),a.indices[b][f].push(r))}}for(var c in a.afterinsert){var T;(T=a.afterinsert[c])&&o.executeTrigger(T,t,r)}o.inserted=s}}},l.delete=function(e){var r=this,n=r.data[e],i=!1;for(var s in r.beforedelete)(l=r.beforedelete[s])&&!1===o.executeTrigger(l,t,n)&&(i=i||!0);if(i)return!1;var a=!1;for(var s in r.insteadofdelete){var l;a=!0,(l=r.insteadofdelete[s])&&o.executeTrigger(l,t,n)}if(!a){if(this.pk){var u=this.pk,c=u.onrightfn(n);if(typeof this.uniqs[u.hh][c]>"u")throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}r.uk&&r.uk.length&&r.uk.forEach((function(t){var e=t.onrightfn(n);if(typeof r.uniqs[t.hh][e]>"u")throw new Error("Something wrong with unique index on table");r.uniqs[t.hh][e]=void 0}))}},l.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),l.uk&&l.uk.length&&l.uk.forEach((function(t){l.uniqs[t.hh]={}}))},l.update=function(e,r,n){var i,s=R(this.data[r]);if(this.pk&&((i=this.pk).pkaddr=i.onrightfn(s,n),typeof this.uniqs[i.hh][i.pkaddr]>"u")){this.uniqs[i.hh]={};for(var a=0;a"u"){l.uniqs[t.hh]={};for(var e=0;e0&&l.checks.forEach((function(t){if(!1===t.fn(s,n,o))throw new Error("Violation of CHECK constraint "+(t.id||""))})),l.columns.forEach((function(t){if(t.notnull&&typeof s[t.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+t.columnid)})),this.pk&&(i.newpkaddr=i.onrightfn(s),typeof this.uniqs[i.hh][i.newpkaddr]<"u"&&i.newpkaddr!==i.pkaddr))throw new Error("Record already exists");for(var h in l.uk&&l.uk.length&&l.uk.forEach((function(t){if(t.newukaddr=t.onrightfn(s),typeof l.uniqs[t.hh][t.newukaddr]<"u"&&t.newukaddr!==t.ukaddr)throw new Error("Record already exists")})),this.pk&&(this.uniqs[i.hh][i.pkaddr]=void 0,this.uniqs[i.hh][i.newpkaddr]=s),l.uk&&l.uk.length&&l.uk.forEach((function(t){l.uniqs[t.hh][t.ukaddr]=void 0,l.uniqs[t.hh][t.newukaddr]=s})),this.data[r]=s,l.afterupdate){var p;(p=l.afterupdate[h])&&o.executeTrigger(p,t,this.data[r],s)}}},o.options.nocount||(u=1),r&&(u=r(u)),u)},o.fn.Date=Object,o.fn.Date=Date,o.fn.Number=Number,o.fn.String=String,o.fn.Boolean=Boolean,ct.EXTEND=o.utils.extend,ct.CHAR=String.fromCharCode.bind(String),ct.ASCII=function(t){return t.charCodeAt(0)},ct.COALESCE=function(){for(var t=0;t"u"||"number"==typeof arguments[t]&&isNaN(arguments[t])))return arguments[t]},ct.USER=function(){return"alasql"},ct.OBJECT_ID=function(t){return!!o.tables[t]},ct.DATE=function(t){return isNaN(t)||8!==t.length?yt(t):new Date(+t.substr(0,4),+t.substr(4,2)-1,+t.substr(6,2))},ct.NOW=function(){if(o.options.dateAsString){var t=new Date,e=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).substr(-2)+"-"+("0"+t.getDate()).substr(-2);return(e+=" "+("0"+t.getHours()).substr(-2)+":"+("0"+t.getMinutes()).substr(-2)+":"+("0"+t.getSeconds()).substr(-2))+"."+("00"+t.getMilliseconds()).substr(-3)}return new Date},ct.GETDATE=ct.NOW,ct.CURRENT_TIMESTAMP=ct.NOW,ct.CURDATE=ct.CURRENT_DATE=function(){var t=new Date;return t.setHours(0,0,0,0),o.options.dateAsString?t.getFullYear()+"-"+("0"+(t.getMonth()+1)).substr(-2)+"-"+("0"+t.getDate()).substr(-2):t},ct.SECOND=function(t){return(t=yt(t)).getSeconds()},ct.MINUTE=function(t){return(t=yt(t)).getMinutes()},ct.HOUR=function(t){return(t=yt(t)).getHours()},ct.DAYOFWEEK=ct.WEEKDAY=function(t){return(t=yt(t)).getDay()},ct.DAY=ct.DAYOFMONTH=function(t){return(t=yt(t)).getDate()},ct.MONTH=function(t){return(t=yt(t)).getMonth()+1},ct.YEAR=function(t){return(t=yt(t)).getFullYear()};var gt={year:31536e6,quarter:7884e6,month:2592e6,week:6048e5,day:864e5,dayofyear:864e5,weekday:864e5,hour:36e5,minute:6e4,second:1e3,millisecond:1,microsecond:.001};o.stdfn.DATEDIFF=function(t,e,r){return(yt(r).getTime()-yt(e).getTime())/gt[t.toLowerCase()]|0},o.stdfn.DATEADD=function(t,e,r){var n=yt(r);switch(t=t.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+e);break;case"quarter":n.setMonth(n.getMonth()+3*e);break;case"month":n.setMonth(n.getMonth()+e);break;default:n=new Date(n.getTime()+e*gt[t])}return n},o.stdfn.INTERVAL=function(t,e){return t*gt[e.toLowerCase()]},o.stdfn.DATE_ADD=o.stdfn.ADDDATE=function(t,e){var r=yt(t).getTime()+e;return new Date(r)},o.stdfn.DATE_SUB=o.stdfn.SUBDATE=function(t,e){var r=yt(t).getTime()-e;return new Date(r)};var mt=/^\d{4}\.\d{2}\.\d{2} \d{2}:\d{2}:\d{2}/;function yt(t){return"string"==typeof t&&mt.test(t)&&(t=t.replace(".","-").replace(".","-")),new Date(t)}function _t(t,e,r){return t.map((function(t){for(var n={},i=0;i0){n=this.sets.map((function(t){return`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");var s=new Function("x,params,alasql",n)}return function(t,n){var a,l=o.databases[e],u={$id:typeof r<"u"?r:l.counter++,$node:"VERTEX"};return l.objects[u.$id]=u,a=u,i&&i(u),s&&s(u,t,o),n&&(a=n(a)),a}},q.CreateEdge=function(t){return Object.assign(this,t)},q.CreateEdge.prototype.toString=function(){var t="CREATE EDGE ";return this.class&&(t+=this.class+" "),t},q.CreateEdge.prototype.toJS=function(t){return"this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+")"},q.CreateEdge.prototype.compile=function(t){var e=t,r=new Function("params,alasql","var y;return "+this.from.toJS()),n=new Function("params,alasql","var y;return "+this.to.toJS());if(typeof this.name<"u")var i="x.name="+this.name.toJS(),s=new Function("x",i);if(this.sets&&this.sets.length>0){i=this.sets.map((function(t){return`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");var a=new Function("x,params,alasql","var y;"+i)}return(t,i)=>{let l=0,u=o.databases[e],c={$id:u.counter++,$node:"EDGE"},h=r(t,o),d=n(t,o);return c.$in=[h.$id],c.$out=[d.$id],h.$out=h.$out||[],h.$out.push(c.$id),d.$in=d.$in||[],d.$in.push(c.$id),u.objects[c.$id]=c,l=c,s?.(c),a?.(c,t,o),i?i(l):l}},q.CreateGraph=function(t){return Object.assign(this,t)},q.CreateGraph.prototype.toString=function(){var t="CREATE GRAPH ";return this.class&&(t+=this.class+" "),t},q.CreateGraph.prototype.execute=function(t,e,r){var n=[];return this.from&&o.from[this.from.funcid]&&(this.graph=o.from[this.from.funcid.toUpperCase()]),this.graph.forEach((r=>{if(r.source){let s={};void 0!==r.as&&(o.vars[r.as]=s),void 0!==r.prop&&(s.name=r.prop),void 0!==r.sharp&&(s.$id=r.sharp),void 0!==r.name&&(s.name=r.name),void 0!==r.class&&(s.$class=r.class);let a=o.databases[t];s.$id=void 0!==s.$id?s.$id:a.counter++,s.$node="EDGE",void 0!==r.json&&Object.assign(s,new Function("params, alasql",`return ${r.json.toJS()}`)(e,o));let l=(t,e)=>{let r,n;if(t.vars)n=o.vars[t.vars],r="object"==typeof n?n:a.objects[n];else{let e=t.sharp||t.prop;r=a.objects[e],void 0===r&&o.options.autovertex&&(t.prop||t.name)&&(r=function(t){var e=o.databases[o.useid].objects;for(var r in e)if(e[r].name===t)return e[r]}(t.prop||t.name)||i(t))}return e&&r&&typeof r.$out>"u"&&(r.$out=[]),!e&&r&&typeof r.$in>"u"&&(r.$in=[]),r},u=l(r.source,!0),c=l(r.target,!1);if(s.$in=[u.$id],s.$out=[c.$id],u.$out.push(s.$id),c.$in.push(s.$id),a.objects[s.$id]=s,void 0!==s.$class){let e=o.databases[t].tables[s.$class];if(void 0===e)throw new Error("No such class. Please use CREATE CLASS");e.data.push(s)}n.push(s.$id)}else i(r)})),r&&(n=r(n)),n;function i(r){var i={};typeof r.as<"u"&&(o.vars[r.as]=i),typeof r.prop<"u"&&(i.$id=r.prop,i.name=r.prop),typeof r.sharp<"u"&&(i.$id=r.sharp),typeof r.name<"u"&&(i.name=r.name),typeof r.class<"u"&&(i.$class=r.class);var s=o.databases[t];if(typeof i.$id>"u"&&(i.$id=s.counter++),i.$node="VERTEX",typeof r.json<"u"&&I(i,new Function("params,alasql","var y;return "+r.json.toJS())(e,o)),s.objects[i.$id]=i,typeof i.$class<"u"){if(typeof o.databases[t].tables[i.$class]>"u")throw new Error("No such class. Pleace use CREATE CLASS");o.databases[t].tables[i.$class].data.push(i)}return n.push(i.$id),i}},q.CreateGraph.prototype.compile1=function(t){let e,r,n=t,i=new Function("params, alasql",`return ${this.from.toJS()}`),s=new Function("params, alasql",`return ${this.to.toJS()}`);if(void 0!==this.name){let t=`x.name = ${this.name.toJS()}`;e=new Function("x",t)}if(this.sets&&this.sets.length>0){let t=this.sets.map((t=>`x[${JSON.stringify(t.column.columnid)}] = ${t.expression.toJS("x","")}`)).join(";");r=new Function("x, params, alasql",`var y; ${t}`)}return(t,a)=>{let l=0,u=o.databases[n],c={$id:u.counter++,$node:"EDGE"},h=i(t,o),d=s(t,o);return c.$in=[h.$id],c.$out=[d.$id],h.$out=h.$out||[],h.$out.push(c.$id),d.$in=d.$in||[],d.$in.push(c.$id),u.objects[c.$id]=c,l=c,e&&e(c),r&&r(c,t,o),a&&(l=a(l)),l}},q.AlterTable=function(t){return Object.assign(this,t)},q.AlterTable.prototype.toString=function(){let t="ALTER TABLE "+this.table.toString();return this.renameto&&(t+=" RENAME TO "+this.renameto),t},q.AlterTable.prototype.execute=function(t,e,r){let n=o.databases[t];if(n.dbversion=Date.now(),this.renameto){var i=this.table.tableid,s=this.renameto;if(n.tables[s])throw new Error(`Can not rename a table "${i}" to "${s}" because the table with this name already exists`);if(s===i)throw new Error(`Can not rename a table "${i}" to itself`);return n.tables[s]=n.tables[i],delete n.tables[i],r&&r(1),1}if(this.addcolumn){n=o.databases[this.table.databaseid||t],n.dbversion++;var a=this.table.tableid,l=n.tables[a],u=this.addcolumn.columnid;if(l.xcolumns[u])throw new Error(`Cannot add column "${u}" because it already exists in table "${a}"`);var c={columnid:u,dbtypeid:this.addcolumn.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null};l.columns.push(c),l.xcolumns[u]=c;for(let t=0,e=l.data.length;t0)for(var h=0,d=s.data.length;h0)for(h=0,d=s.data.length;h0&&(c=t.columns.map((function(t){return t.columnid})));var d=new q.Select(l);d.modifier="ALASQL_DETAILS";var p=d.execute(e,r),f=p.columns.map((function(t){return t.columnid}));c||(c=f);var g=_t(p.data,f,c);a.data=g.slice();for(var m=g,y=g.slice(),_=0;m.length>0&&_t.toString())).join(", ")),this.output&&(t+=" OUTPUT ",t+=this.output.columns.map((t=>t.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.Insert.prototype.toJS=function(t,e,r){return"this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+")"},q.Insert.prototype.compile=function(t){var e=this;if(e.into instanceof q.ParamValue)return q.compileParamValue(e.into.param,"INSERT",!0,t,e,"into");t=e.into.databaseid||t;var r=o.databases[t],n=e.into.tableid,i=r.tables[n];if(!i)throw"Table '"+n+"' could not be found";var s,a=function(t,e,r){return`The number of values (${t}) does not match the number of ${r} (${e}). If using a subquery, use INSERT INTO ... SELECT instead of INSERT INTO ... VALUES (SELECT ...)`},l="",u="",c=(l="db.tables['"+n+"'].dirty=true;","var a,aa=[],x;");if(this.values){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),e.values.forEach((function(s){var c=[];if(e.columns){if(s.length!==e.columns.length)throw new Error(a(s.length,e.columns.length,"columns"));e.columns.forEach((function(t,e){var r="'"+t.columnid+"':";i.xcolumns&&i.xcolumns[t.columnid]?["INT","FLOAT","NUMBER","MONEY"].indexOf(i.xcolumns[t.columnid].dbtypeid)>=0?r+="(x="+s[e].toJS()+",x==undefined?undefined:+x)":o.fn[i.xcolumns[t.columnid].dbtypeid]?(r+="(new "+i.xcolumns[t.columnid].dbtypeid+"(",r+=s[e].toJS(),r+="))"):r+=s[e].toJS():r+=s[e].toJS(),c.push(r)}))}else if(Array.isArray(s)&&i.columns&&i.columns.length>0){if(s.length!==i.columns.length)throw new Error(a(s.length,i.columns.length,"table columns"));i.columns.forEach((function(t,e){var r="'"+t.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(t.dbtypeid)>=0?r+="+"+s[e].toJS():o.fn[t.dbtypeid]?(r+="(new "+t.dbtypeid+"(",r+=s[e].toJS(),r+="))"):r+=s[e].toJS(),c.push(r)}))}else u=ft(s);r.tables[n].defaultfns&&c.unshift(r.tables[n].defaultfns),l+=u?"a="+u+";":"a={"+c.join(",")+"};",r.tables[n].isclass&&(l+="var db=alasql.databases['"+t+"'];",l+='a.$class="'+n+'";',l+="a.$id=db.counter++;",l+="db.objects[a.$id]=a;"),r.tables[n].insert?(l+="var db=alasql.databases['"+t+"'];",l+="var inserted=db.tables['"+n+"'].insert(a,"+(e.orreplace?"true":"false")+","+(e.ignore?"true":"false")+");",e.ignore&&(l+="if(inserted!==false){"),(e.output||e.ignore)&&(l+="aa.push(a);"),e.ignore&&(l+="}")):l+="aa.push(a);"})),s=c+l,r.tables[n].insert||(l+="alasql.databases['"+t+"'].tables['"+n+"'].data=alasql.databases['"+t+"'].tables['"+n+"'].data.concat(aa);"),e.output?(l+="var output = [];",l+="for(var i=0;i"+(i+1),r.forEach((function(r){e+=" ",t[i][r]==+t[i][r]?(e+='
',typeof t[i][r]>"u"?e+="NULL":e+=t[i][r],e+="
"):typeof t[i][r]>"u"?e+="NULL":"string"==typeof t[i][r]?e+=t[i][r]:e+=pt(t[i][r])}));e+=""}else e+="

"+pt(t)+"

";return e}function Tt(t,e,r){if(!(r<=0)){var n=(e-t.scrollTop)/r*10;setTimeout((function(){t.scrollTop!==e&&(t.scrollTop=t.scrollTop+n,Tt(t,e,r-10))}),10)}}q.CreateTrigger.prototype.execute=function(t,e,r){let n=1,i=this.trigger;t=this.table.databaseid||t;let s=o.databases[t],{tableid:a}=this.table,l={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid,tableid:a};s.triggers[i]=l;let u=`${this.when}${this.action}`.toLowerCase();return xt.includes(u)&&(s.tables[a]=s.tables[a]||{},s.tables[a][u]=s.tables[a][u]||{},s.tables[a][u][i]=l),r&&(n=r(n)),n},q.DropTrigger=function(t){return Object.assign(this,t)},q.DropTrigger.prototype.toString=function(){return"DROP TRIGGER "+this.trigger},q.DropTrigger.prototype.execute=function(t,e,r){let n=0,i=o.databases[t],s=this.trigger,a=i.triggers[s];if(!a)throw new Error("Trigger not found");{let{tableid:t}=a;if(!t)throw new Error("Trigger Table not found");n=1,xt.forEach((e=>{delete i.tables[t][e][s]})),delete i.triggers[s]}return r&&(n=r(n)),n},o.executeTrigger=function(t,e,...r){if(t){if(t.funcid)return o.fn[t.funcid](...r);if(t.statement)return t.statement.expression&&t.statement.expression.funcid?o.fn[t.statement.expression.funcid](...r):t.statement.execute(e)}},q.Delete=function(t){return Object.assign(this,t)},q.Delete.prototype.toString=function(){var t="DELETE FROM "+this.table.toString();return this.where&&(t+=" WHERE "+this.where.toString()),this.output&&(t+=" OUTPUT ",t+=this.output.columns.map((t=>t.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.Delete.prototype.compile=function(t){var e=this;if(this.table instanceof q.ParamValue)return q.compileParamValue(this.table.param,"DELETE",!0,t,e,"table");t=this.table.databaseid||t;var r,n=this.table.tableid,i=o.databases[t];if(this.where){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r})));var s=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);r=function(r,a){if(i.engineid&&o.engines[i.engineid].deleteFromTable)return o.engines[i.engineid].deleteFromTable(t,n,s,r,a);o.options.autocommit&&i.engineid&&("LOCALSTORAGE"==i.engineid||"FILESTORAGE"==i.engineid)&&o.engines[i.engineid].loadTableData(t,n);for(var l=i.tables[n],u=l.data.length,c=[],h=[],d=0,p=l.data.length;dt.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.SetColumn=function(t){return Object.assign(this,t)},q.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},q.Update.prototype.compile=function(t){var e=this;if(this.table instanceof q.ParamValue)return q.compileParamValue(this.table.param,"UPDATE",!1,t,e,"table");t=this.table.databaseid||t;var r=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r})));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var i=o.databases[t].tables[r].onupdatefns||"";i+=";",this.columns.forEach((function(t){i+="r['"+t.column.columnid+"']="+t.expression.toJS("r","")+";"}));var s=new Function("r,params,alasql","var y;"+i);return function(i,a){var l=o.databases[t];if(l.engineid&&o.engines[l.engineid].updateTable)return o.engines[l.engineid].updateTable(t,r,s,n,i,a);o.options.autocommit&&l.engineid&&o.engines[l.engineid].loadTableData(t,r);var u=l.tables[r];if(!u)throw new Error("Table '"+r+"' not exists");for(var c=0,h=[],d=0,p=u.data.length;d{t+="WHEN ",e.matched||(t+="NOT "),t+="MATCHED ",e.bytarget&&(t+="BY TARGET "),e.bysource&&(t+="BY SOURCE "),e.expr&&(t+=`AND ${e.expr.toString()} `),t+="THEN ",e.action.delete&&(t+="DELETE "),e.action.insert&&(t+="INSERT ",e.action.columns&&(t+=`(${e.action.columns.toString()}) `),e.action.values&&(t+=`VALUES (${e.action.values.toString()}) `),e.action.defaultvalues&&(t+="DEFAULT VALUES ")),e.action.update&&(t+="UPDATE ",t+=e.action.update.map((t=>t.toString())).join(", ")+" ")})),t},q.Merge.prototype.execute=function(t,e,r){var n=1;return r&&(n=r(n)),n},q.CreateDatabase=function(t){return Object.assign(this,t)},q.CreateDatabase.prototype.toString=function(){let t="CREATE ";return this.engineid&&(t+=`${this.engineid} `),t+="DATABASE ",this.ifnotexists&&(t+="IF NOT EXISTS "),t+=`${this.databaseid} `,this.args&&this.args.length>0&&(t+=`(${this.args.map((t=>t.toString())).join(", ")}) `),this.as&&(t+=`AS ${this.as}`),t},q.CreateDatabase.prototype.execute=function(t,e,r){if(this.args&&this.args.length>0&&this.args.map((function(t){return new Function("params,alasql","var y;return "+t.toJS())(e,o)})),this.engineid)return o.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,r);var n=this.databaseid;if(o.databases[n])throw new Error("Database '"+n+"' already exists");new o.Database(n);var i=1;return r?r(i):i},q.AttachDatabase=function(t){return Object.assign(this,t)},q.AttachDatabase.prototype.toString=function(t){let e="ATTACH";return this.engineid&&(e+=` ${this.engineid}`),e+=` DATABASE ${this.databaseid}`,t&&(e+="(",t.length>0&&(e+=t.map((t=>t.toString())).join(", ")),e+=")"),this.as&&(e+=` AS ${this.as}`),e},q.AttachDatabase.prototype.execute=function(t,e,r){if(!o.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');return o.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,e,r)},q.DetachDatabase=function(t){return Object.assign(this,t)},q.DetachDatabase.prototype.toString=function(){return"DETACH"+" DATABASE "+this.databaseid},q.DetachDatabase.prototype.execute=function(t,e,r){if(!o.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var n,i=this.databaseid;if(i===o.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(o.databases[i]){var s=o.databases[i].engineid&&"FILESTORAGE"==o.databases[i].engineid,a=o.databases[i].filename||"";delete o.databases[i],s&&(o.databases[i]={},o.databases[i].isDetached=!0,o.databases[i].filename=a),i===o.useid&&o.use(),n=1}else{if(!this.ifexists)throw new Error("Database '"+i+"' does not exist");n=0}return r&&r(n),n},q.UseDatabase=function(t){return Object.assign(this,t)},q.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},q.UseDatabase.prototype.execute=function(t,e,r){var n=this.databaseid;if(!o.databases[n])throw new Error("Database '"+n+"' does not exist");return o.use(n),r&&r(1),1},q.DropDatabase=function(t){return Object.assign(this,t)},q.DropDatabase.prototype.toString=function(){var t="DROP";return this.ifexists&&(t+=" IF EXISTS"),t+" DATABASE "+this.databaseid},q.DropDatabase.prototype.execute=function(t,e,r){if(this.engineid)return o.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,r);let n,i=this.databaseid;if(i===o.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(o.databases[i]){if(o.databases[i].engineid)throw new Error(`Cannot drop database '${i}', because it is attached. Detach it.`);delete o.databases[i],i===o.useid&&o.use(),n=1}else{if(!this.ifexists)throw new Error(`Database '${i}' does not exist`);n=0}return r&&r(n),n},q.Declare=function(t){return Object.assign(this,t)},q.Declare.prototype.toString=function(){let t="DECLARE ";return this.declares&&this.declares.length>0&&(t+=this.declares.map((t=>{let e=`@${t.variable} ${t.dbtypeid}`;return t.dbsize&&(e+=`(${t.dbsize}`,t.dbprecision&&(e+=`,${t.dbprecision}`),e+=")"),t.expression&&(e+=` = ${t.expression.toString()}`),e})).join(",")),t},q.Declare.prototype.execute=function(t,e,r){var n=1,i=this;return i.declares&&i.declares.length>0&&i.declares.forEach((function(t){var r=t.dbtypeid;o.fn[r]||(r=r.toUpperCase()),o.declares[t.variable]={dbtypeid:r,dbsize:t.dbsize,dbprecision:t.dbprecision},t.expression&&(o.vars[t.variable]=new Function("params,alasql","return "+t.expression.toJS("({})","",null)).bind(i)(e,o),o.declares[t.variable]&&(o.vars[t.variable]=o.stdfn.CONVERT(o.vars[t.variable],o.declares[t.variable])))})),r&&(n=r(n)),n},q.ShowDatabases=function(t){return Object.assign(this,t)},q.ShowDatabases.prototype.toString=function(){var t="SHOW DATABASES";return this.like&&(t+="LIKE "+this.like.toString()),t},q.ShowDatabases.prototype.execute=function(t,e,r){if(this.engineid)return o.engines[this.engineid].showDatabases(this.like,r);var n=this,i=[];for(var s in o.databases)i.push({databaseid:s});return n.like&&i&&i.length>0&&(i=i.filter((function(t){return o.utils.like(n.like.value,t.databaseid)}))),r&&r(i),i},q.ShowTables=function(t){return Object.assign(this,t)},q.ShowTables.prototype.toString=function(){var t="SHOW TABLES";return this.databaseid&&(t+=" FROM "+this.databaseid),this.like&&(t+=" LIKE "+this.like.toString()),t},q.ShowTables.prototype.execute=function(t,e,r){var n=o.databases[this.databaseid||t],i=this,s=[];for(var a in n.tables)s.push({tableid:a});return i.like&&s&&s.length>0&&(s=s.filter((function(t){return o.utils.like(i.like.value,t.tableid)}))),r&&r(s),s},q.ShowColumns=function(t){return Object.assign(this,t)},q.ShowColumns.prototype.toString=function(){var t="SHOW COLUMNS";return this.table.tableid&&(t+=" FROM "+this.table.tableid),this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowColumns.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||this.databaseid||t].tables[this.table.tableid];if(n&&n.columns){var i=n.columns.map((function(t){return{columnid:t.columnid,dbtypeid:t.dbtypeid,dbsize:t.dbsize}}));return r&&r(i),i}return r&&r([]),[]},q.ShowIndex=function(t){return Object.assign(this,t)},q.ShowIndex.prototype.toString=function(){var t="SHOW INDEX";return this.table.tableid&&(t+=" FROM "+this.table.tableid),this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowIndex.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||this.databaseid||t].tables[this.table.tableid],i=[];if(n&&n.indices)for(var s in n.indices)i.push({hh:s,len:Object.keys(n.indices[s]).length});return r&&r(i),i},q.ShowCreateTable=function(t){return Object.assign(this,t)},q.ShowCreateTable.prototype.toString=function(){var t="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowCreateTable.prototype.execute=function(t){var e=o.databases[this.databaseid||t].tables[this.table.tableid];if(e){var r="CREATE TABLE "+this.table.tableid+" (",n=[];return e.columns&&(e.columns.forEach((function(t){var e=t.columnid+" "+t.dbtypeid;t.dbsize&&(e+="("+t.dbsize+")"),t.primarykey&&(e+=" PRIMARY KEY"),n.push(e)})),r+=n.join(", ")),r+")"}throw new Error('There is no such table "'+this.table.tableid+'"')},q.SetVariable=function(t){return Object.assign(this,t)},q.SetVariable.prototype.toString=function(){var t="SET ";return typeof this.value<"u"&&(t+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(t+=this.method+this.variable+" = "+this.expression.toString()),t},q.SetVariable.prototype.execute=function(t,e,r){if(typeof this.value<"u"){let t=this.value;"ON"===t?t=!0:"OFF"===t&&(t=!1),o.options[this.variable]=t}else if(this.expression){this.exists&&(this.existsfn=this.exists.map((e=>{let r=e.compile(t);return r.query&&!r.query.modifier&&(r.query.modifier="RECORDSET"),r}))),this.queries&&(this.queriesfn=this.queries.map((e=>{let r=e.compile(t);return r.query&&!r.query.modifier&&(r.query.modifier="RECORDSET"),r})));let r=new Function("params, alasql","return "+this.expression.toJS("({})","",null)).bind(this)(e,o);if(o.declares[this.variable]&&(r=o.stdfn.CONVERT(r,o.declares[this.variable])),this.props&&this.props.length>0){let t;t="@"===this.method?`alasql.vars['${this.variable}']`:`params['${this.variable}']`,this.props.forEach((e=>{t+="string"==typeof e?`['${e}']`:"number"==typeof e?`[${e}]`:`[${e.toJS()}]`})),new Function("value, params, alasql",`${t} = value`)(r,e,o)}else"@"===this.method?o.vars[this.variable]=r:e[this.variable]=r}let n=1;return r&&(n=r(n)),n},o.test=function(t,e,r){if(0!==arguments.length){var n=Date.now();if(1===arguments.length)return r(),void o.con.log(Date.now()-n);2===arguments.length&&(r=e,e=1);for(var i=0;i",t),Array.isArray(r)&&console.table?console.table(r):console.log(pt(r));else{var s;s="output"===i?document.getElementsByTagName("output")[0]:"string"==typeof i?document.getElementById(i):i;var a="";if("string"==typeof t&&o.options.logprompt&&(a+="
"+o.pretty(t)+"
"),Array.isArray(r))if(0===r.length)a+="

[ ]

";else if("object"!=typeof r[0]||Array.isArray(r[0]))for(var u=0,c=r.length;u"+bt(r[u])+"

";else a+=bt(r);else a+=bt(r);s.innerHTML+=a}},o.clear=function(){var t=o.options.logtarget;l.isNode||l.isMeteorServer?console.clear&&console.clear():("output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t).innerHTML=""},o.write=function(t){var e=o.options.logtarget;l.isNode||l.isMeteorServer?console.log&&console.log(t):("output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e).innerHTML+=t},o.prompt=function(t,e,r){if(l.isNode)throw new Error("The prompt not realized for Node.js");var n=0;if("string"==typeof t&&(t=document.getElementById(t)),"string"==typeof e&&(e=document.getElementById(e)),e.textContent=o.useid,r){o.prompthistory.push(r),n=o.prompthistory.length;try{var i=Date.now();o.log(r),o.write('

'+(Date.now()-i)+" ms

")}catch(t){o.write("

"+o.useid+"> "+r+"

"),o.write('

'+t+"

")}}var s=t.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;Tt(document.getElementsByTagName("body")[0],s,500),t.onkeydown=function(r){if(13===r.which){var i=t.value,s=o.useid;t.value="",o.prompthistory.push(i),n=o.prompthistory.length;try{var a=Date.now();o.log(i),o.write('

'+(Date.now()-a)+" ms

")}catch(t){o.write("

"+s+"> "+o.pretty(i,!1)+"

"),o.write('

'+t+"

")}t.focus(),e.textContent=o.useid;var l=t.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;Tt(document.getElementsByTagName("body")[0],l,500)}else 38===r.which?(--n<0&&(n=0),o.prompthistory[n]&&(t.value=o.prompthistory[n],r.preventDefault())):40===r.which&&(++n>=o.prompthistory.length?(n=o.prompthistory.length,t.value=""):o.prompthistory[n]&&(t.value=o.prompthistory[n],r.preventDefault()))}},q.BeginTransaction=function(t){return Object.assign(this,t)},q.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},q.BeginTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[o.useid].engineid].begin(t,r):(r&&(n=r(n)),n)},q.CommitTransaction=function(t){return Object.assign(this,t)},q.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},q.CommitTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[o.useid].engineid].commit(t,r):(r&&(n=r(n)),n)},q.RollbackTransaction=function(t){return Object.assign(this,t)},q.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},q.RollbackTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[t].engineid].rollback(t,r):(r&&(n=r(n)),n)},o.options.tsql&&(o.stdfn.OBJECT_ID=function(t,e){typeof e>"u"&&(e="T"),e=e.toUpperCase();var r=t.split("."),n=o.useid,i=r[0];2==r.length&&(n=r[0],i=r[1]);var s=o.databases[n].tables;for(var a in n=o.databases[n].databaseid,s)if(a==i)return s[a].view&&"V"==e||!s[a].view&&"T"==e?n+"."+a:void 0}),o.options.mysql&&(o.fn.TIMESTAMPDIFF=function(t,e,r){return o.stdfn.DATEDIFF(t,e,r)}),(o.options.mysql||o.options.sqlite)&&(o.from.INFORMATION_SCHEMA=function(t,e,r,n,i){if("VIEWS"==t||"TABLES"==t){var s=[];for(var a in o.databases){var l=o.databases[a].tables;for(var u in l)(l[u].view&&"VIEWS"==t||!l[u].view&&"TABLES"==t)&&s.push({TABLE_CATALOG:a,TABLE_NAME:u})}return r&&(s=r(s,n,i)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),o.options.postgres,o.options.oracle,o.options.sqlite,o.into.SQL=function(t,e,r,n,i){var s;"object"==typeof t&&(e=t,t=void 0);var a={};if(o.utils.extend(a,e),typeof a.tableid>"u")throw new Error("Table for INSERT TO is not defined.");var l="";0===n.length&&"object"==typeof r[0]&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}})));for(var u=0,c=r.length;u0&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}}))),"object"==typeof t&&(e=t,t=void 0);var s=r.length,a="";if(r.length>0){var l=n[0].columnid;a+=r.map((function(t){return t[l]})).join("\n")}return t=o.utils.autoExtFilename(t,"txt",e),s=o.utils.saveFile(t,a),i&&(s=i(s)),s},o.into.TAB=o.into.TSV=function(t,e,r,n,i){var s={};return o.utils.extend(s,e),s.separator="\t",t=o.utils.autoExtFilename(t,"tab",e),s.autoExt=!1,o.into.CSV(t,s,r,n,i)},o.into.CSV=function(t,e,r,n,i){0===n.length&&r.length>0&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}}))),"object"==typeof t&&(e=t,t=void 0);var s={headers:!0,separator:";",quote:'"',utf8Bom:!0};e&&!e.headers&&typeof e.headers<"u"&&(s.utf8Bom=!1),o.utils.extend(s,e);var a=r.length,l=s.utf8Bom?"\ufeff":"";return s.headers&&(l+=s.quote+n.map((function(t){return t.columnid.trim()})).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),r.forEach((function(t){l+=n.map((function(e){var r=t[e.columnid];return""!==s.quote&&(r=(r+"").replace(new RegExp("\\"+s.quote,"g"),s.quote+s.quote)),+r!=r&&(r=s.quote+r+s.quote),r})).join(s.separator)+"\r\n"})),t=o.utils.autoExtFilename(t,"csv",e),a=o.utils.saveFile(t,l,null,{disableAutoBom:!0}),i&&(a=i(a)),a},o.into.XLS=function(t,e,r,n,i){"object"==typeof t&&(e=t,t=void 0);var s={};e&&e.sheets&&(s=e.sheets);var a={headers:!0};typeof s.Sheet1<"u"?a=s[0]:typeof e<"u"&&(a=e),typeof a.sheetid>"u"&&(a.sheetid="Sheet1");var l=function(){var t=' \t\t \t\t\x3c!--[if gte mso 9]> ';if(t+=" "+a.sheetid+" \t\t",t+="",t+="",t+="",typeof a.caption<"u"){var i=a.caption;"string"==typeof i&&(i={title:i}),t+=""}return typeof a.columns<"u"?n=a.columns:0==n.length&&r.length>0&&"object"==typeof r[0]&&(n=Array.isArray(r[0])?r[0].map((function(t,e){return{columnid:e}})):Object.keys(r[0]).map((function(t){return{columnid:t}}))),n.forEach((function(t,e){typeof a.column<"u"&&I(t,a.column),typeof t.width>"u"&&(a.column&&"undefined"!=a.column.width?t.width=a.column.width:t.width="120px"),"number"==typeof t.width&&(t.width=t.width+"px"),typeof t.columnid>"u"&&(t.columnid=e),typeof t.title>"u"&&(t.title=""+t.columnid.trim()),a.headers&&Array.isArray(a.headers)&&(t.title=a.headers[e])})),t+="",n.forEach((function(e){t+=''})),t+="",a.headers&&(t+="",t+="",n.forEach((function(e,r){t+="",t+=""),t+="",r&&r.length>0&&r.forEach((function(r,i){if(!(i>a.limit)){t+=""u"&&("number"==typeof u?c="number":"string"==typeof u?c="string":"boolean"==typeof u?c="boolean":"object"==typeof u&&u instanceof Date&&(c="date"));var h="";"money"==c?h='mso-number-format:"\\#\\,\\#\\#0\\\\ _р_\\.";white-space:normal;':"number"==c?h=" ":"date"==c?h='mso-number-format:"Short Date";':e.types&&e.types[c]&&e.types[c].typestyle&&(h=e.types[c].typestyle),t+=""})),t+=""}})),t+="",t+="
"})),t+="
"u")t+="";else if(typeof d<"u")if("function"==typeof d)t+=d(u);else{if("string"!=typeof d)throw new Error("Unknown format type. Should be function or string");t+=u}else t+="number"==c||"date"==c?u.toString():"money"==c?(+u).toFixed(2):u;t+="
",t+="",t+=""}();t=o.utils.autoExtFilename(t,"xls",e);var u=o.utils.saveFile(t,l);return i&&(u=i(u)),u},o.into.XLSXML=function(t,e,r,n,i){e=e||{},"object"==typeof t&&(e=t,t=void 0);var s,a,l={};e&&e.sheets?(l=e.sheets,s=r,a=n):(l.Sheet1=e,s=[r],a=[n]),t=o.utils.autoExtFilename(t,"xls",e);var u=o.utils.saveFile(t,function(){function t(t){return null==t?"":String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var r="",n=" ",i={},o=62;function u(t){var e="";for(var n in t){for(var s in e+="<"+n,t[n])e+=" ","x:"==s.substr(0,2)?e+=s:e+="ss:",e+=s+"="+JSON.stringify(t[n][s]);e+="/>"}var a=T(e);return i[a]||(i[a]={styleid:o},r+=`",o++),"s"+i[a].styleid}function c(t){try{return Object.values(t)}catch{return Object.keys(t).map((function(e){return t[e]}))}}var h=0;for(var d in l){var p=l[d],f=typeof p.dataidx<"u"?p.dataidx:h++,g=c(s[f]),m=void 0;typeof p.columns<"u"?m=p.columns:(void 0===(m=a[f])||0==m.length&&g.length>0)&&"object"==typeof g[0]&&(m=Array.isArray(g[0])?g[0].map((function(t,e){return{columnid:e}})):Object.keys(g[0]).map((function(t){return{columnid:t}}))),m.forEach((function(t,e){typeof p.column<"u"&&I(t,p.column),typeof t.width>"u"&&(p.column&&typeof p.column.width<"u"?t.width=p.column.width:t.width=120),"number"==typeof t.width&&(t.width=t.width),typeof t.columnid>"u"&&(t.columnid=e),typeof t.title>"u"&&(t.title=""+t.columnid.trim()),p.headers&&Array.isArray(p.headers)&&(t.title=p.headers[e])})),n+="',m.forEach((function(t,e){n+=`\n\t\t\t\t\t`})),p.headers&&(n+='',m.forEach((function(e,r){if(n+=""})),n+=""),g&&g.length>0&&g.forEach((function(r,i){if(!(i>p.limit)){var o={};if(I(o,p.row),p.rows&&p.rows[i]&&I(o,p.rows[i]),n+=""u"&&("number"==typeof c?h="number":"string"==typeof c?h="string":"boolean"==typeof c?h="boolean":"object"==typeof c&&c instanceof Date&&(h="date"));var d="String";"number"==h?d="Number":"date"==h&&(d="Date"),"money"==h||"number"==h||"date"==h||e.types&&e.types[h]&&e.types[h].typestyle&&e.types[h].typestyle,n+="";var g=l.format;if(typeof c>"u")n+="";else if(typeof g<"u")if("function"==typeof g)n+=t(g(c));else{if("string"!=typeof g)throw new Error("Unknown format type. Should be function or string");n+=t(c)}else n+=t("number"==h||"date"==h?c.toString():"money"==h?(+c).toFixed(2):c);n+=""})),n+=""}})),n+=""}return' \t\t \t\t \t\t \t\t \t\t \t\t \t\t \t\t 0 \t\t \t\t \t\t '+r+(n+="")}());return i&&(u=i(u)),u},o.into.XLSX=function(t,e,r,n,i){var s=1;e=e||{},C(n,[{columnid:"_"}])&&(r=r.map((function(t){return t._})),n=void 0),t=o.utils.autoExtFilename(t,"xlsx",e);var a=M();"object"==typeof t&&(e=t,t=void 0);var u={SheetNames:[],Sheets:{}};return e.sourcefilename?o.utils.loadBinaryFile(e.sourcefilename,!!i,(function(t){u=a.read(t,{type:"binary",...o.options.excel,...e}),c(),i&&(s=i(s))})):(c(),i&&(s=i(s))),s;function c(){"object"==typeof e&&Array.isArray(e)?r&&r.length>0&&r.forEach((function(t,r){h(e[r],t,void 0,r+1)})):h(e,r,n,1),function(e){var r;if(typeof t>"u")s=u;else if(r=M(),l.isNode||l.isMeteorServer)r.writeFile(u,t);else{var n=r.write(u,{bookType:"xlsx",bookSST:!1,type:"binary"});Ct(new Blob([function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=255&t.charCodeAt(n);return e}(n)],{type:"application/octet-stream"}),t)}}()}function h(t,e,r,n){var i={sheetid:"Sheet "+n,headers:!0};o.utils.extend(i,t);var s=Object.keys(e).length;(!r||0==r.length)&&(r=s>0?Object.keys(e[0]).map((function(t){return{columnid:t}})):[]);var a={};u.SheetNames.indexOf(i.sheetid)>-1||(u.SheetNames.push(i.sheetid),u.Sheets[i.sheetid]={}),a=u.Sheets[i.sheetid];var l="A1";i.range&&(l=i.range);var c=o.utils.xlscn(l.match(/[A-Z]+/)[0]),h=+l.match(/[0-9]+/)[0]-1;if(u.Sheets[i.sheetid]["!ref"])var d=u.Sheets[i.sheetid]["!ref"],p=o.utils.xlscn(d.match(/[A-Z]+/)[0]),f=+d.match(/[0-9]+/)[0]-1;else p=1,f=1;var g=r.length?0:1,m=Math.max(c+r.length-1+g,p),y=Math.max(h+s+2,f),_=h+1;u.Sheets[i.sheetid]["!ref"]="A1:"+o.utils.xlsnc(m)+y,i.headers&&(r.forEach((function(t,e){a[o.utils.xlsnc(c+e)+""+_]={v:t.columnid.trim()}})),_++);for(var v=0;vfunction(e,r,n,i,s){let a=[];return e=o.utils.autoExtFilename(e,t,r),o.utils.loadFile(e,!!n,(function(t){t.split(/\r?\n/).forEach(((t,e)=>{let r=t.trim();if(""!==r)try{a.push(JSON.parse(r))}catch(t){throw new Error(`Could not parse JSON at line ${e}: ${t.toString()}`)}})),n&&(a=n(a,i,s))}),(t=>{let e=t instanceof Error?t:new Error(t);if(!s||!s.cb)throw e;s.cb(null,e)})),a};function Ot(t,e,r,n,i,s){var a,l={};function u(t){return t&&!1===o.options.casesensitive?t.toLowerCase():t}function c(t,e,r){var n,i=[];if(typeof r.range>"u"?n=t.Sheets[e]["!ref"]:(n=r.range,t.Sheets[e][n]&&(n=t.Sheets[e][n])),n){for(var s=n.split(":"),a=s[0].match(/[A-Z]+/)[0],l=+s[0].match(/[0-9]+/)[0],c=s[1].match(/[A-Z]+/)[0],h=+s[1].match(/[0-9]+/)[0],d={},p=o.utils.xlscn(a),f=o.utils.xlscn(c),g=p;g<=f;g++){var m=o.utils.xlsnc(g);r.headers?t.Sheets[e][m+""+l]?d[m]=u(t.Sheets[e][m+""+l].v):d[m]=u(m):d[m]=m}r.headers&&l++;for(var y=l;y<=h;y++){var _={};for(g=p;g<=f;g++)m=o.utils.xlsnc(g),t.Sheets[e][m+""+y]&&(_[d[m]]=t.Sheets[e][m+""+y].v);i.push(_)}}else i.push([]);return i.length>0&&i[i.length-1]&&0==Object.keys(i[i.length-1]).length&&i.pop(),i}return r=r||{},o.utils.extend(l,r),typeof l.headers>"u"&&(l.headers=!0),e=o.utils.autoExtFilename(e,"xls",r),o.utils.loadBinaryFile(e,!!n,(function(e){if(e instanceof ArrayBuffer)var u=function(t){for(var e="",r=0,n=10240;r0){a=[];for(var d="*"===l.sheetid?h.SheetNames:l.sheetid,p=0;p"u"?h.SheetNames[0]:"number"==typeof l.sheetid?h.SheetNames[l.sheetid]:l.sheetid,a=c(h,y,l)}n&&(a=n(a,i,s))}),(function(t){if(!s||!s.cb)throw t;s.cb(null,t)})),a}o.from.JSONL=Et("jsonl"),o.from.NDJSON=Et("ndjson"),o.from.TXT=function(t,e,r,n,i){var s;return t=o.utils.autoExtFilename(t,"txt",e),o.utils.loadFile(t,!!r,(function(t){""===(s=t.split(/\r?\n/))[s.length-1]&&s.pop();for(var e=0,o=s.length;e=g)return p;if(o)return o=!1,d;var e=m;if(t.charCodeAt(e)===h){for(var r=e;r++i.cb(null,t)))),a},o.from.XLS=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"xls",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.XLSX=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"xlsx",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.ODS=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"ods",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.XML=function(t,e,r,n,i){var s;return o.utils.loadFile(t,!!r,(function(t){s=function(t){return t=(t=t.trim()).replace(//g,""),{declaration:e(),root:r()};function e(){if(o(/^<\?xml\s*/)){for(var t={attributes:{}};!s()&&!a("?>");){var e=n();if(!e)return t;t.attributes[e.name]=e.value}return o(/\?>\s*/),t}}function r(){var t=o(/^<([\w-:.]+)\s*/);if(t){for(var e={name:t[1],attributes:{},children:[]};!(s()||a(">")||a("?>")||a("/>"));){var i=n();if(!i)return e;e.attributes[i.name]=i.value}if(o(/^\s*\/>\s*/))return e;o(/\??>\s*/),e.content=function(){var t=o(/^([^<]*)/);return t?t[1]:""}();for(var l;l=r();)e.children.push(l);return o(/^<\/[\w-:.]+>\s*/),e}}function n(){var t=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(t)return{name:t[1],value:i(t[2])}}function i(t){return t.replace(/^['"]|['"]$/g,"")}function o(e){var r=t.match(e);if(r)return t=t.slice(r[0].length),r}function s(){return 0==t.length}function a(e){return 0==t.indexOf(e)}}(t).root,r&&(s=r(s,n,i))})),s},o.from.GEXF=function(t,e,r,n,i){var s;return o("SEARCH FROM XML("+t+")",[],(function(t){s=t,r&&(s=r(s))})),s},q.Print=function(t){return Object.assign(this,t)},q.Print.prototype.toString=function(){var t="PRINT";return this.statement&&(t+=" "+this.statement.toString()),t},q.Print.prototype.execute=function(t,e,r){var n=this,i=1;if(o.precompile(this,t,e),this.exprs&&this.exprs.length>0){var s=this.exprs.map((function(t){var r=new Function("params,alasql,p","var y;return "+t.toJS("({})","",null)).bind(n)(e,o);return pt(r)}));console.log.apply(console,s)}else if(this.select){var a=this.select.execute(t,e);console.log(pt(a))}else console.log();return r&&(i=r(i)),i},q.Source=function(t){return Object.assign(this,t)},q.Source.prototype.toString=function(){var t="SOURCE";return this.url&&(t+=" '"+this.url+" '"),t},q.Source.prototype.execute=function(t,e,r){var n;return _(this.url,!!r,(function(t){return n=o(t),r&&(n=r(n)),n}),(function(t){throw t})),n},q.Require=function(t){return Object.assign(this,t)},q.Require.prototype.toString=function(){var t="REQUIRE";return this.paths&&this.paths.length>0&&(t+=this.paths.map((function(t){return t.toString()})).join(",")),this.plugins&&this.plugins.length>0&&(t+=this.plugins.map((function(t){return t.toUpperCase()})).join(",")),t},q.Require.prototype.execute=function(t,e,r){var n=this,i=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach((function(t){_(t.value,!!r,(function(t){i++,s+=t,!(i0?this.plugins.forEach((function(t){o.plugins[t]||_(o.path+"/alasql-"+t.toLowerCase()+".js",!!r,(function(a){i++,s+=a,!(ie.name===t))||0;let r=e.open(t);return new Promise((function(e,n){r.onsuccess=()=>{r.result.close(),e({name:t,version:r.result.version})},r.onupgradeneeded=t=>{t.target.transaction.abort(),e(0)},r.onerror=()=>{n(new Error("IndexedDB error"))},r.onblocked=()=>{e({name:t,version:r.result.version})}}))}St.showDatabases=function(t,e){indexedDB.databases?indexedDB.databases().then((r=>{let n=[],i=t&&new RegExp(t.value.replace(/\%/g,".*"),"g");for(var o=0;o{if(i)return i(null,t),null;throw t}));if(null!==o)if(o){if(!r){let e=new Error(`IndexedDB: Cannot create new database "${t}" because it already exists`);if(i)return void i(null,e);throw e}i&&i(0)}else{let e=indexedDB.open(t,1);e.onsuccess=()=>{e.result.close(),i(1)}}},St.dropDatabase=async function(t,e,r){let n=await Nt(t).catch((t=>{if(r)return r(null,t),null;throw t}));if(null!==n)if(n)indexedDB.deleteDatabase(t).onsuccess=()=>{r&&r(1)};else{if(!e){if(r)return void r(null,new Error(`IndexedDB: Cannot drop database "${t}" because it does not exist`));throw new Error(`IndexedDB: Cannot drop database "${t}" because it does not exist`)}r&&r(0)}},St.attachDatabase=async function(t,e,r,n,i){let s=await Nt(t).catch((t=>{if(i)return i(null,t),null;throw t}));if(null===s)return;if(!s){let e=new Error(`IndexedDB: Cannot attach database "${t}" because it does not exist`);if(i)return void i(null,e);throw e}let a=await new Promise(((e,r)=>{let n=indexedDB.open(t);n.onsuccess=()=>{e(n.result.objectStoreNames),n.result.close()}})),l=new o.Database(e||t);l.engineid="INDEXEDDB",l.ixdbid=t,l.tables=[];for(var u=0;u{if(n)return n(null,t),null;throw t}));if(null===s)return;if(!s){let t=new Error('IndexedDB: Cannot create table in database "'+i+'" because it does not exist');if(n)return void n(null,t);throw t}let a=indexedDB.open(i,s.version+1);a.onupgradeneeded=function(t){a.result.createObjectStore(e,{autoIncrement:!0})},a.onsuccess=function(t){a.result.close(),n&&n(1)},a.onerror=t=>{n(null,t)},a.onblocked=function(r){n(null,new Error(`Cannot create table "${e}" because database "${t}" is blocked`))}},St.dropTable=async function(t,e,r,n){let i=o.databases[t].ixdbid,s=await Nt(i).catch((t=>{if(n)return n(null,t),null;throw t}));if(null===s)return;if(!s){let t=new Error('IndexedDB: Cannot drop table in database "'+i+'" because it does not exist');if(n)return void n(null,t);throw t}let a,l=indexedDB.open(i,s.version+1);l.onupgradeneeded=function(n){var i=l.result;i.objectStoreNames.contains(e)?(i.deleteObjectStore(e),delete o.databases[t].tables[e]):r||(a=new Error(`IndexedDB: Cannot drop table "${e}" because it does not exist`),n.target.transaction.abort())},l.onsuccess=function(t){l.result.close(),n&&n(1)},l.onerror=function(t){n&&n(null,a||t)},l.onblocked=function(r){n(null,new Error(`Cannot drop table "${e}" because database "${t}" is blocked`))}},St.intoTable=function(t,e,r,n,i){let s=o.databases[t].ixdbid,a=indexedDB.open(s);var l=o.databases[t].tables[e];a.onupgradeneeded=r=>{r.target.transaction.abort();let n=new Error(`Cannot insert into table "${e}" because database "${t}" does not exist`);i&&i(null,n)},a.onsuccess=()=>{for(var n=a.result,s=n.transaction([e],"readwrite"),u=s.objectStore(e),c=0,h=r.length;c{n.target.transaction.abort();let i=new Error(`Cannot select from table "${e}" because database "${t}" does not exist`);r&&r(null,i)},a.onsuccess=()=>{let t=[],o=a.result,s=o.transaction([e]).objectStore(e).openCursor();s.onsuccess=()=>{let e=s.result;if(e){let r="object"==typeof e?e.value:{[e.key]:e.value};t.push(r),e.continue()}else o.close(),r&&r(t,n,i)}}},St.deleteFromTable=function(t,e,r,n,i){let s=o.databases[t].ixdbid,a=indexedDB.open(s);a.onsuccess=()=>{let t=a.result,s=t.transaction([e],"readwrite").objectStore(e).openCursor(),l=0;s.onsuccess=()=>{var e=s.result;e?((!r||r(e.value,n,o))&&(e.delete(),l++),e.continue()):(t.close(),i&&i(l))}}},St.updateTable=function(t,e,r,n,i,s){let a=o.databases[t].ixdbid,l=indexedDB.open(a);l.onsuccess=function(){let t=l.result,o=t.transaction([e],"readwrite").objectStore(e).openCursor(),a=0;o.onsuccess=()=>{var e=o.result;if(e){if(!n||n(e.value,i)){var l=e.value;r(l,i),e.update(l),a++}e.continue()}else t.close(),s&&s(a)}}},St.commit=function(t,e){return e?e(1):1},St.begin=St.commit,St.rollback=function(t,e){return e?e(1):1};var At=o.engines.LOCALSTORAGE=function(){};At.get=function(t){var e=localStorage.getItem(t);if(!(typeof e>"u")){var r;try{r=JSON.parse(e)}catch{throw new Error("Cannot parse JSON object from localStorage"+e)}return r}},At.set=function(t,e){typeof e>"u"?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(e))},At.storeTable=function(t,e){var r=o.databases[t],n=r.tables[e],i={};i.columns=n.columns,i.data=n.data,i.identities=n.identities,i.defaultfns=n.defaultfns,i.onupdatefns=n.onupdatefns,At.set(r.lsdbid+"."+e,i)},At.restoreTable=function(t,e){var r=o.databases[t],n=At.get(r.lsdbid+"."+e),i=new o.Table;for(var s in n)i[s]=n[s];return r.tables[e]=i,i.indexColumns(),i},At.removeTable=function(t,e){var r=o.databases[t];localStorage.removeItem(r.lsdbid+"."+e)},At.createDatabase=function(t,e,r,n,i){var o=1,s=At.get("alasql");if(r&&s&&s.databases&&s.databases[t])o=0;else{if(s||(s={databases:{}}),s.databases&&s.databases[t])throw new Error('localStorage: Cannot create new database "'+t+'" because it already exists');s.databases[t]=!0,At.set("alasql",s),At.set(t,{databaseid:t,tables:{}})}return i&&(o=i(o)),o},At.dropDatabase=function(t,e,r){var n=1,i=At.get("alasql");if(e&&i&&i.databases&&!i.databases[t])n=0;else{if(!i){if(e)return r?r(0):0;throw new Error("There is no any AlaSQL databases in localStorage")}if(i.databases&&!i.databases[t])throw new Error('localStorage: Cannot drop database "'+t+'" because there is no such database');delete i.databases[t],At.set("alasql",i);var o=At.get(t);for(var s in o.tables)localStorage.removeItem(t+"."+s);localStorage.removeItem(t)}return r&&(n=r(n)),n},At.attachDatabase=function(t,e,r,n,i){var s=1;if(o.databases[e])throw new Error('Unable to attach database as "'+e+'" because it already exists');e||(e=t);var a=new o.Database(e);if(a.engineid="LOCALSTORAGE",a.lsdbid=t,a.tables=At.get(t).tables,!o.options.autocommit&&a.tables)for(var l in a.tables)At.restoreTable(e,l);return i&&(s=i(s)),s},At.showDatabases=function(t,e){var r=[],n=At.get("alasql");if(t)var i=new RegExp(t.value.replace(/%/g,".*"),"g");if(n&&n.databases){for(var o in n.databases)r.push({databaseid:o});t&&r&&r.length>0&&(r=r.filter((function(t){return t.databaseid.match(i)})))}return e&&(r=e(r)),r},At.createTable=function(t,e,r,n){var i=1,s=o.databases[t].lsdbid;if(At.get(s+"."+e)&&!r)throw new Error('Table "'+e+'" alsready exists in localStorage database "'+s+'"');var a=At.get(s);return o.databases[t].tables[e],a.tables[e]=!0,At.set(s,a),At.storeTable(t,e),n&&(i=n(i)),i},At.truncateTable=function(t,e,r,n){var i,s=1,a=o.databases[t].lsdbid;if(i=o.options.autocommit?At.get(a):o.databases[t],!r&&!i.tables[e])throw new Error('Cannot truncate table "'+e+'" in localStorage, because it does not exist');return At.restoreTable(t,e).data=[],At.storeTable(t,e),n&&(s=n(s)),s},At.dropTable=function(t,e,r,n){var i,s=1,a=o.databases[t].lsdbid;if(i=o.options.autocommit?At.get(a):o.databases[t],!r&&!i.tables[e])throw new Error('Cannot drop table "'+e+'" in localStorage, because it does not exist');return delete i.tables[e],At.set(a,i),At.removeTable(t,e),n&&(s=n(s)),s},At.fromTable=function(t,e,r,n,i){o.databases[t].lsdbid;var s=At.restoreTable(t,e).data;return r&&(s=r(s,n,i)),s},At.intoTable=function(t,e,r,n,i){o.databases[t].lsdbid;var s=r.length,a=At.restoreTable(t,e);for(var l in a.identities){var u=a.identities[l];for(var c in r)r[c][l]=u.value,u.value+=u.step}return a.data||(a.data=[]),a.data=a.data.concat(r),At.storeTable(t,e),i&&(s=i(s)),s},At.loadTableData=function(t,e){o.databases[t],o.databases[t].lsdbid,At.restoreTable(t,e)},At.saveTableData=function(t,e){var r=o.databases[t],n=o.databases[t].lsdbid;At.storeTable(n,e),r.tables[e].data=void 0},At.commit=function(t,e){var r=o.databases[t],n=o.databases[t].lsdbid,i={databaseid:n,tables:{}};if(r.tables)for(var s in r.tables)i.tables[s]=!0,At.storeTable(t,s);return At.set(n,i),e?e(1):1},At.begin=At.commit,At.rollback=function(t,e){};var wt=o.engines.SQLITE=function(){};wt.createDatabase=function(t,e,r,n,i){throw new Error("Connot create SQLITE database in memory. Attach it.")},wt.dropDatabase=function(t){throw new Error("This is impossible to drop SQLite database. Detach it.")},wt.attachDatabase=function(t,e,r,n,i){if(o.databases[e])throw new Error('Unable to attach database as "'+e+'" because it already exists');if(r[0]&&r[0]instanceof q.StringValue||r[0]instanceof q.ParamValue){if(r[0]instanceof q.StringValue)var s=r[0].value;else r[0]instanceof q.ParamValue&&(s=n[r[0].param]);return o.utils.loadBinaryFile(s,!0,(function(r){var n=new o.Database(e||t);n.engineid="SQLITE",n.sqldbid=t;var s=n.sqldb=new SQL.Database(r);n.tables=[],s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values.forEach((function(t){n.tables[t[1]]={};var e=n.tables[t[1]].columns=[],r=o.parse(t[4]).statements[0].columns;r&&r.length>0&&r.forEach((function(t){e.push(t)}))})),i(1)}),(function(t){throw new Error('Cannot open SQLite database file "'+r[0].value+'"')})),1}throw new Error("Cannot attach SQLite database without a file")},wt.fromTable=function(t,e,r,n,i){var s=o.databases[t].sqldb.exec("SELECT * FROM "+e),a=i.sources[n].columns=[];s[0].columns.length>0&&s[0].columns.forEach((function(t){a.push({columnid:t})}));var l=[];s[0].values.length>0&&s[0].values.forEach((function(t){var e={};a.forEach((function(r,n){e[r.columnid]=t[n]})),l.push(e)})),r&&r(l,n,i)},wt.intoTable=function(t,e,r,n,i){for(var s=o.databases[t].sqldb,a=0,l=r.length;a"u")for(var n=document.getElementsByTagName("script"),i=0;i"u")throw new Error("Path to alasql.js is not specified");if(!1!==t){var s="importScripts('";s+=t,s+="');self.onmessage = function(event) {alasql(event.data.sql,event.data.params, function(data){postMessage({id:event.data.id, data:data});});}";var a=new Blob([s],{type:"text/plain"});if(o.webworker=new Worker(URL.createObjectURL(a)),o.webworker.onmessage=function(t){var e=t.data.id;o.buffer[e](t.data.data),delete o.buffer[e]},o.webworker.onerror=function(t){throw t},arguments.length>1){var l="REQUIRE "+e.map((function(t){return'"'+t+'"'})).join(",");o(l,[],r)}}else if(!1===t)return void delete o.webworker});var Ct=Ct||function(t){if(!(typeof t>"u"||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,r=function(){return t.URL||t.webkitURL||t},n=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,o=/constructor/i.test(t.HTMLElement)||t.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},l=function(t){setTimeout((function(){"string"==typeof t?r().revokeObjectURL(t):t.remove()}),4e4)},u=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},c=function(e,c,h){h||(e=u(e));var d,p=this,f="application/octet-stream"===e.type,g=function(){!function(t,e,r){for(var n=(e=[].concat(e)).length;n--;){var i=t["on"+e[n]];if("function"==typeof i)try{i.call(t,t)}catch(t){a(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return d=r().createObjectURL(e),void setTimeout((function(){n.href=d,n.download=c,function(t){var e=new MouseEvent("click");t.dispatchEvent(e)}(n),g(),l(d),p.readyState=p.DONE}));!function(){if((s||f&&o)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=s?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,g()},n.readAsDataURL(e),void(p.readyState=p.INIT)}d||(d=r().createObjectURL(e)),f?t.location.href=d:t.open(d,"_blank")||(t.location.href=d),p.readyState=p.DONE,g(),l(d)}()},h=c.prototype;return typeof navigator<"u"&&navigator.msSaveOrOpenBlob?function(t,e,r){return e=e||t.name||"download",r||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e,r){return new c(t,e||t.name||"download",r)})}}(typeof self<"u"&&self||typeof window<"u"&&window||this.content);typeof e<"u"&&e.exports?e.exports.saveAs=Ct:typeof define<"u"&&null!==define&&null!==define.amd&&define("FileSaver.js",(function(){return Ct})),(l.isCordova||l.isMeteorServer||l.isNode)&&console.log("It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead."),o.utils.saveAs=Ct}return new F("alasql"),o.use("alasql"),o}))}));function Rn(t){return void 0!==t.top}function Cn(t){return void 0!==t.left}function Ln(t){return void 0!==t.axis}function In(t){return void 0!==t.group&&void 0!==t.side}function kn(t){return void 0!==t.groupA&&void 0!==t.groupB}function Dn(t){return Array.isArray(t.nodes)&&Array.isArray(t.edges)&&Array.isArray(t.constraints)&&Array.isArray(t.groups)&&t.nodes.every((t=>"string"==typeof t.id))&&t.edges.every((t=>"object"==typeof t.source&&"object"==typeof t.target))&&t.constraints.every((t=>"object"==typeof t.sourceConstraint))&&t.groups.every((t=>"string"==typeof t.name))&&(void 0===t.disjunctiveConstraints||Array.isArray(t.disjunctiveConstraints))}function Pn(t){return t instanceof jn}var Mn,jn,Kn=d((()=>{Mn=class{constructor(t,e){this.c=t,this.reason=e}toHTML(){return`Implicit constraint ${this.c.toHTML()} because ${this.reason}`}},jn=class{constructor(t,e){this.sourceConstraint=t,this.alternatives=e}toString(){return`DisjunctiveConstraint with ${this.alternatives.length} alternatives from ${this.sourceConstraint}`}addAlternative(t){this.alternatives.push(t)}}}));function Un(t){return typeof t>"u"||null===t}function Fn(t){return"object"==typeof t&&null!==t}function $n(t){return Array.isArray(t)?t:Un(t)?[]:[t]}function Hn(t,e){var r,n,i,o;if(e)for(r=0,n=(o=Object.keys(e)).length;ra&&(e=n-a+(o=" ... ").length),r-n>a&&(r=n+a-(s=" ...").length),{str:o+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+o.length}}function Yn(t,e){return Ao.repeat(" ",e-t.length)+t}function Wn(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],o=[],s=-1;r=n.exec(t.buffer);)o.push(r.index),i.push(r.index+r[0].length),t.position<=r.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a,l,u="",c=Math.min(t.line+e.linesAfter,o.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(s-a<0);a++)l=Vn(t.buffer,i[s-a],o[s-a],t.position-(i[s]-i[s-a]),h),u=Ao.repeat(" ",e.indent)+Yn((t.line-a+1).toString(),c)+" | "+l.str+"\n"+u;for(l=Vn(t.buffer,i[s],o[s],t.position,h),u+=Ao.repeat(" ",e.indent)+Yn((t.line+1).toString(),c)+" | "+l.str+"\n",u+=Ao.repeat("-",e.indent+c+3+l.pos)+"^\n",a=1;a<=e.linesAfter&&!(s+a>=o.length);a++)l=Vn(t.buffer,i[s+a],o[s+a],t.position-(i[s]-i[s+a]),h),u+=Ao.repeat(" ",e.indent)+Yn((t.line+a+1).toString(),c)+" | "+l.str+"\n";return u.replace(/\n$/,"")}function Xn(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===Co.indexOf(e))throw new wo('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))})),e}(e.styleAliases||null),-1===Lo.indexOf(this.kind))throw new wo('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function Qn(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)})),r[e]=t})),r}function Jn(t){return this.extend(t)}function Zn(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function ti(){return null}function ei(t){return null===t}function ri(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function ni(t){return"true"===t||"True"===t||"TRUE"===t}function ii(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function oi(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function si(t){return 48<=t&&t<=55}function ai(t){return 48<=t&&t<=57}function li(t){if(null===t)return!1;var e,r=t.length,n=0,i=!1;if(!r)return!1;if(("-"===(e=t[n])||"+"===e)&&(e=t[++n]),"0"===e){if(n+1===r)return!0;if("b"===(e=t[++n])){for(n++;n=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}function pi(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ao.isNegativeZero(t))return"-0.0";return r=t.toString(10),Ho.test(r)?r.replace("e",".e"):r}function fi(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||Ao.isNegativeZero(t))}function gi(t){return null!==t&&(null!==zo.exec(t)||null!==Vo.exec(t))}function mi(t){var e,r,n,i,o,s,a,l,u=0,c=null;if(null===(e=zo.exec(t))&&(e=Vo.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,n,i,o,s,a,u)),c&&l.setTime(l.getTime()-c),l}function yi(t){return t.toISOString()}function _i(t){return"<<"===t||null===t}function vi(t){if(null===t)return!1;var e,r,n=0,i=t.length,o=Xo;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8==0}function xi(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=Xo,s=0,a=[];for(e=0;e>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(n.charAt(e));return 0==(r=i%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===r?(a.push(s>>10&255),a.push(s>>2&255)):12===r&&a.push(s>>4&255),new Uint8Array(a)}function bi(t){var e,r,n="",i=0,o=t.length,s=Xo;for(e=0;e>18&63],n+=s[i>>12&63],n+=s[i>>6&63],n+=s[63&i]),i=(i<<8)+t[e];return 0==(r=o%3)?(n+=s[i>>18&63],n+=s[i>>12&63],n+=s[i>>6&63],n+=s[63&i]):2===r?(n+=s[i>>10&63],n+=s[i>>4&63],n+=s[i<<2&63],n+=s[64]):1===r&&(n+=s[i>>2&63],n+=s[i<<4&63],n+=s[64],n+=s[64]),n}function Ti(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function Ei(t){if(null===t)return!0;var e,r,n,i,o,s=[],a=t;for(e=0,r=a.length;e>10),56320+(t-65536&1023))}function Ui(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}function Fi(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||os,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $i(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Ro(r),new wo(e,r)}function Hi(t,e){throw $i(t,e)}function Bi(t,e){t.onWarning&&t.onWarning.call(null,$i(t,e))}function qi(t,e,r,n){var i,o,s,a;if(e1&&(t.result+=Ao.repeat("\n",e-1))}function Qi(t,e){var r,n,i=t.tag,o=t.anchor,s=[],a=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Hi(t,"tab characters must not be used in indentation")),45===n&&Ii(t.input.charCodeAt(t.position+1)));)if(a=!0,t.position++,Yi(t,!0,-1)&&t.lineIndent<=e)s.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,to(t,e,us,!1,!0),s.push(t.result),Yi(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)Hi(t,"bad indentation of a sequence entry");else if(t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente)&&(y&&(s=t.line,a=t.lineStart,l=t.position),to(t,e,cs,!0,i)&&(y?g=t.result:m=t.result),y||(zi(t,d,p,f,g,m,s,a,l),f=g=m=null),Yi(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==u)Hi(t,"bad indentation of a mapping entry");else if(t.lineIndent=0))break;0===i?Hi(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Hi(t,"repeat of an indentation width identifier"):(u=e+i-1,l=!0)}if(Li(o)){do{o=t.input.charCodeAt(++t.position)}while(Li(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!Ci(o)&&0!==o)}for(;0!==o;){for(Vi(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!l||t.lineIndentu&&(u=t.lineIndent),Ci(o))c++;else{if(t.lineIndent0){for(i=s,o=0;i>0;i--)(s=Di(a=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+s:Hi(t,"expected hexadecimal character");t.result+=Ki(o),t.position++}else Hi(t,"unknown escape sequence");r=n=t.position}else Ci(a)?(qi(t,r,n,!0),Xi(t,Yi(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Wi(t)?Hi(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Hi(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?m=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Ii(n)&&!ki(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Hi(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ss.call(t.anchorMap,r)||Hi(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Yi(t,!0,-1),!0}(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&Hi(t,"alias node should not have any properties")):function(t,e,r){var n,i,o,s,a,l,u,c,h=t.kind,d=t.result;if(Ii(c=t.input.charCodeAt(t.position))||ki(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(Ii(n=t.input.charCodeAt(t.position+1))||r&&ki(n)))return!1;for(t.kind="scalar",t.result="",i=o=t.position,s=!1;0!==c;){if(58===c){if(Ii(n=t.input.charCodeAt(t.position+1))||r&&ki(n))break}else if(35===c){if(Ii(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Wi(t)||r&&ki(c))break;if(Ci(c)){if(a=t.line,l=t.lineStart,u=t.lineIndent,Yi(t,!1,-1),t.lineIndent>=e){s=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=a,t.lineStart=l,t.lineIndent=u;break}}s&&(qi(t,i,o,!1),Xi(t,t.line-a),i=o=t.position,s=!1),Li(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return qi(t,i,o,!1),!!t.result||(t.kind=h,t.result=d,!1)}(t,d,as===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=a&&Qi(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Hi(t,'unacceptable node kind for ! tag; it should be "scalar", not "'+t.kind+'"'),l=0,u=t.implicitTypes.length;l"),null!==t.result&&h.kind!==t.kind&&Hi(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Hi(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function eo(t){var e,r,n,i,o=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(Yi(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(s=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Ii(i);)i=t.input.charCodeAt(++t.position);for(n=[],(r=t.input.slice(e,t.position)).length<1&&Hi(t,"directive name must not be less than one character in length");0!==i;){for(;Li(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!Ci(i));break}if(Ci(i))break;for(e=t.position;0!==i&&!Ii(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&Vi(t),ss.call(Ts,r)?Ts[r](t,r,n):Bi(t,'unknown document directive "'+r+'"')}Yi(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Yi(t,!0,-1)):s&&Hi(t,"directives end mark is expected"),to(t,t.lineIndent-1,cs,!1,!0),Yi(t,!0,-1),t.checkLineBreaks&&gs.test(t.input.slice(o,t.position))&&Bi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Wi(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Yi(t,!0,-1)):t.position"u"&&(r=e,e=null);var n=ro(t,r);if("function"!=typeof e)return n;for(var i=0,o=n.length;i=55296&&n<=56319&&e+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function go(t){return/^\n* /.test(t)}function mo(t,e,r,n,i){t.dump=function(){if(0===e.length)return t.quotingType===ea?'""':"''";if(!t.noCompatMode&&(-1!==Js.indexOf(e)||Zs.test(e)))return t.quotingType===ea?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,r,n,i,o,s,a){var l,u=0,c=null,h=!1,d=!1,p=-1!==n,f=-1,g=function(t){return co(t)&&t!==Ns&&!uo(t)&&t!==Us&&t!==Bs&&t!==Fs&&t!==Ks&&t!==Gs&&t!==zs&&t!==Ys&&t!==Xs&&t!==ks&&t!==Ps&&t!==js&&t!==Ls&&t!==Ws&&t!==$s&&t!==Hs&&t!==Ms&&t!==Is&&t!==Ds&&t!==qs&&t!==Vs}(fo(t,0))&&function(t){return!uo(t)&&t!==Fs}(fo(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(!co(u=fo(t,l)))return sa;g=g&&po(u,c,a),c=u}else{for(l=0;l=65536?l+=2:l++){if((u=fo(t,l))===ws)h=!0,p&&(d=d||l-f-1>n&&" "!==t[f+1],f=l);else if(!co(u))return sa;g=g&&po(u,c,a),c=u}d=d||p&&l-f-1>n&&" "!==t[f+1]}return h||d?r>9&&go(t)?sa:s?o===ea?sa:na:d?oa:ia:!g||s||i(t)?o===ea?sa:na:ra}(e,a,t.indent,s,(function(e){return function(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r"+yo(e,t.indent)+_o(ao(function(t,e){for(var r,n,i=/(\n+)([^\n]*)/g,o=(u=void 0,u=-1!==(u=t.indexOf("\n"))?u:t.length,i.lastIndex=u,vo(t.slice(0,u),e)),s="\n"===t[0]||" "===t[0];n=i.exec(t);){var a=n[1],l=n[2];r=" "===l[0],o+=a+(s||r||""===l?"":"\n")+vo(l,e),s=r}var u;return o}(e,s),o));case sa:return'"'+function(t){for(var e,r="",n=0,i=0;i=65536?i+=2:i++)n=fo(t,i),!(e=Qs[n])&&co(n)?(r+=t[i],n>=65536&&(r+=t[i+1])):r+=e||oo(n);return r}(e)+'"';default:throw new wo("impossible error: invalid scalar style")}}()}function yo(t,e){var r=go(t)?String(e):"",n="\n"===t[t.length-1];return r+(!n||"\n"!==t[t.length-2]&&"\n"!==t?n?"":"-":"+")+"\n"}function _o(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function vo(t,e){if(""===t||" "===t[0])return t;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,l="";r=i.exec(t);)(a=r.index)-o>e&&(n=s>o?s:a,l+="\n"+t.slice(o,n),o=n+1),s=a;return l+="\n",t.length-o>e&&s>o?l+=t.slice(o,s)+"\n"+t.slice(s+1):l+=t.slice(o),l.slice(1)}function xo(t,e,r,n){var i,o,s,a="",l=t.tag;for(i=0,o=r.length;i"u"&&To(t,e+1,null,!0,!0,!1,!0))&&((!n||""!==a)&&(a+=lo(t,e)),t.dump&&ws===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=l,t.dump=a||"[]"}function bo(t,e,r){var n,i,o,s,a,l;for(o=0,s=(i=r?t.explicitTypes:t.implicitTypes).length;o tag resolver accepts not "'+l+'" style');n=a.represent[l](e,l)}t.dump=n}return!0}return!1}function To(t,e,r,n,i,o,s){t.tag=null,t.dump=r,bo(t,r,!1)||bo(t,r,!0);var a,l=Os.call(t.dump),u=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var c,h,d="[object Object]"===l||"[object Array]"===l;if(d&&(h=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(i=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===l)n&&0!==Object.keys(t.dump).length?(function(t,e,r,n){var i,o,s,a,l,u,c="",h=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new wo("sortKeys must be a boolean or a function");for(i=0,o=d.length;i1024)&&(t.dump&&ws===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,l&&(u+=lo(t,e)),To(t,e+1,a,!0,l)&&(t.dump&&ws===t.dump.charCodeAt(0)?u+=":":u+=": ",c+=u+=t.dump));t.tag=h,t.dump=c||"{}"}(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(function(t,e,r){var n,i,o,s,a,l="",u=t.tag,c=Object.keys(r);for(n=0,i=c.length;n1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),To(t,e,s,!1,!1)&&(l+=a+=t.dump));t.tag=u,t.dump="{"+l+"}"}(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===l)n&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?xo(t,e-1,t.dump,i):xo(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(function(t,e,r){var n,i,o,s="",a=t.tag;for(n=0,i=r.length;n"u"&&To(t,e,null,!1,!1))&&(""!==s&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=a,t.dump="["+s+"]"}(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new wo("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&mo(t,t.dump,e,o,u)}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump)}return!0}function Eo(t,e){var r,n,i=[],o=[];for(Oo(t,i,o),r=0,n=o.length;r{for(Ao={isNothing:Un,isObject:Fn,toArray:$n,repeat:Bn,isNegativeZero:qn,extend:Hn},zn.prototype=Object.create(Error.prototype),zn.prototype.constructor=zn,zn.prototype.toString=function(t){return this.name+": "+Gn(this,t)},wo=zn,Ro=Wn,Co=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Lo=["scalar","sequence","mapping"],Io=Xn,Jn.prototype.extend=function(t){var e=[],r=[];if(t instanceof Io)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new wo("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof Io))throw new wo("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new wo("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new wo("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof Io))throw new wo("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(Jn.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Qn(n,"implicit"),n.compiledExplicit=Qn(n,"explicit"),n.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),$o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ho=/^[-+]?[0-9]+e/,Bo=new Io("tag:yaml.org,2002:float",{kind:"scalar",resolve:hi,construct:di,predicate:fi,represent:pi,defaultStyle:"lowercase"}),qo=jo.extend({implicit:[Ko,Uo,Fo,Bo]}),Go=qo,zo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),Yo=new Io("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:gi,construct:mi,instanceOf:Date,represent:yi}),Wo=new Io("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_i}),Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Qo=new Io("tag:yaml.org,2002:binary",{kind:"scalar",resolve:vi,construct:xi,predicate:Ti,represent:bi}),Jo=Object.prototype.hasOwnProperty,Zo=Object.prototype.toString,ts=new Io("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ei,construct:Oi}),es=Object.prototype.toString,rs=new Io("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Si,construct:Ni}),ns=Object.prototype.hasOwnProperty,is=new Io("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ai,construct:wi}),os=Go.extend({implicit:[Yo,Wo],explicit:[Qo,ts,rs,is]}),ss=Object.prototype.hasOwnProperty,as=1,ls=2,us=3,cs=4,hs=1,ds=2,ps=3,fs=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gs=/[\x85\u2028\u2029]/,ms=/[,\[\]\{\}]/,ys=/^(?:!|!!|![a-z\-]+!)$/i,_s=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,vs=new Array(256),xs=new Array(256),bs=0;bs<256;bs++)vs[bs]=ji(bs)?1:0,xs[bs]=ji(bs);Ts={YAML:function(t,e,r){var n,i,o;null!==t.version&&Hi(t,"duplication of %YAML directive"),1!==r.length&&Hi(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Hi(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&Hi(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&Bi(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;2!==r.length&&Hi(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],ys.test(n)||Hi(t,"ill-formed tag handle (first argument) of the TAG directive"),ss.call(t.tagMap,n)&&Hi(t,'there is a previously declared suffix for "'+n+'" tag handle'),_s.test(i)||Hi(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Hi(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}},Es={loadAll:no,load:io},Os=Object.prototype.toString,Ss=Object.prototype.hasOwnProperty,Ns=65279,As=9,ws=10,Rs=13,Cs=32,Ls=33,Is=34,ks=35,Ds=37,Ps=38,Ms=39,js=42,Ks=44,Us=45,Fs=58,$s=61,Hs=62,Bs=63,qs=64,Gs=91,zs=93,Vs=96,Ys=123,Ws=124,Xs=125,(Qs={})[0]="\\0",Qs[7]="\\a",Qs[8]="\\b",Qs[9]="\\t",Qs[10]="\\n",Qs[11]="\\v",Qs[12]="\\f",Qs[13]="\\r",Qs[27]="\\e",Qs[34]='\\"',Qs[92]="\\\\",Qs[133]="\\N",Qs[160]="\\_",Qs[8232]="\\L",Qs[8233]="\\P",Js=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,ta=1,ea=2,ra=1,na=2,ia=3,oa=4,sa=5,aa=Io,la=ko,ua=jo,ca=qo,ha=Go,da=os,pa=Es.load,fa=Es.loadAll,ga=So,ma=wo,ya={binary:Qo,float:Bo,map:Mo,null:Ko,pairs:rs,set:is,timestamp:Yo,bool:Uo,int:Fo,merge:Wo,omap:ts,seq:Po,str:Do},_a=No("safeLoad","load"),va=No("safeLoadAll","loadAll"),xa=No("safeDump","dump"),ba={Type:aa,Schema:la,FAILSAFE_SCHEMA:ua,JSON_SCHEMA:ca,CORE_SCHEMA:ha,DEFAULT_SCHEMA:da,load:pa,loadAll:fa,dump:ga,YAMLException:ma,types:ya,safeLoad:_a,safeLoadAll:va,safeDump:xa}}));function Ea(t,e){if(null!=t&&("number"!=typeof t||Number.isNaN(t)||t<=0))throw new Error(`Size ${e} must be greater than 0`)}function Oa(t,e){Ea(t.width,`${e} width`),Ea(t.height,`${e} height`)}function Sa(t){if(!t)return{constraints:{orientation:{relative:[],cyclic:[]},alignment:[],grouping:{byfield:[],byselector:[]}},directives:{atomColors:[],sizes:[],icons:[],edgeColors:[],projections:[],attributes:[],tags:[],hiddenFields:[],inferredEdges:[],hiddenAtoms:[],hideDisconnected:!1,hideDisconnectedBuiltIns:!1}};let e=pa(t),r=e?.constraints,n=e?.directives,i={constraints:{orientation:{relative:[],cyclic:[]},alignment:[],grouping:{byfield:[],byselector:[]}},directives:{atomColors:[],sizes:[],icons:[],edgeColors:[],projections:[],attributes:[],tags:[],hiddenFields:[],inferredEdges:[],hiddenAtoms:[],hideDisconnected:!1,hideDisconnectedBuiltIns:!1}},o=[],s=[];if(r&&Array.isArray(r))try{let t=function(t){let e=t,r=e.filter((t=>t.cyclic)).map((t=>{if(!t.cyclic.selector)throw new Error("Cyclic constraint must have a selector");return new La(t.cyclic.direction||"clockwise",t.cyclic.selector)}));r=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.direction}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(r);let n={};r.forEach((t=>{let e=t.selector.trim();if(n[e]){if(n[e]!==t.direction)throw new Error(`Inconsistent cyclic constraint for selector ${e}: ${n[e]}, ${t.direction}`)}else n[e]=t.direction}));let i=e.filter((t=>t.orientation)).map((t=>{let e=t.orientation;if(!e.selector)throw new Error("Orientation constraint must have selector field");if(!e.directions)throw new Error("Orientation constraint must have directions field");let r=new Aa(e.directions,e.selector);if(!r.isInternallyConsistent())throw new Error(r.inconsistencyMessage());return r}));i=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.directions.sort().join(",")}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(i);let o=e.filter((t=>t.group)).filter((t=>t.group.field)).map((t=>{if(null==t.group.groupOn)throw new Error("Grouping constraint must have groupOn field");if(null==t.group.field)throw new Error("Grouping constraint must specify a field");if(null==t.group.addToGroup)throw new Error("Grouping constraint must specify addToGroup");return new Ca(t.group.field,t.group.groupOn,t.group.addToGroup,t.group.selector)}));o=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.field}|${n.groupOn}|${n.addToGroup}|${n.selector||""}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(o);let s=e.filter((t=>t.group)).filter((t=>t.group.selector&&t.group.name&&!t.group.field)).map((t=>{if(!t.group.selector)throw new Error("Grouping constraint must have a selector.");if(!t.group.name)throw new Error("Grouping constraint must have a name.");return new Ra(t.group.selector,t.group.name,t.group.addEdge)}));s=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.name}|${n.addEdge}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(s);let a=e.filter((t=>t.align)).map((t=>{if(!t.align.selector)throw new Error("Align constraint must have a selector");if(!t.align.direction)throw new Error("Align constraint must have a direction");let e=new wa(t.align.direction,t.align.selector);if(!e.isInternallyConsistent())throw new Error(e.inconsistencyMessage());return e}));return a=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.direction}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(a),{orientation:{relative:i,cyclic:r},alignment:a,grouping:{byfield:o,byselector:s}}}(r);i.constraints=t;let e=r;o=e.filter((t=>t.size)).map((t=>(Oa(t.size,"constraint"),{height:t.size.height,width:t.size.width,selector:t.size.selector}))),s=e.filter((t=>t.hideAtom)).map((t=>({selector:t.hideAtom.selector})))}catch(t){let e=t instanceof Error?t.message:String(t);throw new Error(`${e}`)}if(n&&Array.isArray(n))try{let t=function(t){let e=t,r=e.filter((t=>t.icon)).map((t=>({path:t.icon.path,selector:t.icon.selector,showLabels:t.icon.showLabels||!1}))),n=e.filter((t=>t.atomColor)).map((t=>({color:t.atomColor.value,selector:t.atomColor.selector}))),i=e.filter((t=>t.size)).map((t=>(Oa(t.size,"directive"),{height:t.size.height,width:t.size.width,selector:t.size.selector}))),o=e.filter((t=>t.edgeColor)).map((t=>({color:t.edgeColor.value,field:t.edgeColor.field,selector:t.edgeColor.selector,filter:t.edgeColor.filter,style:t.edgeColor.style,weight:t.edgeColor.weight,showLabel:t.edgeColor.showLabel,hidden:t.edgeColor.hidden}))),s=e.filter((t=>t.attribute)).map((t=>({field:t.attribute.field,selector:t.attribute.selector,filter:t.attribute.filter}))),a=e.filter((t=>t.hideField)).map((t=>({field:t.hideField.field,selector:t.hideField.selector,filter:t.hideField.filter}))),l=e.filter((t=>t.projection)).map((t=>({sig:t.projection.sig}))),u=e.filter((t=>t.flag)).map((t=>t.flag)),c=u.includes("hideDisconnected"),h=u.includes("hideDisconnectedBuiltIns"),d=e.filter((t=>t.inferredEdge)).map((t=>({name:t.inferredEdge.name,selector:t.inferredEdge.selector,color:t.inferredEdge.color,style:t.inferredEdge.style,weight:t.inferredEdge.weight}))),p=e.filter((t=>t.hideAtom)).map((t=>({selector:t.hideAtom.selector})));return{atomColors:n,sizes:i,icons:r,edgeColors:o,projections:l,attributes:s,tags:e.filter((t=>t.tag)).map((t=>({toTag:t.tag.toTag,name:t.tag.name,value:t.tag.value}))),hiddenFields:a,inferredEdges:d,hiddenAtoms:p,hideDisconnected:c,hideDisconnectedBuiltIns:h}}(n);i.directives=t,i.directives.sizes=[...o,...t.sizes],i.directives.hiddenAtoms=[...s,...t.hiddenAtoms]}catch(t){let e=t instanceof Error?t.message:String(t);throw new Error(`${e}`)}else i.directives.sizes=o,i.directives.hiddenAtoms=s;return i}var Na,Aa,wa,Ra,Ca,La,Ia=d((()=>{Ta(),Na=class{constructor(t){this.selector=t}isInternallyConsistent(){return!0}inconsistencyMessage(){return`Inconsistent Constraint Operation: ${this.selector}`}toHTML(){return`ConstraintOperation with selector ${this.selector} .`}},Aa=class extends Na{constructor(t,e){super(e),this.directions=t}isInternallyConsistent(){return!(this.directions.includes("above")&&this.directions.includes("below")||this.directions.includes("left")&&this.directions.includes("right")||this.directions.includes("directlyLeft")&&!this.directions.every((t=>"left"===t||"directlyLeft"===t))||this.directions.includes("directlyRight")&&!this.directions.every((t=>"right"===t||"directlyRight"===t))||this.directions.includes("directlyAbove")&&!this.directions.every((t=>"above"===t||"directlyAbove"===t))||this.directions.includes("directlyBelow")&&!this.directions.every((t=>"below"===t||"directlyBelow"===t)))}inconsistencyMessage(){return`Orientation Constraint with directions [${this.directions.join(", ")}] and selector ${this.selector} is internally inconsistent.`}toHTML(){return`OrientationConstraint with directions [${this.directions.join(", ")}] and selector ${this.selector}`}},wa=class extends Na{constructor(t,e){super(e),this.direction=t}isInternallyConsistent(){return"horizontal"===this.direction||"vertical"===this.direction}inconsistencyMessage(){return`Align Constraint with direction [${this.direction}] and selector ${this.selector} is internally inconsistent.`}toHTML(){return`AlignConstraint with direction [${this.direction}] and selector ${this.selector}`}},Ra=class extends Na{constructor(t,e,r=!1){super(t),this.name=e,this.addEdge=r}toHTML(){return`GroupBySelector with selector ${this.selector} \n and name ${this.name}.`}},Ca=class{constructor(t,e,r,n){this.field=t,this.groupOn=e,this.addToGroup=r,this.selector=n}toHTML(){let t=this.selector?` with selector

${this.selector}
`:"";return`GroupByField on field
${this.field}
grouping field index
${this.groupOn}
\n adding to group index
${this.addToGroup}
${t}.`}},La=class extends Na{constructor(t,e){super(e),this.direction=t}inconsistencyMessage(){return`Cyclic constraint with direction [${this.direction}] with selector ${this.selector} is inconsistent.`}toHTML(){return`Cyclic constraint with direction [${this.direction}] and selector ${this.selector}`}}}));function ka(t){if("string"!=typeof t)return;let e=t.trim().toLowerCase();return"solid"===e||"dashed"===e||"dotted"===e?e:void 0}var Da=d((()=>{}));function Pa(t){if(!t)return"";if(t.startsWith("http")||t.startsWith("data:")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))return t;let e=t.indexOf(":");if(e>0){let r=t.substring(0,e),n=t.substring(e+1),i=$a[r];if(i)return i(n)}return Fa[t]||t}function Ma(){return Object.keys(Fa)}function ja(){return Object.keys($a)}function Ka(t){return t in Fa}function Ua(t){let e=t.indexOf(":");return!(e<=0)&&t.substring(0,e)in $a}var Fa,$a,Ha,Ba,qa,Ga,za=d((()=>{Fa={person:`data:image/svg+xml,${encodeURIComponent('')}`,"person-fill":`data:image/svg+xml,${encodeURIComponent('')}`,people:`data:image/svg+xml,${encodeURIComponent('')}`,home:`data:image/svg+xml,${encodeURIComponent('')}`,house:`data:image/svg+xml,${encodeURIComponent('')}`,building:`data:image/svg+xml,${encodeURIComponent('')}`,star:`data:image/svg+xml,${encodeURIComponent('')}`,"star-fill":`data:image/svg+xml,${encodeURIComponent('')}`,heart:`data:image/svg+xml,${encodeURIComponent('')}`,"heart-fill":`data:image/svg+xml,${encodeURIComponent('')}`,circle:`data:image/svg+xml,${encodeURIComponent('')}`,square:`data:image/svg+xml,${encodeURIComponent('')}`,triangle:`data:image/svg+xml,${encodeURIComponent('')}`,"tic-x":`data:image/svg+xml,${encodeURIComponent('')}`,"tic-o":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-right":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-left":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-up":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-down":`data:image/svg+xml,${encodeURIComponent('')}`,check:`data:image/svg+xml,${encodeURIComponent('')}`,x:`data:image/svg+xml,${encodeURIComponent('')}`,plus:`data:image/svg+xml,${encodeURIComponent('')}`,minus:`data:image/svg+xml,${encodeURIComponent('')}`,warning:`data:image/svg+xml,${encodeURIComponent('')}`,info:`data:image/svg+xml,${encodeURIComponent('')}`,gear:`data:image/svg+xml,${encodeURIComponent('')}`,database:`data:image/svg+xml,${encodeURIComponent('')}`,folder:`data:image/svg+xml,${encodeURIComponent('')}`,file:`data:image/svg+xml,${encodeURIComponent('')}`,tree:`data:image/svg+xml,${encodeURIComponent('')}`,flower:`data:image/svg+xml,${encodeURIComponent('')}`,car:`data:image/svg+xml,${encodeURIComponent('')}`,envelope:`data:image/svg+xml,${encodeURIComponent('')}`,phone:`data:image/svg+xml,${encodeURIComponent('')}`,flag:`data:image/svg+xml,${encodeURIComponent('')}`,lock:`data:image/svg+xml,${encodeURIComponent('')}`,key:`data:image/svg+xml,${encodeURIComponent('')}`},$a={bi:t=>`https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/${t}.svg`,fa:t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/solid/${t}.svg`,"fa-solid":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/solid/${t}.svg`,"fa-regular":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/regular/${t}.svg`,"fa-brands":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/brands/${t}.svg`,lucide:t=>`https://cdn.jsdelivr.net/npm/lucide-static@0.300.0/icons/${t}.svg`,heroicons:t=>`https://cdn.jsdelivr.net/npm/heroicons@2.1.1/24/outline/${t}.svg`,"heroicons-solid":t=>`https://cdn.jsdelivr.net/npm/heroicons@2.1.1/24/solid/${t}.svg`,tabler:t=>`https://cdn.jsdelivr.net/npm/@tabler/icons@2.44.0/icons/${t}.svg`,simple:t=>`https://cdn.jsdelivr.net/npm/simple-icons@10.4.0/icons/${t}.svg`}})),Va=d((()=>{({min:Ha,max:Ba}=Math),qa=(t,e=0,r=1)=>Ha(Ba(e,t),r)})),Ya=d((()=>{Va(),Ga=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=qa(t[e],0,255)):3===e&&(t[e]=qa(t[e],0,1));return t}}));function Wa(t){return Xa[Object.prototype.toString.call(t)]||"object"}var Xa,Qa,Ja,Za=d((()=>{Xa={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Xa[`[object ${t}]`]=t.toLowerCase()})),tl=d((()=>{Za(),Qa=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==Wa(t[0])&&e?e.split("").filter((e=>void 0!==t[0][e])).map((e=>t[0][e])):t[0].slice(0)})),el=d((()=>{Za(),Ja=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==Wa(t[e])?t[e].toLowerCase():null}}));function rl(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}var nl,il,ol,sl,al,ll,ul,cl,hl,dl,pl,fl,gl,ml,yl,_l,vl,xl,bl,Tl,El,Ol,Sl=d((()=>{Ya(),Va(),Za(),tl(),el(),({PI:nl,min:il,max:ol}=Math),sl=t=>Math.round(100*t)/100,al=t=>Math.round(100*t)/100,ll=2*nl,ul=nl/3,cl=nl/180,hl=180/nl})),Nl=d((()=>{dl={format:{},autodetect:[]}})),Al=d((()=>{Sl(),Nl(),pl=class{constructor(...t){let e=this;if("object"===Wa(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let r=Ja(t),n=!1;if(!r){n=!0,dl.sorted||(dl.autodetect=dl.autodetect.sort(((t,e)=>e.p-t.p)),dl.sorted=!0);for(let e of dl.autodetect)if(r=e.test(...t),r)break}if(!dl.format[r])throw new Error("unknown format: "+t);{let i=dl.format[r].apply(null,n?t:t.slice(0,-1));e._rgb=Ga(i)}3===e._rgb.length&&e._rgb.push(1)}toString(){return"function"==Wa(this.hex)?this.hex():`[${this._rgb.join(",")}]`}}})),wl=d((()=>{fl="3.2.0"})),Rl=d((()=>{Al(),wl(),gl=(...t)=>new pl(...t),gl.version=fl,ml=gl})),Cl=d((()=>{yl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}})),Ll=d((()=>{_l=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,vl=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,xl=t=>{if(t.match(_l)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(vl)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16);return[e>>24&255,e>>16&255,e>>8&255,Math.round((255&e)/255*100)/100]}throw new Error(`unknown hex color: ${t}`)},bl=xl})),Il=d((()=>{Sl(),({round:Tl}=Math),El=(...t)=>{let[e,r,n,i]=Qa(t,"rgba"),o=Ja(t)||"auto";void 0===i&&(i=1),"auto"===o&&(o=i<1?"rgba":"rgb"),e=Tl(e),r=Tl(r),n=Tl(n);let s="000000"+(e<<16|r<<8|n).toString(16);s=s.substr(s.length-6);let a="0"+Tl(255*i).toString(16);switch(a=a.substr(a.length-2),o.toLowerCase()){case"rgba":return`#${s}${a}`;case"argb":return`#${a}${s}`;default:return`#${s}`}},Ol=El})),kl=d((()=>{Al(),Nl(),Sl(),Cl(),Ll(),Il(),pl.prototype.name=function(){let t=Ol(this._rgb,"rgb");for(let e of Object.keys(yl))if(yl[e]===t)return e.toLowerCase();return t},dl.format.named=t=>{if(t=t.toLowerCase(),yl[t])return bl(yl[t]);throw new Error("unknown color name: "+t)},dl.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&yl[t.toLowerCase()])return"named"}})})),Dl=d((()=>{Al(),Sl(),pl.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===Wa(t)?e?(this._rgb[3]=t,this):new pl([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]}})),Pl=d((()=>{Al(),pl.prototype.clipped=function(){return this._rgb._clipped||!1}}));function Ml(t){let e=Fl.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Kl.labWhitePoint=t,Kl.Xn=e[0],Kl.Zn=e[1]}function jl(){return Kl.labWhitePoint}var Kl,Ul,Fl,$l,Hl,Bl,ql,Gl,zl=d((()=>{Ul=Kl={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:.008856451679035631,kKE:8,kK:903.2962962962963,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Fl=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]])})),Vl=d((()=>{zl(),Sl(),$l=(...t)=>{t=Qa(t,"lab");let[e,r,n]=t,[i,o,s]=Hl(e,r,n),[a,l,u]=ql(i,o,s);return[a,l,u,t.length>3?t[3]:1]},Hl=(t,e,r)=>{let{kE:n,kK:i,kKE:o,Xn:s,Yn:a,Zn:l}=Ul,u=(t+16)/116,c=.002*e+u,h=u-.005*r,d=c*c*c,p=h*h*h;return[(d>n?d:(116*c-16)/i)*s,(t>o?Math.pow((t+16)/116,3):t/i)*a,(p>n?p:(116*h-16)/i)*l]},Bl=t=>{let e=Math.sign(t);return((t=Math.abs(t))<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)*e},ql=(t,e,r)=>{let{MtxAdaptMa:n,MtxAdaptMaI:i,MtxXYZ2RGB:o,RefWhiteRGB:s,Xn:a,Yn:l,Zn:u}=Ul,c=a*n.m00+l*n.m10+u*n.m20,h=a*n.m01+l*n.m11+u*n.m21,d=a*n.m02+l*n.m12+u*n.m22,p=s.X*n.m00+s.Y*n.m10+s.Z*n.m20,f=s.X*n.m01+s.Y*n.m11+s.Z*n.m21,g=s.X*n.m02+s.Y*n.m12+s.Z*n.m22,m=(t*n.m00+e*n.m10+r*n.m20)*(p/c),y=(t*n.m01+e*n.m11+r*n.m21)*(f/h),_=(t*n.m02+e*n.m12+r*n.m22)*(g/d),v=m*i.m00+y*i.m10+_*i.m20,x=m*i.m01+y*i.m11+_*i.m21,b=m*i.m02+y*i.m12+_*i.m22;return[255*Bl(v*o.m00+x*o.m10+b*o.m20),255*Bl(v*o.m01+x*o.m11+b*o.m21),255*Bl(v*o.m02+x*o.m12+b*o.m22)]},Gl=$l}));function Yl(t){let e=Math.sign(t);return((t=Math.abs(t))<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}var Wl,Xl,Ql,Jl,Zl,tu,eu,ru,nu,iu,ou,su,au,lu,uu,cu,hu,du,pu,fu,gu,mu,yu,_u,vu,xu,bu,Tu,Eu,Ou,Su,Nu,Au,wu,Ru,Cu,Lu,Iu,ku,Du,Pu,Mu,ju,Ku,Uu,Fu,$u,Hu,Bu,qu,Gu,zu,Vu,Yu,Wu,Xu,Qu,Ju,Zu,tc,ec,rc,nc,ic,oc,sc,ac,lc,uc,cc,hc,dc=d((()=>{zl(),Sl(),Wl=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=Xl(e,r,n),[l,u,c]=function(t,e,r){let{Xn:n,Yn:i,Zn:o,kE:s,kK:a}=Ul,l=t/n,u=e/i,c=r/o,h=l>s?Math.pow(l,1/3):(a*l+16)/116,d=u>s?Math.pow(u,1/3):(a*u+16)/116;return[116*d-16,500*(h-d),200*(d-(c>s?Math.pow(c,1/3):(a*c+16)/116))]}(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},Xl=(t,e,r)=>{t=Yl(t/255),e=Yl(e/255),r=Yl(r/255);let{MtxRGB2XYZ:n,MtxAdaptMa:i,MtxAdaptMaI:o,Xn:s,Yn:a,Zn:l,As:u,Bs:c,Cs:h}=Ul,d=t*n.m00+e*n.m10+r*n.m20,p=t*n.m01+e*n.m11+r*n.m21,f=t*n.m02+e*n.m12+r*n.m22,g=s*i.m00+a*i.m10+l*i.m20,m=s*i.m01+a*i.m11+l*i.m21,y=s*i.m02+a*i.m12+l*i.m22,_=d*i.m00+p*i.m10+f*i.m20,v=d*i.m01+p*i.m11+f*i.m21,x=d*i.m02+p*i.m12+f*i.m22;return _*=g/u,v*=m/c,x*=y/h,d=_*o.m00+v*o.m10+x*o.m20,p=_*o.m01+v*o.m11+x*o.m21,f=_*o.m02+v*o.m12+x*o.m22,[d,p,f]},Ql=Wl})),pc=d((()=>{Sl(),Rl(),Al(),Nl(),Vl(),dc(),zl(),pl.prototype.lab=function(){return Ql(this._rgb)},Jl=(...t)=>new pl(...t,"lab"),Object.assign(ml,{lab:Jl,getLabWhitePoint:jl,setLabWhitePoint:Ml}),dl.format.lab=Gl,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"lab"))&&3===t.length)return"lab"}})})),fc=d((()=>{pc(),Al(),zl(),pl.prototype.darken=function(t=1){let e=this.lab();return e[0]-=Ul.Kn*t,new pl(e,"lab").alpha(this.alpha(),!0)},pl.prototype.brighten=function(t=1){return this.darken(-t)},pl.prototype.darker=pl.prototype.darken,pl.prototype.brighter=pl.prototype.brighten})),gc=d((()=>{Al(),pl.prototype.get=function(t){let[e,r]=t.split("."),n=this[e]();if(r){let t=e.indexOf(r)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw new Error(`unknown channel ${r} in mode ${e}`)}return n}})),mc=d((()=>{Al(),Sl(),({pow:Zl}=Math),pl.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===Wa(t)){if(0===t)return new pl([0,0,0,this._rgb[3]],"rgb");if(1===t)return new pl([255,255,255,this._rgb[3]],"rgb");let r=this.luminance(),n=20,i=(r,o)=>{let s=r.interpolate(o,.5,e),a=s.luminance();return Math.abs(t-a)<1e-7||!n--?s:a>t?i(r,s):i(s,o)},o=(r>t?i(new pl([0,0,0]),this):i(this,new pl([255,255,255]))).rgb();return new pl([...o,this._rgb[3]])}return tu(...this._rgb.slice(0,3))},tu=(t,e,r)=>.2126*(t=eu(t))+.7152*(e=eu(e))+.0722*eu(r),eu=t=>(t/=255)<=.03928?t/12.92:Zl((t+.055)/1.055,2.4)})),yc=d((()=>{ru={}})),_c=d((()=>{Al(),Sl(),yc(),nu=(t,e,r=.5,...n)=>{let i=n[0]||"lrgb";if(!ru[i]&&!n.length&&(i=Object.keys(ru)[0]),!ru[i])throw new Error(`interpolation mode ${i} is not defined`);return"object"!==Wa(t)&&(t=new pl(t)),"object"!==Wa(e)&&(e=new pl(e)),ru[i](t,e,r).alpha(t.alpha()+r*(e.alpha()-t.alpha()))}})),vc=d((()=>{Al(),_c(),pl.prototype.mix=pl.prototype.interpolate=function(t,e=.5,...r){return nu(this,t,e,...r)}})),xc=d((()=>{Al(),pl.prototype.premultiply=function(t=!1){let e=this._rgb,r=e[3];return t?(this._rgb=[e[0]*r,e[1]*r,e[2]*r,r],this):new pl([e[0]*r,e[1]*r,e[2]*r,r],"rgb")}})),bc=d((()=>{Sl(),({sin:iu,cos:ou}=Math),su=(...t)=>{let[e,r,n]=Qa(t,"lch");return isNaN(n)&&(n=0),n*=cl,[e,ou(n)*r,iu(n)*r]},au=su})),Tc=d((()=>{Sl(),bc(),Vl(),lu=(...t)=>{t=Qa(t,"lch");let[e,r,n]=t,[i,o,s]=au(e,r,n),[a,l,u]=Gl(i,o,s);return[a,l,u,t.length>3?t[3]:1]},uu=lu})),Ec=d((()=>{Sl(),Tc(),cu=(...t)=>{let e=rl(Qa(t,"hcl"));return uu(...e)},hu=cu})),Oc=d((()=>{Sl(),({sqrt:du,atan2:pu,round:fu}=Math),gu=(...t)=>{let[e,r,n]=Qa(t,"lab"),i=du(r*r+n*n),o=(pu(n,r)*hl+360)%360;return 0===fu(1e4*i)&&(o=Number.NaN),[e,i,o]},mu=gu})),Sc=d((()=>{Sl(),dc(),Oc(),yu=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=Ql(e,r,n),[l,u,c]=mu(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},_u=yu})),Nc=d((()=>{Sl(),Rl(),Al(),Nl(),Tc(),Ec(),Sc(),pl.prototype.lch=function(){return _u(this._rgb)},pl.prototype.hcl=function(){return rl(_u(this._rgb))},vu=(...t)=>new pl(...t,"lch"),xu=(...t)=>new pl(...t,"hcl"),Object.assign(ml,{lch:vu,hcl:xu}),dl.format.lch=uu,dl.format.hcl=hu,["lch","hcl"].forEach((t=>dl.autodetect.push({p:2,test:(...e)=>{if("array"===Wa(e=Qa(e,t))&&3===e.length)return t}})))})),Ac=d((()=>{Nc(),Al(),zl(),pl.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=Ul.Kn*t,e[1]<0&&(e[1]=0),new pl(e,"lch").alpha(this.alpha(),!0)},pl.prototype.desaturate=function(t=1){return this.saturate(-t)}})),wc=d((()=>{Al(),Sl(),pl.prototype.set=function(t,e,r=!1){let[n,i]=t.split("."),o=this[n]();if(i){let t=n.indexOf(i)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==Wa(e))switch(e.charAt(0)){case"+":case"-":o[t]+=+e;break;case"*":o[t]*=+e.substr(1);break;case"/":o[t]/=+e.substr(1);break;default:o[t]=+e}else{if("number"!==Wa(e))throw new Error("unsupported value for Color.set");o[t]=e}let i=new pl(o,n);return r?(this._rgb=i._rgb,this):i}throw new Error(`unknown channel ${i} in mode ${n}`)}return o}})),Rc=d((()=>{pc(),Al(),_c(),pl.prototype.tint=function(t=.5,...e){return nu(this,"white",t,...e)},pl.prototype.shade=function(t=.5,...e){return nu(this,"black",t,...e)}})),Cc=d((()=>{Al(),yc(),bu=(t,e,r)=>{let n=t._rgb,i=e._rgb;return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"rgb")},ru.rgb=bu})),Lc=d((()=>{Al(),yc(),({sqrt:Tu,pow:Eu}=Math),Ou=(t,e,r)=>{let[n,i,o]=t._rgb,[s,a,l]=e._rgb;return new pl(Tu(Eu(n,2)*(1-r)+Eu(s,2)*r),Tu(Eu(i,2)*(1-r)+Eu(a,2)*r),Tu(Eu(o,2)*(1-r)+Eu(l,2)*r),"rgb")},ru.lrgb=Ou})),Ic=d((()=>{pc(),yc(),Al(),Su=(t,e,r)=>{let n=t.lab(),i=e.lab();return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"lab")},ru.lab=Su})),kc=d((()=>{Al(),Nu=(t,e,r,n)=>{let i,o,s,a,l,u,c,h,d,p,f,g;return"hsl"===n?(i=t.hsl(),o=e.hsl()):"hsv"===n?(i=t.hsv(),o=e.hsv()):"hcg"===n?(i=t.hcg(),o=e.hcg()):"hsi"===n?(i=t.hsi(),o=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",i=t.hcl(),o=e.hcl()):"oklch"===n&&(i=t.oklch().reverse(),o=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([s,l,c]=i,[a,u,h]=o),isNaN(s)||isNaN(a)?isNaN(s)?isNaN(a)?p=Number.NaN:(p=a,(1==c||0==c)&&"hsv"!=n&&(d=u)):(p=s,(1==h||0==h)&&"hsv"!=n&&(d=l)):(g=a>s&&a-s>180?a-(s+360):a180?a+360-s:a-s,p=s+r*g),void 0===d&&(d=l+r*(u-l)),f=c+r*(h-c),new pl("oklch"===n?[f,d,p]:[p,d,f],n)}})),Dc=d((()=>{Nc(),kc(),yc(),Au=(t,e,r)=>Nu(t,e,r,"lch"),ru.lch=Au,ru.hcl=Au})),Pc=d((()=>{Sl(),wu=t=>{if("number"==Wa(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},Ru=wu})),Mc=d((()=>{Sl(),Cu=(...t)=>{let[e,r,n]=Qa(t,"rgb");return(e<<16)+(r<<8)+n},Lu=Cu})),jc=d((()=>{Rl(),Al(),Nl(),Sl(),Pc(),Mc(),pl.prototype.num=function(){return Lu(this._rgb)},Iu=(...t)=>new pl(...t,"num"),Object.assign(ml,{num:Iu}),dl.format.num=Ru,dl.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===Wa(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}})})),Kc=d((()=>{jc(),yc(),Al(),ku=(t,e,r)=>{let n=t.num(),i=e.num();return new pl(n+r*(i-n),"num")},ru.num=ku})),Uc=d((()=>{Sl(),({floor:Du}=Math),Pu=(...t)=>{t=Qa(t,"hcg");let e,r,n,[i,o,s]=t;s*=255;let a=255*o;if(0===o)e=r=n=s;else{360===i&&(i=0),i>360&&(i-=360),i<0&&(i+=360),i/=60;let t=Du(i),l=i-t,u=s*(1-o),c=u+a*(1-l),h=u+a*l,d=u+a;switch(t){case 0:[e,r,n]=[d,h,u];break;case 1:[e,r,n]=[c,d,u];break;case 2:[e,r,n]=[u,d,h];break;case 3:[e,r,n]=[u,c,d];break;case 4:[e,r,n]=[h,u,d];break;case 5:[e,r,n]=[d,u,c]}}return[e,r,n,t.length>3?t[3]:1]},Mu=Pu})),Fc=d((()=>{Sl(),ju=(...t)=>{let e,[r,n,i]=Qa(t,"rgb"),o=il(r,n,i),s=ol(r,n,i),a=s-o,l=100*a/255,u=o/(255-a)*100;return 0===a?e=Number.NaN:(r===s&&(e=(n-i)/a),n===s&&(e=2+(i-r)/a),i===s&&(e=4+(r-n)/a),e*=60,e<0&&(e+=360)),[e,l,u]},Ku=ju})),$c=d((()=>{Sl(),Rl(),Al(),Nl(),Uc(),Fc(),pl.prototype.hcg=function(){return Ku(this._rgb)},Uu=(...t)=>new pl(...t,"hcg"),ml.hcg=Uu,dl.format.hcg=Mu,dl.autodetect.push({p:1,test:(...t)=>{if("array"===Wa(t=Qa(t,"hcg"))&&3===t.length)return"hcg"}})})),Hc=d((()=>{$c(),kc(),yc(),Fu=(t,e,r)=>Nu(t,e,r,"hcg"),ru.hcg=Fu})),Bc=d((()=>{Sl(),({cos:$u}=Math),Hu=(...t)=>{t=Qa(t,"hsi");let e,r,n,[i,o,s]=t;return isNaN(i)&&(i=0),isNaN(o)&&(o=0),i>360&&(i-=360),i<0&&(i+=360),i/=360,i<1/3?(n=(1-o)/3,e=(1+o*$u(ll*i)/$u(ul-ll*i))/3,r=1-(n+e)):i<2/3?(i-=1/3,e=(1-o)/3,r=(1+o*$u(ll*i)/$u(ul-ll*i))/3,n=1-(e+r)):(i-=2/3,r=(1-o)/3,n=(1+o*$u(ll*i)/$u(ul-ll*i))/3,e=1-(r+n)),e=qa(s*e*3),r=qa(s*r*3),n=qa(s*n*3),[255*e,255*r,255*n,t.length>3?t[3]:1]},Bu=Hu})),qc=d((()=>{Sl(),({min:qu,sqrt:Gu,acos:zu}=Math),Vu=(...t)=>{let[e,r,n]=Qa(t,"rgb");e/=255,r/=255,n/=255;let i,o=qu(e,r,n),s=(e+r+n)/3,a=s>0?1-o/s:0;return 0===a?i=NaN:(i=(e-r+(e-n))/2,i/=Gu((e-r)*(e-r)+(e-n)*(r-n)),i=zu(i),n>r&&(i=ll-i),i/=ll),[360*i,a,s]},Yu=Vu})),Gc=d((()=>{Sl(),Rl(),Al(),Nl(),Bc(),qc(),pl.prototype.hsi=function(){return Yu(this._rgb)},Wu=(...t)=>new pl(...t,"hsi"),ml.hsi=Wu,dl.format.hsi=Bu,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsi"))&&3===t.length)return"hsi"}})})),zc=d((()=>{Gc(),kc(),yc(),Xu=(t,e,r)=>Nu(t,e,r,"hsi"),ru.hsi=Xu})),Vc=d((()=>{Sl(),Qu=(...t)=>{t=Qa(t,"hsl");let e,r,n,[i,o,s]=t;if(0===o)e=r=n=255*s;else{let t=[0,0,0],a=[0,0,0],l=s<.5?s*(1+o):s+o-s*o,u=2*s-l,c=i/360;t[0]=c+1/3,t[1]=c,t[2]=c-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?a[e]=u+6*(l-u)*t[e]:2*t[e]<1?a[e]=l:3*t[e]<2?a[e]=u+(l-u)*(2/3-t[e])*6:a[e]=u;[e,r,n]=[255*a[0],255*a[1],255*a[2]]}return t.length>3?[e,r,n,t[3]]:[e,r,n,1]},Ju=Qu})),Yc=d((()=>{Sl(),Zu=(...t)=>{t=Qa(t,"rgba");let[e,r,n]=t;e/=255,r/=255,n/=255;let i,o,s=il(e,r,n),a=ol(e,r,n),l=(a+s)/2;return a===s?(i=0,o=Number.NaN):i=l<.5?(a-s)/(a+s):(a-s)/(2-a-s),e==a?o=(r-n)/(a-s):r==a?o=2+(n-e)/(a-s):n==a&&(o=4+(e-r)/(a-s)),o*=60,o<0&&(o+=360),t.length>3&&void 0!==t[3]?[o,i,l,t[3]]:[o,i,l]},tc=Zu})),Wc=d((()=>{Sl(),Rl(),Al(),Nl(),Vc(),Yc(),pl.prototype.hsl=function(){return tc(this._rgb)},ec=(...t)=>new pl(...t,"hsl"),ml.hsl=ec,dl.format.hsl=Ju,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsl"))&&3===t.length)return"hsl"}})})),Xc=d((()=>{Wc(),kc(),yc(),rc=(t,e,r)=>Nu(t,e,r,"hsl"),ru.hsl=rc})),Qc=d((()=>{Sl(),({floor:nc}=Math),ic=(...t)=>{t=Qa(t,"hsv");let e,r,n,[i,o,s]=t;if(s*=255,0===o)e=r=n=s;else{360===i&&(i=0),i>360&&(i-=360),i<0&&(i+=360),i/=60;let t=nc(i),a=i-t,l=s*(1-o),u=s*(1-o*a),c=s*(1-o*(1-a));switch(t){case 0:[e,r,n]=[s,c,l];break;case 1:[e,r,n]=[u,s,l];break;case 2:[e,r,n]=[l,s,c];break;case 3:[e,r,n]=[l,u,s];break;case 4:[e,r,n]=[c,l,s];break;case 5:[e,r,n]=[s,l,u]}}return[e,r,n,t.length>3?t[3]:1]},oc=ic})),Jc=d((()=>{Sl(),({min:sc,max:ac}=Math),lc=(...t)=>{t=Qa(t,"rgb");let e,r,n,[i,o,s]=t,a=sc(i,o,s),l=ac(i,o,s),u=l-a;return n=l/255,0===l?(e=Number.NaN,r=0):(r=u/l,i===l&&(e=(o-s)/u),o===l&&(e=2+(s-i)/u),s===l&&(e=4+(i-o)/u),e*=60,e<0&&(e+=360)),[e,r,n]},uc=lc})),Zc=d((()=>{Sl(),Rl(),Al(),Nl(),Qc(),Jc(),pl.prototype.hsv=function(){return uc(this._rgb)},cc=(...t)=>new pl(...t,"hsv"),ml.hsv=cc,dl.format.hsv=oc,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsv"))&&3===t.length)return"hsv"}})})),th=d((()=>{Zc(),kc(),yc(),hc=(t,e,r)=>Nu(t,e,r,"hsv"),ru.hsv=hc}));function eh(t,e){let r=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map((t=>[t])));let n=e[0].length,i=e[0].map(((t,r)=>e.map((t=>t[r])))),o=t.map((t=>i.map((e=>Array.isArray(t)?t.reduce(((t,r,n)=>t+r*(e[n]||0)),0):e.reduce(((e,r)=>e+r*t),0)))));return 1===r&&(o=o[0]),1===n?o.map((t=>t[0])):o}var rh,nh,ih=d((()=>{})),oh=d((()=>{Sl(),ih(),Vl(),rh=(...t)=>{t=Qa(t,"lab");let[e,r,n,...i]=t,[o,s,a]=function(t){var e=eh([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],t);return eh([[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],e.map((t=>t**3)))}([e,r,n]),[l,u,c]=ql(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},nh=rh}));function sh(t){let e=eh([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],t);return eh([[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],e.map((t=>Math.cbrt(t))))}var ah,lh,uh,ch,hh,dh,ph,fh,gh,mh,yh,_h,vh,xh=d((()=>{Sl(),ih(),dc(),ah=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb");return[...sh(Xl(e,r,n)),...i.length>0&&i[0]<1?[i[0]]:[]]},lh=ah})),bh=d((()=>{Sl(),Rl(),Al(),Nl(),oh(),xh(),pl.prototype.oklab=function(){return lh(this._rgb)},uh=(...t)=>new pl(...t,"oklab"),Object.assign(ml,{oklab:uh}),dl.format.oklab=nh,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"oklab"))&&3===t.length)return"oklab"}})})),Th=d((()=>{bh(),yc(),Al(),ch=(t,e,r)=>{let n=t.oklab(),i=e.oklab();return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"oklab")},ru.oklab=ch})),Eh=d((()=>{Nc(),kc(),yc(),hh=(t,e,r)=>Nu(t,e,r,"oklch"),ru.oklch=hh})),Oh=d((()=>{Al(),Sl(),({pow:dh,sqrt:ph,PI:fh,cos:gh,sin:mh,atan2:yh}=Math),_h=(t,e="lrgb",r=null)=>{let n=t.length;r||(r=Array.from(new Array(n)).map((()=>1)));let i=n/r.reduce((function(t,e){return t+e}));if(r.forEach(((t,e)=>{r[e]*=i})),t=t.map((t=>new pl(t))),"lrgb"===e)return vh(t,r);let o=t.shift(),s=o.get(e),a=[],l=0,u=0;for(let t=0;t{let i=t.get(e);c+=t.alpha()*r[n+1];for(let t=0;t=360;)e-=360;s[t]=e}else s[t]=s[t]/a[t];return c/=n,new pl(s,e).alpha(c>.99999?1:c,!0)},vh=(t,e)=>{let r=t.length,n=[0,0,0,0];for(let i=0;i.9999999&&(n[3]=1),new pl(Ga(n))}}));function Sh(t){let e="rgb",r=ml("#ccc"),n=0,i=[0,1],o=[0,1],s=[],a=[0,0],l=!1,u=[],c=!1,h=0,d=1,p=!1,f={},g=!0,m=1,y=function(t){if((t=t||["#fff","#000"])&&"string"===Wa(t)&&ml.brewer&&ml.brewer[t.toLowerCase()]&&(t=ml.brewer[t.toLowerCase()]),"array"===Wa(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;et,v=t=>t,x=function(t,n){let i,o;if(null==n&&(n=!1),isNaN(t)||null===t)return r;o=n?t:l&&l.length>2?function(t){if(null!=l){let e=l.length-1,r=0;for(;r=l[r];)r++;return r-1}return 0}(t)/(l.length-2):d!==h?(t-h)/(d-h):1,o=v(o),n||(o=_(o)),1!==m&&(o=Ah(o,m)),o=a[0]+o*(1-a[0]-a[1]),o=qa(o,0,1);let c=Math.floor(1e4*o);if(g&&f[c])i=f[c];else{if("array"===Wa(u))for(let t=0;t=r&&t===s.length-1){i=u[t];break}if(o>r&&of={};y(t);let T=function(t){let e=ml(x(t));return c&&e[c]?e[c]():e};return T.classes=function(t){if(null!=t){if("array"===Wa(t))l=t,i=[t[0],t[t.length-1]];else{let e=ml.analyze(i);l=0===t?[e.min,e.max]:ml.limits(e,"e",t)}return T}return l},T.domain=function(t){if(!arguments.length)return o;o=t.slice(0),h=t[0],d=t[t.length-1],s=[];let e=u.length;if(t.length===e&&h!==d)for(let e of Array.from(t))s.push((e-h)/(d-h));else{for(let t=0;t2){let e=t.map(((e,r)=>r/(t.length-1))),r=t.map((t=>(t-h)/(d-h)));r.every(((t,r)=>e[r]===t))||(v=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=r[n+1];)n++;let i=(t-r[n])/(r[n+1]-r[n]);return e[n]+i*(e[n+1]-e[n])})}}return i=[h,d],T},T.mode=function(t){return arguments.length?(e=t,b(),T):e},T.range=function(t,e){return y(t),T},T.out=function(t){return c=t,T},T.spread=function(t){return arguments.length?(n=t,T):n},T.correctLightness=function(t){return null==t&&(t=!0),p=t,b(),_=p?function(t){let e=x(0,!0).lab()[0],r=x(1,!0).lab()[0],n=e>r,i=x(t,!0).lab()[0],o=e+(r-e)*t,s=i-o,a=0,l=1,u=20;for(;Math.abs(s)>.01&&u-- >0;)n&&(s*=-1),s<0?(a=t,t+=.5*(l-t)):(l=t,t+=.5*(a-t)),i=x(t,!0).lab()[0],s=i-o;return t}:t=>t,T},T.padding=function(t){return null!=t?("number"===Wa(t)&&(t=[t,t]),a=t,T):a},T.colors=function(e,r){arguments.length<2&&(r="hex");let n=[];if(0===arguments.length)n=u.slice(0);else if(1===e)n=[T(.5)];else if(e>1){let t=i[0],r=i[1]-t;n=Nh(0,e).map((n=>T(t+n/(e-1)*r)))}else{t=[];let e=[];if(l&&l.length>2)for(let t=1,r=l.length,n=1<=r;n?tr;n?t++:t--)e.push(.5*(l[t-1]+l[t]));else e=i;n=e.map((t=>T(t)))}return ml[r]&&(n=n.map((t=>t[r]()))),n},T.cache=function(t){return null!=t?(g=t,T):g},T.gamma=function(t){return null!=t?(m=t,T):m},T.nodata=function(t){return null!=t?(r=ml(t),T):r},T}function Nh(t,e,r){let n=[],i=to;i?e++:e--)n.push(e);return n}var Ah,wh,Rh,Ch,Lh,Ih,kh,Dh,Ph,Mh,jh,Kh,Uh,Fh,$h,Hh,Bh,qh,Gh=d((()=>{Rl(),Sl(),({pow:Ah}=Math)})),zh=d((()=>{Al(),pc(),Gh(),wh=function(t){let e=[1,1];for(let r=1;rnew pl(t)))).length)[r,n]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>r[e]+t*(n[e]-r[e])));return new pl(e,"lab")};else if(3===t.length)[r,n,i]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>(1-t)*(1-t)*r[e]+2*(1-t)*t*n[e]+t*t*i[e]));return new pl(e,"lab")};else if(4===t.length){let o;[r,n,i,o]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>(1-t)*(1-t)*(1-t)*r[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*i[e]+t*t*t*o[e]));return new pl(e,"lab")}}else{if(!(t.length>=5))throw new RangeError("No point in running bezier with only one color.");{let r,n,i;r=t.map((t=>t.lab())),i=t.length-1,n=wh(i),e=function(t){let e=1-t,o=[0,1,2].map((o=>r.reduce(((r,s,a)=>r+n[a]*e**(i-a)*t**a*s[o]),0)));return new pl(o,"lab")}}}return e},Ch=t=>{let e=Rh(t);return e.scale=()=>Sh(e),e}})),Vh=d((()=>{Rl(),Al(),Nl(),Sl(),({round:Lh}=Math),pl.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Lh)},pl.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map(((e,r)=>r<3?!1===t?e:Lh(e):e))},Ih=(...t)=>new pl(...t,"rgb"),Object.assign(ml,{rgb:Ih}),dl.format.rgb=(...t)=>{let e=Qa(t,"rgba");return void 0===e[3]&&(e[3]=1),e},dl.autodetect.push({p:3,test:(...t)=>{if("array"===Wa(t=Qa(t,"rgba"))&&(3===t.length||4===t.length&&"number"==Wa(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}})})),Yh=d((()=>{Vh(),Rl(),kh=(t,e,r)=>{if(!kh[r])throw new Error("unknown blend mode "+r);return kh[r](t,e)},Dh=t=>(e,r)=>{let n=ml(r).rgb(),i=ml(e).rgb();return ml.rgb(t(n,i))},Ph=t=>(e,r)=>{let n=[];return n[0]=t(e[0],r[0]),n[1]=t(e[1],r[1]),n[2]=t(e[2],r[2]),n},Mh=t=>t,jh=(t,e)=>t*e/255,Kh=(t,e)=>t>e?e:t,Uh=(t,e)=>t>e?t:e,Fh=(t,e)=>255*(1-(1-t/255)*(1-e/255)),$h=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),Hh=(t,e)=>255*(1-(1-e/255)/(t/255)),Bh=(t,e)=>255===t||(t=e/255*255/(1-t/255))>255?255:t,kh.normal=Dh(Ph(Mh)),kh.multiply=Dh(Ph(jh)),kh.screen=Dh(Ph(Fh)),kh.overlay=Dh(Ph($h)),kh.darken=Dh(Ph(Kh)),kh.lighten=Dh(Ph(Uh)),kh.dodge=Dh(Ph(Bh)),kh.burn=Dh(Ph(Hh)),qh=kh}));function Wh(t=300,e=-1.5,r=1,n=1,i=[0,1]){let o,s=0;"array"===Wa(i)?o=i[1]-i[0]:(o=0,i=[i,i]);let a=function(a){let l=ll*((t+120)/360+e*a),u=Xh(i[0]+o*a,n),c=(0!==s?r[0]+a*s:r)*u*(1-u)/2,h=Jh(l),d=Qh(l);return ml(Ga([255*(u+c*(-.14861*h+1.78277*d)),255*(u+c*(-.29227*h-.90649*d)),255*(u+c*(1.97294*h)),1]))};return a.start=function(e){return null==e?t:(t=e,a)},a.rotations=function(t){return null==t?e:(e=t,a)},a.gamma=function(t){return null==t?n:(n=t,a)},a.hue=function(t){return null==t?r:("array"===Wa(r=t)?(s=r[1]-r[0],0===s&&(r=r[1])):s=0,a)},a.lightness=function(t){return null==t?i:("array"===Wa(t)?(i=t,o=t[1]-t[0]):(i=[t,t],o=0),a)},a.scale=()=>ml.scale(a),a.hue(r),a}var Xh,Qh,Jh,Zh,td,ed,rd=d((()=>{Sl(),Rl(),({pow:Xh,sin:Qh,cos:Jh}=Math)})),nd=d((()=>{Al(),({floor:Zh,random:td}=Math),ed=(t=td)=>{let e="#";for(let r=0;r<6;r++)e+="0123456789abcdef".charAt(Zh(16*t()));return new pl(e,"hex")}}));function id(t,e=null){let r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Wa(t)&&(t=Object.values(t)),t.forEach((t=>{e&&"object"===Wa(t)&&(t=t[e]),null!=t&&!isNaN(t)&&(r.values.push(t),r.sum+=t,tr.max&&(r.max=t),r.count+=1)})),r.domain=[r.min,r.max],r.limits=(t,e)=>od(r,t,e),r}function od(t,e="equal",r=7){"array"==Wa(t)&&(t=id(t));let{min:n,max:i}=t,o=t.values.sort(((t,e)=>t-e));if(1===r)return[n,i];let s=[];if("c"===e.substr(0,1)&&(s.push(n),s.push(i)),"e"===e.substr(0,1)){s.push(n);for(let t=1;t 0");let t=Math.LOG10E*sd(n),e=Math.LOG10E*sd(i);s.push(n);for(let n=1;n200&&(u=!1)}let d={};for(let t=0;tt-e)),s.push(p[0]);for(let t=1;t{Za(),({log:sd,pow:ad,floor:ld,abs:ud}=Math)})),dd=d((()=>{Al(),mc(),cd=(t,e)=>{t=new pl(t),e=new pl(e);let r=t.luminance(),n=e.luminance();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}));function pd(t,e,r){return.2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(r/255,2.4)}var fd,gd,md=d((()=>{Al(),_c(),fd=.022,gd=(t,e)=>{t=new pl(t),e=new pl(e),t.alpha()<1&&(t=nu(e,t,t.alpha(),"rgb"));let r=pd(...t.rgb()),n=pd(...e.rgb()),i=r>=fd?r:r+Math.pow(fd-r,1.414),o=n>=fd?n:n+Math.pow(fd-n,1.414),s=Math.pow(o,.56)-Math.pow(i,.57),a=Math.pow(o,.65)-Math.pow(i,.62),l=Math.abs(o-i)<5e-4?0:i0?l-.027:l+.027)}}));function yd(t,e,r=1,n=1,i=1){var o=function(t){return 360*t/(2*Ad)},s=function(t){return 2*Ad*t/360};t=new pl(t),e=new pl(e);let[a,l,u]=Array.from(t.lab()),[c,h,d]=Array.from(e.lab()),p=(a+c)/2,f=(_d(vd(l,2)+vd(u,2))+_d(vd(h,2)+vd(d,2)))/2,g=.5*(1-_d(vd(f,7)/(vd(f,7)+vd(25,7)))),m=l*(1+g),y=h*(1+g),_=_d(vd(m,2)+vd(u,2)),v=_d(vd(y,2)+vd(d,2)),x=(_+v)/2,b=o(Td(u,m)),T=o(Td(d,y)),E=b>=0?b:b+360,O=T>=0?T:T+360,S=Ed(E-O)>180?(E+O+360)/2:(E+O)/2,N=1-.17*Od(s(S-30))+.24*Od(s(2*S))+.32*Od(s(3*S+6))-.2*Od(s(4*S-63)),A=O-E;A=Ed(A)<=180?A:O<=E?A+360:A-360,A=2*_d(_*v)*Sd(s(A)/2);let w=c-a,R=v-_,C=1+.015*vd(p-50,2)/_d(20+vd(p-50,2)),L=1+.045*x,I=1+.015*x*N,k=30*Nd(-vd((S-275)/25,2)),D=-2*_d(vd(x,7)/(vd(x,7)+vd(25,7)))*Sd(2*s(k)),P=_d(vd(w/(r*C),2)+vd(R/(n*L),2)+vd(A/(i*I),2)+D*(R/(n*L))*(A/(i*I)));return bd(0,xd(100,P))}var _d,vd,xd,bd,Td,Ed,Od,Sd,Nd,Ad,wd=d((()=>{Al(),({sqrt:_d,pow:vd,min:xd,max:bd,atan2:Td,abs:Ed,cos:Od,sin:Sd,exp:Nd,PI:Ad}=Math)}));function Rd(t,e,r="lab"){t=new pl(t),e=new pl(e);let n=t.get(r),i=e.get(r),o=0;for(let t in n){let e=(n[t]||0)-(i[t]||0);o+=e*e}return Math.sqrt(o)}var Cd,Ld,Id,kd,Dd,Pd,Md,jd,Kd,Ud,Fd,$d,Hd,Bd,qd,Gd,zd,Vd,Yd,Wd,Xd,Qd,Jd,Zd,tp,ep,rp,np,ip,op,sp,ap,lp,up,cp,hp,dp,pp,fp,gp,mp,yp,_p,vp,xp,bp,Tp,Ep,Op,Sp,Np,Ap,wp,Rp,Cp,Lp,Ip,kp,Dp,Pp,Mp,jp,Kp,Up,Fp,$p,Hp,Bp=d((()=>{Al()})),qp=d((()=>{Al(),Cd=(...t)=>{try{return new pl(...t),!0}catch{return!1}}})),Gp=d((()=>{Rl(),Wc(),Gh(),Ld={cool:()=>Sh([ml.hsl(180,1,.9),ml.hsl(250,.7,.4)]),hot:()=>Sh(["#000","#f00","#ff0","#fff"]).mode("rgb")}})),zp=d((()=>{Id={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},kd=Object.keys(Id),Dd=new Map(kd.map((t=>[t.toLowerCase(),t]))),Pd="function"==typeof Proxy?new Proxy(Id,{get(t,e){let r=e.toLowerCase();if(Dd.has(r))return t[Dd.get(r)]},getOwnPropertyNames:()=>Object.getOwnPropertyNames(kd)}):Id,Md=Pd})),Vp=d((()=>{Sl(),jd=(...t)=>{t=Qa(t,"cmyk");let[e,r,n,i]=t,o=t.length>4?t[4]:1;return 1===i?[0,0,0,o]:[e>=1?0:255*(1-e)*(1-i),r>=1?0:255*(1-r)*(1-i),n>=1?0:255*(1-n)*(1-i),o]},Kd=jd})),Yp=d((()=>{Sl(),({max:Ud}=Math),Fd=(...t)=>{let[e,r,n]=Qa(t,"rgb");e/=255,r/=255,n/=255;let i=1-Ud(e,Ud(r,n)),o=i<1?1/(1-i):0;return[(1-e-i)*o,(1-r-i)*o,(1-n-i)*o,i]},$d=Fd})),Wp=d((()=>{Rl(),Al(),Nl(),Sl(),Vp(),Yp(),pl.prototype.cmyk=function(){return $d(this._rgb)},Hd=(...t)=>new pl(...t,"cmyk"),Object.assign(ml,{cmyk:Hd}),dl.format.cmyk=Kd,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"cmyk"))&&4===t.length)return"cmyk"}})})),Xp=d((()=>{Sl(),Bd=(...t)=>{let e=Qa(t,"hsla"),r=Ja(t)||"lsa";return e[0]=sl(e[0]||0)+"deg",e[1]=sl(100*e[1])+"%",e[2]=sl(100*e[2])+"%","hsla"===r||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),r="hsla"):e.length=3,`${r.substr(0,3)}(${e.join(" ")})`},qd=Bd})),Qp=d((()=>{Sl(),Gd=(...t)=>{let e=Qa(t,"lab"),r=Ja(t)||"lab";return e[0]=sl(e[0])+"%",e[1]=sl(e[1]),e[2]=sl(e[2]),"laba"===r||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},zd=Gd})),Jp=d((()=>{Sl(),Vd=(...t)=>{let e=Qa(t,"lch"),r=Ja(t)||"lab";return e[0]=sl(e[0])+"%",e[1]=sl(e[1]),e[2]=isNaN(e[2])?"none":sl(e[2])+"deg","lcha"===r||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},Yd=Vd})),Zp=d((()=>{Sl(),Wd=(...t)=>{let e=Qa(t,"lab");return e[0]=sl(100*e[0])+"%",e[1]=al(e[1]),e[2]=al(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},Xd=Wd})),tf=d((()=>{Sl(),xh(),Oc(),Qd=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=lh(e,r,n),[l,u,c]=mu(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},Jd=Qd})),ef=d((()=>{Sl(),Zd=(...t)=>{let e=Qa(t,"lch");return e[0]=sl(100*e[0])+"%",e[1]=al(e[1]),e[2]=isNaN(e[2])?"none":sl(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},tp=Zd})),rf=d((()=>{Sl(),Xp(),Yc(),Qp(),dc(),Jp(),Sc(),xh(),Zp(),tf(),ef(),zl(),({round:ep}=Math),rp=(...t)=>{let e=Qa(t,"rgba"),r=Ja(t)||"rgb";if("hsl"===r.substr(0,3))return qd(tc(e),r);if("lab"===r.substr(0,3)){let t=jl();Ml("d50");let n=zd(Ql(e),r);return Ml(t),n}if("lch"===r.substr(0,3)){let t=jl();Ml("d50");let n=Yd(_u(e),r);return Ml(t),n}return"oklab"===r.substr(0,5)?Xd(lh(e)):"oklch"===r.substr(0,5)?tp(Jd(e)):(e[0]=ep(e[0]),e[1]=ep(e[1]),e[2]=ep(e[2]),("rgba"===r||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),r="rgba"),`${r.substr(0,3)}(${e.slice(0,"rgb"===r?3:4).join(" ")})`)},np=rp})),nf=d((()=>{Sl(),bc(),oh(),ip=(...t)=>{t=Qa(t,"lch");let[e,r,n,...i]=t,[o,s,a]=au(e,r,n),[l,u,c]=nh(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},op=ip})),of=d((()=>{Vc(),Vl(),Tc(),oh(),nf(),Nl(),Va(),zl(),sp=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,ap=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,lp=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,up=/\s*/.source,cp=/\s+/.source,hp=/\s*,\s*/.source,dp=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,pp=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,fp=new RegExp("^rgba?\\("+up+[sp,sp,sp].join(cp)+pp+"\\)$"),gp=new RegExp("^rgb\\("+up+[sp,sp,sp].join(hp)+up+"\\)$"),mp=new RegExp("^rgba\\("+up+[sp,sp,sp,ap].join(hp)+up+"\\)$"),yp=new RegExp("^hsla?\\("+up+[dp,lp,lp].join(cp)+pp+"\\)$"),_p=new RegExp("^hsl?\\("+up+[dp,lp,lp].join(hp)+up+"\\)$"),vp=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,xp=new RegExp("^lab\\("+up+[ap,ap,ap].join(cp)+pp+"\\)$"),bp=new RegExp("^lch\\("+up+[ap,ap,dp].join(cp)+pp+"\\)$"),Tp=new RegExp("^oklab\\("+up+[ap,ap,ap].join(cp)+pp+"\\)$"),Ep=new RegExp("^oklch\\("+up+[ap,ap,dp].join(cp)+pp+"\\)$"),({round:Op}=Math),Sp=t=>t.map(((t,e)=>e<=2?qa(Op(t),0,255):t)),Np=(t,e=0,r=100,n=!1)=>("string"==typeof t&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,t=n?e+.5*(t+1)*(r-e):e+t*(r-e)),+t),Ap=(t,e)=>"none"===t?e:t,wp=t=>{if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];let e;if(dl.format.named)try{return dl.format.named(t)}catch{}if((e=t.match(fp))||(e=t.match(gp))){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+Np(Ap(t[e],0),0,255);t=Sp(t);let r=void 0!==e[4]?+Np(e[4],0,1):1;return t[3]=r,t}if(e=t.match(mp)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+Np(t[e],0,255);return t}if((e=t.match(yp))||(e=t.match(_p))){let t=e.slice(1,4);t[0]=+Ap(t[0].replace("deg",""),0),t[1]=.01*+Np(Ap(t[1],0),0,100),t[2]=.01*+Np(Ap(t[2],0),0,100);let r=Sp(Ju(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}if(e=t.match(vp)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let r=Ju(t);for(let t=0;t<3;t++)r[t]=Op(r[t]);return r[3]=+e[4],r}if(e=t.match(xp)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,100),t[1]=Np(Ap(t[1],0),-125,125,!0),t[2]=Np(Ap(t[2],0),-125,125,!0);let r=jl();Ml("d50");let n=Sp(Gl(t));Ml(r);let i=void 0!==e[4]?+Np(e[4],0,1):1;return n[3]=i,n}if(e=t.match(bp)){let t=e.slice(1,4);t[0]=Np(t[0],0,100),t[1]=Np(Ap(t[1],0),0,150,!1),t[2]=+Ap(t[2].replace("deg",""),0);let r=jl();Ml("d50");let n=Sp(uu(t));Ml(r);let i=void 0!==e[4]?+Np(e[4],0,1):1;return n[3]=i,n}if(e=t.match(Tp)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,1),t[1]=Np(Ap(t[1],0),-.4,.4,!0),t[2]=Np(Ap(t[2],0),-.4,.4,!0);let r=Sp(nh(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}if(e=t.match(Ep)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,1),t[1]=Np(Ap(t[1],0),0,.4,!1),t[2]=+Ap(t[2].replace("deg",""),0);let r=Sp(op(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}},wp.test=t=>fp.test(t)||yp.test(t)||xp.test(t)||bp.test(t)||Tp.test(t)||Ep.test(t)||gp.test(t)||mp.test(t)||_p.test(t)||vp.test(t)||"transparent"===t,Rp=wp})),sf=d((()=>{Rl(),Al(),Nl(),Sl(),rf(),of(),pl.prototype.css=function(t){return np(this._rgb,t)},Cp=(...t)=>new pl(...t,"css"),ml.css=Cp,dl.format.css=Rp,dl.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&Rp.test(t))return"css"}})})),af=d((()=>{Al(),Rl(),Nl(),Sl(),dl.format.gl=(...t)=>{let e=Qa(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},Lp=(...t)=>new pl(...t,"gl"),ml.gl=Lp,pl.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]}})),lf=d((()=>{Al(),Rl(),Sl(),Nl(),Ll(),Il(),pl.prototype.hex=function(t){return Ol(this._rgb,t)},Ip=(...t)=>new pl(...t,"hex"),ml.hex=Ip,dl.format.hex=bl,dl.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}})})),uf=d((()=>{({log:kp}=Math),Dp=t=>{let e,r,n,i=t/100;return i<66?(e=255,r=i<6?0:-155.25485562709179-.44596950469579133*(r=i-2)+104.49216199393888*kp(r),n=i<20?0:.8274096064007395*(n=i-10)-254.76935184120902+115.67994401066147*kp(n)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*kp(e),r=325.4494125711974+.07943456536662342*(r=i-50)-28.0852963507957*kp(r),n=255),[e,r,n,1]},Pp=Dp})),cf=d((()=>{uf(),Sl(),({round:Mp}=Math),jp=(...t)=>{let e,r=Qa(t,"rgb"),n=r[0],i=r[2],o=1e3,s=4e4;for(;s-o>.4;){e=.5*(s+o);let t=Pp(e);t[2]/t[0]>=i/n?s=e:o=e}return Mp(e)},Kp=jp})),hf=d((()=>{Rl(),Al(),Nl(),uf(),cf(),pl.prototype.temp=pl.prototype.kelvin=pl.prototype.temperature=function(){return Kp(this._rgb)},Up=(...t)=>new pl(...t,"temp"),Object.assign(ml,{temp:Up,kelvin:Up,temperature:Up}),dl.format.temp=dl.format.kelvin=dl.format.temperature=Pp})),df=d((()=>{Sl(),Rl(),Al(),Nl(),nf(),tf(),pl.prototype.oklch=function(){return Jd(this._rgb)},Fp=(...t)=>new pl(...t,"oklch"),Object.assign(ml,{oklch:Fp}),dl.format.oklch=op,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"oklch"))&&3===t.length)return"oklch"}})})),pf=d((()=>{Rl(),kl(),Dl(),Pl(),fc(),gc(),mc(),vc(),xc(),Ac(),wc(),Rc(),Cc(),Lc(),Ic(),Dc(),Kc(),Hc(),zc(),Xc(),th(),Th(),Eh(),Oh(),zh(),Yh(),rd(),_c(),nd(),Gh(),hd(),dd(),md(),wd(),Bp(),hd(),qp(),Nl(),Gp(),Cl(),zp(),Al(),Wp(),sf(),af(),$c(),lf(),Gc(),Wc(),Zc(),pc(),Nc(),jc(),Vh(),hf(),bh(),df(),Object.assign(ml,{analyze:id,average:_h,bezier:Ch,blend:qh,brewer:Md,Color:pl,colors:yl,contrast:cd,contrastAPCA:gd,cubehelix:Wh,deltaE:yd,distance:Rd,input:dl,interpolate:nu,limits:od,mix:nu,random:ed,scale:Sh,scales:Ld,valid:Cd}),$p=ml})),ff=d((()=>{pf(),Hp=class{constructor(t){this.colors=this.generateColors(t),this.index=0}generateColors(t){let e=[];for(let r=0;r=this.colors.length&&(this.index=0),this.colors[this.index++]}phyllotacticColor(t){let e=t*(Math.PI/180*137.5),r=100*Math.cos(e),n=100*Math.sin(e),i=$p.lab(50,r,n).rgb();return`rgb(${Math.round(1*i[0])}, ${Math.round(1*i[1])}, ${Math.round(1*i[2])})`}}}));function gf(){return new mf}var mf,yf,_f,vf,xf=d((()=>{mf=function(){function t(){this.index={},this.array=[]}return t.prototype.size=function(){return this.array.length},t.prototype.empty=function(){return 0===this.array.length},t.prototype.itemAt=function(t){return this.array[t]},t.prototype.contains=function(t){return void 0!==this.index[t.id()]},t.prototype.find=function(t){var e=this.index[t.id()];return void 0===e?void 0:this.array[e]},t.prototype.setDefault=function(t,e){var r=this.index[t.id()];if(void 0===r){var n=new yf(t,e());return this.index[t.id()]=this.array.length,this.array.push(n),n}return this.array[r]},t.prototype.insert=function(t,e){var r=new yf(t,e),n=this.index[t.id()];return void 0===n?(this.index[t.id()]=this.array.length,this.array.push(r)):this.array[n]=r,r},t.prototype.erase=function(t){var e=this.index[t.id()];if(void 0!==e){this.index[t.id()]=void 0;var r=this.array[e],n=this.array.pop();return r!==n&&(this.array[e]=n,this.index[n.first.id()]=e),r}},t.prototype.copy=function(){for(var e=new t,r=0;r{wf(),_f=function(){function t(t){void 0===t&&(t=""),this._value=0,this._context=null,this._id=vf++,this._name=t}return t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t.prototype.plus=function(t){return new Ef(this,t)},t.prototype.minus=function(t){return new Ef(this,"number"==typeof t?-t:[-1,t])},t.prototype.multiply=function(t){return new Ef([t,this])},t.prototype.divide=function(t){return new Ef([1/t,this])},t.prototype.toJSON=function(){return{name:this._name,value:this._value}},t.prototype.toString=function(){return this._context+"["+this._name+":"+this._value+"]"},t}(),vf=0}));function Tf(t){for(var e=0,r=function(){return 0},n=gf(),i=0,o=t.length;i{xf(),bf(),Ef=function(){function t(){var t=Tf(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){for(var t=this._constant,e=0,r=this._terms.size();e{Of=function(){function t(){}return t.create=function(t,e,r,n){void 0===n&&(n=1);var i=0;return i+=1e6*Math.max(0,Math.min(1e3,t*n)),(i+=1e3*Math.max(0,Math.min(1e3,e*n)))+Math.max(0,Math.min(1e3,r*n))},t.clip=function(e){return Math.max(0,Math.min(t.required,e))},t.required=t.create(1e3,1e3,1e3),t.strong=t.create(1,0,0),t.medium=t.create(0,1,0),t.weak=t.create(0,0,1),t}()})),Cf=d((()=>{wf(),Rf(),function(t){t[t.Le=0]="Le",t[t.Ge=1]="Ge",t[t.Eq=2]="Eq"}(Sf||(Sf={})),Nf=function(){function t(t,e,r,n){void 0===n&&(n=Of.required),this._id=Af++,this._operator=e,this._strength=Of.clip(n),this._expression=void 0===r&&t instanceof Ef?t:t.minus(r)}return t.prototype.id=function(){return this._id},t.prototype.expression=function(){return this._expression},t.prototype.op=function(){return this._operator},t.prototype.strength=function(){return this._strength},t.prototype.toString=function(){return this._expression.toString()+" "+["<=",">=","="][this._operator]+" 0 ("+this._strength.toString()+")"},t}(),Af=0}));function Lf(t){return t<0?-t<1e-8:t<1e-8}var If,kf,Df,Pf,Mf,jf=d((()=>{Cf(),wf(),xf(),Rf(),If=function(){function t(){this._cnMap=gf(),this._rowMap=gf(),this._varMap=gf(),this._editMap=gf(),this._infeasibleRows=[],this._objective=new Mf,this._artificial=null,this._idTick=0}return t.prototype.createConstraint=function(t,e,r,n){void 0===n&&(n=Of.required);var i=new Nf(t,e,r,n);return this.addConstraint(i),i},t.prototype.addConstraint=function(t){if(void 0!==this._cnMap.find(t))throw new Error("duplicate constraint");var e=this._createRow(t),r=e.row,n=e.tag,i=this._chooseSubject(r,n);if(i.type()===kf.Invalid&&r.allDummies()){if(!Lf(r.constant()))throw new Error("unsatisfiable constraint");i=n.marker}if(i.type()===kf.Invalid){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(i),this._substitute(i,r),this._rowMap.insert(i,r);this._cnMap.insert(t,n),this._optimize(this._objective)},t.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error("unknown constraint");this._removeConstraintEffects(t,e.second);var r=e.second.marker,n=this._rowMap.erase(r);if(void 0===n){var i=this._getMarkerLeavingSymbol(r);if(i.type()===kf.Invalid)throw new Error("failed to find leaving row");(n=this._rowMap.erase(i)).second.solveForEx(i,r),this._substitute(r,n.second)}this._optimize(this._objective)},t.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},t.prototype.addEditVariable=function(t,e){if(void 0!==this._editMap.find(t))throw new Error("duplicate edit variable");if((e=Of.clip(e))===Of.required)throw new Error("bad required strength");var r=new Ef(t),n=new Nf(r,Sf.Eq,void 0,e);this.addConstraint(n);var i={tag:this._cnMap.find(n).second,constraint:n,constant:0};this._editMap.insert(t,i)},t.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error("unknown edit variable");this.removeConstraint(e.second.constraint)},t.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},t.prototype.suggestValue=function(t,e){var r=this._editMap.find(t);if(void 0===r)throw new Error("unknown edit variable");var n=this._rowMap,i=r.second,o=e-i.constant;i.constant=e;var s=i.tag.marker,a=n.find(s);if(void 0!==a)return a.second.add(-o)<0&&this._infeasibleRows.push(s),void this._dualOptimize();var l=i.tag.other;if(void 0!==(a=n.find(l)))return a.second.add(o)<0&&this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,c=n.size();u0&&a.type()!==kf.Dummy){var u=this._objective.coefficientFor(a)/l;u{Cf(),wf(),jf(),Rf(),bf()}));function Uf(t){return"positional-conflict"===t.type}function Ff(t){return"group-overlap"===t.type}function $f(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Hf(t){if(t.attributes&&Object.entries(t.attributes).some((([t,e])=>e&&e.length>0))){let e=t.attributes||{},r=Object.entries(e).sort((([t],[e])=>t.localeCompare(e))),n=[],i=2,o=20;for(let t=0;t0){let t=i[0];t.length>o&&(t=t.substring(0,o)+"..."),n.push(`${$f(e)}: ${$f(t)}`)}}if(r.length>i&&n.push("..."),n.length>0)return`${$f(t.label)} (${n.join(", ")})`}return t.label&&t.label!==t.id?`${$f(t.label)} (id = ${$f(t.id)})`:`${$f(t.id)}`}function Bf(t){let e=Hf;if(Rn(t)){let r=t;return`${e(r.top)} must be above ${e(r.bottom)}`}if(Cn(t)){let r=t;return`${e(r.left)} must be to the left of ${e(r.right)}`}if(Ln(t)){let r=t,n=r.axis,i=r.node1,o=r.node2;return"x"===n?`${e(i)} must be vertically aligned with ${e(o)}`:"y"===n?`${e(i)} must be horizontally aligned with ${e(o)}`:`${e(i)} must be aligned with ${e(o)} along the ${n} axis`}if(In(t)){let r=t;return`${e(r.node)} cannot be in group "${r.group.name}".`}if(kn(t)){let e=t,r={left:"to the left of",right:"to the right of",top:"above",bottom:"below"};return`Group "${e.groupA.name}" must be ${r[e.side]} group "${e.groupB.name}"`}return`Unknown constraint type: ${t}`}var qf,Gf,zf,Vf,Yf,Wf,Xf=d((()=>{Kf(),Kn(),Ia(),qf="This is a unique identifier in the graph. Hover over graph nodes to see their IDs.",Gf=class{constructor(t){this.kiwiConstraintCache=new Map,this.expressionCache=new Map,this.minPadding=15,this.horizontallyAligned=[],this.verticallyAligned=[],this.horizontalAlignmentMap=new Map,this.verticalAlignmentMap=new Map,this.layout=t,this.solver=new If,this.nodes=t.nodes,this.edges=t.edges,this.orientationConstraints=t.constraints,this.variables={},this.groupBoundingBoxes=new Map,this.groups=t.groups,this.added_constraints=[]}validateConstraints(){return this.validateGroupConstraints()||this.validatePositionalConstraints()}validatePositionalConstraints(){this.nodes.forEach((t=>{let e=this.getNodeIndex(t.id);this.variables[e]={x:new _f(`${t.id}_x`),y:new _f(`${t.id}_y`)}}));for(let t=0;t0){let e=this.solveDisjunctiveConstraints(i);if(!e.satisfiable)return e.error||null;let r=this.added_constraints.slice(t);console.assert(r.length>0,"Disjunctive solver succeeded but no constraints were added"),this.layout.constraints=this.layout.constraints.concat(r)}this.solver.updateVariables();let o=this.getAlignmentOrders();return this.detectNodeOverlaps()||(this.layout.constraints=this.layout.constraints.concat(o),null)}solveDisjunctiveConstraints(t){this.added_constraints.length;let e=this.backtrackDisjunctions(t,0);return e.satisfiable&&this.added_constraints.length,e}getChosenDisjunctiveConstraints(t){return this.added_constraints.slice(t)}hasObviousConflict(t){let e=new Set,r=new Set;for(let t of this.added_constraints)Cn(t)?e.add(`${t.left.id}:${t.right.id}`):Rn(t)&&r.add(`${t.top.id}:${t.bottom.id}`);for(let n of t)if(Cn(n)){let t=`${n.right.id}:${n.left.id}`;if(e.has(t))return!0}else if(Rn(n)){let t=`${n.bottom.id}:${n.top.id}`;if(r.has(t))return!0}return!1}orderAlternativesByHeuristic(t){let e=[...t];return e.sort(((t,e)=>{if(t.length!==e.length)return t.length-e.length;let r=t.some((t=>In(t)&&("left"===t.side||"right"===t.side))),n=e.some((t=>In(t)&&("left"===t.side||"right"===t.side)));return r&&!n?-1:!r&&n?1:0})),e}backtrackDisjunctions(t,e){if(e>=t.length)return{satisfiable:!0};let r,n=t[e],i=this.orderAlternativesByHeuristic(n.alternatives),o=0,s=0,a=0;for(let n=0;na||g===a&&p>s)&&(o=n,s=p,a=g,f&&(r=f)),this.restoreSolver(u),this.added_constraints=c,console.assert(this.added_constraints.length===h,`Backtracking failed: expected ${h} constraints, got ${this.added_constraints.length}`)}if(r&&a>0)return{satisfiable:!1,error:r};let l=i[o],u=this.getMinimalDisjunctiveConflict(this.added_constraints,l,n.sourceConstraint),c=l[0];if(l.some((t=>In(t)))&&u.existingConstraints.length>0){let t=new Set;l.forEach((e=>{In(e)&&e.group.nodeIds.forEach((e=>t.add(e)))}));let e=u.existingConstraints.find((e=>Cn(e)?t.has(e.left.id)||t.has(e.right.id):Rn(e)?t.has(e.top.id)||t.has(e.bottom.id):!!Ln(e)&&(t.has(e.node1.id)||t.has(e.node2.id))));e&&(c=e)}let h=new Map,d=[...u.existingConstraints,...u.disjunctiveConstraints],p=new Map;for(let t of d){let e=this.getConstraintKey(t);p.has(e)||p.set(e,t)}let f=this.removeTransitiveConstraints(Array.from(p.values()));for(let t of f){let e=t.sourceConstraint;h.has(e)||h.set(e,[]),h.get(e).push(t)}let g=Bf(c),m=new Map;for(let[t,e]of h.entries()){let r=t.toHTML();m.has(r)||m.set(r,[]),e.forEach((t=>{m.get(r).push(Bf(t))}))}return{satisfiable:!1,error:{name:"PositionalConstraintError",type:"positional-conflict",message:`Constraint "${g}" conflicts with existing constraints`,conflictingConstraint:c,conflictingSourceConstraint:n.sourceConstraint,minimalConflictingSet:h,errorMessages:{conflictingConstraint:g,conflictingSourceConstraint:n.sourceConstraint.toHTML(),minimalConflictingConstraints:m}}}}getVarPlusConstant(t,e){let r=`${t.name()}_plus_${e}`,n=this.expressionCache.get(r);return n||(n=t.plus(e),this.expressionCache.set(r,n)),n}getConstraintKey(t){if(Cn(t))return`left:${t.left.id}:${t.right.id}`;if(Rn(t))return`top:${t.top.id}:${t.bottom.id}`;if(Ln(t)){let[e,r]=[t.node1.id,t.node2.id].sort();return`align:${e}:${r}:${t.axis}`}return In(t)?`bbox:${t.node.id}:${t.group.name}:${t.side}`:kn(t)?`groupbound:${t.groupA.name}:${t.groupB.name}:${t.side}`:`unknown:${JSON.stringify(t)}`}areAlignmentsIdentical(t,e){return t.axis===e.axis&&(t.node1.id===e.node1.id&&t.node2.id===e.node2.id||t.node1.id===e.node2.id&&t.node2.id===e.node1.id)}areConstraintsIdentical(t,e){return t===e||(Cn(t)&&Cn(e)?t.left.id===e.left.id&&t.right.id===e.right.id:Rn(t)&&Rn(e)?t.top.id===e.top.id&&t.bottom.id===e.bottom.id:Ln(t)&&Ln(e)?this.areAlignmentsIdentical(t,e):In(t)&&In(e)?t.node.id===e.node.id&&t.group.name===e.group.name&&t.side===e.side:!(!kn(t)||!kn(e))&&t.groupA.name===e.groupA.name&&t.groupB.name===e.groupB.name&&t.side===e.side)}cloneSolver(){let t=new If;this.addBoundingBoxMemberConstraintsToSolver(t);for(let e of this.added_constraints)this.constraintToKiwi(e).forEach((e=>{t.addConstraint(e)}));return t}restoreSolver(t){this.solver=t}validateGroupConstraints(){for(let t=0;t0){let r=n.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t)),i=r.map((t=>t.label&&t.label!==t.id?`${t.label} (${t.id})`:t.id));return{name:"GroupOverlapError",type:"group-overlap",message:`Groups "${e.name}" and "${t.name}" overlap with nodes: ${i.join(", ")}`,group1:e,group2:t,overlappingNodes:r}}}}return null}addGroupBoundingBoxConstraints(){let t=new Map;for(let e of this.nodes)t.set(e.id,new Set);for(let e of this.groups)if(e.nodeIds.length>1&&e.sourceConstraint)for(let r of e.nodeIds)t.get(r)?.add(e);for(let e of this.groups){if(e.nodeIds.length<=1||!e.sourceConstraint)continue;let r=e.nodeIds.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t));if(0===r.length)continue;let n=new Set(e.nodeIds),i=new _f(`${e.name}_bbox_left`),o=new _f(`${e.name}_bbox_right`),s=new _f(`${e.name}_bbox_top`),a=new _f(`${e.name}_bbox_bottom`);this.groupBoundingBoxes.set(e.name,{left:i,right:o,top:s,bottom:a});for(let t of r){let e=this.getNodeIndex(t.id),r=this.variables[e].x,n=this.variables[e].y;this.solver.addConstraint(new Nf(r,Sf.Ge,i,Of.required)),this.solver.addConstraint(new Nf(r,Sf.Le,o,Of.required)),this.solver.addConstraint(new Nf(n,Sf.Ge,s,Of.required)),this.solver.addConstraint(new Nf(n,Sf.Le,a,Of.required))}for(let r of this.nodes){if(n.has(r.id))continue;let i=t.get(r.id);if(i&&i.size>0)continue;let o=e.sourceConstraint,s={group:e,node:r,side:"left",minDistance:this.minPadding,sourceConstraint:o},a={group:e,node:r,side:"right",minDistance:this.minPadding,sourceConstraint:o},l={group:e,node:r,side:"top",minDistance:this.minPadding,sourceConstraint:o},u={group:e,node:r,side:"bottom",minDistance:this.minPadding,sourceConstraint:o},c=new jn(o,[[s],[a],[l],[u]]);this.layout.disjunctiveConstraints||(this.layout.disjunctiveConstraints=[]),this.layout.disjunctiveConstraints.push(c)}}for(let t=0;t0)continue;let i={groupA:r,groupB:n,side:"left",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},o={groupA:r,groupB:n,side:"right",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},s={groupA:r,groupB:n,side:"top",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},a={groupA:r,groupB:n,side:"bottom",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},l=new jn(r.sourceConstraint||n.sourceConstraint,[[i],[o],[s],[a]]);this.layout.disjunctiveConstraints||(this.layout.disjunctiveConstraints=[]),this.layout.disjunctiveConstraints.push(l)}return null}getNodeIndex(t){return this.nodes.findIndex((e=>e.id===t))}deduplicateGroups(t){let e=new Map;for(let r of t){if(r.nodeIds.length<=1){let t=`_singleton_${r.nodeIds[0]||"empty"}_${Math.random()}`;e.set(t,[r]);continue}let t=[...r.nodeIds].sort().join("|");e.has(t)||e.set(t,[]),e.get(t).push(r)}let r=[],n=new Map;for(let t of e.values()){let e=t[0];r.push(e),n.set(e,t),t.length>1&&console.log(`Deduplicating ${t.length} groups with identical members: ${t.map((t=>t.name)).join(", ")}`)}return{dedupedGroups:r,groupMap:n}}addBoundingBoxMemberConstraintsToSolver(t){for(let e of this.groups){if(e.nodeIds.length<=1||!e.sourceConstraint)continue;let r=this.groupBoundingBoxes.get(e.name);if(!r)continue;let n=e.nodeIds.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t));for(let e of n){let n=this.getNodeIndex(e.id),i=this.variables[n].x,o=this.variables[n].y;try{t.addConstraint(new Nf(i,Sf.Ge,r.left,Of.required)),t.addConstraint(new Nf(i,Sf.Le,r.right,Of.required)),t.addConstraint(new Nf(o,Sf.Ge,r.top,Of.required)),t.addConstraint(new Nf(o,Sf.Le,r.bottom,Of.required))}catch{}}}}getMinimalDisjunctiveConflict(t,e,r){return e.some((t=>In(t)))||t.some((t=>In(t)))?this.getMinimalGroupingConflict(t,e):this.getMinimalSimpleConflict(t,e)}getMinimalGroupingConflict(t,e){let r=[...t];if(e.length>0){let n=e[0],i=[...t,n];r=this.isConflictingSet(i)?this.getMinimalConflictingConstraints(t,n):[]}if(r.length<=1&&e.some((t=>In(t)))){let n=new Set;for(let t of e)In(t)&&(n.add(t.node.id),t.group.nodeIds.forEach((t=>n.add(t))));let i=t.filter((t=>Cn(t)?n.has(t.left.id)||n.has(t.right.id):Rn(t)?n.has(t.top.id)||n.has(t.bottom.id):!!Ln(t)&&(n.has(t.node1.id)||n.has(t.node2.id))));i.length>0&&(r=i)}return{existingConstraints:r,disjunctiveConstraints:e}}getMinimalSimpleConflict(t,e){let r=[...t],n=[...e];if(!this.isConflicting(r,n))return{existingConstraints:[],disjunctiveConstraints:e.length>0?[e[0]]:[]};let i=!0;for(;i&&r.length>0;){i=!1;for(let t=r.length-1;t>=0;t--){let e=r.slice(0,t).concat(r.slice(t+1));this.isConflicting(e,n)&&(r=e,i=!0)}}for(i=!0;i&&n.length>0;){i=!1;for(let t=n.length-1;t>=0;t--){let e=n.slice(0,t).concat(n.slice(t+1));this.isConflicting(r,e)&&(n=e,i=!0)}}for(i=!0;i&&r.length>0;){i=!1;for(let t=r.length-1;t>=0;t--){let e=r.slice(0,t).concat(r.slice(t+1));this.isConflicting(e,n)&&(r=e,i=!0)}}return 0===r.length&&0===n.length&&(r=t.length>0?[t[0]]:[],n=e.length>0?[e[0]]:[]),{existingConstraints:r,disjunctiveConstraints:n}}isConflicting(t,e){return this.isConflictingSet([...t,...e])}isConflictingSet(t){let e=new If;try{if(!t.some((t=>In(t)||kn(t)))){for(let r of t)this.constraintToKiwi(r).forEach((t=>e.addConstraint(t)));return e.updateVariables(),!1}{let r=new Map,n=new Set;t.forEach((t=>{In(t)?n.add(t.group.name):kn(t)&&(n.add(t.groupA.name),n.add(t.groupB.name))})),n.forEach((t=>{r.set(t,{left:new _f(`test_${t}_bbox_left`),right:new _f(`test_${t}_bbox_right`),top:new _f(`test_${t}_bbox_top`),bottom:new _f(`test_${t}_bbox_bottom`)})}));let i=this.groupBoundingBoxes;this.groupBoundingBoxes=r;try{this.addBoundingBoxMemberConstraintsToSolver(e);for(let r of t)this.constraintToKiwi(r).forEach((t=>e.addConstraint(t)));return e.updateVariables(),!1}finally{this.groupBoundingBoxes=i}}}catch{return!0}}getMinimalConflictingConstraints(t,e){let r=[...t,e];if(!this.isConflictingSet(r))return[];let n=[...t],i=!0;for(;i&&n.length>0;){i=!1;for(let t=n.length-1;t>=0;t--){let r=n.slice(0,t).concat(n.slice(t+1)),o=[...r,e];this.isConflictingSet(o)&&(n=r,i=!0)}}return n=this.removeTransitiveConstraints(n),n}removeTransitiveConstraints(t){let e=this.removeTransitiveAlignments(t);return e=this.removeTransitiveOrderings(e),e}removeTransitiveOrderings(t){let e=t.filter((t=>Cn(t))),r=t.filter((t=>Rn(t))),n=[...t.filter((t=>!Cn(t)&&!Rn(t)))];return e.length>0&&n.push(...this.transitiveReduction(e,(t=>t.left.id),(t=>t.right.id))),r.length>0&&n.push(...this.transitiveReduction(r,(t=>t.top.id),(t=>t.bottom.id))),n}transitiveReduction(t,e,r){if(t.length<=1)return t;let n=new Map,i=new Map;for(let o of t){let t=e(o),s=r(o);n.has(t)||n.set(t,new Set),n.get(t).add(s),i.set(`${t}->${s}`,o)}let o=new Set;for(let[t,e]of n.entries())o.add(t),e.forEach((t=>o.add(t)));let s=Array.from(o),a=new Map;for(let t of s)a.set(t,new Set(n.get(t)||[]));for(let t of s)for(let e of s)for(let r of s)a.get(e)?.has(t)&&a.get(t)?.has(r)&&a.get(e).add(r);let l=[];for(let i of t){let t=e(i),o=r(i),s=!1,u=n.get(t);if(u&&u.size>1)for(let t of u)if(t!==o&&a.get(t)?.has(o)){s=!0;break}s||l.push(i)}return l}removeTransitiveAlignments(t){let e=t.filter((t=>Ln(t))),r=t.filter((t=>!Ln(t)));if(e.length<=2)return t;let n=new Map;for(let t of e)n.has(t.axis)||n.set(t.axis,[]),n.get(t.axis).push(t);let i=[...r];for(let[t,e]of n.entries()){if(e.length<=2){i.push(...e);continue}let t=new Map;for(let r of e){let e=r.node1.id,n=r.node2.id;t.has(e)||t.set(e,new Set),t.has(n)||t.set(n,new Set),t.get(e).add(n),t.get(n).add(e)}let r=Array.from(t.keys());if(0===r.length)continue;let n=new Set,o=[r[0]];n.add(r[0]);let s=[];for(;o.length>0&&n.sizee.node1.id===r&&e.node2.id===t||e.node2.id===r&&e.node1.id===t));i&&s.push(i)}}i.push(...s)}return i}constraintToKiwi(t){let e=this.kiwiConstraintCache.get(t);if(e)return e;let r=this.convertConstraintToKiwi(t);return this.kiwiConstraintCache.set(t,r),r}convertConstraintToKiwi(t){if(Rn(t)){let e=t,r=e.top,n=e.bottom,i=r.height,o=this.getNodeIndex(r.id),s=this.getNodeIndex(n.id),a=this.variables[o].y,l=this.variables[s].y,u=this.getVarPlusConstant(a,i);return[new Nf(u,Sf.Le,l,Of.required)]}if(Cn(t)){let e=t,r=e.left,n=e.right,i=r.width,o=this.getNodeIndex(r.id),s=this.getNodeIndex(n.id),a=this.variables[o].x,l=this.variables[s].x,u=this.getVarPlusConstant(a,i);return[new Nf(u,Sf.Le,l,Of.required)]}if(Ln(t)){let e=t,r=e.axis,n=e.node1,i=e.node2,o=this.getNodeIndex(n.id),s=this.getNodeIndex(i.id),a=this.variables[o][r],l=this.variables[s][r],u=this.getNodePairKey(n.id,i.id);return"x"===r?(this.verticallyAligned.push([n,i]),this.verticalAlignmentMap.has(u)||this.verticalAlignmentMap.set(u,[]),this.verticalAlignmentMap.get(u).push(e)):"y"===r&&(this.horizontallyAligned.push([n,i]),this.horizontalAlignmentMap.has(u)||this.horizontalAlignmentMap.set(u,[]),this.horizontalAlignmentMap.get(u).push(e)),[new Nf(a,Sf.Eq,l,Of.required)]}if(In(t)){let e=t,r=this.groupBoundingBoxes.get(e.group.name);if(!r)return console.error(`Bounding box not found for group ${e.group.name}`),[];let n=this.getNodeIndex(e.node.id),i=this.variables[n].x,o=this.variables[n].y;switch(e.node.width||e.minDistance,e.node.height||e.minDistance,e.side){case"left":return[new Nf(this.getVarPlusConstant(i,e.minDistance),Sf.Le,r.left,Of.required)];case"right":return[new Nf(i,Sf.Ge,this.getVarPlusConstant(r.right,e.minDistance),Of.required)];case"top":return[new Nf(this.getVarPlusConstant(o,e.minDistance),Sf.Le,r.top,Of.required)];case"bottom":return[new Nf(o,Sf.Ge,this.getVarPlusConstant(r.bottom,e.minDistance),Of.required)];default:return console.error(`Unknown bounding box side: ${e.side}`),[]}}else{if(!kn(t))return[];{let e=t,r=this.groupBoundingBoxes.get(e.groupA.name),n=this.groupBoundingBoxes.get(e.groupB.name);if(!r||!n)return console.error(`Bounding box not found for groups ${e.groupA.name} or ${e.groupB.name}`),[];switch(e.side){case"left":return[new Nf(this.getVarPlusConstant(r.right,e.minDistance),Sf.Le,n.left,Of.required)];case"right":return[new Nf(this.getVarPlusConstant(n.right,e.minDistance),Sf.Le,r.left,Of.required)];case"top":return[new Nf(this.getVarPlusConstant(r.bottom,e.minDistance),Sf.Le,n.top,Of.required)];case"bottom":return[new Nf(this.getVarPlusConstant(n.bottom,e.minDistance),Sf.Le,r.top,Of.required)];default:return console.error(`Unknown group boundary side: ${e.side}`),[]}}}}addConstraintToSolver(t){try{this.constraintToKiwi(t).forEach((t=>{this.solver.addConstraint(t)})),this.added_constraints.push(t)}catch{let e=this.getMinimalConflictingConstraints(this.added_constraints,t),r=new Map,n=new Map;return e.forEach((t=>{let e=t.sourceConstraint;r.has(e)||r.set(e,[]),n.has(e.toHTML())||n.set(e.toHTML(),[]),r.get(e).push(t),n.get(e.toHTML()).push(Bf(t))})),{name:"PositionalConstraintError",type:"positional-conflict",message:`Constraint "${Bf(t)}" conflicts with existing constraints`,conflictingConstraint:t,conflictingSourceConstraint:t.sourceConstraint,minimalConflictingSet:r,errorMessages:{conflictingConstraint:`${Bf(t)}`,conflictingSourceConstraint:`${t.sourceConstraint.toHTML()}`,minimalConflictingConstraints:n}}}return null}getAlignmentOrders(){this.solver.updateVariables(),this.horizontallyAligned=this.normalizeAlignment(this.horizontallyAligned),this.verticallyAligned=this.normalizeAlignment(this.verticallyAligned);let t=[];for(let t=0;tthis.variables[this.getNodeIndex(t.id)].x.value()-this.variables[this.getNodeIndex(e.id)].x.value()));this.horizontallyAligned.forEach((e=>{for(let r=0;r${i.id}`),s=new Mn(o,"Preventing Overlap"),a={left:n,right:i,minDistance:this.minPadding,sourceConstraint:s};t.push(a)}}));for(let t=0;tthis.variables[this.getNodeIndex(t.id)].y.value()-this.variables[this.getNodeIndex(e.id)].y.value()));return this.verticallyAligned.forEach((e=>{for(let r=0;r${i.id}`),s=new Mn(o,"Preventing Overlap"),a={top:n,bottom:i,minDistance:this.minPadding,sourceConstraint:s};t.push(a)}})),t}normalizeAlignment(t){let e=[];for(let r of t){let t=!1;for(let n of e)if(r.some((t=>n.includes(t)))){n.push(...r.filter((t=>!n.includes(t)))),t=!0;break}t||e.push([...r])}let r=!0;for(;r;){r=!1;for(let t=0;te[n].includes(t)))){e[t].push(...e[n].filter((r=>!e[t].includes(r)))),e.splice(n,1),r=!0;break}if(r)break}}return e}isSubGroup(t,e){let r=t.nodeIds,n=e.nodeIds;return r.every((t=>n.includes(t)))}groupIntersection(t,e){let r=t.nodeIds,n=e.nodeIds;return r.filter((t=>n.includes(t)))}getNodePairKey(t,e){return tt.id)));for(let r of this.verticallyAligned){let i=new Set(r.map((t=>t.id))),o=[];for(let t of n)i.has(t)&&o.push(t);if(o.length>=2)for(let r=0;rt.id===o[r])),s=this.nodes.find((t=>t.id===o[n]));t.push({node1:i,node2:s,overlappingNodeIds:o});let a=this.findAlignmentChain(i,s,this.horizontalAlignmentMap),l=this.findAlignmentChain(i,s,this.verticalAlignmentMap);a.forEach((t=>e.add(t))),l.forEach((t=>e.add(t)))}}}if(0===t.length)return null;let r=new Map;for(let t of e){let e=t.sourceConstraint;r.has(e)||r.set(e,[]),r.get(e).push(t)}let n=new Map;for(let[t,e]of r.entries()){let r=t.toHTML();n.has(r)||n.set(r,[]);for(let t of e)n.get(r).push(Bf(t))}let i=t.map((({node1:t,node2:e})=>`${Hf(t)} and ${Hf(e)}`)),o=1===t.length?`Alignment constraints force ${i[0]} to occupy the same position`:`Alignment constraints force multiple node pairs to overlap: ${i.join("; ")}`,s=Array.from(e)[0];return{name:"PositionalConstraintError",type:"positional-conflict",message:o,conflictingConstraint:s,conflictingSourceConstraint:s.sourceConstraint,minimalConflictingSet:r,errorMessages:{conflictingConstraint:Bf(s),conflictingSourceConstraint:s.sourceConstraint.toHTML(),minimalConflictingConstraints:n}}}findAlignmentChain(t,e,r){let n=new Map;for(let[t,e]of r.entries()){let[r,i]=t.split("|");n.has(r)||n.set(r,new Map),n.has(i)||n.set(i,new Map),n.get(r).set(i,e),n.get(i).set(r,e)}let i=new Set,o=[{nodeId:t.id,path:[]}];for(;o.length>0;){let{nodeId:t,path:r}=o.shift();if(t===e.id)return r;if(i.has(t))continue;i.add(t);let s=n.get(t);if(s)for(let[t,e]of s.entries())i.has(t)||o.push({nodeId:t,path:[...r,e[0]]})}return[]}dispose(){this.kiwiConstraintCache.clear(),this.expressionCache.clear(),this.solver=null,this.variables={},this.groupBoundingBoxes.clear()}getMemoryStats(){return{cachedConstraints:this.kiwiConstraintCache.size,cachedExpressions:this.expressionCache.size,variables:Object.keys(this.variables).length,groupBoundingBoxes:this.groupBoundingBoxes.size,addedConstraints:this.added_constraints?.length||0}}}}));t.LayoutInstance=void 0;var Qf,Jf,Zf=d((()=>{var e;Da(),za(),Kn(),ff(),Xf(),zf=class t extends Error{constructor(e,r){let n=r&&"selector"in r?r.selector:void 0;super(`Constraint references node "${e}" that is missing from the layout (it may be hidden).${n?` Selector: ${n}.`:""}`),this.type="unknown-constraint",this.name="MissingNodeConstraintError",this.missingNodeId=e,this.sourceConstraint=r,Object.setPrototypeOf(this,t.prototype)}},(e=Vf||{}).NEVER="never",e.DIRECT="direct",e.CONNECTED="connected",Vf=e,Yf=class{constructor(t,e){this.Path=t,this.LoopsTo=e}expand(t){let e=this.Path.map((t=>t.id));if(!this.LoopsTo)return e;let r=e.findIndex((t=>t===this.LoopsTo.id));if(-1===r)return e;let n=e.slice(0,r),i=e.slice(r);return n.concat(...Array(t).fill(i))}isSubpathOf(t){let e=this.expand(2),r=t.expand(1);if(r.length>e.length)return!1;for(let t=0;t<=e.length-r.length;t++)if(r.every(((r,n)=>r===e[t+n])))return!0;return!1}static areEquivalent(t,e){return t.isSubpathOf(e)&&e.isSubpathOf(t)}},Wf=class t{constructor(t,e,r=0,n=!0,i){this.hideThisEdge="_h_",this.DEFAULT_NODE_ICON_PATH="",this.DEFAULT_NODE_HEIGHT=60,this.DEFAULT_NODE_WIDTH=100,this.minSepHeight=15,this.minSepWidth=15,this.selectorErrors=[],this.instanceNum=r,this.evaluator=e,this._layoutSpec=t,this.alignmentEdgeStrategy=void 0!==i?i:n?"connected":"never"}recordSelectorError(t,e,r){let n=r instanceof Error?r.message:String(r);this.selectorErrors.push({selector:t,context:e,errorMessage:n})}get projectedSigs(){return this._layoutSpec.directives.projections?this._layoutSpec.directives.projections.map((t=>t.sig)):[]}get hideDisconnected(){return this._layoutSpec.directives.hideDisconnected||!1}get hideDisconnectedBuiltIns(){return this._layoutSpec.directives.hideDisconnectedBuiltIns||!1}getConstraintsRelatedToField(t,e,r){return this._layoutSpec.constraints.grouping.byfield.filter((r=>{if(r.field!==t)return!1;if(!r.selector)return!0;try{return this.evaluator.evaluate(r.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(t){return this.recordSelectorError(r.selector,"group by field selector",t),!1}}))}isAttributeField(t,e,r){let n=this._layoutSpec.directives.attributes.filter((e=>e.field===t));if(0===n.length)return!1;if(!e||!r)return n.some((t=>!t.selector&&!t.filter));for(let t of n){let n=!0;if(t.selector)try{n=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(e){this.recordSelectorError(t.selector,"attribute selector",e),n=!1}if(!n)continue;let i=!0;if(t.filter)try{i=this.evaluator.evaluate(t.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(e){this.recordSelectorError(t.filter,"attribute filter",e),i=!1}if(n&&i)return!0}return!1}isHiddenField(t,e,r){let n=this._layoutSpec.directives.hiddenFields.filter((e=>e.field===t));if(n.length>0)if(e&&r)for(let t of n){let n=!0;if(t.selector)try{n=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(e){this.recordSelectorError(t.selector,"hidden field selector",e),n=!1}if(!n)continue;let i=!0;if(t.filter)try{i=this.evaluator.evaluate(t.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(e){this.recordSelectorError(t.filter,"hidden field filter",e),i=!1}if(n&&i)return!0}else if(n.some((t=>!t.selector&&!t.filter)))return!0;return!(!e||!r||!0!==this.findEdgeDirective(t,e,r)?.hidden)}generateGroups(t,e){let r=this._layoutSpec.constraints.grouping.byfield,n=this._layoutSpec.constraints.grouping.byselector;if(!r&&!n)return[];let i=[];for(var o of n){let e,r=o.selector;try{e=this.evaluator.evaluate(r,{instanceIndex:this.instanceNum})}catch(t){this.recordSelectorError(r,"groupBySelector selector",t);continue}let n=e.selectedTwoples();if(n.length>0){let e=function(t,e,r){return"_g_0_1_"+t+":"+e+"->"+r};for(var s of n){let r=s[0],n=s[1],a=t.node(r)?.label||r;a!=r&&(a=a+":"+r);let l=`${o.name}[${a}]`,u=i.find((t=>t.name===l));if(u)u.nodeIds.push(n);else{let s={name:l,nodeIds:[n],keyNodeId:r,showLabel:!0,sourceConstraint:o};if(i.push(s),o.addEdge){let i=e(l,r,n);t.setEdge(r,n,l,i)}}}}else{let t=e.selectedAtoms();if(0===t.length)continue;let r=t[0],n={name:o.name,nodeIds:t,keyNodeId:r,showLabel:!0,sourceConstraint:o};i.push(n)}}return[...t.edges()].forEach((r=>{let n=r.name,o=this.getRelationName(t,r),s=this.getConstraintsRelatedToField(o,r.v,r.w);0!==s.length&&s.forEach((s=>{let a=s.groupOn,l=s.addToGroup,u=this.getFieldTuplesForSourceAndTarget(e,o,r.v,r.w);if(u&&0!==u.length)for(var c of u){let e=c?.length||0;if(e<2||a<0||a>=e||l<0||l>=e)throw new Error(`Invalid grouping. groupOn=${a} and addToGroup=${l} for ${e}-ary relation ${o}. These must be between 0 and ${e-1}.`);let u=c[a],h=c[l],d=c.map(((t,e)=>e===a?t:"_")).join(","),p=`${o}[${d}]`,f=i.find((t=>t.name===p));if(f)f.nodeIds.push(h),t.removeEdge(r.v,r.w,n);else{let e={name:p,nodeIds:[h],keyNodeId:u,showLabel:!0,sourceConstraint:s};i.push(e);let o=`_g_${a}_${l}_`+n;t.removeEdge(r.v,r.w,n),t.setEdge(r.v,r.w,p,o)}}}))})),i}generateAttributesAndRemoveEdges(t){let e={};return[...t.edges()].forEach((r=>{let n=r.name,i=this.getRelationName(t,r),o=r.v,s=r.w,a=this.isAttributeField(i,o,s),l=this.isHiddenField(i,o,s);if(l&&a)throw new Error(`${i} cannot be both an attribute and a hidden field.`);if(l)t.removeEdge(r.v,r.w,n);else if(a){let i=this.getEdgeLabel(t,r),o=r.v,s=r.w,a=t.node(s)?.label||s,l=e[o]||{};l[i]||(l[i]=[],e[o]=l),l[i].push(a),t.removeEdge(r.v,r.w,n)}})),e}generateTagsForNodes(t,e){let r=this._layoutSpec.directives.tags;if(!r||0===r.length)return e;let n={...e},i=new Set(t.nodes());for(let e of r)try{let r=this.evaluator.evaluate(e.toTag,{instanceIndex:this.instanceNum}).selectedAtoms(),o=this.evaluator.evaluate(e.value,{instanceIndex:this.instanceNum}).selectedTuplesAll();for(let s of r){if(!i.has(s))continue;n[s]||(n[s]={});let r=o.filter((t=>t[0]===s));if(0!==r.length)for(let o of r)if(1===o.length){let r=e.name;n[s][r]||(n[s][r]=[]);let i=t.node(s)?.label||s;n[s][r].push(String(i))}else if(2===o.length){let r=e.name;n[s][r]||(n[s][r]=[]);let a=o[o.length-1],l=i.has(String(a))&&t.node(String(a))?.label||String(a);n[s][r].push(l)}else{let r=o.slice(1,-1),a=o[o.length-1],l=r.map((e=>{let r=String(e);return`[${i.has(r)&&t.node(r)?.label||r}]`})).join(""),u=`${e.name}${l}`;n[s][u]||(n[s][u]=[]);let c=i.has(String(a))&&t.node(String(a))?.label||String(a);n[s][u].push(c)}}}catch(t){this.recordSelectorError(`name: ${e.name}, toTag: ${e.toTag}, value: ${e.value}`,"tag directive",t)}return n}ensureNoExtraNodes(t,e){[...t.nodes()].forEach((r=>{try{let n=e.getAtomType(r)?.isBuiltin||!1,i=t.inEdges(r)||[],o=t.outEdges(r)||[],s=0===i.length&&0===o.length&&(this.hideDisconnectedBuiltIns&&n||this.hideDisconnected),a=!1,l=this._layoutSpec.directives.hiddenAtoms;for(let t of l)try{if(this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(r)){a=!0;break}}catch(e){this.recordSelectorError(t.selector,"hideAtom selector",e)}(s||a)&&t.removeNode(r)}catch(t){console.error("Failed to identify node type. Defaulting to showing node.",t)}}))}getMostSpecificType(t,e){return this.getNodeTypes(t,e)[0]}getNodeTypes(t,e){let r=e.getAtomType(t)?.types||[];return r=r.concat("univ"),r}getRelationName(t,e){let r=this.getEdgeLabel(t,e);try{return r.split("[")[0]}catch{return console.warn(`Failed to parse relation name from edge label: ${r}. Defaulting to empty string.`),r}}getEdgeLabel(t,e){return t.edge(e.v,e.w,e.name)}applyLayoutProjections(t,e){let r=this.projectedSigs,n=t.getTypes(),i=r.map((t=>{let e=n.find((e=>e.id===t));if(!e)throw new Error(`Projected type '${t}' not found in data instance`);return e})),o={};i.forEach((t=>{o[t.id]=t.atoms.map((t=>t.id))}));let s=[];Object.entries(o).forEach((([t,r])=>{if(r.length>0)if(e[t])s.push(e[t]);else{let n=r[0];e[t]=n,s.push(n)}}));let a=Object.entries(e).filter((([t])=>r.includes(t))).map((([t,e])=>({type:t,projectedAtom:e,atoms:o[t]})));return{projectedInstance:t.applyProjections(s),finalProjectionChoices:a}}generateLayout(t,e){this.selectorErrors=[];let r=this.applyLayoutProjections(t,e),n=r.projectedInstance,i=r.finalProjectionChoices,o=n.generateGraph(this.hideDisconnected,!1),s=this.generateAttributesAndRemoveEdges(o);s=this.generateTagsForNodes(o,s),this.addinferredEdges(o);let a=this.generateGroups(o,t);this.ensureNoExtraNodes(o,t);let l=this.getNodeIconMap(o),u=this.getNodeColorMap(o,n),c=this.getNodeSizeMap(o),h=this.getDisconnectedNodes(o),d=o.nodes().map((e=>{let r,i=o.node(e)?.label||e,h=u[e]||"black",d=l[e],p=d.path,f=d.showLabels,{height:g,width:m}=c[e]||{height:this.DEFAULT_NODE_HEIGHT,width:this.DEFAULT_NODE_WIDTH},y=this.getMostSpecificType(e,t),_=this.getNodeTypes(e,t),v=a.filter((t=>t.nodeIds.includes(e))).map((t=>t.name)),x=s[e]||{},b=n.getAtoms().find((t=>t.id===e));return b?.labels&&(r=b.labels),{id:e,label:i,name:i,color:h,groups:v,attributes:x,labels:r,icon:p,height:g,width:m,mostSpecificType:y,types:_,showLabels:f}})),p=[],f=0,g=0,m=[],y=[];try{p=this.applyRelativeOrientationConstraints(d,o),f=p.length,p=p.concat(this.applyAlignConstraints(d,o)),g=p.length-f,console.log(`Generated ${f} orientation constraints and ${g} alignment constraints (deduped + transitive reduction applied)`),this.pruneRedundantAlignmentEdges(o),p=function(t){let e=[],r=new Set;for(let n of t){let t;if(Cn(n))t=`left|${n.left.id}|${n.right.id}|${n.minDistance}`;else if(Rn(n))t=`top|${n.top.id}|${n.bottom.id}|${n.minDistance}`;else if(Ln(n)){let[e,r]=[n.node1.id,n.node2.id].sort();t=`align|${n.axis}|${e}|${r}`}else t=`unknown|${JSON.stringify(n)}`;r.has(t)||(r.add(t),e.push(n))}return e}(p),m=this.buildLayoutEdges(o,d),y=this.buildCyclicDisjunctions(d)}catch(t){if(function(t){return t instanceof zf}(t))return this.handleMissingNodeConstraintError(t,{layoutNodes:d,graph:o,groups:a,disconnectedNodes:h,projectionData:i,constraints:p});throw t}let _={nodes:d,edges:m,constraints:p,groups:a,disjunctiveConstraints:y},v=new Gf(_).validateConstraints();if(v){if(v.minimalConflictingSet)return this.handlePositionalConstraintError(v,_,i);if(v.overlappingNodes)return this.handleGroupOverlapError(v,_,i);throw v}p=_.constraints,m=this.filterHiddenEdges(m);let x=h.map((t=>this.singletonGroup(t)));return a=a.concat(x),_.nodes=d,_.edges=m,_.constraints=p,_.groups=a,{layout:_,projectionData:i,error:null,selectorErrors:this.selectorErrors}}handleMissingNodeConstraintError(t,e){let r=this.filterHiddenEdges(this.buildLayoutEdges(e.graph,e.layoutNodes)),n=e.groups.concat(e.disconnectedNodes.map((t=>this.singletonGroup(t))));return{layout:{nodes:e.layoutNodes,edges:r,constraints:e.constraints,groups:n,disjunctiveConstraints:[]},projectionData:e.projectionData,error:t,selectorErrors:this.selectorErrors}}handlePositionalConstraintError(t,e,r){let n=t.minimalConflictingSet;return{layout:{nodes:e.nodes,edges:e.edges,constraints:e.constraints.filter((t=>![...n.values()].flat().includes(t))),groups:e.groups,conflictingConstraints:[...n.values()].flat()},projectionData:r,error:t,selectorErrors:this.selectorErrors}}handleGroupOverlapError(t,e,r){let n=t.overlappingNodes.map((t=>t.groups)).flat(),i=e.groups.filter((t=>n.includes(t.name))),o=i.flatMap((t=>t.nodeIds)),s=e.nodes.filter((t=>o.includes(t.id))),a=e.edges.filter((t=>s.some((e=>t.source.id===e.id))&&s.some((e=>t.target.id===e.id))));return{layout:{nodes:s,edges:a,constraints:e.constraints,groups:i,overlappingNodes:t.overlappingNodes},projectionData:r,error:t,selectorErrors:this.selectorErrors}}buildCyclicDisjunctions(t){let e=this._layoutSpec.constraints.orientation.cyclic,r=[];for(let[,n]of e.entries()){let e;try{e=this.evaluator.evaluate(n.selector,{instanceIndex:this.instanceNum}).selectedTwoples()}catch(t){this.recordSelectorError(n.selector,"cyclic orientation selector",t);continue}let i=new Map;e.forEach((e=>{let r=e[0],n=e[1],o=t.find((t=>t.id===r)),s=t.find((t=>t.id===n));!o||!s||(i.has(o)?i.get(o).push(s):i.set(o,[s]))}));let o=this.getFragmentsToConstrain(i).map((t=>t.Path.map((t=>t.id))));"counterclockwise"===n.direction&&(o=o.map((t=>t.reverse()))),o.forEach((e=>{let i=e.length;if(i<=2)return;let o=[];for(let r=0;rc.x?a.push(this.leftConstraint(i,r,this.minSepWidth,e,n)):s.xc.y?a.push(this.topConstraint(i,r,this.minSepHeight,e,n)):s.y!e.some(((e,n)=>n!r.some(((r,n)=>e!==n&&r.isSubpathOf(t)))))}applyRelativeOrientationConstraints(t,e){let r=[],n=this._layoutSpec.constraints.orientation.relative,i=new Set,o=new Map,s=new Map;return n.forEach((n=>{let a,l=n.directions,u=n.selector;try{a=this.evaluator.evaluate(u,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(u,"orientation selector",t)}a.selectedTwoples().forEach((a=>{let u=a[0],c=a[1];l.forEach((a=>{if(this.shouldAddAlignmentEdge(e,u,c)){let t=`_alignment_${u}_${c}_`;e.setEdge(u,c,t,t)}if("left"==a){let e=`left:${c}:${u}:${this.minSepWidth}`;!i.has(e)&&!this.hasTransitivePath(o,c,u)&&(i.add(e),this.addToTransitiveGraph(o,c,u),r.push(this.leftConstraint(c,u,this.minSepWidth,t,n)))}else if("above"==a){let e=`top:${c}:${u}:${this.minSepHeight}`;!i.has(e)&&!this.hasTransitivePath(s,c,u)&&(i.add(e),this.addToTransitiveGraph(s,c,u),r.push(this.topConstraint(c,u,this.minSepHeight,t,n)))}else if("right"==a){let e=`left:${u}:${c}:${this.minSepWidth}`;!i.has(e)&&!this.hasTransitivePath(o,u,c)&&(i.add(e),this.addToTransitiveGraph(o,u,c),r.push(this.leftConstraint(u,c,this.minSepWidth,t,n)))}else if("below"==a){let e=`top:${u}:${c}:${this.minSepHeight}`;!i.has(e)&&!this.hasTransitivePath(s,u,c)&&(i.add(e),this.addToTransitiveGraph(s,u,c),r.push(this.topConstraint(u,c,this.minSepHeight,t,n)))}else if("directlyLeft"==a){let e=`left:${c}:${u}:${this.minSepWidth}`,s=`align-y:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(o,c,u)&&(i.add(e),this.addToTransitiveGraph(o,c,u),r.push(this.leftConstraint(c,u,this.minSepWidth,t,n))),i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(c,u,t,n)))}else if("directlyAbove"==a){let e=`top:${c}:${u}:${this.minSepHeight}`,o=`align-x:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(s,c,u)&&(i.add(e),this.addToTransitiveGraph(s,c,u),r.push(this.topConstraint(c,u,this.minSepHeight,t,n))),i.has(o)||(i.add(o),r.push(this.ensureSameXConstraint(c,u,t,n)))}else if("directlyRight"==a){let e=`left:${u}:${c}:${this.minSepWidth}`,s=`align-y:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(o,u,c)&&(i.add(e),this.addToTransitiveGraph(o,u,c),r.push(this.leftConstraint(u,c,this.minSepWidth,t,n))),i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(c,u,t,n)))}else if("directlyBelow"==a){let e=`top:${u}:${c}:${this.minSepHeight}`,o=`align-x:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(s,u,c)&&(i.add(e),this.addToTransitiveGraph(s,u,c),r.push(this.topConstraint(u,c,this.minSepHeight,t,n))),i.has(o)||(i.add(o),r.push(this.ensureSameXConstraint(c,u,t,n)))}}))}))})),r}hasTransitivePath(t,e,r){let n=t.get(e);if(!n)return!1;if(n.has(r))return!0;let i=new Set([e]),o=Array.from(n);for(;o.length>0;){let e=o.shift();if(e===r)return!0;if(i.has(e))continue;i.add(e);let n=t.get(e);if(n)for(let t of n)i.has(t)||o.push(t)}return!1}addToTransitiveGraph(t,e,r){t.has(e)||t.set(e,new Set),t.get(e).add(r);let n=t.get(r)||new Set;for(let[i,o]of t.entries())if(i===e||o.has(e)){o.add(r);for(let t of n)o.add(t)}}applyAlignConstraints(t,e){let r=[],n=this._layoutSpec.constraints.alignment,i=new Set;return n.forEach((n=>{let o,s=n.direction,a=n.selector;try{o=this.evaluator.evaluate(a,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(a,"align selector",t)}o.selectedTwoples().forEach((o=>{let a=o[0],l=o[1];if(this.shouldAddAlignmentEdge(e,a,l)){let t=`_alignment_${a}_${l}_`;e.setEdge(a,l,t,t)}if("horizontal"===s){let[e,o]=[a,l].sort(),s=`align-y:${e}:${o}`;i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(a,l,t,n)))}else if("vertical"===s){let[e,o]=[a,l].sort(),s=`align-x:${e}:${o}`;i.has(s)||(i.add(s),r.push(this.ensureSameXConstraint(a,l,t,n)))}}))})),r}shouldAddAlignmentEdge(t,e,r){if("never"===this.alignmentEdgeStrategy)return!1;let n=this.hasDirectEdgeBetween(t,e,r);return"direct"===this.alignmentEdgeStrategy?!n:!n&&!this.isConnectedViaPath(t,e,r)}hasDirectEdgeBetween(t,e,r){return"function"==typeof t.hasEdge&&(t.hasEdge(e,r)||t.hasEdge(r,e))||(t.inEdges(e)||[]).some((t=>t.v===r))||(t.outEdges(e)||[]).some((t=>t.w===r))||(t.inEdges(r)||[]).some((t=>t.v===e))||(t.outEdges(r)||[]).some((t=>t.w===e))}isConnectedViaPath(t,e,r,n){let i=new Set,o=[e];for(;o.length>0;){let e=o.shift();if(e===r)return!0;if(i.has(e))continue;i.add(e);let s=t.outEdges(e)||[],a=t.inEdges(e)||[];for(let t of[...s,...a]){if(n&&(t.v===n.v&&t.w===n.w&&t.name===n.name||t.v===n.w&&t.w===n.v&&t.name===n.name))continue;let r=t.v===e?t.w:t.v;i.has(r)||o.push(r)}}return!1}pruneRedundantAlignmentEdges(t){if("connected"!==this.alignmentEdgeStrategy)return;let e=t.edges().filter((t=>{let e=t.name;return e&&e.includes("_alignment_")})),r=[];for(let n of e)this.isConnectedViaPath(t,n.v,n.w,n)&&(t.removeEdge(n.v,n.w,n.name),r.push(n));r.length>0&&console.log(`Pruned ${r.length} redundant alignment edges out of ${e.length} total alignment edges`)}getDisconnectedNodes(t){let e=t.edges().map((t=>t.w)),r=t.edges().map((t=>t.v)),n=new Set(t.nodes()),i=new Set([...e,...r]);return[...n].filter((t=>!i.has(t)))}buildLayoutEdges(t,e){return t.edges().map((r=>{let n=r.name,i=t.edge(r.v,r.w,n),o=e.find((t=>t.id===r.v)),s=e.find((t=>t.id===r.w)),a=this.getRelationName(t,r),l=this.getEdgeColor(a,r.v,r.w,n),u=this.getEdgeStyle(a,r.v,r.w,n),c=this.getEdgeWeight(a,r.v,r.w,n),h=this.getEdgeShowLabel(a,r.v,r.w,n);return o&&s&&n?{source:o,target:s,label:i,relationName:a,id:n,color:l,style:u,weight:c,showLabel:h}:null})).filter((t=>null!==t))}filterHiddenEdges(t){return t.filter((t=>!t.id.startsWith(this.hideThisEdge)))}getNodeFromId(t,e,r){let n=e.find((e=>e.id===t));if(!n)throw new zf(t,r);return n}leftConstraint(t,e,r,n,i){return{left:this.getNodeFromId(t,n,i),right:this.getNodeFromId(e,n,i),minDistance:r,sourceConstraint:i}}topConstraint(t,e,r,n,i){return{top:this.getNodeFromId(t,n,i),bottom:this.getNodeFromId(e,n,i),minDistance:r,sourceConstraint:i}}ensureSameYConstraint(t,e,r,n){return{axis:"y",node1:this.getNodeFromId(t,r,n),node2:this.getNodeFromId(e,r,n),sourceConstraint:n}}ensureSameXConstraint(t,e,r,n){return{axis:"x",node1:this.getNodeFromId(t,r,n),node2:this.getNodeFromId(e,r,n),sourceConstraint:n}}singletonGroup(e){return{name:`${t.DISCONNECTED_PREFIX}${e}`,nodeIds:[e],keyNodeId:e,showLabel:!1}}getNodeSizeMap(t){let e={},r={width:this.DEFAULT_NODE_WIDTH,height:this.DEFAULT_NODE_HEIGHT};return this._layoutSpec.directives.sizes.forEach((t=>{let r;try{r=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"size selector",e)}let n=t.width,i=t.height;r.forEach((t=>{if(e[t]){let r=e[t];if(r.width!==n||r.height!==i)throw new Error(`Size Conflict: "${t}" cannot have multiple sizes: ${JSON.stringify(r)}, ${JSON.stringify({width:n,height:i})}.`)}e[t]={width:n,height:i}}))})),[...t.nodes()].forEach((t=>{e[t]||(e[t]=r)})),e}getNodeColorMap(t,e){let r={},n=this.getSigColors(e);return this._layoutSpec.directives.atomColors.forEach((t=>{let e;try{e=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"color selector",e)}let n=t.color;e.forEach((t=>{if(r[t]){let e=r[t];if(e!==n)throw new Error(`Color Conflict: "${t}" cannot have multiple colors: ${e}, ${n}.`)}r[t]=n}))})),[...t.nodes()].forEach((t=>{if(!r[t]){let i=this.getMostSpecificType(t,e);r[t]=n[i]}})),r}getNodeIconMap(t){let e={},r=this.DEFAULT_NODE_ICON_PATH;return this._layoutSpec.directives.icons.forEach((t=>{let r;try{r=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"icon selector",e)}let n=t.path;r.forEach((r=>{let i=Pa(n);if(e[r]){let n=e[r];if(n.path!==i||n.showLabels!==t.showLabels)throw new Error(`Icon Conflict: "${r}" cannot have multiple icons: ${JSON.stringify(n)}, ${JSON.stringify({path:i,showLabels:t.showLabels})}.`)}e[r]={path:i,showLabels:t.showLabels}}))})),[...t.nodes()].forEach((t=>{e[t]||(e[t]={path:r,showLabels:!0})})),e}getEdgeColor(t,e,r,n){let i=this.getInferredEdgeDirective(n);if(i?.color)return i.color;let o=this.findEdgeDirective(t,e,r);return o?.color?o.color:"black"}getEdgeStyle(t,e,r,n){return ka(this.getInferredEdgeDirective(n)?.style)||ka(this.findEdgeDirective(t,e,r)?.style)}getEdgeWeight(t,e,r,n){let i=this.getInferredEdgeDirective(n),o=this.normalizeEdgeWeight(i?.weight,"inferred edge");if(void 0!==o)return o;let s=this.findEdgeDirective(t,e,r);return this.normalizeEdgeWeight(s?.weight,"edge")}getEdgeShowLabel(t,e,r,n){return this.findEdgeDirective(t,e,r)?.showLabel}getInferredEdgeDirective(t){let e="_inferred_";return t&&t.includes(e)?this._layoutSpec.directives.inferredEdges.find((r=>t.includes(`${e}<:${r.name}`))):void 0}findEdgeDirective(t,e,r){let n=this._layoutSpec.directives.edgeColors;for(let i of n){if(i.field!==t)continue;let n=!0;if(i.selector)try{n=this.evaluator.evaluate(i.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(t){this.recordSelectorError(i.selector,"edge selector",t),n=!1}if(!n)continue;let o=!0;if(i.filter&&r)try{o=this.evaluator.evaluate(i.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(t){this.recordSelectorError(i.filter,"edge filter",t),o=!1}if(n&&o)return i}}normalizeEdgeWeight(t,e){if(null!=t)return"number"!=typeof t||Number.isNaN(t)||t<=0?void console.warn(`Ignoring ${e} weight because it is not a positive number: ${t}`):t}getSigColors(t){let e={},r=t.getTypes(),n=new Hp(r.length);return r.forEach((t=>{e[t.id]=n.getNextColor()})),e}getFieldTuples(t,e){let r=t.getRelations();Object.values(r);let n=Object.values(r).find((t=>t.name===e));return n?n.tuples.map((t=>t.atoms)):[]}getFieldTuplesForSourceAndTarget(t,e,r,n){return this.getFieldTuples(t,e).filter((t=>{let e=t.length;return!(e<1)&&t[0]===r&&t[e-1]===n}))}addinferredEdges(t){this._layoutSpec.directives.inferredEdges.forEach((e=>{let r;try{r=this.evaluator.evaluate(e.selector,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(e.selector,"inferredEdge selector",t)}let n=r.selectedTuplesAll(),i=`_inferred_<:${e.name}`;n.forEach((r=>{let n=r.length,o=r[0],s=r[n-1],a=e.name;n>2&&(a=`${a}[${r.slice(1,n-1).map((e=>t.node(e)?.label||e)).join(",")}]`);let l=r.join("->"),u=`${i}<:${l}`;t.setEdge(o,s,a,u)}))}))}},Wf.DISCONNECTED_PREFIX="_d_",t.LayoutInstance=Wf})),tg=p(((t,e)=>{var r;if("function"==typeof h)try{r=gn()}catch{}r||(r=window.graphlib),e.exports=r})),eg=p(((t,e)=>{var r=ge();e.exports=function(t){return r(t,5)}})),rg=p(((t,e)=>{var r=_(),n=Ct(),i=vt(),o=P();e.exports=function(t,e,s){if(!o(s))return!1;var a=typeof e;return!!("number"==a?n(s)&&i(e,s.length):"string"==a&&e in s)&&r(s[e],t)}})),ng=p(((t,e)=>{var r=Pr(),n=_(),i=rg(),o=Pt(),s=Object.prototype,a=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var r=-1,l=e.length,u=l>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(l=1);++r{var r=cr(),n=Ct(),i=Lt();e.exports=function(t){return function(e,o,s){var a=Object(e);if(!n(e)){var l=r(o,3);e=i(e),o=function(t){return l(a[t],t,a)}}var u=t(e,o,s);return u>-1?a[l?e[u]:u]:void 0}}})),og=p(((t,e)=>{var r=/\s/;e.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}})),sg=p(((t,e)=>{var r=og(),n=/^\s+/;e.exports=function(t){return t&&t.slice(0,r(t)+1).replace(n,"")}})),ag=p(((t,e)=>{var r=sg(),n=P(),i=Ge(),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var u=s.test(t);return u||a.test(t)?l(t.slice(2),u?2:8):o.test(t)?NaN:+t}})),lg=p(((t,e)=>{var r=ag(),n=1/0;e.exports=function(t){return t?(t=r(t))===n||t===-n?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}})),ug=p(((t,e)=>{var r=lg();e.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}})),cg=p(((t,e)=>{var r=Mr(),n=cr(),i=ug(),o=Math.max;e.exports=function(t,e,s){var a=null==t?0:t.length;if(!a)return-1;var l=null==s?0:i(s);return l<0&&(l=o(a+l,0)),r(t,n(e,3),l)}})),hg=p(((t,e)=>{var r=ig()(cg());e.exports=r})),dg=p(((t,e)=>{var r=Rr();e.exports=function(t){return null!=t&&t.length?r(t,1):[]}})),pg=p(((t,e)=>{var r=ve(),n=Oe(),i=Pt();e.exports=function(t,e){return null==t?t:r(t,n(e),i)}})),fg=p(((t,e)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}})),gg=p(((t,e)=>{var r=ut(),n=xe(),i=cr();e.exports=function(t,e){var o={};return e=i(e,3),n(t,(function(t,n,i){r(o,n,e(t,n,i))})),o}})),mg=p(((t,e)=>{var r=Ge();e.exports=function(t,e,n){for(var i=-1,o=t.length;++i{e.exports=function(t,e){return t>e}})),_g=p(((t,e)=>{var r=mg(),n=yg(),i=Ee();e.exports=function(t){return t&&t.length?r(t,i,n):void 0}})),vg=p(((t,e)=>{var r=ut(),n=_();e.exports=function(t,e,i){(void 0!==i&&!n(t[e],i)||void 0===i&&!(e in t))&&r(t,e,i)}})),xg=p(((t,e)=>{var r=D(),n=qt(),i=pt(),o=Function.prototype,s=Object.prototype,a=o.toString,l=s.hasOwnProperty,u=a.call(Object);e.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=n(t);if(null===e)return!0;var o=l.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&a.call(o)==u}})),bg=p(((t,e)=>{e.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}})),Tg=p(((t,e)=>{var r=ht(),n=Pt();e.exports=function(t){return r(t,n(t))}})),Eg=p(((t,e)=>{var r=vg(),n=jt(),i=ae(),o=Kt(),s=ce(),a=gt(),l=mt(),u=Gr(),c=_t(),h=M(),d=P(),p=xg(),f=Ot(),g=bg(),m=Tg();e.exports=function(t,e,y,_,v,x,b){var T=g(t,y),E=g(e,y),O=b.get(E);if(O)r(t,y,O);else{var S=x?x(T,E,y+"",t,e,b):void 0,N=void 0===S;if(N){var A=l(E),w=!A&&c(E),R=!A&&!w&&f(E);S=E,A||w||R?l(T)?S=T:u(T)?S=o(T):w?(N=!1,S=n(E,!0)):R?(N=!1,S=i(E,!0)):S=[]:p(E)||a(E)?(S=T,a(T)?S=m(T):(!d(T)||h(T))&&(S=s(E))):N=!1}N&&(b.set(E,S),v(S,E,_,x,b),b.delete(E)),r(t,y,S)}}})),Og=p(((t,e)=>{var r=st(),n=vg(),i=ve(),o=Eg(),s=P(),a=Pt(),l=bg();e.exports=function t(e,u,c,h,d){e!==u&&i(u,(function(i,a){if(d||(d=new r),s(i))o(e,u,a,c,t,h,d);else{var p=h?h(l(e,a),i,a+"",e,u,d):void 0;void 0===p&&(p=i),n(e,a,p)}}),a)}})),Sg=p(((t,e)=>{var r=Pr(),n=rg();e.exports=function(t){return r((function(e,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&n(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i{var r=Og(),n=Sg()((function(t,e,n){r(t,e,n)}));e.exports=n})),Ag=p(((t,e)=>{e.exports=function(t,e){return t{var r=mg(),n=Ag(),i=Ee();e.exports=function(t){return t&&t.length?r(t,i,n):void 0}})),Rg=p(((t,e)=>{var r=mg(),n=cr(),i=Ag();e.exports=function(t,e){return t&&t.length?r(t,n(e,2),i):void 0}})),Cg=p(((t,e)=>{var r=C();e.exports=function(){return r.Date.now()}})),Lg=p(((t,e)=>{var r=ct(),n=Ze(),i=vt(),o=P(),s=tr();e.exports=function(t,e,a,l){if(!o(t))return t;for(var u=-1,c=(e=n(e,t)).length,h=c-1,d=t;null!=d&&++u{var r=er(),n=Lg(),i=Ze();e.exports=function(t,e,o){for(var s=-1,a=e.length,l={};++s{var r=Ig(),n=or();e.exports=function(t,e){return r(t,e,(function(e,r){return n(t,r)}))}})),Dg=p(((t,e)=>{var r=dg(),n=Lr(),i=Dr();e.exports=function(t){return i(n(t,void 0,r),t+"")}})),Pg=p(((t,e)=>{var r=kg(),n=Dg()((function(t,e){return null==t?{}:r(t,e)}));e.exports=n})),Mg=p(((t,e)=>{var r=Math.ceil,n=Math.max;e.exports=function(t,e,i,o){for(var s=-1,a=n(r((e-t)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=t,t+=i;return l}})),jg=p(((t,e)=>{var r=Mg(),n=rg(),i=lg();e.exports=function(t){return function(e,o,s){return s&&"number"!=typeof s&&n(e,o,s)&&(o=s=void 0),e=i(e),void 0===o?(o=e,e=0):o=i(o),s=void 0===s?e{var r=jg()();e.exports=r})),Ug=p(((t,e)=>{e.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}})),Fg=p(((t,e)=>{var r=Ge();e.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,l=null===e,u=e==e,c=r(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&t{var r=Fg();e.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,l=n.length;++i=l?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}})),Hg=p(((t,e)=>{var r=Xe(),n=er(),i=cr(),o=mr(),s=Ug(),a=Tt(),l=$g(),u=Ee(),c=mt();e.exports=function(t,e,h){e=e.length?r(e,(function(t){return c(t)?function(e){return n(e,1===t.length?t[0]:t)}:t})):[u];var d=-1;e=r(e,a(i));var p=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++d,value:t}}));return s(p,(function(t,e){return l(t,e,h)}))}})),Bg=p(((t,e)=>{var r=Rr(),n=Hg(),i=Pr(),o=rg(),s=i((function(t,e){if(null==t)return[];var i=e.length;return i>1&&o(t,e[0],e[1])?e=[]:i>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),n(t,r(e,1),[])}));e.exports=s})),qg=p(((t,e)=>{var r=Je(),n=0;e.exports=function(t){var e=++n;return r(t)+e}})),Gg=p(((t,e)=>{e.exports=function(t,e,r){for(var n=-1,i=t.length,o=e.length,s={};++n{var r=ct(),n=Gg();e.exports=function(t,e){return n(t||[],e||[],r)}})),Vg=p(((t,e)=>{var r;if("function"==typeof h)try{r={cloneDeep:eg(),constant:ye(),defaults:ng(),each:Ne(),filter:hr(),find:hg(),flatten:dg(),forEach:Se(),forIn:pg(),has:pr(),isUndefined:gr(),last:fg(),map:yr(),mapValues:gg(),max:_g(),merge:Ng(),min:wg(),minBy:Rg(),now:Cg(),pick:Pg(),range:Kg(),reduce:xr(),sortBy:Bg(),uniqueId:qg(),values:Yr(),zipObject:zg()}}catch{}r||(r=window._),e.exports=r})),Yg=p(((t,e)=>{function r(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}e.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,i)),r=r._prev;return"["+t.join(", ")+"]"}})),Wg=p(((t,e)=>{var r=Vg(),n=tg().Graph,i=Yg();e.exports=function(t,e){if(t.nodeCount()<=1)return[];var l=function(t,e){var o=new n,s=0,l=0;r.forEach(t.nodes(),(function(t){o.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=o.edge(t.v,t.w)||0,n=e(t),i=r+n;o.setEdge(t.v,t.w,i),l=Math.max(l,o.node(t.v).out+=n),s=Math.max(s,o.node(t.w).in+=n)}));var u=r.range(l+s+3).map((function(){return new i})),c=s+1;return r.forEach(o.nodes(),(function(t){a(u,c,o.node(t))})),{graph:o,buckets:u,zeroIdx:c}}(t,e||o),u=function(t,e,r){for(var n,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;n=a.dequeue();)s(t,e,r,n);for(;n=o.dequeue();)s(t,e,r,n);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(n=e[l].dequeue()){i=i.concat(s(t,e,r,n,!0));break}}return i}(l.graph,l.buckets,l.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),l=t.node(r.v);o&&s.push({v:r.v,w:r.w}),l.out-=i,a(e,n,l)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,s=t.node(o);s.in-=i,a(e,n,s)})),t.removeNode(i.v),s}function a(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}})),Xg=p(((t,e)=>{var r=Vg(),n=Wg();e.exports={run:function(t){var e,i="greedy"===t.graph().acyclicer?n(t,(e=t,function(t){return e.edge(t).weight})):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,n[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[s])})),e}(t);r.forEach(i,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}})),Qg=p(((t,e)=>{var r=Vg(),n=tg().Graph;function i(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:i,simplify:function(t){var e=(new n).setGraph(t.graph());return r.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),r.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new n({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),r.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,i=t.x,o=t.y,s=e.x-i,a=e.y-o,l=t.width/2,u=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(s)*u?(a<0&&(u=-u),r=u*s/a,n=u):(s<0&&(l=-l),r=l,n=l*a/s),{x:i+r,y:o+n}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),i(t,"border",o,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}})),Jg=p(((t,e)=>{var r=Vg(),n=Qg();e.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var r=e.v,i=t.node(r).rank,o=e.w,s=t.node(o).rank,a=e.name,l=t.edge(e),u=l.labelRank;if(s!==i+1){var c,h,d;for(t.removeEdge(e),d=0,++i;i{var r=Vg();e.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return(s===Number.POSITIVE_INFINITY||null==s)&&(s=0),o.rank=s}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}})),tm=p(((t,e)=>{var r=Vg(),n=tg().Graph,i=Zg().slack;function o(t,e){return r.forEach(t.nodes(),(function n(o){r.forEach(e.nodeEdges(o),(function(r){var s=r.v,a=o===s?r.w:s;!t.hasNode(a)&&!i(e,r)&&(t.setNode(a,{}),t.setEdge(o,a,{}),n(a))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return i(e,r)}))}function a(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}e.exports=function(t){var e,r,l=new n({directed:!1}),u=t.nodes()[0],c=t.nodeCount();for(l.setNode(u,{});o(l,t){var r=Vg(),n=tm(),i=Zg().slack,o=Zg().longestPath,s=tg().alg.preorder,a=tg().alg.postorder,l=Qg().simplify;function u(t){t=l(t),o(t);var e,r=n(t);for(d(r),c(r,t);e=f(r);)m(r,t,e,g(r,t,e))}function c(t,e){var n=a(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=h(t,e,r)}(t,e,r)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,r.forEach(e.nodeEdges(n),(function(r){var s=r.v===n,l=s?r.w:r.v;if(l!==i){var u=s===o,c=e.edge(r).weight;if(a+=u?c:-c,function(t,e,r){return t.hasEdge(e,r)}(t,n,l)){var h=t.edge(n,l).cutvalue;a+=u?-h:h}}})),a}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var s=n,a=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),a.low=s,a.lim=n++,o?a.parent=o:delete a.parent,n}function f(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var o=n.v,s=n.w;e.hasEdge(o,s)||(o=n.w,s=n.v);var a=t.node(o),l=t.node(s),u=a,c=!1;a.lim>l.lim&&(u=l,c=!0);var h=r.filter(e.edges(),(function(e){return c===y(0,t.node(e.v),u)&&c!==y(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return i(e,t)}))}function m(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),c(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(r){var n=t.node(r).parent,i=e.edge(r,n),o=!1;i||(i=e.edge(n,r),o=!0),e.node(r).rank=e.node(n).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}e.exports=u,u.initLowLimValues=d,u.initCutValues=c,u.calcCutValue=h,u.leaveEdge=f,u.enterEdge=g,u.exchangeEdges=m})),rm=p(((t,e)=>{var r=Zg().longestPath,n=tm(),i=em();e.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){i(t)}(t);break;case"tight-tree":!function(t){r(t),n(t)}(t);break;case"longest-path":o(t)}};var o=r})),nm=p(((t,e)=>{var r=Vg();e.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(o){var s=n;r.forEach(t.children(o),i),e[o]={low:s,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),i=n.edgeObj,o=function(t,e,r,n){var i,o,s=[],a=[],l=Math.min(e[r].low,e[n].low),u=Math.max(e[r].lim,e[n].lim);i=r;do{i=t.parent(i),s.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=n;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,e,i.v,i.w),s=o.path,a=o.lca,l=0,u=s[l],c=!0;r!==i.w;){if(n=t.node(r),c){for(;(u=s[l])!==a&&t.node(u).maxRank{var r=Vg(),n=Qg();function i(t,e,o,s,a,l,u){var c=t.children(u);if(c.length){var h=n.addBorderNode(t,"_bt"),d=n.addBorderNode(t,"_bb"),p=t.node(u);t.setParent(h,u),p.borderTop=h,t.setParent(d,u),p.borderBottom=d,r.forEach(c,(function(r){i(t,e,o,s,a,l,r);var n=t.node(r),c=n.borderTop?n.borderTop:r,p=n.borderBottom?n.borderBottom:r,f=n.borderTop?s:2*s,g=c!==p?1:a-l[u]+1;t.setEdge(h,c,{weight:f,minlen:g,nestingEdge:!0}),t.setEdge(p,d,{weight:f,minlen:g,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:a+l[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:o})}e.exports={run:function(t){var e=n.addDummyNode(t,"root",{},"_root"),o=function(t){var e={};function n(i,o){var s=t.children(i);s&&s.length&&r.forEach(s,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),s=r.max(r.values(o))-1,a=2*s+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var l=function(t){return r.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){i(t,e,a,l,s,o,r)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}})),om=p(((t,e)=>{var r=Vg(),n=Qg();function i(t,e,r,i,o,s){var a={width:0,height:0,rank:s,borderType:e},l=o[e][s-1],u=n.addDummyNode(t,"border",a,r);o[e][s]=u,t.setParent(u,i),l&&t.setEdge(l,u,{weight:1})}e.exports=function(t){r.forEach(t.children(),(function e(n){var o=t.children(n),s=t.node(n);if(o.length&&r.forEach(o,e),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a{var r=Vg();function n(t){r.forEach(t.nodes(),(function(e){i(t.node(e))})),r.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}e.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&n(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();("bt"===e||"rl"===e)&&function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),("lr"===e||"rl"===e)&&(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),n(t))}}})),am=p(((t,e)=>{var r=Vg();e.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]})),s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,(function n(i){if(!r.has(e,i)){e[i]=!0;var s=t.node(i);o[s.rank].push(i),r.forEach(t.successors(i),n)}})),o}})),lm=p(((t,e)=>{var r=Vg();function n(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),s=1;s0;)e%2&&(r+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*r}))),u}e.exports=function(t,e){for(var r=0,i=1;i{var r=Vg();e.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,r){var n=t.edge(r),i=t.node(r.v);return{sum:e.sum+n.weight*i.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}})),cm=p(((t,e)=>{var r=Vg();e.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];!r.isUndefined(e)&&!r.isUndefined(i)&&(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}})),hm=p(((t,e)=>{var r=Vg(),n=Qg();function i(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}e.exports=function(t,e){var o=n.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,a=r.sortBy(o.rhs,(function(t){return-t.i})),l=[],u=0,c=0,h=0;s.sort(function(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}(!!e)),h=i(l,a,h),r.forEach(s,(function(t){h+=t.vs.length,l.push(t.vs),u+=t.barycenter*t.weight,c+=t.weight,h=i(l,a,h)}));var d={vs:r.flatten(l,!0)};return c&&(d.barycenter=u/c,d.weight=c),d}})),dm=p(((t,e)=>{var r=Vg(),n=um(),i=cm(),o=hm();e.exports=function t(e,s,a,l){var u=e.children(s),c=e.node(s),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,p={};h&&(u=r.filter(u,(function(t){return t!==h&&t!==d})));var f=n(e,u);r.forEach(f,(function(n){if(e.children(n.v).length){var i=t(e,n.v,a,l);p[n.v]=i,r.has(i,"barycenter")&&function(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(n,i)}}));var g=i(f,a);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,p);var m=o(g,l);if(h&&(m.vs=r.flatten([h,m.vs,d],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),_=e.node(e.predecessors(d)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+_.order)/(m.weight+2),m.weight+=2}return m}})),pm=p(((t,e)=>{var r=Vg(),n=tg().Graph;e.exports=function(t,e,i){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),s=new n({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(n){var a=t.node(n),l=t.parent(n);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(n),s.setParent(n,l||o),r.forEach(t[i](n),(function(e){var i=e.v===n?e.w:e.v,o=s.edge(i,n),a=r.isUndefined(o)?0:o.weight;s.setEdge(i,n,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(n,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}})),fm=p(((t,e)=>{var r=Vg();e.exports=function(t,e,n){var i,o={};r.forEach(n,(function(r){for(var n,s,a=t.parent(r);a;){if((n=t.parent(a))?(s=o[n],o[n]=a):(s=i,i=a),s&&s!==a)return void e.setEdge(s,a);a=n}}))}})),gm=p(((t,e)=>{var r=Vg(),n=am(),i=lm(),o=dm(),s=pm(),a=fm(),l=tg().Graph,u=Qg();function c(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,s=o(t,i,n,e);r.forEach(s.vs,(function(e,r){t.node(e).order=r})),a(t,n,s.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,r){t.node(e).order=r}))}))}e.exports=function(t){var e=u.maxRank(t),o=c(t,r.range(1,e+1),"inEdges"),s=c(t,r.range(e-1,-1,-1),"outEdges"),a=n(t);d(t,a);for(var l,p=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){h(f%2?o:s,f%4>=2),a=u.buildLayerMatrix(t);var m=i(t,a);m{var r=Vg(),n=tg().Graph,i=Qg();function o(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,s=0,l=e.length,u=r.last(i);return r.forEach(i,(function(e,c){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),d=h?t.node(h).order:l;(h||e===u)&&(r.forEach(i.slice(s,c+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),s=i.order;(sl)&&a(n,e,u)}))}))}return r.reduce(e,(function(e,n){var o,s=-1,a=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(o=t.node(u[0]).order,i(n,a,l,s,o),a=l,s=o)}i(n,a,n.length,o,e.length)})),n})),n}function a(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function u(t,e,n,i){var o={},s={},a={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,s[t]=t,a[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var c=((u=r.sortBy(u,(function(t){return a[t]}))).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var p=u[h];s[t]===t&&e{var r=Vg(),n=Qg(),i=mm().positionX;e.exports=function(t){(function(t){var e=n.buildLayerMatrix(t),i=t.graph().ranksep,o=0;r.forEach(e,(function(e){var n=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+n/2})),o+=n+i}))})(t=n.asNonCompoundGraph(t)),r.forEach(i(t),(function(e,r){t.node(r).x=e}))}})),_m=p(((t,e)=>{var r=Vg(),n=Xg(),i=Jg(),o=rm(),s=Qg().normalizeRanks,a=nm(),l=Qg().removeEmptyRanks,u=im(),c=om(),h=sm(),d=gm(),p=ym(),f=Qg(),g=tg().Graph;e.exports=function(t,e){var N=e&&e.debugTiming?f.time:f.notime;N("layout",(function(){var e=N(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,O(n,m),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=S(t.node(n));e.setNode(n,r.defaults(O(i,v),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},T,O(i,b),r.pick(i,E)))})),e}(t)}));N(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){n.run(t)})),e(" nestingGraph.run",(function(){u.run(t)})),e(" rank",(function(){o(f.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e};f.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){u.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){a(t)})),e(" addBorderSegments",(function(){c(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=f.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){f.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),i=n.x+n.width/2,o=n.y,s=r.x-i,a=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),s=t.node(r.last(n.borderLeft)),a=t.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,l=s.marginy||0;function u(t){var r=t.x,s=t.y,a=t.width,l=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-l/2),o=Math.max(o,s+l/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=a,i-=l,r.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),s.width=n-e+a,s.height=o-i+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var r,n,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=s,n=o),i.points.unshift(f.intersectRect(o,r)),i.points.push(f.intersectRect(s,n))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){n.undo(t)}))}(e,N)})),N(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],v=["width","height"],x={width:0,height:0},b=["minlen","weight","width","height","labeloffset"],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function O(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}})),vm=p(((t,e)=>{var r=Vg(),n=Qg(),i=tg().Graph;e.exports={debugOrdering:function(t){var e=n.buildLayerMatrix(t),o=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){o.setNode(e,{label:e}),o.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){o.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var n="layer"+e;o.setNode(n,{rank:"same"}),r.reduce(t,(function(t,e){return o.setEdge(t,e,{style:"invis"}),e}))})),o}}})),xm=p(((t,e)=>{e.exports="0.8.5"})),bm=p(((t,e)=>{e.exports={graphlib:tg(),layout:_m(),debug:vm(),util:{time:Qg().time,notime:Qg().notime},version:xm()}}));t.WebColaTranslator=void 0;var Tm=d((()=>{Kn(),Zf(),Qf=g(bm()),Jf=class{constructor(t,e=800,r=800,n){if(this.FIG_HEIGHT=e,this.FIG_WIDTH=r,this.DEFAULT_X=r/2,this.DEFAULT_Y=e/2,this.instanceLayout=t,this.priorPositionMap=new Map,n?.priorState?.positions){for(let t of n.priorState.positions)this.priorPositionMap.set(t.id,t);typeof console<"u"&&console.log&&console.log(`WebColaLayout: Using ${this.priorPositionMap.size} prior positions for temporal consistency`)}try{let e=new Qf.graphlib.Graph({multigraph:!0});e.setGraph({nodesep:50,ranksep:100,rankdir:"TB"}),e.setDefaultEdgeLabel((()=>({}))),t.nodes.forEach((t=>{e.setNode(t.id,{width:t.width,height:t.height})})),t.edges.forEach((t=>{e.setEdge(t.source.id,t.target.id)})),Qf.layout(e),this.dagre_graph=e}catch(t){console.log(t),this.dagre_graph=null}this.colaNodes=t.nodes.map((t=>this.toColaNode(t))),this.colaEdges=t.edges.map((t=>this.toColaEdge(t))),this.colaEdges=this.collapseSymmetricEdges(this.colaEdges);let i=this.collapseIdenticalGroups(t.groups);this.groupDefinitions=this.determineGroups(i),this.conflictingConstraints=t.conflictingConstraints||[],this.overlappingNodesData=t.overlappingNodes||[],this.colaConstraints=t.constraints.map((t=>this.toColaConstraint(t)));let o=this.colaConstraints.length;if(typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Generated ${o} constraints for ${this.colaNodes.length} nodes`),o>100){typeof console<"u"&&console.log&&console.log("WebColaTranslator: Constraint count exceeds threshold (100), applying transitive reduction optimization..."),this.colaConstraints=this.optimizeConstraints(this.colaConstraints);let t=this.colaConstraints.length,e=((o-t)/o*100).toFixed(1);typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Reduced constraints from ${o} to ${t} (${e}% reduction)`)}0===this.colaConstraints.length&&this.dagre_graph&&this.colaNodes.forEach((t=>t.fixed=1))}optimizeConstraints(t){let e=[],r=[],n=[];for(let i of t)if("separation"===i.type){let t=i;"x"!==t.axis||t.equality?"y"!==t.axis||t.equality?n.push(i):r.push(t):e.push(t)}else n.push(i);return[...this.transitiveReductionForSeparation(e),...this.transitiveReductionForSeparation(r),...n]}transitiveReductionForSeparation(t){if(0===t.length)return t;let e=this.colaNodes.length,r=Array(e).fill(null).map((()=>Array(e).fill(null)));for(let n of t){let t=n.left,i=n.right;"number"==typeof t&&"number"==typeof i&&t>=0&&t=0&&iArray(e).fill(!1)));for(let t=0;te.id===t))}computeHorizontalSeparation(t,e,r){let n=t.width||100,i=e.width||100,o=n/2+i/2+r,s=Math.max(n,i);return o+Math.min(.1*s,20)}computeVerticalSeparation(t,e,r){let n=t.height||60,i=e.height||60,o=n/2+i/2+r,s=Math.max(n,i);return o+Math.min(.1*s,15)}leftConstraint(t,e,r){return{type:"separation",axis:"x",left:t,right:e,gap:r}}topConstraint(t,e,r){return{type:"separation",axis:"y",left:t,right:e,gap:r}}heirarchyConstraint(t,e,r){return{type:"hierarchy",parent:t,child:e,gap:r}}toColaNode(t){let e=this.DEFAULT_X,r=this.DEFAULT_Y,n=this.priorPositionMap.get(t.id);if(n)e=n.x,r=n.y;else if(this.priorPositionMap.size>0){if(console.log(`Node ${t.id}: No prior position found (available: ${Array.from(this.priorPositionMap.keys()).join(", ")})`),this.dagre_graph){let n=this.dagre_graph.node(t.id);n&&(e=n.x,r=n.y)}}else if(this.dagre_graph){let n=this.dagre_graph.node(t.id);n&&(e=n.x,r=n.y)}return{id:t.id,color:t.color,attributes:t.attributes||{},labels:t.labels,width:t.width,height:t.height,x:e,y:r,icon:t.icon||"",fixed:0,mostSpecificType:t.mostSpecificType,showLabels:t.showLabels,label:t.label}}toColaEdge(t){return{source:this.getNodeIndex(t.source.id),target:this.getNodeIndex(t.target.id),relName:t.relationName,id:t.id,label:t.label,color:t.color,style:t.style,weight:t.weight,showLabel:t.showLabel}}collapseSymmetricEdges(t){let e=new Map,r=new Set;for(let n of t){if(r.has(n.id))continue;let i=`${Math.min(n.source,n.target)}-${Math.max(n.source,n.target)}-${n.label}`,o=t.find((t=>t.source===n.target&&t.target===n.source&&t.label===n.label&&!r.has(t.id)));if(o){let t=n.sourcet.name)).join(" / "),showLabel:i.some((t=>t.showLabel))};r.push(t)}return n>0&&typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Collapsed ${n} duplicate group(s) from ${t.length} to ${r.length}`),r}determineGroups(t){let e={};t.forEach((t=>{e[t.name]=t.nodeIds}));let r=this.determineGroupsAndSubgroups(e);return r.forEach((e=>{let r=t.find((t=>t.name===e.name)),n=r.keyNodeId,i=this.getNodeIndex(n);e.keyNode=i,e.id=r.name,e.showLabel=r.showLabel})),r}isSubGroup(t,e){return t.every((t=>e.includes(t)))}determineGroupsAndSubgroups(e){let r={};Object.entries(e).forEach((([t,n])=>{Object.entries(e).forEach((([e,i])=>{t!==e&&(!r[e]||!r[e].includes(t))&&this.isSubGroup(i,n)&&(r[t]?r[t].push(e):r[t]=[e])}))}));let n=Object.entries(e).map((([e,r])=>{let n=t.LayoutInstance.DISCONNECTED_PREFIX,i=e;return{leaves:r.map((t=>this.getNodeIndex(t))),padding:i.startsWith(n)?30:10,name:i}}));return Object.entries(n).map((([t,e])=>{let i=e.leaves,o=e.padding,s=e.name;if(!r[s])return{leaves:i,padding:o,name:s,groups:[]};let a=r[s].map((t=>n.findIndex((e=>e.name===t))));return a.forEach((t=>{let e=n[t];i=i.filter((t=>!e.leaves.includes(t)))})),{leaves:i,padding:o,name:s,groups:a}}))}get nodes(){return this.colaNodes}get links(){return this.colaEdges}get constraints(){return this.colaConstraints}get groups(){return this.groupDefinitions}get conflictingNodes(){let t=[];return this.conflictingConstraints.forEach((e=>{Cn(e)?(t.push(e.left),t.push(e.right)):Rn(e)?(t.push(e.top),t.push(e.bottom)):Ln(e)&&(t.push(e.node1),t.push(e.node2))})),t}get overlappingNodes(){return this.overlappingNodesData}get overlappingGroups(){if(0===this.overlappingNodesData.length)return[];let t=new Set;return this.groupDefinitions.forEach((e=>{e.leaves.some((t=>this.overlappingNodesData.some((e=>e.id===t.id))))&&t.add(e)})),Array.from(t)}dispose(){this.dagre_graph&&(this.dagre_graph=null)}getMemoryStats(){return{nodeCount:this.colaNodes?.length||0,edgeCount:this.colaEdges?.length||0,groupCount:this.groupDefinitions?.length||0,constraintCount:this.colaConstraints?.length||0,hasDagreGraph:!!this.dagre_graph}}},t.WebColaTranslator=class{async translate(t,e=800,r=800,n){return new Jf(t,r,e,n)}}})),Em={};f(Em,{WebColaCnDGraph:()=>Am});var Om,Sm,Nm,Am,wm,Rm=d((()=>{Tm(),Kn(),Om=window.d3v4||window.d3,Sm=window.cola,Nm=class e extends HTMLElement{constructor(t=!1){super(),this.edgeRouteIdx=0,this.edgeRoutingCache={edgesBetweenNodes:new Map,alignmentEdges:new Set},this.isGridifyingInProgress=!1,this.userHasManuallyZoomed=!1,this.isInitialRender=!0,this.dragStartPositions=new Map,this.isInputModeActive=!1,this.inputModeEnabled=!0,this.inputModeListenersAttached=!1,this.handleInputModeKeydown=t=>{(t.metaKey||t.ctrlKey)&&!this.isInputModeActive&&this.activateInputMode()},this.handleInputModeKeyup=t=>{!t.metaKey&&!t.ctrlKey&&this.isInputModeActive&&this.deactivateInputMode()},this.handleInputModeBlur=()=>{this.isInputModeActive&&this.deactivateInputMode()},this.edgeCreationState={isCreating:!1,sourceNode:null,temporaryEdge:null},this.edgeDragState={isDragging:!1,edge:null,endpoint:null,dragMarker:null},this.textMeasurementCanvas=null,this.attachShadow({mode:"open"}),this.initializeDOM(),this.initializeD3(),this.lineFunction=Om.line().x((t=>t.x)).y((t=>t.y)).curve(Om.curveBasis),this.gridLineFunction=Om.line().x((t=>t.x)).y((t=>t.y)).curve(Om.curveLinear),this.inputModeEnabled=t,this.initializeInputModeHandlers()}get layoutFormat(){return this.getAttribute("layoutFormat")}get isUnsatCore(){return this.hasAttribute("unsat")}isAlignmentEdge(t){return this.edgeRoutingCache.alignmentEdges.size>0?this.edgeRoutingCache.alignmentEdges.has(t.id):t.id.startsWith("_alignment_")}isHiddenNode(t){let e=t.name||t.id;return!!e&&e.startsWith("_")}isErrorNode(t){let e=this.currentLayout.conflictingNodes,r=this.currentLayout.overlappingNodes;if(e.length>0&&r.length>0){let t=e.map((t=>t.id)),n=r.map((t=>t.id));throw new Error(`Layout cannot have both conflictingConstraints (${t}) and overlappingNodes ${n}`)}return[...e,...r].some((e=>e.id===t.id))}isSmallNode(t){let e=1;if(this.svg&&this.svg.node())try{e=Om.zoomTransform(this.svg.node()).k}catch{e=1}let r=(t.width||0)*e,n=(t.height||0)*e;return r<30||n<30}updateSmallNodeClasses(){this.container&&this.container.selectAll(".error-node").each(((t,e,r)=>{let n=Om.select(r[e]);this.isSmallNode(t)?n.classed("small-error-node")||n.classed("small-error-node",!0):n.classed("small-error-node")&&n.classed("small-error-node",!1)}))}getCurrentZoomScale(){if(this.svg&&this.svg.node())try{return Om.zoomTransform(this.svg.node()).k}catch{return 1}return 1}isErrorGroup(t){let e=this.currentLayout.overlappingGroups;if(!e)throw console.error("Overlapping groups data not available in current layout"),new Error("Overlapping groups data not available in current layout");return e.some((e=>e.name===t.name))}isInferredEdge(t){return!!t.id&&t.id.includes("_inferred_")}isDisconnectedGroup(t){return t.name.startsWith(e.DISCONNECTED_NODE_PREFIX)}computeAdaptiveLinkLength(t,e,r){if(!t||0===t.length)return 150;let n=0,i=0,o=0;if(t.forEach((t=>{t&&!this.isHiddenNode(t)&&(n+=t.width||100,i+=t.height||60,o++)})),0===o)return 150;let s=n/o,a=i/o,l=Math.max(s,a),u=0;r&&r.length>0&&r.forEach((t=>{if(t&&t.label){let e=this.measureTextWidth(t.label,12,"system-ui");u=Math.max(u,e)}}));let c=u+15+20,h=Math.max(l+50+c,120);h*=Math.max(.7,1-.1*Math.log10(o));let d=h/(e/5);return Math.max(60,Math.min(d,350))}getScaledDetails(t,e=5,r,n,i){let o,s=e/5,a=this.calculateAdaptiveGroupCompactness(n||[],r?.length||0,s);return o=r&&r.length>0?this.computeAdaptiveLinkLength(r,e,i):250/s,{scaledConstraints:(l=t,l.map((t=>{if("separation"===t.type&&"number"==typeof t.gap){let e=t.gap/s;return{...t,gap:e}}return t}))),linkLength:o,groupCompactness:a};var l}calculateAdaptiveGroupCompactness(t,r,n){let i=e.DEFAULT_GROUP_COMPACTNESS*n;if(!t||0===t.length)return i;let o=this.calculateMaxGroupDepth(t),s=t.length/Math.max(r,1),a=i;return o>2?(a*=10,typeof console<"u"&&console.log&&console.log(`WebCola: Using 10x group compactness for depth ${o} nested groups`)):o>1&&(a*=5),s>.3&&(a*=2,typeof console<"u"&&console.log&&console.log(`WebCola: Using 2x group compactness for high group density (ratio: ${s.toFixed(2)})`)),a}calculateMaxGroupDepth(t){if(!t||0===t.length)return 0;let e=1;for(let r of t)if(r.groups&&Array.isArray(r.groups)&&r.groups.length>0){let n=r.groups.filter((e=>"number"==typeof e&&e>=0&&et[e])).filter((t=>null!=t));if(n.length>0){let t=1+this.calculateMaxGroupDepth(n);e=Math.max(e,t)}}return e}initializeDOM(){let t=this.getBoundingClientRect(),e=t.width||800,r=t.height||600;this.shadowRoot.innerHTML=`\n \n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n ⚠️\n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n `}initializeD3(){Om||(Om=window.d3),this.svg=Om.select(this.shadowRoot.querySelector("#svg")),this.container=this.svg.select(".zoomable"),Om.zoom?(this.zoomBehavior=Om.zoom().scaleExtent([.01,20]).on("start",(()=>{Om.event.sourceEvent&&(this.userHasManuallyZoomed=!0)})).on("zoom",(()=>{this.container.attr("transform",Om.event.transform),this.updateZoomControlStates(),this.updateSmallNodeClasses()})),this.svg.call(this.zoomBehavior),this.initializeZoomControls()):console.warn("D3 zoom behavior not available. Ensure D3 v4+ is loaded.")}initializeZoomControls(){let t=this.shadowRoot.querySelector("#zoom-in"),e=this.shadowRoot.querySelector("#zoom-out"),r=this.shadowRoot.querySelector("#zoom-fit");t&&t.addEventListener("click",(()=>{this.userHasManuallyZoomed=!0,this.zoomIn()})),e&&e.addEventListener("click",(()=>{this.userHasManuallyZoomed=!0,this.zoomOut()})),r&&r.addEventListener("click",(()=>{this.resetViewToFitContent()}));let n=this.shadowRoot.querySelector("#routing-mode");if(n){let t=this.layoutFormat||"default";n.value=t,n.addEventListener("change",(()=>{this.handleRoutingModeChange(n.value)}))}this.updateZoomControlStates()}handleRoutingModeChange(t){this.setAttribute("layoutFormat",t),this.currentLayout&&this.colaLayout&&("grid"===t?this.gridify(10,25,10):this.routeEdges(),this.dispatchEvent(new CustomEvent("routing-mode-changed",{detail:{mode:t}})))}updateRoutingModeDropdown(){let t=this.shadowRoot?.querySelector("#routing-mode");if(t){let e=this.layoutFormat||"default";t.value=e}}initializeInputModeHandlers(){this.inputModeEnabled&&this.attachInputModeListeners()}attachInputModeListeners(){this.inputModeListenersAttached||(document.addEventListener("keydown",this.handleInputModeKeydown),document.addEventListener("keyup",this.handleInputModeKeyup),window.addEventListener("blur",this.handleInputModeBlur),this.inputModeListenersAttached=!0)}detachInputModeListeners(){this.inputModeListenersAttached&&(document.removeEventListener("keydown",this.handleInputModeKeydown),document.removeEventListener("keyup",this.handleInputModeKeyup),window.removeEventListener("blur",this.handleInputModeBlur),this.inputModeListenersAttached=!1)}activateInputMode(){this.isInputModeActive=!0,this.svg&&this.svg.classed("input-mode",!0),this.disableNodeDragging(),this.disableZoom(),this.updateEdgeEndpointMarkers(),this.dispatchEvent(new CustomEvent("input-mode-activated",{detail:{active:!0}}))}deactivateInputMode(){this.isInputModeActive=!1,this.svg&&this.svg.classed("input-mode",!1),this.cleanupEdgeCreation(),this.enableNodeDragging(),this.enableZoom(),this.updateEdgeEndpointMarkers(),this.dispatchEvent(new CustomEvent("input-mode-deactivated",{detail:{active:!1}}))}disableNodeDragging(){this.svgNodes&&this.colaLayout&&this.svgNodes.on(".drag",null)}enableNodeDragging(){if(this.svgNodes&&this.colaLayout&&this.colaLayout.drag){let t=this.colaLayout.drag();this.setupNodeDragHandlers(t),this.svgNodes.call(t)}}disableZoom(){this.svg&&this.zoomBehavior&&(this.storedTransform=Om.zoomTransform(this.svg.node()),this.svg.on(".zoom",null))}enableZoom(){this.svg&&this.zoomBehavior&&(this.svg.call(this.zoomBehavior),this.storedTransform&&this.svg.call(this.zoomBehavior.transform,this.storedTransform))}zoomIn(){this.svg&&this.zoomBehavior&&this.svg.transition().duration(200).call(this.zoomBehavior.scaleBy,1.5)}zoomOut(){this.svg&&this.zoomBehavior&&this.svg.transition().duration(200).call(this.zoomBehavior.scaleBy,1/1.5)}updateZoomControlStates(){if(!this.svg||!this.zoomBehavior)return;let t=Om.zoomTransform(this.svg.node()).k,[e,r]=this.zoomBehavior.scaleExtent(),n=this.shadowRoot.querySelector("#zoom-in"),i=this.shadowRoot.querySelector("#zoom-out");n&&(n.disabled=t>=r),i&&(i.disabled=t<=e)}cleanupEdgeCreation(){this.edgeCreationState.temporaryEdge&&this.edgeCreationState.temporaryEdge.remove(),this.edgeCreationState={isCreating:!1,sourceNode:null,temporaryEdge:null}}setupNodeDragHandlers(t){t.on("start.cnd",(t=>{this.userHasManuallyZoomed=!0;let e={x:t.x,y:t.y};this.dragStartPositions.set(t.id,e),this.dispatchEvent(new CustomEvent("node-drag-start",{detail:{id:t.id,position:e}}))})).on("end.cnd",(t=>{let e=this.dragStartPositions.get(t.id);this.dragStartPositions.delete(t.id);let r={id:t.id,previous:e,current:{x:t.x,y:t.y}};this.dispatchEvent(new CustomEvent("node-drag-end",{detail:r}))}))}startEdgeCreation(t){this.isInputModeActive&&(this.cleanupEdgeCreation(),this.edgeCreationState.isCreating=!0,this.edgeCreationState.sourceNode=t,this.edgeCreationState.temporaryEdge=this.container.append("line").attr("class","temporary-edge").attr("x1",t.x).attr("y1",t.y).attr("x2",t.x).attr("y2",t.y).attr("stroke","#007bff").attr("stroke-width",2).attr("stroke-dasharray","5,5").attr("opacity",.7),this.svg.on("mousemove.edgecreation",(()=>{if(this.edgeCreationState.isCreating&&this.edgeCreationState.temporaryEdge){let[t,e]=Om.mouse(this.container.node());this.edgeCreationState.temporaryEdge.attr("x2",t).attr("y2",e)}})))}async finishEdgeCreation(t){if(!this.isInputModeActive||!this.edgeCreationState.isCreating||!this.edgeCreationState.sourceNode)return;let e=this.edgeCreationState.sourceNode;e.id!==t.id||await this.showConfirmDialog(`Are you sure you want to create a self-loop edge on "${e.label||e.id}"?`)?(this.svg.on("mousemove.edgecreation",null),await this.showEdgeLabelInput(e,t)):this.cleanupEdgeCreation()}async showEdgeLabelInput(t,e){let r=await this.showPromptDialog(`Enter label for edge from "${t.label||t.id}" to "${e.label||e.id}":`,"");null!==r&&await this.createNewEdge(t,e,r||""),this.cleanupEdgeCreation()}async createNewEdge(t,e,r){if(!this.currentLayout)return;let n=this.currentLayout.nodes.findIndex((e=>e.id===t.id)),i=this.currentLayout.nodes.findIndex((t=>t.id===e.id));if(-1===n||-1===i)return void console.error("Could not find node indices for edge creation");let o={id:`edge_${t.id}_${e.id}_${Date.now()}`,source:n,target:i,label:r,relName:r,color:"#333",isUserCreated:!0};this.currentLayout.links.push(o),await this.updateExternalStateForNewEdge(t,e,r),this.dispatchEvent(new CustomEvent("edge-created",{detail:{edge:o,sourceNode:t,targetNode:e}})),this.rerenderGraph()}async updateExternalStateForNewEdge(t,e,r){if(r.trim())try{let n={atoms:[t.id,e.id],types:[t.type||"untyped",e.type||"untyped"]};console.log(`Dispatching edge creation request: ${r}(${t.id}, ${e.id})`);let i=new CustomEvent("edge-creation-requested",{detail:{relationId:r,sourceNodeId:t.id,targetNodeId:e.id,tuple:n},bubbles:!0});this.dispatchEvent(i)}catch(t){console.error("Failed to update external state for new edge:",t)}}rerenderGraph(){!this.currentLayout||!this.colaLayout||(this.colaLayout.links(this.currentLayout.links),this.container.selectAll(".link-group").remove(),this.renderLinks(this.currentLayout.links,this.colaLayout),this.colaLayout.start())}async editEdgeLabel(t){if(!this.isInputModeActive)return;let e=t.label||t.relName||"",r=await this.showEdgeEditDialog("Edit edge label:",e);if("DELETE"!==r){if(null!==r&&r!==e){let n=r,i=this.getNodeFromEdge(t,"source"),o=this.getNodeFromEdge(t,"target");await this.updateExternalStateForEdgeModification(i,o,e,n),t.label=n,t.relName=n,this.dispatchEvent(new CustomEvent("edge-modified",{detail:{edge:t,oldLabel:e,newLabel:n}})),this.rerenderGraph()}}else await this.deleteEdge(t)}getNodeFromEdge(t,e){if(!this.currentLayout)return null;let r="number"==typeof t[e]?t[e]:t[e].index;return this.currentLayout.nodes[r]||null}async updateExternalStateForEdgeModification(t,e,r,n){if(t&&e)try{let i={atoms:[t.id,e.id],types:[t.type||"untyped",e.type||"untyped"]};console.log(`Dispatching edge modification request: ${r} -> ${n}`);let o=new CustomEvent("edge-modification-requested",{detail:{oldRelationId:r,newRelationId:n,sourceNodeId:t.id,targetNodeId:e.id,tuple:i},bubbles:!0});this.dispatchEvent(o)}catch(t){console.error("Failed to update external state for edge modification:",t)}}async renderLayout(r,n){if(!Dn(r))throw new Error("Invalid instance layout provided. Expected an InstanceLayout instance.");let i=n?.priorState,o=i&&i.positions.length>0;if(o||(this.isInitialRender=!0,this.userHasManuallyZoomed=!1),this.svg&&this.zoomBehavior&&Om)try{if(o){let t=Om.zoomIdentity.translate(i.transform.x,i.transform.y).scale(i.transform.k);this.svg.call(this.zoomBehavior.transform,t),console.log(`WebCola: Restored prior state - ${i.positions.length} positions, zoom ${i.transform.k.toFixed(2)}x`)}else{let t=Om.zoomIdentity;this.svg.call(this.zoomBehavior.transform,t)}}catch(t){console.warn("Failed to set zoom transform:",t)}try{if(!Om)throw new Error("D3 library not available. Please ensure D3 v4 is loaded from CDN.");if(!Sm){if(!window.cola)throw new Error("WebCola library not available. Please ensure vendor/cola.js is loaded.");Sm=window.cola}if((!this.container||!this.svg)&&this.initializeD3(),!this.container)throw new Error("Failed to initialize D3 container. SVG elements may not be available.");this.showLoading(),this.updateLoadingProgress("Translating layout...");let s=this.shadowRoot.querySelector("#svg-container").getBoundingClientRect(),a=s.width||800,l=s.height||600,u=await(new t.WebColaTranslator).translate(r,a,l,n);this.updateLoadingProgress(`Computing layout for ${u.nodes.length} nodes...`);let c=u.nodes.length,h=e.INITIAL_UNCONSTRAINED_ITERATIONS,d=e.INITIAL_USER_CONSTRAINT_ITERATIONS,p=e.INITIAL_ALL_CONSTRAINTS_ITERATIONS;o&&(h=0,d=Math.min(10,d),p=Math.min(20,p),console.log(`WebCola: Using minimal iterations to preserve ${i.positions.length} prior positions`)),c>100?(h=Math.max(o?0:5,Math.floor(.5*h)),d=Math.max(25,Math.floor(.5*d)),p=Math.max(100,Math.floor(.5*p))):c>50&&(h=Math.max(o?0:8,Math.floor(.8*h)),d=Math.max(40,Math.floor(.8*d)),p=Math.max(150,Math.floor(.75*p)));let{scaledConstraints:f,linkLength:g,groupCompactness:m}=this.getScaledDetails(u.constraints,5,u.nodes,u.groups,u.links);this.updateLoadingProgress("Applying constraints and initializing...");let y=o?.1:.001,_=Sm.d3adaptor(Om).linkDistance(g).convergenceThreshold(y).avoidOverlaps(!0).handleDisconnected(!0).nodes(u.nodes).links(u.links).constraints(f).groups(u.groups).groupCompactness(m).size([u.FIG_WIDTH,u.FIG_HEIGHT]);this.currentLayout=u,this.colaLayout=_,this.container.selectAll("*").remove(),this.renderGroups(u.groups,_),this.renderLinks(u.links,_),this.renderNodes(u.nodes,_);let v=0,x=h+d+p;_.on("tick",(()=>{if(v++,v%20==0){let t=Math.min(95,Math.round(v/x*100));this.updateLoadingProgress(`Computing layout... ${t}%`)}"default"!==this.layoutFormat&&this.layoutFormat&&null!==this.layoutFormat?"grid"===this.layoutFormat?this.gridUpdatePositions():console.warn(`Unknown layout format: ${this.layoutFormat}. Skipping position updates.`):this.updatePositions()})).on("end",(()=>{this.updateLoadingProgress("Finalizing..."),"default"!==this.layoutFormat&&this.layoutFormat?"grid"===this.layoutFormat?this.gridify(10,25,10):console.warn(`Unknown layout format: ${this.layoutFormat}. Skipping edge routing.`):this.routeEdges(),this.isUnsatCore&&this.showErrorIcon(),this.dispatchRelationsAvailableEvent(),this.dispatchEvent(new CustomEvent("layout-complete",{detail:{nodePositions:this.getNodePositions()}})),this.updateRoutingModeDropdown(),this.hideLoading()}));try{_.start(h,d,p,e.GRID_SNAP_ITERATIONS)}catch(t){console.warn("WebCola layout start encountered an error, trying alternative approach:",t);try{_.start()}catch(t){throw console.error("Both WebCola start methods failed:",t),new Error(`WebCola layout failed to start: ${t.message}`)}}}catch(t){console.error("Error rendering layout:",t),this.showError(`Layout rendering failed: ${t.message}`)}}clear(){if(this.colaLayout)try{this.colaLayout.stop?.()}catch{}this.container&&this.container.selectAll("*").remove(),this.currentLayout=null,this.colaLayout=null,this.svgNodes=null,this.svgLinks=null,this.svgGroups=null,this.edgeRoutingCache.edgesBetweenNodes.clear(),this.edgeRoutingCache.alignmentEdges.clear(),this.dragStartPositions.clear()}getNodePositions(){return this.currentLayout?.nodes?this.currentLayout.nodes.map((t=>({id:t.id,x:t.x,y:t.y}))):[]}getCurrentTransform(){if(this.svg&&this.svg.node())try{let t=Om.zoomTransform(this.svg.node());return{k:t.k,x:t.x,y:t.y}}catch{return{k:1,x:0,y:0}}return{k:1,x:0,y:0}}getLayoutState(){return{positions:this.getNodePositions(),transform:this.getCurrentTransform()}}addToolbarControl(t){let e=this.shadowRoot?.querySelector("#graph-toolbar");e&&e.appendChild(t)}getToolbar(){return this.shadowRoot?.querySelector("#graph-toolbar")||null}renderGroups(t,e){this.currentLayout.nodes&&0!==this.currentLayout.nodes.length?this.svgGroups=this.setupGroups(t,this.currentLayout.nodes,e):console.warn("Cannot render groups: nodes not available")}setupLinks(t,e){let r=this.container.selectAll(".link-group").data(t).enter().append("g").attr("class","link-group");return this.setupLinkPaths(r),this.setupLinkLabels(r),this.setupEdgeEndpointMarkers(r),r}setupLinkPaths(t){t.append("path").attr("class",(t=>this.isAlignmentEdge(t)?"alignmentLink":this.isInferredEdge(t)?"inferredLink":"link")).attr("data-link-id",(t=>t.id||"")).attr("stroke",(t=>t.color)).attr("fill","none").style("stroke-width",(t=>null!=t.weight?`${t.weight}px`:null)).attr("stroke-dasharray",(t=>this.getEdgeDasharray(t.style))).attr("marker-end",(t=>this.isAlignmentEdge(t)?"none":"url(#end-arrow)")).attr("marker-start",(t=>this.isAlignmentEdge(t)||!t.bidirectional?"none":"url(#start-arrow)")).on("click.inputmode",(t=>{this.isInputModeActive&&!this.isAlignmentEdge(t)&&(Om.event.stopPropagation(),this.editEdgeLabel(t).catch((t=>{console.error("Error editing edge label:",t)})))})).style("cursor",(()=>this.isInputModeActive?"pointer":"default"))}getEdgeDasharray(t){if(!t)return null;switch(t.toLowerCase()){case"dotted":return"1,4";case"dashed":return"6,4";default:return null}}setupLinkLabels(t){t.filter((t=>!this.isAlignmentEdge(t)&&(this.isInferredEdge(t)||!1!==t.showLabel))).append("text").attr("class","linklabel").attr("text-anchor","middle").attr("dominant-baseline","middle").attr("font-family","system-ui").attr("pointer-events","none").text((t=>t.label||t.relName||""))}setupEdgeEndpointMarkers(t){t.filter((t=>!this.isAlignmentEdge(t))).append("circle").attr("class","edge-endpoint-marker target-marker").attr("r",8).attr("fill","#007bff").attr("stroke","white").attr("stroke-width",2).attr("opacity",0).attr("cursor","move").style("pointer-events","none").call(Om.drag().on("start",(t=>this.startEdgeEndpointDrag(t,"target"))).on("drag",(t=>this.dragEdgeEndpoint(t,"target"))).on("end",(t=>this.endEdgeEndpointDrag(t,"target")))),t.filter((t=>!this.isAlignmentEdge(t))).append("circle").attr("class","edge-endpoint-marker source-marker").attr("r",8).attr("fill","#28a745").attr("stroke","white").attr("stroke-width",2).attr("opacity",0).attr("cursor","move").style("pointer-events","none").call(Om.drag().on("start",(t=>this.startEdgeEndpointDrag(t,"source"))).on("drag",(t=>this.dragEdgeEndpoint(t,"source"))).on("end",(t=>this.endEdgeEndpointDrag(t,"source"))))}startEdgeEndpointDrag(t,e){Om.event.sourceEvent.stopPropagation(),this.edgeDragState.isDragging=!0,this.edgeDragState.edge=t,this.edgeDragState.endpoint=e,console.log(`🔵 Started dragging ${e} endpoint of edge:`,t.id)}dragEdgeEndpoint(t,e){if(!this.edgeDragState.isDragging)return;let[r,n]=Om.mouse(this.container.node()),i="target"===e?".target-marker":".source-marker";this.container.selectAll(".link-group").filter((e=>e.id===t.id)).select(i).attr("cx",r).attr("cy",n)}async endEdgeEndpointDrag(t,e){if(!this.edgeDragState.isDragging)return;let[r,n]=Om.mouse(this.container.node()),i=this.findNodeAtPosition(r,n);i?(console.log(`🔗 Reconnecting ${e} to node:`,i.id),await this.reconnectEdge(t,e,i)):(console.log("🗑️ No node found - deleting edge:",t.id),await this.deleteEdge(t)),this.edgeDragState={isDragging:!1,edge:null,endpoint:null,dragMarker:null},this.rerenderGraph()}findNodeAtPosition(t,e){if(!this.currentLayout?.nodes)return null;for(let r of this.currentLayout.nodes){let n=(r.width||0)/2,i=(r.height||0)/2;if(t>=r.x-n&&t<=r.x+n&&e>=r.y-i&&e<=r.y+i)return r}return null}async reconnectEdge(t,e,r){let n,i,o=this.getNodeFromEdge(t,"source"),s=this.getNodeFromEdge(t,"target");if(!o||!s)return void console.error("Could not find source or target node");if("source"===e?(n=r,i=s):(n=o,i=r),n.id===o.id&&i.id===s.id)return void console.log("⏭️ Edge already connected to this node, no change needed");let a=t.label||t.relName||"";if(!a.trim())return void console.warn("Edge has no relation name, cannot reconnect");let l={atoms:[o.id,s.id],types:[o.type||"untyped",s.type||"untyped"]},u={atoms:[n.id,i.id],types:[n.type||"untyped",i.type||"untyped"]};console.log(`🔄 Reconnecting edge from ${o.id}->${s.id} to ${n.id}->${i.id}`);let c=new CustomEvent("edge-reconnection-requested",{detail:{relationId:a,oldTuple:l,newTuple:u,oldSourceNodeId:o.id,oldTargetNodeId:s.id,newSourceNodeId:n.id,newTargetNodeId:i.id},bubbles:!0});this.dispatchEvent(c);let h=this.currentLayout.nodes.findIndex((t=>t.id===n.id)),d=this.currentLayout.nodes.findIndex((t=>t.id===i.id));-1!==h&&-1!==d&&(t.source=h,t.target=d)}async deleteEdge(t){let e=this.getNodeFromEdge(t,"source"),r=this.getNodeFromEdge(t,"target");if(!e||!r)return void console.error("Could not find source or target node for edge deletion");let n=t.label||t.relName||"";if(!n.trim())return console.warn("Edge has no relation name, cannot delete from data instance"),void this.removeEdgeFromLayout(t);let i={atoms:[e.id,r.id],types:[e.type||"untyped",r.type||"untyped"]};console.log(`🗑️ Deleting edge: ${n}(${e.id}, ${r.id})`);let o=new CustomEvent("edge-modification-requested",{detail:{oldRelationId:n,newRelationId:"",sourceNodeId:e.id,targetNodeId:r.id,tuple:i},bubbles:!0});this.dispatchEvent(o),this.removeEdgeFromLayout(t)}removeEdgeFromLayout(t){if(!this.currentLayout?.links)return;let e=this.currentLayout.links.findIndex((e=>e.id===t.id));-1!==e&&(this.currentLayout.links.splice(e,1),console.log(`✅ Edge removed from layout: ${t.id}`))}setupGroups(t,e,r){let n=this.setupGroupRectangles(t,e,r);return this.svgGroupLabels=this.setupGroupLabels(t,r),n}setupGroupRectangles(t,r,n){return this.container.selectAll(".group").data(t).enter().append("rect").attr("class",(t=>this.isDisconnectedGroup(t)?"disconnectedNode":this.isErrorGroup(t)?"error-group":"group")).attr("rx",e.GROUP_BORDER_RADIUS).attr("ry",e.GROUP_BORDER_RADIUS).style("fill",(t=>this.isDisconnectedGroup(t)?"transparent":r[t.keyNode]?.color||"#cccccc")).attr("fill-opacity",e.GROUP_FILL_OPACITY).attr("stroke",(t=>this.isDisconnectedGroup(t)?"none":r[t.keyNode]?.color||"#999999")).attr("stroke-width",1).call(n.drag)}setupGroupLabels(t,r){return this.container.selectAll(".groupLabel").data(t).enter().append("text").attr("class","groupLabel").attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("font-family","system-ui").attr("font-size","12px").attr("font-weight","bold").attr("fill","#333").attr("pointer-events","none").text((t=>t.showLabel?(t.padding&&(t.padding=Math.max(t.padding,e.GROUP_LABEL_PADDING)),t.name||""):"")).call(r.drag)}renderLinks(t,e){this.svgLinkGroups=this.setupLinks(t,e)}setupNodes(t,e){let r=e.drag();this.setupNodeDragHandlers(r);let n=this.container.selectAll(".node").data(t).enter().append("g").attr("class",(t=>{let e=this.isErrorNode(t)?"error-node":"node";return this.isErrorNode(t)&&this.isSmallNode(t)?e+" small-error-node":e})).call(r).on("mousedown.inputmode",(t=>{this.isInputModeActive&&(Om.event.stopPropagation(),this.startEdgeCreation(t))})).on("mouseup.inputmode",(t=>{this.isInputModeActive&&this.edgeCreationState.isCreating&&(Om.event.stopPropagation(),this.finishEdgeCreation(t).catch((t=>{console.error("Error finishing edge creation:",t)})))})).on("mouseover",(function(t){Om.select(this).append("title").attr("class","node-tooltip").text(`ID: ${t.id}`)})).on("mouseout",(function(){Om.select(this).select("title.node-tooltip").remove()}));return this.setupNodeRectangles(n),this.setupNodeIcons(n),this.setupMostSpecificTypeLabels(n),this.setupNodeLabels(n),n}setupNodeRectangles(t){t.append("rect").attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("x",(t=>-t.width/2)).attr("y",(t=>-t.height/2)).attr("stroke",(t=>t.color||"black")).attr("rx",e.NODE_BORDER_RADIUS).attr("ry",e.NODE_BORDER_RADIUS).attr("stroke-width",e.NODE_STROKE_WIDTH).attr("fill",(t=>{let e=this.isHiddenNode(t),r=!!t.icon,n=t.showLabels;return e||r&&!n?"transparent":"white"}))}setupNodeIcons(t){t.filter((t=>t.icon)).append("image").attr("xlink:href",(t=>t.icon)).attr("width",(t=>t.showLabels?t.width*e.SMALL_IMG_SCALE_FACTOR:t.width)).attr("height",(t=>t.showLabels?t.height*e.SMALL_IMG_SCALE_FACTOR:t.height)).attr("x",(t=>{let r=t.width;return t.showLabels?t.x+r-r*e.SMALL_IMG_SCALE_FACTOR:t.x-r/2})).attr("y",(t=>{let e=t.height;return t.y-e/2})).append("title").text((t=>t.label||t.name||t.id||"Node")).on("error",(function(t,e){Om.select(this).attr("xlink:href","img/default.png"),console.error(`Failed to load icon for node ${e.id}: ${e.icon}`)}))}setupMostSpecificTypeLabels(t){t.append("text").attr("class","mostSpecificTypeLabel").style("fill",(t=>t.color||"black")).text((t=>t.mostSpecificType||""))}getTextMeasurementContext(){return this.textMeasurementCanvas||(this.textMeasurementCanvas=document.createElement("canvas")),this.textMeasurementCanvas.getContext("2d")}measureTextWidth(t,e,r="system-ui"){let n=this.getTextMeasurementContext();return n.font=`${e}px ${r}`,n.measureText(t).width}calculateOptimalFontSize(t,r,n,i="system-ui"){let o=e.DEFAULT_FONT_SIZE;for(;o>e.MIN_FONT_SIZE;){let s=this.measureTextWidth(t,o,i),a=o*e.LINE_HEIGHT_RATIO;if(s<=r&&a<=n)break;o-=.5}for(;or||l>n)break;o=s}return Math.max(e.MIN_FONT_SIZE,Math.min(o,e.MAX_FONT_SIZE))}wrapText(t,e,r,n="system-ui"){let i=t.split(/\s+/),o=[],s="";for(let t of i){let i=s?`${s} ${t}`:t;this.measureTextWidth(i,r,n)<=e?s=i:s?(o.push(s),s=t):o.push(t)}return s&&o.push(s),o}setupNodeLabelsWithDynamicSizing(t){t.append("text").attr("class","label").attr("text-anchor","middle").attr("dominant-baseline","middle").attr("font-family","system-ui").attr("fill","black").each(((t,r,n)=>{if(this.isHiddenNode(t)||!t.showLabels)return;let i=Om.select(n[r]),o=t.width||100,s=t.height||60,a=o-2*e.TEXT_PADDING,l=s-2*e.TEXT_PADDING,u=t.label||t.name||t.id||"Node",c=t.attributes||{},h=Object.entries(c).sort((([t],[e])=>t.localeCompare(e))),d=t.labels||{},p=Object.entries(d),f=p.length>0,g=h.length>0,m=f||g,y=m?.5*l:l,_=this.calculateOptimalFontSize(u,a,y,"system-ui");i.attr("font-size",`${_}px`);let v=_*e.LINE_HEIGHT_RATIO,x=p.length+h.length,b=m?-x*v*.5:0;t._labelVerticalOffset=b,t._labelLineHeight=v,i.append("tspan").attr("x",0).attr("dy",`${b}px`).attr("class","main-label-tspan").style("font-weight","bold").style("font-size",`${_}px`).text(u);let T="";for(let[t,e]of p){let t=Array.isArray(e)?e.join(", "):String(e);t.length>T.length&&(T=t)}for(let[t,e]of h){let r=`${t}: ${e}`;r.length>T.length&&(T=r)}let E=.65*_,O=l-v,S=x>0?this.calculateOptimalFontSize(T||"SampleText",a,O/x,"system-ui"):.8*_,N=Math.max(S,E);if(f){let t="black";for(let[r,n]of p){let r=Array.isArray(n)?n.join(", "):String(n);i.append("tspan").attr("x",0).attr("dy",N*e.LINE_HEIGHT_RATIO+"px").style("font-size",`${N}px`).style("fill",t).style("font-style","italic").text(r)}}if(g)for(let t=0;t!!t.leaves&&t.leaves.some((t=>t.id===e.id))))}getNodeIndex(t){return this.currentLayout?.nodes?this.currentLayout.nodes.findIndex((e=>e.id===t.id)):-1}updatePositions(){this.svgGroups.attr("x",(t=>t.bounds.x)).attr("y",(t=>t.bounds.y)).attr("width",(t=>t.bounds.width())).attr("height",(t=>t.bounds.height())).lower(),this.svgNodes.select("rect").each((t=>{t.bounds&&(t.innerBounds=t.bounds.inflate(-1))})).attr("x",(t=>t.bounds.x)).attr("y",(t=>t.bounds.y)).attr("width",(t=>t.bounds.width())).attr("height",(t=>t.bounds.height())),this.svgNodes.select("image").attr("x",(t=>t.showLabels?t.x+t.width/2-t.width*e.SMALL_IMG_SCALE_FACTOR:t.bounds.x)).attr("y",(t=>t.showLabels?t.y-t.height/2:t.bounds.y)),this.svgNodes.select(".mostSpecificTypeLabel").attr("x",(t=>t.x-(t.width||0)/2+5)).attr("y",(t=>t.y-(t.height||0)/2+10)).raise(),this.svgNodes.select(".label").attr("x",(t=>t.x)).attr("y",(t=>t.y)).each(((t,e,r)=>{let n=t._labelVerticalOffset||0,i=t._labelLineHeight||12;Om.select(r[e]).selectAll("tspan").attr("x",t.x).attr("dy",((t,e)=>0===e?`${n}px`:`${i}px`))})).raise(),this.svgLinkGroups.select("path").attr("d",(t=>{let e=t.source,r=t.target;if(t.id?.startsWith("_g_")){let{groupOnIndex:n,addToGroupIndex:i}=this.getGroupOnAndAddToGroupIndices(t.id),o=n>=i;if(nt.keyNode===this.getNodeIndex(e)));t&&(r=t)}else if(o){let t=this.getContainingGroups(this.currentLayout?.groups||[],e).find((t=>t.keyNode===this.getNodeIndex(r)));t&&(e=t)}}let n=this.getStableEdgePath(e,r);return this.lineFunction(n)})).attr("marker-end",(t=>this.isAlignmentEdge(t)?"none":"url(#end-arrow)")).attr("marker-start",(t=>this.isAlignmentEdge(t)||!t.bidirectional?"none":"url(#start-arrow)")).raise(),this.svgLinkGroups.select(".linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?this.calculateNewPosition(e,"x"):(t.source.x+t.target.x)/2})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?this.calculateNewPosition(e,"y"):(t.source.y+t.target.y)/2})).style("font-size",(()=>{let t=this.getCurrentZoomScale(),e=t<1?12/Math.sqrt(t):12;return`${Math.min(e,16)}px`})).raise(),this.updateEdgeEndpointMarkers(),this.svgGroupLabels.attr("x",(t=>t.bounds?t.bounds.x+t.bounds.width()/2:0)).attr("y",(t=>t.bounds?t.bounds.y+5:0)).attr("text-anchor","middle").lower(),this.svgLinkGroups.selectAll("marker").raise(),this.svgLinkGroups.selectAll(".linklabel").raise(),this.svgGroups.selectAll(".error-group").raise(),this.svgNodes.selectAll(".error-node").raise()}updateEdgeEndpointMarkers(){this.svgLinkGroups&&(this.svgLinkGroups.select(".target-marker").attr("cx",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t).x}return t.target.x||0})).attr("cy",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t).y}return t.target.y||0})).attr("opacity",this.isInputModeActive?.8:0).style("pointer-events",this.isInputModeActive?"all":"none").raise(),this.svgLinkGroups.select(".source-marker").attr("cx",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?e.getPointAtLength(0).x:t.source.x||0})).attr("cy",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?e.getPointAtLength(0).y:t.source.y||0})).attr("opacity",this.isInputModeActive?.8:0).style("pointer-events",this.isInputModeActive?"all":"none").raise())}gridUpdatePositions(){this.ensureNodeBounds(!0);let t=this.container.selectAll(".node"),r=this.container.selectAll(".mostSpecificTypeLabel"),n=this.container.selectAll(".label"),i=this.container.selectAll(".group"),o=this.container.selectAll(".groupLabel");t.select("rect").each((function(t){t.innerBounds=t.bounds.inflate(-1)})).attr("x",(function(t){return t.bounds.x})).attr("y",(function(t){return t.bounds.y})).attr("width",(function(t){return t.bounds.width()})).attr("height",(function(t){return t.bounds.height()})),t.select("image").attr("x",(function(t){return t.showLabels?t.x+t.width/2-t.width*e.SMALL_IMG_SCALE_FACTOR:t.bounds.x})).attr("y",(function(t){return t.showLabels?t.y-t.height/2:t.bounds.y})),r.attr("x",(function(t){return t.bounds.x+5})).attr("y",(function(t){return t.bounds.y+10})).raise(),n.attr("x",(t=>t.x)).attr("y",(t=>t.y)).each((function(t){var e=0;Om.select(this).selectAll("tspan").attr("x",t.x).attr("dy",(function(){return 1===(e+=1)?"0em":"1em"}))})).raise(),i.attr("x",(function(t){return t.bounds.x})).attr("y",(function(t){return t.bounds.y})).attr("width",(function(t){return t.bounds.width()})).attr("height",(function(t){return t.bounds.height()})).lower(),o.attr("x",(function(t){return t.bounds.x+t.bounds.width()/2})).attr("y",(function(t){return t.bounds.y+12})).attr("text-anchor","middle").raise();let s=this.container.selectAll(".link-group");s.select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0,o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}})),s.select("text.linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t/2).x}return((t.source?.x??t.source?.bounds?.cx()??0)+(t.target?.x??t.target?.bounds?.cx()??0))/2})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t/2).y}return((t.source?.y??t.source?.bounds?.cy()??0)+(t.target?.y??t.target?.bounds?.cy()??0))/2})).raise()}routeEdges(){try{this.ensureNodeBounds(),"function"==typeof this.colaLayout?.prepareEdgeRouting&&this.colaLayout.prepareEdgeRouting(e.VIEWBOX_PADDING/e.EDGE_ROUTE_MARGIN_DIVISOR),this.buildEdgeRoutingCaches(),this.routeLinkPaths(),this.updateLinkLabelsAfterRouting(),this.fitViewportToContent()}catch(t){console.error("Error in edge routing:",t),this.showError(`Edge routing failed: ${t.message}`)}}ensureNodeBounds(t=!1){if(this.currentLayout?.nodes&&Sm?.Rectangle)for(let e of this.currentLayout.nodes){if(!t&&e.bounds&&"function"==typeof e.bounds.rayIntersection){let t=e.bounds.cx(),r=e.bounds.cy(),n=1;if(Math.abs(t-(e.x||0)){t.id?.startsWith("_alignment_")&&this.edgeRoutingCache.alignmentEdges.add(t.id)})),this.currentLayout.links.forEach((t=>{if(this.isAlignmentEdge(t))return;let e=t.source.id,r=t.target.id,n=this.getNodePairKey(e,r);this.edgeRoutingCache.edgesBetweenNodes.has(n)||this.edgeRoutingCache.edgesBetweenNodes.set(n,[]),this.edgeRoutingCache.edgesBetweenNodes.get(n).push(t)})))}getNodePairKey(t,e){return t{let e=t.bounds||t.innerBounds||this.createFallbackBounds(t);t.routerNode={name:t.name,bounds:e}})),e.forEach((e=>{e.bounds||console.warn("Grid routing group missing bounds; routing may be degraded.",e),e.routerNode={bounds:e.bounds?.inflate(-n)??e.bounds,children:(typeof e.groups<"u"?e.groups.map((e=>t.length+e.id)):[]).concat(typeof e.leaves<"u"?e.leaves.map((t=>t.index)):[])}}));let i=t.concat(e).map(((t,e)=>t.routerNode?(t.routerNode.id=e,t.routerNode):null)).filter(Boolean);return new Sm.GridRouter(i,{getChildren:t=>t.children,getBounds:t=>t.bounds},r-n)}gridify(t,e,r){if(this.isGridifyingInProgress)console.warn("[gridify] Already in progress, skipping re-entrant call");else{this.isGridifyingInProgress=!0;try{this.gridifyInternal(t,e,r)}catch(t){console.log("Error routing edges in GridRouter"),console.error(t);try{this.fallbackGridRouting(this.currentLayout?.links??[])}catch(t){console.error("Fallback grid routing also failed:",t)}let e=document.getElementById("runtime_messages");if(e){let t=document.createElement("div");t.className="alert alert-danger alert-dismissible fade show",t.setAttribute("role","alert"),t.innerHTML="Runtime (WebCola) error when gridifying edges. You may have to click and drag these nodes slightly to un-stick layout.",e.querySelectorAll(".alert").forEach((e=>{e.innerHTML===t.innerHTML&&e.remove()})),e.appendChild(t)}}finally{this.isGridifyingInProgress=!1}}}gridifyInternal(t,e,r){let n=this.currentLayout?.nodes??[],i=this.currentLayout?.groups??[],o=this.currentLayout?.links??[];if(0===n.length)return void console.warn("No nodes available for GridRouter; skipping gridify.");if(0===o.length)return void console.warn("No edges to route in GridRouter");console.log("[gridify] Node positions BEFORE ensureNodeBounds:"),n.slice(0,3).forEach((t=>{console.log(` ${t.id}: x=${t.x?.toFixed(2)}, y=${t.y?.toFixed(2)}, bounds.cx=${t.bounds?.cx?.()?.toFixed(2)}, bounds.x=${t.bounds?.x?.toFixed(2)}`)})),this.ensureNodeBounds(!0);let s=n.filter((t=>!Number.isFinite(t.x)||!Number.isFinite(t.y)));if(s.length>0)return console.warn("[gridify] Found nodes with invalid positions, falling back to default routing:",s.map((t=>({id:t.id,x:t.x,y:t.y})))),void this.fallbackGridRouting(o);console.log("[gridify] Node positions AFTER ensureNodeBounds:"),n.slice(0,3).forEach((t=>{console.log(` ${t.id}: x=${t.x?.toFixed(2)}, y=${t.y?.toFixed(2)}, bounds.cx=${t.bounds?.cx?.()?.toFixed(2)}, bounds.x=${t.bounds?.x?.toFixed(2)}`)}));let a=this.route(n,i,e,r),l=[],u=o.filter((t=>t?.source?.routerNode&&t?.target?.routerNode&&!(t?.source?.id===t?.target?.id))),c=o.filter((t=>t?.source?.id===t?.target?.id));console.log("[gridify] Total edges:",o.length,"Routable:",u.length,"Self-loops:",c.length),u.length+c.length!==o.length&&o.filter((t=>!(t?.source?.routerNode&&t?.target?.routerNode||t?.source?.id===t?.target?.id))).forEach((t=>{console.warn("[gridify] Unroutable edge:",t.id,"source routerNode:",!!t?.source?.routerNode,"target routerNode:",!!t?.target?.routerNode,"source:",t?.source?.id,"x:",t?.source?.x,"y:",t?.source?.y,"target:",t?.target?.id,"x:",t?.target?.x,"y:",t?.target?.y)})),l=a.routeEdges(u,t,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}));let h=new Map;u.forEach(((t,e)=>{let r=l[e];t?.id&&r&&h.set(t.id,this.adjustGridRouteForEdge(t,r))})),console.log("[gridify] Routes generated:",h.size,"out of",u.length),this.container.selectAll(".link-group").data(o,(t=>t.id??t)).select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=h.get(t.id);if(!e){let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0;console.log("[gridify] Fallback path for edge:",t.id,"from",t.source?.id,"(",e,",",r,")","to",t.target?.id,"(",n,",",i,")");let o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}}let r=Sm.GridRouter.getRoutePath(e,5,3,7);return this.adjustGridRouteForArrowPositioning(t,r.routepath,e)||r.routepath})),this.gridUpdateLinkLabels(o,h),this.fitViewportToContent(),this.dispatchEvent(new Event("relationsAvailable"))}fallbackGridRouting(t){this.container.selectAll(".link-group").data(t,(t=>t.id??t)).select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0,o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}})),this.fitViewportToContent()}gridUpdateLinkLabels(t,e){this.container.selectAll(".link-group").filter((t=>!this.isAlignmentEdge(t))).select("text.linklabel").attr("x",(t=>{let r=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(r)try{let t=r.getTotalLength();return r.getPointAtLength(t/2).x}catch{}return this.getGridRouteMidpoint(t,e)?.x??t.source?.x??t.source?.bounds?.cx()??0})).attr("y",(t=>{let r=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(r)try{let t=r.getTotalLength();return r.getPointAtLength(t/2).y}catch{}return this.getGridRouteMidpoint(t,e)?.y??t.source?.y??t.source?.bounds?.cy()??0})).attr("text-anchor","middle").attr("dominant-baseline","middle")}getGridRouteMidpoint(t,e){let r=e.get(t.id);if(!r){let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0;return{x:(e+(t.target?.x??t.target?.bounds?.cx()??0))/2,y:(r+(t.target?.y??t.target?.bounds?.cy()??0))/2}}let n=[];if(r.forEach((t=>{0===n.length&&t.length>0&&n.push(t[0]),t.length>1&&n.push(t[1])})),n.length<2)return null;let i=0,o=[];for(let t=0;t=s){let r=s-a,i=e>0?r/e:0;return{x:n[t].x+i*(n[t+1].x-n[t].x),y:n[t].y+i*(n[t+1].y-n[t].y)}}a+=e}let l=Math.floor(n.length/2);return n[l]}adjustGridRouteForEdge(t,e){if(!t?.id?.startsWith("_g_"))return e;let r=this.gridRouteToPoints(e);if(r.length<2)return e;let n=this.routeGroupEdge(t,r);return this.pointsToGridRoute(n)}adjustGridRouteForArrowPositioning(t,e,r){if(!e||!t.source||!t.target)return null;try{let e=this.gridRouteToPoints(r);if(e.length<2)return null;let n=t.source,i=t.target,o=n.bounds||{x:n.x-(n.width||0)/2,y:n.y-(n.height||0)/2,width:()=>n.width||0,height:()=>n.height||0},s=i.bounds||{x:i.x-(i.width||0)/2,y:i.y-(i.height||0)/2,width:()=>i.width||0,height:()=>i.height||0},a=this.getTouchDirection(o,s,5);if("none"!==a){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computePerpendicularRoute(o,s,a),n=[t,...r,e];return this.gridLineFunction(n)}let l=e.length>1?e[1]:e[0],u=this.getRectangleIntersection(o.x+o.width()/2,o.y+o.height()/2,l.x,l.y,o);u&&(e[0]=u);let c=e.length>1?e[e.length-2]:e[e.length-1],h=this.getRectangleIntersection(s.x+s.width()/2,s.y+s.height()/2,c.x,c.y,s);return h&&(e[e.length-1]=h),this.gridLineFunction(e)}catch(t){return console.warn("Error adjusting grid route for arrow positioning:",t),null}}getTouchDirection(t,e,r){let n=t.x,i=t.x+t.width(),o=t.y,s=t.y+t.height(),a=e.x,l=e.x+e.width(),u=e.y,c=e.y+e.height(),h=Math.max(0,Math.max(a-i,n-l)),d=Math.max(0,Math.max(u-s,o-c));return h<=r&&!(sl&&(l=i,a=t)}return a}normalizeNodeBounds(t){let e=t.bounds||{x:t.x-(t.width||50)/2,y:t.y-(t.height||30)/2,width:()=>t.width||50,height:()=>t.height||30};return{x:"number"==typeof e.x||void 0!==e.X?e.x:t.x-(t.width||50)/2,y:"number"==typeof e.y?e.y:t.y-(t.height||30)/2,width:()=>"function"==typeof e.width?e.width():void 0!==e.X?e.X-e.x:t.width||50,height:()=>"function"==typeof e.height?e.height():void 0!==e.Y?e.Y-e.y:t.height||30}}lineIntersectsRect(t,e,r){let n=r.x,i=r.x+r.width(),o=r.y,s=r.y+r.height(),a=Math.min(t.x,e.x),l=Math.max(t.x,e.x),u=Math.min(t.y,e.y),c=Math.max(t.y,e.y);if(li||cs)return!1;let h=t.x>=n&&t.x<=i&&t.y>=o&&t.y<=s,d=e.x>=n&&e.x<=i&&e.y>=o&&e.y<=s;if(h||d)return!0;let p=e.x-t.x,f=e.y-t.y,g=(e,r,n)=>{if(0===f)return!1;let i=(e-t.y)/f;if(i<0||i>1)return!1;let o=t.x+i*p;return o>=r&&o<=n},m=(e,r,n)=>{if(0===p)return!1;let i=(e-t.x)/p;if(i<0||i>1)return!1;let o=t.y+i*f;return o>=r&&o<=n};return g(o,n,i)||g(s,n,i)||m(n,o,s)||m(i,o,s)}findBlockingNodes(t,e,r,n){if(!this.currentLayout?.nodes)return[];let i=this.normalizeNodeBounds(t),o=this.normalizeNodeBounds(e),s={x:i.x+i.width()/2,y:i.y+i.height()/2},a={x:o.x+o.width()/2,y:o.y+o.height()/2},l=[];for(let t of this.currentLayout.nodes){if(t.id===r||t.id===n)continue;let e=this.normalizeNodeBounds(t);if(this.lineIntersectsRect(s,a,e)){let r={x:e.x+e.width()/2,y:e.y+e.height()/2},n=Math.sqrt(Math.pow(r.x-s.x,2)+Math.pow(r.y-s.y,2));l.push({node:t,bounds:e,distance:n})}}return l.sort(((t,e)=>t.distance-e.distance)),l.map((t=>({node:t.node,bounds:t.bounds})))}computeRouteAroundBlockingNodes(t,e,r){let n=Math.min(t.x,e.x),i=Math.max(t.x+t.width(),e.x+e.width()),o=Math.min(t.y,e.y),s=Math.max(t.y+t.height(),e.y+e.height());for(let{bounds:t}of r)n=Math.min(n,t.x),i=Math.max(i,t.x+t.width()),o=Math.min(o,t.y),s=Math.max(s,t.y+t.height());let a=t.x+t.width()/2,l=t.y+t.height()/2,u=e.x+e.width()/2,c=e.y+e.height()/2,h=Math.abs(u-a);if(Math.abs(c-l)>h){if(a<=u){let r=n-15;return{sourcePoint:{x:t.x,y:l},targetPoint:{x:e.x,y:c},middlePoints:[{x:r,y:l},{x:r,y:c}]}}{let r=i+15;return{sourcePoint:{x:t.x+t.width(),y:l},targetPoint:{x:e.x+e.width(),y:c},middlePoints:[{x:r,y:l},{x:r,y:c}]}}}if(l<=c){let r=o-15;return{sourcePoint:{x:a,y:t.y},targetPoint:{x:u,y:e.y},middlePoints:[{x:a,y:r},{x:u,y:r}]}}{let r=s+15;return{sourcePoint:{x:a,y:t.y+t.height()},targetPoint:{x:u,y:e.y+e.height()},middlePoints:[{x:a,y:r},{x:u,y:r}]}}}getNearTouchPerpendicularRoute(t){if(!t.source||!t.target||t.source.id===t.target.id)return null;let e=t.source,r=t.target,n=this.normalizeNodeBounds(e),i=this.normalizeNodeBounds(r),o=this.getTouchDirection(n,i,5);if("none"!==o){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computePerpendicularRoute(n,i,o);return[t,...r,e]}let s=this.findBlockingNodes(e,r,e.id,r.id);if(s.length>0){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computeRouteAroundBlockingNodes(n,i,s);return[t,...r,e]}return null}gridRouteToPoints(t){let e=[];return t.forEach(((t,r)=>{0===r&&e.push({x:t[0].x,y:t[0].y}),e.push({x:t[1].x,y:t[1].y})})),e}pointsToGridRoute(t){let e=[];for(let r=0;rd)return null;let p=h>0?h:d;return{x:t+p*u,y:e+p*c}}routeLinkPaths(){this.container.selectAll(".link-group path").attr("d",(t=>{try{return this.routeSingleEdge(t)}catch(e){return console.error(`Error routing edge ${t.id} from ${t.source.id} to ${t.target.id}:`,e),this.showRuntimeAlert(t.source.id,t.target.id),this.lineFunction([{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}])}}))}routeSingleEdge(t){if(this.isAlignmentEdge(t))return this.lineFunction([{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}]);let e,r=[{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}];if("function"==typeof this.colaLayout?.routeEdge)try{if(e=this.colaLayout.routeEdge(t),!e||!Array.isArray(e)||e.length<2||!e[0]||!e[1]||void 0===e[0].x||void 0===e[0].y)throw new Error(`WebCola failed to route edge ${t.id} from ${t.source.id} to ${t.target.id}`)}catch(e){return console.log("Error routing edge",t.id,`from ${t.source.id} to ${t.target.id}`),console.error(e),this.lineFunction(r)}else e=r;e=t.source.id===t.target.id?this.createSelfLoopRoute(t):t.id?.startsWith("_g_")?this.routeGroupEdge(t,e):this.handleMultipleEdgeRouting(t,e);let n=this.getNearTouchPerpendicularRoute(t);return n?this.lineFunction(n):this.lineFunction(e)}createSelfLoopRoute(t){let r=t.source,n=r.bounds;if(!n)return[{x:r.x,y:r.y},{x:r.x+20,y:r.y-20},{x:r.x,y:r.y}];let i=n.X-n.x,o=n.Y-n.y,s={x:n.x+i/2,y:n.y},a={x:n.X,y:n.y+o/2},l=1+(t.selfLoopIndex||0)*e.SELF_LOOP_CURVATURE_SCALE;return[s,{x:n.X+i/2*l,y:n.y-o/2*l},a]}routeGroupEdge(t,e){let{groupOnIndex:r,addToGroupIndex:n}=this.getGroupOnAndAddToGroupIndices(t.id),i=r>=n;if(rt.keyNode===r));if(i){let t=this.closestPointOnRect(i.bounds,e[0]);e[e.length-1]=t}else console.log("Target group not found",n,this.getNodeIndex(t.target),t.id)}else if(i){let r=this.getNodeIndex(t.source),n=this.getNodeIndex(t.target),i=this.getContainingGroups(this.currentLayout?.groups||[],t.source),o=i.find((t=>t.keyNode===n));if(o){let t=o.bounds?.inflate(-1),r=this.closestPointOnRect(t||o.bounds,e[e.length-1]);e[0]=r}else console.log("Source group not found",i,r,n,t.id)}else console.log("This is a group edge, but neither source nor target is a group.",t);return e.length>2&&e.splice(1,e.length-2),e}handleMultipleEdgeRouting(t,e){let r=this.getAllEdgesBetweenNodes(t.source.id,t.target.id);if(r.length<=1)return e;if(2===e.length){let t={x:(e[0].x+e[1].x)/2,y:(e[0].y+e[1].y)/2};e.splice(1,0,t)}let n=e[1].x-e[0].x,i=e[1].y-e[0].y,o=Math.atan2(i,n),s=this.getRouteLength(e),a=r.findIndex((e=>e.id===t.id));if(-1!==a){e=this.applyEdgeOffsetWithIndex(t,e,r,o,a,s);let n=this.calculateCurvatureWithIndex(r,t.id,a),i=this.clampCurvature(n);e=this.applyCurvatureToRoute(e,i,o,s)}return e}getAllEdgesBetweenNodes(t,e){if(!this.currentLayout?.links)return[];let r=this.getNodePairKey(t,e);return this.edgeRoutingCache.edgesBetweenNodes.has(r)?this.edgeRoutingCache.edgesBetweenNodes.get(r):this.currentLayout.links.filter((r=>!this.isAlignmentEdge(r)&&(r.source.id===t&&r.target.id===e||r.source.id===e&&r.target.id===t)))}calculateCurvature(t,r,n,i){if(i.startsWith("_alignment_"))return 0;let o=t.length,s=t.findIndex((t=>t.id===i));return o<=1?0:(s%2==0?1:-1)*(Math.floor(s/2)+1)*e.CURVATURE_BASE_MULTIPLIER*o}calculateCurvatureWithIndex(t,r,n){let i=t.length;return i<=1?0:(n%2==0?1:-1)*(Math.floor(n/2)+1)*e.CURVATURE_BASE_MULTIPLIER*i}applyEdgeOffset(t,e,r,n){let i=r.findIndex((e=>e.id===t.id)),o=this.getRouteLength(e);return this.applyEdgeOffsetWithIndex(t,e,r,n,i,o)}applyEdgeOffsetWithIndex(t,r,n,i,o,s){let a=(o%2==0?1:-1)*(Math.floor(o/2)+1)*e.MIN_EDGE_DISTANCE,l=this.clampOffset(a,s),u=this.getDominantDirection(i);return"right"===u||"left"===u?(r[0].y+=l,r[r.length-1].y+=l):("up"===u||"down"===u)&&(r[0].x+=l,r[r.length-1].x+=l),t.source.innerBounds&&(r[0]=this.adjustPointToRectanglePerimeter(r[0],t.source.innerBounds)),t.target.innerBounds&&(r[r.length-1]=this.adjustPointToRectanglePerimeter(r[r.length-1],t.target.innerBounds)),r}clampOffset(t,r){let n=Math.max(e.MIN_EDGE_DISTANCE,r*e.MAX_EDGE_OFFSET_RATIO);return Math.max(-n,Math.min(n,t))}getRouteLength(t){return t.length<2?0:t.slice(1).reduce(((e,r,n)=>{let i=t[n],o=r.x-i.x,s=r.y-i.y;return e+Math.sqrt(o*o+s*s)}),0)}clampCurvature(t){return Math.max(-e.MAX_EDGE_CURVATURE_RATIO,Math.min(e.MAX_EDGE_CURVATURE_RATIO,t))}applyCurvatureToRoute(t,e,r,n){return 0===e||t.forEach(((i,o)=>{if(o>0&&o=-Math.PI/4&&t<=Math.PI/4?"right":t>Math.PI/4&&t<3*Math.PI/4?"up":t>=3*Math.PI/4||t<=-3*Math.PI/4?"left":t>-3*Math.PI/4&&t<-Math.PI/4?"down":null}closestPointOnRect(t,e){if(!t)return e;let{x:r,y:n,X:i,Y:o}=t;return{x:Math.max(r,Math.min(e.x,i)),y:Math.max(n,Math.min(e.y,o))}}getStableEdgeAnchor(t,e){if(!t)return e;let r,n,i,o;if("function"==typeof t.cx)r=t.cx(),n=t.cy(),i=t.width()/2,o=t.height()/2;else{if(void 0===t.x||void 0===t.X)return e;r=(t.x+t.X)/2,n=(t.y+t.Y)/2,i=(t.X-t.x)/2,o=(t.Y-t.y)/2}let s=e.x-r,a=e.y-n;return Math.abs(s)/i>Math.abs(a)/o?s>0?{x:r+i,y:n}:{x:r-i,y:n}:a>0?{x:r,y:n+o}:{x:r,y:n-o}}getStableEdgePath(t,e){let r,n;return r=e.bounds&&"function"==typeof e.bounds.cx?{x:e.bounds.cx(),y:e.bounds.cy()}:e.bounds?{x:(e.bounds.x+e.bounds.X)/2,y:(e.bounds.y+e.bounds.Y)/2}:{x:e.x||0,y:e.y||0},n=t.bounds&&"function"==typeof t.bounds.cx?{x:t.bounds.cx(),y:t.bounds.cy()}:t.bounds?{x:(t.bounds.x+t.bounds.X)/2,y:(t.bounds.y+t.bounds.Y)/2}:{x:t.x||0,y:t.y||0},[t.bounds||t.innerBounds?this.getStableEdgeAnchor(t.bounds||t.innerBounds,r):n,e.bounds||e.innerBounds?this.getStableEdgeAnchor(e.bounds||e.innerBounds,n):r]}adjustPointToRectanglePerimeter(t,e){return e?this.closestPointOnRect(e,t):t}updateLinkLabelsAfterRouting(){this.container.selectAll(".link-group .linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(!e)return 0;let r=e.getTotalLength();return e.getPointAtLength(r/2).x})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(!e)return 0;let r=e.getTotalLength();return e.getPointAtLength(r/2).y})).attr("text-anchor","middle").each(((t,e,r)=>{this.handleLabelOverlap(r[e])})).raise()}handleLabelOverlap(t){let e=[];this.container.selectAll(".linklabel").each((function(){this!==t&&function(t,e){function r(t){return t&&"object"==typeof t&&"getBBox"in t}let n=r(t)?t.getBBox():{x:0,y:0,width:0,height:0},i=r(e)?e.getBBox():{x:0,y:0,width:0,height:0};return!(i.x>n.x+n.width||i.x+i.widthn.y+n.height||i.y+i.height0&&this.minimizeOverlap(t,e)}minimizeOverlap(t,e){}fitViewportToContent(t=!1){let r=this.svg?.node();if(!r||!this.zoomBehavior||this.userHasManuallyZoomed&&!this.isInitialRender&&!t)return;let n=this.calculateContentBounds();if(!n)return;let i=r.clientWidth||r.parentElement?.clientWidth||800,o=r.clientHeight||r.parentElement?.clientHeight||600,s=4*e.VIEWBOX_PADDING,a=(i-2*s)/n.width,l=(o-2*s)/n.height,u=Math.min(a,l,1),[c,h]=this.zoomBehavior.scaleExtent(),d=Math.max(c,Math.min(h,u)),p=i/2-(n.x+n.width/2)*d,f=o/2-(n.y+n.height/2)*d,g=Om.zoomIdentity.translate(p,f).scale(d);this.isInitialRender?(this.svg.call(this.zoomBehavior.transform,g),this.isInitialRender=!1):this.svg.transition().duration(300).ease(Om.easeCubicOut).call(this.zoomBehavior.transform,g),this.updateZoomControlStates()}resetViewToFitContent(){this.userHasManuallyZoomed=!1,this.fitViewportToContent(!0)}calculateContentBounds(){try{if(!this.currentLayout||!this.container)return null;let t=1/0,e=1/0,r=-1/0,n=-1/0,i=this.currentLayout.nodes;i&&i.length>0&&(i.forEach(((i,o)=>{if("number"==typeof i.x&&"number"==typeof i.y){let o=i.width||0,s=i.height||0,a=i.x,l=i.x+o,u=i.y,c=i.y+s;t=Math.min(t,a),r=Math.max(r,l),e=Math.min(e,u),n=Math.max(n,c)}})),i.reduce(((t,e)=>"number"==typeof e.x&&"number"==typeof e.y&&e.y+(e.height||0)>(t?t.y+(t.height||0):-1/0)?e:t),null));let o=this.container.selectAll(".link-group");o.empty()||o.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}}));let s=this.container.selectAll(".node, .error-node");s.empty()||s.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}}));let a=this.container.selectAll("text");if(!a.empty()){let i=0;a.each((function(){try{let o=this.getBBox();if(o.width>0&&o.height>0){i++;let s=5,a=o.y-s,l=o.y+o.height+s;t=Math.min(t,o.x-s),r=Math.max(r,o.x+o.width+s),e=Math.min(e,a),n=Math.max(n,l)}}catch{}}))}let l=this.container.selectAll(".group");return l.empty()||l.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}})),t===1/0||e===1/0||r===-1/0||n===-1/0?(console.warn("Could not calculate content bounds - no valid elements found"),null):{x:t,y:e,width:r-t,height:n-e}}catch(t){return console.error("Error calculating content bounds:",t),null}}dispatchRelationsAvailableEvent(){let t=this.getAllRelations(),e=new CustomEvent("relations-available",{detail:{relations:t,count:t.length,timestamp:Date.now(),graphId:this.id||"unknown"},bubbles:!0,cancelable:!0});this.dispatchEvent(e)}getAllRelations(){if(!this.currentLayout?.links)return[];let t=new Set(this.currentLayout.links.filter((t=>!this.isAlignmentEdge(t))).map((t=>t.relName)).filter(Boolean));return Array.from(t)}highlightRelation(t){return!!this.currentLayout?.links&&(this.svgLinkGroups.filter((e=>e.relName===t&&!this.isAlignmentEdge(e))).selectAll("path").classed("highlighted",!0),!0)}clearHighlightRelation(t){return!!this.currentLayout?.links&&(this.svgLinkGroups.filter((e=>e.relName===t&&!this.isAlignmentEdge(e))).selectAll("path").classed("highlighted",!1),!0)}highlightNodes(t){if(!this.currentLayout?.nodes||!this.svgNodes||!t||0===t.length)return!1;let e=new Set(t),r=!1;return this.svgNodes.each(((t,n,i)=>{e.has(t.id)&&(Om.select(i[n]).classed("highlighted",!0),r=!0)})),r}highlightNodePairs(t,e={}){if(!this.currentLayout?.nodes||!this.svgNodes||!t||0===t.length)return!1;let{showBadges:r=!1}=e,n=new Set,i=new Set;t.forEach(((t,e)=>{if(!Array.isArray(t))return void console.warn(`highlightNodePairs: Pair at index ${e} is not an array, skipping`);if(2!==t.length)return void console.warn(`highlightNodePairs: Pair at index ${e} has ${t.length} elements (expected 2), skipping`);let[r,o]=t;r&&n.add(r),o&&i.add(o)}));let o=!1;return this.svgNodes.each(((t,e,s)=>{let a=Om.select(s[e]);n.has(t.id)&&(a.classed("highlighted-first",!0),o=!0,r&&this.addHighlightBadge(a,t,"1","#007aff")),i.has(t.id)&&(a.classed("highlighted-second",!0),o=!0,r&&(n.has(t.id)?this.addHighlightBadge(a,t,"1,2","#9B59B6"):this.addHighlightBadge(a,t,"2","#ff3b30")))})),o}clearNodeHighlights(){return!!this.svgNodes&&(this.svgNodes.classed("highlighted",!1).classed("highlighted-first",!1).classed("highlighted-second",!1).selectAll(".highlight-badge, .highlight-badge-bg").remove(),!0)}addHighlightBadge(t,e,r,n){t.selectAll(".highlight-badge, .highlight-badge-bg").remove();let i=(e.width||0)/2-8-4,o=-(e.height||0)/2+8+4;t.append("circle").attr("class","highlight-badge-bg").attr("cx",i).attr("cy",o).attr("r",8).attr("fill",n),t.append("text").attr("class","highlight-badge").attr("x",i).attr("y",o).attr("dy","0.35em").text(r)}showRuntimeAlert(t,e){console.warn(`Runtime (WebCola) error when laying out an edge from ${t} to ${e}. You may have to click and drag these nodes slightly to un-stick layout.`)}getCSS(){return'\n :host {\n display: block;\n width: 100%;\n height: 100%;\n font-family: system-ui, -apple-system, sans-serif;\n }\n \n #svg-container {\n position: relative; /* Make this the positioning context for zoom controls */\n width: 100%;\n height: 100%;\n border: 1px solid #ccc;\n overflow: hidden;\n }\n \n /* Make SVG fill the container completely */\n svg {\n width: 100%; /* Fill container width */\n height: 100%; /* Fill container height */\n display: block; /* Remove inline spacing */\n cursor: grab;\n }\n \n svg:active {\n cursor: grabbing;\n }\n \n .node rect {\n cursor: move;\n }\n\n .error-node rect, .error-group {\n stroke-width: 2px;\n stroke-dasharray: 5 5;\n animation: dash 1s linear infinite;\n }\n\n /* Enhanced visibility for small error nodes */\n .small-error-node rect {\n stroke-width: 4px !important; /* Thicker stroke for visibility */\n stroke-dasharray: 8 4 !important; /* Larger dash pattern */\n animation: dash 1s linear infinite, pulse-bg 2s ease-in-out infinite !important;\n fill: rgba(225, 112, 46, 0.46) !important; /* Light reddish background */\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: -10;\n }\n }\n\n /* Pulsing background animation for small error nodes */\n @keyframes pulse-bg {\n 0%, 100% { \n fill-opacity: 0.15; \n }\n 50% { \n fill-opacity: 0.55; \n }\n }\n \n .link {\n stroke-width: 1px;\n fill: none;\n marker-end: url(#end-arrow);\n }\n \n .inferredLink {\n stroke-width: 1.5px;\n fill: none;\n marker-end: url(#end-arrow);\n }\n\n\n .alignmentLink {\n stroke: transparent !important; /* make the stroke invisible */\n stroke-width: 0 !important; /* ensure no visible thickness */\n stroke-opacity: 0 !important; /* defensive */\n fill: none !important;\n pointer-events: none !important; /* don\'t block mouse events */\n }\n\n\n .link.highlighted {\n stroke: black; /* Change this to your desired highlight color */\n stroke-width: 3px; /* Change this to your desired highlight width */\n }\n\n .inferredLink.highlighted {\n stroke:#666666; /* Change this to your desired highlight color */\n stroke-width: 3px; /* Change this to your desired highlight width */\n }\n\n /* Node highlighting styles */\n .node.highlighted rect {\n stroke: #ff9500;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(255, 149, 0, 0.6));\n }\n\n .node.highlighted-first rect {\n stroke: #007aff;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(0, 122, 255, 0.6));\n }\n\n .node.highlighted-second rect {\n stroke: #ff3b30;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.6));\n }\n\n /* Add a badge indicator for first/second in binary selectors */\n .highlight-badge {\n font-size: 10px;\n font-weight: bold;\n fill: white;\n text-anchor: middle;\n pointer-events: none;\n }\n\n .highlight-badge-bg {\n pointer-events: none;\n }\n \n .group {\n fill: rgba(200, 200, 200, 0.3);\n stroke: #666;\n stroke-width: 1px;\n }\n \n .label {\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 10px;\n pointer-events: none;\n }\n\n .linklabel {\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 12px;\n font-weight: 500;\n fill: #1a1a1a;\n pointer-events: none;\n font-family: system-ui, -apple-system, sans-serif;\n stroke: white;\n stroke-width: 3px;\n stroke-linejoin: round;\n paint-order: stroke fill;\n }\n \n .mostSpecificTypeLabel {\n font-size: 8px;\n font-weight: bold;\n pointer-events: none;\n }\n \n #loading, #error {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n }\n\n /* Input mode styles */\n svg.input-mode {\n cursor: crosshair !important;\n }\n\n svg.input-mode .node rect {\n cursor: crosshair !important;\n }\n\n svg.input-mode:active {\n cursor: crosshair !important;\n }\n\n .temporary-edge {\n pointer-events: none;\n z-index: 1000;\n }\n\n svg.input-mode .link {\n cursor: pointer;\n }\n\n svg.input-mode .link:hover {\n opacity: 0.8;\n }\n\n /* Error icon positioning - bottom area to avoid header overlap */\n #error-icon {\n margin: 5px;\n padding: 8px 12px;\n font-size: 16px;\n position: absolute;\n bottom: 10px; /* Position at bottom instead of top */\n left: 10px;\n z-index: 1000;\n cursor: help;\n background-color: rgba(220, 53, 69, 0.95);\n color: white;\n border-radius: 6px;\n border: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 6px;\n visibility: hidden; /* Use visibility instead of display */\n }\n \n #error-icon.visible {\n visibility: visible;\n }\n\n #error-icon::before {\n content: "⚠️";\n font-size: 18px;\n }\n\n /* Graph toolbar styling */\n #graph-toolbar {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n background: rgba(255, 255, 255, 0.95);\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 6px;\n margin-bottom: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n backdrop-filter: blur(4px);\n }\n\n /* Zoom controls styling */\n #zoom-controls {\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n }\n\n #zoom-controls button {\n width: 24px;\n height: 24px;\n border: 1px solid #d1d5db;\n background: #f9fafb;\n color: #374151;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n user-select: none;\n line-height: 1;\n }\n\n #zoom-controls button:hover {\n background: #f3f4f6;\n border-color: #9ca3af;\n color: #111827;\n }\n\n #zoom-controls button:active {\n background: #e5e7eb;\n border-color: #6b7280;\n transform: translateY(0.5px);\n }\n\n #zoom-controls button:disabled {\n background: #f9fafb;\n border-color: #e5e7eb;\n color: #9ca3af;\n cursor: not-allowed;\n }\n\n #zoom-controls button:disabled:hover {\n background: #f9fafb;\n border-color: #e5e7eb;\n color: #9ca3af;\n transform: none;\n }\n\n /* Routing control styling */\n #routing-control {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 16px;\n padding-left: 16px;\n border-left: 1px solid #e5e7eb;\n }\n\n #routing-control label {\n font-size: 12px;\n font-weight: 500;\n color: #6b7280;\n user-select: none;\n }\n\n #routing-mode {\n padding: 4px 8px;\n border: 1px solid #d1d5db;\n background: #f9fafb;\n color: #374151;\n border-radius: 4px;\n font-size: 12px;\n cursor: pointer;\n transition: all 0.15s ease;\n outline: none;\n }\n\n #routing-mode:hover {\n background: #f3f4f6;\n border-color: #9ca3af;\n }\n\n #routing-mode:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);\n }\n\n /* Modal Overlay and Dialog */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n font-family: system-ui, -apple-system, sans-serif;\n }\n\n .modal-dialog {\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.3);\n padding: 24px;\n max-width: 500px;\n width: 90%;\n max-height: 90vh;\n overflow-y: auto;\n }\n\n .modal-header {\n margin-bottom: 16px;\n }\n\n .modal-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #333;\n }\n\n .modal-body {\n margin-bottom: 20px;\n }\n\n .modal-message {\n margin: 0 0 16px 0;\n font-size: 14px;\n color: #555;\n line-height: 1.5;\n }\n\n .modal-input {\n width: 100%;\n padding: 8px 12px;\n border: 2px solid #ddd;\n border-radius: 4px;\n font-size: 14px;\n box-sizing: border-box;\n }\n\n .modal-input:focus {\n outline: none;\n border-color: #007acc;\n }\n\n .modal-footer {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n .modal-button {\n padding: 8px 16px;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background-color 0.2s;\n }\n\n .modal-button.primary {\n background: #007acc;\n color: white;\n }\n\n .modal-button.primary:hover {\n background: #005fa3;\n }\n\n .modal-button.secondary {\n background: #f8f9fa;\n color: #666;\n border: 1px solid #ddd;\n }\n\n .modal-button.secondary:hover {\n background: #e9ecef;\n }\n '}calculateNewPosition(t,e){let r=t.getTotalLength(),n=r/2,i=n+0;i>=r&&(i=n);let o=t.getPointAtLength(i);return"x"===e?o.x:o.y}showLoading(){let t=this.shadowRoot.querySelector("#loading"),e=this.shadowRoot.querySelector("#error");t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",t.style.zIndex="1000",e.style.display="none"}updateLoadingProgress(t){let e=this.shadowRoot.querySelector("#loading-progress");e&&(e.textContent=t)}hideLoading(){this.shadowRoot.querySelector("#loading").style.display="none"}showError(t){let e=this.shadowRoot.querySelector("#loading"),r=this.shadowRoot.querySelector("#error");e.style.display="none",r.style.display="block",r.textContent=t}showErrorIcon(){this.shadowRoot.querySelector("#error-icon").classList.add("visible")}hideErrorIcon(){this.shadowRoot.querySelector("#error-icon").classList.remove("visible")}showConfirmDialog(t){return new Promise((e=>{let r=document.createElement("div");r.className="modal-overlay",r.innerHTML=`\n \n `,r.addEventListener("click",(t=>{let n=t.target;n.classList.contains("modal-overlay")||"cancel"===n.dataset.action?(this.shadowRoot.removeChild(r),e(!1)):"confirm"===n.dataset.action&&(this.shadowRoot.removeChild(r),e(!0))}));let n=t=>{"Escape"===t.key&&(this.shadowRoot.removeChild(r),document.removeEventListener("keydown",n),e(!1))};document.addEventListener("keydown",n),this.shadowRoot.appendChild(r),r.querySelector('[data-action="confirm"]')?.focus()}))}showPromptDialog(t,e=""){return new Promise((r=>{let n=document.createElement("div");n.className="modal-overlay",n.innerHTML=`\n \n `;let i=n.querySelector(".modal-input");n.addEventListener("click",(t=>{let e=t.target;if(e.classList.contains("modal-overlay"))this.shadowRoot.removeChild(n),r(null);else if("cancel"===e.dataset.action)this.shadowRoot.removeChild(n),r(null);else if("ok"===e.dataset.action){let t=i.value;this.shadowRoot.removeChild(n),r(t)}}));let o=t=>{if("Enter"===t.key){let t=i.value;this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(t)}else"Escape"===t.key&&(this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(null))};document.addEventListener("keydown",o),this.shadowRoot.appendChild(n),i.focus(),i.select()}))}showEdgeEditDialog(t,e=""){return new Promise((r=>{let n=document.createElement("div");n.className="modal-overlay",n.innerHTML=`\n \n `;let i=n.querySelector(".modal-input");n.addEventListener("click",(t=>{let e=t.target;if(e.classList.contains("modal-overlay"))this.shadowRoot.removeChild(n),r(null);else if("cancel"===e.dataset.action)this.shadowRoot.removeChild(n),r(null);else if("delete"===e.dataset.action)this.shadowRoot.removeChild(n),r("DELETE");else if("ok"===e.dataset.action){let t=i.value;this.shadowRoot.removeChild(n),r(t)}}));let o=t=>{if("Enter"===t.key){let t=i.value;this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(t)}else"Escape"===t.key&&(this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(null))};document.addEventListener("keydown",o),this.shadowRoot.appendChild(n),i.focus(),i.select()}))}disconnectedCallback(){this.dispose()}dispose(){this.detachInputModeListeners(),this.deactivateInputMode(),this.svg&&(this.svg.on(".zoom",null),this.svg.selectAll("*").remove()),this.container&&this.container.selectAll("*").remove(),this.svgNodes&&(this.svgNodes.on(".drag",null),this.svgNodes.on(".cnd",null)),this.colaLayout&&("function"==typeof this.colaLayout.stop&&this.colaLayout.stop(),this.colaLayout.on("tick",null),this.colaLayout.on("end",null)),this.currentLayout=null,this.colaLayout=null,this.svgNodes=null,this.svgLinkGroups=null,this.svgGroups=null,this.svgGroupLabels=null,this.zoomBehavior=null,this.storedTransform=null,this.dragStartPositions.clear(),this.cleanupEdgeCreation(),this.textMeasurementCanvas&&(this.textMeasurementCanvas=null)}getMemoryStats(){return{nodeCount:this.currentLayout?.nodes?.length||0,edgeCount:this.currentLayout?.links?.length||0,groupCount:this.currentLayout?.groups?.length||0,constraintCount:this.currentLayout?.constraints?.length||0,hasActiveLayout:!!this.colaLayout}}},Nm.DEFAULT_SVG_WIDTH=800,Nm.DEFAULT_SVG_HEIGHT=600,Nm.SMALL_IMG_SCALE_FACTOR=.3,Nm.NODE_BORDER_RADIUS=3,Nm.NODE_STROKE_WIDTH=1.5,Nm.DEFAULT_FONT_SIZE=10,Nm.MIN_FONT_SIZE=6,Nm.MAX_FONT_SIZE=16,Nm.TEXT_PADDING=8,Nm.LINE_HEIGHT_RATIO=1.2,Nm.DISCONNECTED_NODE_PREFIX="_d_",Nm.GROUP_BORDER_RADIUS=8,Nm.GROUP_FILL_OPACITY=.25,Nm.GROUP_LABEL_PADDING=20,Nm.DEFAULT_GROUP_COMPACTNESS=1e-5,Nm.EDGE_ROUTE_MARGIN_DIVISOR=3,Nm.CURVATURE_BASE_MULTIPLIER=.15,Nm.MIN_EDGE_DISTANCE=10,Nm.MAX_EDGE_OFFSET_RATIO=.35,Nm.MAX_EDGE_CURVATURE_RATIO=.6,Nm.SELF_LOOP_CURVATURE_SCALE=.2,Nm.VIEWBOX_PADDING=10,Nm.INITIAL_UNCONSTRAINED_ITERATIONS=10,Nm.INITIAL_USER_CONSTRAINT_ITERATIONS=50,Nm.INITIAL_ALL_CONSTRAINTS_ITERATIONS=200,Nm.GRID_SNAP_ITERATIONS=1,Am=Nm,typeof customElements<"u"&&typeof HTMLElement<"u"&&customElements.define("webcola-cnd-graph",Am)}));t.JSONDataInstance=void 0,t.DataInstanceNormalizer=void 0;var Cm=d((()=>{wm=g(gn()),t.JSONDataInstance=class e{constructor(e,r={}){this.atoms=[],this.relations=[],this.types=[],this.errors=[],this.eventListeners=new Map;try{let n="string"==typeof e?JSON.parse(e):e;if(!n||"object"!=typeof n)throw new Error("Invalid data: expected object with atoms and relations");if(!Array.isArray(n.atoms))throw new Error("Invalid data: atoms must be an array");if(!Array.isArray(n.relations))throw new Error("Invalid data: relations must be an array");let i=t.DataInstanceNormalizer.normalize(n,r);this.atoms=i.atoms,this.relations=i.relations,this.types=i.types,this.errors=i.errors}catch(t){throw new Error(`Failed to create JSONDataInstance: ${t instanceof Error?t.message:String(t)}`)}}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}isAtomBuiltin(t){return!1}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID '${t}' not found`);let r=this.types.find((t=>t.id===e.type));if(!r)throw new Error(`Type '${e.type}' not found for atom '${t}'`);return r}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}applyProjections(t){if(0===t.length)return this.clone();let r=new Set(t),n=this.atoms.filter((t=>r.has(t.id))),i=this.relations.map((t=>({...t,tuples:t.tuples.filter((t=>t.atoms.every((t=>r.has(t)))))}))).filter((t=>t.tuples.length>0));return new e({atoms:n,relations:i,types:this.types})}generateGraph(t=!1,e=!1){let r=new wm.Graph({directed:!0,multigraph:!0});if(this.atoms.forEach((t=>{r.setNode(t.id,{id:t.id,label:t.label,type:t.type,isBuiltin:this.isAtomBuiltin(t)})})),this.relations.forEach((t=>{t.tuples.forEach(((e,n)=>{if(e.atoms.length>=2){let i=e.atoms[0],o=e.atoms[e.atoms.length-1],s=e.atoms.slice(1,-1),a=t.name;if(s.length>0){let e=s.map((t=>{let e=this.atoms.find((e=>e.id===t));return e?e.label:t}));a=`${t.name}[${e.join(", ")}]`}let l=`${t.id}_${n}`;r.setEdge(i,o,a,l)}else if(1===e.atoms.length){let i=e.atoms[0],o=`${t.id}_${n}`;r.setEdge(i,i,t.name,o)}}))})),t||e){let n=[];r.nodes().forEach((i=>{let o=r.inEdges(i)||[],s=r.outEdges(i)||[];if(0===o.length&&0===s.length){let o=r.node(i)?.isBuiltin||!1;(t||o&&e)&&n.push(i)}})),n.forEach((t=>{r.removeNode(t)}))}return r}addAtom(t){if(this.atoms.some((e=>e.id===t.id)))throw new Error(`Atom with ID '${t.id}' already exists`);this.atoms.push(t);let e=this.types.find((e=>e.id===t.type));e||(e={id:t.type,types:[t.type],atoms:[],isBuiltin:!1},this.types.push(e)),e.atoms.push(t),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){for(let t of e.atoms)if(!this.atoms.some((e=>e.id===t)))throw new Error(`Cannot add tuple: referenced atom '${t}' does not exist`);let r=this.relations.find((e=>e.id===t||e.name===t));if(r){let t=new Set(r.types);for(let n of e.types)t.has(n)||r.types.push(n)}else r={id:t,name:t,types:[...e.types],tuples:[]},this.relations.push(r);r.tuples.push(e),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeAtom(t){let e=this.atoms.findIndex((e=>e.id===t));if(-1===e)throw new Error(`Cannot remove atom: atom with ID '${t}' not found`);let r=this.atoms[e];this.atoms.splice(e,1);let n=this.types.find((t=>t.id===r.type));n&&(n.atoms=n.atoms.filter((e=>e.id!==t)));for(let e of this.relations)e.tuples=e.tuples.filter((e=>!e.atoms.includes(t)));this.emitEvent({type:"atomRemoved",data:{atomId:t}})}removeRelationTuple(t,e){let r=this.relations.find((e=>e.id===t||e.name===t));if(!r)throw new Error(`Cannot remove tuple: relation '${t}' not found`);let n=r.tuples.length;if(r.tuples=r.tuples.filter((t=>!((t,e)=>t.atoms.length===e.atoms.length&&t.atoms.every(((t,r)=>t===e.atoms[r])))(t,e))),r.tuples.length===n)throw new Error(`Tuple not found in relation '${t}'`);this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}reify(){return{atoms:[...this.atoms],relations:this.relations.map((t=>({...t,tuples:[...t.tuples]}))),types:this.types.map((t=>({...t,atoms:[...t.atoms]})))}}addFromDataInstance(t,e){if(!t)return!1;let r=new Map;return t.getAtoms().forEach((t=>{let n=this.isAtomBuiltin(t);if(e&&n){let e=this.atoms.find((e=>e.type===t.type&&e.label===t.label));if(e)return void r.set(t.id,e.id)}let i=`atom_${this.atoms.length+1}`;r.set(t.id,i);let o={...t,id:i};this.addAtom(o)})),t.getRelations().forEach((t=>{let e=t.tuples.map((t=>({atoms:t.atoms.map((t=>r.get(t)||t)),types:t.types}))),n=this.relations.find((e=>e.id===t.id||e.name===t.name));if(n){let t=new Set(n.tuples.map((t=>JSON.stringify(t))));e.forEach((e=>{let r=JSON.stringify(e);t.has(r)||(n.tuples.push(e),t.add(r))}))}else this.relations.push({...t,tuples:e})})),t.getTypes().forEach((t=>{let e=this.types.find((e=>e.id===t.id));if(e){let n=new Set(e.atoms.map((t=>t.id)));t.atoms.forEach((t=>{let i=r.get(t.id)||t.id;n.has(i)||(e.atoms.push({...t,id:i}),n.add(i))}))}else this.types.push({...t,atoms:t.atoms.map((t=>({...t,id:r.get(t.id)||t.id})))})})),!0}getErrors(){return[...this.errors]}isValid(){return 0===this.errors.length}getStatistics(){return{atomCount:this.atoms.length,relationCount:this.relations.length,typeCount:this.types.length,tupleCount:this.relations.reduce(((t,e)=>t+e.tuples.length),0),errorCount:this.errors.length,hasBuiltinTypes:this.types.some((t=>t.isBuiltin))}}clone(){return new e(this.reify())}},t.DataInstanceNormalizer=class t{static mergeRelations(t){let e=new Map;for(let r of t){let t=e.get(r.name);if(t){let e=new Set(t.tuples.map((t=>JSON.stringify(t))));for(let n of r.tuples){let r=JSON.stringify(n);e.has(r)||(t.tuples.push(n),e.add(r))}let n=new Set(t.types);for(let e of r.types)n.has(e)||(t.types.push(e),n.add(e))}else e.set(r.name,{id:r.id||r.name,name:r.name,types:[...r.types],tuples:[...r.tuples]})}return Array.from(e.values())}static inferTypes(e){let r=new Map;for(let n of e)r.has(n.type)||r.set(n.type,{id:n.type,types:[n.type],atoms:[],isBuiltin:t.isBuiltinType(n.type)}),r.get(n.type).atoms.push(n);return Array.from(r.values())}static isBuiltinType(t){return new Set(["String","Int","Bool","seq/Int","univ","none","Entity","Object","Node","Edge","Atom"]).has(t)}static deduplicateAtoms(t){let e=new Map,r=new Set;for(let n of t)e.has(n.id)?r.add(n.id):e.set(n.id,n);return r.size>0&&console.warn(`Found duplicate atoms with IDs: ${Array.from(r).join(", ")}`),Array.from(e.values())}static validateReferences(t,e){let r=new Set(t.map((t=>t.id))),n=[];for(let t of e)for(let e=0;e0){let t=n.length;n=this.deduplicateAtoms(n),n.length0){let t=i.length;i=this.mergeRelations(i),i.length0&&(o=this.inferTypes(n),s.push(`Inferred ${o.length} types from atoms`)),r.validateReferences){let t=this.validateReferences(n,i);s.push(...t.errors)}return{atoms:n,relations:i,types:o,errors:s}}}})),Lm={};f(Lm,{StructuredInputGraph:()=>t.StructuredInputGraph}),t.StructuredInputGraph=void 0;var Im=d((()=>{Rm(),Cm(),An(),Zf(),Ia(),t.StructuredInputGraph=class extends Am{constructor(e){super(!0),this.evaluator=null,this.layoutInstance=null,this.cndSpecString="",this.controlsContainer=null,this.customTypes=new Set,this.relationAtomPositions=["",""],this.currentConstraintError=null,this.dataInstanceEventHandlers={atomAdded:null,atomRemoved:null,relationTupleAdded:null,relationTupleRemoved:null};let r=e||new t.JSONDataInstance({atoms:[],relations:[]});console.log("StructuredInputGraph initialized with data instance:",r),this.setDataInstance(r),this.initializeStructuredInput(),this.addEventListener("edge-creation-requested",this.handleEdgeCreationRequest.bind(this)),this.addEventListener("edge-modification-requested",this.handleEdgeModificationRequest.bind(this)),this.addEventListener("edge-reconnection-requested",this.handleEdgeReconnectionRequest.bind(this))}static get observedAttributes(){return["cnd-spec","data-instance","show-export"]}attributeChangedCallback(t,e,r){if(e!==r)switch(t){case"cnd-spec":this.parseCnDSpec(r);break;case"data-instance":this.updateDataInstance(r);break;case"show-export":this.updateExportVisibility("true"===r)}}initializeStructuredInput(){requestAnimationFrame((()=>{this.createControlsInterface()}))}createControlsInterface(){if(!this.shadowRoot)return;this.controlsContainer=document.createElement("div"),this.controlsContainer.className="structured-input-controls",this.controlsContainer.innerHTML=this.getControlsHTML();let t=document.createElement("style");t.textContent=this.getControlsCSS(),this.shadowRoot.appendChild(t),this.shadowRoot.appendChild(this.controlsContainer),this.bindControlEvents()}getControlsHTML(){return'\n
\n
\n

Data Editor

\n \n
\n
\n
\n
\n

Atoms

\n \n
\n
\n
\n
\n \n \n or\n \n
\n
\n \n \n ID will be auto-generated\n
\n \n
\n
\n
\n \n
\n
\n

Relations

\n \n
\n
\n
\n
\n \n \n
\n
\n \n
\n
\n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n

Delete

\n \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n \n
\n
\n \n
\n
\n

Export

\n \n
\n
\n \n \n
\n
\n \n
\n
\n

Spec Info

\n \n
\n
\n
\n
No spec loaded
\n
\n
\n
\n
\n
\n
\n '}getControlsCSS(){return"\n .structured-input-controls {\n position: absolute;\n top: 12px;\n right: 12px;\n width: 320px;\n background: #ffffff;\n border: 1px solid #d0d7de;\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0,0,0,0.1);\n z-index: 1000;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n overflow: hidden;\n }\n\n .panel-header {\n background: #0078d4;\n color: white;\n padding: 10px 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid rgba(255,255,255,0.1);\n }\n\n .panel-header h3 {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n }\n\n .toggle-panel, .section-toggle {\n background: rgba(255,255,255,0.2);\n border: none;\n color: white;\n cursor: pointer;\n font-size: 12px;\n padding: 4px 8px;\n border-radius: 3px;\n transition: background 0.2s ease;\n }\n\n .toggle-panel:hover, .section-toggle:hover {\n background: rgba(255,255,255,0.3);\n }\n\n .panel-content {\n padding: 12px;\n max-height: 600px;\n overflow-y: auto;\n overflow-x: hidden;\n }\n\n .panel-content::-webkit-scrollbar {\n width: 8px;\n }\n\n .panel-content::-webkit-scrollbar-track {\n background: #f5f5f5;\n }\n\n .panel-content::-webkit-scrollbar-thumb {\n background: #c1c1c1;\n border-radius: 4px;\n }\n\n .panel-content::-webkit-scrollbar-thumb:hover {\n background: #a8a8a8;\n }\n\n .panel-content.collapsed {\n display: none;\n }\n\n .section-card {\n background: #fafbfc;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n padding: 0;\n margin-bottom: 10px;\n }\n\n .section-card:last-child {\n margin-bottom: 0;\n }\n\n .section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 10px;\n background: #f6f8fa;\n border-bottom: 1px solid #d0d7de;\n cursor: pointer;\n user-select: none;\n }\n\n .section-header:hover {\n background: #eef2f5;\n }\n\n .section-toggle {\n background: transparent;\n color: #57606a;\n font-size: 10px;\n padding: 2px 6px;\n }\n\n .section-toggle:hover {\n background: rgba(0,0,0,0.05);\n }\n\n .section-content {\n padding: 12px;\n }\n\n .section-content.collapsed {\n display: none;\n }\n\n h4 {\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n color: #24292e;\n }\n\n .atom-form, .relation-form {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .form-group {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .form-label {\n font-size: 11px;\n font-weight: 600;\n color: #57606a;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n }\n\n .label-divider {\n text-align: center;\n color: #8b949e;\n font-size: 10px;\n font-weight: 500;\n margin: 2px 0;\n }\n\n .form-control {\n padding: 6px 8px;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n font-size: 12px;\n background: white;\n transition: border-color 0.15s ease;\n }\n\n .form-control:focus {\n outline: none;\n border-color: #0078d4;\n box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);\n }\n\n .custom-type-input {\n resize: vertical;\n min-height: 60px;\n font-family: 'SF Mono', Monaco, 'Consolas', 'Courier New', monospace;\n font-size: 11px;\n line-height: 1.4;\n }\n\n .form-hint {\n font-size: 10px;\n color: #8b949e;\n font-style: italic;\n }\n\n .btn-primary, .btn-secondary, .btn-danger, .btn-danger-outline {\n padding: 7px 12px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\n transition: background-color 0.15s ease;\n width: 100%;\n }\n\n .btn-primary {\n background: #0078d4;\n color: white;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: #106ebe;\n }\n\n .btn-secondary {\n background: #6c757d;\n color: white;\n }\n\n .btn-secondary:hover {\n background: #5a6268;\n }\n\n .btn-danger {\n background: #dc3545;\n color: white;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: #c82333;\n }\n\n .btn-danger-outline {\n background: white;\n color: #dc3545;\n border: 1px solid #dc3545;\n }\n\n .btn-danger-outline:hover {\n background: #dc3545;\n color: white;\n }\n\n .btn-primary:disabled, .btn-danger:disabled {\n background: #e9ecef;\n color: #adb5bd;\n cursor: not-allowed;\n }\n\n .btn-sm {\n padding: 5px 10px;\n font-size: 11px;\n border-radius: 3px;\n border: 1px solid #d0d7de;\n background: white;\n cursor: pointer;\n font-weight: 400;\n transition: background-color 0.15s ease;\n }\n\n .btn-sm:hover:not(:disabled) {\n background: #f6f8fa;\n border-color: #0078d4;\n }\n\n .atom-selector {\n margin-top: 8px;\n }\n\n .atom-checkboxes {\n max-height: 120px;\n overflow-y: auto;\n border: 1px solid #d0d7de;\n border-radius: 6px;\n padding: 8px;\n background: white;\n }\n\n .atom-checkbox-item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 0;\n font-size: 12px;\n }\n\n .atom-checkbox-item input[type=\"checkbox\"] {\n margin: 0;\n width: 16px;\n height: 16px;\n }\n\n .relation-atoms {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .atom-positions {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 8px;\n background: white;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n }\n\n .atom-position {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .atom-position label {\n font-size: 10px;\n font-weight: 600;\n color: #57606a;\n }\n\n .atom-position select {\n padding: 5px 8px;\n border: 1px solid #d0d7de;\n border-radius: 3px;\n font-size: 11px;\n background: white;\n }\n\n .arity-controls {\n display: flex;\n gap: 6px;\n }\n\n .arity-display {\n font-weight: 700;\n color: #0078d4;\n }\n\n .deletion-controls {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .bulk-delete {\n border-top: 1px solid #d0d7de;\n padding-top: 10px;\n margin-top: 4px;\n }\n\n .export-output {\n width: 100%;\n height: 100px;\n margin-top: 8px;\n padding: 8px;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n font-family: 'SF Mono', Monaco, 'Consolas', 'Courier New', monospace;\n font-size: 10px;\n line-height: 1.4;\n resize: vertical;\n background: #f6f8fa;\n color: #24292e;\n }\n\n .export-output:focus {\n outline: none;\n border-color: #0078d4;\n box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);\n }\n\n .spec-status {\n font-size: 11px;\n padding: 6px 8px;\n border-radius: 3px;\n background: #f6f8fa;\n border: 1px solid #d0d7de;\n font-weight: 500;\n }\n\n .spec-status.loaded {\n background: #d4edda;\n border-color: #c3e6cb;\n color: #155724;\n }\n\n .spec-status.error {\n background: #f8d7da;\n border-color: #f5c6cb;\n color: #721c24;\n }\n\n .type-list {\n margin-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n\n .type-item {\n background: #e7f3ff;\n color: #0969da;\n padding: 3px 8px;\n border-radius: 3px;\n font-size: 10px;\n font-weight: 500;\n border: 1px solid #b6d7f0;\n }\n "}bindControlEvents(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".toggle-panel"),e=this.controlsContainer.querySelector(".panel-content");t?.addEventListener("click",(()=>{let r=e.classList.contains("collapsed");e.classList.toggle("collapsed"),t.textContent=r?"▲":"▼"})),this.controlsContainer.querySelectorAll(".section-header").forEach((t=>{let e=t.querySelector(".section-toggle"),r=t.closest(".section-card")?.querySelector(".section-content");e&&r&&(t.addEventListener("click",(t=>{if(t.target===e)return;let n=r.classList.contains("collapsed");r.classList.toggle("collapsed"),e.textContent=n?"▲":"▼"})),e.addEventListener("click",(t=>{t.stopPropagation();let n=r.classList.contains("collapsed");r.classList.toggle("collapsed"),e.textContent=n?"▲":"▼"})))}));let r=this.controlsContainer.querySelector(".atom-type-select"),n=this.controlsContainer.querySelector(".custom-type-input"),i=this.controlsContainer.querySelector(".atom-label-input"),o=this.controlsContainer.querySelector(".add-atom-btn"),s=()=>{let t=r.value,e=n.value.trim()||t;o.disabled=!e||!i.value.trim()};r?.addEventListener("change",(()=>{r.value&&"Other..."!==r.value&&(n.value=""),s()})),n?.addEventListener("input",(()=>{n.value.trim()&&(r.value=""),s()})),i?.addEventListener("input",s),o?.addEventListener("click",(async()=>{let t=n.value.trim(),e=t||r.value;if(t){this.customTypes.add(t);let e=Array.from(r.options).find((t=>"Other..."===t.value));if(e&&r.removeChild(e),!Array.from(r.options).find((e=>e.value===t))){let e=document.createElement("option");e.value=t,e.textContent=t,r.appendChild(e)}e&&r.appendChild(e),r.value="",n.value=""}else if(!e)return;await this.addAtomFromForm(e,i.value.trim()),i.value="",s(),this.updateDeletionSelects(),this.updateAtomPositions()}));let a=this.controlsContainer.querySelector(".relation-type-input"),l=this.controlsContainer.querySelector(".add-relation-btn"),u=this.controlsContainer.querySelector(".add-position-btn"),c=this.controlsContainer.querySelector(".remove-position-btn"),h=()=>{let t=this.relationAtomPositions.filter((t=>""!==t.trim())).length>=2,e=a.value.trim();l.disabled=!t||!e};a?.addEventListener("input",h),this.updateAtomPositions(),u?.addEventListener("click",(()=>{this.relationAtomPositions.push(""),this.updateAtomPositions(),h()})),c?.addEventListener("click",(()=>{this.relationAtomPositions.length>2&&(this.relationAtomPositions.pop(),this.updateAtomPositions(),h())})),l?.addEventListener("click",(async()=>{await this.addRelationFromForm(),a.value="",this.relationAtomPositions=["",""],this.updateAtomPositions(),h(),this.updateDeletionSelects()}));let d=this.controlsContainer.querySelector(".atom-delete-select"),p=this.controlsContainer.querySelector(".relation-delete-select"),f=this.controlsContainer.querySelector(".delete-atom-btn"),g=this.controlsContainer.querySelector(".delete-relation-btn"),m=this.controlsContainer.querySelector(".clear-all-btn"),y=()=>{f.disabled=!d.value,g.disabled=!p.value};d?.addEventListener("change",y),p?.addEventListener("change",y),f?.addEventListener("click",(async()=>{await this.deleteAtom(d.value),this.updateDeletionSelects(),this.updateAtomPositions(),y()})),g?.addEventListener("click",(async()=>{await this.deleteRelation(p.value),this.updateDeletionSelects(),y()})),m?.addEventListener("click",(async()=>{await this.clearAllItems(),this.updateDeletionSelects(),this.updateAtomPositions(),y()})),this.controlsContainer.querySelector(".export-json-btn")?.addEventListener("click",(()=>{this.exportDataAsJSON()})),this.updateDeletionSelects()}async handleEdgeCreationRequest(t){console.log("🔗 Handling edge creation request:",t.detail);let{relationId:e,sourceNodeId:r,targetNodeId:n,tuple:i}=t.detail;try{this.dataInstance.addRelationTuple(e,i),console.log(`✅ Added relation to data instance: ${e}(${r}, ${n})`),await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge creation request:",t)}}async handleEdgeModificationRequest(t){console.log("🔗 Handling edge modification request:",t.detail);let{oldRelationId:e,newRelationId:r,sourceNodeId:n,targetNodeId:i,tuple:o}=t.detail;try{if(r&&""!==r.trim()){if(e.trim()===r.trim())return void console.log("⏭️ Same relation name, no data changes needed");if(e&&e.trim())try{this.dataInstance.removeRelationTuple(e,o),console.log(`🗑️ Removed from ${e}`)}catch(t){let r=t instanceof Error?t.message:String(t);console.log(`⚠️ Could not remove from ${e}: ${r}`)}this.dataInstance.addRelationTuple(r,o),console.log(`➕ Added to ${r}`)}else console.log("🗑️ Deleting edge (empty new relation name)"),e&&e.trim()&&(this.dataInstance.removeRelationTuple(e,o),console.log(`✅ Removed relation tuple from ${e}`));await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge modification request:",t)}}async handleEdgeReconnectionRequest(t){console.log("🔄 Handling edge reconnection request:",t.detail);let{relationId:e,oldTuple:r,newTuple:n,oldSourceNodeId:i,oldTargetNodeId:o,newSourceNodeId:s,newTargetNodeId:a}=t.detail;try{if(e&&e.trim())try{this.dataInstance.removeRelationTuple(e,r),console.log(`🗑️ Removed old tuple from ${e}: ${i} -> ${o}`)}catch(t){let r=t instanceof Error?t.message:String(t);console.log(`⚠️ Could not remove old tuple from ${e}: ${r}`)}this.dataInstance.addRelationTuple(e,n),console.log(`➕ Added new tuple to ${e}: ${s} -> ${a}`),await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge reconnection request:",t)}}async parseCnDSpec(t){try{console.log("🔄 Parsing CnD spec and initializing pipeline..."),this.cndSpecString=t,await this.initializeCnDPipeline(t),this.updateTypeSelector(),this.updateSpecInfo(),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("spec-loaded",{detail:{spec:this.cndSpecString}})),console.log("✅ CnD spec parsed and pipeline initialized")}catch(t){console.error("❌ Failed to parse CnD spec:",t),this.updateSpecInfo("error",t instanceof Error?t.message:"Parse error")}}async initializeCnDPipeline(e){if(!e.trim())return console.log("📝 Empty spec - clearing pipeline"),this.evaluator=null,void(this.layoutInstance=null);try{console.log("🔧 Initializing CnD pipeline with spec...");let r=Sa(e);console.log("📋 Layout spec parsed successfully"),this.evaluator=new t.SGraphQueryEvaluator,this.evaluator.initialize({sourceData:this.dataInstance}),console.log("🔍 SGraphQueryEvaluator initialized with data instance"),this.layoutInstance=new t.LayoutInstance(r,this.evaluator,0,!0),console.log("📐 LayoutInstance created"),console.log("✅ CnD pipeline initialized successfully (evaluator + layout instance)")}catch(t){throw console.error("❌ Failed to initialize CnD pipeline:",t),this.evaluator=null,this.layoutInstance=null,t}}async enforceConstraintsAndRegenerate(){console.log("🔄 enforceConstraintsAndRegenerate() called");try{if(!this.layoutInstance)return void console.log("⚠️ Cannot enforce constraints - no layout instance available");console.log("📊 Current data instance state:",{atoms:this.dataInstance.getAtoms().length,relations:this.dataInstance.getRelations().length}),this.evaluator&&(console.log("🔄 Re-initializing evaluator with updated data instance..."),this.evaluator.initialize({sourceData:this.dataInstance}),console.log("✅ Evaluator re-initialized")),console.log("🔧 Generating layout with constraint enforcement...");let t={},e=this.layoutInstance.generateLayout(this.dataInstance,t);e.error?(console.warn("⚠️ Constraint validation error detected:",e.error),this.currentConstraintError=e.error,this.dispatchEvent(new CustomEvent("constraint-error",{detail:{error:e.error,layout:e.layout},bubbles:!0})),console.log("📤 Dispatched constraint-error event with UNSAT core information")):(console.log("✅ Layout generated successfully - all constraints satisfied"),null!==this.currentConstraintError&&(console.log("🧹 Clearing previous constraint error - constraints now satisfied"),this.currentConstraintError=null,this.dispatchEvent(new CustomEvent("constraints-satisfied",{detail:{layout:e.layout},bubbles:!0})),console.log("📤 Dispatched constraints-satisfied event"))),console.log("🎨 Rendering layout..."),await this.renderLayout(e.layout),console.log("✅ Constraints enforced and layout regenerated successfully")}catch(t){console.error("❌ Failed to enforce constraints and regenerate layout:",t),this.dispatchEvent(new CustomEvent("layout-generation-error",{detail:{error:t},bubbles:!0}))}}refreshTypesFromDataInstance(){this.updateTypeSelector()}getAvailableAtomTypes(){let t=new Set;return this.dataInstance&&this.dataInstance.getAtoms().forEach((e=>{e.type&&t.add(e.type)})),0===t.size&&(t.add("Entity"),t.add("Person"),t.add("Object")),Array.from(t)}updateDataInstance(t){try{console.log("Data instance updated:",t)}catch(t){console.error("Failed to update data instance:",t)}}updateExportVisibility(t){let e=this.controlsContainer?.querySelector(".export-section");e&&(e.style.display=t?"block":"none")}updateTypeSelector(){let t=this.controlsContainer?.querySelector(".atom-type-select");if(!t)return;for(;t.children.length>1;)t.removeChild(t.lastChild);this.getAvailableAtomTypes().forEach((e=>{let r=document.createElement("option");r.value=e,r.textContent=e,t.appendChild(r)})),this.customTypes.forEach((e=>{if(!Array.from(t.options).find((t=>t.value===e))){let r=document.createElement("option");r.value=e,r.textContent=e,t.appendChild(r)}}));let e=document.createElement("option");e.value="Other...",e.textContent="Other...",t.appendChild(e)}updateSpecInfo(t="loaded",e){let r=this.controlsContainer?.querySelector(".spec-status"),n=this.controlsContainer?.querySelector(".type-list");if(!r||!n)return;if(r.className=`spec-status ${t}`,"error"===t)return r.textContent=e||"Error loading spec",void(n.innerHTML="");let i=this.getAvailableAtomTypes();r.textContent=`Loaded: ${i.length} atom types available`,n.innerHTML=i.map((t=>`${t}`)).join("")}generateAtomId(t){if(!this.dataInstance)return`${t}-1`;let e=this.dataInstance.getAtoms(),r=new Set(e.map((t=>t.id))),n=1,i=`${t}-${n}`;for(;r.has(i);)n++,i=`${t}-${n}`;return i}async addAtomFromForm(t,e){if(t&&e)try{console.log(`🔵 Adding atom: ${e} (${t})`);let r={id:this.generateAtomId(t),type:t,label:e};this.dataInstance.addAtom(r),console.log(`✅ Atom added to data instance: ${r.label} (${r.id}:${r.type})`),this.refreshTypesFromDataInstance(),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("atom-added",{detail:{atom:r}})),console.log(`🎉 Atom addition completed: ${r.label} (${r.id}:${r.type})`)}catch(t){console.error("❌ Failed to add atom:",t)}}updateAtomPositions(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".atom-positions"),e=this.controlsContainer.querySelector(".arity-display"),r=this.controlsContainer.querySelector(".remove-position-btn");if(!t)return;e&&(e.textContent=this.relationAtomPositions.length.toString()),r&&(r.disabled=this.relationAtomPositions.length<=2),t.innerHTML="";let n=this.dataInstance.getAtoms();0!==n.length?this.relationAtomPositions.forEach(((e,r)=>{let i=document.createElement("div");i.className="atom-position";let o=document.createElement("label");o.textContent=`Position ${r+1}:`;let s=document.createElement("select");s.dataset.position=r.toString();let a=document.createElement("option");a.value="",a.textContent="Select Atom",s.appendChild(a),n.forEach((t=>{let r=document.createElement("option");r.value=t.id,r.textContent=`${t.label} (${t.type})`,t.id===e&&(r.selected=!0),s.appendChild(r)})),s.addEventListener("change",(()=>{this.relationAtomPositions[r]=s.value,this.updateRelationButtonState()})),i.appendChild(o),i.appendChild(s),t.appendChild(i)})):t.innerHTML='
No atoms available
'}updateRelationButtonState(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".relation-type-input"),e=this.controlsContainer.querySelector(".add-relation-btn"),r=this.relationAtomPositions.filter((t=>""!==t.trim())).length>=2,n=t?.value.trim();e&&(e.disabled=!r||!n)}async addRelationFromForm(){if(this.controlsContainer)try{let t=this.controlsContainer.querySelector(".relation-type-input").value.trim();if(!t)return;let e=this.relationAtomPositions.filter((t=>""!==t.trim()));if(e.length<2)return void console.warn("Need at least 2 atoms for a relation");console.log(`🔗 Adding relation: ${t}(${e.join(", ")})`);let r=this.dataInstance.getAtoms(),n=e.map((t=>r.find((e=>e.id===t))?.type||"untyped")),i={atoms:e,types:n};this.dataInstance.addRelationTuple(t,i),console.log(`✅ Relation added to data instance: ${t}(${e.join(", ")})`),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("relation-added",{detail:{relationType:t,tuple:i}})),console.log(`🎉 Relation addition completed: ${t}(${e.join(", ")})`)}catch(t){console.error("❌ Failed to add relation:",t)}}exportDataAsJSON(){try{console.log("📤 Exporting data instance using reify()...");let t=this.dataInstance.reify(),e="string"==typeof t?t:JSON.stringify(t,null,2),r=this.controlsContainer?.querySelector(".export-output");r&&(r.value=e),this.dispatchEvent(new CustomEvent("data-exported",{detail:{data:e,format:"string"==typeof t?"text":"json",reified:t}})),console.log("✅ Data exported using reify()")}catch(t){console.error("❌ Failed to export data:",t)}}handleDataChangeUIUpdate(t=!1){this.refreshTypesFromDataInstance(),this.updateDeletionSelects(),t&&this.updateAtomPositions()}async handleDataDeletionWithValidation(t=!1){this.handleDataChangeUIUpdate(t),await this.enforceConstraintsAndRegenerate()}setDataInstance(t){console.log("🔄 Setting new data instance"),this.dataInstance&&(this.dataInstanceEventHandlers.atomAdded&&this.dataInstance.removeEventListener("atomAdded",this.dataInstanceEventHandlers.atomAdded),this.dataInstanceEventHandlers.atomRemoved&&this.dataInstance.removeEventListener("atomRemoved",this.dataInstanceEventHandlers.atomRemoved),this.dataInstanceEventHandlers.relationTupleAdded&&this.dataInstance.removeEventListener("relationTupleAdded",this.dataInstanceEventHandlers.relationTupleAdded),this.dataInstanceEventHandlers.relationTupleRemoved&&this.dataInstance.removeEventListener("relationTupleRemoved",this.dataInstanceEventHandlers.relationTupleRemoved)),this.dataInstance=t,this.refreshTypesFromDataInstance(),this.dataInstanceEventHandlers.atomAdded=async()=>{console.log("📍 Atom added to instance - updating UI and re-validating constraints"),this.handleDataChangeUIUpdate(!0),await this.enforceConstraintsAndRegenerate()},this.dataInstanceEventHandlers.relationTupleAdded=async()=>{console.log("🔗 Relation added to instance - updating UI and re-validating constraints"),this.handleDataChangeUIUpdate(!1),await this.enforceConstraintsAndRegenerate()},this.dataInstanceEventHandlers.atomRemoved=async()=>{console.log("🗑️ Atom removed from instance - updating UI and re-validating constraints"),await this.handleDataDeletionWithValidation(!0)},this.dataInstanceEventHandlers.relationTupleRemoved=async()=>{console.log("🗑️ Relation tuple removed from instance - updating UI and re-validating constraints"),await this.handleDataDeletionWithValidation(!1)},t.addEventListener("atomAdded",this.dataInstanceEventHandlers.atomAdded),t.addEventListener("relationTupleAdded",this.dataInstanceEventHandlers.relationTupleAdded),t.addEventListener("atomRemoved",this.dataInstanceEventHandlers.atomRemoved),t.addEventListener("relationTupleRemoved",this.dataInstanceEventHandlers.relationTupleRemoved),this.updateDeletionSelects(),this.updateAtomPositions(),console.log("✅ Data instance set successfully")}updateDeletionSelects(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".atom-delete-select"),e=this.controlsContainer.querySelector(".relation-delete-select");if(t){for(;t.children.length>1;)t.removeChild(t.lastChild);this.dataInstance.getAtoms().forEach((e=>{let r=document.createElement("option");r.value=e.id,r.textContent=`${e.label} (${e.type})`,t.appendChild(r)}))}if(e){for(;e.children.length>1;)e.removeChild(e.lastChild);let t=this.dataInstance.getRelations(),r=0;t.forEach((t=>{t.tuples.forEach((n=>{let i=document.createElement("option");i.value=r.toString();let o=n.atoms.map((t=>{let e=this.dataInstance.getAtoms().find((e=>e.id===t));return e?e.label:t})),s=t.id||t.name||"relation";i.textContent=`${s}: ${o.join(" → ")}`,e.appendChild(i),r++}))}))}}async deleteAtom(t){if(t)try{console.log(`🗑️ Deleting atom: ${t}`);let e=this.dataInstance.getAtoms().find((e=>e.id===t));if(!e)return void console.warn(`⚠️ Atom ${t} not found`);this.dataInstance.removeAtom(t),console.log(`✅ Atom removed from data instance: ${e.label} (${e.id})`),console.log(`🎉 Atom deletion completed: ${e.label} (${e.id})`),this.dispatchEvent(new CustomEvent("atom-deleted",{detail:{atom:e}}))}catch(t){console.error("❌ Failed to delete atom:",t)}}async deleteRelation(t){if(t)try{let e=parseInt(t,10);console.log(`🗑️ Deleting relation tuple at index: ${e}`);let r=this.dataInstance.getRelations(),n=0,i=null,o=null;for(let t of r){for(let r of t.tuples){if(n===e){i=t,o=r;break}n++}if(i)break}if(!i||!o)return void console.warn(`⚠️ Relation tuple at index ${e} not found`);let s=i.id||i.name;console.log(`🗑️ Found tuple in relation "${s}": ${o.atoms.join(" → ")}`),this.dataInstance.removeRelationTuple(s,o),console.log(`✅ Relation tuple removed from data instance: ${s}: ${o.atoms.join(" → ")}`),console.log(`🎉 Relation tuple deletion completed: ${s}: ${o.atoms.join(" → ")}`),this.dispatchEvent(new CustomEvent("relation-tuple-deleted",{detail:{relationId:s,tuple:o}}))}catch(t){console.error("❌ Failed to delete relation tuple:",t)}}async clearAllItems(){try{console.log("🧹 Clearing all atoms and relations...");let e=new t.JSONDataInstance({atoms:[],relations:[],types:[]});this.setDataInstance(e),console.log("✅ All items cleared from data instance"),await this.enforceConstraintsAndRegenerate(),console.log("🎉 Clear all completed"),this.dispatchEvent(new CustomEvent("all-items-cleared",{detail:{}}))}catch(t){console.error("❌ Failed to clear all items:",t)}}getDataInstance(){return this.dataInstance}getCurrentConstraintError(){return this.currentConstraintError}hasConstraintErrors(){return null!==this.currentConstraintError}async setCnDSpec(t){this.setAttribute("cnd-spec",t),await this.parseCnDSpec(t)}getAvailableTypes(){return this.getAvailableAtomTypes()}}})),km=p(((t,e)=>{(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,l=1/0,u=9007199254740991,c=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],p="[object Arguments]",f="[object Array]",g="[object Boolean]",m="[object Date]",y="[object Error]",_="[object Function]",v="[object GeneratorFunction]",x="[object Map]",b="[object Number]",T="[object Object]",E="[object Promise]",O="[object RegExp]",S="[object Set]",N="[object String]",A="[object Symbol]",w="[object WeakMap]",R="[object ArrayBuffer]",C="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",P="[object Int32Array]",M="[object Uint8Array]",j="[object Uint8ClampedArray]",K="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(B.source),z=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(Z.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",Ot="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nt="["+vt+"]",At="["+St+"]",wt="["+xt+"]",Rt="\\d+",Ct="["+bt+"]",Lt="["+Tt+"]",It="[^"+vt+St+Rt+bt+Tt+Et+"]",kt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+vt+"]",Pt="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+Et+"]",Kt="(?:"+Lt+"|"+It+")",Ut="(?:"+jt+"|"+It+")",Ft="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+wt+"|"+kt+")?",Bt="["+Ot+"]?",qt=Bt+Ht+"(?:\\u200d(?:"+[Dt,Pt,Mt].join("|")+")"+Bt+Ht+")*",Gt="(?:"+[Ct,Pt,Mt].join("|")+")"+qt,zt="(?:"+[Dt+wt+"?",wt,Pt,Mt,Nt].join("|")+")",Vt=RegExp("['’]","g"),Yt=RegExp(wt,"g"),Wt=RegExp(kt+"(?="+kt+")|"+zt+qt,"g"),Xt=RegExp([jt+"?"+Lt+"+"+Ft+"(?="+[At,jt,"$"].join("|")+")",Ut+"+"+$t+"(?="+[At,jt+Kt,"$"].join("|")+")",jt+"?"+Kt+"+"+Ft,jt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt,Gt].join("|"),"g"),Qt=RegExp("[\\u200d"+vt+xt+Ot+"]"),Jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],te=-1,ee={};ee[L]=ee[I]=ee[k]=ee[D]=ee[P]=ee[M]=ee[j]=ee[K]=ee[U]=!0,ee[p]=ee[f]=ee[R]=ee[g]=ee[C]=ee[m]=ee[y]=ee[_]=ee[x]=ee[b]=ee[T]=ee[O]=ee[S]=ee[N]=ee[w]=!1;var re={};re[p]=re[f]=re[R]=re[C]=re[g]=re[m]=re[L]=re[I]=re[k]=re[D]=re[P]=re[x]=re[b]=re[T]=re[O]=re[S]=re[N]=re[A]=re[M]=re[j]=re[K]=re[U]=!0,re[y]=re[_]=re[w]=!1;var ne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ie=parseFloat,oe=parseInt,se="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ae="object"==typeof self&&self&&self.Object===Object&&self,le=se||ae||Function("return this")(),ue="object"==typeof t&&t&&!t.nodeType&&t,ce=ue&&"object"==typeof e&&e&&!e.nodeType&&e,he=ce&&ce.exports===ue,de=he&&se.process,pe=function(){try{return ce&&ce.require&&ce.require("util").types||de&&de.binding&&de.binding("util")}catch{}}(),fe=pe&&pe.isArrayBuffer,ge=pe&&pe.isDate,me=pe&&pe.isMap,ye=pe&&pe.isRegExp,_e=pe&&pe.isSet,ve=pe&&pe.isTypedArray;function xe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function be(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Ae(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Xe(t,e){for(var r=t.length;r--&&Me(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Je=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ze=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function tr(t){return"\\"+ne[t]}function er(t){return Qt.test(t)}function rr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function nr(t,e){return function(r){return t(e(r))}}function ir(t,e){for(var r=-1,n=t.length,i=0,s=[];++r",""":'"',"'":"'"}),cr=function t(e){var rt,vt=(e=null==e?le:cr.defaults(le.Object(),e,cr.pick(le,Zt))).Array,xt=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=vt.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(rt=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+rt:"",Mt=Ct.toString,jt=It.call(Ot),Kt=le._,Ut=St("^"+It.call(kt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=he?e.Buffer:r,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:r,qt=nr(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Wt=wt.splice,Qt=$t?$t.isConcatSpreadable:r,ne=$t?$t.iterator:r,se=$t?$t.toStringTag:r,ae=function(){try{var t=lo(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),ue=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=xt&&xt.now!==le.Date.now&&xt.now,de=e.setTimeout!==le.setTimeout&&e.setTimeout,pe=Et.ceil,ke=Et.floor,$e=Ot.getOwnPropertySymbols,hr=Ft?Ft.isBuffer:r,dr=e.isFinite,pr=wt.join,fr=nr(Ot.keys,Ot),gr=Et.max,mr=Et.min,yr=xt.now,_r=e.parseInt,vr=Et.random,xr=wt.reverse,br=lo(e,"DataView"),Tr=lo(e,"Map"),Er=lo(e,"Promise"),Or=lo(e,"Set"),Sr=lo(e,"WeakMap"),Nr=lo(Ot,"create"),Ar=Sr&&new Sr,wr={},Rr=Ko(br),Cr=Ko(Tr),Lr=Ko(Er),Ir=Ko(Or),kr=Ko(Sr),Dr=$t?$t.prototype:r,Pr=Dr?Dr.valueOf:r,Mr=Dr?Dr.toString:r;function jr(t){if(ea(t)&&!qs(t)&&!(t instanceof $r)){if(t instanceof Fr)return t;if(kt.call(t,"__wrapped__"))return Uo(t)}return new Fr(t)}var Kr=function(){function t(){}return function(e){if(!ta(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Ur(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,n,i,o,s){var a,l=1&e,u=2&e,c=4&e;if(n&&(a=o?n(t,i,o,s):n(t)),a!==r)return a;if(!ta(t))return t;var h=qs(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Ni(t,a)}else{var d=ho(t),f=d==_||d==v;if(Ys(t))return xi(t,l);if(d==T||d==p||f&&!o){if(a=u||f?{}:fo(t),!l)return u?function(t,e){return Ai(t,co(t),e)}(t,function(t,e){return t&&Ai(e,Ia(e),t)}(a,t)):function(t,e){return Ai(t,uo(t),e)}(t,en(a,t))}else{if(!re[d])return o?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case R:return bi(t);case g:case m:return new n(+t);case C:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case I:case k:case D:case P:case M:case j:case K:case U:return Ti(t,r);case x:return new n;case b:case N:return new n(t);case O:return function(t){var e=new t.constructor(t.source,ct.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new n;case A:return function(t){return Pr?Ot(Pr.call(t)):{}}(t)}}(t,d,l)}}s||(s=new zr);var y=s.get(t);if(y)return y;s.set(t,a),sa(t)?t.forEach((function(r){a.add(sn(r,e,n,r,t,s))})):ra(t)&&t.forEach((function(r,i){a.set(i,sn(r,e,n,i,t,s))}));var E=h?r:(c?u?eo:to:u?Ia:La)(t);return Te(E||t,(function(r,i){E&&(r=t[i=r]),Jr(a,i,sn(r,e,n,i,t,s))})),a}function an(t,e,n){var i=n.length;if(null==t)return!i;for(t=Ot(t);i--;){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a))return!1}return!0}function ln(t,e,i){if("function"!=typeof t)throw new At(n);return Ro((function(){t.apply(r,i)}),e)}function un(t,e,r,n){var i=-1,o=Ne,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=we(e,ze(r))),n?(o=Ae,s=!1):e.length>=200&&(o=Ye,s=!1,e=new Gr(e));t:for(;++i-1},Br.prototype.set=function(t,e){var r=this.__data__,n=Zr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Tr||Br),string:new Hr}},qr.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},qr.prototype.get=function(t){return so(this,t).get(t)},qr.prototype.has=function(t){return so(this,t).has(t)},qr.prototype.set=function(t,e){var r=so(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,i),this},Gr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.clear=function(){this.__data__=new Br,this.size=0},zr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},zr.prototype.get=function(t){return this.__data__.get(t)},zr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!Tr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(t,e),this.size=r.size,this};var cn=Ci(_n),hn=Ci(vn,!0);function dn(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function pn(t,e,n){for(var i=-1,o=t.length;++i0&&r(a)?e>1?gn(a,e-1,r,n,i):Re(i,a):n||(i[i.length]=a)}return i}var mn=Li(),yn=Li(!0);function _n(t,e){return t&&mn(t,e,La)}function vn(t,e){return t&&yn(t,e,La)}function xn(t,e){return Se(e,(function(e){return Qs(t[e])}))}function bn(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&ne}function Sn(t,e){return null!=t&&kt.call(t,e)}function Nn(t,e){return null!=t&&e in Ot(t)}function An(t,e,n){for(var i=n?Ae:Ne,o=t[0].length,s=t.length,a=s,l=vt(s),u=1/0,c=[];a--;){var h=t[a];a&&e&&(h=we(h,ze(e))),u=mr(h.length,u),l[a]=!n&&(e||o>=120&&h.length>=120)?new Gr(a&&h):r}h=t[0];var d=-1,p=l[0];t:for(;++d=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Mn(t,(function(t,r,i){return{criteria:we(e,(function(e){return e(t)})),index:++n,value:t}})))}function Hn(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Wt.call(a,l,1),Wt.call(t,l,1);return t}function qn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Wt.call(t,i,1):li(t,i)}}return t}function Gn(t,e){return t+ke(vr()*(e-t+1))}function zn(t,e){var r="";if(!t||e<1||e>u)return r;do{e%2&&(r+=t),(e=ke(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return Co(Oo(t,e,nl),t+"")}function Yn(t){return Yr(Fa(t))}function Wn(t,e){var r=Fa(t);return ko(r,on(e,0,r.length))}function Xn(t,e,n,i){if(!ta(t))return t;for(var o=-1,s=(e=mi(e,t)).length,a=s-1,l=t;null!=l&&++oi?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=vt(i);++n>>1,s=t[o];null!==s&&!la(s)&&(r?s<=e:s=200){var u=e?null:zi(t);if(u)return or(u);s=!1,i=Ye,l=new Gr}else l=e?[]:a;t:for(;++n=i?t:ti(t,e,n)}var vi=ue||function(t){return le.clearTimeout(t)};function xi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,s=la(t),a=e!==r,l=null===e,u=e==e,c=la(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&t1?n[o-1]:r,a=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,a&&yo(n[0],n[1],a)&&(s=o<3?r:s,o=1),e=Ot(e);++i-1?o[s?e[a]:a]:r}}function Mi(t){return Zi((function(e){var i=e.length,o=i,s=Fr.prototype.thru;for(t&&e.reverse();o--;){var a=e[o];if("function"!=typeof a)throw new At(n);if(s&&!l&&"wrapper"==no(a))var l=new Fr([],!0)}for(o=l?o:i;++o1&&_.reverse(),d&&cl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&n?new Gr:r;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Te(d,(function(r){var n="_."+r[0];e&r[1]&&!Ne(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(ot):[]}(n),r)))}function Io(t){var e=0,n=0;return function(){var i=yr(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function ko(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,os(t,n)}));function ds(t){var e=jr(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var fs=Zi((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $r&&mo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:r}),new Fr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)})),gs=wi((function(t,e,r){kt.call(t,r)?++t[r]:rn(t,r,1)})),ms=Pi(Bo),ys=Pi(qo);function _s(t,e){return(qs(t)?Te:cn)(t,oo(e,3))}function vs(t,e){return(qs(t)?Ee:hn)(t,oo(e,3))}var xs=wi((function(t,e,r){kt.call(t,r)?t[r].push(e):rn(t,r,[e])})),bs=Vn((function(t,e,r){var n=-1,i="function"==typeof e,o=zs(t)?vt(t.length):[];return cn(t,(function(t){o[++n]=i?xe(e,t,r):wn(t,e,r)})),o})),Ts=wi((function(t,e,r){rn(t,r,e)}));function Es(t,e){return(qs(t)?we:Mn)(t,oo(e,3))}var Os=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ss=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yo(t,e[0],e[1])?e=[]:r>2&&yo(e[0],e[1],e[2])&&(e=[e[0]]),$n(t,gn(e,1),[])})),Ns=ce||function(){return le.Date.now()};function As(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Yi(t,a,r,r,r,r,e)}function ws(t,e){var i;if("function"!=typeof e)throw new At(n);return t=fa(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Rs=Vn((function(t,e,r){var n=1;if(r.length){var i=ir(r,io(Rs));n|=s}return Yi(t,n,e,r,i)})),Cs=Vn((function(t,e,r){var n=3;if(r.length){var i=ir(r,io(Cs));n|=s}return Yi(e,n,t,r,i)}));function Ls(t,e,i){var o,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(n);function g(e){var n=o,i=s;return o=s=r,h=e,l=t.apply(i,n)}function m(t){return h=t,u=Ro(_,e),d?g(t):l}function y(t){var n=t-c;return c===r||n>=e||n<0||p&&t-h>=a}function _(){var t=Ns();if(y(t))return v(t);u=Ro(_,function(t){var r=e-(t-c);return p?mr(r,a-(t-h)):r}(t))}function v(t){return u=r,f&&o?g(t):(o=s=r,l)}function x(){var t=Ns(),n=y(t);if(o=arguments,s=this,c=t,n){if(u===r)return m(c);if(p)return vi(u),u=Ro(_,e),g(c)}return u===r&&(u=Ro(_,e)),l}return e=ma(e)||0,ta(i)&&(d=!!i.leading,a=(p="maxWait"in i)?gr(ma(i.maxWait)||0,e):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){u!==r&&vi(u),h=0,o=c=s=u=r},x.flush=function(){return u===r?l:v(Ns())},x}var Is=Vn((function(t,e){return ln(t,1,e)})),ks=Vn((function(t,e,r){return ln(t,ma(e)||0,r)}));function Ds(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ds.Cache||qr),r}function Ps(t){if("function"!=typeof t)throw new At(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ds.Cache=qr;var Ms=yi((function(t,e){var r=(e=1==e.length&&qs(e[0])?we(e[0],ze(oo())):we(gn(e,1),ze(oo()))).length;return Vn((function(n){for(var i=-1,o=mr(n.length,r);++i=e})),Bs=Rn(function(){return arguments}())?Rn:function(t){return ea(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},qs=vt.isArray,Gs=fe?ze(fe):function(t){return ea(t)&&En(t)==R};function zs(t){return null!=t&&Zs(t.length)&&!Qs(t)}function Vs(t){return ea(t)&&zs(t)}var Ys=hr||ml,Ws=ge?ze(ge):function(t){return ea(t)&&En(t)==m};function Xs(t){if(!ea(t))return!1;var e=En(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Qs(t){if(!ta(t))return!1;var e=En(t);return e==_||e==v||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==fa(t)}function Zs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var ra=me?ze(me):function(t){return ea(t)&&ho(t)==x};function na(t){return"number"==typeof t||ea(t)&&En(t)==b}function ia(t){if(!ea(t)||En(t)!=T)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var oa=ye?ze(ye):function(t){return ea(t)&&En(t)==O},sa=_e?ze(_e):function(t){return ea(t)&&ho(t)==S};function aa(t){return"string"==typeof t||!qs(t)&&ea(t)&&En(t)==N}function la(t){return"symbol"==typeof t||ea(t)&&En(t)==A}var ua=ve?ze(ve):function(t){return ea(t)&&Zs(t.length)&&!!ee[En(t)]},ca=Bi(Pn),ha=Bi((function(t,e){return t<=e}));function da(t){if(!t)return[];if(zs(t))return aa(t)?ar(t):Ni(t);if(ne&&t[ne])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[ne]());var e=ho(t);return(e==x?rr:e==S?or:Fa)(t)}function pa(t){return t?(t=ma(t))===l||t===-l?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fa(t){var e=pa(t),r=e%1;return e==e?r?e-r:e:0}function ga(t){return t?on(fa(t),0,h):0}function ma(t){if("number"==typeof t)return t;if(la(t))return c;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var r=dt.test(t);return r||ft.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?c:+t}function ya(t){return Ai(t,Ia(t))}function _a(t){return null==t?"":si(t)}var va=Ri((function(t,e){if(bo(e)||zs(e))Ai(e,La(e),t);else for(var r in e)kt.call(e,r)&&Jr(t,r,e[r])})),xa=Ri((function(t,e){Ai(e,Ia(e),t)})),ba=Ri((function(t,e,r,n){Ai(e,Ia(e),t,n)})),Ta=Ri((function(t,e,r,n){Ai(e,La(e),t,n)})),Ea=Zi(nn),Oa=Vn((function(t,e){t=Ot(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&yo(e[0],e[1],o)&&(i=1);++n1),e})),Ai(t,eo(t),r),n&&(r=sn(r,7,Qi));for(var i=e.length;i--;)li(r,e[i]);return r})),Ma=Zi((function(t,e){return null==t?{}:function(t,e){return Hn(t,e,(function(e,r){return Aa(t,r)}))}(t,e)}));function ja(t,e){if(null==t)return{};var r=we(eo(t),(function(t){return[t]}));return e=oo(e),Hn(t,r,(function(t,r){return e(t,r[0])}))}var Ka=Vi(La),Ua=Vi(Ia);function Fa(t){return null==t?[]:Ve(t,La(t))}var $a=ki((function(t,e,r){return e=e.toLowerCase(),t+(r?Ha(e):e)}));function Ha(t){return Xa(_a(t).toLowerCase())}function Ba(t){return(t=_a(t))&&t.replace(mt,Je).replace(Yt,"")}var qa=ki((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ga=ki((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),za=Ii("toLowerCase"),Va=ki((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ya=ki((function(t,e,r){return t+(r?" ":"")+Xa(e)})),Wa=ki((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xa=Ii("toUpperCase");function Qa(t,e,n){return t=_a(t),(e=n?r:e)===r?function(t){return Jt.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(st)||[]}(t):t.match(e)||[]}var Ja=Vn((function(t,e){try{return xe(t,r,e)}catch(t){return Xs(t)?t:new bt(t)}})),Za=Zi((function(t,e){return Te(e,(function(e){e=jo(e),rn(t,e,Rs(t[e],t))})),t}));function tl(t){return function(){return t}}var el=Mi(),rl=Mi(!0);function nl(t){return t}function il(t){return kn("function"==typeof t?t:sn(t,1))}var ol=Vn((function(t,e){return function(r){return wn(r,t,e)}})),sl=Vn((function(t,e){return function(r){return wn(t,r,e)}}));function al(t,e,r){var n=La(e),i=xn(e,n);null==r&&(!ta(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=xn(e,La(e)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Qs(t);return Te(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=Ni(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Re([this.value()],arguments))})})),t}function ll(){}var ul=Fi(we),cl=Fi(Oe),hl=Fi(Ie);function dl(t){return _o(t)?Fe(jo(t)):function(t){return function(e){return bn(e,t)}}(t)}var pl=Hi(),fl=Hi(!0);function gl(){return[]}function ml(){return!1}var yl=Ui((function(t,e){return t+e}),0),_l=Gi("ceil"),vl=Ui((function(t,e){return t/e}),1),xl=Gi("floor"),bl=Ui((function(t,e){return t*e}),1),Tl=Gi("round"),El=Ui((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new At(n);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=As,jr.assign=va,jr.assignIn=xa,jr.assignInWith=ba,jr.assignWith=Ta,jr.at=Ea,jr.before=ws,jr.bind=Rs,jr.bindAll=Za,jr.bindKey=Cs,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},jr.chain=ds,jr.chunk=function(t,e,n){e=(n?yo(t,e,n):e===r)?1:gr(fa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=vt(pe(i/e));oo?0:o+n),(i=i===r||i>o?o:fa(i))<0&&(i+=o),i=n>i?0:ga(i);n>>0)?(t=_a(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=si(e))&&er(t)?_i(ar(t),0,n):t.split(e,n):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new At(n);return e=null==e?0:gr(fa(e),0),Vn((function(r){var n=r[e],i=_i(r,0,e);return n&&Re(i,n),xe(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},jr.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===r?1:fa(e))<0?0:e):[]},jr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ti(t,(e=i-(e=n||e===r?1:fa(e)))<0?0:e,i):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new At(n);return ta(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ls(t,e,{leading:i,maxWait:e,trailing:o})},jr.thru=ps,jr.toArray=da,jr.toPairs=Ka,jr.toPairsIn=Ua,jr.toPath=function(t){return qs(t)?we(t,jo):la(t)?[t]:Ni(Mo(_a(t)))},jr.toPlainObject=ya,jr.transform=function(t,e,r){var n=qs(t),i=n||Ys(t)||ua(t);if(e=oo(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:ta(t)&&Qs(o)?Kr(qt(t)):{}}return(i?Te:_n)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return As(t,1)},jr.union=es,jr.unionBy=rs,jr.unionWith=ns,jr.uniq=function(t){return t&&t.length?ai(t):[]},jr.uniqBy=function(t,e){return t&&t.length?ai(t,oo(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?ai(t,r,e):[]},jr.unset=function(t,e){return null==t||li(t,e)},jr.unzip=is,jr.unzipWith=os,jr.update=function(t,e,r){return null==t?t:ui(t,e,gi(r))},jr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ui(t,e,gi(n),i)},jr.values=Fa,jr.valuesIn=function(t){return null==t?[]:Ve(t,Ia(t))},jr.without=ss,jr.words=Qa,jr.wrap=function(t,e){return js(gi(e),t)},jr.xor=as,jr.xorBy=ls,jr.xorWith=us,jr.zip=cs,jr.zipObject=function(t,e){return pi(t||[],e||[],Jr)},jr.zipObjectDeep=function(t,e){return pi(t||[],e||[],Xn)},jr.zipWith=hs,jr.entries=Ka,jr.entriesIn=Ua,jr.extend=xa,jr.extendWith=ba,al(jr,jr),jr.add=yl,jr.attempt=Ja,jr.camelCase=$a,jr.capitalize=Ha,jr.ceil=_l,jr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ma(n))==n?n:0),e!==r&&(e=(e=ma(e))==e?e:0),on(ma(t),e,n)},jr.clone=function(t){return sn(t,4)},jr.cloneDeep=function(t){return sn(t,5)},jr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:r)},jr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:r)},jr.conformsTo=function(t,e){return null==e||an(t,e,La(e))},jr.deburr=Ba,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=vl,jr.endsWith=function(t,e,n){t=_a(t),e=si(e);var i=t.length,o=n=n===r?i:on(fa(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},jr.eq=Fs,jr.escape=function(t){return(t=_a(t))&&z.test(t)?t.replace(q,Ze):t},jr.escapeRegExp=function(t){return(t=_a(t))&&tt.test(t)?t.replace(Z,"\\$&"):t},jr.every=function(t,e,n){var i=qs(t)?Oe:dn;return n&&yo(t,e,n)&&(e=r),i(t,oo(e,3))},jr.find=ms,jr.findIndex=Bo,jr.findKey=function(t,e){return De(t,oo(e,3),_n)},jr.findLast=ys,jr.findLastIndex=qo,jr.findLastKey=function(t,e){return De(t,oo(e,3),vn)},jr.floor=xl,jr.forEach=_s,jr.forEachRight=vs,jr.forIn=function(t,e){return null==t?t:mn(t,oo(e,3),Ia)},jr.forInRight=function(t,e){return null==t?t:yn(t,oo(e,3),Ia)},jr.forOwn=function(t,e){return t&&_n(t,oo(e,3))},jr.forOwnRight=function(t,e){return t&&vn(t,oo(e,3))},jr.get=Na,jr.gt=$s,jr.gte=Hs,jr.has=function(t,e){return null!=t&&po(t,e,Sn)},jr.hasIn=Aa,jr.head=zo,jr.identity=nl,jr.includes=function(t,e,r,n){t=zs(t)?t:Fa(t),r=r&&!n?fa(r):0;var i=t.length;return r<0&&(r=gr(i+r,0)),aa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Me(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=gr(n+i,0)),Me(t,e,i)},jr.inRange=function(t,e,n){return e=pa(e),n===r?(n=e,e=0):n=pa(n),function(t,e,r){return t>=mr(e,r)&&t=-u&&t<=u},jr.isSet=sa,jr.isString=aa,jr.isSymbol=la,jr.isTypedArray=ua,jr.isUndefined=function(t){return t===r},jr.isWeakMap=function(t){return ea(t)&&ho(t)==w},jr.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==En(t)},jr.join=function(t,e){return null==t?"":pr.call(t,e)},jr.kebabCase=qa,jr.last=Xo,jr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=fa(n))<0?gr(i+o,0):mr(o,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Pe(t,Ke,o,!0)},jr.lowerCase=Ga,jr.lowerFirst=za,jr.lt=ca,jr.lte=ha,jr.max=function(t){return t&&t.length?pn(t,nl,On):r},jr.maxBy=function(t,e){return t&&t.length?pn(t,oo(e,2),On):r},jr.mean=function(t){return Ue(t,nl)},jr.meanBy=function(t,e){return Ue(t,oo(e,2))},jr.min=function(t){return t&&t.length?pn(t,nl,Pn):r},jr.minBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Pn):r},jr.stubArray=gl,jr.stubFalse=ml,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=bl,jr.nth=function(t,e){return t&&t.length?Fn(t,fa(e)):r},jr.noConflict=function(){return le._===this&&(le._=Kt),this},jr.noop=ll,jr.now=Ns,jr.pad=function(t,e,r){t=_a(t);var n=(e=fa(e))?sr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return $i(ke(i),r)+t+$i(pe(i),r)},jr.padEnd=function(t,e,r){t=_a(t);var n=(e=fa(e))?sr(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var o=vr();return mr(t+o*(e-t+ie("1e-"+((o+"").length-1))),e)}return Gn(t,e)},jr.reduce=function(t,e,r){var n=qs(t)?Ce:He,i=arguments.length<3;return n(t,oo(e,4),r,i,cn)},jr.reduceRight=function(t,e,r){var n=qs(t)?Le:He,i=arguments.length<3;return n(t,oo(e,4),r,i,hn)},jr.repeat=function(t,e,n){return e=(n?yo(t,e,n):e===r)?1:fa(e),zn(_a(t),e)},jr.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,n){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=r);++iu)return[];var r=h,n=mr(t,h);e=oo(e),t-=h;for(var i=qe(n,e);++r=s)return t;var l=n-sr(i);if(l<1)return i;var u=a?_i(a,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(a&&(l+=u.length-l),oa(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,_a(ct.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===r?l:d)}}else if(t.indexOf(si(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},jr.unescape=function(t){return(t=_a(t))&&G.test(t)?t.replace(B,ur):t},jr.uniqueId=function(t){var e=++Dt;return _a(t)+e},jr.upperCase=Wa,jr.upperFirst=Xa,jr.each=_s,jr.eachRight=vs,jr.first=zo,al(jr,function(){var t={};return _n(jr,(function(e,r){kt.call(jr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),jr.VERSION="4.17.23",Te(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),Te(["drop","take"],(function(t,e){$r.prototype[t]=function(n){n=n===r?1:gr(fa(n),0);var i=this.__filtered__&&!e?new $r(this):this.clone();return i.__filtered__?i.__takeCount__=mr(n,i.__takeCount__):i.__views__.push({size:mr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},$r.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Te(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;$r.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Te(["head","last"],(function(t,e){var r="take"+(e?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),Te(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(nl)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new $r(this):this.map((function(r){return wn(r,t,e)}))})),$r.prototype.reject=function(t){return this.filter(Ps(oo(t)))},$r.prototype.slice=function(t,e){t=fa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $r(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=fa(e))<0?n.dropRight(-e):n.take(e-t)),n)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(h)},_n($r.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=jr[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,l=e instanceof $r,u=a[0],c=l||qs(e),h=function(t){var e=o.apply(jr,Re([t],a));return i&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new $r(this);var m=t.apply(e,a);return m.__actions__.push({func:ps,args:[h],thisArg:r}),new Fr(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?i?m.value()[0]:m.value():m)})})),Te(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(qs(i)?i:[],t)}return this[r]((function(r){return e.apply(qs(r)?r:[],t)}))}})),_n($r.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";kt.call(wr,n)||(wr[n]=[]),wr[n].push({name:e,func:r})}})),wr[ji(r,2).name]=[{name:"wrapper",func:r}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=qs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,n=this;n instanceof Ur;){var i=Uo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var e=t;return this.__actions__.length&&(e=new $r(this)),(e=e.reverse()).__actions__.push({func:ps,args:[ts],thisArg:r}),new Fr(e,this.__chain__)}return this.thru(ts)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,ne&&(jr.prototype[ne]=function(){return this}),jr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(le._=cr,define((function(){return cr}))):ce?((ce.exports=cr)._=cr,ue._=cr):le._=cr}).call(t)})),Dm=p(((t,e)=>{var r;if(h)try{r=km()}catch{}r||(r=window._),e.exports=r})),Pm=p(((t,e)=>{e.exports=function(){function t(t,e,r,n,i,o){this.message=t,this.expected=e,this.found=r,this.offset=n,this.line=i,this.column=o,this.name="SyntaxError"}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(t,Error),{SyntaxError:t,parse:function(e){var r,n=arguments.length>1?arguments[1]:{},i={},o={start:_e,graphStmt:ve},s=_e,a=i,l=null,u="{",c={type:"literal",value:"{",description:'"{"'},h="}",d={type:"literal",value:"}",description:'"}"'},p=function(t,e,r,n){return{type:e,id:r,strict:null!==t,stmts:n}},f=";",g={type:"literal",value:";",description:'";"'},m=function(t,e){for(var r=[t],n=0;n",description:'"->"'},U=function(t,e){var r=[t];if(e)for(var n=0;nt&&(ce=0,he={line:1,column:1,seenCR:!1}),function(t,r,n){var i,o;for(i=r;ide&&(de=ue,pe=[]),pe.push(t))}function ye(r,n,i){var o=ge(i),s=ie.description?1:0}));e1?n.slice(0,-1).join(", ")+" or "+n[t.length-1]:n[0])+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+e(t)})).replace(/[\u0180-\u0FFF]/g,(function(t){return"\\u0"+e(t)})).replace(/[\u1080-\uFFFF]/g,(function(t){return"\\u"+e(t)}))}(e)+'"':"end of input")+" found."}(n,s),n,s,i,o.line,o.column)}function _e(){var t,e;if(t=[],(e=ve())!==i)for(;e!==i;)t.push(e),e=ve();else t=a;return t}function ve(){var t,r,n,o,s,f,g,m,y,_,v,x,b,T;for(t=ue,r=[],n=ze();n!==i;)r.push(n),n=ze();if(r!==i)if(n=ue,(o=He())!==i&&(s=ze())!==i?n=o=[o,s]:(ue=n,n=a),n===i&&(n=l),n!==i)if((o=Be())!==i){for(s=[],f=ze();f!==i;)s.push(f),f=ze();if(s!==i)if((f=Me())===i&&(f=l),f!==i){for(g=[],m=ze();m!==i;)g.push(m),m=ze();if(g!==i)if(123===e.charCodeAt(ue)?(m=u,ue++):(m=i,0===fe&&me(c)),m!==i){for(y=[],_=ze();_!==i;)y.push(_),_=ze();if(y!==i)if((_=xe())===i&&(_=l),_!==i){for(v=[],x=ze();x!==i;)v.push(x),x=ze();if(v!==i)if(125===e.charCodeAt(ue)?(x=h,ue++):(x=i,0===fe&&me(d)),x!==i){for(b=[],T=ze();T!==i;)b.push(T),T=ze();b!==i?t=r=p(n,o,f,_):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a;else ue=t,t=a;return t}function xe(){var t,r,n,o,s,u,c,h,d,p;if(t=ue,(r=be())!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if(59===e.charCodeAt(ue)?(o=f,ue++):(o=i,0===fe&&me(g)),o===i&&(o=l),o!==i){for(s=[],u=ue,c=[],h=ze();h!==i;)c.push(h),h=ze();if(c!==i)if((h=be())!==i){for(d=[],p=ze();p!==i;)d.push(p),p=ze();d!==i?(59===e.charCodeAt(ue)?(p=f,ue++):(p=i,0===fe&&me(g)),p===i&&(p=l),p!==i?u=c=[c,h,d,p]:(ue=u,u=a)):(ue=u,u=a)}else ue=u,u=a;else ue=u,u=a;for(;u!==i;){for(s.push(u),u=ue,c=[],h=ze();h!==i;)c.push(h),h=ze();if(c!==i)if((h=be())!==i){for(d=[],p=ze();p!==i;)d.push(p),p=ze();d!==i?(59===e.charCodeAt(ue)?(p=f,ue++):(p=i,0===fe&&me(g)),p===i&&(p=l),p!==i?u=c=[c,h,d,p]:(ue=u,u=a)):(ue=u,u=a)}else ue=u,u=a;else ue=u,u=a}s!==i?t=r=m(r,s):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function be(){var t;return(t=Te())===i&&(t=Se())===i&&(t=Ne())===i&&(t=Ee())===i&&(t=Oe()),t}function Te(){var t,e,r,n;if(t=ue,(e=Ue())===i&&(e=je())===i&&(e=Ke()),e!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i&&(n=Ae())!==i?t=e=y(e,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ee(){var t,r,n,o,s,l;if(t=ue,(r=Me())!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if(61===e.charCodeAt(ue)?(o=_,ue++):(o=i,0===fe&&me(v)),o!==i){for(s=[],l=ze();l!==i;)s.push(l),l=ze();s!==i&&(l=Me())!==i?t=r=x(r,l):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Oe(){var t,e,r,n;if(t=ue,(e=ke())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i?((n=Ae())===i&&(n=l),n!==i?t=e=b(e,n):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return t}function Se(){var t,e,r,n,o,s;if(t=ue,(e=Ie())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();if(r!==i)if((n=Ce())!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();o!==i?((s=Ae())===i&&(s=l),s!==i?t=e=T(e,n,s):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Ne(){var t,r,n,o,s,p,f,g;if(t=ue,r=ue,(n=$e())!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i){if(s=ue,(p=Me())!==i){for(f=[],g=ze();g!==i;)f.push(g),g=ze();f!==i?s=p=[p,f]:(ue=s,s=a)}else ue=s,s=a;s===i&&(s=l),s!==i?r=n=[n,o,s]:(ue=r,r=a)}else ue=r,r=a}else ue=r,r=a;if(r===i&&(r=l),r!==i)if(123===e.charCodeAt(ue)?(n=u,ue++):(n=i,0===fe&&me(c)),n!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i)if((s=xe())===i&&(s=l),s!==i){for(p=[],f=ze();f!==i;)p.push(f),f=ze();p!==i?(125===e.charCodeAt(ue)?(f=h,ue++):(f=i,0===fe&&me(d)),f!==i?t=r=E(r,s):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a;return t}function Ae(){var t,e,r,n,o,s;if(t=ue,(e=we())!==i){for(r=[],n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();for(o!==i&&(s=we())!==i?n=o=[o,s]:(ue=n,n=a);n!==i;){for(r.push(n),n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();o!==i&&(s=we())!==i?n=o=[o,s]:(ue=n,n=a)}r!==i?t=e=O(e,r):(ue=t,t=a)}else ue=t,t=a;return t}function we(){var t,r,n,o,s,u;if(t=ue,91===e.charCodeAt(ue)?(r=S,ue++):(r=i,0===fe&&me(N)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Re())===i&&(o=l),o!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();s!==i?(93===e.charCodeAt(ue)?(u=A,ue++):(u=i,0===fe&&me(w)),u!==i?t=r=R(o):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Re(){var t,r,n,o,s,u,c,h;if(t=ue,(r=Le())!==i){for(n=[],o=ue,s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i)if(44===e.charCodeAt(ue)?(u=C,ue++):(u=i,0===fe&&me(L)),u===i&&(u=l),u!==i){for(c=[],h=ze();h!==i;)c.push(h),h=ze();c!==i&&(h=Le())!==i?o=s=[s,u,c,h]:(ue=o,o=a)}else ue=o,o=a;else ue=o,o=a;for(;o!==i;){for(n.push(o),o=ue,s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i)if(44===e.charCodeAt(ue)?(u=C,ue++):(u=i,0===fe&&me(L)),u===i&&(u=l),u!==i){for(c=[],h=ze();h!==i;)c.push(h),h=ze();c!==i&&(h=Le())!==i?o=s=[s,u,c,h]:(ue=o,o=a)}else ue=o,o=a;else ue=o,o=a}n!==i?t=r=I(r,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ce(){var t,r,n,o,s,u;if(t=ue,r=ue,e.substr(ue,2)===k?(n=k,ue+=2):(n=i,0===fe&&me(D)),n!==i&&(o=(o=P())?a:M)!==i?r=n=[n,o]:(ue=r,r=a),r===i&&(r=ue,e.substr(ue,2)===j?(n=j,ue+=2):(n=i,0===fe&&me(K)),n!==i&&(o=(o=P())?M:a)!==i?r=n=[n,o]:(ue=r,r=a)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Ie())!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();s!==i?((u=Ce())===i&&(u=l),u!==i?t=r=U(o,u):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Le(){var t,r,n,o,s,u,c;if(t=ue,(r=Me())!==i){for(n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i)if(61===e.charCodeAt(ue)?(s=_,ue++):(s=i,0===fe&&me(v)),s!==i){for(u=[],c=ze();c!==i;)u.push(c),c=ze();u!==i&&(c=Me())!==i?n=o=[o,s,u,c]:(ue=n,n=a)}else ue=n,n=a;else ue=n,n=a;n===i&&(n=l),n!==i?t=r=F(r,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ie(){var t,e;return(t=Ne())===i&&(t=ue,(e=ke())!==i&&(e=$(e)),t=e),t}function ke(){var t,e,r,n;if(t=ue,(e=Me())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i?((n=De())===i&&(n=l),n!==i?t=e=H(e):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return t}function De(){var t,r,n,o,s,u,c,h,d;if(t=ue,58===e.charCodeAt(ue)?(r=B,ue++):(r=i,0===fe&&me(q)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Me())!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i){if(u=ue,58===e.charCodeAt(ue)?(c=B,ue++):(c=i,0===fe&&me(q)),c!==i){for(h=[],d=ze();d!==i;)h.push(d),d=ze();h!==i&&(d=Pe())!==i?u=c=[c,h,d]:(ue=u,u=a)}else ue=u,u=a;u===i&&(u=l),u!==i?t=r=[r,n,o,s,u]:(ue=t,t=a)}else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Pe(){var t;return e.substr(ue,2)===G?(t=G,ue+=2):(t=i,0===fe&&me(z)),t===i&&(e.substr(ue,2)===V?(t=V,ue+=2):(t=i,0===fe&&me(Y)),t===i&&(e.substr(ue,2)===W?(t=W,ue+=2):(t=i,0===fe&&me(X)),t===i&&(e.substr(ue,2)===Q?(t=Q,ue+=2):(t=i,0===fe&&me(J)),t===i&&(110===e.charCodeAt(ue)?(t=Z,ue++):(t=i,0===fe&&me(tt)),t===i&&(101===e.charCodeAt(ue)?(t=et,ue++):(t=i,0===fe&&me(rt)),t===i&&(115===e.charCodeAt(ue)?(t=nt,ue++):(t=i,0===fe&&me(it)),t===i&&(119===e.charCodeAt(ue)?(t=ot,ue++):(t=i,0===fe&&me(st)),t===i&&(99===e.charCodeAt(ue)?(t=at,ue++):(t=i,0===fe&&me(lt)),t===i&&(95===e.charCodeAt(ue)?(t=ut,ue++):(t=i,0===fe&&me(ct))))))))))),t}function Me(){var t,r,n,o,s,u,c;if(fe++,t=ue,dt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(pt)),r!==i){for(n=[],ft.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(gt));o!==i;)n.push(o),ft.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(gt));n!==i?t=r=mt(r,n):(ue=t,t=a)}else ue=t,t=a;if(t===i){if(t=ue,45===e.charCodeAt(ue)?(r=yt,ue++):(r=i,0===fe&&me(_t)),r===i&&(r=l),r!==i)if(46===e.charCodeAt(ue)?(n=vt,ue++):(n=i,0===fe&&me(xt)),n!==i){if(o=[],bt.test(e.charAt(ue))?(s=e.charAt(ue),ue++):(s=i,0===fe&&me(Tt)),s!==i)for(;s!==i;)o.push(s),bt.test(e.charAt(ue))?(s=e.charAt(ue),ue++):(s=i,0===fe&&me(Tt));else o=a;o!==i?t=r=Et(r,n,o):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a;if(t===i){if(t=ue,45===e.charCodeAt(ue)?(r=yt,ue++):(r=i,0===fe&&me(_t)),r===i&&(r=l),r!==i){if(n=[],bt.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(Tt)),o!==i)for(;o!==i;)n.push(o),bt.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(Tt));else n=a;if(n!==i){if(o=ue,46===e.charCodeAt(ue)?(s=vt,ue++):(s=i,0===fe&&me(xt)),s!==i){for(u=[],bt.test(e.charAt(ue))?(c=e.charAt(ue),ue++):(c=i,0===fe&&me(Tt));c!==i;)u.push(c),bt.test(e.charAt(ue))?(c=e.charAt(ue),ue++):(c=i,0===fe&&me(Tt));u!==i?o=s=[s,u]:(ue=o,o=a)}else ue=o,o=a;o===i&&(o=l),o!==i?t=r=Ot(r,n,o):(ue=t,t=a)}else ue=t,t=a}else ue=t,t=a;if(t===i)if(t=ue,34===e.charCodeAt(ue)?(r=St,ue++):(r=i,0===fe&&me(Nt)),r!==i){for(n=[],o=ue,e.substr(ue,2)===At?(s=At,ue+=2):(s=i,0===fe&&me(wt)),s!==i&&(s=Rt()),(o=s)===i&&(o=ue,92===e.charCodeAt(ue)?(s=Ct,ue++):(s=i,0===fe&&me(Lt)),s!==i?(It.test(e.charAt(ue))?(u=e.charAt(ue),ue++):(u=i,0===fe&&me(kt)),u!==i?o=s=Dt(u):(ue=o,o=a)):(ue=o,o=a),o===i&&(It.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(kt))));o!==i;)n.push(o),o=ue,e.substr(ue,2)===At?(s=At,ue+=2):(s=i,0===fe&&me(wt)),s!==i&&(s=Rt()),(o=s)===i&&(o=ue,92===e.charCodeAt(ue)?(s=Ct,ue++):(s=i,0===fe&&me(Lt)),s!==i?(It.test(e.charAt(ue))?(u=e.charAt(ue),ue++):(u=i,0===fe&&me(kt)),u!==i?o=s=Dt(u):(ue=o,o=a)):(ue=o,o=a),o===i&&(It.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(kt))));n!==i?(34===e.charCodeAt(ue)?(o=St,ue++):(o=i,0===fe&&me(Nt)),o!==i?t=r=Pt(n):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a}}return fe--,t===i&&(r=i,0===fe&&me(ht)),t}function je(){var t;return e.substr(ue,4).toLowerCase()===Mt?(t=e.substr(ue,4),ue+=4):(t=i,0===fe&&me(jt)),t!==i&&(t=Kt(t)),t}function Ke(){var t;return e.substr(ue,4).toLowerCase()===Ut?(t=e.substr(ue,4),ue+=4):(t=i,0===fe&&me(Ft)),t!==i&&(t=Kt(t)),t}function Ue(){var t;return e.substr(ue,5).toLowerCase()===$t?(t=e.substr(ue,5),ue+=5):(t=i,0===fe&&me(Ht)),t!==i&&(t=Kt(t)),t}function Fe(){var t;return e.substr(ue,7).toLowerCase()===Bt?(t=e.substr(ue,7),ue+=7):(t=i,0===fe&&me(qt)),t!==i&&(t=Kt(t)),t}function $e(){var t;return e.substr(ue,8).toLowerCase()===Gt?(t=e.substr(ue,8),ue+=8):(t=i,0===fe&&me(zt)),t!==i&&(t=Kt(t)),t}function He(){var t;return e.substr(ue,6).toLowerCase()===Vt?(t=e.substr(ue,6),ue+=6):(t=i,0===fe&&me(Yt)),t!==i&&(t=Kt(t)),t}function Be(){var t,e;return(t=Ue())===i&&(t=ue,(e=Fe())!==i&&(e=Wt(e)),t=e),t}function qe(){var t,r;if(fe++,t=[],Qt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(Jt)),r!==i)for(;r!==i;)t.push(r),Qt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(Jt));else t=a;return fe--,t===i&&(r=i,0===fe&&me(Xt)),t}function Ge(){var t,r,n,o,s,l;if(fe++,t=ue,e.substr(ue,2)===te?(r=te,ue+=2):(r=i,0===fe&&me(ee)),r!==i){for(n=[],re.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(ne));o!==i;)n.push(o),re.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(ne));n!==i?t=r=[r,n]:(ue=t,t=a)}else ue=t,t=a;if(t===i)if(t=ue,e.substr(ue,2)===ie?(r=ie,ue+=2):(r=i,0===fe&&me(oe)),r!==i){for(n=[],o=ue,s=ue,fe++,e.substr(ue,2)===se?(l=se,ue+=2):(l=i,0===fe&&me(ae)),fe--,l===i?s=M:(ue=s,s=a),s!==i?(e.length>ue?(l=e.charAt(ue),ue++):(l=i,0===fe&&me(le)),l!==i?o=s=[s,l]:(ue=o,o=a)):(ue=o,o=a);o!==i;)n.push(o),o=ue,s=ue,fe++,e.substr(ue,2)===se?(l=se,ue+=2):(l=i,0===fe&&me(ae)),fe--,l===i?s=M:(ue=s,s=a),s!==i?(e.length>ue?(l=e.charAt(ue),ue++):(l=i,0===fe&&me(le)),l!==i?o=s=[s,l]:(ue=o,o=a)):(ue=o,o=a);n!==i?(e.substr(ue,2)===se?(o=se,ue+=2):(o=i,0===fe&&me(ae)),o!==i?t=r=[r,n,o]:(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return fe--,t===i&&(r=i,0===fe&&me(Zt)),t}function ze(){var t;return(t=qe())===i&&(t=Ge()),t}var Ve,Ye=Dm();if((r=s())!==i&&ue===e.length)return r;throw r!==i&&ue{var r;if(h)try{r=gn()}catch{}r||(r=window.graphlib),e.exports=r})),jm=p(((t,e)=>{var r=Dm(),n=Mm().Graph;function i(t,e,n,s){switch(e.type){case"node":!function(t,e,n,i){var s=e.id,a=e.attrs;o(t,s,n,i),r.merge(t.node(s),a)}(t,e,n,s);break;case"edge":!function(t,e,n,o){var s,a,l=e.attrs;r.each(e.elems,(function(e){switch(i(t,e,n,o),e.type){case"node":a=[e.id];break;case"subgraph":a=function(t){var e,n={},i=[],o=i.push.bind(i);for(o(t);i.length;)switch(e=i.pop(),e.type){case"node":n[e.id]=!0;break;case"edge":r.each(e.elems,o);break;case"subgraph":r.each(e.stmts,o)}return r.keys(n)}(e)}r.each(s,(function(e){r.each(a,(function(i){var o;t.hasEdge(e,i)&&t.isMultigraph()&&(o=r.uniqueId("edge")),t.hasEdge(e,i,o)||t.setEdge(e,i,r.clone(r.last(n).edge),o),r.merge(t.edge(e,i,o),l)}))})),s=a}))}(t,e,n,s);break;case"subgraph":!function(t,e,n,s){var a=e.id;void 0===a&&(a=function(t){var e;do{e=r.uniqueId("sg")}while(t.hasNode(e));return e}(t)),n.push(r.clone(r.last(n))),o(t,a,n,s),r.each(e.stmts,(function(e){i(t,e,n,a)})),t.children(a).length||t.removeNode(a),n.pop()}(t,e,n,s);break;case"attr":!function(t,e,n){r.merge(r.last(n)[e.attrType],e.attrs)}(0,e,n);break;case"inlineAttr":!function(t,e,n,i){r.merge(i?t.node(i):t.graph(),e.attrs)}(t,e,0,s)}}function o(t,e,n,i){t.hasNode(e)||(t.setNode(e,r.clone(r.last(n).node)),t.setParent(e,i))}e.exports=function(t){var e="graph"!==t.type,o=!t.strict,s=[{node:{},edge:{}}],a=t.id,l=new n({directed:e,multigraph:o,compound:!0});return l.setGraph(null===a?{}:{id:a}),r.each(t.stmts,(function(t){i(l,t,s)})),l}})),Km=p(((t,e)=>{var r=Pm(),n=jm();e.exports=function(t){var e=r.parse(t,{startRule:"graphStmt"});return n(e)}})),Um=p(((t,e)=>{var r=Dm(),n=Pm(),i=jm();e.exports=function(t){var e=n.parse(t);return r.map(e,i)}})),Fm=p(((t,e)=>{var r=Dm();e.exports=function(t){var e=t.isDirected()?"->":"--",n=new a;t.isMultigraph()||n.write("strict "),n.writeLine((t.isDirected()?"digraph":"graph")+" {"),n.indent();var l=t.graph();return r.isObject(l)&&r.each(l,(function(t,e){n.writeLine(s(e)+"="+s(t)+";")})),i(t,void 0,n),t.edges().forEach((function(r){!function(t,e,r,n){var i=e.v,a=e.w,l=t.edge(e);n.write(s(i)+" "+r+" "+s(a)),o(l,n),n.writeLine()}(t,r,e,n)})),n.unindent(),n.writeLine("}"),n.toString()};var n=/^[a-zA-Z\200-\377_][a-zA-Z\200-\377_0-9]*$/;function i(t,e,n){var a=t.isCompound()?t.children(e):t.nodes();r.each(a,(function(e){t.isCompound()&&t.children(e).length?(n.writeLine("subgraph "+s(e)+" {"),n.indent(),r.isObject(t.node(e))&&r.map(t.node(e),(function(t,e){n.writeLine(s(e)+"="+s(t)+";")})),i(t,e,n),n.unindent(),n.writeLine("}")):function(t,e,r){r.write(s(e)),o(t.node(e),r),r.writeLine()}(t,e,n)}))}function o(t,e){if(r.isObject(t)){var n=r.map(t,(function(t,e){return s(e)+"="+s(t)}));n.length&&e.write(" ["+n.join(",")+"]")}}function s(t){return"number"==typeof t||t.toString().match(n)?t:'"'+t.toString().replace(/"/g,'\\"')+'"'}function a(){this._indent="",this._content="",this._shouldIndent=!0}a.prototype.INDENT=" ",a.prototype.indent=function(){this._indent+=this.INDENT},a.prototype.unindent=function(){this._indent=this._indent.slice(this.INDENT.length)},a.prototype.writeLine=function(t){this.write((t||"")+"\n"),this._shouldIndent=!0},a.prototype.write=function(t){this._shouldIndent&&(this._shouldIndent=!1,this._content+=this._indent),this._content+=t},a.prototype.toString=function(){return this._content}})),$m=p(((t,e)=>{e.exports="0.6.4"})),Hm=p(((t,e)=>{var r=Km(),n=Um(),i=Fm(),o=$m();e.exports={graphlib:Mm(),read:r,readMany:n,write:i,version:o,type:"dot",buffer:!1}})),Bm=p((t=>{var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function m(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||p}function y(){}function _(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var v=_.prototype=new y;v.constructor=_,f(v,m.prototype),v.isPureReactComponent=!0;var x=Array.isArray,b={H:null,A:null,T:null,S:null,V:null},T=Object.prototype.hasOwnProperty;function E(t,r,n,i,o,s){return n=s.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:s}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var S=/\/+/g;function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function A(){}function w(t,n,i,o,s){var a=typeof t;("undefined"===a||"boolean"===a)&&(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"bigint":case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case e:case r:l=!0;break;case h:return w((l=t._init)(t._payload),n,i,o,s)}}if(l)return s=s(t),l=""===o?"."+N(t,0):o,x(s)?(i="",null!=l&&(i=l.replace(S,"$&/")+"/"),w(s,n,i,"",(function(t){return t}))):null!=s&&(O(s)&&(s=function(t,e){return E(t.type,e,void 0,0,0,t.props)}(s,i+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(S,"$&/")+"/")+l)),n.push(s)),1;l=0;var u=""===o?".":o+":";if(x(t))for(var c=0;c{e.exports=Bm()})),Gm=p((t=>{var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var o in n={},r)"key"!==o&&(n[o]=r[o]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==r?r:null,props:n}}t.Fragment=r,t.jsx=n,t.jsxs=n})),zm=p(((t,e)=>{e.exports=Gm()})),Vm=p(((t,e)=>{!function(r,n){"object"==typeof t&&typeof e<"u"?n(t):"function"==typeof define&&define.amd?define(["exports"],n):n(r.d3=r.d3||{})}(t,(function(t){function e(t,e){return te?1:t>=e?0:NaN}function r(t){return 1===t.length&&(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[o],r)<0?n=o+1:i=o}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[o],r)>0?i=o:n=o+1}return n}};var r}function n(t,e){return[t,e]}function i(t){return null===t?NaN:+t}function o(t,e){var r,n,o=t.length,s=0,a=-1,l=0,u=0;if(null==e)for(;++a1)return u/(s-1)}function s(t,e){var r=o(t,e);return r&&Math.sqrt(r)}function a(t,e){var r,n,i,o=t.length,s=-1;if(null==e){for(;++s=r)for(n=i=r;++sr&&(n=r),i=r)for(n=i=r;++sr&&(n=r),i0)return[t];if((n=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(i=Math.ceil(e-t+1));++a=0?(o>=Pu?10:o>=Mu?5:o>=ju?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pu?10:o>=Mu?5:o>=ju?2:1)}function p(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Pu?i*=10:o>=Mu?i*=5:o>=ju&&(i*=2),e=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,s=Math.floor(o),a=+r(t[s],s,t);return a+(+r(t[s+1],s+1,t)-a)*(o-s)}}function m(t){for(var e,r,n,i=t.length,o=-1,s=0;++o=0;)for(e=(n=t[i]).length;--e>=0;)r[--s]=n[e];return r}function y(t,e){var r,n,i=t.length,o=-1;if(null==e){for(;++o=r)for(n=r;++or&&(n=r)}else for(;++o=r)for(n=r;++or&&(n=r);return n}function _(t){if(!(i=t.length))return[];for(var e=-1,r=y(t,v),n=new Array(r);++e=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),zu.hasOwnProperty(e)?{space:zu[e],local:t}:t}function R(t){var e=w(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Gu&&e.documentElement.namespaceURI===Gu?e.createElement(t):e.createElementNS(r,t)}})(e)}function C(){}function L(t){return null==t?C:function(){return this.querySelector(t)}}function I(){return[]}function k(t){return null==t?I:function(){return this.querySelectorAll(t)}}function D(t){return new Array(t.length)}function P(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function M(t,e,r,n,i,o){for(var s,a=0,l=e.length,u=o.length;ae?1:t>=e?0:NaN}function U(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function F(t,e){return t.style.getPropertyValue(e)||U(t).getComputedStyle(t,null).getPropertyValue(e)}function $(t){return t.trim().split(/^|\s+/)}function H(t){return t.classList||new B(t)}function B(t){this._node=t,this._names=$(t.getAttribute("class")||"")}function q(t,e){for(var r=H(t),n=-1,i=e.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=oc.exec(t))?Rt(parseInt(e[1],16)):(e=sc.exec(t))?new kt(e[1],e[2],e[3],1):(e=ac.exec(t))?new kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=lc.exec(t))?Ct(e[1],e[2],e[3],e[4]):(e=uc.exec(t))?Ct(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,1):(e=hc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,e[4]):dc.hasOwnProperty(t)?Rt(dc[t]):"transparent"===t?new kt(NaN,NaN,NaN,0):null}function Rt(t){return new kt(t>>16&255,t>>8&255,255&t,1)}function Ct(t,e,r,n){return n<=0&&(t=e=r=NaN),new kt(t,e,r,n)}function Lt(t){return t instanceof At||(t=wt(t)),t?new kt((t=t.rgb()).r,t.g,t.b,t.opacity):new kt}function It(t,e,r,n){return 1===arguments.length?Lt(t):new kt(t,e,r,n??1)}function kt(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Dt(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Mt(t,e,r,n)}function Pt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof Mt)return new Mt(t.h,t.s,t.l,t.opacity);if(t instanceof At||(t=wt(t)),!t)return new Mt;if(t instanceof Mt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=NaN,a=o-i,l=(o+i)/2;return a?(s=e===o?(r-n)/a+6*(r0&&l<1?0:s,new Mt(s,a,l,t.opacity)}(t):new Mt(t,e,r,n??1)}function Mt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function jt(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Kt(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof zt){var e=t.h*pc;return new Ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof kt||(t=Lt(t));var r=qt(t.r),n=qt(t.g),i=qt(t.b),o=$t((.4124564*r+.3575761*n+.1804375*i)/gc),s=$t((.2126729*r+.7151522*n+.072175*i)/mc);return new Ft(116*s-16,500*(o-s),200*(s-$t((.0193339*r+.119192*n+.9503041*i)/yc)),t.opacity)}function Ut(t,e,r,n){return 1===arguments.length?Kt(t):new Ft(t,e,r,n??1)}function Ft(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function $t(t){return t>bc?Math.pow(t,1/3):t/xc+_c}function Ht(t){return t>vc?t*t*t:xc*(t-_c)}function Bt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof zt)return new zt(t.h,t.c,t.l,t.opacity);t instanceof Ft||(t=Kt(t));var e=Math.atan2(t.b,t.a)*fc;return new zt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new zt(t,e,r,n??1)}function zt(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function Vt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof Yt)return new Yt(t.h,t.s,t.l,t.opacity);t instanceof kt||(t=Lt(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(Ac*n+Sc*e-Nc*r)/(Ac+Sc-Nc),o=n-i,s=(Oc*(r-i)-Tc*o)/Ec,a=Math.sqrt(s*s+o*o)/(Oc*i*(1-i)),l=a?Math.atan2(s,o)*fc-120:NaN;return new Yt(l<0?l+360:l,a,i,t.opacity)}(t):new Yt(t,e,r,n??1)}function Yt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Wt(t,e,r,n,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*r+(1+3*t+3*o-3*s)*n+s*i)/6}function Xt(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],o=t[n+1],s=n>0?t[n-1]:2*i-o,a=n180||r<-180?r-360*Math.round(r/360):r):Jt(isNaN(t)?e:t)}function ee(t,e){var r=e-t;return r?Zt(t,r):Jt(isNaN(t)?e:t)}function re(t){return function(e){var r,n,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(r=0;rs&&(i=e.slice(s,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,u.push({i:a,x:oe(r,n)})),s=Kc.lastIndex;return s180?l+=360:l-a>180&&(a+=360),h.push({i:u.push(i(u)+"rotate(",null,n)-2,x:oe(a,l)})):l&&u.push(i(u)+"rotate("+l+n),function(t,e,r,o){t!==e?o.push({i:r.push(i(r)+"skewX(",null,n)-2,x:oe(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}(o.skewX,s.skewX,c,h),function(t,e,r,n,o,s){if(t!==r||e!==n){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:oe(t,r)},{i:a-2,x:oe(e,n)})}else 1===r&&1===n||o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,c,h),o=s=null,function(t){for(var e,r=-1,n=h.length;++r=0&&e._call.call(null,t),e=e._next;--Zc}function Te(){ih=(nh=sh.now())+oh,Zc=th=0;try{be()}finally{Zc=0,function(){for(var t,e,r=Ic,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ic=e);kc=t,Oe(n)}(),ih=0}}function Ee(){var t=sh.now(),e=t-nh;e>rh&&(oh-=e,nh=t)}function Oe(t){Zc||(th&&(th=clearTimeout(th)),t-ih>24?(t<1/0&&(th=setTimeout(Te,t-sh.now()-oh)),eh&&(eh=clearInterval(eh))):(eh||(nh=sh.now(),eh=setInterval(Ee,rh)),Zc=1,ah(Te)))}function Se(t,e,r){var n=new ve;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n}function Ne(t,e,r,n,i,o){var s=t.__transition;if(s){if(r in s)return}else t.__transition={};!function(t,e,r){function n(l){var u,c,h,d;if(r.state!==hh)return o();for(u in a)if((d=a[u]).name===r.name){if(d.state===ph)return Se(n);d.state===fh?(d.state=mh,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete a[u]):+uch)throw new Error("too late; already scheduled");return r}function we(t,e){var r=Re(t,e);if(r.state>dh)throw new Error("too late; already started");return r}function Re(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ce(t,e){var r,n,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(r=o[i]).name===e?(n=r.state>dh&&r.stateMath.abs(t[1]-M[1])?b=!0:x=!0),M=t,v=!0,Ge(),o()}function o(){var t;switch(y=M[0]-P[0],_=M[1]-P[1],O){case Gh:case qh:S&&(y=Math.max(C-a,Math.min(I-p,y)),u=a+y,f=p+y),N&&(_=Math.max(L-h,Math.min(k-g,_)),d=h+_,m=g+_);break;case zh:S<0?(y=Math.max(C-a,Math.min(I-a,y)),u=a+y,f=p):S>0&&(y=Math.max(C-p,Math.min(I-p,y)),u=a,f=p+y),N<0?(_=Math.max(L-h,Math.min(k-h,_)),d=h+_,m=g):N>0&&(_=Math.max(L-g,Math.min(k-g,_)),d=h,m=g+_);break;case Vh:S&&(u=Math.max(C,Math.min(I,a-y*S)),f=Math.max(C,Math.min(I,p+y*S))),N&&(d=Math.max(L,Math.min(k,h-_*N)),m=Math.max(L,Math.min(k,g+_*N)))}f0&&(a=u-y),N<0?g=m-_:N>0&&(h=d-_),O=Gh,U.attr("cursor",Qh.selection),o());break;default:return}Ge()}),!0).on("keyup.brush",(function(){switch(t.event.keyCode){case 16:D&&(x=b=D=!1,o());break;case 18:O===Vh&&(S<0?p=f:S>0&&(a=u),N<0?g=m:N>0&&(h=d),O=zh,o());break;case 32:O===Gh&&(t.event.altKey?(S&&(p=f-y*S,a=u+y*S),N&&(g=m-_*N,h=d+_*N),O=Vh):(S<0?p=f:S>0&&(a=u),N<0?g=m:N>0&&(h=d),O=zh),U.attr("cursor",Qh[E]),o());break;default:return}Ge()}),!0).on("mousemove.brush",r,!0).on("mouseup.brush",s,!0);yt(t.event.view)}qe(),Ce(T),n.call(T),j.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=u.apply(this,arguments),t.dim=e,t}var l,u=Ye,c=Ve,h=S(r,"start","brush","end"),d=6;return r.move=function(t,r){t.selection?t.on("start.brush",(function(){i(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){i(this,arguments).end()})).tween("brush",(function(){function t(t){s.selection=1===t&&Xe(u)?null:c(t),n.call(o),a.brush()}var o=this,s=o.__brush,a=i(o,arguments),l=s.selection,u=e.input("function"==typeof r?r.apply(this,arguments):r,s.extent),c=le(l,u);return l&&u?t:t(1)})):t.each((function(){var t=arguments,o=this.__brush,s=e.input("function"==typeof r?r.apply(this,t):r,o.extent),a=i(this,t).beforestart();Ce(this),o.selection=null==s||Xe(s)?null:s,n.call(this),a.start().brush().end()}))},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){it(new function(t,e,r){this.target=t,this.type=e,this.selection=r}(r,t,e.output(this.state.selection)),h.apply,h,[t,this.that,this.args])}},r.extent=function(t){return arguments.length?(u="function"==typeof t?t:Be([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),r):u},r.filter=function(t){return arguments.length?(c="function"==typeof t?t:Be(!!t),r):c},r.handleSize=function(t){return arguments.length?(d=+t,r):d},r.on=function(){var t=h.on.apply(h,arguments);return t===h?r:t},r}function Je(t){return function(){return t}}function Ze(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tr(){return new Ze}function er(t){return t.source}function rr(t){return t.target}function nr(t){return t.radius}function ir(t){return t.startAngle}function or(t){return t.endAngle}function sr(){}function ar(t,e){var r=new sr;if(t instanceof sr)t.each((function(t,e){r.set(e,t)}));else if(Array.isArray(t)){var n,i=-1,o=t.length;if(null==e)for(;++i=s?u=!0:(r=t.charCodeAt(a++))===md?c=!0:r===yd&&(c=!0,t.charCodeAt(a)===md&&++a),t.slice(n+1,e-1).replace(/""/g,'"')}for(;a=(o=(g+y)/2))?g=o:y=o,(c=r>=(s=(m+_)/2))?m=s:_=s,i=p,!(p=p[h=c<<1|u]))return i[h]=f,t;if(a=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===a&&r===l)return f.next=p,i?i[h]=f:t._root=f,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+y)/2))?g=o:y=o,(c=r>=(s=(m+_)/2))?m=s:_=s}while((h=c<<1|u)==(d=(l>=s)<<1|a>=o));return i[d]=p,i[h]=f,t}function vr(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function xr(t){return t[0]}function br(t){return t[1]}function Tr(t,e,r){var n=new Er(e??xr,r??br,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function Er(t,e,r,n,i,o){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=o,this._root=void 0}function Or(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}function Sr(t){return t.x+t.vx}function Nr(t){return t.y+t.vy}function Ar(t){return t.index}function wr(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function Rr(t){return t.x}function Cr(t){return t.y}function Lr(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Ir(t){return(t=Lr(Math.abs(t)))?t[1]:NaN}function kr(t,e){var r=Lr(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}function Dr(t){return new Pr(t)}function Pr(t){if(!(e=Id.exec(t)))throw new Error("invalid format: "+t);var e,r=e[1]||" ",n=e[2]||">",i=e[3]||"-",o=e[4]||"",s=!!e[5],a=e[6]&&+e[6],l=!!e[7],u=e[8]&&+e[8].slice(1),c=e[9]||"";"n"===c?(l=!0,c="g"):Ld[c]||(c=""),(s||"0"===r&&"="===n)&&(s=!0,r="0",n="="),this.fill=r,this.align=n,this.sign=i,this.symbol=o,this.zero=s,this.width=a,this.comma=l,this.precision=u,this.type=c}function Mr(t){return t}function jr(t){function e(t){function e(t){var e,o,l,c=m,x=y;if("c"===g)x=_(t)+x,t="";else{var b=(t=+t)<0;if(t=_(Math.abs(t),f),b&&0==+t&&(b=!1),c=(b?"("===u?u:"-":"-"===u||"("===u?"":u)+c,x=("s"===g?Dd[8+Rd/3]:"")+x+(b&&"("===u?")":""),v)for(e=-1,o=t.length;++e(l=t.charCodeAt(e))||l>57){x=(46===l?s+t.slice(e+1):t.slice(e))+x,t=t.slice(0,e);break}}p&&!h&&(t=i(t,1/0));var T=c.length+t.length+x.length,E=T>1)+c+t+x+E.slice(T);break;default:t=E+c+t+x}return a(t)}var r=(t=Dr(t)).fill,n=t.align,u=t.sign,c=t.symbol,h=t.zero,d=t.width,p=t.comma,f=t.precision,g=t.type,m="$"===c?o[0]:"#"===c&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(g)?l:"",_=Ld[g],v=!g||/[defgprs%]/.test(g);return f=null==f?g?6:12:/[gprs]/.test(g)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),e.toString=function(){return t+""},e}var r,n,i=t.grouping&&t.thousands?(r=t.grouping,n=t.thousands,function(t,e){for(var i=t.length,o=[],s=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>e&&(a=Math.max(1,e-l)),o.push(t.substring(i-=a,i+a)),!((l+=a+1)>e));)a=r[s=(s+1)%r.length];return o.reverse().join(n)}):Mr,o=t.currency,s=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Mr,l=t.percent||"%";return{format:e,formatPrefix:function(t,r){var n=e(((t=Dr(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Ir(r)/3))),o=Math.pow(10,-i),s=Dd[8+i/3];return function(t){return n(o*t)+s}}}}function Kr(e){return kd=jr(e),t.format=kd.format,t.formatPrefix=kd.formatPrefix,kd}function Ur(t){return Math.max(0,-Ir(Math.abs(t)))}function Fr(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ir(e)/3)))-Ir(Math.abs(t)))}function $r(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ir(e)-Ir(t))+1}function Hr(){return new Br}function Br(){this.reset()}function qr(t,e,r){var n=t.s=e+r,i=n-e,o=n-i;t.t=e-o+(r-i)}function Gr(t){return t>1?0:t<-1?fp:Math.acos(t)}function zr(t){return t>1?gp:t<-1?-gp:Math.asin(t)}function Vr(t){return(t=wp(t/2))*t}function Yr(){}function Wr(t,e){t&&kp.hasOwnProperty(t.type)&&kp[t.type](t,e)}function Xr(t,e,r){var n,i=-1,o=t.length-r;for(e.lineStart();++i=0?1:-1,i=n*r,o=Ep(e),s=wp(e),a=Ud*s,l=Kd*o+a*Ep(i),u=a*n*wp(i);Dp.add(Tp(u,l)),jd=t,Kd=o,Ud=s}function nn(t){return[Tp(t[1],t[0]),zr(t[2])]}function on(t){var e=t[0],r=t[1],n=Ep(r);return[n*Ep(e),n*wp(e),wp(r)]}function sn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function an(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ln(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function un(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function cn(t){var e=Cp(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function hn(t,e){Yd.push(Wd=[Fd=t,Hd=t]),e<$d&&($d=e),e>Bd&&(Bd=e)}function dn(t,e){var r=on([t*vp,e*vp]);if(Vd){var n=an(Vd,r),i=an([n[1],-n[0],0],n);cn(i),i=nn(i);var o,s=t-qd,a=s>0?1:-1,l=i[0]*_p*a,u=xp(s)>180;u^(a*qdBd&&(Bd=o):u^(a*qd<(l=(l+360)%360-180)&&lBd&&(Bd=e)),u?t_n(Fd,Hd)&&(Hd=t):_n(t,Hd)>_n(Fd,Hd)&&(Fd=t):Hd>=Fd?(tHd&&(Hd=t)):t>qd?_n(Fd,t)>_n(Fd,Hd)&&(Hd=t):_n(t,Hd)>_n(Fd,Hd)&&(Fd=t)}else Yd.push(Wd=[Fd=t,Hd=t]);e<$d&&($d=e),e>Bd&&(Bd=e),Vd=r,qd=t}function pn(){Kp.point=dn}function fn(){Wd[0]=Fd,Wd[1]=Hd,Kp.point=hn,Vd=null}function gn(t,e){if(Vd){var r=t-qd;jp.add(xp(r)>180?r+(r>0?360:-360):r)}else Gd=t,zd=e;Mp.point(t,e),dn(t,e)}function mn(){Mp.lineStart()}function yn(){gn(Gd,zd),Mp.lineEnd(),xp(jp)>pp&&(Fd=-(Hd=180)),Wd[0]=Fd,Wd[1]=Hd,Vd=null}function _n(t,e){return(e-=t)<0?e+360:e}function vn(t,e){return t[0]-e[0]}function xn(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:efp?t-yp:t<-fp?t+yp:t,e]}function Dn(t,e,r){return(t%=yp)?e||r?In(Mn(t),jn(e,r)):Mn(t):e||r?jn(e,r):kn}function Pn(t){return function(e,r){return[(e+=t)>fp?e-yp:e<-fp?e+yp:e,r]}}function Mn(t){var e=Pn(t);return e.invert=Pn(-t),e}function jn(t,e){function r(t,e){var r=Ep(e),a=Ep(t)*r,l=wp(t)*r,u=wp(e),c=u*n+a*i;return[Tp(l*o-c*s,a*n-u*i),zr(c*o+l*s)]}var n=Ep(t),i=wp(t),o=Ep(e),s=wp(e);return r.invert=function(t,e){var r=Ep(e),a=Ep(t)*r,l=wp(t)*r,u=wp(e),c=u*o-l*s;return[Tp(l*o+u*s,a*n+c*i),zr(c*n-a*i)]},r}function Kn(t){function e(e){return(e=t(e[0]*vp,e[1]*vp))[0]*=_p,e[1]*=_p,e}return t=Dn(t[0]*vp,t[1]*vp,t.length>2?t[2]*vp:0),e.invert=function(e){return(e=t.invert(e[0]*vp,e[1]*vp))[0]*=_p,e[1]*=_p,e},e}function Un(t,e,r,n,i,o){if(r){var s=Ep(e),a=wp(e),l=n*r;null==i?(i=e+n*yp,o=e-l/2):(i=Fn(s,i),o=Fn(s,o),(n>0?io)&&(i+=n*yp));for(var u,c=i;n>0?c>o:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function Hn(t,e){return xp(t[0]-e[0])=0;--o)i.point((c=u[o])[0],c[1]);else n(d.x,d.p.x,-1,i);d=d.p}u=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function Gn(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n=0?1:-1,O=E*T,S=O>fp,N=f*x;if(Qp.add(Tp(N*E*wp(O),g*b+N*Ep(O))),o+=S?T+E*yp:T,S^d>=r^_>=r){var A=an(on(h),on(y));cn(A);var w=an(i,A);cn(w);var R=(S^T>=0?-1:1)*zr(w[2]);(n>R||n===R&&(A[0]||A[1]))&&(s+=S^T>=0?1:-1)}}return(o<-pp||o0){for(v||(i.polygonStart(),v=!0),i.lineStart(),t=0;t1&&2&o&&s.push(s.pop().concat(s.shift())),p.push(s.filter(Yn))}var d,p,f,g=e(i),y=$n(),_=e(y),v=!1,x={point:o,lineStart:a,lineEnd:l,polygonStart:function(){x.point=u,x.lineStart=c,x.lineEnd=h,p=[],d=[]},polygonEnd:function(){x.point=o,x.lineStart=a,x.lineEnd=l,p=m(p);var t=zn(d,n);p.length?(v||(i.polygonStart(),v=!0),qn(p,Wn,t,r,i)):t&&(v||(i.polygonStart(),v=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),v&&(i.polygonEnd(),v=!1),p=d=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return x}}function Yn(t){return t.length>1}function Wn(t,e){return((t=t.x)[0]<0?t[1]-gp-pp:gp-t[1])-((e=e.x)[0]<0?e[1]-gp-pp:gp-e[1])}function Xn(t){function e(t,e){return Ep(t)*Ep(e)>i}function r(t,e,r){var n=[1,0,0],o=an(on(t),on(e)),s=sn(o,o),a=o[0],l=s-a*a;if(!l)return!r&&t;var u=i*s/l,c=-i*a/l,h=an(n,o),d=un(n,u);ln(d,un(o,c));var p=h,f=sn(d,p),g=sn(p,p),m=f*f-g*(sn(d,d)-1);if(!(m<0)){var y=Cp(m),_=un(p,(-f-y)/g);if(ln(_,d),_=nn(_),!r)return _;var v,x=t[0],b=e[0],T=t[1],E=e[1];b0^_[1]<(xp(_[0]-x)fp^(x<=_[0]&&_[0]<=b)){var N=un(p,(-f+y)/g);return ln(N,d),[_,nn(N)]}}}function n(e,r){var n=s?t:fp-t,i=0;return e<-n?i|=1:e>n&&(i|=2),r<-n?i|=4:r>n&&(i|=8),i}var i=Ep(t),o=6*vp,s=i>0,a=xp(i)>pp;return Vn(e,(function(t){var i,o,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,d){var p,f=[h,d],g=e(h,d),m=s?g?0:n(h,d):g?n(h+(h<0?fp:-fp),d):0;if(!i&&(u=l=g)&&t.lineStart(),g!==l&&(!(p=r(i,f))||Hn(i,p)||Hn(f,p))&&(f[0]+=pp,f[1]+=pp,g=e(f[0],f[1])),g!==l)c=0,g?(t.lineStart(),p=r(f,i),t.point(p[0],p[1])):(p=r(i,f),t.point(p[0],p[1]),t.lineEnd()),i=p;else if(a&&i&&s^g){var y;m&o||!(y=r(f,i,!0))||(c=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||i&&Hn(i,f)||t.point(f[0],f[1]),i=f,l=g,o=m},lineEnd:function(){l&&t.lineEnd(),i=null},clean:function(){return c|(u&&l)<<1}}}),(function(e,r,n,i){Un(i,t,o,n,e,r)}),s?[0,-t]:[-fp,t-fp])}function Qn(t,e,r,n){function i(i,o){return t<=i&&i<=r&&e<=o&&o<=n}function o(i,o,a,u){var c=0,h=0;if(null==i||(c=s(i,a))!==(h=s(o,a))||l(i,o)<0^a>0)do{u.point(0===c||3===c?t:r,c>1?n:e)}while((c=(c+a+4)%4)!==h);else u.point(o[0],o[1])}function s(n,i){return xp(n[0]-t)0?0:3:xp(n[0]-r)0?2:1:xp(n[1]-e)0?1:0:i>0?3:2}function a(t,e){return l(t.x,e.x)}function l(t,e){var r=s(t,1),n=s(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(s){function l(t,e){i(t,e)&&T.point(t,e)}function u(o,s){var a=i(o,s);if(h&&d.push([o,s]),x)p=o,f=s,g=a,x=!1,a&&(T.lineStart(),T.point(o,s));else if(a&&v)T.point(o,s);else{var l=[y=Math.max(tf,Math.min(Zp,y)),_=Math.max(tf,Math.min(Zp,_))],u=[o=Math.max(tf,Math.min(Zp,o)),s=Math.max(tf,Math.min(Zp,s))];!function(t,e,r,n,i,o){var s,a=t[0],l=t[1],u=0,c=1,h=e[0]-a,d=e[1]-l;if(s=r-a,h||!(s>0)){if(s/=h,h<0){if(s0){if(s>c)return;s>u&&(u=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>c)return;s>u&&(u=s)}else if(h>0){if(s0)){if(s/=d,d<0){if(s0){if(s>c)return;s>u&&(u=s)}if(s=o-l,d||!(s<0)){if(s/=d,d<0){if(s>c)return;s>u&&(u=s)}else if(d>0){if(s0&&(t[0]=a+u*h,t[1]=l+u*d),c<1&&(e[0]=a+c*h,e[1]=l+c*d),!0}}}}}(l,u,t,e,r,n)?a&&(T.lineStart(),T.point(o,s),b=!1):(v||(T.lineStart(),T.point(l[0],l[1])),T.point(u[0],u[1]),a||T.lineEnd(),b=!1)}y=o,_=s,v=a}var c,h,d,p,f,g,y,_,v,x,b,T=s,E=$n(),O={point:l,lineStart:function(){O.point=u,h&&h.push(d=[]),x=!0,v=!1,y=_=NaN},lineEnd:function(){c&&(u(p,f),g&&v&&E.rejoin(),c.push(E.result())),O.point=l,v&&T.lineEnd()},polygonStart:function(){T=E,c=[],h=[],b=!0},polygonEnd:function(){var e=function(){for(var e=0,r=0,i=h.length;rn&&(d-o)*(n-s)>(p-s)*(t-o)&&++e:p<=n&&(d-o)*(n-s)<(p-s)*(t-o)&&--e;return e}(),r=b&&e,i=(c=m(c)).length;(r||i)&&(s.polygonStart(),r&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&qn(c,a,e,o,s),s.polygonEnd()),T=s,c=h=d=null}};return O}}function Jn(){rf.point=rf.lineEnd=Yr}function Zn(t,e){Fp=t*=vp,$p=wp(e*=vp),Hp=Ep(e),rf.point=ti}function ti(t,e){t*=vp;var r=wp(e*=vp),n=Ep(e),i=xp(t-Fp),o=Ep(i),s=n*wp(i),a=Hp*r-$p*n*o,l=$p*r+Hp*n*o;ef.add(Tp(Cp(s*s+a*a),l)),Fp=t,$p=r,Hp=n}function ei(t){return ef.reset(),Jr(t,rf),+ef}function ri(t,e){return nf[0]=t,nf[1]=e,ei(of)}function ni(t,e){return!(!t||!af.hasOwnProperty(t.type))&&af[t.type](t,e)}function ii(t,e){return 0===ri(t,e)}function oi(t,e){var r=ri(t[0],t[1]);return ri(t[0],e)+ri(e,t[1])<=r+pp}function si(t,e){return!!zn(t.map(ai),li(e))}function ai(t){return(t=t.map(li)).pop(),t}function li(t){return[t[0]*vp,t[1]*vp]}function ui(t,e,r){var n=c(t,e-pp,r).concat(e);return function(t){return n.map((function(e){return[t,e]}))}}function ci(t,e,r){var n=c(t,e-pp,r).concat(e);return function(t){return n.map((function(e){return[e,t]}))}}function hi(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return c(Op(o/y)*y,i,y).map(p).concat(c(Op(u/_)*_,l,_).map(f)).concat(c(Op(n/g)*g,r,g).filter((function(t){return xp(t%y)>pp})).map(h)).concat(c(Op(a/m)*m,s,m).filter((function(t){return xp(t%_)>pp})).map(d))}var r,n,i,o,s,a,l,u,h,d,p,f,g=10,m=g,y=90,_=360,v=2.5;return t.lines=function(){return e().map((function(t){return{type:"LineString",coordinates:t}}))},t.outline=function(){return{type:"Polygon",coordinates:[p(o).concat(f(l).slice(1),p(i).reverse().slice(1),f(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],u=+e[0][1],l=+e[1][1],o>i&&(e=o,o=i,i=e),u>l&&(e=u,u=l,l=e),t.precision(v)):[[o,u],[i,l]]},t.extentMinor=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],a=+e[0][1],s=+e[1][1],n>r&&(e=n,n=r,r=e),a>s&&(e=a,a=s,s=e),t.precision(v)):[[n,a],[r,s]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(y=+e[0],_=+e[1],t):[y,_]},t.stepMinor=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.precision=function(e){return arguments.length?(v=+e,h=ui(a,s,90),d=ci(n,r,v),p=ui(u,l,90),f=ci(o,i,v),t):v},t.extentMajor([[-180,-90+pp],[180,90-pp]]).extentMinor([[-180,-80-pp],[180,80+pp]])}function di(t){return t}function pi(){cf.point=fi}function fi(t,e){cf.point=gi,Bp=Gp=t,qp=zp=e}function gi(t,e){uf.add(zp*t-Gp*e),Gp=t,zp=e}function mi(){gi(Bp,qp)}function yi(t,e){mf+=t,yf+=e,++_f}function _i(){Sf.point=vi}function vi(t,e){Sf.point=xi,yi(Wp=t,Xp=e)}function xi(t,e){var r=t-Wp,n=e-Xp,i=Cp(r*r+n*n);vf+=i*(Wp+t)/2,xf+=i*(Xp+e)/2,bf+=i,yi(Wp=t,Xp=e)}function bi(){Sf.point=yi}function Ti(){Sf.point=Oi}function Ei(){Si(Vp,Yp)}function Oi(t,e){Sf.point=Si,yi(Vp=Wp=t,Yp=Xp=e)}function Si(t,e){var r=t-Wp,n=e-Xp,i=Cp(r*r+n*n);vf+=i*(Wp+t)/2,xf+=i*(Xp+e)/2,bf+=i,Tf+=(i=Xp*t-Wp*e)*(Wp+t),Ef+=i*(Xp+e),Of+=3*i,yi(Wp=t,Xp=e)}function Ni(t){this._context=t}function Ai(t,e){If.point=wi,Af=Rf=t,wf=Cf=e}function wi(t,e){Rf-=t,Cf-=e,Lf.add(Cp(Rf*Rf+Cf*Cf)),Rf=t,Cf=e}function Ri(){this._string=[]}function Ci(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Li(t){return function(e){var r=new Ii;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ii(){}function ki(t,e,r){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),Jr(r,t.stream(gf)),e(gf.result()),null!=n&&t.clipExtent(n),t}function Di(t,e,r){return ki(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),s=+e[0][0]+(n-o*(r[1][0]+r[0][0]))/2,a=+e[0][1]+(i-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,a])}),r)}function Pi(t,e,r){return Di(t,[[0,0],e],r)}function Mi(t,e,r){return ki(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),o=(n-i*(r[1][0]+r[0][0]))/2,s=-i*r[0][1];t.scale(150*i).translate([o,s])}),r)}function ji(t,e,r){return ki(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),o=-i*r[0][0],s=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([o,s])}),r)}function Ki(t,e){return+e?function(t,e){function r(n,i,o,s,a,l,u,c,h,d,p,f,g,m){var y=u-n,_=c-i,v=y*y+_*_;if(v>4*e&&g--){var x=s+d,b=a+p,T=l+f,E=Cp(x*x+b*b+T*T),O=zr(T/=E),S=xp(xp(T)-1)e||xp((y*R+_*C)/v-.5)>.3||s*d+a*p+l*f2?t[2]%360*vp:0,n()):[x*_p,b*_p,T*_p]},e.precision=function(t){return arguments.length?(w=Ki(r,A=t*t),i()):Cp(A)},e.fitExtent=function(t,r){return Di(e,t,r)},e.fitSize=function(t,r){return Pi(e,t,r)},e.fitWidth=function(t,r){return Mi(e,t,r)},e.fitHeight=function(t,r){return ji(e,t,r)},function(){return o=t.apply(this,arguments),e.invert=o.invert&&function(t){return(t=u.invert((t[0]-s)/g,(a-t[1])/g))&&[t[0]*_p,t[1]*_p]},n()}}function $i(t){var e=0,r=fp/3,n=Fi(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*vp,r=t[1]*vp):[e*_p,r*_p]},i}function Hi(t,e){function r(t,e){var r=Cp(o-2*i*wp(e))/i;return[r*wp(t*=i),s-r*Ep(t)]}var n=wp(t),i=(n+wp(e))/2;if(xp(i)0?e<-gp+pp&&(e=-gp+pp):e>gp-pp&&(e=gp-pp);var r=o/Ap(Wi(e),i);return[r*wp(i*t),o-r*Ep(i*t)]}var n=Ep(t),i=t===e?wp(t):Np(n/Ep(e))/Np(Wi(e)/Wi(t)),o=n*Ap(Wi(t),i)/i;return i?(r.invert=function(t,e){var r=o-e,n=Rp(i)*Cp(t*t+r*r);return[Tp(t,xp(r))/i*Rp(r),2*bp(Ap(o/n,1/i))-gp]},r):Vi}function Qi(t,e){return[t,e]}function Ji(t,e){function r(t,e){var r=o-e,n=i*t;return[r*wp(n),o-r*Ep(n)]}var n=Ep(t),i=t===e?wp(t):(n-Ep(e))/(e-t),o=n/i+t;return xp(i)=0;)e+=r[n].value;else e=1;t.value=e}function uo(t,e){var r,n,i,o,s,a=new fo(t),l=+t.value&&(a.value=t.value),u=[a];for(null==e&&(e=co);r=u.pop();)if(l&&(r.value=+r.data.value),(i=e(r.data))&&(s=i.length))for(r.children=new Array(s),o=s-1;o>=0;--o)u.push(n=r.children[o]=new fo(i[o])),n.parent=r,n.depth=r.depth+1;return a.eachBefore(po)}function co(t){return t.children}function ho(t){t.data=t.data.data}function po(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function fo(t){this.data=t,this.depth=this.height=0,this.parent=null}function go(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(Kf.call(t))).length,o=[];n0&&r*r>n*n+i*i}function _o(t,e){for(var r=0;rr*r+n*n}function Eo(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,o=(e.y*r.r+r.y*e.r)/n;return i*i+o*o}function Oo(t){this._=t,this.next=null,this.previous=null}function So(t){if(!(i=t.length))return 0;var e,r,n,i,o,s,a,l,u,c,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i>2))return e.r+r.r;bo(r,e,n=t[2]),e=new Oo(e),r=new Oo(r),n=new Oo(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(a=3;ad&&(d=a),m=c*c*g,(p=Math.max(d/m,m/h))>f){c-=a;break}f=p}y.push(s={value:c,dice:l1&&Go(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Yo(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Wo(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active=0;)if((r=t._tasks[n])&&(t._tasks[n]=null,r.abort))try{r.abort()}catch{}t._active=NaN,Qo(t)}function Qo(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function Jo(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Yo(t)}function Zo(){return Math.random()}function ts(t,e){function r(t){var e,r,i,s=u.status;if(!s&&((i=(r=u).responseType)&&"text"!==i?r.response:r.responseText)||s>=200&&s<300||304===s){if(o)try{e=o.call(n,u)}catch(r){return void a.call("error",n,r)}else e=u;a.call("load",n,e)}else a.call("error",n,t)}var n,i,o,s,a=S("beforesend","progress","load","error"),l=ar(),u=new XMLHttpRequest,c=null,h=null,d=0;if(typeof XDomainRequest>"u"||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=u.ontimeout=r:u.onreadystatechange=function(t){u.readyState>3&&r(t)},u.onprogress=function(t){a.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l.get(t):(null==e?l.remove(t):l.set(t,e+""),n)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",n):i},responseType:function(t){return arguments.length?(s=t,n):s},timeout:function(t){return arguments.length?(d=+t,n):d},user:function(t){return arguments.length<1?c:(c=null==t?null:t+"",n)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",n)},response:function(t){return o=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,r,o){return u.open(e,t,!0,c,h),null==i||l.has("accept")||l.set("accept",i+",*/*"),u.setRequestHeader&&l.each((function(t,e){u.setRequestHeader(e,t)})),null!=i&&u.overrideMimeType&&u.overrideMimeType(i),null!=s&&(u.responseType=s),d>0&&(u.timeout=d),null==o&&"function"==typeof r&&(o=r,r=null),null!=o&&1===o.length&&(p=o,o=function(t,e){p(null==t?e:null)}),null!=o&&n.on("error",o).on("load",(function(t){o(null,t)})),a.call("beforesend",n,u),u.send(r??null),n;var p},abort:function(){return u.abort(),n},on:function(){var t=a.on.apply(a,arguments);return t===a?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function es(t,e){return function(r,n){var i=ts(r).mimeType(t).response(e);if(null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return i.get(n)}return i}}function rs(t,e){return function(r,n,i){arguments.length<3&&(i=n,n=null);var o=ts(r).mimeType(t);return o.row=function(t){return arguments.length?o.response((r=e,i=n=t,function(t){return r(t.responseText,i)})):n;var r,i},o.row(n),i?o.get(i):o}}function ns(t){function e(e){var o=e+"",s=r.get(o);if(!s){if(i!==ag)return i;r.set(o,s=n.push(e))}return t[(s-1)%t.length]}var r=ar(),n=[],i=ag;return t=null==t?[]:sg.call(t),e.domain=function(t){if(!arguments.length)return n.slice();n=[],r=ar();for(var i,o,s=-1,a=t.length;++s2?cs:us,o=s=null,n}function n(e){return(o||(o=i(a,l,c?(r=t,function(t,e){var n=r(t=+t,e=+e);return function(r){return r<=t?0:r>=e?1:n(r)}}):t,u)))(+e);var r}var i,o,s,a=lg,l=lg,u=le,c=!1;return n.invert=function(t){return(s||(s=i(l,a,ls,c?(r=e,function(t,e){var n=r(t=+t,e=+e);return function(r){return r<=0?t:r>=1?e:n(r)}}):e)))(+t);var r},n.domain=function(t){return arguments.length?(a=og.call(t,as),r()):a.slice()},n.range=function(t){return arguments.length?(l=sg.call(t),r()):l.slice()},n.rangeRound=function(t){return l=sg.call(t),u=ue,r()},n.clamp=function(t){return arguments.length?(c=!!t,r()):c},n.interpolate=function(t){return arguments.length?(u=t,r()):u},r()}function ps(e){var r=e.domain;return e.ticks=function(t){var e=r();return h(e[0],e[e.length-1],t??10)},e.tickFormat=function(e,n){return function(e,r,n){var i,o=e[0],s=e[e.length-1],a=p(o,s,r??10);switch((n=Dr(n??",f")).type){case"s":var l=Math.max(Math.abs(o),Math.abs(s));return null!=n.precision||isNaN(i=Fr(a,l))||(n.precision=i),t.formatPrefix(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=$r(a,Math.max(Math.abs(o),Math.abs(s))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Ur(a))||(n.precision=i-2*("%"===n.type))}return t.format(n)}(r(),e,n)},e.nice=function(t){null==t&&(t=10);var n,i=r(),o=0,s=i.length-1,a=i[o],l=i[s];return l0?n=d(a=Math.floor(a/n)*n,l=Math.ceil(l/n)*n,t):n<0&&(n=d(a=Math.ceil(a*n)/n,l=Math.floor(l*n)/n,t)),n>0?(i[o]=Math.floor(a/n)*n,i[s]=Math.ceil(l/n)*n,r(i)):n<0&&(i[o]=Math.ceil(a*n)/n,i[s]=Math.floor(l*n)/n,r(i)),e},e}function fs(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],s=t[i];return s0))return a;do{a.push(s=new Date(+r)),e(r,o),t(r)}while(s=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}))},r&&(i.count=function(e,n){return ug.setTime(+e),cg.setTime(+n),t(ug),t(cg),Math.floor(r(ug,cg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?function(e){return n(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Os(t){return Es((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*pg)/fg}))}function Ss(t){return Es((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/fg}))}function Ns(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function As(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ws(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Rs(t){function e(t,e){return function(r){var n,i,o,s=[],a=-1,l=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++a53)return null;"w"in s||(s.w=1),"Z"in s?(i=(o=(i=As(ws(s.y))).getUTCDay())>4||0===o?Yg.ceil(i):Yg(i),i=Gg.offset(i,7*(s.V-1)),s.y=i.getUTCFullYear(),s.m=i.getUTCMonth(),s.d=i.getUTCDate()+(s.w+6)%7):(i=(o=(i=e(ws(s.y))).getDay())>4||0===o?Og.ceil(i):Og(i),i=bg.offset(i,7*(s.V-1)),s.y=i.getFullYear(),s.m=i.getMonth(),s.d=i.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),o="Z"in s?As(ws(s.y)).getUTCDay():e(ws(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(o+5)%7:s.w+7*s.U-(o+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,As(s)):e(s)}}function n(t,e,r,n){for(var i,o,s=0,a=e.length,l=r.length;s=l)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=O[i in dm?e.charAt(s++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}var i=t.dateTime,o=t.date,s=t.time,a=t.periods,l=t.days,u=t.shortDays,c=t.months,h=t.shortMonths,d=Is(a),p=ks(a),f=Is(l),g=ks(l),m=Is(u),y=ks(u),_=Is(c),v=ks(c),x=Is(h),b=ks(h),T={a:function(t){return u[t.getDay()]},A:function(t){return l[t.getDay()]},b:function(t){return h[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Zs,e:Zs,f:ia,H:ta,I:ea,j:ra,L:na,m:oa,M:sa,p:function(t){return a[+(t.getHours()>=12)]},Q:Da,s:Pa,S:aa,u:la,U:ua,V:ca,w:ha,W:da,x:null,X:null,y:pa,Y:fa,Z:ga,"%":ka},E={a:function(t){return u[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return h[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:ma,e:ma,f:ba,H:ya,I:_a,j:va,L:xa,m:Ta,M:Ea,p:function(t){return a[+(t.getUTCHours()>=12)]},Q:Da,s:Pa,S:Oa,u:Sa,U:Na,V:Aa,w:wa,W:Ra,x:null,X:null,y:Ca,Y:La,Z:Ia,"%":ka},O={a:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.w=y[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=g[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=x.exec(e.slice(r));return n?(t.m=b[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=_.exec(e.slice(r));return n?(t.m=v[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return n(t,i,e,r)},d:Bs,e:Bs,f:Ws,H:Gs,I:Gs,j:qs,L:Ys,m:Hs,M:zs,p:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.p=p[n[0].toLowerCase()],r+n[0].length):-1},Q:Qs,s:Js,S:Vs,u:Ps,U:Ms,V:js,w:Ds,W:Ks,x:function(t,e,r){return n(t,o,e,r)},X:function(t,e,r){return n(t,s,e,r)},y:Fs,Y:Us,Z:$s,"%":Xs};return T.x=e(o,T),T.X=e(s,T),T.c=e(i,T),E.x=e(o,E),E.X=e(s,E),E.c=e(i,E),{format:function(t){var r=e(t+="",T);return r.toString=function(){return t},r},parse:function(t){var e=r(t+="",Ns);return e.toString=function(){return t},e},utcFormat:function(t){var r=e(t+="",E);return r.toString=function(){return t},r},utcParse:function(t){var e=r(t,As);return e.toString=function(){return t},e}}}function Cs(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o68?1900:2e3),r+n[0].length):-1}function $s(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Hs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Bs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function qs(t,e,r){var n=pm.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Gs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function zs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Vs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ys(t,e,r){var n=pm.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Ws(t,e,r){var n=pm.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Xs(t,e,r){var n=fm.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Qs(t,e,r){var n=pm.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Js(t,e,r){var n=pm.exec(e.slice(r));return n?(t.Q=1e3*+n[0],r+n[0].length):-1}function Zs(t,e){return Cs(t.getDate(),e,2)}function ta(t,e){return Cs(t.getHours(),e,2)}function ea(t,e){return Cs(t.getHours()%12||12,e,2)}function ra(t,e){return Cs(1+bg.count(Ug(t),t),e,3)}function na(t,e){return Cs(t.getMilliseconds(),e,3)}function ia(t,e){return na(t,e)+"000"}function oa(t,e){return Cs(t.getMonth()+1,e,2)}function sa(t,e){return Cs(t.getMinutes(),e,2)}function aa(t,e){return Cs(t.getSeconds(),e,2)}function la(t){var e=t.getDay();return 0===e?7:e}function ua(t,e){return Cs(Eg.count(Ug(t),t),e,2)}function ca(t,e){var r=t.getDay();return t=r>=4||0===r?Ag(t):Ag.ceil(t),Cs(Ag.count(Ug(t),t)+(4===Ug(t).getDay()),e,2)}function ha(t){return t.getDay()}function da(t,e){return Cs(Og.count(Ug(t),t),e,2)}function pa(t,e){return Cs(t.getFullYear()%100,e,2)}function fa(t,e){return Cs(t.getFullYear()%1e4,e,4)}function ga(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Cs(e/60|0,"0",2)+Cs(e%60,"0",2)}function ma(t,e){return Cs(t.getUTCDate(),e,2)}function ya(t,e){return Cs(t.getUTCHours(),e,2)}function _a(t,e){return Cs(t.getUTCHours()%12||12,e,2)}function va(t,e){return Cs(1+Gg.count(um(t),t),e,3)}function xa(t,e){return Cs(t.getUTCMilliseconds(),e,3)}function ba(t,e){return xa(t,e)+"000"}function Ta(t,e){return Cs(t.getUTCMonth()+1,e,2)}function Ea(t,e){return Cs(t.getUTCMinutes(),e,2)}function Oa(t,e){return Cs(t.getUTCSeconds(),e,2)}function Sa(t){var e=t.getUTCDay();return 0===e?7:e}function Na(t,e){return Cs(Vg.count(um(t),t),e,2)}function Aa(t,e){var r=t.getUTCDay();return t=r>=4||0===r?Qg(t):Qg.ceil(t),Cs(Qg.count(um(t),t)+(4===um(t).getUTCDay()),e,2)}function wa(t){return t.getUTCDay()}function Ra(t,e){return Cs(Yg.count(um(t),t),e,2)}function Ca(t,e){return Cs(t.getUTCFullYear()%100,e,2)}function La(t,e){return Cs(t.getUTCFullYear()%1e4,e,4)}function Ia(){return"+0000"}function ka(){return"%"}function Da(t){return+t}function Pa(t){return Math.floor(+t/1e3)}function Ma(e){return cm=Rs(e),t.timeFormat=cm.format,t.timeParse=cm.parse,t.utcFormat=cm.utcFormat,t.utcParse=cm.utcParse,cm}function ja(t){return new Date(t)}function Ka(t){return t instanceof Date?+t:+new Date(+t)}function Ua(t,e,n,i,o,s,a,l,u){function c(r){return(a(r)=1?Vm:t<=-1?-Vm:Math.asin(t)}function qa(t){return t.innerRadius}function Ga(t){return t.outerRadius}function za(t){return t.startAngle}function Va(t){return t.endAngle}function Ya(t){return t&&t.padAngle}function Wa(t,e,r,n,i,o,s){var a=t-r,l=e-n,u=(s?o:-o)/qm(a*a+l*l),c=u*l,h=-u*a,d=t+c,p=e+h,f=r+c,g=n+h,m=(d+f)/2,y=(p+g)/2,_=f-d,v=g-p,x=_*_+v*v,b=i-o,T=d*g-f*p,E=(v<0?-1:1)*qm($m(0,b*b*x-T*T)),O=(T*v-_*E)/x,S=(-T*_-v*E)/x,N=(T*v+_*E)/x,A=(-T*_+v*E)/x,w=O-m,R=S-y,C=N-m,L=A-y;return w*w+R*R>C*C+L*L&&(O=N,S=A),{cx:O,cy:S,x01:-c,y01:-h,x11:O*(i/b-1),y11:S*(i/b-1)}}function Xa(t){this._context=t}function Qa(t){return new Xa(t)}function Ja(t){return t[0]}function Za(t){return t[1]}function tl(){function t(t){var a,l,u,c=t.length,h=!1;for(null==i&&(s=o(u=tr())),a=0;a<=c;++a)!(a=c;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[e]=+r(d,e,t),y[e]=+i(d,e,t),u.point(n?+n(d,e,t):m[e],o?+o(d,e,t):y[e]))}if(p)return u=null,p+""||null}function e(){return tl().defined(s).curve(l).context(a)}var r=Ja,n=null,i=Ha(0),o=Za,s=Ha(!0),a=null,l=Qa,u=null;return t.x=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),n=null,t):r},t.x0=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),t):r},t.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Ha(+e),t):n},t.y=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),o=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),t):i},t.y1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:Ha(+e),t):o},t.lineX0=t.lineY0=function(){return e().x(r).y(i)},t.lineY1=function(){return e().x(r).y(o)},t.lineX1=function(){return e().x(n).y(i)},t.defined=function(e){return arguments.length?(s="function"==typeof e?e:Ha(!!e),t):s},t.curve=function(e){return arguments.length?(l=e,null!=a&&(u=l(a)),t):l},t.context=function(e){return arguments.length?(null==e?a=u=null:u=l(a=e),t):a},t}function rl(t,e){return et?1:e>=t?0:NaN}function nl(t){return t}function il(t){this._curve=t}function ol(t){function e(e){return new il(t(e))}return e._curve=t,e}function sl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(ol(t)):e()._curve},t}function al(){return sl(tl().curve(Wm))}function ll(){var t=el().curve(Wm),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return sl(r())},delete t.lineX0,t.lineEndAngle=function(){return sl(n())},delete t.lineX1,t.lineInnerRadius=function(){return sl(i())},delete t.lineY0,t.lineOuterRadius=function(){return sl(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(ol(t)):e()._curve},t}function ul(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function cl(t){return t.source}function hl(t){return t.target}function dl(t){function e(){var e,a=Xm.call(arguments),l=r.apply(this,a),u=n.apply(this,a);if(s||(s=e=tr()),t(s,+i.apply(this,(a[0]=l,a)),+o.apply(this,a),+i.apply(this,(a[0]=u,a)),+o.apply(this,a)),e)return s=null,e+""||null}var r=cl,n=hl,i=Ja,o=Za,s=null;return e.source=function(t){return arguments.length?(r=t,e):r},e.target=function(t){return arguments.length?(n=t,e):n},e.x=function(t){return arguments.length?(i="function"==typeof t?t:Ha(+t),e):i},e.y=function(t){return arguments.length?(o="function"==typeof t?t:Ha(+t),e):o},e.context=function(t){return arguments.length?(s=t??null,e):s},e}function pl(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function fl(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function gl(t,e,r,n,i){var o=ul(e,r),s=ul(e,r=(r+i)/2),a=ul(n,r),l=ul(n,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(s[0],s[1],a[0],a[1],l[0],l[1])}function ml(){}function yl(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function _l(t){this._context=t}function vl(t){this._context=t}function xl(t){this._context=t}function bl(t,e){this._basis=new _l(t),this._beta=e}function Tl(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function El(t,e){this._context=t,this._k=(1-e)/6}function Ol(t,e){this._context=t,this._k=(1-e)/6}function Sl(t,e){this._context=t,this._k=(1-e)/6}function Nl(t,e,r){var n=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Gm){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Gm){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(n,i,o,s,t._x2,t._y2)}function Al(t,e){this._context=t,this._alpha=e}function wl(t,e){this._context=t,this._alpha=e}function Rl(t,e){this._context=t,this._alpha=e}function Cl(t){this._context=t}function Ll(t){return t<0?-1:1}function Il(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),a=(o*i+s*n)/(n+i);return(Ll(o)+Ll(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function kl(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Dl(t,e,r){var n=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-n)/3;t._context.bezierCurveTo(n+a,i+a*e,o-a,s-a*r,o,s)}function Pl(t){this._context=t}function Ml(t){this._context=new jl(t)}function jl(t){this._context=t}function Kl(t){this._context=t}function Ul(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e1)for(var r,n,i,o=1,s=t[e[0]],a=s.length;o=0;)r[e]=e;return r}function Bl(t,e){return t[e]}function ql(t){var e=t.map(Gl);return Hl(t).sort((function(t,r){return e[t]-e[r]}))}function Gl(t){for(var e,r=0,n=-1,i=t.length;++n0)){if(o/=d,d<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=n-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o0)){if(o/=p,p<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=i-u,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>c&&(c=o)}else if(p>0){if(o0||h<1)||(c>0&&(t[0]=[l+c*d,u+c*p]),h<1&&(t[1]=[l+h*d,u+h*p]),!0)}}}}}function iu(t,e,r,n,i){var o=t[1];if(o)return!0;var s,a,l=t[0],u=t.left,c=t.right,h=u[0],d=u[1],p=c[0],f=c[1],g=(h+p)/2,m=(d+f)/2;if(f===d){if(g=n)return;if(h>p){if(l){if(l[1]>=i)return}else l=[g,r];o=[g,i]}else{if(l){if(l[1]1)if(h>p){if(l){if(l[1]>=i)return}else l=[(r-a)/s,r];o=[(i-a)/s,i]}else{if(l){if(l[1]=n)return}else l=[e,s*e+a];o=[n,s*n+a]}else{if(l){if(l[0]=-1e-12)){var p=l*l+u*u,f=c*c+h*h,g=(h*p-u*f)/d,m=(l*f-c*p)/d,y=Ny.pop()||new function(){Xl(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=t,y.site=i,y.x=g+s,y.y=(y.cy=m+a)+Math.sqrt(g*g+m*m),t.circle=y;for(var _=null,v=Oy._;v;)if(y.ywy)a=a.L;else{if(!((i=o-function(t,e){var r=t.N;if(r)return fu(r,e);var n=t.site;return n[1]===e?n[0]:1/0}(a,s))>wy)){n>-wy?(e=a.P,r=a):i>-wy?(e=a,r=a.N):e=r=a;break}if(!a.R){e=a;break}a=a.R}var l;Ey[(l=t).index]={site:l,halfedges:[]};var u=cu(t);if(Ty.insert(e,u),e||r){if(e===r)return uu(e),r=cu(e.site),Ty.insert(u,r),u.edge=r.edge=tu(e.site,u.site),lu(e),void lu(r);if(r){uu(e),uu(r);var c=e.site,h=c[0],d=c[1],p=t[0]-h,f=t[1]-d,g=r.site,m=g[0]-h,y=g[1]-d,_=2*(p*y-f*m),v=p*p+f*f,x=m*m+y*y,b=[(y*v-f*x)/_+h,(p*x-m*v)/_+d];ru(r.edge,c,g,b),u.edge=tu(c,t,null,b),r.edge=tu(t,g,null,b),lu(e),lu(r)}else u.edge=tu(e.site,u.site)}}function fu(t,e){var r=t.site,n=r[0],i=r[1],o=i-e;if(!o)return n;var s=t.P;if(!s)return-1/0;var a=(r=s.site)[0],l=r[1],u=l-e;if(!u)return a;var c=a-n,h=1/o-1/u,d=c/u;return h?(-d+Math.sqrt(d*d-2*h*(c*c/(-2*u)-l+u/2+i-o/2)))/h+n:(n+a)/2}function gu(t,e,r){return(t[0]-r[0])*(e[1]-t[1])-(t[0]-e[0])*(r[1]-t[1])}function mu(t,e){return e[1]-t[1]||e[0]-t[0]}function yu(t,e){var r,n,i,o=t.sort(mu).pop();for(Sy=[],Ey=new Array(t.length),Ty=new Wl,Oy=new Wl;;)if(i=by,o&&(!i||o[1]wy||Math.abs(i[0][1]-i[1][1])>wy)||delete Sy[o]})(s,a,l,u),function(t,e,r,n){var i,o,s,a,l,u,c,h,d,p,f,g,m=Ey.length,y=!0;for(i=0;iwy||Math.abs(g-d)>wy)&&(l.splice(a,0,Sy.push(eu(s,p,Math.abs(f-t)wy?[t,Math.abs(h-t)wy?[Math.abs(d-n)wy?[r,Math.abs(h-r)wy?[Math.abs(d-e)n?(n+i)/2:Math.min(0,n)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var Ru=r(e),Cu=Ru.right,Lu=Ru.left,Iu=Array.prototype,ku=Iu.slice,Du=Iu.map,Pu=Math.sqrt(50),Mu=Math.sqrt(10),ju=Math.sqrt(2),Ku=Array.prototype.slice,Uu=1,Fu=2,$u=3,Hu=4,Bu=1e-6,qu={value:function(){}};N.prototype=S.prototype={constructor:N,on:function(t,e){var r,n,i=this._,o=(n=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s0)for(var r,n,i=new Array(r),o=0;o=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ju={};t.event=null,typeof document<"u"&&("onmouseenter"in document.documentElement||(Ju={mouseenter:"mouseover",mouseleave:"mouseout"}));var Zu=[null];st.prototype=at.prototype={constructor:st,select:function(t){"function"!=typeof t&&(t=L(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=b&&(b=x+1);!(v=y[b])&&++b=0;)(n=i[o])&&(s&&s!==n.nextSibling&&s.parentNode.insertBefore(n,s),s=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=K);for(var r=this._groups,n=r.length,i=new Array(n),o=0;o1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,r??"")):F(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=$(t+"");if(arguments.length<2){for(var n=H(this.node()),i=-1,o=r.length;++i=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}})),s=o.length;if(!(arguments.length<2)){for(a=e?nt:rt,null==r&&(r=!1),n=0;n=240?t-240:t+120,i,n),jt(t,i,n),jt(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var pc=Math.PI/180,fc=180/Math.PI,gc=.95047,mc=1,yc=1.08883,_c=4/29,vc=6/29,xc=3*vc*vc,bc=vc*vc*vc;St(Ft,Ut,Nt(At,{brighter:function(t){return new Ft(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Ft(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return t=mc*Ht(t),new kt(Bt(3.2404542*(e=gc*Ht(e))-1.5371385*t-.4985314*(r=yc*Ht(r))),Bt(-.969266*e+1.8760108*t+.041556*r),Bt(.0556434*e-.2040259*t+1.0572252*r),this.opacity)}})),St(zt,Gt,Nt(At,{brighter:function(t){return new zt(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new zt(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return Kt(this).rgb()}}));var Tc=-.29227,Ec=-.90649,Oc=1.97294,Sc=Oc*Ec,Nc=1.78277*Oc,Ac=1.78277*Tc- -.14861*Ec;St(Yt,Vt,Nt(At,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*pc,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new kt(255*(e+r*(-.14861*n+1.78277*i)),255*(e+r*(Tc*n+Ec*i)),255*(e+r*(Oc*n)),this.opacity)}}));var wc,Rc,Cc,Lc,Ic,kc,Dc=function t(e){function r(t,e){var r=n((t=It(t)).r,(e=It(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=ee(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}var n=function(t){return 1==(t=+t)?ee:function(e,r){return r-e?(n=e,i=r,o=t,n=Math.pow(n,o),i=Math.pow(i,o)-n,o=1/o,function(t){return Math.pow(n+t*i,o)}):Jt(isNaN(e)?r:e);var n,i,o}}(e);return r.gamma=t,r}(1),Pc=re(Xt),Mc=re(Qt),jc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kc=new RegExp(jc.source,"g"),Uc=180/Math.PI,Fc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},$c=he((function(t){return"none"===t?Fc:(wc||(wc=document.createElement("DIV"),Rc=document.documentElement,Cc=document.defaultView),wc.style.transform=t,t=Cc.getComputedStyle(Rc.appendChild(wc),null).getPropertyValue("transform"),Rc.removeChild(wc),ce(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Hc=he((function(t){return null==t?Fc:(Lc||(Lc=document.createElementNS("http://www.w3.org/2000/svg","g")),Lc.setAttribute("transform",t),(t=Lc.transform.baseVal.consolidate())?ce((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fc)}),", ",")",")"),Bc=Math.SQRT2,qc=2,Gc=4,zc=1e-12,Vc=fe(te),Yc=fe(ee),Wc=ge(te),Xc=ge(ee),Qc=me(te),Jc=me(ee),Zc=0,th=0,eh=0,rh=1e3,nh=0,ih=0,oh=0,sh="object"==typeof performance&&performance.now?performance:Date,ah="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};ve.prototype=xe.prototype={constructor:ve,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?ye():+r)+(null==e?0:+e),this._next||kc===this||(kc?kc._next=this:Ic=this,kc=this),this._call=t,this._time=r,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};var lh=S("start","end","interrupt"),uh=[],ch=0,hh=1,dh=2,ph=3,fh=4,gh=5,mh=6,yh=at.prototype.constructor,_h=0,vh=at.prototype;ke.prototype=De.prototype={constructor:ke,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=L(t));for(var n=this._groups,i=n.length,o=new Array(i),s=0;s=0&&(t=t.slice(0,e)),!t||"start"===t}))?Ae:we,function(){var t=a(this,r),e=t.on;e!==o&&(s=(o=e).copy()).on(n,i),t.on=s}))},attr:function(t,e){var r=w(t),n="transform"===r?Hc:Ie;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,i,o;return function(){var s,a=r(this);if(null!=a)return(s=this.getAttributeNS(t.space,t.local))===a?null:s===n&&a===i?o:o=e(n=s,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,e,r){var n,i,o;return function(){var s,a=r(this);if(null!=a)return(s=this.getAttribute(t))===a?null:s===n&&a===i?o:o=e(n=s,i=a);this.removeAttribute(t)}})(r,n,Le(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===n?i:i=e(n=o,r)}}:function(t,e,r){var n,i;return function(){var o=this.getAttribute(t);return o===r?null:o===n?i:i=e(n=o,r)}})(r,n,e+""))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var n=w(t);return this.tween(r,(n.local?function(t,e){function r(){var r=this,n=e.apply(r,arguments);return n&&function(e){r.setAttributeNS(t.space,t.local,n(e))}}return r._value=e,r}:function(t,e){function r(){var r=this,n=e.apply(r,arguments);return n&&function(e){r.setAttribute(t,n(e))}}return r._value=e,r})(n,e))},style:function(t,e,r){var n,i,o,s,a,l="transform"==(t+="")?$c:Ie;return null==e?this.styleTween(t,(n=t,i=l,function(){var t=F(this,n),e=(this.style.removeProperty(n),F(this,n));return t===e?null:t===o&&e===s?a:a=i(o=t,s=e)})).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,r){var n,i,o;return function(){var s=F(this,t),a=r(this);return null==a&&(this.style.removeProperty(t),a=F(this,t)),s===a?null:s===n&&a===i?o:o=e(n=s,i=a)}}(t,l,Le(this,"style."+t,e)):function(t,e,r){var n,i;return function(){var o=F(this,t);return o===r?null:o===n?i:i=e(n=o,r)}}(t,l,e+""),r)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,function(t,e,r){function n(){var n=this,i=e.apply(n,arguments);return i&&function(e){n.style.setProperty(t,i(e),r)}}return n._value=e,n}(t,e,r??""))},text:function(t){return this.tween("text","function"==typeof t?(e=Le(this,"text",t),function(){var t=e(this);this.textContent=t??""}):function(t){return function(){this.textContent=t}}(null==t?"":t+""));var e},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=Re(this.node(),r).tween,o=0,s=i.length;o1e-6)if(Math.abs(c*a-l*u)>1e-6&&i){var d=r-o,p=n-s,f=a*a+l*l,g=d*d+p*p,m=Math.sqrt(f),y=Math.sqrt(h),_=i*Math.tan((ud-Math.acos((f+h-g)/(2*m*y)))/2),v=_/y,x=_/m;Math.abs(v-1)>1e-6&&(this._+="L"+(t+v*u)+","+(e+v*c)),this._+="A"+i+","+i+",0,0,"+ +(c*d>u*p)+","+(this._x1=t+x*a)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,n,i,o){t=+t,e=+e;var s=(r=+r)*Math.cos(n),a=r*Math.sin(n),l=t+s,u=e+a,c=1^o,h=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%cd+cd),h>hd?this._+="A"+r+","+r+",0,1,"+c+","+(t-s)+","+(e-a)+"A"+r+","+r+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>1e-6&&(this._+="A"+r+","+r+",0,"+ +(h>=ud)+","+c+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},sr.prototype=ar.prototype={constructor:sr,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var dd=ar.prototype;dr.prototype=pr.prototype={constructor:dr,has:dd.has,add:function(t){return this["$"+(t+="")]=t,this},remove:dd.remove,clear:dd.clear,values:dd.keys,size:dd.size,empty:dd.empty,each:dd.each};var pd={},fd={},gd=34,md=10,yd=13,_d=gr(","),vd=_d.parse,xd=_d.parseRows,bd=_d.format,Td=_d.formatRows,Ed=gr("\t"),Od=Ed.parse,Sd=Ed.parseRows,Nd=Ed.format,Ad=Ed.formatRows,wd=Tr.prototype=Er.prototype;wd.copy=function(){var t,e,r=new Er(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=Or(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=Or(e));return r},wd.add=function(t){var e=+this._x.call(null,t),r=+this._y.call(null,t);return _r(this.cover(e,r),e,r,t)},wd.addAll=function(t){var e,r,n,i,o=t.length,s=new Array(o),a=new Array(o),l=1/0,u=1/0,c=-1/0,h=-1/0;for(r=0;rc&&(c=n),ih&&(h=i));for(ct||t>i||n>e||e>o))return this;var s,a,l=i-r,u=this._root;switch(a=(e<(n+o)/2)<<1|t<(r+i)/2){case 0:do{(s=new Array(4))[a]=u,u=s}while(o=n+(l*=2),t>(i=r+l)||e>o);break;case 1:do{(s=new Array(4))[a]=u,u=s}while(o=n+(l*=2),(r=i-l)>t||e>o);break;case 2:do{(s=new Array(4))[a]=u,u=s}while(n=o-(l*=2),t>(i=r+l)||n>e);break;case 3:do{(s=new Array(4))[a]=u,u=s}while(n=o-(l*=2),(r=i-l)>t||n>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=i,this._y1=o,this},wd.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},wd.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},wd.find=function(t,e,r){var n,i,o,s,a,l,u,c=this._x0,h=this._y0,d=this._x1,p=this._y1,f=[],g=this._root;for(g&&f.push(new vr(g,c,h,d,p)),null==r?r=1/0:(c=t-r,h=e-r,d=t+r,p=e+r,r*=r);l=f.pop();)if(!(!(g=l.node)||(i=l.x0)>d||(o=l.y0)>p||(s=l.x1)=y)<<1|t>=m)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-u],f[f.length-1-u]=l)}else{var _=t-+this._x.call(null,g.data),v=e-+this._y.call(null,g.data),x=_*_+v*v;if(x=(a=(f+m)/2))?f=a:m=a,(c=s>=(l=(g+y)/2))?g=l:y=l,e=p,!(p=p[h=c<<1|u]))return this;if(!p.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,d=h)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[h]=i:delete e[h],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[d]=p:this._root=p),this):(this._root=i,this)},wd.removeAll=function(t){for(var e=0,r=t.length;e0&&(o=0)}return o>0?t.slice(0,o)+t.slice(r+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return kr(100*t,e)},r:kr,s:function(t,e){var r=Lr(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Rd=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Lr(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Id=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Dr.prototype=Pr.prototype,Pr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var kd,Dd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Kr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Br.prototype={constructor:Br,reset:function(){this.s=this.t=0},add:function(t){qr(dp,t,this.t),qr(this,dp.s,this.s),this.s?this.t+=dp.t:this.s=dp.t},valueOf:function(){return this.s}};var Pd,Md,jd,Kd,Ud,Fd,$d,Hd,Bd,qd,Gd,zd,Vd,Yd,Wd,Xd,Qd,Jd,Zd,tp,ep,rp,np,ip,op,sp,ap,lp,up,cp,hp,dp=new Br,pp=1e-6,fp=Math.PI,gp=fp/2,mp=fp/4,yp=2*fp,_p=180/fp,vp=fp/180,xp=Math.abs,bp=Math.atan,Tp=Math.atan2,Ep=Math.cos,Op=Math.ceil,Sp=Math.exp,Np=Math.log,Ap=Math.pow,wp=Math.sin,Rp=Math.sign||function(t){return t>0?1:t<0?-1:0},Cp=Math.sqrt,Lp=Math.tan,Ip={Feature:function(t,e){Wr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++npp?Bd=90:jp<-pp&&($d=-90),Wd[0]=Fd,Wd[1]=Hd}},Up={sphere:Yr,point:bn,lineStart:En,lineEnd:Nn,polygonStart:function(){Up.lineStart=An,Up.lineEnd=wn},polygonEnd:function(){Up.lineStart=En,Up.lineEnd=Nn}};kn.invert=kn;var Fp,$p,Hp,Bp,qp,Gp,zp,Vp,Yp,Wp,Xp,Qp=Hr(),Jp=Vn((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a,l,u,c,h,d,p,f=o>0?fp:-fp,g=xp(o-r);xp(g-fp)0?gp:-gp),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(f,n),t.point(o,n),e=0):i!==f&&g>=fp&&(xp(r-i)pp?bp((wp(l)*(d=Ep(c))*wp(u)-wp(c)*(h=Ep(l))*wp(a))/(h*d*p)):(l+c)/2,t.point(i,n),t.lineEnd(),t.lineStart(),t.point(f,n),e=0),t.point(r=o,n=s),i=f},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*gp,n.point(-fp,i),n.point(0,i),n.point(fp,i),n.point(fp,0),n.point(fp,-i),n.point(0,-i),n.point(-fp,-i),n.point(-fp,0),n.point(-fp,i);else if(xp(t[0]-e[0])>pp){var o=t[0]pf&&(pf=t),eff&&(ff=e)},lineStart:Yr,lineEnd:Yr,polygonStart:Yr,polygonEnd:Yr,result:function(){var t=[[hf,df],[pf,ff]];return pf=ff=-(df=hf=1/0),t}},mf=0,yf=0,_f=0,vf=0,xf=0,bf=0,Tf=0,Ef=0,Of=0,Sf={point:yi,lineStart:_i,lineEnd:bi,polygonStart:function(){Sf.lineStart=Ti,Sf.lineEnd=Ei},polygonEnd:function(){Sf.point=yi,Sf.lineStart=_i,Sf.lineEnd=bi},result:function(){var t=Of?[Tf/Of,Ef/Of]:bf?[vf/bf,xf/bf]:_f?[mf/_f,yf/_f]:[NaN,NaN];return mf=yf=_f=vf=xf=bf=Tf=Ef=Of=0,t}};Ni.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,yp)}},result:Yr};var Nf,Af,wf,Rf,Cf,Lf=Hr(),If={point:Yr,lineStart:function(){If.point=Ai},lineEnd:function(){Nf&&wi(Af,wf),If.point=Yr},polygonStart:function(){Nf=!0},polygonEnd:function(){Nf=null},result:function(){var t=+Lf;return Lf.reset(),t}};Ri.prototype={_radius:4.5,_circle:Ci(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Ci(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ii.prototype={constructor:Ii,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var kf=16,Df=Ep(30*vp),Pf=Li({point:function(t,e){this.stream.point(t*vp,e*vp)}}),Mf=Gi((function(t){return Cp(2/(1+t))}));Mf.invert=zi((function(t){return 2*zr(t/2)}));var jf=Gi((function(t){return(t=Gr(t))&&t/wp(t)}));jf.invert=zi((function(t){return t})),Vi.invert=function(t,e){return[t,2*bp(Sp(e))-gp]},Qi.invert=Qi,Zi.invert=zi(bp),eo.invert=function(t,e){var r,n=e,i=25;do{var o=n*n,s=o*o;n-=r=(n*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(xp(r)>pp&&--i>0);return[t/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]},ro.invert=zi(zr),no.invert=zi((function(t){return 2*bp(t)})),io.invert=function(t,e){return[-e,2*bp(Sp(t))-gp]},fo.prototype=uo.prototype={constructor:fo,count:function(){return this.eachAfter(lo)},each:function(t){var e,r,n,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),r=o.children)for(n=0,i=r.length;n=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&&e.push({source:r.parent,target:r})})),e},copy:function(){return uo(this).eachBefore(ho)}};var Kf=Array.prototype.slice,Uf={depth:-1},Ff={};Ho.prototype=Object.create(fo.prototype);var $f=(1+Math.sqrt(5))/2,Hf=function t(e){function r(t,r,n,i,o){qo(e,t,r,n,i,o)}return r.ratio=function(e){return t((e=+e)>1?e:1)},r}($f),Bf=function t(e){function r(t,r,n,i,o){if((s=t._squarify)&&s.ratio===e)for(var s,a,l,u,c,h=-1,d=s.length,p=t.value;++h1?e:1)},r}($f),qf=[].slice,Gf={};Yo.prototype=Jo.prototype={constructor:Yo,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=qf.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),Wo(this),this},abort:function(){return null==this._error&&Xo(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,r){t.apply(null,[e].concat(r))},Qo(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Qo(this),this}};var zf=function t(e){function r(t,r){return t=null==t?0:+t,r=null==r?1:+r,1===arguments.length?(r=t,t=0):r-=t,function(){return e()*r+t}}return r.source=t,r}(Zo),Vf=function t(e){function r(t,r){var n,i;return t=null==t?0:+t,r=null==r?1:+r,function(){var o;if(null!=n)o=n,n=null;else do{n=2*e()-1,o=2*e()-1,i=n*n+o*o}while(!i||i>1);return t+r*o*Math.sqrt(-2*Math.log(i)/i)}}return r.source=t,r}(Zo),Yf=function t(e){function r(){var t=Vf.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(Zo),Wf=function t(e){function r(t){return function(){for(var r=0,n=0;n0?t>1?Es((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):hg:null};var dg=hg.range,pg=6e4,fg=6048e5,gg=Es((function(t){t.setTime(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),mg=gg.range,yg=Es((function(t){t.setTime(Math.floor(t/pg)*pg)}),(function(t,e){t.setTime(+t+e*pg)}),(function(t,e){return(e-t)/pg}),(function(t){return t.getMinutes()})),_g=yg.range,vg=Es((function(t){var e=t.getTimezoneOffset()*pg%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),xg=vg.range,bg=Es((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*pg)/864e5}),(function(t){return t.getDate()-1})),Tg=bg.range,Eg=Os(0),Og=Os(1),Sg=Os(2),Ng=Os(3),Ag=Os(4),wg=Os(5),Rg=Os(6),Cg=Eg.range,Lg=Og.range,Ig=Sg.range,kg=Ng.range,Dg=Ag.range,Pg=wg.range,Mg=Rg.range,jg=Es((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Kg=jg.range,Ug=Es((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ug.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Es((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var Fg=Ug.range,$g=Es((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*pg)}),(function(t,e){return(e-t)/pg}),(function(t){return t.getUTCMinutes()})),Hg=$g.range,Bg=Es((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),qg=Bg.range,Gg=Es((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),zg=Gg.range,Vg=Ss(0),Yg=Ss(1),Wg=Ss(2),Xg=Ss(3),Qg=Ss(4),Jg=Ss(5),Zg=Ss(6),tm=Vg.range,em=Yg.range,rm=Wg.range,nm=Xg.range,im=Qg.range,om=Jg.range,sm=Zg.range,am=Es((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),lm=am.range,um=Es((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));um.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Es((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var cm,hm=um.range,dm={"-":"",_:" ",0:"0"},pm=/^\s*\d+/,fm=/^%/,gm=/[\\^$*+?|[\]().{}]/g;Ma({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var mm="%Y-%m-%dT%H:%M:%S.%LZ",ym=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(mm),_m=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(mm),vm=1e3,xm=60*vm,bm=60*xm,Tm=24*bm,Em=7*Tm,Om=30*Tm,Sm=365*Tm,Nm=Fa("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Am=Fa("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),wm=Fa("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Rm=Fa("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Cm=Jc(Vt(300,.5,0),Vt(-240,.5,1)),Lm=Jc(Vt(-100,.75,.35),Vt(80,1.5,.8)),Im=Jc(Vt(260,.75,.35),Vt(80,1.5,.8)),km=Vt(),Dm=$a(Fa("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Pm=$a(Fa("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Mm=$a(Fa("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),jm=$a(Fa("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Km=Math.abs,Um=Math.atan2,Fm=Math.cos,$m=Math.max,Hm=Math.min,Bm=Math.sin,qm=Math.sqrt,Gm=1e-12,zm=Math.PI,Vm=zm/2,Ym=2*zm;Xa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Wm=ol(Qa);il.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Xm=Array.prototype.slice,Qm={draw:function(t,e){var r=Math.sqrt(e/zm);t.moveTo(r,0),t.arc(0,0,r,0,Ym)}},Jm={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Zm=Math.sqrt(1/3),ty=2*Zm,ey={draw:function(t,e){var r=Math.sqrt(e/ty),n=r*Zm;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},ry=Math.sin(zm/10)/Math.sin(7*zm/10),ny=Math.sin(Ym/10)*ry,iy=-Math.cos(Ym/10)*ry,oy={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=ny*r,i=iy*r;t.moveTo(0,-r),t.lineTo(n,i);for(var o=1;o<5;++o){var s=Ym*o/5,a=Math.cos(s),l=Math.sin(s);t.lineTo(l*r,-a*r),t.lineTo(a*n-l*i,l*n+a*i)}t.closePath()}},sy={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},ay=Math.sqrt(3),ly={draw:function(t,e){var r=-Math.sqrt(e/(3*ay));t.moveTo(0,2*r),t.lineTo(-ay*r,-r),t.lineTo(ay*r,-r),t.closePath()}},uy=Math.sqrt(3)/2,cy=1/Math.sqrt(12),hy=3*(cy/2+1),dy={draw:function(t,e){var r=Math.sqrt(e/hy),n=r/2,i=r*cy,o=n,s=r*cy+r,a=-o,l=s;t.moveTo(n,i),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(-.5*n-uy*i,uy*n+-.5*i),t.lineTo(-.5*o-uy*s,uy*o+-.5*s),t.lineTo(-.5*a-uy*l,uy*a+-.5*l),t.lineTo(-.5*n+uy*i,-.5*i-uy*n),t.lineTo(-.5*o+uy*s,-.5*s-uy*o),t.lineTo(-.5*a+uy*l,-.5*l-uy*a),t.closePath()}},py=[Qm,Jm,ey,sy,oy,ly,dy];_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],o=e[0],s=t[r]-i,a=e[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*s),this._beta*e[l]+(1-this._beta)*(o+n*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var fy=function t(e){function r(t){return 1===e?new _l(t):new bl(t,e)}return r.beta=function(e){return t(+e)},r}(.85);El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gy=function t(e){function r(t){return new El(t,e)}return r.tension=function(e){return t(+e)},r}(0);Ol.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var my=function t(e){function r(t){return new Ol(t,e)}return r.tension=function(e){return t(+e)},r}(0);Sl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var yy=function t(e){function r(t){return new Sl(t,e)}return r.tension=function(e){return t(+e)},r}(0);Al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _y=function t(e){function r(t){return e?new Al(t,e):new El(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);wl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vy=function t(e){function r(t){return e?new wl(t,e):new Ol(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);Rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xy=function t(e){function r(t){return e?new Rl(t,e):new Sl(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);Cl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dl(this,this._t0,kl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Dl(this,kl(this,r=Il(this,t,e)),r);break;default:Dl(this,this._t0,r=Il(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Ml.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)},jl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Kl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Ul(t),i=Ul(e),o=0,s=1;s=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},Wl.prototype={constructor:Wl,insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Zl(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(Ql(this,r),r=(t=r).U),r.C=!1,n.C=!0,Jl(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(Jl(this,r),r=(t=r).U),r.C=!1,n.C=!0,Ql(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,o=t.L,s=t.R;if(r=o?s?Zl(s):o:s,i?i.L===t?i.L=r:i.R=r:this._=r,o&&s?(n=r.C,r.C=t.C,r.L=o,o.U=r,r!==s?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=s,s.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Ql(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Jl(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Ql(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Jl(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Ql(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Jl(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var by,Ty,Ey,Oy,Sy,Ny=[],Ay=[],wy=1e-6;yu.prototype={constructor:yu,polygons:function(){var t=this.edges;return this.cells.map((function(e){var r=e.halfedges.map((function(r){return su(e,t[r])}));return r.data=e.site.data,r}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(r,n){if(o=(i=r.halfedges).length)for(var i,o,s,a=r.site,l=-1,u=e[i[o-1]],c=u.left===a?u.right:u.left;++l=a)return null;var l=t-i.site[0],u=e-i.site[1],c=l*l+u*u;do{i=o.cells[n=s],s=null,i.halfedges.forEach((function(r){var n=o.edges[r],a=n.left;if(a!==i.site&&a||(a=n.right)){var l=t-a[0],u=e-a[1],h=l*l+u*u;ht?1:e>=t?0:NaN},t.deviation=s,t.extent=a,t.histogram=function(){function t(t){var i,o,s=t.length,a=new Array(s);for(i=0;ih;)d.pop(),--f;var g,m=new Array(f+1);for(i=0;i<=f;++i)(g=m[i]=[]).x0=i>0?d[i-1]:u,g.x1=i=r)for(n=r;++on&&(n=r)}else for(;++o=r)for(n=r;++on&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,o=n,s=-1,a=0;if(null==e)for(;++s=o.length)return null!=r&&e.sort(r),null!=n?n(e):e;for(var l,u,c,h=-1,d=e.length,p=o[i++],f=ar(),g=s();++ho.length)return t;var i,a=s[r-1];return null!=n&&r>=o.length?i=t.entries():(i=[],t.each((function(t,n){i.push({key:n,values:e(t,r)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}var r,n,i,o=[],s=[];return i={object:function(e){return t(e,0,lr,ur)},map:function(e){return t(e,0,cr,hr)},entries:function(r){return e(t(r,0,cr,hr),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return s[o.length-1]=t,i},sortValues:function(t){return r=t,i},rollup:function(t){return n=t,i}}},t.set=pr,t.map=ar,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.color=wt,t.rgb=It,t.hsl=Pt,t.lab=Ut,t.hcl=Gt,t.cubehelix=Vt,t.dispatch=S,t.drag=function(){function e(t){t.on("mousedown.drag",r).filter(m).on("touchstart.drag",o).on("touchmove.drag",s).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function r(){if(!d&&p.apply(this,arguments)){var e=l("mouse",f.apply(this,arguments),pt,this,arguments);e&&(lt(t.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",i,!0),yt(t.event.view),gt(),h=!1,u=t.event.clientX,c=t.event.clientY,e("start"))}}function n(){if(mt(),!h){var e=t.event.clientX-u,r=t.event.clientY-c;h=e*e+r*r>x}y.mouse("drag")}function i(){lt(t.event.view).on("mousemove.drag mouseup.drag",null),_t(t.event.view,h),mt(),y.mouse("end")}function o(){if(p.apply(this,arguments)){var e,r,n=t.event.changedTouches,i=f.apply(this,arguments),o=n.length;for(e=0;el+p||iu+p||on.index){var f=l-a.x-a.vx,g=u-a.y-a.vy,m=f*f+g*g;mt.r&&(t.r=t[e].r)}function n(){if(i){var e,r,n=i.length;for(o=new Array(n),e=0;e=c)){(t.data!==o||t.next)&&(0===i&&(p+=(i=yr())*i),0===l&&(p+=(l=yr())*l),p1?(null==e?h.remove(t):h.set(t,i(e)),o):h.get(t)},find:function(e,r,n){var i,o,s,a,l,u=0,c=t.length;for(null==n?n=1/0:n*=n,u=0;u1?(p.on(t,e),o):p.on(t)}}},t.forceX=function(t){function e(t){for(var e,r=0,s=n.length;r_n(n[0],n[1])&&(n[1]=i[1]),_n(i[0],n[1])>_n(n[0],n[1])&&(n[0]=i[0])):o.push(n=i);for(s=-1/0,e=0,n=o[r=o.length-1];e<=r;n=i,++e)i=o[e],(a=_n(n[1],i[0]))>s&&(s=a,Fd=i[0],Hd=n[1])}return Yd=Wd=null,Fd===1/0||$d===1/0?[[NaN,NaN],[NaN,NaN]]:[[Fd,$d],[Hd,Bd]]},t.geoCentroid=function(t){Xd=Qd=Jd=Zd=tp=ep=rp=np=ip=op=sp=0,Jr(t,Up);var e=ip,r=op,n=sp,i=e*e+r*r+n*n;return i<1e-12&&(e=ep,r=rp,n=np,Qd=.12&&i<.234&&n>=-.425&&n<-.214?u:i>=.166&&i<.234&&n>=-.214&&n<-.115?c:l).invert(t)},t.stream=function(t){return r&&n===t?r:(e=[l.stream(n=t),u.stream(t),c.stream(t)],i=e.length,r={point:function(t,r){for(var n=-1;++n2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=io,t.geoRotation=Kn,t.geoStream=Jr,t.geoTransform=function(t){return{stream:Li(t)}},t.cluster=function(){function t(t){var o,s=0;t.eachAfter((function(t){var r,n=t.children;n?(t.x=(r=n).reduce(so,0)/r.length,t.y=function(t){return 1+t.reduce(ao,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)}));var a=function(t){for(var e;e=t.children;)t=e[0];return t}(t),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(t),u=a.x-e(a,l)/2,c=l.x+e(l,a)/2;return t.eachAfter(i?function(e){e.x=(e.x-t.x)*r,e.y=(t.y-e.y)*n}:function(e){e.x=(e.x-u)/(c-u)*r,e.y=(1-(t.y?e.y/t.y:1))*n})}var e=oo,r=1,n=1,i=!1;return t.separation=function(r){return arguments.length?(e=r,t):e},t.size=function(e){return arguments.length?(i=!1,r=+e[0],n=+e[1],t):i?null:[r,n]},t.nodeSize=function(e){return arguments.length?(i=!0,r=+e[0],n=+e[1],t):i?[r,n]:null},t},t.hierarchy=uo,t.pack=function(){function t(t){return t.x=r/2,t.y=n/2,e?t.eachBefore(Co(e)).eachAfter(Lo(i,.5)).eachBefore(Io(1)):t.eachBefore(Co(Ro)).eachAfter(Lo(Ao,1)).eachAfter(Lo(i,t.r/Math.min(r,n))).eachBefore(Io(Math.min(r,n)/(2*t.r))),t}var e=null,r=1,n=1,i=Ao;return t.radius=function(r){return arguments.length?(e=null==(n=r)?null:No(n),t):e;var n},t.size=function(e){return arguments.length?(r=+e[0],n=+e[1],t):[r,n]},t.padding=function(e){return arguments.length?(i="function"==typeof e?e:wo(+e),t):i},t},t.packSiblings=function(t){return So(t),t},t.packEnclose=go,t.partition=function(){function t(t){var o,s,a=t.height+1;return t.x0=t.y0=n,t.x1=e,t.y1=r/a,t.eachBefore((o=r,s=a,function(t){t.children&&Do(t,t.x0,o*(t.depth+1)/s,t.x1,o*(t.depth+2)/s);var e=t.x0,r=t.y0,i=t.x1-n,a=t.y1-n;i0)throw new Error("cycle");return o}var e=Po,r=Mo;return t.id=function(r){return arguments.length?(e=No(r),t):e},t.parentId=function(e){return arguments.length?(r=No(e),t):r},t},t.tree=function(){function t(t){var l=function(t){for(var e,r,n,i,o,s=new Ho(t,0),a=[s];e=a.pop();)if(n=e._.children)for(e.children=new Array(o=n.length),i=o-1;i>=0;--i)a.push(r=e.children[i]=new Ho(n[i],i)),r.parent=e;return(s.parent=new Ho(null,0)).children=[s],s}(t);if(l.eachAfter(e),l.parent.m=-l.z,l.eachBefore(r),a)t.eachBefore(n);else{var u=t,c=t,h=t;t.eachBefore((function(t){t.xc.x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:i(u,c)/2,p=d-u.x,f=o/(c.x+d+p),g=s/(h.depth||1);t.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return t}function e(t){var e=t.children,r=t.parent.children,n=t.i?r[t.i-1]:null;if(e){!function(t){for(var e,r=0,n=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var o=(e[0].z+e[e.length-1].z)/2;n?(t.z=n.z+i(t._,n._),t.m=t.z-o):t.z=o}else n&&(t.z=n.z+i(t._,n._));t.parent.A=function(t,e,r){if(e){for(var n,o=t,s=t,a=e,l=o.parent.children[0],u=o.m,c=s.m,h=a.m,d=l.m;a=Uo(a),o=Ko(o),a&&o;)l=Ko(l),(s=Uo(s)).a=t,(n=a.z+h-o.z-u+i(a._,o._))>0&&(Fo($o(a,t,r),t,n),u+=n,c+=n),h+=a.m,u+=o.m,d+=l.m,c+=s.m;a&&!Uo(s)&&(s.t=a,s.m+=h-c),o&&!Ko(l)&&(l.t=o,l.m+=u-d,r=t)}return r}(t,n,t.parent.A||r[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function n(t){t.x*=o,t.y=t.depth*s}var i=jo,o=1,s=1,a=null;return t.separation=function(e){return arguments.length?(i=e,t):i},t.size=function(e){return arguments.length?(a=!1,o=+e[0],s=+e[1],t):a?null:[o,s]},t.nodeSize=function(e){return arguments.length?(a=!0,o=+e[0],s=+e[1],t):a?[o,s]:null},t},t.treemap=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(e),s=[0],n&&t.eachBefore(ko),t}function e(t){var e=s[t.depth],n=t.x0+e,i=t.y0+e,o=t.x1-e,d=t.y1-e;o=r-1){var c=a[e];return c.x0=i,c.y0=o,c.x1=s,void(c.y1=l)}for(var h=u[e],d=n/2+h,p=e+1,f=r-1;p>>1;u[g]l-o){var _=(i*y+s*m)/n;t(e,p,m,i,o,_,l),t(p,r,y,_,o,s,l)}else{var v=(o*y+l*m)/n;t(e,p,m,i,o,s,v),t(p,r,y,i,v,s,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=Do,t.treemapSlice=Bo,t.treemapSliceDice=function(t,e,r,n,i){(1&t.depth?Bo:Do)(t,e,r,n,i)},t.treemapSquarify=Hf,t.treemapResquarify=Bf,t.interpolate=le,t.interpolateArray=ne,t.interpolateBasis=Xt,t.interpolateBasisClosed=Qt,t.interpolateDate=ie,t.interpolateNumber=oe,t.interpolateObject=se,t.interpolateRound=ue,t.interpolateString=ae,t.interpolateTransformCss=$c,t.interpolateTransformSvg=Hc,t.interpolateZoom=pe,t.interpolateRgb=Dc,t.interpolateRgbBasis=Pc,t.interpolateRgbBasisClosed=Mc,t.interpolateHsl=Vc,t.interpolateHslLong=Yc,t.interpolateLab=function(t,e){var r=ee((t=Ut(t)).l,(e=Ut(e)).l),n=ee(t.a,e.a),i=ee(t.b,e.b),o=ee(t.opacity,e.opacity);return function(e){return t.l=r(e),t.a=n(e),t.b=i(e),t.opacity=o(e),t+""}},t.interpolateHcl=Wc,t.interpolateHclLong=Xc,t.interpolateCubehelix=Qc,t.interpolateCubehelixLong=Jc,t.quantize=function(t,e){for(var r=new Array(e),n=0;n=0;--e)u.push(t[n[o[e]][2]]);for(e=+a;ea!=u>a&&s<(l-r)*(a-n)/(u-n)+r&&(c=!c),l=r,u=n;return c},t.polygonLength=function(t){for(var e,r,n=-1,i=t.length,o=t[i-1],s=o[0],a=o[1],l=0;++n0){for(;pl)break;m.push(d)}}else for(;p=1;--c)if(!((d=u*c)l)break;m.push(d)}}else m=h(p,f,Math.min(f-p,g)).map(a);return e?m.reverse():m},n.tickFormat=function(e,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=t.format(r)),e===1/0)return r;null==e&&(e=10);var i=Math.max(1,o*e/n.ticks().length);return function(t){var e=t/a(Math.round(s(t)));return e*o0?s[e-1]:i[0],e=o?[s[o-1],i]:[s[e-1],s[e]]},e.copy=function(){return t().domain([n,i]).range(a)},ps(e)},t.scaleThreshold=function t(){function e(t){if(t<=t)return n[Cu(r,t,0,i)]}var r=[.5],n=[0,1],i=1;return e.domain=function(t){return arguments.length?(r=sg.call(t),i=Math.min(r.length,n.length-1),e):r.slice()},e.range=function(t){return arguments.length?(n=sg.call(t),i=Math.min(r.length,n.length-1),e):n.slice()},e.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},e.copy=function(){return t().domain(r).range(n)},e},t.scaleTime=function(){return Ua(Ug,jg,Eg,bg,vg,yg,gg,hg,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},t.scaleUtc=function(){return Ua(um,am,Vg,Gg,Bg,$g,gg,hg,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},t.schemeCategory10=Nm,t.schemeCategory20b=Am,t.schemeCategory20c=wm,t.schemeCategory20=Rm,t.interpolateCubehelixDefault=Cm,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return km.h=360*t-100,km.s=1.5-1.5*e,km.l=.8-.9*e,km+""},t.interpolateWarm=Lm,t.interpolateCool=Im,t.interpolateViridis=Dm,t.interpolateMagma=Pm,t.interpolateInferno=Mm,t.interpolatePlasma=jm,t.scaleSequential=function t(e){function r(t){var r=(t-n)/(i-n);return e(o?Math.max(0,Math.min(1,r)):r)}var n=0,i=1,o=!1;return r.domain=function(t){return arguments.length?(n=+t[0],i=+t[1],r):[n,i]},r.clamp=function(t){return arguments.length?(o=!!t,r):o},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(e).domain([n,i]).clamp(o)},ps(r)},t.create=function(t){return lt(R(t).call(document.documentElement))},t.creator=R,t.local=ut,t.matcher=Xu,t.mouse=pt,t.namespace=w,t.namespaces=zu,t.clientPoint=dt,t.select=lt,t.selectAll=function(t){return"string"==typeof t?new st([document.querySelectorAll(t)],[document.documentElement]):new st([t??[]],Zu)},t.selection=at,t.selector=L,t.selectorAll=k,t.style=F,t.touch=ft,t.touches=function(t,e){null==e&&(e=ht().touches);for(var r=0,n=e?e.length:0,i=new Array(n);rb;if(l||(l=t=tr()),xGm)if(E>Ym-Gm)l.moveTo(x*Fm(b),x*Bm(b)),l.arc(0,0,x,b,T,!O),v>Gm&&(l.moveTo(v*Fm(T),v*Bm(T)),l.arc(0,0,v,T,b,O));else{var S,N,A=b,w=T,R=b,C=T,L=E,I=E,k=a.apply(this,arguments)/2,D=k>Gm&&(i?+i.apply(this,arguments):qm(v*v+x*x)),P=Hm(Km(x-v)/2,+n.apply(this,arguments)),M=P,j=P;if(D>Gm){var K=Ba(D/v*Bm(k)),U=Ba(D/x*Bm(k));(L-=2*K)>Gm?(R+=K*=O?1:-1,C-=K):(L=0,R=C=(b+T)/2),(I-=2*U)>Gm?(A+=U*=O?1:-1,w-=U):(I=0,A=w=(b+T)/2)}var F=x*Fm(A),$=x*Bm(A),H=v*Fm(C),B=v*Bm(C);if(P>Gm){var q=x*Fm(w),G=x*Bm(w),z=v*Fm(R),V=v*Bm(R);if(EGm?[(c=F)+(_=((m=H-(d=q))*((h=$)-(p=G))-(y=B-p)*(c-d))/(y*(f=z-c)-m*(g=V-h)))*f,h+_*g]:[H,B],W=F-Y[0],X=$-Y[1],Q=q-Y[0],J=G-Y[1],Z=1/Bm(function(t){return t>1?0:t<-1?zm:Math.acos(t)}((W*Q+X*J)/(qm(W*W+X*X)*qm(Q*Q+J*J)))/2),tt=qm(Y[0]*Y[0]+Y[1]*Y[1]);M=Hm(P,(v-tt)/(Z-1)),j=Hm(P,(x-tt)/(Z+1))}}I>Gm?j>Gm?(S=Wa(z,V,F,$,x,j,O),N=Wa(q,G,H,B,x,j,O),l.moveTo(S.cx+S.x01,S.cy+S.y01),jGm&&L>Gm?M>Gm?(S=Wa(H,B,q,G,v,-M,O),N=Wa(F,$,z,V,v,-M,O),l.lineTo(S.cx+S.x01,S.cy+S.y01),M0&&(p+=h);for(null!=r?f.sort((function(t,e){return r(g[t],g[e])})):null!=n&&f.sort((function(e,r){return n(t[e],t[r])})),a=0,u=p?(y-d*v)/p:0;a0?h*u:0)+v,g[l]={data:t[l],index:a,value:h,startAngle:m,endAngle:c,padAngle:_};return g}var e=nl,r=rl,n=null,i=Ha(0),o=Ha(Ym),s=Ha(0);return t.value=function(r){return arguments.length?(e="function"==typeof r?r:Ha(+r),t):e},t.sortValues=function(e){return arguments.length?(r=e,n=null,t):r},t.sort=function(e){return arguments.length?(n=e,r=null,t):n},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),t):i},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ha(+e),t):o},t.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Ha(+e),t):s},t},t.areaRadial=ll,t.radialArea=ll,t.lineRadial=al,t.radialLine=al,t.pointRadial=ul,t.linkHorizontal=function(){return dl(pl)},t.linkVertical=function(){return dl(fl)},t.linkRadial=function(){var t=dl(gl);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.symbol=function(){function t(){var t;if(n||(n=t=tr()),e.apply(this,arguments).draw(n,+r.apply(this,arguments)),t)return n=null,t+""||null}var e=Ha(Qm),r=Ha(64),n=null;return t.type=function(r){return arguments.length?(e="function"==typeof r?r:Ha(r),t):e},t.size=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),t):r},t.context=function(e){return arguments.length?(n=e??null,t):n},t},t.symbols=py,t.symbolCircle=Qm,t.symbolCross=Jm,t.symbolDiamond=ey,t.symbolSquare=sy,t.symbolStar=oy,t.symbolTriangle=ly,t.symbolWye=dy,t.curveBasisClosed=function(t){return new vl(t)},t.curveBasisOpen=function(t){return new xl(t)},t.curveBasis=function(t){return new _l(t)},t.curveBundle=fy,t.curveCardinalClosed=my,t.curveCardinalOpen=yy,t.curveCardinal=gy,t.curveCatmullRomClosed=vy,t.curveCatmullRomOpen=xy,t.curveCatmullRom=_y,t.curveLinearClosed=function(t){return new Cl(t)},t.curveLinear=Qa,t.curveMonotoneX=function(t){return new Pl(t)},t.curveMonotoneY=function(t){return new Ml(t)},t.curveNatural=function(t){return new Kl(t)},t.curveStep=function(t){return new Fl(t,.5)},t.curveStepAfter=function(t){return new Fl(t,1)},t.curveStepBefore=function(t){return new Fl(t,0)},t.stack=function(){function t(t){var o,s,a=e.apply(this,arguments),l=t.length,u=a.length,c=new Array(u);for(o=0;o0){for(var r,n,i,o=0,s=t[0].length;o1)for(var r,n,i,o,s,a,l=0,u=t[e[0]].length;l=0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=s,n[0]=s+=i):n[0]=o},t.stackOffsetNone=$l,t.stackOffsetSilhouette=function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,s=1;shh&&r.name===e)return new ke([[t]],Bh,e,+n);return null},t.interrupt=Ce,t.voronoi=function(){function t(t){return new yu(t.map((function(n,i){var o=[Math.round(e(n,i,t)/wy)*wy,Math.round(r(n,i,t)/wy)*wy];return o.index=i,o.data=n,o})),n)}var e=Vl,r=Yl,n=null;return t.polygons=function(e){return t(e).polygons()},t.links=function(e){return t(e).links()},t.triangles=function(e){return t(e).triangles()},t.x=function(r){return arguments.length?(e="function"==typeof r?r:zl(+r),t):e},t.y=function(e){return arguments.length?(r="function"==typeof e?e:zl(+e),t):r},t.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],t):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},t.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],t):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},t},t.zoom=function(){function e(t){t.property("__zoom",Su).on("wheel.zoom",l).on("mousedown.zoom",u).on("dblclick.zoom",c).filter(x).on("touchstart.zoom",h).on("touchmove.zoom",d).on("touchend.zoom touchcancel.zoom",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function r(t,e){return(e=Math.max(b[0],Math.min(b[1],e)))===t.k?t:new vu(e,t.x,t.y)}function n(t,e,r){var n=e[0]-r[0]*t.k,i=e[1]-r[1]*t.k;return n===t.x&&i===t.y?t:new vu(t.k,n,i)}function i(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,e,r){t.on("start.zoom",(function(){s(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){s(this,arguments).end()})).tween("zoom",(function(){var t=arguments,n=s(this,t),o=y.apply(this,t),a=r||i(o),l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof e?e.apply(this,t):e,h=O(u.invert(a).concat(l/u.k),c.invert(a).concat(l/c.k));return function(t){if(1===t)t=c;else{var e=h(t),r=l/e[2];t=new vu(r,a[0]-e[0]*r,a[1]-e[1]*r)}n.zoom(null,t)}}))}function s(t,e){for(var r,n=0,i=N.length;nC}e.zoom("mouse",_(n(e.that.__zoom,e.mouse[0]=pt(e.that),e.mouse[1]),e.extent,T))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),_t(t.event.view,e.moved),Tu(),e.end()}),!0),i=pt(this),o=t.event.clientX,a=t.event.clientY;yt(t.event.view),bu(),e.mouse=[i,this.__zoom.invert(i)],Ce(this),e.start()}}function c(){if(m.apply(this,arguments)){var i=this.__zoom,s=pt(this),a=i.invert(s),l=i.k*(t.event.shiftKey?.5:2),u=_(n(r(i,l),s,a),y.apply(this,arguments),T);Tu(),E>0?lt(this).transition().duration(E).call(o,u,s):lt(this).call(e.transform,u)}}function h(){if(m.apply(this,arguments)){var e,r,n,i,o=s(this,arguments),a=t.event.changedTouches,l=a.length;for(bu(),r=0;r{!function(r){"object"==typeof t&&typeof e<"u"?e.exports=r():"function"==typeof define&&define.amd?define([],r):(typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:this).cola=r()}((function(){return function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var l="function"==typeof h&&h;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};e[s][0].call(c.exports,(function(t){return i(e[s][1][t]||t)}),c,c.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof h&&h,s=0;sa;){var l=e[a][s];l>0&&l1e-9)break;var p=this.offsetDir();for(n=0;n1&&f>g||!isFinite(g)){for(n=0;n1&&(m=1);var y=g*g,_=2*m*(f-g)/(y*f),v=h*f,x=2*-m/(y*v);for(isFinite(_)||console.log(_),n=0;n0?N-(R+1)*T:N-(R-1)*T;-b0;)for(var i=e;i-- >0;)r(n,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var r=this;this.computeDerivatives(t);var n=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,n),this.project){this.matrixApply((function(n,i){return r.e[n][i]=t[n][i]-e[n][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,r=!1;!r&&t-- >0;){var n=this.rungeKutta();r=Math.abs(e/n-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();r.PseudoRandom=o},{}],8:[function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=t("./rectangle"),s=function(){};r.Point=s;var a=function(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n};r.LineSegment=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);function u(t,e,r){return(e.x-t.x)*(r.y-t.y)-(r.x-t.x)*(e.y-t.y)}function c(t,e,r){return u(t,e,r)>0}function h(t,e,r){return u(t,e,r)<0}function d(t,e){var r=e.slice(0);return r.push(e[0]),{rtan:p(t,r),ltan:f(t,r)}}function p(t,e){var r,n,i,o,s=e.length-1;if(h(t,e[1],e[0])&&!c(t,e[s-1],e[0]))return 0;for(r=0,n=s;;){if(n-r==1)return c(t,e[r],e[n])?r:n;if((o=h(t,e[(i=Math.floor((r+n)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[r+1],e[r])?o||c(t,e[r],e[i])?n=i:r=i:o&&h(t,e[r],e[i])?n=i:r=i}}function f(t,e){var r,n,i,o,s=e.length-1;if(c(t,e[s-1],e[0])&&!h(t,e[1],e[0]))return 0;for(r=0,n=s;;){if(n-r==1)return h(t,e[r],e[n])?r:n;if(o=h(t,e[(i=Math.floor((r+n)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;h(t,e[r+1],e[r])?o?h(t,e[r],e[i])?n=i:r=i:n=i:o?r=i:c(t,e[r],e[i])?n=i:r=i}}function g(t,e,r,n,i,o){var s,a;a=n(t[s=r(e[0],t)],e);for(var l=!1;!l;){for(l=!0;s===t.length-1&&(s=0),!i(e[a],t[s],t[s+1]);)++s;for(;0===a&&(a=e.length-1),!o(t[s],e[a],e[a-1]);)--a,l=!1}return{t1:s,t2:a}}function m(t,e){return g(t,e,p,f,c,h)}r.PolyPoint=l,r.isLeft=u,r.ConvexHull=function(t){var e,r=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),n=t.length,i=r[0].x;for(e=1;e=0&&r[e].x===c;e--);for(a=e+1,e=o;++e<=a;)if(!(u(r[0],r[a],r[e])>=0&&e1&&!(u(s[s.length-2],s[s.length-1],r[e])>0);)s.length-=1;0!=e&&s.push(r[e])}l!=a&&s.push(r[l]);var h=s.length;for(e=a;--e>=o;)if(!(u(r[l],r[o],r[e])>=0&&e>o)){for(;s.length>h&&!(u(s[s.length-2],s[s.length-1],r[e])>0);)s.length-=1;0!=e&&s.push(r[e])}}return s},r.clockwiseRadialSweep=function(t,e,r){e.slice(0).sort((function(e,r){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(r.y-t.y,r.x-t.x)})).forEach(r)},r.tangent_PolyPolyC=g,r.LRtangent_PolyPolyC=function(t,e){var r=m(e,t);return{t1:r.t2,t2:r.t1}},r.RLtangent_PolyPolyC=m,r.LLtangent_PolyPolyC=function(t,e){return g(t,e,f,f,h,h)},r.RRtangent_PolyPolyC=function(t,e){return g(t,e,p,p,c,c)};var y=function(t,e){this.t1=t,this.t2=e};r.BiTangent=y;var _=function(){};r.BiTangents=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);r.TVGPoint=v;var x=function(t,e,r,n){this.id=t,this.polyid=e,this.polyvertid=r,this.p=n,n.vv=this};r.VisibilityVertex=x;var b=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();r.VisibilityEdge=b;var T=function(){function t(t,e){if(this.P=t,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var r=t.length,n=0;n0&&this.E.push(new b(i[o-1].vv,a))}i.length>1&&this.E.push(new b(i[0].vv,i[i.length-1].vv))}for(n=0;n0)return!0;return!1},t}();function E(t,e){for(var r=[],n=1,i=e.length;n=0&&g>=0&&m<0&&v>=0&&x>=0&&b<0?i.ll=new y(o,s):f<=0&&g<=0&&m>0&&v<=0&&x<=0&&b>0?i.rr=new y(o,s):f<=0&&g>0&&m<=0&&v>=0&&x<0&&b>=0?i.rl=new y(o,s):f>=0&&g<0&&m>=0&&v<=0&&x>0&&b<=0&&(i.lr=new y(o,s))}return i}function S(t,e){return!t.every((function(t){return!function(t,e){for(var r=1,n=e.length;r0)return!0}return!1}},{"./rectangle":17}],9:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./rectangle"),i=t("./vpsc"),o=t("./shortestpaths"),s=function(t,e,r){this.id=t,this.rect=e,this.children=r,this.leaf=typeof r>"u"||0===r.length};r.NodeWrapper=s;var a=function(t,e,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=r,this.node=n,this.line=i};r.Vert=a;var l=function(){function t(e,r){this.s=e,this.t=r;var n=t.findMatch(e,r),i=r.slice(0).reverse(),o=t.findMatch(e,i);n.length>=o.length?(this.length=n.length,this.si=n.si,this.ti=n.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=r.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var r=t.length,n=e.length,i={length:0,si:-1,ti:-1},o=new Array(r),s=0;si.length&&(i.length=l,i.si=s-l+1,i.ti=a-l+1)}else o[s][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();r.LongestCommonSubsequence=l;var u=function(){function t(t,e,r){var i=this;void 0===r&&(r=12),this.originalnodes=t,this.groupPadding=r,this.leaves=null,this.nodes=t.map((function(t,r){return new s(r,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){typeof t.parent>"u"&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=n.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),l=this.midPoints(this.rows.map((function(t){return t.pos}))),u=o[0],c=o[o.length-1],h=l[0],d=l[l.length-1],p=this.rows.map((function(t){return{x1:u,x2:c,y1:t.pos,y2:t.pos}})).concat(l.map((function(t){return{x1:u,x2:c,y1:t,y2:t}}))),f=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:d}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:d}}))),g=p.concat(f);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],p.forEach((function(t){return f.forEach((function(e){var r=new a(i.verts.length,e.x1,t.y1);t.verts.push(r),e.verts.push(r),i.verts.push(r);for(var n=i.backToFront.length;n-- >0;){var o=i.backToFront[n],s=o.rect,l=Math.abs(r.x-s.cx()),u=Math.abs(r.y-s.cy());if(l0&&i=n&&console.warn("[GridRouter.getGridLines] Hit max iterations limit, possible infinite loop prevented"),e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root&&e<1e3;)if(e++,typeof(t=t.parent)>"u"||null===t){console.warn("[GridRouter.getDepth] Encountered node with undefined parent");break}return e},t.prototype.midPoints=function(t){if(!t||0===t.length)return[0];if(1===t.length)return[t[0]-10,t[0]+10];var e=t[1]-t[0];(!Number.isFinite(e)||0===e)&&(e=20);for(var r=[t[0]-e/2],n=1;n"u"||null===t){console.warn("[GridRouter.findLineage] Encountered node with undefined parent");break}e.push(t),r++}while(t!==this.root&&r<1e3);return e.reverse()},t.prototype.findAncestorPathBetween=function(t,e){for(var r=this.findLineage(t),n=this.findLineage(e),i=0;r[i]===n[i]&&i.1)&&(u={pos:h[0][e],segments:[]},l.push(u)),u.segments.push(h)}return l},t.nudgeSegs=function(t,e,r,n,o,s){var a=n.length;if(!(a<=1)){for(var l=n.map((function(e){return new i.Variable(e[0][t])})),u=[],c=0;c=0&&u.push(new i.Constraint(l[m],l[y],s))}new i.Solver(l,u).solve(),l.forEach((function(e,i){var o=n[i],s=e.position();o[0][t]=o[1][t]=s;var a=r[o.edgeid];o.i>0&&(a[o.i-1][1][t]=s),o.iMath.PI||i<-Math.PI)&&(i=n-r),i},t.isLeft=function(t,e,r){return(e.x-t.x)*(r.y-t.y)-(e.y-t.y)*(r.x-t.x)<=0},t.getOrder=function(t){for(var e={},r=0;r"u"&&(e[n.l]={}),e[n.l][n.r]=!0}return function(t,r){return typeof e[t]<"u"&&e[t][r]}},t.orderEdges=function(e){for(var r=[],n=0;n=u.length||h.ti+h.length>=c.length)){r.push({l:n,r:i});continue}h.si+h.length>=u.length||h.ti+h.length>=c.length?(o=u[h.si+1],a=u[h.si-1],s=c[h.ti-1]):(o=u[h.si+h.length-2],s=u[h.si+h.length],a=c[h.ti+h.length]),t.isLeft(o,s,a)?r.push({l:i,r:n}):r.push({l:n,r:i})}}return t.getOrder(r)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var r=[],n=e(t[0]),i=1;i1&&c>1?1e3:0})).reverse().map((function(t){return r.verts[t]}));return this.nodes[i.id]&&this.nodes[i.id].ports&&this.nodes[i.id].ports.length>0&&c.push(this.nodes[i.id].ports[0]),c.filter((function(t,e){return!!t&&!(e0&&t.node===i&&c[e-1]&&c[e-1].node===i)}))},t.getRoutePath=function(e,r,n,i){var o,s,a,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var u=0;u0?c-=d/Math.abs(d)*r:h-=p/Math.abs(p)*r,l.routepath+="L "+c+" "+h+" ";var f=e[u+1],g=f[0].x,m=f[0].y;d=f[1].x-g,p=f[1].y-m;var y,_,v=t.angleBetween2Lines(o,f)<0?1:0;Math.abs(d)>0?(y=g+d/Math.abs(d)*r,_=m):(y=g,_=m+p/Math.abs(p)*r);var x=Math.abs(y-c),b=Math.abs(_-h);l.routepath+="A "+x+" "+b+" 0 0 "+v+" "+y+" "+_+" "}else{var T=[c,h];Math.abs(d)>0?(s=[c-=d/Math.abs(d)*i,h+n],a=[c,h-n]):(s=[c+n,h-=p/Math.abs(p)*i],a=[c-n,h]),l.routepath+="L "+c+" "+h+" ",i>0&&(l.arrowpath="M "+T[0]+" "+T[1]+" L "+s[0]+" "+s[1]+" L "+a[0]+" "+a[1])}}else c=(o=e[0])[1].x,h=o[1].y,d=c-o[0].x,p=h-o[0].y,T=[c,h],Math.abs(d)>0?(s=[c-=d/Math.abs(d)*i,h+n],a=[c,h-n]):(s=[c+n,h-=p/Math.abs(p)*i],a=[c-n,h]),l.routepath+="L "+c+" "+h+" ",i>0&&(l.arrowpath="M "+T[0]+" "+T[1]+" L "+s[0]+" "+s[1]+" L "+a[0]+" "+a[1]);return l},t}();r.GridRouter=u},{"./rectangle":17,"./shortestpaths":18,"./vpsc":19}],10:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=10,i=(1+Math.sqrt(5))/2,o=1e-4;r.applyPacking=function(t,e,r,s,a,l){void 0===a&&(a=1),void 0===l&&(l=!0);var u=e,c=r,h=(a=typeof a<"u"?a:1,s=typeof s<"u"?s:0,0),d=0,p=0,f=0,g=[];function m(t,e){g=[],h=0,d=0,f=0;for(var r=0;r=t.height&&g[i].x+g[i].width+t.width+n-e<=o){r=g[i];break}g.push(t),void 0!==r?(t.x=r.x+r.width+n,t.y=r.bottom,t.space_left=t.height,t.bottom=t.y,r.space_left-=t.height+n,r.bottom+=t.height+n):(t.y=f,f+=t.height+n,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-d>-1e-4&&(d=t.y+t.height-0),t.x+t.width-h>-1e-4&&(h=t.x+t.width-0)}0!=t.length&&(t.forEach((function(t){!function(t){var e=Number.MAX_VALUE,r=Number.MAX_VALUE,n=0,i=0;t.array.forEach((function(t){var o=typeof t.width<"u"?t.width:s,a=typeof t.height<"u"?t.height:s;o/=2,a/=2,n=Math.max(t.x+o,n),e=Math.min(t.x-o,e),i=Math.max(t.y+a,i),r=Math.min(t.y-a,r)})),t.width=n-e,t.height=i-r}(t)})),function(t,e){var r=Number.POSITIVE_INFINITY,s=0;t.sort((function(t,e){return e.height-t.height}));for(var a=y=p=t.reduce((function(t,e){return t.widthp||g>o;){if(1!=d){var y=l-(l-a)/i;c=m(t,y)}if(0!=d){var _=a+(l-a)/i;h=m(t,_)}if(f=Math.abs(y-_),g=Math.abs(c-h),ch?(a=y,y=_,c=h,d=1):(l=_,_=y,h=c,d=0),u++>100)break}m(t,s)}(t),l&&t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var r=e.x-t.width/2,n=e.y-t.height/2,i=t.x-r+u/2-h/2,o=t.y-n+c/2-d/2;t.array.forEach((function(t){t.x+=i,t.y+=o}))})))},r.separateGraphs=function(t,e){for(var r={},n={},i=[],o=0,s=0;s"u"||typeof t.py>"u")&&(t.px=t.x,t.py=t.y);var i=[t.px,t.py];this._descent.locks.add(e,i)}var o=this._descent.rungeKutta();return 0===o?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=o),this._lastStress=o,this.updateNodePositions(),this.trigger({type:n.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,e=this._descent.x[0],r=this._descent.x[1],n=this._nodes.length;n--;)(t=this._nodes[n]).x=e[n],t.y=r[n]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var r=0;r"u"&&(t.padding=1),typeof t.leaves<"u"&&t.leaves.forEach((function(r,n){"number"==typeof r&&((t.leaves[n]=e._nodes[r]).parent=t)})),typeof t.groups<"u"&&t.groups.forEach((function(r,n){"number"==typeof r&&((t.groups[n]=e._groups[r]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return typeof t.parent>"u"})),this._rootGroup.groups=this._groups.filter((function(t){return typeof t.parent>"u"})),this):this._groups},t.prototype.powerGraphGroups=function(t){var e=o.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(e.groups),t(e),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,e){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof e?function(){return e}:e},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:n.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var r=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return s.symmetricDiffLinkLengths(r._links,r.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var r=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return s.jaccardLinkLengths(r._links,r.linkAccessor,e)},this},t.prototype.start=function(e,r,n,i,o,c){var h=this;void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),void 0===c&&(c=!0);var d=this.nodes().length,p=d+2*this._groups.length;this._links.length;var f,g=this._canvasSize[0],m=this._canvasSize[1],y=new Array(p),_=new Array(p),v=null,x=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,typeof t.x>"u"&&(t.x=g/2,t.y=m/2),y[e]=t.x,_[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new u.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),v=a.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var r=t.getSourceIndex(e),n=t.getTargetIndex(e);v[r][n]=v[n][r]=e.weight||1})));var b=a.Descent.createSquareMatrix(p,(function(t,e){return f[t][e]}));if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var T=d;this._groups.forEach((function(t){(function(t,e,r,n){v[t][e]=v[e][t]=r,b[t][e]=b[e][t]=.1})(T,T+1,h._groupCompactness),typeof t.bounds>"u"?(y[T]=g/2,_[T++]=m/2,y[T]=g/2,_[T++]=m/2):(y[T]=t.bounds.x,_[T++]=t.bounds.y,y[T]=t.bounds.X,_[T++]=t.bounds.Y)}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(s.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new a.Descent([y,_],b),this._descent.locks.clear(),T=0;T0&&(this._descent.project=new l.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(r),this.separateOverlappingComponents(g,m,c),this.avoidOverlaps(x),x&&(this._nodes.forEach((function(t,e){t.x=y[e],t.y=_[e]})),this._descent.project=new l.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){y[e]=t.x,_[e]=t.y}))),this._descent.G=v,this._descent.run(n),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var N=a.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?v[t][e]:0}));this._descent.G=N,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,c),o?this.resume():this},t.prototype.initialLayout=function(e,r,n){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),s=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){s.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){typeof t.leaves<"u"&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),typeof t.groups<"u"&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(s).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){r[t.index]=s[t.index].x,n[t.index]=s[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,r){var n=this;if(void 0===r&&(r=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var s=h.separateGraphs(this._nodes,this._links);h.applyPacking(s,t,e,this._defaultNodeSize,1,r),this._nodes.forEach((function(t,e){n._descent.x[0][e]=t.x,n._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new c.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,r){void 0===e&&(e=5);var n=[],i=new c.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},s={x:t.target.x,y:t.target.y},a=i.addPoint(o,t.source.index),h=i.addPoint(s,t.target.index);i.addEdgeIfVisible(o,s,t.source.index,t.target.index),typeof r<"u"&&r(i);var d=new u.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(a.id,h.id);if(1===d.length||d.length===i.V.length){var p=l.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);n=[p.sourceIntersection,p.arrowStart]}else{for(var f=d.length-2,g=i.V[d[f]].p,m=i.V[d[0]].p,y=(n=[t.source.innerBounds.rayIntersection(g.x,g.y)],f);y>=0;--y)n.push(i.V[d[y]].p);n.push(l.makeEdgeTo(m,t.target.innerBounds,e))}return n},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){d(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,r){typeof e.leaves<"u"&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-r.x,e._dragGroupOffsetY=e.y-r.y})),typeof e.groups<"u"&&e.groups.forEach((function(e){return t.storeOffset(e,r)}))},t.dragOrigin=function(t){return d(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,r){d(e)?(typeof e.leaves<"u"&&e.leaves.forEach((function(t){e.bounds.setXCentre(r.x),e.bounds.setYCentre(r.y),t.px=t._dragGroupOffsetX+r.x,t.py=t._dragGroupOffsetY+r.y})),typeof e.groups<"u"&&e.groups.forEach((function(e){return t.drag(e,r)}))):(e.px=r.x,e.py=r.y)},t.dragEnd=function(e){d(e)?(typeof e.leaves<"u"&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),typeof e.groups<"u"&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}();r.Layout=p},{"./descent":7,"./geom":8,"./handledisconnected":10,"./linklengths":13,"./powergraph":14,"./rectangle":17,"./shortestpaths":18}],12:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./shortestpaths"),i=t("./descent"),o=t("./rectangle"),s=t("./linklengths"),a=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,r){var n=r[e.target]-r[e.source];return t+n*n}),0))},t}();r.Link3D=a;r.Node3D=function(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),this.x=t,this.y=e,this.z=r};var l=function(){function t(e,r,n){var i=this;void 0===n&&(n=1),this.nodes=e,this.links=r,this.idealLinkLength=n,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o"u"&&(e[s]=Math.random())}i.result[0][r]=e.x,i.result[1][r]=e.y,i.result[2][r]=e.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var e=this;void 0===t&&(t=100);var r=this.nodes.length,a=new u;this.useJaccardLinkLengths&&s.jaccardLinkLengths(this.links,a,1.5),this.links.forEach((function(t){return t.length*=e.idealLinkLength}));var l=new n.Calculator(r,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),c=i.Descent.createSquareMatrix(r,(function(t,e){return l[t][e]})),h=i.Descent.createSquareMatrix(r,(function(){return 2}));this.links.forEach((function(t){var e=t.source,r=t.target;return h[e][r]=h[r][e]=1})),this.descent=new i.Descent(this.result,c),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var d=0;d"u"&&(r[t]={}),r[t][e]={}};return t.forEach((function(t){var r=e.getSourceIndex(t),i=e.getTargetIndex(t);n(r,i),n(i,r)})),r}(t,n);t.forEach((function(t){var o=i[n.getSourceIndex(t)],s=i[n.getTargetIndex(t)];n.setLength(t,1+e*r(o,s))}))}function s(t,e,r){var n=[],i=0,o=[],s=[];function a(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,r=t.out;e"u"?(a(n),t.lowlink=Math.min(t.lowlink,n.lowlink)):n.onStack&&(t.lowlink=Math.min(t.lowlink,n.index))}if(t.lowlink===t.index){for(var l=[];o.length&&((n=o.pop()).onStack=!1,l.push(n),n!==t););s.push(l.map((function(t){return t.id})))}}for(var l=0;l"u"&&a(m)}return s}Object.defineProperty(r,"__esModule",{value:!0}),r.symmetricDiffLinkLengths=function(t,e,r){void 0===r&&(r=1),o(t,r,(function(t,e){return Math.sqrt(n(t,e)-i(t,e))}),e)},r.jaccardLinkLengths=function(t,e,r){void 0===r&&(r=1),o(t,r,(function(t,e){return Math.min(Object.keys(t).length,Object.keys(e).length)<1.1?0:i(t,e)/n(t,e)}),e)},r.generateDirectedEdgeConstraints=function(t,e,r,n){var i=s(t,e,n),o={};i.forEach((function(t,e){return t.forEach((function(t){return o[t]=e}))}));var a=[];return e.forEach((function(t){var e=n.getSourceIndex(t),i=n.getTargetIndex(t);o[e]!==o[i]&&a.push({axis:r,left:e,right:i,gap:n.getMinSeparation(t)})})),a},r.stronglyConnectedComponents=s},{}],14:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(t,e,r){this.source=t,this.target=e,this.type=r};r.PowerEdge=n;var i=function(){function t(t,e,r,n){var i=this;if(this.linkAccessor=r,this.modules=new Array(t),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new a);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var r=t.incoming.intersection(e.incoming),n=t.outgoing.intersection(e.outgoing);return this.R-r.count()-n.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return o(this.roots[0],{},r),this.allEdges().forEach((function(i){var o=e.modules[i.source],s=e.modules[i.target];t.push(new n(typeof o.gid>"u"?i.source:r[o.gid],typeof s.gid>"u"?i.target:r[s.gid],i.type))})),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,r){e.forAll((function(e){e.getEdges(r),t.getEdges(e.children,r)}))},t}();function o(t,e,r){t.forAll((function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var n=e;if(t.gid=r.length,!t.isIsland()||t.isPredefined()){if(n={id:t.gid},t.isPredefined())for(var i in t.definition)n[i]=t.definition[i];e.groups||(e.groups=[]),e.groups.push(t.gid),r.push(n)}o(t.children,n,r)}}))}r.Configuration=i;var s=function(){function t(t,e,r,n,i){void 0===e&&(e=new l),void 0===r&&(r=new l),void 0===n&&(n=new a),this.id=t,this.outgoing=e,this.incoming=r,this.children=n,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(r,i){r.forAll((function(r){t.push(new n(e.id,r.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return typeof this.definition<"u"},t}();r.Module=s;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var r=new t;return r.table=function(t,e){var r={};for(var n in t)n in e&&(r[n]=t[n]);return r}(this.table,e.table),r},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();r.ModuleSet=a;var l=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(r){!e&&r.id==t&&(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var r=this.sets[t];r.remove(e),0===r.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,r){return e.forAll(t)}))},t.prototype.intersection=function(e){var r=new t;return this.forAll((function(t,n){if(n in e.sets){var i=t.intersection(e.sets[n]),o=i.count();o>0&&(r.sets[n]=i,r.n+=o)}})),r},t}();r.LinkSets=l,r.getGroups=function(t,e,r,n){for(var o=t.length,s=new i(o,e,r,n);s.greedyMerge(););var a=[],l=s.getGroupHierarchy(a);return a.forEach((function(e){var r=function(r){var n=e[r];"number"==typeof n&&(e[r]=t[n])};r("source"),r("target")})),{groups:l,powerEdges:a}}},{}],15:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",r=!1,n=0;n0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var r=this._comparator(t,e.data);if(0===r)return e.data;e=e.get_child(r>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,r){return e(r,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new s(this)},t.prototype.each=function(t){for(var e,r=this.iterator();null!==(e=r.next());)t(e)},t.prototype.reach=function(t){for(var e,r=this.iterator();null!==(e=r.prev());)t(e)},t.prototype._bound=function(t,e){for(var r=this._root,n=this.iterator();null!==r;){var i=this._comparator(t,r.data);if(0===i)return n._cursor=r,n;n._ancestors.push(r),r=r.get_child(i>0)}for(var o=n._ancestors.length-1;o>=0;--o)if(e(t,(r=n._ancestors[o]).data)>0)return n._cursor=r,n._ancestors.length=o,n;return n._ancestors.length=0,n},t}();r.TreeBase=o;var s=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var e;do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var e;do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();r.Iterator=s;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}(),l=function(t){function e(e){var r=t.call(this)||this;return r._root=null,r._comparator=e,r.size=0,r}return i(e,t),e.prototype.insert=function(t){var r=!1;if(null===this._root)this._root=new a(t),r=!0,this.size++;else{var n=new a(void 0),i=!1,o=!1,s=null,l=n,u=null,c=this._root;for(l.right=this._root;;){if(null===c?(c=new a(t),u.set_child(i,c),r=!0,this.size++):e.is_red(c.left)&&e.is_red(c.right)&&(c.red=!0,c.left.red=!1,c.right.red=!1),e.is_red(c)&&e.is_red(u)){var h=l.right===s;c===u.get_child(o)?l.set_child(h,e.single_rotate(s,!o)):l.set_child(h,e.double_rotate(s,!o))}var d=this._comparator(c.data,t);if(0===d)break;o=i,i=d<0,null!==s&&(l=s),s=u,u=c,c=c.get_child(i)}this._root=n.right}return this._root.red=!1,r},e.prototype.remove=function(t){if(null===this._root)return!1;var r=new a(void 0),n=r;n.right=this._root;for(var i=null,o=null,s=null,l=!0;null!==n.get_child(l);){var u=l;o=i,i=n,n=n.get_child(l);var c=this._comparator(t,n.data);if(l=c>0,0===c&&(s=n),!e.is_red(n)&&!e.is_red(n.get_child(l)))if(e.is_red(n.get_child(!l))){var h=e.single_rotate(n,l);i.set_child(u,h),i=h}else if(!e.is_red(n.get_child(!l))){var d=i.get_child(!u);if(null!==d)if(e.is_red(d.get_child(!u))||e.is_red(d.get_child(u))){var p=o.right===i;e.is_red(d.get_child(u))?o.set_child(p,e.double_rotate(i,u)):e.is_red(d.get_child(!u))&&o.set_child(p,e.single_rotate(i,u));var f=o.get_child(p);f.red=!0,n.red=!0,f.left.red=!1,f.right.red=!1}else i.red=!1,d.red=!0,n.red=!0}}return null!==s&&(s.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this.size--),this._root=r.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var r=t.get_child(!e);return t.set_child(!e,r.get_child(e)),r.set_child(e,t),t.red=!0,r.red=!1,r},e.double_rotate=function(t,r){return t.set_child(!r,e.single_rotate(t.get_child(!r),!r)),e.single_rotate(t,r)},e}(o);r.RBTree=l},{}],17:[function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=t("./vpsc"),s=t("./rbtree");function a(t){return t.bounds=typeof t.leaves<"u"?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),l.empty()):l.empty(),typeof t.groups<"u"&&(t.bounds=t.groups.reduce((function(t,e){return a(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}r.computeGroupBounds=a;var l=function(){function t(t,e,r,n){this.x=t,this.X=e,this.y=r,this.Y=n}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),r=t.cx();return e<=r&&t.x0?r[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,e,r,n,i,o,s,a){var l=r-t,u=s-i,c=n-e,h=a-o,d=h*l-u*c;if(0==d)return null;var p=t-i,f=e-o,g=(u*f-h*p)/d,m=(l*f-c*p)/d;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*l,y:e+g*c}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();r.Rectangle=l,r.makeEdgeBetween=function(t,e,r){var n=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-n.x,s=i.y-n.y,a=Math.sqrt(o*o+s*s),l=a-r;return{sourceIntersection:n,targetIntersection:i,arrowStart:{x:n.x+l*o/a,y:n.y+l*s/a}}},r.makeEdgeTo=function(t,e,r){var n=e.rayIntersection(t.x,t.y);n||(n={x:e.cx(),y:e.cy()});var i=n.x-t.x,o=n.y-t.y,s=Math.sqrt(i*i+o*o);return{x:n.x-r*i/s,y:n.y-r*o/s}};var u=function(t,e,r){this.v=t,this.r=e,this.pos=r,this.prev=d(),this.next=d()},c=function(t,e,r){this.isOpen=t,this.v=e,this.pos=r};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[r].insert(i),i[n].insert(t))};r("next","prev"),r("prev","next")}};function g(t,e,r,n){void 0===n&&(n=!1);var i=t.padding,o=typeof t.groups<"u"?t.groups.length:0,s=typeof t.leaves<"u"?t.leaves.length:0,a=o?t.groups.reduce((function(t,n){return t.concat(g(n,e,r,!0))}),[]):[],l=(n?2:0)+s+o,u=new Array(l),c=new Array(l),h=0,d=function(t,e){c[h]=t,u[h++]=e};if(n){var p=t.bounds,f=e.getCentre(p),y=e.getSize(p)/2,_=e.getOpen(p),v=e.getClose(p),x=f-y+i/2,b=f+y-i/2;t.minVar.desiredPosition=x,d(e.makeRect(_,v,x,i),t.minVar),t.maxVar.desiredPosition=b,d(e.makeRect(_,v,b,i),t.maxVar)}s&&t.leaves.forEach((function(t){return d(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var r=t.bounds;d(e.makeRect(e.getOpen(r),e.getClose(r),e.getCentre(r),e.getSize(r)),t.minVar)}));var T=m(c,u,e,r);return o&&(u.forEach((function(t){t.cOut=[],t.cIn=[]})),T.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var r=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=r})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=r}))}))),a.concat(T)}function m(t,e,r,n){var i,s=t.length,a=2*s;console.assert(e.length>=s);var l=new Array(a);for(i=0;it[r]&&(t[r]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,r=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var n="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){var i=e.nodes[t.node].variable;n.push(new o.Constraint(r,i,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,r=function(t){return typeof t.type>"u"||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&r(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&r(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,r,n){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,r[o]=n(i)):i.variable.weight=1;var s=(i.width||0)/2,a=(i.height||0)/2,u=t[o],c=e[o];i.bounds=new l(u-s,u+s,c-a,c+a)}))},t.prototype.xProject=function(t,e,r){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(t,e,t,r,(function(t){return t.px}),this.xConstraints,v,(function(t){return t.bounds.setXCentre(r[t.variable.index]=t.variable.position())}),(function(t){var e=r[t.minVar.index]=t.minVar.position(),n=r[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=n+i}))},t.prototype.yProject=function(t,e,r){!this.rootGroup&&!this.yConstraints||this.project(t,e,e,r,(function(t){return t.py}),this.yConstraints,x,(function(t){return t.bounds.setYCentre(r[t.variable.index]=t.variable.position())}),(function(t){var e=r[t.minVar.index]=t.minVar.position(),n=r[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=n+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,r,n){return t.xProject(e,r,n)},function(e,r,n){return t.yProject(e,r,n)}]},t.prototype.project=function(t,e,r,n,i,o,s,l,u){this.setupVariablesAndBounds(t,e,n,i),this.rootGroup&&this.avoidOverlaps&&(a(this.rootGroup),o=o.concat(s(this.rootGroup))),this.solve(this.variables,o,r,n),this.nodes.forEach(l),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(u),a(this.rootGroup))},t.prototype.solve=function(t,e,r,n){var i=new o.Solver(t,e);i.setStartingPositions(r),i.setDesiredPositions(n),i.solve()},t}();r.Projection=T},{"./rbtree":16,"./vpsc":19}],18:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./pqueue"),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},s=function(t,e,r){this.node=t,this.prev=e,this.d=r},a=function(){function t(t,e,r,n,s){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new o(a);for(a=this.es.length;a--;){var l=this.es[a],u=r(l),c=n(l),h=s(l);this.neighbours[u].neighbours.push(new i(c,h)),this.neighbours[c].neighbours.push(new i(u,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;e=u&&console.warn("[Calculator.PathFromNodeToNodeWithPrevCost] Hit max iterations limit, possible infinite loop prevented");for(var y=[],_=this.n+100,v=0;a.prev&&v<_;)v++,a=a.prev,y.push(a.node.id);return y},t.prototype.dijkstraNeighbours=function(t,e){void 0===e&&(e=-1);for(var r=new n.PriorityQueue((function(t,e){return t.d<=e.d})),i=this.neighbours.length,o=new Array(i);i--;){var s=this.neighbours[i];s.d=i===t?0:Number.POSITIVE_INFINITY,s.q=r.push(s)}for(;!r.empty();){var a=r.pop();if(o[a.id]=a.d,a.id===e){for(var l=[],u=a;typeof u.prev<"u";)l.push(u.prev.id),u=u.prev;return l}for(i=a.neighbours.length;i--;){var c=a.neighbours[i],h=(u=this.neighbours[c.id],a.d+c.distance);a.d!==Number.MAX_VALUE&&u.d>h&&(u.d=h,u.prev=a,r.reduceKey(u.q,u,(function(t,e){return t.q=e})))}}return o},t}();r.Calculator=a},{"./pqueue":15}],19:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,r=t.offset/t.scale,n=t.weight;this.AB+=n*e*r,this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();r.PositionStats=n;var i=function(){function t(t,e,r,n){void 0===n&&(n=!1),this.left=t,this.right=e,this.gap=r,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=r,this.equality=n}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();r.Constraint=i;var o=function(){function t(t,e,r){void 0===e&&(e=1),void 0===r&&(r=1),this.desiredPosition=t,this.weight=e,this.scale=r,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var r=function(r,n){return r.active&&t!==n&&e(r,n)};this.cOut.forEach((function(t){return r(t,t.right)})),this.cIn.forEach((function(t){return r(t,t.left)}))},t}();r.Variable=o;var s=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();r.Solver=l,r.removeOverlapInOneDimension=function(t,e,r){for(var n=t.map((function(t){return new o(t.desiredCenter)})),s=[],a=t.length,u=0;ul_,getAtomSkolems:()=>a_,getRelationSTIndexes:()=>s_});var Xm={};function Qm(t,e){return{_:"tuple",types:t,atoms:Array.from(e.querySelectorAll("atom")).map(((e,r)=>Uy(t[r],e).id))}}function Jm(t,e){return Array.from(e).map((e=>Qm(t,e)))}function Zm(t){return t.tuples}function ty(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label found for field element");let n=function(t,e){let r=e.querySelectorAll("type");return Array.from(r).map((e=>{let r=e.getAttribute("ID");if(!r)throw new Error("Type element must have an ID attribute");let n=t[r];if(!n)throw new Error(`Type element with ID ${r} not found`);return n}))}(t,e);if(0===n.length)throw new Error("No types found for field element");let i=e.getAttribute("parentID");return{_:"relation",id:`${(i?t[i]:void 0)??n[0]}<:${r}`,name:r,types:n,tuples:Jm(n,e.querySelectorAll("tuple"))}}function ey(t,e){return Array.from(e).map((e=>ty(t,e)))}function ry(t){return void 0!==t}function ny(t,e){let r={};for(let n of t)r[e(n)]=n;return r}function iy(t){let e=(new globalThis.DOMParser).parseFromString(t,"application/xml"),r=Array.from(e.querySelectorAll("instance"));if(!r.length)throw new Error(`No Alloy instance in XML: ${t}`);let n=e.querySelector("visualizer"),i=null===n?void 0:sy(n,"script");return{instances:r.map((t=>Ky(t))),bitwidth:oy(r[0],"bitwidth"),command:sy(r[0],"command"),loopBack:oy(r[0],"backloop")??oy(r[0],"loop"),maxSeq:oy(r[0],"maxseq"),maxTrace:oy(r[0],"maxtrace"),minTrace:oy(r[0],"mintrace"),traceLength:oy(r[0],"tracelength"),visualizerConfig:{script:ay(i)}}}function oy(t,e){let r=t.getAttribute(e);return r?+r:void 0}function sy(t,e){let r=t.getAttribute(e);return r?`${r}`:void 0}function ay(t){return t?.replaceAll(""",'"').replaceAll('\\"','"').replaceAll(">",">").replaceAll("<","<")}function ly(t){return t.querySelectorAll("type").length>0}function uy(t,e){let r={},n=e.querySelectorAll("sig");for(let t of n)if(!ly(t)){let e=t.getAttribute("ID"),n=t.getAttribute("parentID"),i=t.getAttribute("label");if(!e)throw new Error("No ID found for sig element");if(!i)throw new Error("No label found for sig element");n&&(r[e]=n)}let i=(e,n)=>r[e]?i(r[e],[...n,t[e]]):n,o={};for(let e in t)o[t[e]]=i(e,[]);return o}function cy(t){let e={},r=t.querySelectorAll("sig");for(let t of r){let r=t.getAttribute("ID"),n=t.getAttribute("label");if(!r)throw new Error("No ID found for sig element");if(!n)throw new Error("No label found for sig element");e[r]=n}return e}function hy(t,e){let r=e.find((t=>"Int"===t.id));if(!r)throw new Error("Could not find Int type");r.atoms=By(t)}function dy(t){return t.types[t.types.length-1]}function py(t){return t.atoms}function fy(t){return void 0!==t.meta&&!0===t.meta.abstract}function gy(t){return void 0!==t.meta&&!0===t.meta.builtin}function my(t){return void 0!==t.meta&&!0===t.meta.enum}function yy(t){return void 0!==t.meta&&!0===t.meta.meta}function _y(t){return void 0!==t.meta&&!0===t.meta.one}function vy(t){return void 0!==t.meta&&!0===t.meta.private}function xy(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label attribute in sig element");let n=t[r];if(!n)throw console.log(t),new Error(`No type hierarchy for ${r}`);let i=function(t){let e={};return"yes"===t.getAttribute("abstract")&&(e.abstract=!0),"yes"===t.getAttribute("builtin")&&(e.builtin=!0),"yes"===t.getAttribute("enum")&&(e.enum=!0),"yes"===t.getAttribute("meta")&&(e.meta=!0),"yes"===t.getAttribute("one")&&(e.one=!0),"yes"===t.getAttribute("private")&&(e.private=!0),0===Object.keys(e).length?void 0:e}(e),o={_:"type",id:r,types:n,atoms:Fy(r,e.querySelectorAll("atom")),meta:void 0};return ry(i)&&(o.meta=i),o}function by(t,e){return Array.from(e).filter((t=>!ly(t))).map((e=>xy(t,e)))}function Ty(t,e,r){return"string"==typeof e&&(e=My(t,e)),"string"!=typeof r&&(r=r.id),e.types.includes(r)}function Ey(t,e){let r=Oy(t).find((t=>t.id===e));if(!r)throw new Error(`Could not find atom with id ${e}`);return r}function Oy(t){return jy(t).map(py).reduce(((t,e)=>t.concat(e)),[])}function Sy(t,e){let r=Ey(t,e),n={...t.types},i={...t.relations},o={...t.skolems},s=n[r.type];if(s)return s.atoms=s.atoms.filter((t=>t.id!==e)),0===s.atoms.length&&delete n[s.id],Object.values(i).forEach((t=>{t.tuples=t.tuples.filter((t=>!t.atoms.includes(e)))})),Object.values(o).forEach((t=>{t.tuples=t.tuples.filter((t=>!t.atoms.includes(e)))})),{types:n,relations:i,skolems:o};throw new Error(`Could not find type for atom ${e}`)}function Ny(t,e){let r={...t.types},n=r[e.type];if(n)n.atoms.push(e);else{let t={_:"type",id:e.type,types:[e.type,"univ"],atoms:[e]};r[t.id]=t}return{...t,types:r}}function Ay(t,e,r){let n=Cy(t,e),i={...t.relations},o={...t.skolems};return n.tuples=n.tuples.filter((t=>t!==r)),0===n.tuples.length?delete i[n.id]:i[n.id]=n,Object.values(o).forEach((t=>{t.tuples=t.tuples.filter((t=>t!==r)),0===t.tuples.length?delete o[t.id]:o[t.id]=t})),{...t,relations:i,skolems:o}}function wy(t,e,r){let n=t.relations[e],i={...t.relations},o={...t.skolems};return n?(n.tuples.push(r),i[n.id]=n):(n={id:e,name:e,tuples:[r],types:r.types,_:"relation"},i[e]=n),{...t,relations:i,skolems:o}}function Ry(t,e){return Oy(t).filter((r=>Hy(t,r,e)))}function Cy(t,e){let r=t.relations[e];if(!r)throw new Error(`Could not find relation ${e}`);return r}function Ly(t){return Object.values(t.relations)}function Iy(t){return Object.values(t.skolems)}function ky(t){let e=Iy(t),r=Ly(t);return e.concat(r)}function Dy(t,e){let r=[];for(let n of Object.values(t.skolems))for(let t of n.tuples)if(t.atoms.includes(e)){r.push(n.name);break}return r}function Py(t){return Ly(t).map(Zm).reduce(((t,e)=>t.concat(e)),[])}function My(t,e){let r=t.types[e];if(!r)throw new Error(`Could not find type with id ${e}`);return r}function jy(t){return Object.values(t.types)}function Ky(t){let e=t.getAttribute("bitwidth");if(!e)throw new Error("No bitwidth found in instance");let r=cy(t),n=by(uy(r,t),t.querySelectorAll("sig")),i=ey(r,t.querySelectorAll("field")),o=ey(r,t.querySelectorAll("skolem"));return hy(parseInt(e),n),{types:ny(n,(t=>t.id)),relations:ny(i,(t=>t.id)),skolems:ny(o,(t=>t.id))}}function Uy(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label attribute in atom element");return{_:"atom",id:r,type:t}}function Fy(t,e){return Array.from(e).map((e=>Uy(t,e)))}function $y(t,e){return"string"==typeof e&&(e=Ey(t,e)),qy(t,e).types.map((e=>My(t,e))).some(gy)}function Hy(t,e,r){return"string"==typeof e&&(e=Ey(t,e)),"string"!=typeof r&&(r=r.id),qy(t,e).types.includes(r)}function By(t){let e=[],r=Math.pow(2,t);for(let t=-r/2;tNy,addInstanceRelationTuple:()=>wy,applyProjections:()=>Xy,atomFromElement:()=>Uy,atomIsBuiltin:()=>$y,atomIsOfType:()=>Hy,atomsFromElements:()=>Fy,buildIntAtoms:()=>By,findAndPopulateIntType:()=>hy,getAtomType:()=>qy,getInstanceAtom:()=>Ey,getInstanceAtoms:()=>Oy,getInstanceAtomsOfType:()=>Ry,getInstanceRelation:()=>Cy,getInstanceRelations:()=>Ly,getInstanceRelationsAndSkolems:()=>ky,getInstanceSkolems:()=>Iy,getInstanceTuples:()=>Py,getInstanceType:()=>My,getInstanceTypes:()=>jy,getProjectableTypes:()=>Qy,getRelationTuples:()=>Zm,getSkolemNamesForAtom:()=>Dy,getTopLevelTypeId:()=>dy,getTraceLength:()=>Yy,getTraceLoopback:()=>Wy,getTypeAtoms:()=>py,getTypeId:()=>Gy,instanceFromElement:()=>Ky,isAbstract:()=>fy,isAlloyDatum:()=>zy,isAlloyDatumTrace:()=>Vy,isBuiltin:()=>gy,isDefined:()=>ry,isEnum:()=>my,isMeta:()=>yy,isOne:()=>_y,isPrivate:()=>vy,keyBy:()=>ny,parseAlloyXML:()=>iy,relationFromElement:()=>ty,relationsFromElements:()=>ey,removeInstanceAtom:()=>Sy,removeInstanceRelationTuple:()=>Ay,sigElementIsSet:()=>ly,tupleFromElement:()=>Qm,tuplesFromElements:()=>Jm,typeFromElement:()=>xy,typeHierarchiesFromElement:()=>uy,typeIsOfType:()=>Ty,typeNamesFromElement:()=>cy,typesFromElements:()=>by});var zy=t=>Array.isArray(t.instances),Vy=t=>void 0!==t.loopBack,Yy=t=>t.traceLength,Wy=t=>t.loopBack;function Xy(t,e){let r={};return e.forEach((e=>{let n=dy(qy(t,e));if(r[n])throw new Error(`Cannot project ${e} and ${r[n]}. Both are of type ${n}`);r[n]=e})),{types:Jy(t,r),relations:Zy(t,r),skolems:t.skolems}}function Qy(t){return[...new Set(jy(t).map(dy))].filter((t=>void 0!==t))}function Jy(t,e){let r={},n=Object.keys(e);for(let e in t.types){let i=t.types[e],o=n.some((e=>Ty(t,i,e)));r[e]={_:"type",id:i.id,types:i.types,atoms:o?[]:i.atoms,meta:i.meta}}return r}function Zy(t,e){let r={},n=Object.keys(e),i=Object.values(e);for(let e in t.relations){let o=t.relations[e],s=o.types.some((e=>n.some((r=>Ty(t,e,r))))),a=s?t_(t,o.types,n):[];r[e]={_:"relation",id:o.id,name:o.name,types:s?r_(o.types,a):o.types,tuples:s?e_(o.tuples,a,i):o.tuples},s||(r[e]=o)}return r}function t_(t,e,r){let n=[];return e.forEach(((e,i)=>{r.some((r=>Ty(t,e,r)))&&n.push(i)})),n}function e_(t,e,r){return t.filter((t=>t.atoms.some((t=>r.includes(t))))).map((t=>({_:"tuple",types:r_(t.types,e),atoms:r_(t.atoms,e)}))).filter((t=>t.atoms.length>1))}function r_(t,e){let r=[];for(let n=0;n")}`}var o_=g(gn());function s_(t,e){return e<2?[0,0]:[0,e-1]}function a_(t,e){return Dy(t,e)}function l_(t,e,r){let n=new o_.Graph({directed:!0,multigraph:!0}),{nodeIds:i,edgeIds:o}=function(t,e,r){let n=new Set,i=new Set;return Ly(t).forEach((e=>{Zm(e).forEach((r=>{let o=r.atoms.map((e=>Ey(t,e))),[s,a]=function(t,e){return[e[0],e[e.length-1]]}(0,o);s&&a&&(n.add(n_(s)),n.add(n_(a)),i.add(i_(e,r)))}))})),Oy(t).forEach((i=>{let o=n_(i);n.has(o)||e||(!$y(t,i)||!r)&&n.add(o)})),{nodeIds:n,edgeIds:i}}(t,e,r);return Oy(t).forEach((t=>{let e=n_(t);i.has(e)&&n.setNode(e,e)})),Ly(t).forEach((e=>{Zm(e).forEach((r=>{let i=i_(e,r),s=r.atoms,[a,l]=s_(e.id,s.length),u=a?s[a]:s[0],c=l?s[l]:s[s.length-1];if(u&&c&&o.has(i)){let r=s.slice(1,-1).join(","),o=r.length>0?`[${r}]`:"",a=e.name+o,l=n_(Ey(t,u)),h=n_(Ey(t,c));n.setEdge(l,h,a,i)}}))})),n}var u_={};f(u_,{ForgeEvaluator:()=>__,ForgeEvaluatorResult:()=>y_,SGQEvaluatorResult:()=>n,SGraphQueryEvaluator:()=>t.SGraphQueryEvaluator,SQLEvaluator:()=>S_,SQLEvaluatorResult:()=>E_,WrappedEvalResult:()=>x_,WrappedForgeEvaluator:()=>v_});var c_=g(En()),h_=g(On());function d_(t){let e=t.meta&&t.meta?.builtin?{builtin:t.meta.builtin}:void 0;return{_:t._,id:t.id,types:t.types,atoms:t.atoms,meta:e}}function p_(t){return{_:t._,id:t.id,name:t.name,types:t.types,tuples:t.tuples.map((t=>function(t){return{_:t._,types:t.types,atoms:t.atoms}}(t)))}}function f_(t){return{instances:t.instances.map((t=>function(t){let e=t.relations,r=t.skolems,n=t.types,i={};for(let t in e)i[t]=p_(e[t]);let o={"seq/Int":d_(n["seq/Int"]),Int:d_(n.Int),univ:d_(n.univ)};for(let t in n)"seq/Int"!==t&&"Int"!==t&&"univ"!==t&&(o[t]=d_(n[t]));return{types:o,relations:i,skolems:r}}(t))),bitwidth:t.bitwidth||0}}function g_(t){return void 0!==t.error}function m_(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}var y_=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=g_(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:(this.isSingletonResult,this.result)}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>m_(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>m_(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>m_(t)))))}},__=class t{constructor(){this.sourceCode="",this.initialized=!1,this.evaluatorCache=new Map}initialize(e){this.context=e;try{let r="string"==typeof e.sourceData?e.sourceData:JSON.stringify(e.sourceData);iy(r);let n=function(t){return{parsed:f_(iy(t)),data:t}}(r);this.sourceCode=e.sourceCode||t.getSourceCodeFromDatum(r),this.evaluator=new h_.ForgeExprEvaluatorUtil(n,this.sourceCode),this.initialized=!0,this.evaluatorCache.clear()}catch(t){throw this.initialized=!1,new Error(`Failed to initialize ForgeEvaluator: ${t instanceof Error?t.message:String(t)}`)}}isReady(){return this.initialized&&void 0!==this.evaluator}evaluate(t,e){if(!this.isReady())throw new Error("ForgeEvaluator is not properly initialized");this.sourceCode||(console.log("No source code available for evaluation, proceeding without it"),this.sourceCode="");try{let r=e?.instanceIndex??0,n=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(n))return this.evaluatorCache.get(n);console.log("Evaluator",this.evaluator);let i=this.evaluator.evaluateExpression(t,r);if(g_(i))throw new Error(i.error.message);console.log(`Evaluated expression: ${t} at ${e} with result:`,i);let o=new y_(i,t);return this.evaluatorCache.set(n,o),o}catch(e){let r=e instanceof Error?e.message:String(e),n={error:new Error(`Error evaluating Forge expression: ${t}. ${r}`)};return new y_(n,t)}}validateExpression(t){if(!this.isReady())return!1;try{return!(!t||0===t.trim().length||t.includes("INVALID_SYNTAX"))}catch{return!1}}dispose(){this.evaluatorCache.clear(),this.context=void 0,this.evaluator=void 0,this.sourceCode="",this.initialized=!1}static getSourceCodeFromDatum(t){try{let e=(new c_.DOMParser).parseFromString(t,"application/xml").getElementsByTagName("source")[0];if(!e)return console.warn("No element found in XML"),"";let r=e.getAttribute("content")||"";return r||console.warn("No content attribute found in element"),r}catch(t){return console.error("Error extracting source code from datum:",t),""}}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,hasAlloyDatum:!1}}},v_=__,x_=y_;An();var b_=g(wn());function T_(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}var E_=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=this.checkIsError(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}checkIsError(t){return"object"==typeof t&&null!==t&&"error"in t&&"object"==typeof t.error}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.result}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead: ${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>T_(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead: ${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>T_(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2+. Instead: ${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>T_(t)))))}},O_=class t{constructor(){this.ready=!1,this.tableSchemas=[],this.evaluatorCache=new Map,this.MAX_CACHE_SIZE=1e3,this.db=new b_.default.Database}initialize(t){if(this.context=t,!t.sourceData||!function(t){return void 0!==t.getAtoms&&void 0!==t.getRelations&&void 0!==t.getTypes&&void 0!==t.applyProjections&&void 0!==t.generateGraph}(t.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let e=t.sourceData;this.clearTables(),this.evaluatorCache.clear(),this.tableSchemas=[],this.createTablesFromDataInstance(e),this.ready=!0}clearTables(){try{this.db.exec(`DROP TABLE IF EXISTS ${t.ATOMS_TABLE}`),this.db.exec(`DROP TABLE IF EXISTS ${t.ATOM_TYPES_TABLE}`),this.db.exec(`DROP TABLE IF EXISTS ${t.TYPES_TABLE}`);for(let t of this.tableSchemas)this.db.exec(`DROP TABLE IF EXISTS ${this.sanitizeTableName(t.name)}`)}catch{}}sanitizeTableName(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),["select","selected","from","where","join","table","index","order","group","by","having","union","insert","update","delete","create","drop","alter","int","string","boolean","source","target","key","value","count","read","top","path","deleted","work","offset"].includes(e.toLowerCase())&&(e="rel_"+e),e}sanitizeColumnName(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),["select","from","where","join","table","index","order","group","by","having","union","insert","update","delete","create","drop","alter","int","string","boolean","source","target","key","value","count","read","top","path","deleted","work","offset"].includes(e.toLowerCase())&&(e="col_"+e),e}createTablesFromDataInstance(e){this.db.exec(`CREATE TABLE ${t.ATOMS_TABLE} (id STRING, type STRING, label STRING)`),this.tableSchemas.push({name:t.ATOMS_TABLE,columns:["id","type","label"],description:"All atoms in the instance (type = most specific type)"}),this.db.exec(`CREATE TABLE ${t.ATOM_TYPES_TABLE} (atom_id STRING, type STRING)`),this.tableSchemas.push({name:t.ATOM_TYPES_TABLE,columns:["atom_id","type"],description:"Junction table: all types for each atom (includes inherited types)"});let r=[...e.getAtoms()];for(let n of r){this.db.exec(`INSERT INTO ${t.ATOMS_TABLE} VALUES (?, ?, ?)`,[n.id,n.type,n.label]);try{let r=e.getAtomType(n.id);if(r&&r.types)for(let e of r.types)this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,e]);else this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,n.type])}catch{this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,n.type])}}this.db.exec(`CREATE TABLE ${t.TYPES_TABLE} (id STRING, isBuiltin BOOLEAN, hierarchy STRING)`),this.tableSchemas.push({name:t.TYPES_TABLE,columns:["id","isBuiltin","hierarchy"],description:"All types in the instance"});let n=e.getTypes();for(let e of n)this.db.exec(`INSERT INTO ${t.TYPES_TABLE} VALUES (?, ?, ?)`,[e.id,e.isBuiltin,JSON.stringify(e.types)]);let i=e.getRelations();for(let t of i)this.createRelationTable(t)}createRelationTable(t){let e,r=this.sanitizeTableName(t.name),n=t.types.length;e=1===n?["atom"]:2===n?["src","tgt"]:Array.from({length:n},((t,e)=>`elem_${e}`)),e=e.map((t=>this.sanitizeColumnName(t)));let i=e.map((t=>`${t} STRING`)).join(", ");this.db.exec(`CREATE TABLE ${r} (${i})`),this.tableSchemas.push({name:r,columns:e,description:`Relation: ${t.name} (arity ${n})`});let o=e.map((()=>"?")).join(", ");for(let e of t.tuples)this.db.exec(`INSERT INTO ${r} VALUES (${o})`,e.atoms)}isReady(){return this.ready}getTableSchemas(){return[...this.tableSchemas]}evaluate(t,e){if(!this.isReady())throw new Error("Evaluator not initialized");let r=e?.instanceIndex??0,n=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(n)){let t=this.evaluatorCache.get(n);return this.evaluatorCache.delete(n),this.evaluatorCache.set(n,t),t}try{let e=this.db.exec(t),r=this.convertResult(e),i=new E_(r,t);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let t=this.evaluatorCache.keys().next().value;void 0!==t&&this.evaluatorCache.delete(t)}return this.evaluatorCache.set(n,i),i}catch(e){let r={error:{message:`SQL Error: ${e instanceof Error?e.message:String(e)}`,code:"SQL_ERROR"}};return new E_(r,t)}}convertResult(t){return null==t?[]:"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:Array.isArray(t)?0===t.length?[]:"object"==typeof t[0]&&null!==t[0]?t.map((t=>Object.values(t).map((t=>"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:String(t))))):t:"object"==typeof t?[Object.values(t).map((t=>"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:String(t)))]:[]}dispose(){this.clearTables(),this.evaluatorCache.clear(),this.tableSchemas=[],this.ready=!1}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,tableCount:this.tableSchemas.length}}};O_.ATOMS_TABLE="_atoms",O_.ATOM_TYPES_TABLE="_atom_types",O_.TYPES_TABLE="_types";var S_=O_,N_={};function A_(e,r,n,i={}){let o="string"==typeof e?Sa(e):e;return new t.LayoutInstance(o,n).generateLayout(r,i)}f(N_,{AlignConstraint:()=>wa,AlignmentEdgeStrategy:()=>Vf,ColorPicker:()=>Hp,ConstraintValidator:()=>Gf,CyclicOrientationConstraint:()=>La,DisjunctiveConstraint:()=>jn,GroupByField:()=>Ca,GroupBySelector:()=>Ra,ImplicitConstraint:()=>Mn,LayoutInstance:()=>t.LayoutInstance,RelativeOrientationConstraint:()=>Aa,getBundledIconNames:()=>Ma,getIconPackPrefixes:()=>ja,isAlignmentConstraint:()=>Ln,isBoundingBoxConstraint:()=>In,isBundledIcon:()=>Ka,isDisjunctiveConstraint:()=>Pn,isGroupBoundaryConstraint:()=>kn,isGroupOverlapError:()=>Ff,isInstanceLayout:()=>Dn,isLeftConstraint:()=>Cn,isPositionalConstraintError:()=>Uf,isTopConstraint:()=>Rn,orientationConstraintToString:()=>Bf,parseLayoutSpec:()=>Sa,resolveIconPath:()=>Pa,setupLayout:()=>A_,usesIconPack:()=>Ua}),Kn(),Ia(),Zf(),ff(),Xf(),za(),Zf(),Ia();var w_={};f(w_,{StructuredInputGraph:()=>t.StructuredInputGraph,WebColaCnDGraph:()=>Am,WebColaTranslator:()=>t.WebColaTranslator}),Tm(),Rm(),Im(),Cm();var R_=class t{constructor(t){this.alloyInstance=t,this.eventListeners=new Map}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}getAtomType(t){let e=qy(this.alloyInstance,t);return{id:e.id,types:e.types,atoms:e.atoms.map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,label:t.id,type:t.type,labels:e.length>0?{skolems:e}:void 0}})),isBuiltin:gy(e)}}getTypes(){return jy(this.alloyInstance).map((t=>({id:t.id,types:t.types,atoms:t.atoms.map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,type:t.type,label:t.id,labels:e.length>0?{skolems:e}:void 0}})),isBuiltin:gy(t)})))}getAtoms(){return Oy(this.alloyInstance).map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,type:t.type,label:t.id,labels:e.length>0?{skolems:e}:void 0}}))}getRelations(){return Ly(this.alloyInstance).map((t=>({id:t.id,name:t.name,types:t.types,tuples:t.tuples.map((t=>({atoms:t.atoms,types:t.types})))})))}applyProjections(e){let r=Xy(this.alloyInstance,e);return new t(r)}generateGraph(t,e){return l_(this.alloyInstance,t,e)}getAlloyInstance(){return this.alloyInstance}reify(){let t="",e=this.alloyInstance.types,r={};for(let t in e){let n=e[t].atoms;r[t]=n.map((t=>`\`${t.id}`))}let n=this.alloyInstance.relations,i={};for(let t in n){let e=n[t],r=e.tuples.map((t=>`(${t.atoms.map((t=>`\`${t}`)).join("->")})`));i[e.name]=r}for(let e in r){let n=r[e];n.length>0&&(t+=`${e} = ${n.join("+")}\n`)}for(let e in i){let r=i[e];r.length>0?t+=`${e} = ${r.join("+")}\n`:t+=`no ${e}\n`}return`inst builtinstance {\n${t}\n}`}removeAtom(t){this.alloyInstance=Sy(this.alloyInstance,t),this.emitEvent({type:"atomRemoved",data:{atomId:t}})}addAtom(t){let e={_:"atom",id:t.id,type:t.type};this.alloyInstance=Ny(this.alloyInstance,e),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){let r={_:"tuple",atoms:e.atoms,types:e.types};this.alloyInstance=wy(this.alloyInstance,t,r),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeRelationTuple(t,e){let r={atoms:e.atoms,types:e.types};this.alloyInstance=Ay(this.alloyInstance,t,r),this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}addFromDataInstance(t,e){if(!function(t){return t instanceof R_}(t))return!1;let r=t.getAlloyInstance(),n=new Map;return Oy(r).forEach((t=>{let r=this.getAtomType(t.id).isBuiltin;if(e&&r){let e=this.getAtoms().find((e=>e.type===t.type&&e.label===t.id));if(e)return void n.set(t.id,e.id)}let i=`atom_${this.getAtoms().length+1}`;n.set(t.id,i),this.addAtom({id:i,type:t.type,label:t.id})})),Ly(r).forEach((t=>{t.tuples.forEach((e=>{let r={atoms:e.atoms.map((t=>n.get(t)||t)),types:e.types};this.addRelationTuple(t.id,r)}))})),jy(r).forEach((t=>{this.getTypes().find((e=>e.id===t.id))||(this.alloyInstance.types[t.id]={_:"type",id:t.id,types:t.types,atoms:t.atoms.map((t=>({_:"atom",id:n.get(t.id)||t.id,type:t.type}))),meta:{builtin:!1,abstract:!1,enum:!1,one:!1,private:!1}})})),!0}},C_=g(Hm()),L_=g(gn()),I_=g(gn()),k_=class t{constructor(t,e={},r){this.atoms=new Map,this.relations=new Map,this.types=new Map,this.objectToAtomId=new WeakMap,this.atomCounter=0,this.typeLabelCounters=new Map,this.originalObjects=new Map,this.eventListeners=new Map,this.externalEvaluator=null,this.options={stringsIdempotent:e.stringsIdempotent??!0,numbersIdempotent:e.numbersIdempotent??!0,booleansIdempotent:e.booleansIdempotent??!0,showFunctions:e.showFunctions??!1},this.externalEvaluator=r||null,this.initializeBuiltinTypes(),t&&this.parseObjectIteratively(t)}setExternalEvaluator(t){this.externalEvaluator=t}getExternalEvaluator(){return this.externalEvaluator}getOptions(){return{...this.options}}cacheConstructorPattern(e,r){if(0===r.length)return;let n=t.globalConstructorCache.get(e),i=++t.instantiationCounter;(!n||i>n.instantiation)&&t.globalConstructorCache.set(e,{pattern:[...r],instantiation:i})}getCachedConstructorPattern(e){let r=t.globalConstructorCache.get(e);return r?r.pattern:null}static getGlobalConstructorCache(){let e=new Map;for(let[r,n]of t.globalConstructorCache)e.set(r,[...n.pattern]);return e}static getGlobalConstructorCacheWithPriority(){return new Map(t.globalConstructorCache)}static clearGlobalConstructorCache(){t.globalConstructorCache.clear()}static async fromExpression(e,r={},n){let i=await t.evaluateExpression(e,n);if(!i.success)throw new Error(`Failed to evaluate Pyret expression: ${t.formatError(i.exn)}`);if(t.isPrimitive(i.result)){let e=new t(null,r,n),o="string"==typeof i.result?"String":"number"==typeof i.result?"Number":"Boolean",s={id:`result_${i.result}`,label:String(i.result),type:o};return e.addAtom(s),e}return new t(i.result,r,n)}static async evaluateExpression(e,r){try{let n=await r.run(e),i=t.findKeyAtAnyLevel(n,"exn");if(void 0!==i)return{success:!1,exn:i};let o=t.findKeyAtAnyLevel(n,"answer");return void 0!==o?{success:!0,result:o}:t.isPrimitive(n)?{success:!0,result:n}:{success:!1,exn:"Unable to find answer or exn in evaluation result"}}catch(t){return{success:!1,exn:t instanceof Error?t.message:"Unknown evaluation error"}}}static findKeyAtAnyLevel(e,r){if(e&&"object"==typeof e){if(r in e)return e[r];for(let n of Object.values(e))if(n&&"object"==typeof n){let e=t.findKeyAtAnyLevel(n,r);if(void 0!==e)return e}}}static isPrimitive(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}static formatError(t){if(!t)return"Unknown error";if("string"==typeof t)return t;if("object"==typeof t&&null!==t){let e=t;if(e.message)return e.message;if(e.toString&&"function"==typeof e.toString)return e.toString()}return String(t)}tryReconstructFromRelations(t,e){let r=new Map;if(this.relations.forEach((e=>{e.tuples.forEach((n=>{if(n.atoms.length>=2&&n.atoms[0]===t.id){let t=e.name;r.has(t)||r.set(t,[]),r.get(t).push(...n.atoms.slice(1))}}))})),0===r.size)return t.type;let n=this.getCachedConstructorPattern(t.type);if(n){let i=[];for(let t of n){let n=r.get(t)||[];for(let t of n)i.push(this.reifyAtom(t,e))}if(i.length>0)return`${t.type}(${i.join(", ")})`}let i=Array.from(this.atoms.values()).filter((e=>e.type===t.type));for(let n of i){let i=this.originalObjects.get(n.id);if(i&&i.dict){let n=Object.keys(i.dict);this.cacheConstructorPattern(t.type,n);let o=[];for(let t of n){let n=r.get(t)||[];for(let t of n)o.push(this.reifyAtom(t,e))}if(o.length>0)return`${t.type}(${o.join(", ")})`;break}}console.error(`[PyretDataInstance] Could not determine constructor pattern for type '${t.type}'. Falling back to sorted field order.`);let o=Array.from(r.keys()).sort(),s=[];for(let t of o){let n=r.get(t)||[];for(let t of n)s.push(this.reifyAtom(t,e))}return s.length>0?`${t.type}(${s.join(", ")})`:t.type}hasExternalEvaluator(){return null!==this.externalEvaluator}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}addAtom(t){this.atoms.set(t.id,t),this.ensureTypeExists(t.type);let e=this.types.get(t.type);e&&!e.atoms.some((e=>e.id===t.id))&&e.atoms.push(t),this.emitEvent({type:"atomAdded",data:{atom:t}})}removeAtom(t){let e=this.atoms.get(t);this.atoms.delete(t),this.types.forEach((e=>{e.atoms=e.atoms.filter((e=>e.id!==t))})),this.relations.forEach((e=>{e.tuples=e.tuples.filter((e=>!e.atoms.includes(t)))})),e&&this.emitEvent({type:"atomRemoved",data:{atomId:t}})}removeRelationTuple(t,e){let r=this.relations.get(t);if(r){let n=r.tuples.length;r.tuples=r.tuples.filter((t=>!t.atoms.every(((t,r)=>t===e.atoms[r])))),r.tuples.length{e.tuples.forEach((e=>{for(let r=1;r!t.has(e.id)));return 0===e.length?"# No root atoms found":e.length>1?`[list-set: ${e.map((t=>this.reifyAtom(t.id,new Set))).join(", ")}]`:""+this.reifyAtom(e[0].id,new Set)}reifyAtom(t,e){if(e.has(t))return`/* cycle: ${t} */`;let r=this.atoms.get(t);if(!r)return`/* missing atom: ${t} */`;if(e.add(t),this.isBuiltinType(r.type)){let n=this.reifyPrimitive(r);return e.delete(t),n}let n=this.originalObjects.get(t);if(!n||!n.dict)return e.delete(t),this.tryReconstructFromRelations(r,e);let i=Object.keys(n.dict);if(this.cacheConstructorPattern(r.type,i),i.every((t=>/^\d+$/.test(t)))&&i.length>0){let r=i.sort(((t,e)=>parseInt(t,10)-parseInt(e,10))).map((r=>this.getRelationTargets(t,r).map((t=>this.reifyAtom(t,e))))).flat();return e.delete(t),`[list: ${r.join(", ")}]`}let o=[];for(let r of i){let n=this.getRelationTargets(t,r);for(let t of n)o.push(this.reifyAtom(t,e))}return e.delete(t),0===o.length?r.type:`${r.type}(${o.join(", ")})`}reifyPrimitive(t){return"String"===t.type?`"${t.label.replace(/"/g,'\\"')}"`:t.label}parseObjectIteratively(t){let e=[{obj:t}];for(;e.length>0;){let{obj:t,parentInfo:r}=e.shift();if(this.objectToAtomId.has(t)){if(r){let e=this.objectToAtomId.get(t);this.addRelationTuple(r.relationName,{atoms:[r.parentId,e],types:["PyretObject","PyretObject"]})}continue}let n=this.createAtomFromObject(t);if(this.originalObjects.set(n,t),t.dict&&"object"==typeof t.dict){let e=this.extractType(t),r=Object.keys(t.dict);this.cacheConstructorPattern(e,r)}r&&this.addRelationTuple(r.relationName,{atoms:[r.parentId,n],types:["PyretObject","PyretObject"]}),t.dict&&"object"==typeof t.dict&&(this.isPyretTable(t)?this.processTableSemantics(n,t):Object.entries(t.dict).forEach((([t,r])=>{if(this.options.showFunctions||!r||"object"!=typeof r||!("meth"in r)||!("full_meth"in r))if(this.isAtomicValue(r)){let e=this.createAtomFromPrimitive(r);this.addRelationTuple(t,{atoms:[n,e],types:["PyretObject","PyretObject"]})}else Array.isArray(r)?this.processArrayField(n,t,r,e):this.isPyretObject(r)&&e.push({obj:r,parentInfo:{parentId:n,relationName:t}})})))}}processArrayField(t,e,r,n){r.forEach(((r,i)=>{if(this.isAtomicValue(r)){let n=this.createAtomFromPrimitive(r);this.addRelationTuple(e,{atoms:[t,n],types:["PyretObject","PyretObject"]})}else if(Array.isArray(r)){let o=this.generateAtomId("Array"),s={id:o,type:"Array",label:`Array[${i}]`};this.atoms.set(o,s),this.ensureTypeExists("Array"),this.addRelationTuple(e,{atoms:[t,o],types:["PyretObject","PyretObject"]}),this.processArrayField(o,"element",r,n)}else this.isPyretObject(r)&&n.push({obj:r,parentInfo:{parentId:t,relationName:e}})}))}isPyretTable(t){return!(!t.dict||"object"!=typeof t.dict||t.brands&&"object"==typeof t.brands&&!Object.keys(t.brands).some((t=>t.includes("brandtable"))))&&"_header-raw-array"in t.dict&&"_rows-raw-array"in t.dict}processTableSemantics(t,e){let r=e.dict,n=r["_header-raw-array"],i=r["_rows-raw-array"];if(!Array.isArray(n)||!Array.isArray(i))return;let o=n.filter((t=>"string"==typeof t));0!==o.length&&i.forEach((t=>{if(!Array.isArray(t))return;let e=[];t.forEach((t=>{if(this.isAtomicValue(t)){let r=this.createAtomFromPrimitive(t);e.push(r)}})),e.length===o.length&&e.length>0&&this.addRelationTuple("row",{atoms:e,types:e.map((()=>"String"))})}))}createAtomFromObject(t){let e=this.extractType(t),r=this.generateAtomId(e),n={id:r,type:e,label:this.extractLabel(t)};return this.atoms.set(r,n),this.objectToAtomId.set(t,r),this.ensureTypeExists(e),r}createAtomFromPrimitive(t){let e;e=this.isRationalNumber(t)?this.rationalToDecimal(t):t;let r=this.mapPrimitiveType(e),n=String(e);if("String"===r&&this.options.stringsIdempotent||"Number"===r&&this.options.numbersIdempotent||"Boolean"===r&&this.options.booleansIdempotent){let t=Array.from(this.atoms.values()).find((t=>t.label===n&&t.type===r));if(t)return t.id}let i=this.generateAtomId(r),o={id:i,type:r,label:n};return this.atoms.set(i,o),this.ensureTypeExists(r),i}mapPrimitiveType(t){switch(typeof t){case"number":return"Number";case"string":return"String";case"boolean":return"Boolean";default:return"Value"}}extractMostSpecificBrand(t){let e,r,n=-1;for(let i of Object.keys(t)){let t=/^\$brand([a-zA-Z_]+)(\d+)$/.exec(i);if(t){let[,r,i]=t,o=parseInt(i,10);o>n&&(n=o,e=r)}else{let t=/^\$brand_?([a-zA-Z_]+)$/.exec(i);if(t){let[,e]=t;(!r||e>r)&&(r=e)}}}return e||r}extractType(t){if(t.$name&&"string"==typeof t.$name)return t.$name;if(t.brands&&"object"==typeof t.brands){let e=this.extractMostSpecificBrand(t.brands);if(e)return e}return"PyretObject"}extractLabel(t){if(t.$name&&"string"==typeof t.$name)return t.$name;let e=this.extractType(t),r=(this.typeLabelCounters.get(e)??0)+1;return this.typeLabelCounters.set(e,r),`${e}$${r}`}addRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=e.atoms.slice(1,-1),o=this.atoms.get(r),s=this.atoms.get(n);if(!o||!s)return void console.warn(`Cannot create relation ${t}: missing atoms ${r} or ${n}`);let a=this.relations.get(t),l=t+(i.length>0?`[${i.join(", ")}]`:"");a||(a={id:t,name:l,types:[o.type,s.type],tuples:[]},this.relations.set(t,a)),a.tuples.some((t=>t.atoms[0]===r&&t.atoms[1]===n))||(a.tuples.push(e),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}}))}ensureTypeExists(t){if(!this.types.has(t)){let e={id:t,types:[t,"PyretObject"],atoms:[],isBuiltin:this.isBuiltinType(t)};this.types.set(t,e)}}initializeBuiltinTypes(){["Number","String","Boolean","PyretObject"].forEach((t=>{let e={id:t,types:"PyretObject"===t?["PyretObject"]:[t,"PyretObject"],atoms:[],isBuiltin:!0};this.types.set(t,e)}))}isBuiltinType(t){return["Number","String","Boolean","PyretObject"].includes(t)}isRationalNumber(t){return"object"==typeof t&&null!==t&&"n"in t&&"d"in t&&"number"==typeof t.n&&"number"==typeof t.d}rationalToDecimal(t){return t.n/t.d}isAtomicValue(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||this.isRationalNumber(t)}isPyretObject(t){return"object"==typeof t&&null!==t&&("dict"in t||"brands"in t||"$name"in t)}generateAtomId(t){return`${t?t.toLowerCase().substring(0,3):"atom"}_${++this.atomCounter}`}getAtoms(){return Array.from(this.atoms.values())}getRelations(){let t=this.relations.values();return Array.from(t)}getTypes(){return this.types.forEach((t=>{t.atoms=this.getAtoms().filter((e=>e.type===t.id))})),Array.from(this.types.values())}getAtomType(t){let e=this.atoms.get(t);if(!e)throw new Error(`Atom with id '${t}' not found`);return this.types.get(e.type)||(this.ensureTypeExists(e.type),this.types.get(e.type))}generateGraph(t=!1,e=!1){let r=new I_.Graph({directed:!0,multigraph:!0});if(this.getAtoms().forEach((t=>{r.setNode(t.id,{label:t.label})})),this.getRelations().forEach((t=>{t.tuples.forEach((e=>{if(e.atoms.length>=2){let n=e.atoms[0],i=e.atoms[e.atoms.length-1],o=e.atoms.slice(1,-1),s=t.name;if(o.length>0){let e=o.map((t=>{let e=this.atoms.get(t);return e?e.label:t}));s=`${t.name}[${e.join(", ")}]`}let a=function(t,e){return`${t.id}:${e.atoms.join("->")}`}(t,e);r.setEdge(n,i,s,a)}}))})),t||e){let n=[];r.nodes().forEach((i=>{let o=r.inEdges(i)||[],s=r.outEdges(i)||[];if(0===o.length&&0===s.length&&this.atoms.get(i)){let r=this.getAtomType(i).isBuiltin;(t||r&&e)&&n.push(i)}})),n.forEach((t=>r.removeNode(t)))}return r}applyProjections(e){if(0===e.length)return this;let r=Object.create(t.prototype);return r.atoms=new Map([...this.atoms].filter((([t])=>e.includes(t)))),r.relations=new Map,r.types=new Map,r.atomCounter=r.atoms.size,this.relations.forEach(((t,n)=>{let i=t.tuples.filter((t=>t.atoms.every((t=>e.includes(t)))));i.length>0&&r.relations.set(n,{...t,tuples:i})})),this.types.forEach(((t,n)=>{let i=t.atoms.filter((t=>e.includes(t.id)));i.length>0&&r.types.set(n,{...t,atoms:i})})),r}getRelationTargets(t,e){let r=[];return this.relations.forEach((n=>{n.name===e&&n.tuples.forEach((e=>{e.atoms[0]===t&&e.atoms.length>=2&&r.push(e.atoms[1])}))})),r}addFromDataInstance(e,r){if(!(e instanceof t))return!1;let n=e,i=new Map;return n.getAtoms().forEach((t=>{let e=this.isBuiltinType(t.type);if(r&&e&&("String"===t.type&&this.options.stringsIdempotent||"Number"===t.type&&this.options.numbersIdempotent||"Boolean"===t.type&&this.options.booleansIdempotent)){let e=Array.from(this.atoms.values()).find((e=>e.type===t.type&&e.label===t.label));if(e)return void i.set(t.id,e.id)}let o=this.generateAtomId(t.type);i.set(t.id,o);let s={...t,id:o};this.addAtom(s);let a=n.originalObjects.get(t.id);a&&this.originalObjects.set(o,a)})),n.getTypes().forEach((t=>{if(this.types.has(t.id)){let e=this.types.get(t.id),r=t.atoms.map((t=>({...t,id:i.get(t.id)||t.id})));e.atoms.push(...r)}else this.types.set(t.id,{...t,atoms:t.atoms.map((t=>({...t,id:i.get(t.id)||t.id})))})})),n.getRelations().forEach((t=>{let e=t.tuples.map((t=>({atoms:t.atoms.map((t=>i.get(t)||t)),types:t.types}))),r=this.relations.get(t.id);r?r.tuples.push(...e):this.relations.set(t.id,{...t,tuples:e})})),!0}};k_.globalConstructorCache=new Map,k_.instantiationCounter=0;var D_=k_,P_=g(gn()),M_=class t{constructor(t,e){if(this.datum=t,e)this.atoms=e.atoms,this.relations=e.relations,this.types=e.types,this.builtinTypes=e.builtinTypes;else{let e=this.normalizeDatum(t);this.atoms=e.atoms,this.relations=e.relations,this.types=e.types,this.builtinTypes=e.builtinTypes}}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID '${t}' not found in TLA+ datum.`);let r=this.types.find((t=>t.id===e.type));if(!r)throw new Error(`Type '${e.type}' not found for atom '${t}'.`);return r}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}applyProjections(e){let r=new Set(e),n=this.atoms.filter((t=>r.has(t.id))),i=this.relations.map((t=>{let e=t.tuples.filter((t=>t.atoms.every((t=>r.has(t)))));return 0===e.length?null:{...t,tuples:e}})).filter((t=>null!==t)),o=this.rebuildTypes(n);return new t(this.datum,{atoms:n,relations:i,types:o,builtinTypes:new Set(this.builtinTypes)})}generateGraph(t=!1,e=!1){let r=new P_.Graph({directed:!0,multigraph:!0});if(this.atoms.forEach((t=>{r.setNode(t.id,{id:t.id,label:t.label,type:t.type,isBuiltin:this.isAtomBuiltin(t)})})),this.relations.forEach((t=>{t.tuples.forEach(((e,n)=>{if(e.atoms.length>=2){let i=e.atoms[0],o=e.atoms[e.atoms.length-1],s=`${t.id}_${n}`;r.setEdge(i,o,t.name,s)}else if(1===e.atoms.length){let i=e.atoms[0],o=`${t.id}_${n}`;r.setEdge(i,i,t.name,o)}}))})),t||e){let n=new Set;r.edges().forEach((t=>{n.add(t.v),n.add(t.w)})),r.nodes().forEach((i=>{let o=r.node(i)?.isBuiltin??!1,s=t&&!n.has(i),a=e&&o&&!n.has(i);(s||a)&&r.removeNode(i)}))}return r}normalizeDatum(t){let e=[],r=new Map,n=new Map,i=new Set,o=(t,e,r)=>{n.has(t)||n.set(t,[]),n.get(t).push(r),e&&i.add(t)},s="State";t.states.forEach(((t,n)=>{let i=`state_${n}`,a={id:i,type:s,label:t.name??`State ${n+1}`};e.push(a),o(s,!0,a),Object.entries(t.variables??{}).forEach((([t,n])=>{let a=this.normalizeValue(n),l=this.inferType(a),u={id:`${i}.${t}`,type:l,label:`${t} = ${this.describeValue(a.value)}`};e.push(u),o(l,this.isBuiltinType(l),u);let c={atoms:[i,u.id],types:[s,l]};r.has(t)||r.set(t,{name:t,types:[s,l],tuples:[]}),r.get(t).tuples.push(c)}))}));let a=Array.from(r.entries()).map((([t,e])=>({id:t,name:e.name,types:e.types,tuples:e.tuples}))),l=[];for(let e=0;e=0&&t.loop0&&a.push({id:"Next",name:"Next",types:[s,s],tuples:l});let u=Array.from(n.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:i.has(t)})));return{atoms:e,relations:a,types:u,builtinTypes:i}}rebuildTypes(t){let e=new Map;return t.forEach((t=>{e.has(t.type)||e.set(t.type,[]),e.get(t.type).push(t)})),Array.from(e.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:this.builtinTypes.has(t)})))}normalizeValue(t){return t&&"object"==typeof t&&"value"in t?t:{value:t}}inferType(t){if(t.type&&t.type.trim().length>0)return t.type.trim();let e=t.value;if(Array.isArray(e))return"Seq";switch(typeof e){case"number":return Number.isInteger(e)?"Int":"Real";case"boolean":return"Bool";case"string":return"String";case"object":return null===e?"Null":"Record";default:return"Unknown"}}describeValue(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||null===t)return String(t);try{return JSON.stringify(t)}catch{return String(t)}}isBuiltinType(t){return["State","Int","Real","Bool","String"].includes(t)}isAtomBuiltin(t){return this.builtinTypes.has(t.type)}};Zf(),Ia(),An();var j_=g(Sn());An();var K_=class extends Error{constructor(t){super(t),this.name="SelectorSynthesisError"}},U_=g(qm()),F_=g(zm());function $_(t,e){let r=t.getAtoms(),n=new Set(r.map((t=>t.id))),i=1,o=`${e}-${i}`;for(;n.has(o);)i++,o=`${e}-${i}`;return o}var H_=g(qm()),B_=class{canHandle(t){let e=t.trim();return e.startsWith("remove ")&&e.length>7}getPriority(){return 200}getCommandPatterns(){return["remove ID","remove Label:Type","remove source.relation=target","remove relation","remove Atom.REL","remove edge_id"]}execute(t,e){let r=t.trim().substring(7);try{return r.includes(".")&&r.includes("=")?this.handleRemoveRelationTuple(r,e):r.includes(".")&&!r.includes("=")?this.handleRemoveAtomRelation(r,e):r.includes(":")&&!r.includes("->")?this.handleRemoveAtomByLabelType(r,e):this.looksLikeEdgeId(r,e)?this.handleRemoveEdgeById(r,e):/^[^\s:->().]+$/.test(r)?e.getAtoms().find((t=>t.id===r))?this.handleRemoveAtomById(r,e):e.getRelations().find((t=>t.name===r))?this.handleRemoveRelation(r,e):{success:!1,message:`Atom or relation not found: ${r}`}:{success:!1,message:`Invalid remove syntax: ${r}`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to remove"}}}handleRemoveAtomById(t,e){let r=e.getAtoms().find((e=>e.id===t));return r?(e.removeAtom(r.id),{success:!0,message:`[${r.id}] Removed atom: ${r.label}:${r.type}`,action:"remove"}):{success:!1,message:`Atom not found with ID: ${t}`}}handleRemoveAtomByLabelType(t,e){let[r,n]=t.split(":"),i=e.getAtoms().find((t=>t.label===r.trim()&&t.type===n.trim()));return i?(e.removeAtom(i.id),{success:!0,message:`[${i.id}] Removed atom: ${i.label}:${i.type}`,action:"remove"}):{success:!1,message:`Atom not found: ${t}`}}handleRemoveRelationTuple(t,e){let r=t.match(/^([^.]+)\.([^=]+)=(.+)$/);if(!r)return{success:!1,message:`Invalid relation format: ${t}`};let n=r[1].trim(),i=r[2].trim(),o=r[3].trim(),s=e.getRelations().find((t=>t.name===i));if(!s)return{success:!1,message:`Relation '${i}' not found`};let a=s.tuples.find((t=>2===t.atoms.length&&t.atoms[0]===n&&t.atoms[1]===o));return a?(e.removeRelationTuple(i,a),{success:!0,message:`[${n}.${i}=${o}] Removed tuple: ${i}(${n}, ${o})`,action:"remove"}):{success:!1,message:`Tuple not found: ${n}.${i}=${o}`}}handleRemoveRelation(t,e){let r=e.getRelations().find((e=>e.name===t));if(!r)return{success:!1,message:`Relation '${t}' not found`};let n=r.tuples.length;return r.tuples.slice().forEach((r=>{e.removeRelationTuple(t,r)})),{success:!0,message:`[${t}] Removed relation '${t}' (${n} tuples)`,action:"remove"}}handleRemoveAtomRelation(t,e){let r=t.match(/^([^.]+)\.([^.]+)$/);if(!r)return{success:!1,message:`Invalid atom.relation syntax: ${t}`};let[,n,i]=r;if(!e.getAtoms().find((t=>t.id===n)))return{success:!1,message:`Atom '${n}' not found`};let o=e.getRelations().find((t=>t.name===i));if(!o)return{success:!1,message:`Relation '${i}' not found`};o.tuples.length;let s=o.tuples.filter((t=>t.atoms[0]===n));return 0===s.length?{success:!1,message:`No ${i} relations found for atom '${n}'`}:(s.forEach((t=>{e.removeRelationTuple(i,t)})),{success:!0,message:`[${n}.${i}] Removed ${s.length} ${i} relations from '${n}'`,action:"remove"})}looksLikeEdgeId(t,e){return t.includes(":")&&t.includes("->")}handleRemoveEdgeById(t,e){let r=t.indexOf(":");if(-1===r)return{success:!1,message:`Invalid edge ID format: ${t}. Expected format: relationName:atom1->atom2`};let n=t.substring(0,r),i=t.substring(r+1).split("->"),o=e.getRelations().find((t=>t.name===n));if(!o)return{success:!1,message:`Relation '${n}' not found`};let s=o.tuples.find((t=>t.atoms.length===i.length&&t.atoms.every(((t,e)=>t===i[e]))));return s?(e.removeRelationTuple(n,s),{success:!0,message:`[${t}] Removed edge: ${n}(${i.join(", ")})`,action:"remove"}):{success:!1,message:`Edge '${t}' not found`}}getHelp(){return["Remove Commands (sugar syntax):"," remove ID - Remove atom by ID"," remove Label:Type - Remove atom by label and type"," remove source.relation=target - Remove specific relation tuple"," remove Atom.REL - Remove all REL relations from Atom"," remove edge_id - Remove specific edge by ID"," remove relation - Remove entire relation","","Examples:",' remove alice - Remove atom with ID "alice"'," remove Alice:Person - Remove Alice:Person atom"," remove alice.friend=bob - Remove friend(alice, bob) tuple"," remove alice.friend - Remove all friend relations from alice"," remove friend:alice->bob - Remove edge by ID"," remove friend - Remove entire friend relation"]}},q_=class{canHandle(t){let e=t.trim();return!(e.startsWith("remove ")||e.startsWith("add ")||["help","info","status","list","clear","reify"].includes(e.toLowerCase())||e.startsWith("[list:")||e.includes(".")&&e.includes("=")||e.includes("(")&&e.includes(")")||!(/^[^:]+:.+$/.test(e)&&!e.includes("->")||/^[^=]+=.+:.+$/.test(e)&&!e.includes("->")))}getPriority(){return 100}getCommandPatterns(){return["Label:Type","id=Label:Type"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^(?:([^=]+)=)?([^:]+):(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: add Label:Type or add id=Label:Type"};let[,n,i,o]=r,s=i.trim(),a=o.trim();if(!s||!a)return{success:!1,message:"Label and type cannot be empty"};let l,u=n?.trim()||this.generateAtomId(s,e),c={id:u,label:s,type:a};return e.addAtom(c),n?.trim(),l=`[${u}] Added atom: ${s}:${a}`,{success:!0,message:l,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add atom"}}}generateAtomId(t,e){let r=new Set(e.getAtoms().map((t=>t.id)));if(!r.has(t))return t;let n=1,i=`${t}$${n}`;for(;r.has(i);)n++,i=`${t}$${n}`;return i}getHelp(){return["Atom Commands (sugar syntax):"," Label:Type - Add atom with generated ID"," id=Label:Type - Add atom with explicit ID","","Examples:"," Alice:Person - Creates [Alice] Alice:Person"," p1=Alice:Person - Creates [p1] Alice:Person","","Note: IDs are shown in [brackets] for easy referencing","All syntax is sugar that gets desugared to internal operations"]}},G_=class{canHandle(t){let e=t.trim();return!e.startsWith("remove ")&&!e.startsWith("add ")&&!(!e.includes(".")||!e.includes("="))&&/^[^.]+\.[^=]+=.+$/.test(e)}getPriority(){return 115}getCommandPatterns(){return["source.relation=target"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^([^.]+)\.([^=]+)=(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: source.relation=target"};let n=r[1].trim(),i=r[2].trim(),o=r[3].trim();if(!n||!i||!o)return{success:!1,message:"Source, relation, and target cannot be empty"};let s=e.getAtoms(),a=new Set(s.map((t=>t.id)));if(!a.has(n))return{success:!1,message:`Source atom '${n}' does not exist`};if(!a.has(o))return{success:!1,message:`Target atom '${o}' does not exist`};let l=s.find((t=>t.id===n)),u=s.find((t=>t.id===o)),c={atoms:[n,o],types:[l.type,u.type]};return e.addRelationTuple(i,c),{success:!0,message:`[${n}.${i}=${o}] Added relation: ${i}(${n}, ${o})`,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add relation"}}}getHelp(){return["Dot Notation Relation Commands (sugar syntax):"," source.relation=target - Add binary relation","","Examples:"," alice.friend=bob - Creates friend(alice, bob)"," alice.knows=charlie - Creates knows(alice, charlie)","","Note: Atoms must exist before creating relations","All syntax is sugar that gets desugared to internal operations"]}},z_=class{canHandle(t){let e=t.trim().toLowerCase();return["help","info","status","list","clear","reify","list-ids","list-edges"].includes(e)}getPriority(){return 50}getCommandPatterns(){return["help","info","status","list","list-ids","list-edges","clear","reify"]}execute(t,e){switch(t.trim().toLowerCase()){case"help":return{success:!0,message:this.getGeneralHelp(),action:"help"};case"info":case"status":return this.getStatus(e);case"list":return this.listContents(e);case"list-ids":return this.listAtomIds(e);case"list-edges":return this.listEdgeIds(e);case"clear":return this.clearInstance(e);case"reify":return this.reifyInstance(e);default:return{success:!1,message:"Unknown info command"}}}listAtomIds(t){let e=t.getAtoms();if(0===e.length)return{success:!0,message:"No atoms found in instance.",action:"info"};let r="Internal Atom IDs:\n\n",n=e.reduce(((t,e)=>(t[e.type]||(t[e.type]=[]),t[e.type].push(e),t)),{});return Object.entries(n).forEach((([t,e])=>{r+=`${t}:\n`,e.forEach((t=>{r+=` ID: ${t.id} Label: ${t.label}\n`})),r+="\n"})),r+=`Total: ${e.length} atoms`,{success:!0,message:r,action:"info"}}listEdgeIds(t){let e=t.getRelations();if(0===e.length)return{success:!0,message:"No relations/edges found in instance.",action:"info"};let r="Internal Edge IDs:\n\n",n=0;return e.forEach((t=>{t.tuples.length>0&&(r+=`Relation: ${t.name}\n`,t.tuples.forEach(((e,i)=>{let o=`${t.name}:${e.atoms.join("->")}`;r+=` Edge ID: ${o}\n`,r+=` Tuple: (${e.atoms.join(", ")})\n`,n++})),r+="\n")})),r+=`Total: ${n} edges across ${e.length} relations`,{success:!0,message:r,action:"info"}}getStatus(t){let e=t.getAtoms(),r=t.getRelations(),n=r.reduce(((t,e)=>t+e.tuples.length),0),i=e.reduce(((t,e)=>(t[e.type]=(t[e.type]||0)+1,t)),{}),o=r.reduce(((t,e)=>(t[e.name]=e.tuples.length,t)),{}),s="Instance Status:\n";return s+=` Atoms: ${e.length}\n`,s+=` Relations: ${r.length}\n`,s+=` Tuples: ${n}\n\n`,Object.keys(i).length>0&&(s+="Types:\n",Object.entries(i).forEach((([t,e])=>{s+=` ${t}: ${e}\n`})),s+="\n"),Object.keys(o).length>0&&(s+="Relations:\n",Object.entries(o).forEach((([t,e])=>{s+=` ${t}: ${e} tuples\n`}))),{success:!0,message:s,action:"info"}}listContents(t){let e=t.getAtoms(),r=t.getRelations(),n="Instance Contents:\n\n";return e.length>0&&(n+="Atoms:\n",e.forEach((t=>{n+=` [${t.id}] ${t.label}:${t.type}\n`})),n+="\n"),r.length>0&&(n+="Relations:\n",r.forEach((t=>{n+=` ${t.name}:\n`,t.tuples.forEach((t=>{n+=` (${t.atoms.join(", ")})\n`}))}))),0===e.length&&0===r.length&&(n+="Empty instance - no atoms or relations defined."),{success:!0,message:n,action:"info"}}clearInstance(t){try{let e=t.getAtoms().map((t=>t.id));return e.forEach((e=>t.removeAtom(e))),{success:!0,message:`Cleared instance (removed ${e.length} atoms)`,action:"remove"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to clear instance"}}}reifyInstance(t){try{if(t instanceof D_)return{success:!0,message:`Pyret Constructor Notation:\n\n${t.reify()}`,action:"info"};{let e=t.getAtoms(),r=t.getRelations(),n="Data Instance Structure:\n\n";return e.length>0&&(n+="Atoms:\n",e.forEach((t=>{n+=` [${t.id}] ${t.label}:${t.type}\n`})),n+="\n"),r.length>0&&(n+="Relations:\n",r.forEach((t=>{n+=` ${t.name}:\n`,t.tuples.forEach((t=>{n+=` (${t.atoms.join(", ")})\n`}))}))),{success:!0,message:n,action:"info"}}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to reify instance"}}}getGeneralHelp(){return'REPL Interface Help:\n\nAvailable commands across all terminals:\n help - Show this help\n info - Show instance status \n status - Same as info\n list - List all atoms and relations\n list-ids - List internal atom IDs grouped by type\n list-edges - List internal edge IDs for all relations\n clear - Clear entire instance\n reify - Generate Pyret constructor notation (or generic representation)\n\nTerminal-specific commands vary by terminal type.\nClick the "?" button in each terminal header for specific help.'}getHelp(){return["Utility Commands:"," help - Show general help"," info - Show instance status"," status - Same as info"," list - List all contents"," list-ids - List internal atom IDs"," list-edges - List internal edge IDs"," clear - Clear entire instance"," reify - Generate Pyret constructor notation"]}},V_=g(zm()),Y_=[{id:"unified",title:"",description:"Supports atoms, relations, and extensions in one terminal",parsers:[new B_,new class{canHandle(t){let e=t.trim();return!e.startsWith("add ")&&!e.startsWith("remove ")&&!(!e.startsWith("[list:")||!e.includes("]:"))}getPriority(){return 120}getCommandPatterns(){return["[list: item1,item2,item3]:type","[list: 1,2,3,4]:numbers"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^\[list:\s*([^\]]+)\]:(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: add [list: item1,item2,item3]:type"};let[,n,i]=r,o=n.split(",").map((t=>t.trim())).filter((t=>t)),s=i.trim();if(0===o.length)return{success:!1,message:"List cannot be empty"};let a="String",l=e.getAtoms(),u=new Set(l.map((t=>t.id)));if(o.every((t=>/^\d+$/.test(t))))a="Number";else if(o.every((t=>/^".*"$/.test(t)))){a="String";for(let t=0;tu.has(t)))&&(a=l.find((t=>t.id===o[0]))?.type||"Entity");let c=[];for(let t=0;t0?o.length:0;return{success:!0,message:`Added Pyret list: ${h} with ${o.length} items (${p} atoms, ${f} relations)`,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add Pyret list"}}}generateListId(t,e){let r=new Set(t.getAtoms().map((t=>t.id))),n=1,i=`${e}-${n}`;for(;r.has(i);)n++,i=`${e}-${n}`;return i}addListRelations(t,e,r){if(0===r.length)return;let n="empty";for(let i=r.length-1;i>=0;i--){let o=r[i],s=`${e}-link-${i+1}`,a={id:s,label:`link(${o}, ${n})`,type:"link"};t.addAtom(a);let l={atoms:[o,n],types:["Item","link"]};try{t.addRelationTuple("link",l)}catch{}n=s}let i={atoms:[e,n],types:["List","link"]};try{t.addRelationTuple("link",i)}catch{}}getHelp(){return["Pyret List Commands (sugar syntax):"," [list: item1,item2,item3]:list_type - Add list with items"," [list: 1,2,3,4]:numbers - Add number list","","This automatically creates:"," - Individual atoms for each item (if they don't exist)"," - A list atom containing all items"," - first/rest relations for list structure","","Examples:"," [list: 1,2,3,4]:numberList - Creates numberList-1 as list ID"," [list: alice,bob,charlie]:personList - Creates personList-1 as list ID"," [list: red,green,blue]:colors - Creates colors-1 as list ID","","Note: All syntax is sugar that gets desugared to internal operations.","The list type name is used as-is to generate unique list IDs (type-1, type-2, etc.)"]}},new class{constructor(){this.atomParser=new q_,this.dotRelationParser=new G_}canHandle(t){let e=t.trim();if(this.isCommaSeperatedAtoms(e))return!0;if(e.includes(";")){let t=e.split(";").map((t=>t.trim())).filter((t=>t));return t.length>=2&&t.some((t=>this.atomParser.canHandle(t)||this.dotRelationParser.canHandle(t)))}return!1}isCommaSeperatedAtoms(t){return!1}getPriority(){return 115}getCommandPatterns(){return["Alice:Person; bob=Bob:Person; alice.friend=bob"]}execute(t,e){let r=t.trim();try{return r.includes(";")?this.handleSemicolonSeperatedCommands(r,e):{success:!1,message:"Unable to parse batch command"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to execute batch command"}}}handleSemicolonSeperatedCommands(t,e){let r=t.split(";").map((t=>t.trim())).filter((t=>t)),n=[],i=[],o=0,s=0,a=0;for(let t of r)try{let r=null;this.atomParser.canHandle(t)?r=this.atomParser.execute(t,e):this.dotRelationParser.canHandle(t)&&(r=this.dotRelationParser.execute(t,e)),r?r.success?(n.push(r.message),o++,"add"===r.action&&s++,"remove"===r.action&&a++):i.push(`"${t}": ${r.message}`):i.push(`"${t}": No parser can handle this command`)}catch(e){i.push(`"${t}": ${e instanceof Error?e.message:"Unknown error"}`)}let l=[];return s>0&&l.push(`${s} added`),a>0&&l.push(`${a} removed`),o===r.length?{success:!0,message:`Batch command completed (${l.join(", ")}):\n${n.join("\n")}`,action:s>0?"add":a>0?"remove":"info"}:o>0?{success:!0,message:`Batch command partially completed (${o}/${r.length} commands):\n\nSuccessful:\n${n.join("\n")}\n\nErrors:\n${i.join("\n")}`,action:s>0?"add":a>0?"remove":"info"}:{success:!1,message:`Batch command failed:\n${i.join("\n")}`}}getHelp(){return["Batch Commands (sugar syntax):"," command1; command2; command3 - Execute multiple sugar commands","","Examples:"," Alice:Person; bob=Bob:Person; alice.friend=bob"," 1:Number; 2:Number; 3:Number","","Note: Semicolon-separated commands support any mix of atom/relation sugar syntax"]}},new G_,new q_,new z_].sort(((t,e)=>e.getPriority()-t.getPriority())),placeholder:""}],W_=({instance:t,onChange:e,onCndSpecExtracted:r,disabled:n=!1,className:i="",terminals:o=Y_})=>{let[s,a]=(0,H_.useState)((()=>{let t={};return o.forEach((e=>{t[e.id]={input:"",output:[],isExecuting:!1}})),t})),[l,u]=(0,H_.useState)({nodes:!1,edges:!1}),c=(0,H_.useRef)({}),h=t.getAtoms(),d=t.getRelations();d.reduce(((t,e)=>t+e.tuples.length),0);let p=(0,H_.useCallback)((t=>{let e=c.current[t];e&&(e.scrollTop=e.scrollHeight)}),[]),f=(0,H_.useCallback)(((t,e)=>{a((r=>({...r,[t]:{...r[t],output:[...r[t].output,{...e,id:`${Date.now()}-${Math.random()}`,timestamp:new Date}]}}))),setTimeout((()=>p(t)),0)}),[p]),g=(0,H_.useCallback)((()=>{e&&e(t)}),[t,e]),m=(0,H_.useCallback)((t=>{u((e=>({...e,[t]:!e[t]})))}),[]),y=(0,H_.useCallback)((async(e,n)=>{let i=o.find((t=>t.id===e));if(!i)return;let s=n.trim();if(!s)return;a((t=>({...t,[e]:{...t[e],isExecuting:!0}}))),f(e,{type:"command",message:s});let l=null;for(let e of i.parsers)if(e.canHandle(s))try{let r=e.execute(s,t);l=await Promise.resolve(r);break}catch(t){l={success:!1,message:t instanceof Error?t.message:"Execution failed"};break}l||(l={success:!1,message:`Unknown command: ${s}\n\nAvailable patterns:\n ${i.parsers.flatMap((t=>t.getCommandPatterns())).slice(0,8).join("\n ")}\n\nType 'help' for detailed information.`}),(!l.success||"help"===l.action||"info"===l.action)&&f(e,{type:l.success?"help"===l.action?"help":"info"===l.action?"info":"success":"error",message:l.message}),a((t=>({...t,[e]:{...t[e],input:"",isExecuting:!1}}))),l.success&&("add"===l.action||"remove"===l.action)&&g(),l.success&&l.extractedCndSpec&&r&&r(l.extractedCndSpec)}),[o,t,f,g,r]),_=(0,H_.useCallback)(((t,e)=>{a((r=>({...r,[t]:{...r[t],input:e}})))}),[]),v=(0,H_.useCallback)((async t=>{let e=s[t];if(!e||e.isExecuting)return;let r=e.input.split("\n").map((t=>t.trim())).filter((t=>t));for(let e of r)await y(t,e)}),[s,y]),x=(0,H_.useCallback)(((t,e)=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),v(e))}),[v]);(0,H_.useCallback)((t=>{a((e=>({...e,[t]:{...e[t],output:[]}})))}),[]);let b=(0,H_.useCallback)((t=>{let e=o.find((e=>e.id===t));if(!e)return;let r=`${e.title} Help:\n\n`;e.parsers.forEach((t=>{let e=t.getHelp();r+=e.join("\n")+"\n\n"})),f(t,{type:"help",message:r.trim()})}),[o,f]),T=(0,H_.useCallback)((()=>{try{let e=t.getAtoms().map((t=>t.id));e.forEach((e=>t.removeAtom(e))),o.forEach((t=>{f(t.id,{type:"success",message:`Instance cleared (removed ${e.length} atoms)`})})),g()}catch(t){o.forEach((e=>{f(e.id,{type:"error",message:t instanceof Error?t.message:"Failed to clear instance"})}))}}),[t,o,f,g]);return(0,V_.jsxs)("div",{className:`repl-interface ${i}`,children:[(0,V_.jsxs)("div",{className:"repl-interface__main",children:[(0,V_.jsx)("div",{className:"repl-interface__header",children:(0,V_.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,V_.jsx)("button",{onClick:()=>m("nodes"),style:{background:l.nodes?"#4ec9b0":"#2d2d30",color:l.nodes?"#1e1e1e":"#cccccc",border:"1px solid #3c3c3c",padding:"3px 6px",borderRadius:"3px",cursor:"pointer",fontSize:"0.75rem"},children:h.length}),(0,V_.jsx)("button",{onClick:()=>m("edges"),style:{background:l.edges?"#4ec9b0":"#2d2d30",color:l.edges?"#1e1e1e":"#cccccc",border:"1px solid #3c3c3c",padding:"3px 6px",borderRadius:"3px",cursor:"pointer",fontSize:"0.75rem"},children:d.length})]})}),(0,V_.jsx)("div",{className:"repl-interface__terminals",children:o.map((t=>{let e=s[t.id];return e?(0,V_.jsxs)("div",{className:"repl-terminal",children:[(0,V_.jsx)("div",{className:"repl-terminal__output",ref:e=>{c.current[t.id]=e},children:e.output.map((t=>(0,V_.jsx)("div",{className:`repl-output-line ${t.type}`,children:t.message.split("\n").map(((t,e)=>(0,V_.jsx)("div",{children:t},e)))},t.id)))}),(0,V_.jsxs)("div",{className:"repl-terminal__input",children:[(0,V_.jsx)("textarea",{value:e.input,onChange:e=>_(t.id,e.target.value),onKeyDown:e=>x(e,t.id),placeholder:t.placeholder,disabled:n||e.isExecuting,rows:2}),(0,V_.jsxs)("div",{className:"repl-terminal__controls",children:[(0,V_.jsx)("button",{className:"repl-interface__action-button danger",onClick:T,disabled:n,title:"Clear all data",style:{marginRight:"4px",fontSize:"10px",padding:"2px 6px"},children:"Clear"}),(0,V_.jsx)("button",{className:"repl-interface__action-button",onClick:()=>b("unified"),disabled:n,title:"Show help",style:{marginRight:"4px",fontSize:"10px",padding:"2px 6px"},children:"?"}),(0,V_.jsx)("button",{className:"repl-terminal__execute",onClick:()=>v(t.id),disabled:n||e.isExecuting||!e.input.trim(),title:"Execute commands (Ctrl+Enter)",children:e.isExecuting?"...":"▶"})]})]})]},t.id):null}))})]}),(l.nodes||l.edges)&&(0,V_.jsxs)("div",{className:"repl-interface__drawers",children:[l.nodes&&(0,V_.jsxs)("div",{className:"repl-interface__drawer",children:[(0,V_.jsxs)("div",{className:"repl-interface__drawer-header",onClick:()=>m("nodes"),children:[(0,V_.jsxs)("span",{children:["Atoms (",h.length,")"]}),(0,V_.jsx)("span",{className:"repl-interface__drawer-toggle",children:"▼"})]}),(0,V_.jsx)("div",{className:"repl-interface__drawer-content",children:0===h.length?(0,V_.jsx)("div",{className:"repl-interface__drawer-empty",children:"No atoms"}):h.map((t=>(0,V_.jsx)("div",{className:"repl-interface__drawer-item",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsxs)("div",{className:"repl-interface__drawer-item-header",children:[t.label,":",t.type]})})},t.id)))})]}),l.edges&&(0,V_.jsxs)("div",{className:"repl-interface__drawer",children:[(0,V_.jsxs)("div",{className:"repl-interface__drawer-header",onClick:()=>m("edges"),children:[(0,V_.jsxs)("span",{children:["Relations (",d.length,")"]}),(0,V_.jsx)("span",{className:"repl-interface__drawer-toggle",children:"▼"})]}),(0,V_.jsx)("div",{className:"repl-interface__drawer-content",children:0===d.length?(0,V_.jsx)("div",{className:"repl-interface__drawer-empty",children:"No relations"}):d.map((t=>(0,V_.jsxs)("div",{style:{marginBottom:"6px"},children:[(0,V_.jsx)("div",{className:"repl-interface__drawer-item",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsxs)("div",{className:"repl-interface__drawer-item-header",children:[t.name," (",t.tuples.length,")"]})})}),t.tuples.slice(0,3).map(((t,e)=>(0,V_.jsx)("div",{className:"repl-interface__drawer-item",style:{marginLeft:"8px",fontSize:"0.7rem"},children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-detail",children:t.atoms.join(" → ")})})},e))),t.tuples.length>3&&(0,V_.jsxs)("div",{style:{marginLeft:"8px",fontSize:"0.7rem",color:"#6a737d"},children:["... and ",t.tuples.length-3," more"]})]},t.name)))})]})]})]})},X_=g(qm()),Q_=class{constructor(t){this.evaluator=t||null}setEvaluator(t){this.evaluator=t}findKeyAtAnyLevel(t,e){if(t&&"object"==typeof t){if(e in t)return t[e];for(let r of Object.values(t))if(r&&"object"==typeof r){let t=this.findKeyAtAnyLevel(r,e);if(void 0!==t)return t}}}isPrimitive(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}async evaluateExpression(t){if(!this.evaluator)throw new Error("No external Pyret evaluator available");try{let e=await this.evaluator.run(t),r=this.findKeyAtAnyLevel(e,"exn");if(void 0!==r)return{success:!1,exn:r};let n=this.findKeyAtAnyLevel(e,"answer");return void 0!==n?{success:!0,result:n}:this.isPrimitive(e)?{success:!0,result:e}:{success:!1,exn:"Unable to find answer or exn in evaluation result"}}catch(t){return{success:!1,exn:t instanceof Error?t.message:"Unknown evaluation error"}}}canHandle(t){let e=t.trim();return!("reify"!==e.toLowerCase()&&!/^['"`].*['"`]$/.test(e)&&!/^\d+(\.\d+)?$/.test(e)&&(!this.evaluator||e.startsWith("remove ")||["help","info","status","list","clear"].includes(e.toLowerCase())||/^[^:]+:.+$/.test(e)&&!e.includes("(")&&!e.includes("[")&&!e.includes("table:")&&!e.includes("row:")||e.includes(".")&&e.includes("=")&&!e.includes("(")||!(e.includes("(")&&e.includes(")")||e.includes("[")&&e.includes("]")||e.includes("table:")||e.includes("row:"))))}getPriority(){return 90}getCommandPatterns(){return["reify","[list: 1, 2, 3, 4]",'edge("id", "label", weight)']}execute(t,e){let r=t.trim();return"reify"===r.toLowerCase()?this.reifyInstance(e).then((t=>({success:!0,message:t.length>0?t.join("\n"):"No data to reify",action:"info"}))):this.evaluator?this.evaluateExpression(r).then((async t=>t.success?await this.addPyretResultToInstance(t.result,e,r):{success:!1,message:`Evaluation failed: ${this.formatError(t.exn)}`})).catch((t=>({success:!1,message:`Unexpected error during evaluation: ${this.formatError(t)}`}))):Promise.resolve({success:!1,message:"No external Pyret evaluator available. Cannot evaluate Pyret expressions.\n\nTo enable this feature, ensure window.__internalRepl is available."})}async reifyInstance(t){if(!this.evaluator)return["// No external Pyret evaluator available for reification"];let e=[];try{let r=t.getAtoms();for(let t of r)t.type?e.push(`${t.label}:${t.type}`):e.push(t.label);let n=t.getRelations();for(let t of n)for(let r of t.tuples)if(2===r.atoms.length)e.push(`${r.atoms[0]}.${t.name}=${r.atoms[1]}`);else{let n=r.atoms.map((t=>`"${t}"`)).join(", ");e.push(`${t.name}(${n})`)}return e}catch(t){return["// Error during reification:",`// ${t instanceof Error?t.message:"Unknown error"}`]}}async extractCndSpec(t,e){try{if(!this.evaluator)return;let t=`(${e})._cndspec()`,r=await this.evaluateExpression(t);if(r.success&&r.result&&"string"==typeof r.result)return r.result}catch(t){console.error("Error extracting CnD spec:",this.formatError(t))}}async addPyretResultToInstance(t,e,r){try{let n=await this.extractCndSpec(t,r);if(!this.evaluator)throw new Error("No external Pyret evaluator available");let i=await D_.fromExpression(r,{},this.evaluator);return 0===i.getAtoms().length?{success:!1,message:"Pyret expression did not produce any data structures",extractedCndSpec:n}:e.addFromDataInstance?.(i,!0)?{success:!0,message:`Evaluated Pyret expression: ${r}\nAdded ${i.getAtoms().length} atoms and ${i.getRelations().reduce(((t,e)=>t+e.tuples.length),0)} relation tuples`+(n?"\nExtracted CnD specification from result":""),action:"add",extractedCndSpec:n}:this.fallbackAddToInstance(i,e,r,n)}catch(t){return{success:!1,message:`Failed to convert Pyret result to data instance: ${this.formatError(t)}`}}}fallbackAddToInstance(t,e,r,n){let i=0,o=0;for(let r of t.getAtoms())try{let t=r.id,n=new Set(e.getAtoms().map((t=>t.id))),o=1;for(;n.has(t);)t=`${r.id}_${o}`,o++;let s={...r,id:t};e.addAtom(s),i++}catch(t){console.warn("Failed to add atom:",t)}for(let r of t.getRelations())for(let t of r.tuples)try{e.addRelationTuple(r.name,t),o++}catch(t){console.warn("Failed to add relation tuple:",t)}return{success:!0,message:`Evaluated Pyret expression: ${r}\nAdded ${i} atoms and ${o} relation tuples`+(n?"\nExtracted CnD specification from result":""),action:"add",extractedCndSpec:n}}formatError(t){if(!t)return"Unknown error";if("string"==typeof t)return t;if("object"==typeof t&&null!==t){let e=t;if(e.message)return e.message;if(e.toString&&"function"==typeof e.toString)return e.toString()}return String(t)}getHelp(){let t=["Pyret Expression Commands (requires external evaluator):"," reify - Convert current data instance back to Pyret expressions",' edge("id", "label", weight) - Add edge data structure'," [list: 1, 2, 3, 4] - Add Pyret list"," tree(left, right) - Add tree data structure"," table: col1, col2 row: val1, val2 end - Add table data structure","","This parser can evaluate arbitrary Pyret expressions and convert","the results into atoms and relations in the data instance."];return this.evaluator?[...t,"","✓ External Pyret evaluator is available.","You can use any valid Pyret expression."]:[...t,"","⚠️ External Pyret evaluator not available.","This parser requires window.__internalRepl or similar.",'The "reify" command works without external evaluator.']}},J_=g(zm()),Z_=g(qm()),tv=g(qm()),ev=g(qm()),rv=g(qm()),nv="Forge expression yielding tuples (arity ≥ 2); constraint applies from first to last element.",iv="Forge expression yielding singletons.",ov=g(zm()),sv=({value:t,name:e,onChange:r,required:n=!1,placeholder:i,className:o="",rows:s=1})=>(0,ov.jsx)("textarea",{name:e,className:`form-control selector-input code-input ${o}`,value:t,onChange:r,required:n,placeholder:i,rows:s}),av=g(zm()),lv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})};return(0,av.jsxs)(av.Fragment,{children:[(0,av.jsxs)("div",{className:"input-group",children:[(0,av.jsx)("div",{className:"input-group-prepend",children:(0,av.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,av.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,av.jsxs)("div",{className:"input-group",children:[(0,av.jsx)("div",{className:"input-group-prepend",children:(0,av.jsx)("span",{className:"input-group-text",children:"Direction"})}),(0,av.jsxs)("select",{name:"direction",onChange:e,value:t.constraintData.params.direction||"horizontal",children:[(0,av.jsx)("option",{value:"horizontal",children:"Horizontal"}),(0,av.jsx)("option",{value:"vertical",children:"Vertical"})]})]})]})},uv=g(zm()),cv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,uv.jsxs)(uv.Fragment,{children:[(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,uv.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:t.directiveData.params.field||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},required:!0})]}),(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,uv.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,uv.jsx)(sv,{name:"filter",value:t.directiveData.params.filter||"",onChange:e,placeholder:"Optional: filter which values to show (e.g., rel & (univ -> True))"})]})]})},hv=g(zm()),dv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n}})};return(0,hv.jsxs)(hv.Fragment,{children:[(0,hv.jsxs)("div",{className:"input-group",children:[(0,hv.jsx)("div",{className:"input-group-prepend",children:(0,hv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,hv.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,required:!0})]}),(0,hv.jsxs)("div",{className:"input-group",children:[(0,hv.jsx)("div",{className:"input-group-prepend",children:(0,hv.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,hv.jsx)("input",{type:"color",name:"value",className:"form-control",value:t.directiveData.params.value||"#000000",onChange:e,required:!0})]})]})},pv=g(zm()),fv=({directiveData:t,onUpdate:e})=>{let r=t.params.field||"",n=t.params.value||"#000000",i=t.params.selector||"",o=t.params.filter||"",s=t.params.style||"",a=t.params.weight,l=t.params.showLabel,u=t.params.hidden,c=r=>{let{name:n,value:i}=r.target;e({params:{...t.params,[n]:i||void 0}})};return(0,pv.jsxs)(pv.Fragment,{children:[(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,pv.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:r,onChange:r=>e({params:{...t.params,field:r.target.value}}),required:!0})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,pv.jsx)(sv,{name:"selector",value:i,onChange:c,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,pv.jsx)(sv,{name:"filter",value:o,onChange:c,placeholder:"Optional: filter which tuples to style (e.g., rel & (univ -> True))"})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,pv.jsx)("input",{type:"color",name:"value",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,value:r.target.value}}),required:!0})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Style"})}),(0,pv.jsxs)("select",{name:"style",className:"form-control",value:s,onChange:r=>e({params:{...t.params,style:r.target.value||void 0}}),children:[(0,pv.jsx)("option",{value:"",children:"Default"}),(0,pv.jsx)("option",{value:"solid",children:"Solid"}),(0,pv.jsx)("option",{value:"dashed",children:"Dashed"}),(0,pv.jsx)("option",{value:"dotted",children:"Dotted"})]})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Weight"})}),(0,pv.jsx)("input",{type:"number",name:"weight",className:"form-control",min:"0",step:"0.5",value:a??"",placeholder:"Default",onChange:r=>{let n=r.target.value,i=""===n?void 0:Number(n);e({params:{...t.params,weight:i}})}})]}),(0,pv.jsx)("div",{className:"input-group",children:(0,pv.jsxs)("div",{className:"form-check",children:[(0,pv.jsx)("input",{type:"checkbox",name:"showLabel",className:"form-check-input",id:"showLabel-checkbox",checked:!1!==l,onChange:r=>e({params:{...t.params,showLabel:!!r.target.checked&&void 0}})}),(0,pv.jsx)("label",{className:"form-check-label",htmlFor:"showLabel-checkbox",children:"Show Edge Label"})]})}),(0,pv.jsx)("div",{className:"input-group",children:(0,pv.jsxs)("div",{className:"form-check",children:[(0,pv.jsx)("input",{type:"checkbox",name:"hidden",className:"form-check-input",id:"hidden-checkbox",checked:!0===u,onChange:r=>e({params:{...t.params,hidden:!!r.target.checked||void 0}})}),(0,pv.jsx)("label",{className:"form-check-label",htmlFor:"hidden-checkbox",children:"Hide Edge"})]})})]})},gv=g(zm()),mv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})};return(0,gv.jsxs)(gv.Fragment,{children:[(0,gv.jsxs)("div",{className:"input-group",children:[(0,gv.jsx)("div",{className:"input-group-prepend",children:(0,gv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,gv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,gv.jsxs)("div",{className:"input-group",children:[(0,gv.jsx)("div",{className:"input-group-prepend",children:(0,gv.jsx)("span",{className:"input-group-text",children:"Direction"})}),(0,gv.jsxs)("select",{name:"direction",onChange:e,value:t.constraintData.params.direction||"clockwise",children:[(0,gv.jsx)("option",{value:"clockwise",children:"Clockwise"}),(0,gv.jsx)("option",{value:"counterclockwise",children:"Counterclockwise"})]})]})]})},yv=g(zm()),_v=({directiveData:t,onUpdate:e})=>{let r=t.params?.flag||"";return(0,yv.jsx)("div",{className:"input-group",children:(0,yv.jsxs)("select",{name:"flag",className:"form-control",value:r,onChange:r=>e({params:{...t.params,flag:r.target.value}}),children:[(0,yv.jsx)("option",{value:"",children:"Select flag..."}),(0,yv.jsx)("option",{value:"hideDisconnectedBuiltIns",children:"Hide disconnected built ins."}),(0,yv.jsx)("option",{value:"hideDisconnected",children:"Hide all disconnected."})]})})},vv=g(zm()),xv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:"number"===e.target.type?Number(n):n}})};return(0,vv.jsxs)(vv.Fragment,{children:[(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,vv.jsx)("input",{type:"text",name:"field",className:"form-control",onChange:e,required:!0})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text",children:"Selector"})}),(0,vv.jsx)("input",{type:"text",name:"selector",className:"form-control code-input",defaultValue:t.constraintData.params.selector||"",placeholder:"Optional: target specific atoms (e.g., Person)",onChange:e})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text infolabel",title:"Which 0-indexed element of the field to use as the group key.",children:"Group On"})}),(0,vv.jsx)("input",{type:"number",name:"groupOn",className:"form-control",onChange:e,required:!0})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text infolabel",title:"Which 0-indexed element of the field are group members.",children:"Add to Group"})}),(0,vv.jsx)("input",{type:"number",name:"addToGroup",className:"form-control",onChange:e,required:!0})]})]})},bv=g(zm()),Tv=t=>{let e=e=>{let{name:r,value:n,type:i,checked:o}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:"checkbox"===i?o:n}})};return(0,bv.jsxs)(bv.Fragment,{children:[(0,bv.jsxs)("div",{className:"input-group",children:[(0,bv.jsx)("div",{className:"input-group-prepend",children:(0,bv.jsx)("span",{className:"input-group-text infolabel",title:`${iv} or ${nv}`,children:"Selector"})}),(0,bv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,bv.jsxs)("div",{className:"input-group",children:[(0,bv.jsx)("div",{className:"input-group-prepend",children:(0,bv.jsx)("span",{className:"input-group-text",children:"Group Name"})}),(0,bv.jsx)("input",{type:"text",name:"name",className:"form-control",value:t.constraintData.params.name||"",onChange:e,placeholder:"Enter group name",required:!0})]}),(0,bv.jsxs)("label",{className:"inline-checkbox",children:[(0,bv.jsx)("input",{type:"checkbox",name:"addEdge",checked:t.constraintData.params.addEdge||!1,onChange:e}),(0,bv.jsx)("span",{children:"Add edge between groups"})]})]})},Ev=g(zm()),Ov=({directiveData:t,onUpdate:e})=>{let r=t.params.selector||"",n=t.params.name||"",i=t.params.color||"#000000",o=t.params.style||"",s=t.params.weight;return(0,Ev.jsxs)(Ev.Fragment,{children:[(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,Ev.jsx)(sv,{name:"selector",value:r,onChange:r=>{e({params:{...t.params,selector:r.target.value}})},required:!0})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Edge Name"})}),(0,Ev.jsx)("input",{type:"text",name:"name",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,name:r.target.value}}),required:!0})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,Ev.jsx)("input",{type:"color",name:"color",className:"form-control",defaultValue:i,onChange:r=>e({params:{...t.params,color:r.target.value}})})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Style"})}),(0,Ev.jsxs)("select",{name:"style",className:"form-control",value:o,onChange:r=>e({params:{...t.params,style:r.target.value||void 0}}),children:[(0,Ev.jsx)("option",{value:"",children:"Default"}),(0,Ev.jsx)("option",{value:"solid",children:"Solid"}),(0,Ev.jsx)("option",{value:"dashed",children:"Dashed"}),(0,Ev.jsx)("option",{value:"dotted",children:"Dotted"})]})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Weight"})}),(0,Ev.jsx)("input",{type:"number",name:"weight",className:"form-control",min:"0",step:"0.5",value:s??"",placeholder:"Default",onChange:r=>{let n=r.target.value,i=""===n?void 0:Number(n);e({params:{...t.params,weight:i}})}})]})]})},Sv=g(zm()),Nv=t=>{let e=t.directiveData||t.constraintData;if(!e)throw new Error("HideAtomSelector requires either directiveData or constraintData");return(0,Sv.jsxs)("div",{className:"input-group",children:[(0,Sv.jsx)("div",{className:"input-group-prepend",children:(0,Sv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Sv.jsx)(sv,{name:"selector",value:e.params.selector||"",onChange:r=>{let{name:n,value:i}=r.target;t.onUpdate({params:{...e.params,[n]:i}})},required:!0})]})},Av=g(zm()),wv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,Av.jsxs)(Av.Fragment,{children:[(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,Av.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:t.directiveData.params.field||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},required:!0})]}),(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Av.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,Av.jsx)(sv,{name:"filter",value:t.directiveData.params.filter||"",onChange:e,placeholder:"Optional: filter which tuples to hide (e.g., rel & (univ -> False))"})]})]})},Rv=g(zm()),Cv=({directiveData:t,onUpdate:e})=>{let r=t.params.selector||"",n=t.params.path||"",i=t.params.showLabels||!1;return(0,Rv.jsxs)(Rv.Fragment,{children:[(0,Rv.jsxs)("div",{className:"input-group",children:[(0,Rv.jsx)("div",{className:"input-group-prepend",children:(0,Rv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Rv.jsx)(sv,{name:"selector",value:r,onChange:r=>{e({params:{...t.params,selector:r.target.value}})},required:!0})]}),(0,Rv.jsxs)("div",{className:"input-group",children:[(0,Rv.jsx)("div",{className:"input-group-prepend",children:(0,Rv.jsx)("span",{className:"input-group-text",children:"Path"})}),(0,Rv.jsx)("input",{type:"text",name:"path",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,path:r.target.value}}),placeholder:"/path/to/icon.png",required:!0})]}),(0,Rv.jsxs)("label",{className:"inline-checkbox",children:[(0,Rv.jsx)("input",{type:"checkbox",name:"showLabels",defaultChecked:i,onChange:r=>e({params:{...t.params,showLabels:r.target.checked}})}),(0,Rv.jsx)("span",{children:"Show Labels"})]})]})},Lv=g(qm()),Iv=g(zm()),kv=[{value:"left",label:"Left",group:"relative"},{value:"right",label:"Right",group:"relative"},{value:"above",label:"Above",group:"relative"},{value:"below",label:"Below",group:"relative"},{value:"directlyLeft",label:"Directly Left",group:"direct"},{value:"directlyRight",label:"Directly Right",group:"direct"},{value:"directlyAbove",label:"Directly Above",group:"direct"},{value:"directlyBelow",label:"Directly Below",group:"direct"}],Dv=t=>{let e=(0,Lv.useCallback)((e=>{let r=t.constraintData.params.directions||[],n=r.includes(e)?r.filter((t=>t!==e)):[...r,e];t.onUpdate({params:{...t.constraintData.params,directions:n}})}),[t.constraintData.params,t.onUpdate]),r=t.constraintData.params.directions||[];return(0,Iv.jsxs)(Iv.Fragment,{children:[(0,Iv.jsxs)("div",{className:"input-group",children:[(0,Iv.jsx)("div",{className:"input-group-prepend",children:(0,Iv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,Iv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})},required:!0})]}),(0,Iv.jsxs)("div",{className:"direction-selector",children:[(0,Iv.jsx)("label",{className:"direction-selector__label",children:"Directions"}),(0,Iv.jsx)("div",{className:"direction-selector__grid",children:kv.map((t=>(0,Iv.jsxs)("label",{className:"direction-selector__option "+(r.includes(t.value)?"direction-selector__option--selected":""),title:`Toggle ${t.label}`,children:[(0,Iv.jsx)("input",{type:"checkbox",checked:r.includes(t.value),onChange:()=>e(t.value),className:"direction-selector__checkbox"}),(0,Iv.jsx)("span",{className:"direction-selector__text",children:t.label})]},t.value)))})]})]})},Pv=g(zm()),Mv=t=>(0,Pv.jsxs)("div",{className:"input-group",children:[(0,Pv.jsx)("div",{className:"input-group-prepend",children:(0,Pv.jsx)("span",{className:"input-group-text",children:"Sig"})}),(0,Pv.jsx)("input",{type:"text",className:"form-control",name:"sig",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n}})},required:!0})]}),jv=g(zm()),Kv=({directiveData:t,constraintData:e,onUpdate:r})=>{let n=t||e;if(!n)throw new Error("SizeSelector requires either directiveData or constraintData");let i=n.params.selector||"",o="number"==typeof n.params.width?n.params.width:100,s="number"==typeof n.params.height?n.params.height:60;return(0,jv.jsxs)(jv.Fragment,{children:[(0,jv.jsxs)("div",{className:"input-group",children:[(0,jv.jsx)("div",{className:"input-group-prepend",children:(0,jv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,jv.jsx)(sv,{name:"selector",value:i,onChange:t=>{r({params:{...n.params,selector:t.target.value}})},required:!0})]}),(0,jv.jsxs)("div",{className:"input-group",children:[(0,jv.jsx)("label",{children:(0,jv.jsx)("span",{className:"input-group-text",children:"Width"})}),(0,jv.jsx)("input",{type:"number",name:"width",className:"form-control",defaultValue:o,onChange:t=>r({params:{...n.params,width:Number(t.target.value)}}),required:!0}),(0,jv.jsx)("label",{children:(0,jv.jsx)("span",{className:"input-group-text",children:"Height"})}),(0,jv.jsx)("input",{type:"number",name:"height",className:"form-control",defaultValue:s,onChange:t=>r({params:{...n.params,height:Number(t.target.value)}}),required:!0})]})]})},Uv=g(zm()),Fv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,Uv.jsxs)(Uv.Fragment,{children:[(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"To Tag"})}),(0,Uv.jsx)(sv,{name:"toTag",value:t.directiveData.params.toTag||"",onChange:e,placeholder:"Atoms to receive this tag (e.g., Person)"})]}),(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text",children:"Name"})}),(0,Uv.jsx)("input",{type:"text",name:"name",className:"form-control",defaultValue:t.directiveData.params.name||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},placeholder:"Attribute name to display",required:!0})]}),(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Value"})}),(0,Uv.jsx)(sv,{name:"value",value:t.directiveData.params.value||"",onChange:e,placeholder:"N-ary selector for tag values (e.g., age, score)"})]})]})},$v=g(qm());Ta(),Ia();var Hv="#000000";function Bv(t){return!t||"object"!=typeof t||Array.isArray(t)?{}:t}function qv(t,e){let r={...t};for(let[t,n]of Object.entries(e))(void 0===r[t]||null===r[t])&&(r[t]=n);return r}function Gv(t,e){let r=Bv(e);switch(t){case"size":return qv(r,{width:100,height:60});case"align":return qv(r,{direction:"horizontal"});case"cyclic":return qv(r,{direction:"clockwise"});case"groupselector":return qv(r,{addEdge:!1});default:return{...r}}}function zv(t,e){let r=Bv(e);switch(t){case"size":return qv(r,{width:100,height:60});case"atomColor":case"edgeColor":return qv(r,{value:Hv});case"inferredEdge":return qv(r,{color:Hv});case"icon":return qv(r,{showLabels:!1});default:return{...r}}}var Vv=g(zm());function Yv(t,e){function r(t){return"cyclic"===t?"cyclic":"orientation"===t?"orientation":"align"===t?"align":"groupfield"===t||"groupselector"===t?"group":"size"===t?"size":"hideAtom"===t?"hideAtom":"unknown"}let n=[];if(t.length>0){n.push("constraints:");for(let e of t){e.comment&&n.push(` # ${e.comment}`);let t={[r(e.type)]:Gv(e.type,e.params)},i=ba.dump([t],{flowLevel:2}).trim();n.push(" "+i)}}if(e.length>0){n.length>0&&n.push(""),n.push("directives:");for(let t of e){t.comment&&n.push(` # ${t.comment}`);let e=zv(t.type,t.params);if("flag"===t.type){let r=e.flag||"";n.push(` - ${t.type}: ${r}`)}else{let r={[t.type]:e},i=ba.dump([r],{flowLevel:2}).trim();n.push(" "+i)}}}return n.join("\n")+(n.length>0?"\n":"")}var Wv=["orientation","cyclic","group","align","size","hideAtom"],Xv=["atomColor","edgeColor","size","icon","projection","attribute","hideField","inferredEdge","hideAtom","flag","tag"],Qv=["constraints","directives"];function Jv(t){let e,r={isValid:!0,error:null,warnings:[]};if(!t||!t.trim())return r;try{e=ba.load(t)}catch(t){if(t instanceof ba.YAMLException){let e=void 0!==t.mark?.line?t.mark.line+1:void 0,n=void 0!==t.mark?.column?t.mark.column+1:void 0,i=e&&n?` (line ${e}, column ${n})`:"";r.isValid=!1,r.error=`YAML syntax error${i}: ${t.reason||t.message}`}else r.isValid=!1,r.error=`Invalid YAML: ${t.message}`;return r}if(e&&"object"==typeof e){let t=Object.keys(e);for(let e of t)Qv.includes(e)||r.warnings.push(`Unrecognized top-level key: "${e}". Expected: ${Qv.join(", ")}`);if(Array.isArray(e.constraints))for(let t=0;t{let[e,r]=(0,$v.useState)(null),n=(0,$v.useCallback)((()=>{let e=Jv(t.yamlValue);r(e.error)}),[t.yamlValue]);return(0,$v.useEffect)((()=>{let e=Jv(t.yamlValue);r(e.error)}),[]),(0,Vv.jsx)("div",{className:"cnd-layout-interface__code-view",role:"region","aria-label":"YAML Code Editor",children:(0,Vv.jsxs)("div",{className:"code-view-card",children:[e&&(0,Vv.jsx)("div",{className:"alert alert-danger py-2 mb-2",role:"alert",children:(0,Vv.jsxs)("small",{children:[(0,Vv.jsx)("strong",{children:"❌ "}),e]})}),(0,Vv.jsx)("textarea",{id:"webcola-cnd",className:"form-control code-view-textarea",value:t.yamlValue,onChange:t.handleTextareaChange,onBlur:n,disabled:t.disabled,rows:16,spellCheck:!1,"aria-label":"CND Layout Specification YAML","aria-invalid":e?"true":"false",placeholder:""})]})})},tx=g(qm()),ex=(t=1e3)=>{let[e,r]=(0,tx.useState)(!0);return(0,tx.useEffect)((()=>{let e=setTimeout((()=>{r(!1)}),t);return()=>clearTimeout(e)}),[t]),{isHighlighted:e}},rx=g(zm()),nx=(t,e,r)=>{let n=r;switch(t){case"cyclic":return(0,rx.jsx)(mv,{constraintData:e,onUpdate:r});case"orientation":default:return(0,rx.jsx)(Dv,{constraintData:e,onUpdate:r});case"align":return(0,rx.jsx)(lv,{constraintData:e,onUpdate:r});case"groupfield":return(0,rx.jsx)(xv,{constraintData:e,onUpdate:r});case"groupselector":return(0,rx.jsx)(Tv,{constraintData:e,onUpdate:r});case"size":return(0,rx.jsx)(Kv,{constraintData:e,onUpdate:n});case"hideAtom":return(0,rx.jsx)(Nv,{constraintData:e,onUpdate:n})}},ix=t=>{let{isHighlighted:e}=ex(1e3),[r,n]=(0,rv.useState)(!1),i=t.constraintData.collapsed??!1,o=(0,rv.useCallback)((()=>{t.onUpdate({collapsed:!i})}),[i,t.onUpdate]),s=(0,rv.useCallback)((e=>{t.onUpdate({comment:e.target.value})}),[t.onUpdate]),a=(0,rv.useCallback)((e=>{let r=e.target.value;t.onUpdate({type:r,params:{}})}),[t.onUpdate]),l=[t.className?t.className:"",e?"highlight":"","noCodeCard",i?"noCodeCard--collapsed":""].filter(Boolean).join(" ");return(0,rx.jsxs)("div",{className:l,...t.dragHandleProps,children:[(0,rx.jsxs)("div",{className:"cardHeader",children:[(0,rx.jsx)("button",{className:"collapseButton",title:i?"Expand":"Collapse","aria-label":i?"Expand constraint":"Collapse constraint","aria-expanded":!i,type:"button",onClick:o,children:(0,rx.jsx)("span",{"aria-hidden":"true",children:i?"▶":"▼"})}),t.dragHandleProps&&(0,rx.jsx)("span",{className:"dragHandle",title:"Drag to reorder","aria-label":"Drag handle",children:"⋮⋮"}),(0,rx.jsx)("button",{className:"closeButton",title:"Remove constraint","aria-label":"Remove constraint",type:"button",onClick:t.onRemove,children:(0,rx.jsx)("span",{"aria-hidden":"true",children:"×"})})]}),(0,rx.jsxs)("div",{className:"input-group",children:[(0,rx.jsx)("div",{className:"input-group-prepend",children:(0,rx.jsx)("span",{className:"input-group-text",title:"Choose constraint type",children:"Constraint"})}),(0,rx.jsxs)("select",{onChange:a,value:t.constraintData.type,children:[(0,rx.jsx)("option",{value:"orientation",title:"Specify the relative positioning of elements.",children:"Orientation"}),(0,rx.jsx)("option",{value:"cyclic",title:"Arrange elements along the perimeter of a circle.",children:"Cyclic"}),(0,rx.jsx)("option",{value:"align",title:"Ensure elements are aligned horizontally or vertically.",children:"Align"}),(0,rx.jsx)("option",{value:"groupfield",title:"Group elements based on a field.",children:"Group by field"}),(0,rx.jsx)("option",{value:"groupselector",title:"Group elements based on a selector.",children:"Group by selector"}),(0,rx.jsx)("option",{value:"size",title:"Set the width and height of elements matching the selector.",children:"Size"}),(0,rx.jsx)("option",{value:"hideAtom",title:"Hide elements matching the selector from the visualization.",children:"Hide Atom"})]})]}),!i&&(0,rx.jsxs)(rx.Fragment,{children:[(0,rx.jsx)("div",{className:"params",children:nx(t.constraintData.type,t.constraintData,t.onUpdate)}),(0,rx.jsx)("div",{className:"commentSection",children:r||t.constraintData.comment?(0,rx.jsx)("input",{type:"text",className:"commentInput",placeholder:"Add a note...",value:t.constraintData.comment||"",onChange:s,onFocus:()=>n(!0),onBlur:()=>n(!1)}):(0,rx.jsx)("button",{type:"button",className:"addCommentButton",onClick:()=>n(!0),children:"+ Add note"})})]}),i&&t.constraintData.comment&&(0,rx.jsxs)("div",{className:"collapsedComment",title:t.constraintData.comment,children:["💬 ",t.constraintData.comment.length>30?t.constraintData.comment.slice(0,30)+"...":t.constraintData.comment]})]})},ox=g(qm()),sx=g(zm()),ax=(t,e,r)=>{let n=r;switch(t){case"attribute":return(0,sx.jsx)(cv,{directiveData:e,onUpdate:r});case"hideField":return(0,sx.jsx)(wv,{directiveData:e,onUpdate:r});case"hideAtom":return(0,sx.jsx)(Nv,{directiveData:e,onUpdate:n});case"icon":return(0,sx.jsx)(Cv,{directiveData:e,onUpdate:r});case"atomColor":return(0,sx.jsx)(dv,{directiveData:e,onUpdate:r});case"edgeColor":return(0,sx.jsx)(fv,{directiveData:e,onUpdate:r});case"size":return(0,sx.jsx)(Kv,{directiveData:e,onUpdate:n});case"projection":return(0,sx.jsx)(Mv,{directiveData:e,onUpdate:r});case"flag":default:return(0,sx.jsx)(_v,{directiveData:e,onUpdate:r});case"inferredEdge":return(0,sx.jsx)(Ov,{directiveData:e,onUpdate:r});case"tag":return(0,sx.jsx)(Fv,{directiveData:e,onUpdate:r})}},lx=t=>{let{isHighlighted:e}=ex(1e3),[r,n]=(0,ox.useState)(!1),i=t.directiveData.collapsed??!1,o=(0,ox.useCallback)((()=>{t.onUpdate({collapsed:!i})}),[i,t.onUpdate]),s=(0,ox.useCallback)((e=>{t.onUpdate({comment:e.target.value})}),[t.onUpdate]),a=(0,ox.useCallback)((e=>{let r=e.target.value;t.onUpdate({type:r,params:{}})}),[t.onUpdate]),l=[e&&"highlight","noCodeCard",i?"noCodeCard--collapsed":""].filter(Boolean).join(" ");return(0,sx.jsxs)("div",{className:l,...t.dragHandleProps,children:[(0,sx.jsxs)("div",{className:"cardHeader",children:[(0,sx.jsx)("button",{className:"collapseButton",title:i?"Expand":"Collapse","aria-label":i?"Expand directive":"Collapse directive","aria-expanded":!i,type:"button",onClick:o,children:(0,sx.jsx)("span",{"aria-hidden":"true",children:i?"▶":"▼"})}),t.dragHandleProps&&(0,sx.jsx)("span",{className:"dragHandle",title:"Drag to reorder","aria-label":"Drag handle",children:"⋮⋮"}),(0,sx.jsx)("button",{className:"closeButton",title:"Remove directive","aria-label":"Remove directive",type:"button",onClick:t.onRemove,children:(0,sx.jsx)("span",{"aria-hidden":"true",children:"×"})})]}),(0,sx.jsxs)("div",{className:"input-group",children:[(0,sx.jsx)("div",{className:"input-group-prepend",children:(0,sx.jsx)("span",{className:"input-group-text",children:"Directive"})}),(0,sx.jsxs)("select",{onChange:a,value:t.directiveData.type,children:[(0,sx.jsx)("option",{value:"flag",children:"Visibility Flag"}),(0,sx.jsx)("option",{value:"hideAtom",children:"Hide Atom"}),(0,sx.jsx)("option",{value:"attribute",children:"Attribute"}),(0,sx.jsx)("option",{value:"tag",children:"Tag"}),(0,sx.jsx)("option",{value:"hideField",children:"Hide Field"}),(0,sx.jsx)("option",{value:"icon",children:"Icon"}),(0,sx.jsx)("option",{value:"atomColor",children:"Color (Atom)"}),(0,sx.jsx)("option",{value:"edgeColor",children:"Edge Style"}),(0,sx.jsx)("option",{value:"size",children:"Size"}),(0,sx.jsx)("option",{value:"projection",children:"Projection"}),(0,sx.jsx)("option",{value:"inferredEdge",children:"Inferred Edge"})]})]}),!i&&(0,sx.jsxs)(sx.Fragment,{children:[(0,sx.jsx)("div",{className:"params",children:ax(t.directiveData.type,t.directiveData,t.onUpdate)}),(0,sx.jsx)("div",{className:"commentSection",children:r||t.directiveData.comment?(0,sx.jsx)("input",{type:"text",className:"commentInput",placeholder:"Add a note...",value:t.directiveData.comment||"",onChange:s,onFocus:()=>n(!0),onBlur:()=>n(!1)}):(0,sx.jsx)("button",{type:"button",className:"addCommentButton",onClick:()=>n(!0),children:"+ Add note"})})]}),i&&t.directiveData.comment&&(0,sx.jsxs)("div",{className:"collapsedComment",title:t.directiveData.comment,children:["💬 ",t.directiveData.comment.length>30?t.directiveData.comment.slice(0,30)+"...":t.directiveData.comment]})]})};Ta();var ux=g(zm());function cx(){return typeof window<"u"&&window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():(console.error("Web Crypto API not available, falling back to Math.random for ID generation"),`${Date.now().toString(36)}-${Math.random().toString(36).substring(2,15)}-${Math.random().toString(36).substring(2,15)}`)}function hx(t){let e=[],r=[],n=ba.load(t),i=n?.constraints,o=n?.directives,s=(t,e)=>{let r=new Map,n=t.split("\n"),i=!1,o="",s=-1;for(let t of n){let n=t.trim();if(n!==`${e}:`){if(i&&/^[a-zA-Z]/.test(n)&&n.endsWith(":")&&!n.startsWith("-"))i=!1;else if(i)if(n.startsWith("#")){let t=n.slice(1).trim();o=o?o+" "+t:t}else n.startsWith("-")&&(s++,o&&(r.set(s,o),o=""))}else i=!0}return r},a=s(t,"constraints"),l=s(t,"directives");if(i){if(!Array.isArray(i))throw new Error("Invalid YAML: 'constraints' should be an array");e=i.map(((t,e)=>{let r=function(t){let e=Object.keys(t)[0],r=t[e];if("cyclic"===e||"orientation"===e||"align"===e||"size"===e||"hideAtom"===e)return e;if("group"===e){if(r.selector)return"groupselector";if(r.field)return"groupfield"}return"unknown"}(t);if("unknown"===r)throw new Error(`Unsupported constraint type in YAML: ${JSON.stringify(t)}`);let n=Gv(r,t[Object.keys(t)[0]]);return{id:cx(),type:r,params:n,comment:a.get(e)}}))}if(o){if(!Array.isArray(o))throw new Error("Invalid YAML: 'directives' should be an array");r=o.map(((t,e)=>{let r=Object.keys(t)[0],n=t[r];"string"==typeof n&&(n={flag:n}),(!n||"object"!=typeof n)&&(n={});let i=zv(r,n);return{id:cx(),type:r,params:i,comment:l.get(e)}}))}return{constraints:e,directives:r}}var dx=({yamlValue:t,constraints:e,setConstraints:r,directives:n,setDirectives:i,disabled:o=!1})=>{let[s,a]=(0,ev.useState)(null),[l,u]=(0,ev.useState)(null),c=(0,ev.useCallback)(((t,e)=>{r((r=>r.map((r=>{if(r.id===t){let t=void 0!==e.params?{...r.params,...e.params}:r.params,n={...r,...e,params:t};return{...n,params:Gv(n.type,n.params)}}return r}))))}),[r]),h=(0,ev.useCallback)((t=>{r((e=>e.map((e=>({...e,collapsed:t})))))}),[r]),d=(0,ev.useCallback)(((t,e)=>{a(e),t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e),t.target.classList.add("dragging")}),[]),p=(0,ev.useCallback)((t=>{a(null),t.target.classList.remove("dragging")}),[]),f=(0,ev.useCallback)((t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"}),[]),g=(0,ev.useCallback)(((t,e)=>{t.preventDefault(),s&&s!==e&&r((t=>{let r=t.findIndex((t=>t.id===s)),n=t.findIndex((t=>t.id===e));if(-1===r||-1===n)return t;let i=[...t],[o]=i.splice(r,1);return i.splice(n,0,o),i}))}),[s,r]),m=(0,ev.useCallback)(((t,e)=>{i((r=>r.map((r=>{if(r.id!==t)return r;let n=void 0!==e.params?{...r.params,...e.params}:r.params,i={...r,...e,params:n};return{...i,params:zv(i.type,i.params)}}))))}),[i]),y=(0,ev.useCallback)((t=>{i((e=>e.map((e=>({...e,collapsed:t})))))}),[i]),_=(0,ev.useCallback)(((t,e)=>{u(e),t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e),t.target.classList.add("dragging")}),[]),v=(0,ev.useCallback)((t=>{u(null),t.target.classList.remove("dragging")}),[]),x=(0,ev.useCallback)((t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"}),[]),b=(0,ev.useCallback)(((t,e)=>{t.preventDefault(),l&&l!==e&&i((t=>{let r=t.findIndex((t=>t.id===l)),n=t.findIndex((t=>t.id===e));if(-1===r||-1===n)return t;let i=[...t],[o]=i.splice(r,1);return i.splice(n,0,o),i}))}),[l,i]);return(0,ev.useEffect)((()=>{if(console.log(t),t)try{(t=>{let{constraints:e,directives:n}=hx(t);r((t=>e)),i((t=>n))})(t)}catch(t){console.error("Failed to load YAML into Structured Builder:",t)}}),[t]),(0,ux.jsxs)("section",{id:"noCodeViewContainer","aria-label":"Structured Builder Container",children:[(0,ux.jsxs)("div",{children:[(0,ux.jsxs)("div",{className:"sectionHeader",children:[(0,ux.jsxs)("h5",{children:["Constraints ",(0,ux.jsx)("button",{type:"button",onClick:()=>{let t={id:cx(),type:"orientation",params:{}};r((e=>[t,...e]))},title:"Click to add a new constraint","aria-label":"Click to add a new constraint",disabled:o,children:"+"})]}),e.length>0&&(0,ux.jsxs)("div",{className:"collapseAllButtons",children:[(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>h(!0),title:"Collapse all constraints",children:"Collapse All"}),(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>h(!1),title:"Expand all constraints",children:"Expand All"})]})]}),(0,ux.jsx)("section",{className:"cardContainer",id:"constraintContainer","aria-label":"Constraints List",children:e.map((t=>(0,ux.jsx)(ix,{constraintData:t,onUpdate:e=>c(t.id,e),onRemove:()=>{r((e=>e.filter((e=>e.id!==t.id))))},dragHandleProps:{draggable:!0,onDragStart:e=>d(e,t.id),onDragEnd:p,onDragOver:f,onDrop:e=>g(e,t.id)}},t.id)))})]}),(0,ux.jsx)("hr",{}),(0,ux.jsxs)("div",{children:[(0,ux.jsxs)("div",{className:"sectionHeader",children:[(0,ux.jsxs)("h5",{children:["Directives ",(0,ux.jsx)("button",{type:"button",onClick:()=>{let t={id:cx(),type:"flag",params:{}};i((e=>[t,...e]))},title:"Click to add a new directive","aria-label":"Click to add a new directive",disabled:o,children:"+"})]}),n.length>0&&(0,ux.jsxs)("div",{className:"collapseAllButtons",children:[(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>y(!0),title:"Collapse all directives",children:"Collapse All"}),(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>y(!1),title:"Expand all directives",children:"Expand All"})]})]}),(0,ux.jsx)("section",{className:"cardContainer",id:"directiveContainer","aria-label":"Directives List",children:n.map((t=>(0,ux.jsx)(lx,{directiveData:t,onUpdate:e=>m(t.id,e),onRemove:()=>{i((e=>e.filter((e=>e.id!==t.id))))},dragHandleProps:{draggable:!0,onDragStart:e=>_(e,t.id),onDragEnd:v,onDragOver:x,onDrop:e=>b(e,t.id)}},t.id)))})]})]})},px=g(zm()),fx=({yamlValue:t,onChange:e,isNoCodeView:r,onViewChange:n,constraints:i,setConstraints:o,directives:s,setDirectives:a,className:l="",disabled:u=!1,"aria-label":c="CND Layout Specification Interface"})=>{let[h,d]=(0,tv.useState)(null),[p,f]=(0,tv.useState)(null),g=(0,tv.useRef)(!1),m=(0,tv.useRef)(""),y=(0,tv.useCallback)((()=>({yaml:r?Yv(i,s):t,constraints:JSON.parse(JSON.stringify(i)),directives:JSON.parse(JSON.stringify(s))})),[r,t,i,s]);(0,tv.useCallback)((()=>{if(g.current)return;let t=y(),e=JSON.stringify(t);e!==m.current&&(d({yaml:m.current?JSON.parse(m.current).yaml:"",constraints:m.current?JSON.parse(m.current).constraints:[],directives:m.current?JSON.parse(m.current).directives:[]}),f(null),m.current=e)}),[y]);let _=(0,tv.useRef)(null);(0,tv.useEffect)((()=>g.current?(g.current=!1,void(m.current=JSON.stringify(y()))):(_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{let t=y(),e=JSON.stringify(t);if(m.current&&e!==m.current){let t=JSON.parse(m.current);d(t),f(null)}m.current=e}),500),()=>{_.current&&clearTimeout(_.current)})),[t,i,s,y]),(0,tv.useEffect)((()=>{m.current||(m.current=JSON.stringify(y()))}),[]);let v=(0,tv.useCallback)((()=>{!h||u||(g.current=!0,f(y()),e(h.yaml),o((()=>h.constraints)),a((()=>h.directives)),d(null))}),[h,u,y,e,o,a]),x=(0,tv.useCallback)((()=>{!p||u||(g.current=!0,d(y()),e(p.yaml),o((()=>p.constraints)),a((()=>p.directives)),f(null))}),[p,u,y,e,o,a]),b=(0,tv.useCallback)((r=>{if(!u){if(r.target.checked)try{let e=hx(t);o((()=>e.constraints)),a((()=>e.directives))}catch(t){console.warn("Failed to parse YAML when switching to Structured Builder:",t)}else{let t=Yv(i,s);e(t)}n(r.target.checked)}}),[u,n,e,i,s,t,o,a]),T=(0,tv.useCallback)((t=>{u||e(t.target.value)}),[u,e]),E=["cnd-layout-interface","container-fluid",u&&"cnd-layout-interface--disabled",l].filter(Boolean).join(" "),O=["cnd-layout-interface__toggle-label","small",!r&&"text-primary fw-semibold"].filter(Boolean).join(" "),S=["cnd-layout-interface__toggle-label","small",r&&"text-primary fw-semibold"].filter(Boolean).join(" ");return(0,px.jsxs)("section",{id:"cnd-layout-interface-container",className:E,"aria-label":c,children:[(0,px.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-3 pb-2 border-bottom",children:[(0,px.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[(0,px.jsx)("span",{className:O,children:"Code View"}),(0,px.jsxs)("label",{className:"cnd-layout-interface__toggle",htmlFor:"cnd-layout-toggle",children:[(0,px.jsx)("input",{id:"cnd-layout-toggle",type:"checkbox",checked:r,onChange:b,disabled:u,className:"cnd-layout-interface__toggle-input","aria-describedby":"cnd-layout-toggle-description",role:"switch"}),(0,px.jsx)("span",{className:"cnd-layout-interface__toggle-slider"})]}),(0,px.jsx)("span",{className:S,children:"Structured Builder"})]}),(0,px.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,px.jsx)("button",{type:"button",className:"cnd-layout-interface__undo-btn",onClick:v,disabled:u||!h,"aria-label":"Undo last change",title:"Undo",children:"↶"}),(0,px.jsx)("button",{type:"button",className:"cnd-layout-interface__redo-btn",onClick:x,disabled:u||!p,"aria-label":"Redo last change",title:"Redo",children:"↷"})]})]}),(0,px.jsx)("div",{id:"cnd-layout-toggle-description",className:"visually-hidden",children:"Toggle between Code View (text editor) and Structured Builder (low-code visual editor) for CND layout specification"}),(0,px.jsx)("div",{className:"cnd-layout-interface__content",children:r?(0,px.jsx)(dx,{yamlValue:t,constraints:i,setConstraints:o,directives:s,setDirectives:a}):(0,px.jsx)(Zv,{constraints:i,directives:s,yamlValue:t,handleTextareaChange:T,disabled:u})})]})},gx=g(zm()),mx=g(zm());typeof window<"u"&&Promise.resolve().then((()=>(Rm(),Em))).then((({WebColaCnDGraph:t})=>{Promise.all([Promise.resolve().then((()=>g(Vm()))),Promise.resolve().then((()=>g(Ym())))]).then((([e,r])=>{window.d3=e,window.cola=r,typeof customElements<"u"&&!customElements.get("webcola-cnd-graph")&&customElements.define("webcola-cnd-graph",t),Promise.resolve().then((()=>(Im(),Lm))).then((({StructuredInputGraph:t})=>{typeof customElements<"u"&&!customElements.get("structured-input-graph")&&customElements.define("structured-input-graph",t)})).catch(console.error)})).catch(console.error)})).catch(console.error);var yx=class{constructor(t={}){this.config={debug:!1,version:"1.0.0",...t}}init(){this.config.debug}getConfig(){return{...this.config}}updateConfig(t){this.config={...this.config,...t}}};return t.AlloyDataInstance=R_,t.AlloyGraph=Wm,t.AlloyInstance=Xm,t.CndCore=yx,t.DotDataInstance=class{constructor(t){this.eventListeners=new Map,this.graph=C_.default.read(t),this.graph.edges().forEach((t=>{let e=this.graph.edge(t);e&&e.label&&(this.graph.removeEdge(t),this.addEdge(t.v,t.w,e.label))}))}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}addEdge(t,e,r){let n=`${t}-${e}-${r}`;this.graph.setEdge(t,e,r,n)}reify(){return C_.default.write(this.graph)}getAtoms(){let t=[];return this.graph.nodes().forEach((e=>{let r=this.graph.node(e);r&&r.label&&t.push({id:e,type:r.type||"unknown",label:r.label})})),t}getAtomType(t){let e=this.graph.node(t);if(!e)throw new Error(`Atom with id ${t} not found`);let r=e.type||"unknown";return{id:r,types:[r],atoms:this.getAtoms().filter((t=>t.type===r)),isBuiltin:!1}}getTypes(){let t=this.getAtoms(),e={};return t.forEach((t=>{let r=t.type||"unknown";e[r]||(e[r]={id:r,types:[r],atoms:[],isBuiltin:!1}),e[r].atoms.push(t)})),Object.values(e)}applyProjections(t){return console.log("applyProjections is not implemented for DotDataInstance"),this}generateGraph(t,e){return this.graph.nodes().forEach((r=>{let n=this.graph.outEdges(r)||[],i=this.graph.inEdges(r)||[];if(0===n.length&&0===i.length){let n=this.getAtomType(r).isBuiltin;(t||n&&e)&&this.graph.removeNode(r)}})),this.graph}getRelations(){let t=new Map;this.graph.edges().forEach((e=>{let r=e.v,n=e.w,i=this.graph.edge(e)||"",o={atoms:[r,n],types:[this.getAtomType(r).id,this.getAtomType(n).id]};t.has(i)||t.set(i,{label:i,tuples:[],types:o.types}),t.get(i).tuples.push(o)}));let e=[];return t.forEach(((t,r)=>{e.push({id:r,name:r,types:t.types,tuples:t.tuples})})),e}addAtom(t){if(this.graph.hasNode(t.id))throw new Error(`Atom with id ${t.id} already exists`);this.graph.setNode(t.id,{type:t.type,label:t.label}),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=`${t}:${e.atoms.join("-")}`;if(this.graph.hasEdge(r,n,i))throw new Error(`Relation tuple ${t} with atoms ${e.atoms.join(", ")} already exists`);this.addEdge(r,n,t),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=`${t}:${e.atoms.join("-")}`;if(!this.graph.hasEdge(r,n,i))throw new Error(`Relation tuple ${t} with atoms ${e.atoms.join(", ")} does not exist`);this.graph.removeEdge(r,n,i),this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}removeAtom(t){if(!this.graph.hasNode(t))throw new Error(`Atom with id ${t} does not exist`);this.graph.removeNode(t),this.emitEvent({type:"atomRemoved",data:{atomId:t}})}addFromDataInstance(t,e){throw new Error("Method not implemented. DotDataInstance does not support adding from another data instance.")}},t.Evaluators=u_,t.ForgeEvaluator=__,t.InstanceBuilder=({instance:t,onChange:e,disabled:r=!1,className:n=""})=>{let[i,o]=(0,U_.useState)({id:"",label:"",type:"Entity"}),s=$_(t,i.type.trim()||"Entity"),[a,l]=(0,U_.useState)({name:"",atomIds:["",""]}),[u,c]=(0,U_.useState)(""),h=t.getAtoms(),d=t.getRelations(),p=(0,U_.useCallback)((()=>{e&&e(t)}),[t,e]),f=(0,U_.useCallback)((e=>{if(e.preventDefault(),!i.label.trim())return void c("Atom label is required");let r=i.type.trim()||"Entity",n=i.id.trim()||$_(t,r);if(n)if(t.getAtoms().some((t=>t.id===n)))c("Atom ID already exists");else try{let e={id:n,label:i.label.trim(),type:r};t.addAtom(e),o({id:"",label:"",type:"Entity"}),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to add atom")}else c("Atom ID could not be generated")}),[i,t,p]),g=(0,U_.useCallback)((e=>{try{t.removeAtom(e),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to remove atom")}}),[t,p]),m=(0,U_.useCallback)((()=>{l((t=>({...t,atomIds:[...t.atomIds,""]})))}),[]),y=(0,U_.useCallback)((()=>{l((t=>({...t,atomIds:t.atomIds.length>2?t.atomIds.slice(0,-1):t.atomIds})))}),[]),_=(0,U_.useCallback)(((t,e)=>{l((r=>({...r,atomIds:r.atomIds.map(((r,n)=>n===t?e:r))})))}),[]),v=(0,U_.useCallback)((e=>{if(e.preventDefault(),!a.name.trim())return void c("Relation name is required");let r=a.atomIds.map((t=>t.trim())).filter((t=>""!==t));if(r.length<2)c("At least 2 atoms are required for a relation");else if(r.length===a.atomIds.length)try{let e={atoms:r,types:r.map((()=>"unknown"))};t.addRelationTuple(a.name.trim(),e),l({name:"",atomIds:["",""]}),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to add relation")}else c("All atom positions must be selected")}),[a,t,p]),x=(0,U_.useCallback)(((e,r)=>{try{t.removeRelationTuple(e,r),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to remove relation")}}),[t,p]),b=(0,U_.useCallback)((()=>{try{t.getAtoms().map((t=>t.id)).forEach((e=>t.removeAtom(e))),t.getRelations().map((t=>t.id)).forEach((e=>{let r=t.getRelations().find((t=>t.id===e));r&&r.tuples.forEach((r=>t.removeRelationTuple(e,r)))})),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to clear instance")}}),[t,p]),[T,E]=(0,U_.useState)(null),O=(0,U_.useCallback)((()=>{if(console.log("Instance in handleReify:",t),console.log("typeof instance.reify:",typeof t.reify),"function"==typeof t.reify)try{let e=t.reify();E(e)}catch(t){E("Re-ify failed: "+(t instanceof Error?t.message:String(t)))}else E("Re-ify not supported on this instance.")}),[t]),S=(0,U_.useCallback)((t=>2===t.atoms.length?`${t.atoms[0]} → ${t.atoms[1]}`:`(${t.atoms.join(", ")})`),[]);return(0,F_.jsxs)("div",{className:`instance-builder ${n}`,children:[(0,F_.jsxs)("div",{className:"instance-builder__header",children:[(0,F_.jsx)("h2",{children:"Instance Builder"}),(0,F_.jsxs)("div",{className:"instance-builder__stats",children:[(0,F_.jsxs)("span",{children:[h.length," atoms"]}),(0,F_.jsxs)("span",{children:[d.reduce(((t,e)=>t+e.tuples.length),0)," relations"]})]})]}),u&&(0,F_.jsxs)("div",{className:"instance-builder__error",children:[u,(0,F_.jsx)("button",{type:"button",onClick:()=>c(""),"aria-label":"Clear error",children:"×"})]}),(0,F_.jsxs)("div",{className:"instance-builder__content",children:[(0,F_.jsxs)("section",{className:"instance-builder__section",children:[(0,F_.jsx)("h3",{children:"Atoms"}),(0,F_.jsxs)("form",{onSubmit:f,className:"instance-builder__form",children:[(0,F_.jsxs)("div",{className:"form-row",children:[(0,F_.jsx)("input",{type:"text",placeholder:`ID (suggested: ${s})`,value:i.id,onChange:t=>o((e=>({...e,id:t.target.value}))),disabled:r,"aria-label":"Atom ID"}),(0,F_.jsx)("input",{type:"text",placeholder:"Label",value:i.label,onChange:t=>o((e=>({...e,label:t.target.value}))),disabled:r,required:!0}),(0,F_.jsx)("input",{type:"text",placeholder:"Type",value:i.type,onChange:t=>o((e=>({...e,type:t.target.value}))),disabled:r}),(0,F_.jsx)("button",{type:"submit",disabled:r,children:"Add Atom"})]}),""===i.id&&(0,F_.jsxs)("div",{style:{fontSize:"0.85em",color:"#888",marginTop:2},children:["Suggested ID: ",(0,F_.jsx)("code",{children:s})]})]}),(0,F_.jsx)("div",{className:"instance-builder__list",children:0===h.length?(0,F_.jsx)("p",{className:"empty-state",children:"No atoms yet. Add one above."}):h.map((t=>(0,F_.jsxs)("div",{className:"list-item",children:[(0,F_.jsxs)("div",{className:"item-info",children:[(0,F_.jsx)("strong",{children:t.id}),(0,F_.jsx)("span",{className:"item-label",children:t.label}),(0,F_.jsx)("span",{className:"item-type",children:t.type})]}),(0,F_.jsx)("button",{type:"button",onClick:()=>g(t.id),disabled:r,className:"remove-button","aria-label":`Remove atom ${t.id}`,children:"Remove"})]},t.id)))})]}),(0,F_.jsxs)("section",{className:"instance-builder__section",children:[(0,F_.jsx)("h3",{children:"Relations (N-ary Support)"}),(0,F_.jsxs)("form",{onSubmit:v,className:"instance-builder__form",children:[(0,F_.jsx)("div",{className:"form-row",children:(0,F_.jsx)("input",{type:"text",placeholder:"Relation Name",value:a.name,onChange:t=>l((e=>({...e,name:t.target.value}))),disabled:r,required:!0})}),(0,F_.jsxs)("div",{className:"relation-atoms",children:[(0,F_.jsxs)("div",{style:{fontSize:"0.9em",color:"#666",marginBottom:8},children:["Atoms (arity: ",a.atomIds.length,"):"]}),a.atomIds.map(((t,e)=>(0,F_.jsxs)("div",{className:"atom-selector",children:[(0,F_.jsxs)("label",{style:{fontSize:"0.85em",color:"#666"},children:["Position ",e+1,":"]}),(0,F_.jsxs)("select",{value:t,onChange:t=>_(e,t.target.value),disabled:r,required:!0,children:[(0,F_.jsx)("option",{value:"",children:"Select Atom"}),h.map((t=>(0,F_.jsxs)("option",{value:t.id,children:[t.id," (",t.label,")"]},t.id)))]})]},e))),(0,F_.jsxs)("div",{className:"arity-controls",style:{marginTop:8},children:[(0,F_.jsx)("button",{type:"button",onClick:m,disabled:r,style:{marginRight:8},children:"+ Add Position"}),a.atomIds.length>2&&(0,F_.jsx)("button",{type:"button",onClick:y,disabled:r,children:"- Remove Position"})]})]}),(0,F_.jsx)("div",{className:"form-row",style:{marginTop:12},children:(0,F_.jsx)("button",{type:"submit",disabled:r||a.atomIds.some((t=>!t.trim())),children:"Add Relation"})})]}),(0,F_.jsx)("div",{className:"instance-builder__list",children:0===d.length?(0,F_.jsx)("p",{className:"empty-state",children:"No relations yet. Add one above."}):d.map((t=>(0,F_.jsxs)("div",{className:"relation-group",children:[(0,F_.jsx)("h4",{children:t.name}),t.tuples.map(((e,n)=>(0,F_.jsxs)("div",{className:"list-item",children:[(0,F_.jsxs)("div",{className:"item-info",children:[(0,F_.jsx)("span",{children:S(e)}),(0,F_.jsxs)("span",{className:"item-type",style:{fontSize:"0.8em",color:"#666"},children:["arity: ",e.atoms.length]})]}),(0,F_.jsx)("button",{type:"button",onClick:()=>x(t.id,e),disabled:r,className:"remove-button","aria-label":`Remove relation ${t.name} tuple`,children:"Remove"})]},n)))]},t.id)))})]}),(0,F_.jsxs)("section",{className:"instance-builder__actions",children:[(0,F_.jsx)("button",{type:"button",onClick:b,disabled:r,className:"clear-button",children:"Clear All"}),(0,F_.jsx)("button",{type:"button",onClick:O,disabled:r,className:"reify-button",style:{marginLeft:8},children:"Re-ify"})]}),null!==T&&(0,F_.jsxs)("section",{className:"instance-builder__reify-result",style:{marginTop:12,background:"#f8f8f8",border:"1px solid #eee",borderRadius:4,padding:10},children:[(0,F_.jsx)("strong",{children:"Re-ify Result:"}),(0,F_.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:"string"==typeof T?T:JSON.stringify(T,null,2)})]})]})]})},t.Layout=N_,t.ProjectionControls=({projectionData:t,onProjectionChange:e,className:r="",disabled:n=!1})=>t&&0!==t.length?(0,mx.jsxs)("div",{className:`projection-controls ${r}`,role:"region","aria-label":"Projection Controls",children:[(0,mx.jsxs)("div",{className:"projection-controls__header",children:[(0,mx.jsx)("h3",{className:"projection-controls__title",children:"Projections"}),(0,mx.jsx)("p",{className:"projection-controls__description",children:"Select which atom to project for each type"})]}),(0,mx.jsx)("div",{className:"projection-controls__list",children:t.map((t=>(0,mx.jsxs)("div",{className:"projection-controls__item",children:[(0,mx.jsx)("label",{htmlFor:`projection-${t.type}`,className:"projection-controls__label",children:t.type}),(0,mx.jsx)("select",{id:`projection-${t.type}`,className:"projection-controls__select",value:t.projectedAtom,onChange:r=>e(t.type,r.target.value),disabled:n||0===t.atoms.length,"aria-label":`Select atom to project for ${t.type}`,children:0===t.atoms.length?(0,mx.jsx)("option",{value:"",children:"No atoms available"}):t.atoms.map((t=>(0,mx.jsx)("option",{value:t,children:t},t)))})]},t.type)))})]}):null,t.PyretDataInstance=D_,t.PyretExpressionParser=Q_,t.PyretReplInterface=({initialInstance:t,onChange:e,onCndSpecExtracted:r,externalEvaluator:n,...i})=>{let[o,s]=(0,X_.useState)((()=>t||new D_({dict:{},brands:{}}))),a=(0,X_.useMemo)((()=>{let t=new Q_(n),e=new class{constructor(t){this.evaluator=t||null}setEvaluator(t){this.evaluator=t}canHandle(t){let e=t.trim();if(!e.includes("=")||e.startsWith("remove ")||["help","info","status","list","clear","reify"].includes(e.toLowerCase()))return!1;if(e.includes(".")&&e.includes("=")&&e.indexOf(".")t.id===n))?{success:!1,message:`ID '${n}' is already in use. Use a different ID or remove the existing atom first.`}:this.isPrimitiveExpression(i)?this.handlePrimitiveAssignment(n,i,e):this.evaluator?await this.handleComplexAssignment(n,i,e):{success:!1,message:"No external Pyret evaluator available. Cannot evaluate complex expressions.\n\nTo enable this feature, ensure window.__internalRepl is available."}}catch(t){return{success:!1,message:`Failed to assign '${n}': ${t instanceof Error?t.message:"Unknown error"}`}}}isValidId(t){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(t)&&!["add","remove","help","info","list","clear","reify"].includes(t.toLowerCase())}looksLikePyretExpression(t){let e=t.trim();return!!this.isPrimitiveExpression(e)||e.includes("(")&&e.includes(")")||e.includes("[")&&e.includes("]")||e.includes("table:")||e.includes("row:")}isPrimitiveExpression(t){let e=t.trim();return/^\d+(\.\d+)?$/.test(e)||/^['"`].*['"`]$/.test(e)||"true"===e||"false"===e}handlePrimitiveAssignment(t,e,r){let n,i,o=e.trim();if(/^\d+(\.\d+)?$/.test(o))n=o.includes(".")?parseFloat(o):parseInt(o),i="Number";else if(/^['"`](.*)['"`]$/.test(o))n=o.slice(1,-1),i="String";else{if("true"!==o&&"false"!==o)return{success:!1,message:`Cannot parse primitive value: ${e}`};n="true"===o,i="Boolean"}let s={id:t,label:String(n),type:i};return r.addAtom(s),{success:!0,message:`[${t}] Assigned ${t} = ${n} (${i})`,action:"add"}}async handleComplexAssignment(t,e,r){if(!this.evaluator)throw new Error("External evaluator not available");try{let n=await this.evaluator.run(e);if(!this.evaluator.runtime.isSuccessResult(n))return{success:!1,message:`Failed to evaluate expression '${e}': ${this.formatError(n.exn)}`};let i=await D_.fromExpression(e,!1,this.evaluator);if(0===i.getAtoms().length)return{success:!1,message:`Expression '${e}' did not produce any data structures`};let o=i.getAtoms(),s=o[0],a={id:t,label:s.label,type:s.type};return r.addAtom(a),(o.length>1||i.getRelations().length>0)&&await this.mergeInstanceWithIdMapping(i,r,s.id,t),{success:!0,message:`[${t}] Assigned ${t} = ${e}\nAdded ${o.length} atoms and ${i.getRelations().reduce(((t,e)=>t+e.tuples.length),0)} relation tuples`,action:"add"}}catch(t){return{success:!1,message:`Failed to evaluate and assign '${e}': ${t instanceof Error?t.message:"Unknown error"}`}}}async mergeInstanceWithIdMapping(t,e,r,n){let i=new Map;i.set(r,n);for(let n of t.getAtoms()){if(n.id===r)continue;let t=n.id,o=new Set(e.getAtoms().map((t=>t.id))),s=1;for(;o.has(t);)t=`${n.id}_${s}`,s++;i.set(n.id,t);let a={id:t,label:n.label,type:n.type};e.addAtom(a)}for(let r of t.getRelations())for(let t of r.tuples){let n=t.atoms.map((t=>i.get(t)||t));e.addRelationTuple(r.name,{atoms:n})}}formatError(t){return String(t&&"object"==typeof t&&"message"in t?t.message:t)}getHelp(){let t=["ID Allocation Commands (Pyret-style):"," id = expression - Assign specific ID to expression result","","Primitive Examples:",' x = 1 - Assign ID "x" to number 1',' name = "Alice" - Assign ID "name" to string "Alice"',' flag = true - Assign ID "flag" to boolean true'];return this.evaluator?t.push("","Complex Examples (with external evaluator):",' node = Black(1, 2) - Assign ID "node" to constructor result',' mylist = [list: 1, 2, 3] - Assign ID "mylist" to list',' tree = node(1, empty, empty) - Assign ID "tree" to tree structure'):t.push("","Note: Complex expressions require external Pyret evaluator"," Only primitive values (numbers, strings, booleans) are supported"),t}}(n);return[{id:"unified",title:n?"Full Pyret REPL":"Enhanced REPL",description:n?"Supports ID allocation (x=1), expression evaluation, and enhanced remove commands":"Supports ID allocation (x=1), enhanced remove commands, and basic operations",parsers:[new B_,new G_,e,new q_,t,new z_].filter((t=>!(t instanceof Q_&&!n))).sort(((t,e)=>e.getPriority()-t.getPriority())),placeholder:'x = 1\nalice = "Alice"\nremove alice.friend\nlist-ids'}]}),[n]);return(0,X_.useEffect)((()=>{t&&t!==o&&s(t)}),[t]),(0,J_.jsx)(W_,{instance:o,onChange:t=>{t instanceof D_&&(s(t),e?.(t))},onCndSpecExtracted:r,terminals:a,...i})},t.RacketGDataInstance=class{constructor(t){this.atoms=t.atoms.map((t=>({id:String(t.id),label:t.label,type:t.type})));let e=new Map;this.atoms.forEach((t=>{e.has(t.type)||e.set(t.type,[]),e.get(t.type).push(t)})),this.types=Array.from(e.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:!1})));let r=new Map;t.relations.forEach((t=>{let e=String(t.src),n=String(t.dst),i=this.atoms.find((t=>t.id===e)),o=this.atoms.find((t=>t.id===n));if(!i||!o)throw new Error(`Relation references non-existent atoms: ${t.src} or ${t.dst}`);r.has(t.label)||r.set(t.label,{label:t.label,tuples:[],types:[i.type,o.type]}),r.get(t.label).tuples.push(function(t){return{atoms:t.map((t=>t.id)),types:t.map((t=>t.type))}}([i,o]))})),this.relations=Array.from(r.entries()).map((([t,{tuples:e,types:r}])=>({id:t,name:t,types:r,tuples:e})))}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID ${t} not found`);return this.types.find((t=>t.id===e.type))||{id:e.type,types:[e.type],atoms:[e],isBuiltin:!1}}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}applyProjections(t){return this}generateGraph(t,e){let r=new L_.Graph({directed:!0,multigraph:!0,compound:!0});return this.atoms.forEach((t=>{let e=t.id;r.setNode(e,{label:t.label})})),this.relations.forEach((t=>{t.tuples.forEach((e=>{let n=function(t,e){return`${t.id}:${e.atoms.join("->")}`}(t,e),i=e.atoms,o=i.length-1,s=i[0],a=i[o];if(s&&a){let e=i.slice(1,-1).join(","),o=e.length>0?`[${e}]`:"",l=t.name+o,u=s,c=a;r.setEdge(u,c,l,n)}}))})),r.nodes().forEach((n=>{let i=r.outEdges(n)||[],o=r.inEdges(n)||[];if(0===i.length&&0===o.length){let i=this.getAtomType(n).isBuiltin;(t||i&&e)&&r.removeNode(n)}})),r}},t.ReplInterface=W_,t.ReplWithVisualization=({instance:t,onChange:e,initialCndSpec:r="",showLayoutInterface:n=!0,style:i,replHeight:o="300px",visualizationHeight:s="400px"})=>{let[a,l]=(0,Z_.useState)(t),[u,c]=(0,Z_.useState)(r);(0,Z_.useEffect)((()=>{l(t)}),[t]);let h={display:"flex",flexDirection:"column",height:"100%",backgroundColor:"#f8f9fa",border:"1px solid #dee2e6",borderRadius:"8px",overflow:"hidden",...i},d={padding:"16px",borderBottom:"1px solid #dee2e6"},p={margin:"0 0 12px 0",fontSize:"14px",fontWeight:"bold",color:"#495057"};return(0,gx.jsxs)("div",{style:h,children:[(0,gx.jsxs)("div",{style:{...d,height:o,minHeight:"250px"},children:[(0,gx.jsx)("h3",{style:p,children:"Command Interface"}),(0,gx.jsx)("div",{style:{height:`calc(${o} - 40px)`},children:(0,gx.jsx)(W_,{instance:a,onChange:t=>{l(t),e?.(t)}})})]}),n&&(0,gx.jsxs)("div",{style:{...d,height:"200px",minHeight:"150px"},children:[(0,gx.jsx)("h3",{style:p,children:"Layout Specification"}),(0,gx.jsx)("div",{style:{height:"calc(200px - 40px)"},children:(0,gx.jsx)(fx,{instance:a,value:u,onChange:t=>{c(t)}})})]}),(0,gx.jsxs)("div",{style:{...d,height:s,minHeight:"300px",borderBottom:"none",flex:1},children:[(0,gx.jsx)("h3",{style:p,children:"Visualization"}),(0,gx.jsx)("div",{style:{height:`calc(${s} - 40px)`,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#6c757d"},children:(0,gx.jsxs)("div",{style:{textAlign:"center"},children:[(0,gx.jsx)("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"📊"}),(0,gx.jsx)("div",{children:"Visualization area ready for webcola-cnd-graph integration"}),(0,gx.jsxs)("div",{style:{marginTop:"8px",fontSize:"12px"},children:["Current data: ",a.getAtoms().length," atoms, ",a.getRelations().length," relations"]}),u&&(0,gx.jsxs)("div",{style:{marginTop:"8px",fontSize:"12px",color:"#28a745"},children:["CND spec: ",u.length," characters"]})]})})]})]})},t.SQLEvaluator=S_,t.SelectorSynthesisError=K_,t.TlaDataInstance=M_,t.Translators=w_,t.WrappedForgeEvaluator=v_,t.createAlignmentConstraint=function(t,e){return`align ${e}(${t})`},t.createCndCore=t=>new yx(t),t.createColorDirective=function(t,e){return`color ${e}(${t})`},t.createEmptyAlloyDataInstance=function(){return new R_({types:{univ:{_:"type",id:"univ",types:[],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}},Int:{_:"type",id:"Int",types:["Int","univ"],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}},"seq/Int":{_:"type",id:"seq/Int",types:["seq/Int","univ"],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}}},relations:{},skolems:{}})},t.createOrientationConstraint=function(t,e){return e.map((e=>`${e}(${t})`)).join("\n")},t.createTlaDataInstance=function(t){return new M_(t)},t.generateAlloySchema=function(t,e={}){let{includeBuiltInTypes:r=!1,includeTypeHierarchy:n=!0,includeArityHints:i=!1}=e,o=t.getTypes(),s=t.getRelations(),a=r?o:o.filter((t=>!t.isBuiltin)),l=new Map(o.map((t=>[t.id,t]))),u=new Set(a.map((t=>t.id))),c=t=>{let e=t.id.indexOf("<:");if(e<=0)return;let r=t.id.slice(0,e),n=`${r}<:${t.name}`;return t.id===n?r:void 0},h=new Map,d=[];for(let t of s){if(0===t.types.length){d.push(t);continue}let e=c(t)??t.types[0],r=(e?l.get(e):void 0)?.isBuiltin??!1,n=e===t.types[0];void 0!==e&&n&&!r&&u.has(e)?(h.has(e)||h.set(e,[]),h.get(e).push(t)):d.push(t)}let p=[];for(let t of a){let e=t.types.length>1?t.types.slice(1):[],r=n&&e.length>0?` extends ${e[0]}`:"";p.push(`sig ${t.id}${r} {`);let o=h.get(t.id)||[];for(let t of o){if(0===t.types.length)continue;let e="";i&&(e="set ");let r=t.types.slice(1),n=r.length>0?r.join(" -> "):"univ";p.push(` ${t.name}: ${e}${n}`)}p.push("}"),p.push("")}if(d.length>0){p.length>0&&p.push(""),p.push("// Top-level relations");for(let t of d){let e="";i&&(e="set ");let r=t.types.length>0?t.types.join(" -> "):"univ -> univ";p.push(`rel ${t.name}: ${e}${r}`)}}return p.join("\n").trim()},t.generateSQLSchema=function(t,e={}){let{includeBuiltInTypes:r=!1,includeTypeHierarchy:n=!0}=e,i=t.getTypes(),o=t.getRelations(),s=r?i:i.filter((t=>!t.isBuiltin)),a=[];for(let t of s){if(a.push(`CREATE TABLE ${t.id} (`),a.push(" id VARCHAR PRIMARY KEY"),n&&t.types.length>1){let e=t.types[1];a.push(` -- extends ${e}`)}a.push(");"),a.push("")}for(let t of o)if(0!==t.types.length&&(r||!t.types.every((t=>{let e=i.find((e=>e.id===t));return e&&e.isBuiltin})))){a.push(`CREATE TABLE ${t.name} (`);for(let e=0;et.id===r))?` REFERENCES ${r}(id)`:"";a.push(` ${n}_${r} VARCHAR${i}${e!t.isBuiltin)),s=[];s.push("Types:");for(let t of o){let e=t.atoms.length,r=t.isBuiltin?" (built-in)":"",n=t.types.length>1?` extends ${t.types.slice(1).join(", ")}`:"";s.push(`- ${t.id}${n} (${e} atom${1!==e?"s":""})${r}`)}s.push(""),s.push("Relations:");for(let t of i){if(!r&&t.types.every((t=>{let e=n.find((e=>e.id===t));return e&&e.isBuiltin})))continue;let e=t.tuples.length,i=t.types.length>0?t.types.join(" -> "):"untyped";s.push(`- ${t.name}: ${i} (${e} tuple${1!==e?"s":""})`)}return s.join("\n")},t.isSynthesisSupported=function(e){return e instanceof t.SGraphQueryEvaluator},t.isTlaDataInstance=function(t){return t instanceof M_},t.parseLayoutSpec=Sa,t.setupLayout=A_,t.synthesizeAtomSelector=function(t,e=3){let r=t.map((t=>({atoms:new Set(t.atoms),datum:t.dataInstance})));return(0,j_.synthesizeSelector)(r,e)},t.synthesizeAtomSelectorWithExplanation=function(t,e=3){let r=t.map((t=>({atoms:new Set(t.atoms),datum:t.dataInstance})));return(0,j_.synthesizeSelectorWithWhy)(r,e)},t.synthesizeBinarySelector=function(t,e=3){let r=t.map((t=>({pairs:new Set(t.pairs),datum:t.dataInstance})));return(0,j_.synthesizeBinaryRelation)(r,e)},t.synthesizeBinarySelectorWithExplanation=function(t,e=3){let r=t.map((t=>({pairs:new Set(t.pairs),datum:t.dataInstance})));return(0,j_.synthesizeBinaryRelationWithWhy)(r,e)},t.version="1.0.0",t}({}); \ No newline at end of file +var CndCore=function(t){"use strict";var e,r,n,i=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=t=>{throw TypeError(t)},h=(e=function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):e),d=(t,e)=>()=>(t&&(e=t(t=0)),e),p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),f=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},g=(t,e,r)=>(r=null!=t?i(l(t)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of a(e))!u.call(t,r)&&undefined!==r&&o(t,r,{get:()=>e[r],enumerable:!(n=s(e,r))||n.enumerable});return t})(t&&t.__esModule?r:o(r,"default",{value:t,enumerable:!0}),t)),m=(t,e,r)=>((t,e,r)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),y=p(((t,e)=>{e.exports=function(){this.__data__=[],this.size=0}})),_=p(((t,e)=>{e.exports=function(t,e){return t===e||t!=t&&e!=e}})),v=p(((t,e)=>{var r=_();e.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}})),x=p(((t,e)=>{var r=v(),n=Array.prototype.splice;e.exports=function(t){var e=this.__data__,i=r(e,t);return!(i<0||(i==e.length-1?e.pop():n.call(e,i,1),--this.size,0))}})),b=p(((t,e)=>{var r=v();e.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}})),T=p(((t,e)=>{var r=v();e.exports=function(t){return r(this.__data__,t)>-1}})),E=p(((t,e)=>{var r=v();e.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}})),O=p(((t,e)=>{var r=y(),n=x(),i=b(),o=T(),s=E();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=O();e.exports=function(){this.__data__=new r,this.size=0}})),N=p(((t,e)=>{e.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}})),A=p(((t,e)=>{e.exports=function(t){return this.__data__.get(t)}})),w=p(((t,e)=>{e.exports=function(t){return this.__data__.has(t)}})),R=p(((t,e)=>{var r="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=r})),C=p(((t,e)=>{var r=R(),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i})),L=p(((t,e)=>{var r=C().Symbol;e.exports=r})),I=p(((t,e)=>{var r=L(),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,s=r?r.toStringTag:void 0;e.exports=function(t){var e=i.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch{}var a=o.call(t);return n&&(e?t[s]=r:delete t[s]),a}})),k=p(((t,e)=>{var r=Object.prototype.toString;e.exports=function(t){return r.call(t)}})),D=p(((t,e)=>{var r=L(),n=I(),i=k(),o=r?r.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?n(t):i(t)}})),P=p(((t,e)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}})),M=p(((t,e)=>{var r=D(),n=P();e.exports=function(t){if(!n(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}})),j=p(((t,e)=>{var r=C()["__core-js_shared__"];e.exports=r})),K=p(((t,e)=>{var r=j(),n=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=function(t){return!!n&&n in t}})),U=p(((t,e)=>{var r=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return r.call(t)}catch{}try{return t+""}catch{}}return""}})),F=p(((t,e)=>{var r=M(),n=K(),i=P(),o=U(),s=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,h=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!i(t)||n(t))&&(r(t)?h:s).test(o(t))}})),$=p(((t,e)=>{e.exports=function(t,e){return t?.[e]}})),H=p(((t,e)=>{var r=F(),n=$();e.exports=function(t,e){var i=n(t,e);return r(i)?i:void 0}})),B=p(((t,e)=>{var r=H()(C(),"Map");e.exports=r})),q=p(((t,e)=>{var r=H()(Object,"create");e.exports=r})),G=p(((t,e)=>{var r=q();e.exports=function(){this.__data__=r?r(null):{},this.size=0}})),z=p(((t,e)=>{e.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}})),V=p(((t,e)=>{var r=q(),n=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;if(r){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(e,t)?e[t]:void 0}})),Y=p(((t,e)=>{var r=q(),n=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:n.call(e,t)}})),W=p(((t,e)=>{var r=q();e.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}})),X=p(((t,e)=>{var r=G(),n=z(),i=V(),o=Y(),s=W();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=X(),n=O(),i=B();e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}})),J=p(((t,e)=>{e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}})),Z=p(((t,e)=>{var r=J();e.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}})),tt=p(((t,e)=>{var r=Z();e.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}})),et=p(((t,e)=>{var r=Z();e.exports=function(t){return r(this,t).get(t)}})),rt=p(((t,e)=>{var r=Z();e.exports=function(t){return r(this,t).has(t)}})),nt=p(((t,e)=>{var r=Z();e.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}})),it=p(((t,e)=>{var r=Q(),n=tt(),i=et(),o=rt(),s=nt();function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var r=O(),n=B(),i=it();e.exports=function(t,e){var o=this.__data__;if(o instanceof r){var s=o.__data__;if(!n||s.length<199)return s.push([t,e]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(t,e),this.size=o.size,this}})),st=p(((t,e)=>{var r=O(),n=S(),i=N(),o=A(),s=w(),a=ot();function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l})),at=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{var r=H(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}}();e.exports=n})),ut=p(((t,e)=>{var r=lt();e.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}})),ct=p(((t,e)=>{var r=ut(),n=_(),i=Object.prototype.hasOwnProperty;e.exports=function(t,e,o){var s=t[e];(!i.call(t,e)||!n(s,o)||void 0===o&&!(e in t))&&r(t,e,o)}})),ht=p(((t,e)=>{var r=ct(),n=ut();e.exports=function(t,e,i,o){var s=!i;i||(i={});for(var a=-1,l=e.length;++a{e.exports=function(t,e){for(var r=-1,n=Array(t);++r{e.exports=function(t){return null!=t&&"object"==typeof t}})),ft=p(((t,e)=>{var r=D(),n=pt();e.exports=function(t){return n(t)&&"[object Arguments]"==r(t)}})),gt=p(((t,e)=>{var r=ft(),n=pt(),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(t){return n(t)&&o.call(t,"callee")&&!s.call(t,"callee")};e.exports=a})),mt=p(((t,e)=>{var r=Array.isArray;e.exports=r})),yt=p(((t,e)=>{e.exports=function(){return!1}})),_t=p(((t,e)=>{var r=C(),n=yt(),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=(s?s.isBuffer:void 0)||n;e.exports=a})),vt=p(((t,e)=>{var r=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t{e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}})),bt=p(((t,e)=>{var r=D(),n=xt(),i=pt(),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(t){return i(t)&&n(t.length)&&!!o[r(t)]}})),Tt=p(((t,e)=>{e.exports=function(t){return function(e){return t(e)}}})),Et=p(((t,e)=>{var r=R(),n="object"==typeof t&&t&&!t.nodeType&&t,i=n&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})),Ot=p(((t,e)=>{var r=bt(),n=Tt(),i=Et(),o=i&&i.isTypedArray,s=o?n(o):r;e.exports=s})),St=p(((t,e)=>{var r=dt(),n=gt(),i=mt(),o=_t(),s=vt(),a=Ot(),l=Object.prototype.hasOwnProperty;e.exports=function(t,e){var u=i(t),c=!u&&n(t),h=!u&&!c&&o(t),d=!u&&!c&&!h&&a(t),p=u||c||h||d,f=p?r(t.length,String):[],g=f.length;for(var m in t)(e||l.call(t,m))&&(!p||!("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g)))&&f.push(m);return f}})),Nt=p(((t,e)=>{var r=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}})),At=p(((t,e)=>{e.exports=function(t,e){return function(r){return t(e(r))}}})),wt=p(((t,e)=>{var r=At()(Object.keys,Object);e.exports=r})),Rt=p(((t,e)=>{var r=Nt(),n=wt(),i=Object.prototype.hasOwnProperty;e.exports=function(t){if(!r(t))return n(t);var e=[];for(var o in Object(t))i.call(t,o)&&"constructor"!=o&&e.push(o);return e}})),Ct=p(((t,e)=>{var r=M(),n=xt();e.exports=function(t){return null!=t&&n(t.length)&&!r(t)}})),Lt=p(((t,e)=>{var r=St(),n=Rt(),i=Ct();e.exports=function(t){return i(t)?r(t):n(t)}})),It=p(((t,e)=>{var r=ht(),n=Lt();e.exports=function(t,e){return t&&r(e,n(e),t)}})),kt=p(((t,e)=>{e.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}})),Dt=p(((t,e)=>{var r=P(),n=Nt(),i=kt(),o=Object.prototype.hasOwnProperty;e.exports=function(t){if(!r(t))return i(t);var e=n(t),s=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||s.push(a);return s}})),Pt=p(((t,e)=>{var r=St(),n=Dt(),i=Ct();e.exports=function(t){return i(t)?r(t,!0):n(t)}})),Mt=p(((t,e)=>{var r=ht(),n=Pt();e.exports=function(t,e){return t&&r(e,n(e),t)}})),jt=p(((t,e)=>{var r=C(),n="object"==typeof t&&t&&!t.nodeType&&t,i=n&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===n?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}})),Kt=p(((t,e)=>{e.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r{e.exports=function(){return[]}})),$t=p(((t,e)=>{var r=Ut(),n=Ft(),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return i.call(t,e)})))}:n;e.exports=s})),Ht=p(((t,e)=>{var r=ht(),n=$t();e.exports=function(t,e){return r(t,n(t),e)}})),Bt=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r{var r=At()(Object.getPrototypeOf,Object);e.exports=r})),Gt=p(((t,e)=>{var r=Bt(),n=qt(),i=$t(),o=Ft(),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=n(t);return e}:o;e.exports=s})),zt=p(((t,e)=>{var r=ht(),n=Gt();e.exports=function(t,e){return r(t,n(t),e)}})),Vt=p(((t,e)=>{var r=Bt(),n=mt();e.exports=function(t,e,i){var o=e(t);return n(t)?o:r(o,i(t))}})),Yt=p(((t,e)=>{var r=Vt(),n=$t(),i=Lt();e.exports=function(t){return r(t,i,n)}})),Wt=p(((t,e)=>{var r=Vt(),n=Gt(),i=Pt();e.exports=function(t){return r(t,i,n)}})),Xt=p(((t,e)=>{var r=H()(C(),"DataView");e.exports=r})),Qt=p(((t,e)=>{var r=H()(C(),"Promise");e.exports=r})),Jt=p(((t,e)=>{var r=H()(C(),"Set");e.exports=r})),Zt=p(((t,e)=>{var r=H()(C(),"WeakMap");e.exports=r})),te=p(((t,e)=>{var r=Xt(),n=B(),i=Qt(),o=Jt(),s=Zt(),a=D(),l=U(),u="[object Map]",c="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",f=l(r),g=l(n),m=l(i),y=l(o),_=l(s),v=a;(r&&v(new r(new ArrayBuffer(1)))!=p||n&&v(new n)!=u||i&&v(i.resolve())!=c||o&&v(new o)!=h||s&&v(new s)!=d)&&(v=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case f:return p;case g:return u;case m:return c;case y:return h;case _:return d}return e}),e.exports=v})),ee=p(((t,e)=>{var r=Object.prototype.hasOwnProperty;e.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}})),re=p(((t,e)=>{var r=C().Uint8Array;e.exports=r})),ne=p(((t,e)=>{var r=re();e.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}})),ie=p(((t,e)=>{var r=ne();e.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}})),oe=p(((t,e)=>{var r=/\w*$/;e.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}})),se=p(((t,e)=>{var r=L(),n=r?r.prototype:void 0,i=n?n.valueOf:void 0;e.exports=function(t){return i?Object(i.call(t)):{}}})),ae=p(((t,e)=>{var r=ne();e.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}})),le=p(((t,e)=>{var r=ne(),n=ie(),i=oe(),o=se(),s=ae();e.exports=function(t,e,a){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return n(t,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return i(t);case"[object Symbol]":return o(t)}}})),ue=p(((t,e)=>{var r=P(),n=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();e.exports=i})),ce=p(((t,e)=>{var r=ue(),n=qt(),i=Nt();e.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(n(t))}})),he=p(((t,e)=>{var r=te(),n=pt();e.exports=function(t){return n(t)&&"[object Map]"==r(t)}})),de=p(((t,e)=>{var r=he(),n=Tt(),i=Et(),o=i&&i.isMap,s=o?n(o):r;e.exports=s})),pe=p(((t,e)=>{var r=te(),n=pt();e.exports=function(t){return n(t)&&"[object Set]"==r(t)}})),fe=p(((t,e)=>{var r=pe(),n=Tt(),i=Et(),o=i&&i.isSet,s=o?n(o):r;e.exports=s})),ge=p(((t,e)=>{var r=st(),n=at(),i=ct(),o=It(),s=Mt(),a=jt(),l=Kt(),u=Ht(),c=zt(),h=Yt(),d=Wt(),p=te(),f=ee(),g=le(),m=ce(),y=mt(),_=_t(),v=de(),x=P(),b=fe(),T=Lt(),E=Pt(),O="[object Arguments]",S="[object Function]",N="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[N]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[S]=A["[object WeakMap]"]=!1,e.exports=function t(e,w,R,C,L,I){var k,D=1&w,P=2&w,M=4&w;if(R&&(k=L?R(e,C,L,I):R(e)),void 0!==k)return k;if(!x(e))return e;var j=y(e);if(j){if(k=f(e),!D)return l(e,k)}else{var K=p(e),U=K==S||"[object GeneratorFunction]"==K;if(_(e))return a(e,D);if(K==N||K==O||U&&!L){if(k=P||U?{}:m(e),!D)return P?c(e,s(k,e)):u(e,o(k,e))}else{if(!A[K])return L?e:{};k=g(e,K,D)}}I||(I=new r);var F=I.get(e);if(F)return F;I.set(e,k),b(e)?e.forEach((function(r){k.add(t(r,w,R,r,e,I))})):v(e)&&e.forEach((function(r,n){k.set(n,t(r,w,R,n,e,I))}));var $=j?void 0:(M?P?d:h:P?E:T)(e);return n($||e,(function(r,n){$&&(r=e[n=r]),i(k,n,t(r,w,R,n,e,I))})),k}})),me=p(((t,e)=>{var r=ge();e.exports=function(t){return r(t,4)}})),ye=p(((t,e)=>{e.exports=function(t){return function(){return t}}})),_e=p(((t,e)=>{e.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),s=n(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===r(o[l],l,o))break}return e}}})),ve=p(((t,e)=>{var r=_e()();e.exports=r})),xe=p(((t,e)=>{var r=ve(),n=Lt();e.exports=function(t,e){return t&&r(t,e,n)}})),be=p(((t,e)=>{var r=Ct();e.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s{var r=xe(),n=be()(r);e.exports=n})),Ee=p(((t,e)=>{e.exports=function(t){return t}})),Oe=p(((t,e)=>{var r=Ee();e.exports=function(t){return"function"==typeof t?t:r}})),Se=p(((t,e)=>{var r=at(),n=Te(),i=Oe(),o=mt();e.exports=function(t,e){return(o(t)?r:n)(t,i(e))}})),Ne=p(((t,e)=>{e.exports=Se()})),Ae=p(((t,e)=>{var r=Te();e.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}})),we=p(((t,e)=>{e.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}})),Re=p(((t,e)=>{e.exports=function(t){return this.__data__.has(t)}})),Ce=p(((t,e)=>{var r=it(),n=we(),i=Re();function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{e.exports=function(t,e){return t.has(e)}})),ke=p(((t,e)=>{var r=Ce(),n=Le(),i=Ie();e.exports=function(t,e,o,s,a,l){var u=1&o,c=t.length,h=e.length;if(c!=h&&!(u&&h>c))return!1;var d=l.get(t),p=l.get(e);if(d&&p)return d==e&&p==t;var f=-1,g=!0,m=2&o?new r:void 0;for(l.set(t,e),l.set(e,t);++f{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}})),Pe=p(((t,e)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}})),Me=p(((t,e)=>{var r=L(),n=re(),i=_(),o=ke(),s=De(),a=Pe(),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(t,e,r,l,c,h,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new n(t),new n(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=s;case"[object Set]":var f=1&l;if(p||(p=a),t.size!=e.size&&!f)return!1;var g=d.get(t);if(g)return g==e;l|=2,d.set(t,e);var m=o(p(t),p(e),l,c,h,d);return d.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}})),je=p(((t,e)=>{var r=Yt(),n=Object.prototype.hasOwnProperty;e.exports=function(t,e,i,o,s,a){var l=1&i,u=r(t),c=u.length;if(c!=r(e).length&&!l)return!1;for(var h=c;h--;){var d=u[h];if(!(l?d in e:n.call(e,d)))return!1}var p=a.get(t),f=a.get(e);if(p&&f)return p==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=l;++h{var r=st(),n=ke(),i=Me(),o=je(),s=te(),a=mt(),l=_t(),u=Ot(),c="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(t,e,f,g,m,y){var _=a(t),v=a(e),x=_?h:s(t),b=v?h:s(e),T=(x=x==c?d:x)==d,E=(b=b==c?d:b)==d,O=x==b;if(O&&l(t)){if(!l(e))return!1;_=!0,T=!1}if(O&&!T)return y||(y=new r),_||u(t)?n(t,e,f,g,m,y):i(t,e,x,f,g,m,y);if(!(1&f)){var S=T&&p.call(t,"__wrapped__"),N=E&&p.call(e,"__wrapped__");if(S||N){var A=S?t.value():t,w=N?e.value():e;return y||(y=new r),m(A,w,f,g,y)}}return!!O&&(y||(y=new r),o(t,e,f,g,m,y))}})),Ue=p(((t,e)=>{var r=Ke(),n=pt();e.exports=function t(e,i,o,s,a){return e===i||(null==e||null==i||!n(e)&&!n(i)?e!=e&&i!=i:r(e,i,o,s,t,a))}})),Fe=p(((t,e)=>{var r=st(),n=Ue();e.exports=function(t,e,i,o){var s=i.length,a=s,l=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=i[s];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s{var r=P();e.exports=function(t){return t==t&&!r(t)}})),He=p(((t,e)=>{var r=$e(),n=Lt();e.exports=function(t){for(var e=n(t),i=e.length;i--;){var o=e[i],s=t[o];e[i]=[o,s,r(s)]}return e}})),Be=p(((t,e)=>{e.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}})),qe=p(((t,e)=>{var r=Fe(),n=He(),i=Be();e.exports=function(t){var e=n(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}})),Ge=p(((t,e)=>{var r=D(),n=pt();e.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==r(t)}})),ze=p(((t,e)=>{var r=mt(),n=Ge(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(t,e){if(r(t))return!1;var s=typeof t;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=t&&!n(t))||o.test(t)||!i.test(t)||null!=e&&t in Object(e)}})),Ve=p(((t,e)=>{var r=it();function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(n.Cache||r),i}n.Cache=r,e.exports=n})),Ye=p(((t,e)=>{var r=Ve();e.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}})),We=p(((t,e)=>{var r=Ye(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));e.exports=o})),Xe=p(((t,e)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r{var r=L(),n=Xe(),i=mt(),o=Ge(),s=r?r.prototype:void 0,a=s?s.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(i(e))return n(e,t)+"";if(o(e))return a?a.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}})),Je=p(((t,e)=>{var r=Qe();e.exports=function(t){return null==t?"":r(t)}})),Ze=p(((t,e)=>{var r=mt(),n=ze(),i=We(),o=Je();e.exports=function(t,e){return r(t)?t:n(t,e)?[t]:i(o(t))}})),tr=p(((t,e)=>{var r=Ge();e.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}})),er=p(((t,e)=>{var r=Ze(),n=tr();e.exports=function(t,e){for(var i=0,o=(e=r(e,t)).length;null!=t&&i{var r=er();e.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}})),nr=p(((t,e)=>{e.exports=function(t,e){return null!=t&&e in Object(t)}})),ir=p(((t,e)=>{var r=Ze(),n=gt(),i=mt(),o=vt(),s=xt(),a=tr();e.exports=function(t,e,l){for(var u=-1,c=(e=r(e,t)).length,h=!1;++u{var r=nr(),n=ir();e.exports=function(t,e){return null!=t&&n(t,e,r)}})),sr=p(((t,e)=>{var r=Ue(),n=rr(),i=or(),o=ze(),s=$e(),a=Be(),l=tr();e.exports=function(t,e){return o(t)&&s(e)?a(l(t),e):function(o){var s=n(o,t);return void 0===s&&s===e?i(o,t):r(e,s,3)}}})),ar=p(((t,e)=>{e.exports=function(t){return function(e){return e?.[t]}}})),lr=p(((t,e)=>{var r=er();e.exports=function(t){return function(e){return r(e,t)}}})),ur=p(((t,e)=>{var r=ar(),n=lr(),i=ze(),o=tr();e.exports=function(t){return i(t)?r(o(t)):n(t)}})),cr=p(((t,e)=>{var r=qe(),n=sr(),i=Ee(),o=mt(),s=ur();e.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?o(t)?n(t[0],t[1]):r(t):s(t)}})),hr=p(((t,e)=>{var r=Ut(),n=Ae(),i=cr(),o=mt();e.exports=function(t,e){return(o(t)?r:n)(t,i(e,3))}})),dr=p(((t,e)=>{var r=Object.prototype.hasOwnProperty;e.exports=function(t,e){return null!=t&&r.call(t,e)}})),pr=p(((t,e)=>{var r=dr(),n=ir();e.exports=function(t,e){return null!=t&&n(t,e,r)}})),fr=p(((t,e)=>{var r=Rt(),n=te(),i=gt(),o=mt(),s=Ct(),a=_t(),l=Nt(),u=Ot(),c=Object.prototype.hasOwnProperty;e.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||a(t)||u(t)||i(t)))return!t.length;var e=n(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var h in t)if(c.call(t,h))return!1;return!0}})),gr=p(((t,e)=>{e.exports=function(t){return void 0===t}})),mr=p(((t,e)=>{var r=Te(),n=Ct();e.exports=function(t,e){var i=-1,o=n(t)?Array(t.length):[];return r(t,(function(t,r,n){o[++i]=e(t,r,n)})),o}})),yr=p(((t,e)=>{var r=Xe(),n=cr(),i=mr(),o=mt();e.exports=function(t,e){return(o(t)?r:i)(t,n(e,3))}})),_r=p(((t,e)=>{e.exports=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i{e.exports=function(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}})),xr=p(((t,e)=>{var r=_r(),n=Te(),i=cr(),o=vr(),s=mt();e.exports=function(t,e,a){var l=s(t)?r:o,u=arguments.length<3;return l(t,i(e,4),a,u,n)}})),br=p(((t,e)=>{var r=D(),n=mt(),i=pt();e.exports=function(t){return"string"==typeof t||!n(t)&&i(t)&&"[object String]"==r(t)}})),Tr=p(((t,e)=>{var r=ar()("length");e.exports=r})),Er=p(((t,e)=>{var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return r.test(t)}})),Or=p(((t,e)=>{var r="\\ud800-\\udfff",n="["+r+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",s="[^"+r+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+i+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",h=c+u+"(?:\\u200d(?:"+[s,a,l].join("|")+")"+c+u+")*",d="(?:"+[s+i+"?",i,a,l,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+h,"g");e.exports=function(t){for(var e=p.lastIndex=0;p.test(t);)++e;return e}})),Sr=p(((t,e)=>{var r=Tr(),n=Er(),i=Or();e.exports=function(t){return n(t)?i(t):r(t)}})),Nr=p(((t,e)=>{var r=Rt(),n=te(),i=Ct(),o=br(),s=Sr();e.exports=function(t){if(null==t)return 0;if(i(t))return o(t)?s(t):t.length;var e=n(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}})),Ar=p(((t,e)=>{var r=at(),n=ue(),i=xe(),o=cr(),s=qt(),a=mt(),l=_t(),u=M(),c=P(),h=Ot();e.exports=function(t,e,d){var p=a(t),f=p||l(t)||h(t);if(e=o(e,4),null==d){var g=t&&t.constructor;d=f?p?new g:[]:c(t)&&u(g)?n(s(t)):{}}return(f?r:i)(t,(function(t,r,n){return e(d,t,r,n)})),d}})),wr=p(((t,e)=>{var r=L(),n=gt(),i=mt(),o=r?r.isConcatSpreadable:void 0;e.exports=function(t){return i(t)||n(t)||!!(o&&t&&t[o])}})),Rr=p(((t,e)=>{var r=Bt(),n=wr();e.exports=function t(e,i,o,s,a){var l=-1,u=e.length;for(o||(o=n),a||(a=[]);++l0&&o(c)?i>1?t(c,i-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}})),Cr=p(((t,e)=>{e.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}})),Lr=p(((t,e)=>{var r=Cr(),n=Math.max;e.exports=function(t,e,i){return e=n(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=n(o.length-e,0),l=Array(a);++s{var r=ye(),n=lt(),i=Ee(),o=n?function(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;e.exports=o})),kr=p(((t,e)=>{var r=Date.now;e.exports=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}})),Dr=p(((t,e)=>{var r=Ir(),n=kr()(r);e.exports=n})),Pr=p(((t,e)=>{var r=Ee(),n=Lr(),i=Dr();e.exports=function(t,e){return i(n(t,e,r),t+"")}})),Mr=p(((t,e)=>{e.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o{e.exports=function(t){return t!=t}})),Kr=p(((t,e)=>{e.exports=function(t,e,r){for(var n=r-1,i=t.length;++n{var r=Mr(),n=jr(),i=Kr();e.exports=function(t,e,o){return e==e?i(t,e,o):r(t,n,o)}})),Fr=p(((t,e)=>{var r=Ur();e.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}})),$r=p(((t,e)=>{e.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n{e.exports=function(){}})),Br=p(((t,e)=>{var r=Jt(),n=Hr(),i=Pe(),o=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:n;e.exports=o})),qr=p(((t,e)=>{var r=Ce(),n=Fr(),i=$r(),o=Ie(),s=Br(),a=Pe();e.exports=function(t,e,l){var u=-1,c=n,h=t.length,d=!0,p=[],f=p;if(l)d=!1,c=i;else if(h>=200){var g=e?null:s(t);if(g)return a(g);d=!1,c=o,f=new r}else f=e?[]:p;t:for(;++u{var r=Ct(),n=pt();e.exports=function(t){return n(t)&&r(t)}})),zr=p(((t,e)=>{var r=Rr(),n=Pr(),i=qr(),o=Gr(),s=n((function(t){return i(r(t,1,o,!0))}));e.exports=s})),Vr=p(((t,e)=>{var r=Xe();e.exports=function(t,e){return r(e,(function(e){return t[e]}))}})),Yr=p(((t,e)=>{var r=Vr(),n=Lt();e.exports=function(t){return null==t?[]:r(t,n(t))}})),Wr=p(((t,e)=>{var r;if("function"==typeof h)try{r={clone:me(),constant:ye(),each:Ne(),filter:hr(),has:pr(),isArray:mt(),isEmpty:fr(),isFunction:M(),isUndefined:gr(),keys:Lt(),map:yr(),reduce:xr(),size:Nr(),transform:Ar(),union:zr(),values:Yr()}}catch{}r||(r=window._),e.exports=r})),Xr=p(((t,e)=>{var r=Wr();e.exports=i;var n="\0";function i(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function a(t,e,n,i){var o=""+e,s=""+n;if(!t&&o>s){var a=o;o=s,s=a}return o+""+s+""+(r.isUndefined(i)?"\0":i)}function l(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return n&&(a.name=n),a}function u(t,e){return a(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=n,this._children[t]={},this._children[n][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=n;else{for(var i=e+="";!r.isUndefined(i);i=this.parent(i))if(i===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==n)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t=n),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===n)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(i=arguments[1],s=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=a(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return s&&(this._edgeLabels[c]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=s?i:this._defaultEdgeLabelFn(t,e,n);var h=l(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[c]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][c]=h,this._out[t][c]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}})),Qr=p(((t,e)=>{e.exports="2.1.8"})),Jr=p(((t,e)=>{e.exports={Graph:Xr(),version:Qr()}})),Zr=p(((t,e)=>{var r=Wr(),n=Xr();function i(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new n(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}})),tn=p(((t,e)=>{var r=Wr();e.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}})),en=p(((t,e)=>{var r=Wr();function n(){this._arr=[],this._keyIndices={}}e.exports=n,n.prototype.size=function(){return this._arr.length},n.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},n.prototype.has=function(t){return r.has(this._keyIndices,t)},n.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},n.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},n.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},n.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},n.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},n.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,i=t;r>1].priority{var r=Wr(),n=en();e.exports=function(t,e,r,o){return function(t,e,r,i){var o,s,a={},l=new n,u=function(t){var e=t.v!==o?t.v:t.w,n=a[e],i=r(t),u=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);u0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(u);return a}(t,String(e),r||i,o||function(e){return t.outEdges(e)})};var i=r.constant(1)})),nn=p(((t,e)=>{var r=rn(),n=Wr();e.exports=function(t,e,i){return n.transform(t.nodes(),(function(n,o){n[o]=r(t,o,e,i)}),{})}})),on=p(((t,e)=>{var r=Wr();e.exports=function(t){var e=0,n=[],i={},o=[];function s(a){var l=i[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach((function(t){r.has(i,t)?i[t].onStack&&(l.lowlink=Math.min(l.lowlink,i[t].index)):(s(t),l.lowlink=Math.min(l.lowlink,i[t].lowlink))})),l.lowlink===l.index){var u,c=[];do{u=n.pop(),i[u].onStack=!1,c.push(u)}while(a!==u);o.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||s(t)})),o}})),sn=p(((t,e)=>{var r=Wr(),n=on();e.exports=function(t){return r.filter(n(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}})),an=p(((t,e)=>{var r=Wr();e.exports=function(t,e,r){return function(t,e,r){var n={},i=t.nodes();return i.forEach((function(t){n[t]={},n[t][t]={distance:0},i.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var i=r.v===t?r.w:r.v,o=e(r);n[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=n[t];i.forEach((function(r){var o=n[r];i.forEach((function(r){var n=o[t],i=e[r],s=o[r],a=n.distance+i.distance;a{var r=Wr();function n(t){var e={},n={},o=[];if(r.each(t.sinks(),(function s(a){if(r.has(n,a))throw new i;r.has(e,a)||(n[a]=!0,e[a]=!0,r.each(t.predecessors(a),s),delete n[a],o.push(a))})),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}e.exports=n,n.CycleException=i,i.prototype=new Error})),un=p(((t,e)=>{var r=ln();e.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}})),cn=p(((t,e)=>{var r=Wr();function n(t,e,i,o,s,a){r.has(o,e)||(o[e]=!0,i||a.push(e),r.each(s(e),(function(e){n(t,e,i,o,s,a)})),i&&a.push(e))}e.exports=function(t,e,i){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);n(t,e,"post"===i,a,o,s)})),s}})),hn=p(((t,e)=>{var r=cn();e.exports=function(t,e){return r(t,e,"post")}})),dn=p(((t,e)=>{var r=cn();e.exports=function(t,e){return r(t,e,"pre")}})),pn=p(((t,e)=>{var r=Wr(),n=Xr(),i=en();e.exports=function(t,e){var o,s=new n,a={},l=new i;function u(t){var r=t.v===o?t.w:t.v,n=l.priority(r);if(void 0!==n){var i=e(t);i0;){if(o=l.removeMin(),r.has(a,o))s.setEdge(o,a[o]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(o).forEach(u)}return s}})),fn=p(((t,e)=>{e.exports={components:tn(),dijkstra:rn(),dijkstraAll:nn(),findCycles:sn(),floydWarshall:an(),isAcyclic:un(),postorder:hn(),preorder:dn(),prim:pn(),tarjan:on(),topsort:ln()}})),gn=p(((t,e)=>{var r=Jr();e.exports={Graph:r.Graph,json:Zr(),alg:fn(),version:r.version}})),mn=p((t=>{function e(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.getOwnPropertyDescriptors&&(t=e.create(null,e.getOwnPropertyDescriptors(t))),e&&"function"==typeof e.freeze?e.freeze(t):t}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var n=e({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),i=e({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),o=e({script:!1,style:!1,textarea:!0,title:!0});function s(t){return t===a.HTML}var a=e({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=Object.keys(a).map((function(t){return a[t]})),u=e({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(t,e){if(null===t||"object"!=typeof t)throw new TypeError("target is not an object");for(var n in e)r(e,n)&&(t[n]=e[n]);return t},t.find=function(t,e,n){if(void 0===n&&(n=Array.prototype),t&&"function"==typeof n.find)return n.find.call(t,e);for(var i=0;i-1},t.MIME_TYPE=a,t.NAMESPACE=u})),yn=p((t=>{function e(t,e){t.prototype=Object.create(Error.prototype,{constructor:{value:t},name:{value:t.name,enumerable:!0,writable:e}})}var r=mn().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),n=Object.keys(r);function i(t){return"number"==typeof t&&t>=1&&t<=25}function o(t,e){i(t)?(this.name=n[t],this.message=e||""):(this.message=t,this.name=function(t){return"string"==typeof t&&t.substring(t.length-r.Error.length)===r.Error}(e)?e:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,o)}e(o,!0),Object.defineProperties(o.prototype,{code:{enumerable:!0,get:function(){var t=n.indexOf(this.name);return i(t)?t:0}}});var s,a={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},l=Object.entries(a);for(s=0;s{function e(t){try{"function"!=typeof t&&(t=RegExp);var e=new t("𝌆","u").exec("𝌆");return!!e&&2===e[0].length}catch{}return!1}var r=e();function n(t){if("["!==t.source[0])throw new Error(t+" can not be used with chars");return t.source.slice(1,t.source.lastIndexOf("]"))}function i(t,e){if("["!==t.source[0])throw new Error("/"+t.source+"/ can not be used with chars_without");if(!e||"string"!=typeof e)throw new Error(JSON.stringify(e)+" is not a valid search");if(-1===t.source.indexOf(e))throw new Error('"'+e+'" is not is /'+t.source+"/");if("-"===e&&1!==t.source.indexOf(e))throw new Error('"'+e+'" is not at the first postion of /'+t.source+"/");return new RegExp(t.source.replace(e,""),r?"u":"")}function o(t){var e=this;return new RegExp(Array.prototype.slice.call(arguments).map((function(t){var r="string"==typeof t;if(r&&void 0===e&&"|"===t)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?t:t.source})).join(""),r?"mu":"m")}function s(t){if(0===arguments.length)throw new Error("no parameters provided");return o.apply(s,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var a=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;r&&(a=o("[",n(a),"\\u{10000}-\\u{10FFFF}","]"));var l=/[\x20\x09\x0D\x0A]/,u=n(l),c=o(l,"+"),h=o(l,"*"),d=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;r&&(d=o("[",n(d),"\\u{10000}-\\u{10FFFF}","]"));var p=o("[",n(d),n(/[-.0-9\xB7]/),n(/[\u0300-\u036F\u203F-\u2040]/),"]"),f=o(d,p,"*"),g=o(p,"+"),m=o("&",f,";"),y=s(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),_=s(m,"|",y),v=o("%",f,";"),x=s(o('"',s(/[^%&"]/,"|",v,"|",_),"*",'"'),"|",o("'",s(/[^%&']/,"|",v,"|",_),"*","'")),b=s('"',s(/[^<&"]/,"|",_),"*",'"',"|","'",s(/[^<&']/,"|",_),"*","'"),T=o(i(d,":"),i(p,":"),"*"),E=o(T,s(":",T),"?"),O=o("^",E,"$"),S=o("(",E,")"),N=s(/"[^"]*"|'[^']*'/),A=o(/^<\?/,"(",f,")",s(c,"(",a,"*?)"),"?",/\?>/),w=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,R=s('"',w,'*"',"|","'",i(w,"'"),"*'"),C="\x3c!--",L=o(C,s(i(a,"-"),"|",o("-",i(a,"-"))),"*","--\x3e"),I="#PCDATA",k=s(o(/\(/,h,I,s(h,/\|/,h,E),"*",h,/\)\*/),"|",o(/\(/,h,I,h,/\)/)),D=s("EMPTY","|","ANY","|",k,"|",o(/\([^>]+\)/,/[?*+]?/)),P=o(""),M=o("NOTATION",c,/\(/,h,f,s(h,/\|/,h,f),"*",h,/\)/),j=o(/\(/,h,g,s(h,/\|/,h,g),"*",h,/\)/),K=s(M,"|",j),U=s(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",K),F=s(/#REQUIRED|#IMPLIED/,"|",s(s("#FIXED",c),"?",b)),$=o(""),H="about:legacy-compat",B=s('"'+H+'"',"|","'"+H+"'"),q="SYSTEM",G="PUBLIC",z=s(s(q,c,N),"|",s(G,c,R,c,N)),V=o("^",s(s(q,c,"(?",N,")"),"|",s(G,c,"(?",R,")",c,"(?",N,")"))),Y=s(c,"NDATA",c,f),W=""),Q=s(x,"|",z),J=s(X,"|",o(W,c,"%",c,f,c,Q,h,">")),Z=o(G,c,R),tt=o(""),et=o(h,"=",h),rt=/1[.]\d+/,nt=o(c,"version",et,s("'",rt,"'","|",'"',rt,'"')),it=/[A-Za-z][-A-Za-z0-9._]*/,ot=o(/^<\?xml/,nt,s(c,"encoding",et,s('"',it,'"',"|","'",it,"'")),"?",s(c,"standalone",et,s("'",s("yes","|","no"),"'","|",'"',s("yes","|","no"),'"')),"?",h,/\?>/),st=o(a,"*?",/\]\]>/),at=o(/",t.CDSect=at,t.Char=a,t.Comment=L,t.COMMENT_START=C,t.COMMENT_END="--\x3e",t.DOCTYPE_DECL_START="{var e=mn(),r=e.find,n=e.hasDefaultHTMLNamespace,i=e.hasOwn,o=e.isHTMLMimeType,s=e.isHTMLRawTextElement,a=e.isHTMLVoidElement,l=e.MIME_TYPE,u=e.NAMESPACE,c=Symbol(),h=yn(),d=h.DOMException,p=h.DOMExceptionName,f=_n();function g(t){if(t!==c)throw new TypeError("Illegal constructor")}function m(t){return""!==t}function y(t,e){return i(t,e)||(t[e]=!0),t}function _(t){if(!t)return[];var e=function(t){return t?t.split(/[\t\n\f\r ]+/).filter(m):[]}(t);return Object.keys(e.reduce(y,{}))}function v(t){if(!f.QName_exact.test(t))throw new d(d.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+t+'"')}function x(t,r){v(r),t=t||null;var n=null,i=r;if(r.indexOf(":")>=0){var o=r.split(":");n=o[0],i=o[1]}if(null!==n&&null===t)throw new d(d.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&t!==e.NAMESPACE.XML)throw new d(d.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===r)&&t!==e.NAMESPACE.XMLNS)throw new d(d.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(t===e.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==r)throw new d(d.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[t,n,i]}function b(t,e){for(var r in t)i(t,r)&&(e[r]=t[r])}function T(t,e){var r=t.prototype;if(!(r instanceof e)){let n=function(){};n.prototype=e.prototype,n=new n,b(r,n),t.prototype=r=n}r.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),r.constructor=t)}var E={},O=E.ELEMENT_NODE=1,S=E.ATTRIBUTE_NODE=2,N=E.TEXT_NODE=3,A=E.CDATA_SECTION_NODE=4,w=E.ENTITY_REFERENCE_NODE=5,R=E.ENTITY_NODE=6,C=E.PROCESSING_INSTRUCTION_NODE=7,L=E.COMMENT_NODE=8,I=E.DOCUMENT_NODE=9,k=E.DOCUMENT_TYPE_NODE=10,D=E.DOCUMENT_FRAGMENT_NODE=11,P=E.NOTATION_NODE=12,M=e.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function j(t,e){if(e.length=0){for(var i=e.length-1;n<=i;)e[n]=e[++n];if(e.length=i,t){var o=t.ownerDocument;o&&X(o,t,r),r.ownerElement=null}}}function G(){}function z(t){g(t)}function V(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function Y(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(Y(t,e))return!0}while(t=t.nextSibling)}function W(t,e){g(t);var r=e||{};this.ownerDocument=this,this.contentType=r.contentType||l.XML_APPLICATION,this.type=o(this.contentType)?"html":"xml"}function X(t,e,r,n){t&&t._inc++,r.namespaceURI===u.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function Q(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var i=e.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function J(t,e){if(t!==e.parentNode)throw new d(d.NOT_FOUND_ERR,"child's parent is not parent");var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,Q(t.ownerDocument,t),e.parentNode=null,e.previousSibling=null,e.nextSibling=null,e}function Z(t){return t&&t.nodeType===z.DOCUMENT_TYPE_NODE}function tt(t){return t&&t.nodeType===z.ELEMENT_NODE}function et(t){return t&&t.nodeType===z.TEXT_NODE}function rt(t,e){var n=t.childNodes||[];if(r(n,tt)||Z(e))return!1;var i=r(n,Z);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function nt(t,e){var n=t.childNodes||[];if(r(n,(function(t){return tt(t)&&t!==e})))return!1;var i=r(n,Z);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function it(t,e,n){var i=t.childNodes||[],o=e.childNodes||[];if(e.nodeType===z.DOCUMENT_FRAGMENT_NODE){var s=o.filter(tt);if(s.length>1||r(o,et))throw new d(d.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===s.length&&!rt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!rt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Z(e)){if(r(i,Z))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=r(i,tt);if(n&&i.indexOf(a)1||r(o,et))throw new d(d.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===s.length&&!nt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(tt(e)&&!nt(t,n))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Z(e)){if(r(i,(function(t){return Z(t)&&t!==n})))throw new d(d.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=r(i,tt);if(n&&i.indexOf(a)=0;m--)if(""===(y=n[m]).prefix&&y.namespace===t.namespaceURI){p=y.namespace;break}if(p!==t.namespaceURI)for(m=n.length-1;m>=0;m--){var y;if((y=n[m]).namespace===t.namespaceURI){y.prefix&&(d=y.prefix+":"+h);break}}}e.push("<",d);for(var _=0;_");else{if(e.push(">"),i&&s(h))for(;c;)c.data?e.push(c.data):Et(c,e,r,n.slice()),c=c.nextSibling;else for(;c;)Et(c,e,r,n.slice()),c=c.nextSibling;e.push("")}return;case I:case D:for(c=t.firstChild;c;)Et(c,e,r,n.slice()),c=c.nextSibling;return;case S:return Tt(e,t.name,t.value);case N:return e.push(t.data.replace(/[<&>]/g,V));case A:return e.push(f.CDATA_START,t.data,f.CDATA_END);case L:return e.push(f.COMMENT_START,t.data,f.COMMENT_END);case k:var E=t.publicId,R=t.systemId;return e.push(f.DOCTYPE_DECL_START," ",t.name),E?(e.push(" ",f.PUBLIC," ",E),R&&"."!==R&&e.push(" ",R)):R&&"."!==R&&e.push(" ",f.SYSTEM," ",R),t.internalSubset&&e.push(" [",t.internalSubset,"]"),void e.push(">");case C:return e.push("");case w:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Ot(t,e,r){var n;switch(e.nodeType){case O:(n=e.cloneNode(!1)).ownerDocument=t;case D:break;case S:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(Ot(t,i,r)),i=i.nextSibling;return n}function St(t,e,r){var n=new e.constructor(c);for(var o in e)if(i(e,o)){var s=e[o];"object"!=typeof s&&s!=n[o]&&(n[o]=s)}switch(e.childNodes&&(n.childNodes=new U),n.ownerDocument=t,n.nodeType){case O:var a=e.attributes,l=n.attributes=new H,u=a.length;l._ownerElement=n;for(var h=0;h=0&&tK(e.ownerDocument)?M.DOCUMENT_POSITION_FOLLOWING:M.DOCUMENT_POSITION_PRECEDING);if(i&&e===r)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;if(n&&e===r)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;for(var a=[],l=e.parentNode;l;){if(!i&&l===r)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;a.push(l),l=l.parentNode}a.reverse();for(var u=[],c=r.parentNode;c;){if(!n&&c===e)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;u.push(c),c=c.parentNode}u.reverse();var h=j(a,u);for(var d in h.childNodes){var p=h.childNodes[d];if(p===r)return M.DOCUMENT_POSITION_FOLLOWING;if(p===e)return M.DOCUMENT_POSITION_PRECEDING;if(u.indexOf(p)>=0)return M.DOCUMENT_POSITION_FOLLOWING;if(a.indexOf(p)>=0)return M.DOCUMENT_POSITION_PRECEDING}return 0}},b(E,z),b(E,z.prototype),b(M,z),b(M,z.prototype),W.prototype={implementation:null,nodeName:"#document",nodeType:I,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType===D){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return st(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===O&&(this.documentElement=t),t},removeChild:function(t){var e=J(this,t);return e===this.documentElement&&(this.documentElement=null),e},replaceChild:function(t,e){st(this,t,e,ot),t.ownerDocument=this,e&&this.removeChild(e),tt(t)&&(this.documentElement=t)},importNode:function(t,e){return Ot(this,t,e)},getElementById:function(t){var e=null;return Y(this.documentElement,(function(r){if(r.nodeType==O&&r.getAttribute("id")==t)return e=r,!0})),e},createElement:function(t){var e=new at(c);return e.ownerDocument=this,"html"===this.type&&(t=t.toLowerCase()),n(this.contentType)&&(e.namespaceURI=u.HTML),e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new U,(e.attributes=new H)._ownerElement=e,e},createDocumentFragment:function(){var t=new yt(c);return t.ownerDocument=this,t.childNodes=new U,t},createTextNode:function(t){var e=new ct(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createComment:function(t){var e=new ht(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createCDATASection:function(t){var e=new dt(c);return e.ownerDocument=this,e.childNodes=new U,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new _t(c);return r.ownerDocument=this,r.childNodes=new U,r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){if(!f.QName_exact.test(t))throw new d(d.INVALID_CHARACTER_ERR,'invalid character in name "'+t+'"');return"html"===this.type&&(t=t.toLowerCase()),this._createAttribute(t)},_createAttribute:function(t){var e=new lt(c);return e.ownerDocument=this,e.childNodes=new U,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){if(!f.Name.test(t))throw new d(d.INVALID_CHARACTER_ERR,'not a valid xml name "'+t+'"');if("html"===this.type)throw new d("document is an html document",p.NotSupportedError);var e=new mt(c);return e.ownerDocument=this,e.childNodes=new U,e.nodeName=t,e},createElementNS:function(t,e){var r=x(t,e),n=new at(c),i=n.attributes=new H;return n.childNodes=new U,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],i._ownerElement=n,n},createAttributeNS:function(t,e){var r=x(t,e),n=new lt(c);return n.ownerDocument=this,n.childNodes=new U,n.nodeName=e,n.name=e,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},T(W,z),at.prototype={nodeType:O,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===u.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(t){return!!this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e?e.value:null},getAttributeNode:function(t){return this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase()),this.attributes.getNamedItem(t)},setAttribute:function(t,e){this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());var r=this.getAttributeNode(t);r?r.value=r.nodeValue=""+e:((r=this.ownerDocument._createAttribute(t)).value=r.nodeValue=""+e,this.setAttributeNode(r))},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r?r.value:null},setAttributeNS:function(t,e,r){var n=x(t,e)[2],i=this.getAttributeNodeNS(t,n);i?i.value=i.nodeValue=""+r:((i=this.ownerDocument.createAttributeNS(t,e)).value=i.nodeValue=""+r,this.setAttributeNode(i))},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByClassName:function(t){var e=_(t);return new F(this,(function(r){var n=[];return e.length>0&&Y(r,(function(i){if(i!==r&&i.nodeType===O){var o=i.getAttribute("class");if(o){var s=t===o;if(!s){var a=_(o);s=e.every(function(t){return function(e){return t&&-1!==t.indexOf(e)}}(a))}s&&n.push(i)}}})),n}))},getElementsByTagName:function(t){var e="html"===(this.nodeType===I?this:this.ownerDocument).type,r=t.toLowerCase();return new F(this,(function(n){var i=[];return Y(n,(function(o){o!==n&&o.nodeType===O&&("*"===t||o.getQualifiedName()===(e&&o.namespaceURI===u.HTML?r:t))&&i.push(o)})),i}))},getElementsByTagNameNS:function(t,e){return new F(this,(function(r){var n=[];return Y(r,(function(i){i!==r&&i.nodeType===O&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&n.push(i)})),n}))}},W.prototype.getElementsByClassName=at.prototype.getElementsByClassName,W.prototype.getElementsByTagName=at.prototype.getElementsByTagName,W.prototype.getElementsByTagNameNS=at.prototype.getElementsByTagNameNS,T(at,z),lt.prototype.nodeType=S,T(lt,z),ut.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},T(ut,z),ct.prototype={nodeName:"#text",nodeType:N,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},T(ct,ut),ht.prototype={nodeName:"#comment",nodeType:L},T(ht,ut),dt.prototype={nodeName:"#cdata-section",nodeType:A},T(dt,ct),pt.prototype.nodeType=k,T(pt,z),ft.prototype.nodeType=P,T(ft,z),gt.prototype.nodeType=R,T(gt,z),mt.prototype.nodeType=w,T(mt,z),yt.prototype.nodeName="#document-fragment",yt.prototype.nodeType=D,T(yt,z),_t.prototype.nodeType=C,T(_t,ut),vt.prototype.serializeToString=function(t,e){return xt.call(t,e)},z.prototype.toString=xt;try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case O:case D:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}};Object.defineProperty(F.prototype,"length",{get:function(){return $(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return t(this)},set:function(t){switch(this.nodeType){case O:case D:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Nt=function(t,e,r){t["$$"+e]=r}}}catch{}t._updateLiveList=$,t.Attr=lt,t.CDATASection=dt,t.CharacterData=ut,t.Comment=ht,t.Document=W,t.DocumentFragment=yt,t.DocumentType=pt,t.DOMImplementation=G,t.Element=at,t.Entity=gt,t.EntityReference=mt,t.LiveNodeList=F,t.NamedNodeMap=H,t.Node=z,t.NodeList=U,t.Notation=ft,t.Text=ct,t.ProcessingInstruction=_t,t.XMLSerializer=vt})),xn=p((t=>{var e=mn().freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})),bn=p((t=>{var e=mn(),r=_n(),n=yn(),i=e.isHTMLEscapableRawTextElement,o=e.isHTMLMimeType,s=e.isHTMLRawTextElement,a=e.hasOwn,l=e.NAMESPACE,u=n.ParseError,c=n.DOMException;function h(){}h.prototype={parse:function(t,n,i){var s=this.domBuilder;s.startDocument(),y(n,n=Object.create(null)),function(t,n,i,s,l){var h=o(s.mimeType);function y(t){var e=";"===t[t.length-1]?t:t+";";if(!h&&e!==t)return l.error("EntityRef: expecting ;"),t;var n=r.Reference.exec(e);if(!n||n[0].length!==e.length)return l.error("entity not matching Reference production: "+t),t;var o=e.slice(1,-1);return a(i,o)?i[o]:"#"===o.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}(parseInt(o.substring(1).replace("x","0x"))):(l.error("entity not found:"+t),t)}function _(e){if(e>R){var r=t.substring(R,e).replace(d,y);S&&N(R),s.characters(r,0,e-R),R=e}}t.indexOf(r.UNICODE_REPLACEMENT_CHARACTER)>=0&&l.warning("Unicode replacement character detected, source encoding issues?");var T=0,E=0,O=/\r\n?|\n|$/g,S=s.locator;function N(e,r){for(;e>=E&&(r=O.exec(t));)T=E,E=r.index+r[0].length,S.lineNumber++;S.columnNumber=e-T+1}for(var A=[{currentNSMap:n}],w=[],R=0;;){try{var C=t.indexOf("<",R);if(C<0){if(!h&&w.length>0)return l.fatalError("unclosed xml tag(s): "+w.join(", "));if(!t.substring(R).match(/^\s*$/)){var L=s.doc,I=L.createTextNode(t.substring(R));if(L.documentElement)return l.error("Extra content at the end of the document");L.appendChild(I),s.currentElement=I}return}if(C>R){var k=t.substring(R,C);!h&&0===w.length&&(k=k.replace(new RegExp(r.S_OPT.source,"g"),""))&&l.error("Unexpected content outside root element: '"+k+"'"),_(C)}switch(t.charAt(C+1)){case"/":var D=t.indexOf(">",C+2),P=t.substring(C+2,D>0?D:void 0);if(!P)return l.fatalError("end tag name missing");var M=D>0&&r.reg("^",r.QName_group,r.S_OPT,"$").exec(P);if(!M)return l.fatalError('end tag name contains invalid characters: "'+P+'"');if(!s.currentElement&&!s.doc.documentElement)return;var j=w[w.length-1]||s.currentElement.tagName||s.doc.documentElement.tagName||"";if(j!==M[1]){var K=M[1].toLowerCase();if(!h||j.toLowerCase()!==K)return l.fatalError('Opening and ending tag mismatch: "'+j+'" != "'+P+'"')}var U=A.pop();w.pop();var F=U.localNSMap;if(s.endElement(U.uri,U.localName,j),F)for(var $ in F)a(F,$)&&s.endPrefixMapping($);D++;break;case"?":S&&N(C),D=x(t,C,s,l);break;case"!":S&&N(C),D=v(t,C,s,l,h);break;default:S&&N(C);var H=new b,B=A[A.length-1].currentNSMap,q=(D=f(t,C,H,0,y,l,h),H.length);if(H.closed||(h&&e.isHTMLVoidElement(H.tagName)?H.closed=!0:w.push(H.tagName)),S&&q){for(var G=p(S,{}),z=0;zR?R=D:_(Math.max(C,R)+1)}}(t,n,i,s,this.errorHandler),s.endDocument()}};var d=/&#?\w+;?/g;function p(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,n,i,o,s){function l(t,e,n){return a(r.attributeNames,t)?o.fatalError("Attribute "+t+" redefined"):!s&&e.indexOf("<")>=0?o.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(t,e.replace(/[\t\n\r]/g," ").replace(d,i),n)}for(var u,c=++e,h=0;;){var p=t.charAt(c);switch(p){case"=":if(1===h)u=t.slice(e,c),h=3;else{if(2!==h)throw new Error("attribute equal must after attrName");h=3}break;case"'":case'"':if(3===h||1===h){if(1===h&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(p,e))>0))throw new Error("attribute value no end '"+p+"' match");l(u,f=t.slice(e,c),e-1),h=5}else{if(4!=h)throw new Error('attribute value must after "="');l(u,f=t.slice(e,c),e),o.warning('attribute "'+u+'" missed start quot('+p+")!!"),e=c+1,h=5}break;case"/":switch(h){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:h=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==h&&r.setTagName(t.slice(e,c)),c;case">":switch(h){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=t.slice(e,c)).slice(-1)&&(r.closed=!0,f=f.slice(0,-1));case 2:2===h&&(f=u),4==h?(o.warning('attribute "'+f+'" missed quot(")!'),l(u,f,e)):(s||o.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),l(f,f,e));break;case 3:if(!s)return o.fatalError("AttValue: ' or \" expected")}return c;case"€":p=" ";default:if(p<=" ")switch(h){case 0:r.setTagName(t.slice(e,c)),h=6;break;case 1:u=t.slice(e,c),h=2;break;case 4:var f=t.slice(e,c);o.warning('attribute "'+f+'" missed quot(")!!'),l(u,f,e);case 5:h=6}else switch(h){case 2:s||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),l(u,u,e),e=c,h=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:h=1,e=c;break;case 3:h=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function g(t,e,r){for(var n=t.tagName,i=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((f=u.indexOf(":"))>0)var h=s.prefix=u.slice(0,f),d=u.slice(f+1),p="xmlns"===h&&d;else d=u,h=null,p="xmlns"===u&&"";s.localName=d,!1!==p&&(null==i&&(i=Object.create(null),y(r,r=Object.create(null))),r[p]=i[p]=c,s.uri=l.XMLNS,e.startPrefixMapping(p,c))}for(o=t.length;o--;)(s=t[o]).prefix&&("xml"===s.prefix&&(s.uri=l.XML),"xmlns"!==s.prefix&&(s.uri=r[s.prefix]));var f;(f=n.indexOf(":"))>0?(h=t.prefix=n.slice(0,f),d=t.localName=n.slice(f+1)):(h=null,d=t.localName=n);var g=t.uri=r[h||""];if(e.startElement(g,d,n,t),!t.closed)return t.currentNSMap=r,t.localNSMap=i,!0;if(e.endElement(g,d,n),i)for(h in i)a(i,h)&&e.endPrefixMapping(h)}function m(t,e,r,n,o){var a=i(r);if(a||s(r)){var l=t.indexOf("",e),u=t.substring(e+1,l);return a&&(u=u.replace(d,n)),o.characters(u,0,u.length),l}return e+1}function y(t,e){for(var r in t)a(t,r)&&(e[r]=t[r])}function _(t,e){var n=e;function i(e){return e=e||0,t.charAt(n+e)}function o(t){n+=t=t||1}function s(){return t.substring(n)}return{char:i,getIndex:function(){return n},getMatch:function(t){var e=r.reg("^",t).exec(s());return e?(o(e[0].length),e[0]):null},getSource:function(){return t},skip:o,skipBlanks:function(){for(var e=0;n"!==s.char()?i.fatalError("doctype not terminated with > at position "+s.getIndex()):(s.skip(1),n.startDTD(u.name,u.publicId,u.systemId,u.internalSubset),n.endDTD(),s.getIndex());default:return i.fatalError('Not well-formed XML starting with "0)return i.fatalError("processing instruction at position "+e+" is an xml declaration which is only at the start of the document");if(!r.XMLDecl.test(t.substring(e)))return i.fatalError("xml declaration is not well-formed")}return n.processingInstruction(o[1],o[2]),e+o[0].length}function b(){this.attributeNames=Object.create(null)}b.prototype={setTagName:function(t){if(!r.QName_exact.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!r.QName_exact.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},t.XMLReader=h,t.parseUtils=_,t.parseDoctypeCommentOrCData=v})),Tn=p((t=>{var e=mn(),r=vn(),n=yn(),i=xn(),o=bn(),s=r.DOMImplementation,a=e.hasDefaultHTMLNamespace,l=e.isHTMLMimeType,u=e.isValidMimeType,c=e.MIME_TYPE,h=e.NAMESPACE,d=n.ParseError,p=o.XMLReader;function f(t){return t.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function g(t){if(void 0===(t=t||{}).locator&&(t.locator=!0),this.assign=t.assign||e.assign,this.domHandler=t.domHandler||m,this.onError=t.onError||t.errorHandler,t.errorHandler&&"function"!=typeof t.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");t.errorHandler&&t.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=t.normalizeLineEndings||f,this.locator=!!t.locator,this.xmlns=this.assign(Object.create(null),t.xmlns)}function m(t){var e=t||{};this.mimeType=e.mimeType||c.XML_APPLICATION,this.defaultNamespace=e.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=e.onError}function y(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function _(t,e,r){return"string"==typeof t?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}function v(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}g.prototype.parseFromString=function(t,r){if(!u(r))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+r+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),o=i.XML_ENTITIES,s=n[""]||null;a(r)?(o=i.HTML_ENTITIES,s=h.HTML):r===c.XML_SVG_IMAGE&&(s=h.SVG),n[""]=s,n.xml=n.xml||h.XML;var l=new this.domHandler({mimeType:r,defaultNamespace:s,onError:this.onError}),d=this.locator?{}:void 0;this.locator&&l.setDocumentLocator(d);var f=new p;return f.errorHandler=l,f.domBuilder=l,!e.isHTMLMimeType(r)&&"string"!=typeof t&&f.errorHandler.fatalError("source is not a string"),f.parse(this.normalizeLineEndings(String(t)),n,o),l.doc.documentElement||f.errorHandler.fatalError("missing root element"),l.doc},m.prototype={startDocument:function(){var t=new s;this.doc=l(this.mimeType)?t.createHTMLDocument(!1):t.createDocument(this.defaultNamespace,"")},startElement:function(t,e,r,n){var i=this.doc,o=i.createElementNS(t,r||e),s=n.length;v(this,o),this.currentElement=o,this.locator&&y(this.locator,o);for(var a=0;a{var e=mn();t.assign=e.assign,t.hasDefaultHTMLNamespace=e.hasDefaultHTMLNamespace,t.isHTMLMimeType=e.isHTMLMimeType,t.isValidMimeType=e.isValidMimeType,t.MIME_TYPE=e.MIME_TYPE,t.NAMESPACE=e.NAMESPACE;var r=yn();t.DOMException=r.DOMException,t.DOMExceptionName=r.DOMExceptionName,t.ExceptionCode=r.ExceptionCode,t.ParseError=r.ParseError;var n=vn();t.Attr=n.Attr,t.CDATASection=n.CDATASection,t.CharacterData=n.CharacterData,t.Comment=n.Comment,t.Document=n.Document,t.DocumentFragment=n.DocumentFragment,t.DocumentType=n.DocumentType,t.DOMImplementation=n.DOMImplementation,t.Element=n.Element,t.Entity=n.Entity,t.EntityReference=n.EntityReference,t.LiveNodeList=n.LiveNodeList,t.NamedNodeMap=n.NamedNodeMap,t.Node=n.Node,t.NodeList=n.NodeList,t.Notation=n.Notation,t.ProcessingInstruction=n.ProcessingInstruction,t.Text=n.Text,t.XMLSerializer=n.XMLSerializer;var i=Tn();t.DOMParser=i.DOMParser,t.normalizeLineEndings=i.normalizeLineEndings,t.onErrorStopParsing=i.onErrorStopParsing,t.onWarningStopParsing=i.onWarningStopParsing})),On=p(((t,e)=>{!function(r,n){"object"==typeof t&&"object"==typeof e?e.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof t?t.ForgeExprEvaluator=n():r.ForgeExprEvaluator=n()}(t,(()=>(()=>{var t={41:(t,e,r)=>{var n=r(655),i=r(8068),o=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{t.exports=Function.prototype.call},309:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;let o=r(5629),s=r(2399),a=r(7760),l=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),e.ListTokenSource=l},324:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;let o=r(8590),s=r(2399),a=r(7435),l=class extends o.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),e.LexerDFASerializer=l},328:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;let i=r(4148),o=r(1492),s=r(7477),a=r(2399);class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){let e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},333:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;let i=r(3907),o=r(5636),s=r(2399),a=r(8840);var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([s.Override],e.prototype,"hashCode",null),n([s.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},360:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;let i=r(7477),o=r(2399),s=r(7760);class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),e.TerminalNode=a},414:t=>{t.exports=Math.round},453:(t,e,r)=>{var n,i=r(9612),o=r(9383),s=r(1237),a=r(9290),l=r(9538),u=r(8068),c=r(9675),h=r(5345),d=r(1514),p=r(8968),f=r(6188),g=r(8002),m=r(5880),y=r(414),_=r(3093),v=Function,x=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch{}},b=r(5795),T=r(655),E=function(){throw new c},O=b?function(){try{return E}catch{try{return b(arguments,"callee").get}catch{return E}}}():E,S=r(4039)(),N=r(3628),A=r(1064),w=r(8648),R=r(1002),C=r(76),L={},I=typeof Uint8Array<"u"&&N?N(Uint8Array):n,k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map<"u"&&S&&N?N((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set<"u"&&S&&N?N((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&N?N(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":O,"%TypedArray%":I,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":R,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":_,"%Reflect.getPrototypeOf%":w};if(N)try{null.error}catch(t){var D=N(N(t));k["%Error.prototype%"]=D}var P=function t(e){var r;if("%AsyncFunction%"===e)r=x("async function () {}");else if("%GeneratorFunction%"===e)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=x("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&N&&(r=N(i.prototype))}return k[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r(6743),K=r(9957),U=j.call(C,Array.prototype.concat),F=j.call(R,Array.prototype.splice),$=j.call(C,String.prototype.replace),H=j.call(C,String.prototype.slice),B=j.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(t,e){var r,n=t;if(K(M,n)&&(n="%"+(r=M[n])[0]+"%"),K(k,n)){var i=k[n];if(i===L&&(i=P(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return $(t,q,(function(t,e,r,i){n[n.length]=r?$(i,G,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=z("%"+n+"%",e),o=i.name,s=i.value,a=!1,l=i.alias;l&&(n=l[0],F(r,U([0,1],l)));for(var h=1,d=!0;h=r.length){var m=b(s,p);s=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[p]}else d=K(s,p),s=s[p];d&&!a&&(k[o]=s)}}return s}},487:(t,e,r)=>{var n=r(6897),i=r(655),o=r(3126),s=r(2205);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},493:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;let o=r(9202),s=r(1533),a=r(4274),l=r(8955),u=r(7037),c=r(5369),h=r(8749),d=r(8744),p=r(6889),f=r(760),g=r(3099),m=r(8016),y=r(3074),_=r(9250),v=r(3357),x=r(9803),b=r(3972),T=r(7920),E=r(9616),O=r(6474),S=r(4283),N=r(4520),A=r(5859),w=r(6479),R=r(6251),C=r(2399),L=r(3575),I=r(3161),k=r(4891),D=r(6305),P=r(6061),M=r(6369),j=r(3053),K=r(9240),U=r(8840),F=r(3334),$=r(1384),H=r(8195),B=r(5481),q=r(4016),G=r(7760),z=r(8644),V=r(8567),Y=r(4650);var W,X;(X=W||(W={}))[X.UNICODE_BMP=0]="UNICODE_BMP",X[X.UNICODE_SMP=1]="UNICODE_SMP";class Q{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=Q.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&Q.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>Q.toInt(t[e]),size:1}:{readUnicode:(t,e)=>Q.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;et.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${Q.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=Q.isFeatureSupported(Q.ADDED_LEXER_ACTIONS,n),l=Q.toInt(t[e++]),p=Q.toInt(t[e++]),m=new a.ATN(l,p),v=[],b=[],E=Q.toInt(t[e++]);for(let r=0;rt.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),P=[];for(let t of m.states){let e=t.ruleIndex>=0&&m.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r0;){let r=m.ruleToStartState[t].removeTransition(m.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}m.ruleToStartState[t].addTransition(new _.EpsilonTransition(e)),i.addTransition(new _.EpsilonTransition(r));let o=new d.BasicState;m.addState(o),o.addTransition(new c.AtomTransition(i,m.ruleToTokenType[t])),e.addTransition(new _.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=Q.inlineSetRules(m),t+=Q.combineChainedEpsilons(m);let e=0===m.grammarType;if(t+=Q.optimizeSets(m,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}return Q.identifyTailCalls(m),m}deserializeSets(t,e,r,n){let i=Q.toInt(t[e++]);for(let o=0;o=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new v.IntervalSet;for(let t=0;t0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r>>0}static toUUID(t,e){let r=Q.toInt32(t,e),n=Q.toInt32(t,e+2),i=Q.toInt32(t,e+4),o=Q.toInt32(t,e+6);return new V.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,a,l){let u=t.states[n];switch(e){case 1:return new _.EpsilonTransition(u);case 2:return 0!==a?new j.RangeTransition(u,G.Token.EOF,s):new j.RangeTransition(u,i,s);case 3:return new F.RuleTransition(t.states[i],s,a,u);case 4:return new M.PredicateTransition(u,i,s,0!==a);case 10:return new P.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,G.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new $.SetTransition(u,l[i]);case 8:return new L.NotSetTransition(u,l[i]);case 9:return new Y.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new x.InvalidState;case u.ATNStateType.BASIC:r=new d.BasicState;break;case u.ATNStateType.RULE_START:r=new K.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new H.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new z.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new B.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new q.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new D.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new b.LexerChannelAction(e);case 1:return new T.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return O.LexerMoreAction.INSTANCE;case 4:return S.LexerPopModeAction.INSTANCE;case 5:return new N.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new w.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}Q.BASE_SERIALIZED_UUID=V.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),Q.ADDED_LEXER_ACTIONS=V.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),Q.ADDED_UNICODE_SMP=V.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),Q.SUPPORTED_UUIDS=[Q.BASE_SERIALIZED_UUID,Q.ADDED_LEXER_ACTIONS,Q.ADDED_UNICODE_SMP],Q.SERIALIZED_UUID=Q.ADDED_UNICODE_SMP,n([C.NotNull],Q.prototype,"deserializationOptions",void 0),n([i(0,C.NotNull)],Q.prototype,"deserialize",null),n([i(0,C.NotNull)],Q.prototype,"markPrecedenceDecisions",null),n([C.NotNull,i(0,C.NotNull)],Q.prototype,"edgeFactory",null),e.ATNDeserializer=Q},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=d(t,i,n)),i}var o=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var s,a=Object.keys(r),l=(s={},a.forEach((function(t,e){s[t]=!0})),s);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var c,h="",T=!1,N=["{","}"];return g(r)&&(T=!0,N=["[","]"]),S(r)&&(h=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(h=" "+RegExp.prototype.toString.call(r)),E(r)&&(h=" "+Date.prototype.toUTCString.call(r)),O(r)&&(h=" "+p(r)),0!==a.length||T&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=T?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,h,N)):N[0]+h+N[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),R(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?d(t,l.value,null):d(t,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function v(t){return"string"==typeof t}function x(t){return void 0===t}function b(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"==typeof t&&null!==t}function E(t){return T(t)&&"[object Date]"===N(t)}function O(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function S(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=g,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=b,e.types.isRegExp=b,e.isObject=T,e.isDate=E,e.types.isDate=E,e.isError=O,e.types.isNativeError=O,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),w[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!T(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var C=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function L(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(C&&t[C]){var e;if("function"!=typeof(e=t[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,C,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;let i=r(2399);class o{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},592:(t,e,r)=>{var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch{return!0}},t.exports=i},642:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.htmlDecodeTree=void 0,e.htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t=>t.charCodeAt(0))))},655:t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}t.exports=e},659:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0})},755:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;let i=r(5922),o=r(9449),s=r(2399);class a extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},760:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),e.BlockEndState=a},811:(t,e)=>{function r(t){for(let e=1;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=r},934:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},960:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getTextBlock=l,e.extractPredicates=function(t){let e=(0,a.decodeHTML)(t),r=n.CharStreams.fromString(e),c=new i.ForgeLexer(r),h=new n.CommonTokenStream(c),d=new o.ForgeParser(h);d.buildParseTree=!0;let p=d.alloyModule(),f=new u;return s.ParseTreeWalker.DEFAULT.walk(f,p),f.predicateSkeletons.map((t=>{let r,n=t.predName,i=l(t.startLine,t.endLine,t.startColumn,t.endColumn,e),o=l(t.predBlock.startLine,t.predBlock.endLine,t.predBlock.startColumn,t.predBlock.endColumn,e);if(t.predArgsBlock){let n=l(t.predArgsBlock.startLine,t.predArgsBlock.endLine,t.predArgsBlock.startColumn,t.predArgsBlock.endColumn,e);n.startsWith("[")&&n.endsWith("]")&&(n=n.substring(1,n.length-1).trim()),r=n.split(",").map((t=>t.trim()))}return{name:n,args:r,body:o,predicateString:i}}))};let n=r(2221),i=r(5288),o=r(5395),s=r(2219),a=r(2049);function l(t,e,r,n,i){let o=i.split("\n"),s="",a=t===e;for(let i=t;i<=e;i++){let l=o[i-1];s+=i===t?a?l.substring(r,n):l.substring(r):i===e?l.substring(0,n):l,i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6869);class a extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},1002:t=>{t.exports=Function.prototype.apply},1064:(t,e,r)=>{var n=r(9612);t.exports=n.getPrototypeOf||null},1072:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;let o=r(2399),s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},1088:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;let o=r(2962),s=r(4274),a=r(8880),l=r(3258),u=r(6298),c=r(9709),h=r(7477),d=r(1492),p=r(2807),f=r(2662),g=r(6181),m=r(2399),y=r(5895),_=r(8859),v=r(8840),x=r(7760),b=r(4148),T=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let a=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR||(n!==d.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===d.IntStream.EOF)))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===d.IntStream.EOF&&e.index===this.startIndex)return x.Token.EOF;throw new g.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t "+n+" upon "+String.fromCharCode(r)),e?.setTarget(r,n)}addDFAState(t){b(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof v.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){10===t.LA(1)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};var E;n([m.NotNull],T.prototype,"prevAccept",void 0),n([i(0,m.NotNull)],T.prototype,"copyState",null),n([i(0,m.NotNull)],T.prototype,"match",null),n([m.Override],T.prototype,"reset",null),n([i(0,m.NotNull)],T.prototype,"matchATN",null),n([i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"execATN",null),n([i(0,m.NotNull)],T.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeTargetState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"getReachableConfigSet",null),n([i(0,m.NotNull)],T.prototype,"accept",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull),i(3,m.NotNull)],T.prototype,"getEpsilonTarget",null),n([i(0,m.NotNull)],T.prototype,"evaluatePredicate",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"captureSimState",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"addDFAState",null),n([m.NotNull],T.prototype,"getDFA",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"getText",null),n([i(0,m.NotNull)],T.prototype,"consume",null),n([m.NotNull],T.prototype,"getTokenName",null),T=n([i(0,m.NotNull)],T),e.LexerATNSimulator=T,(E=T=e.LexerATNSimulator||(e.LexerATNSimulator={})).debug=!1,E.dfa_debug=!1,E.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}},e.LexerATNSimulator=T},1093:t=>{var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1097:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;let i=r(1964),o=r(7477),s=r(2399),a=r(9984),l=r(360);class u extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){let e=t;return e.setParent(this),this.addAnyChild(e)}{let e=t,r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1173:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;let o=r(2399),s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},1189:(t,e,r)=>{var n=Array.prototype.slice,i=r(1093),o=Object.keys,s=o?function(t){return o(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1237:t=>{t.exports=EvalError},1284:function(t,e,r){var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;let s=r(7886),a=r(4274),l=r(6298),u=r(2433),c=r(585),h=r(4241),d=r(2399),p=r(7059),f=r(3161),g=r(7004),m=r(2356),y=r(4364);class _ extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;tthis.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=u,this.decisions[e].SLL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof m.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new g.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,o,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=o?o.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new s.AmbiguityInfo(this.currentDecision,this.currentState,o,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,o,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([d.Override,o(0,d.NotNull)],_.prototype,"adaptivePredict",null),i([d.Override],_.prototype,"getStartState",null),i([d.Override],_.prototype,"computeStartState",null),i([d.Override],_.prototype,"computeReachSet",null),i([d.Override],_.prototype,"getExistingTargetState",null),i([d.Override],_.prototype,"computeTargetState",null),i([d.Override],_.prototype,"evalSemanticContextImpl",null),i([d.Override],_.prototype,"reportContextSensitivity",null),i([d.Override],_.prototype,"reportAttemptingFullContext",null),i([d.Override,o(0,d.NotNull),o(5,d.NotNull),o(6,d.NotNull)],_.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=_},1333:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1384:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;let o=r(3357),s=r(2399),a=r(7760),l=r(1072),u=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},1405:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;let i=r(2399),o=r(659);class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},1492:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME=""},1514:t=>{t.exports=Math.abs},1533:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;let o=r(4148),s=r(5643),a=r(2399),l=r(5636);class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;tthis.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&t.size===this.size&&this.containsAll(t)}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){let t=new Array(this.size),e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},1668:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1838:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.xmlDecodeTree=void 0,e.xmlDecodeTree=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t=>t.charCodeAt(0))))},1862:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;let n=r(8240);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},1964:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;let i=r(2399),o=r(360);class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},2049:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLAttribute=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.DecodingMode=e.EntityDecoder=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.encodeXML=e.EncodingMode=e.EntityLevel=void 0,e.decode=u,e.decodeStrict=function(t,e=s.XML){var r;let i="number"==typeof e?{level:e}:e;return null!==(r=i.mode)&&void 0!==r||(i.mode=n.DecodingMode.Strict),u(t,i)},e.encode=function(t,e=s.XML){let{mode:r=a.Extensive,level:n=s.XML}="number"==typeof e?{level:e}:e;switch(r){case a.UTF8:return(0,o.escapeUTF8)(t);case a.Attribute:return(0,o.escapeAttribute)(t);case a.Text:return(0,o.escapeText)(t);case a.ASCII:return n===s.HTML?(0,i.encodeNonAsciiHTML)(t):(0,o.encodeXML)(t);case a.Extensive:default:return n===s.HTML?(0,i.encodeHTML)(t):(0,o.encodeXML)(t)}};let n=r(9299),i=r(2719),o=r(7366);var s,a,l;function u(t,e=s.XML){if(("number"==typeof e?e:e.level)===s.HTML){let r="object"==typeof e?e.mode:void 0;return(0,n.decodeHTML)(t,r)}return(0,n.decodeXML)(t)}(l=s||(e.EntityLevel=s={}))[l.XML=0]="XML",l[l.HTML=1]="HTML",function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"}(a||(e.EncodingMode=a={}));var c=r(7366);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var h=r(2719);Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var d=r(9299);Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},2193:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6869);class a extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},2205:(t,e,r)=>{var n=r(6743),i=r(1002),o=r(3144);t.exports=function(){return o(n,i,arguments)}},2219:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;let n=r(1964),i=r(360),o=r(5378);class s{walk(t,e){let r=[],s=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),s.push(l),l=0,a=a.getChild(0);else do{if(a instanceof o.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;let o=r(9449),s=r(2399),a=r(6369),l=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),e.FailedPredicateException=l},2299:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function k(t){return Object.keys(t).filter(I).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function D(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;let o=r(1533),s=r(8151),a=r(5636),l=r(2399),u=r(8055),c=r(659);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class d extends t{}t.Operator=d;let p=class r extends d{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e{Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},2431:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;let i=r(2399),o=r(7239),s=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},2433:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ContextSensitivityInfo=a},2464:(t,e,r)=>{var n=r(8452),i=r(6642);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2468:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;let o=r(9449),s=r(2399),a=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,s.NotNull)],a),e.InputMismatchException=a},2543:function(t,e,r){var n;t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",_="[object Date]",v="[object Error]",x="[object Function]",b="[object GeneratorFunction]",T="[object Map]",E="[object Number]",O="[object Object]",S="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",R="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",I="[object DataView]",k="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",K="[object Uint8Array]",U="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,V=RegExp(G.source),Y=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wt="["+bt+"]",Rt="["+At+"]",Ct="["+Tt+"]",Lt="\\d+",It="["+Et+"]",kt="["+Ot+"]",Dt="[^"+bt+At+Lt+Et+Ot+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Mt="[^"+bt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+St+"]",Ft="\\u200d",$t="(?:"+kt+"|"+Dt+")",Ht="(?:"+Ut+"|"+Dt+")",Bt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Ct+"|"+Pt+")?",zt="["+Nt+"]?",Vt=zt+Gt+"(?:"+Ft+"(?:"+[Mt,jt,Kt].join("|")+")"+zt+Gt+")*",Yt="(?:"+[It,jt,Kt].join("|")+")"+Vt,Wt="(?:"+[Mt+Ct+"?",Ct,jt,Kt,wt].join("|")+")",Xt=RegExp("['’]","g"),Qt=RegExp(Ct,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+Wt+Vt,"g"),Zt=RegExp([Ut+"?"+kt+"+"+Bt+"(?="+[Rt,Ut,"$"].join("|")+")",Ht+"+"+qt+"(?="+[Rt,Ut+$t,"$"].join("|")+")",Ut+"?"+$t+"+"+Bt,Ut+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Yt].join("|"),"g"),te=RegExp("["+Ft+bt+Tt+Nt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[k]=ie[D]=ie[P]=ie[M]=ie[j]=ie[K]=ie[U]=ie[F]=ie[$]=!0,ie[g]=ie[m]=ie[L]=ie[y]=ie[I]=ie[_]=ie[v]=ie[x]=ie[T]=ie[E]=ie[O]=ie[N]=ie[A]=ie[w]=ie[C]=!1;var oe={};oe[g]=oe[m]=oe[L]=oe[I]=oe[y]=oe[_]=oe[k]=oe[D]=oe[P]=oe[M]=oe[j]=oe[T]=oe[E]=oe[O]=oe[N]=oe[A]=oe[w]=oe[R]=oe[K]=oe[U]=oe[F]=oe[$]=!0,oe[v]=oe[x]=oe[C]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,le=parseInt,ue="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ce="object"==typeof self&&self&&self.Object===Object&&self,he=ue||ce||Function("return this")(),de=e&&!e.nodeType&&e,pe=de&&t&&!t.nodeType&&t,fe=pe&&pe.exports===de,ge=fe&&ue.process,me=function(){try{return pe&&pe.require&&pe.require("util").types||ge&&ge.binding&&ge.binding("util")}catch{}}(),ye=me&&me.isArrayBuffer,_e=me&&me.isDate,ve=me&&me.isMap,xe=me&&me.isRegExp,be=me&&me.isSet,Te=me&&me.isTypedArray;function Ee(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Oe(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Ce(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Ze(t,e){for(var r=t.length;r--&&Ue(e,t[r],0)>-1;);return r}var tr=qe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=qe({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+se[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),dr=function t(e){var r,n=(e=null==e?he:dr.defaults(he.Object(),e,dr.pick(he,re))).Array,it=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=n.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(r=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mt=Ct.toString,jt=It.call(Ot),Kt=he._,Ut=St("^"+It.call(kt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=fe?e.Buffer:i,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:i,qt=or(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Vt=wt.splice,Yt=$t?$t.isConcatSpreadable:i,Wt=$t?$t.iterator:i,Jt=$t?$t.toStringTag:i,te=function(){try{var t=ao(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),se=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,ue=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,de=Et.ceil,pe=Et.floor,ge=Ot.getOwnPropertySymbols,me=Ft?Ft.isBuffer:i,Me=e.isFinite,qe=wt.join,pr=or(Ot.keys,Ot),fr=Et.max,gr=Et.min,mr=it.now,yr=e.parseInt,_r=Et.random,vr=wt.reverse,xr=ao(e,"DataView"),br=ao(e,"Map"),Tr=ao(e,"Promise"),Er=ao(e,"Set"),Or=ao(e,"WeakMap"),Sr=ao(Ot,"create"),Nr=Or&&new Or,Ar={},wr=Mo(xr),Rr=Mo(br),Cr=Mo(Tr),Lr=Mo(Er),Ir=Mo(Or),kr=$t?$t.prototype:i,Dr=kr?kr.valueOf:i,Pr=kr?kr.toString:i;function Mr(t){if(Zs(t)&&!Hs(t)&&!(t instanceof Fr)){if(t instanceof Ur)return t;if(kt.call(t,"__wrapped__"))return jo(t)}return new Ur(t)}var jr=function(){function t(){}return function(e){if(!Js(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Kr(){}function Ur(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function $r(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function on(t,e,r,n,o,s){var a,l=1&e,u=2&e,c=4&e;if(r&&(a=o?r(t,n,o,s):r(t)),a!==i)return a;if(!Js(t))return t;var h,d,p,f=Hs(t);if(f){if(d=(h=t).length,p=new h.constructor(d),d&&"string"==typeof h[0]&&kt.call(h,"index")&&(p.index=h.index,p.input=h.input),a=p,!l)return Si(t,a)}else{var m=co(t),v=m==x||m==b;if(zs(t))return vi(t,l);if(m==O||m==g||v&&!o){if(a=u||v?{}:po(t),!l)return u?function(t,e){return Ni(t,uo(t),e)}(t,function(t,e){return t&&Ni(e,Ca(e),t)}(a,t)):function(t,e){return Ni(t,lo(t),e)}(t,tn(a,t))}else{if(!oe[m])return o?t:{};a=function(t,e,r){var n,i,o,s=t.constructor;switch(e){case L:return xi(t);case y:case _:return new s(+t);case I:return i=t,o=r?xi(i.buffer):i.buffer,new i.constructor(o,i.byteOffset,i.byteLength);case k:case D:case P:case M:case j:case K:case U:case F:case $:return bi(t,r);case T:return new s;case E:case w:return new s(t);case N:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new s;case R:return n=t,Dr?Ot(Dr.call(n)):{}}}(t,m,l)}}s||(s=new Gr);var S=s.get(t);if(S)return S;s.set(t,a),ia(t)?t.forEach((function(n){a.add(on(n,e,r,n,t,s))})):ta(t)&&t.forEach((function(n,i){a.set(i,on(n,e,r,i,t,s))}));var C=f?i:(c?u?to:Zi:u?Ca:Ra)(t);return Se(C||t,(function(n,i){C&&(n=t[i=n]),Qr(a,i,on(n,e,r,i,t,s))})),a}function sn(t,e,r){var n=r.length;if(null==t)return!n;for(t=Ot(t);n--;){var o=r[n],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function an(t,e,r){if("function"!=typeof t)throw new At(o);return Ao((function(){t.apply(i,r)}),e)}function ln(t,e,r,n){var i=-1,o=Re,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Le(e,We(r))),n?(o=Ce,s=!1):e.length>=200&&(o=Qe,s=!1,e=new qr(e));t:for(;++i-1},Hr.prototype.set=function(t,e){var r=this.__data__,n=Jr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Br.prototype.clear=function(){this.size=0,this.__data__={hash:new $r,map:new(br||Hr),string:new $r}},Br.prototype.delete=function(t){var e=oo(this,t).delete(t);return this.size-=e?1:0,e},Br.prototype.get=function(t){return oo(this,t).get(t)},Br.prototype.has=function(t){return oo(this,t).has(t)},Br.prototype.set=function(t,e){var r=oo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(t){return this.__data__.set(t,s),this},qr.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.clear=function(){this.__data__=new Hr,this.size=0},Gr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Gr.prototype.get=function(t){return this.__data__.get(t)},Gr.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!br||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Br(n)}return r.set(t,e),this.size=r.size,this};var un=Ri(yn),cn=Ri(_n,!0);function hn(t,e){var r=!0;return un(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function dn(t,e,r){for(var n=-1,o=t.length;++n0&&r(a)?e>1?fn(a,e-1,r,n,i):Ie(i,a):n||(i[i.length]=a)}return i}var gn=Ci(),mn=Ci(!0);function yn(t,e){return t&&gn(t,e,Ra)}function _n(t,e){return t&&mn(t,e,Ra)}function vn(t,e){return we(e,(function(e){return Ws(t[e])}))}function xn(t,e){for(var r=0,n=(e=gi(e,t)).length;null!=t&&re}function On(t,e){return null!=t&&kt.call(t,e)}function Sn(t,e){return null!=t&&e in Ot(t)}function Nn(t,e,r){for(var o=r?Ce:Re,s=t[0].length,a=t.length,l=a,u=n(a),c=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Le(d,We(e))),c=gr(d.length,c),u[l]=!r&&(e||s>=120&&d.length>=120)?new qr(l&&d):i}d=t[0];var p=-1,f=u[0];t:for(;++p=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));e--;)t[e]=t[e].value;return t}(Pn(t,(function(t,r,i){return{criteria:Le(e,(function(e){return e(t)})),index:++n,value:t}})))}function $n(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Vt.call(a,l,1),Vt.call(t,l,1);return t}function Bn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;go(i)?Vt.call(t,i,1):ai(t,i)}}return t}function qn(t,e){return t+pe(_r()*(e-t+1))}function Gn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function zn(t,e){return wo(Eo(t,e,el),t+"")}function Vn(t){return Vr(Ka(t))}function Yn(t,e){var r=Ka(t);return Lo(r,nn(e,0,r.length))}function Wn(t,e,r,n){if(!Js(t))return t;for(var o=-1,s=(e=gi(e,t)).length,a=s-1,l=t;null!=l&&++oo?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i>>1,s=t[o];null!==s&&!sa(s)&&(r?s<=e:s=200){var u=e?null:Gi(t);if(u)return ar(u);s=!1,i=Qe,l=new qr}else l=e?[]:a;t:for(;++n=n?t:Zn(t,e,r)}var _i=se||function(t){return he.clearTimeout(t)};function vi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function xi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function bi(t,e){var r=e?xi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ti(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,s=sa(t),a=e!==i,l=null===e,u=e==e,c=sa(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||n&&a&&u||!r&&u||!o)return 1;if(!n&&!s&&!c&&t1?r[o-1]:i,a=o>2?r[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&mo(r[0],r[1],a)&&(s=o<3?i:s,o=1),e=Ot(e);++n-1?o[s?e[a]:a]:i}}function Pi(t){return Ji((function(e){var r=e.length,n=r,s=Ur.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new At(o);if(s&&!l&&"wrapper"==ro(a))var l=new Ur([],!0)}for(n=l?n:r;++n1&&x.reverse(),p&&hl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&r?new qr:i;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Se(f,(function(r){var n="_."+r[0];e&r[1]&&!Re(t,n)&&t.push(n)})),t.sort()}((n=i.match(st))?n[1].split(at):[],r)))}function Co(t){var e=0,r=0;return function(){var n=mr(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,ns(t,r)}));function cs(t){var e=Mr(t);return e.__chain__=!0,e}function hs(t,e){return e(t)}var ds=Ji((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return rn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Fr&&go(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Ur(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),ps=Ai((function(t,e,r){kt.call(t,r)?++t[r]:en(t,r,1)})),fs=Di($o),gs=Di(Ho);function ms(t,e){return(Hs(t)?Se:un)(t,io(e,3))}function ys(t,e){return(Hs(t)?Ne:cn)(t,io(e,3))}var _s=Ai((function(t,e,r){kt.call(t,r)?t[r].push(e):en(t,r,[e])})),vs=zn((function(t,e,r){var i=-1,o="function"==typeof e,s=qs(t)?n(t.length):[];return un(t,(function(t){s[++i]=o?Ee(e,t,r):An(t,e,r)})),s})),xs=Ai((function(t,e,r){en(t,r,e)}));function bs(t,e){return(Hs(t)?Le:Pn)(t,io(e,3))}var Ts=Ai((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Es=zn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&mo(t,e[0],e[1])?e=[]:r>2&&mo(e[0],e[1],e[2])&&(e=[e[0]]),Fn(t,fn(e,1),[])})),Os=ue||function(){return he.Date.now()};function Ss(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Vi(t,u,i,i,i,i,e)}function Ns(t,e){var r;if("function"!=typeof e)throw new At(o);return t=da(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var As=zn((function(t,e,r){var n=1;if(r.length){var i=sr(r,no(As));n|=l}return Vi(t,n,e,r,i)})),ws=zn((function(t,e,r){var n=3;if(r.length){var i=sr(r,no(ws));n|=l}return Vi(e,n,t,r,i)}));function Rs(t,e,r){var n,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(o);function g(e){var r=n,o=s;return n=s=i,h=e,l=t.apply(o,r)}function m(t){var r=t-c;return c===i||r>=e||r<0||p&&t-h>=a}function y(){var t,r,n=Os();if(m(n))return _(n);u=Ao(y,(r=e-((t=n)-c),p?gr(r,a-(t-h)):r))}function _(t){return u=i,f&&n?g(t):(n=s=i,l)}function v(){var t,r=Os(),o=m(r);if(n=arguments,s=this,c=r,o){if(u===i)return h=t=c,u=Ao(y,e),d?g(t):l;if(p)return _i(u),u=Ao(y,e),g(c)}return u===i&&(u=Ao(y,e)),l}return e=fa(e)||0,Js(r)&&(d=!!r.leading,a=(p="maxWait"in r)?fr(fa(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f),v.cancel=function(){u!==i&&_i(u),h=0,n=c=s=u=i},v.flush=function(){return u===i?l:_(Os())},v}var Cs=zn((function(t,e){return an(t,1,e)})),Ls=zn((function(t,e,r){return an(t,fa(e)||0,r)}));function Is(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Is.Cache||Br),r}function ks(t){if("function"!=typeof t)throw new At(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Is.Cache=Br;var Ds=mi((function(t,e){var r=(e=1==e.length&&Hs(e[0])?Le(e[0],We(io())):Le(fn(e,1),We(io()))).length;return zn((function(n){for(var i=-1,o=gr(n.length,r);++i=e})),$s=wn(function(){return arguments}())?wn:function(t){return Zs(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},Hs=n.isArray,Bs=ye?We(ye):function(t){return Zs(t)&&Tn(t)==L};function qs(t){return null!=t&&Qs(t.length)&&!Ws(t)}function Gs(t){return Zs(t)&&qs(t)}var zs=me||fl,Vs=_e?We(_e):function(t){return Zs(t)&&Tn(t)==_};function Ys(t){if(!Zs(t))return!1;var e=Tn(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Ws(t){if(!Js(t))return!1;var e=Tn(t);return e==x||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Xs(t){return"number"==typeof t&&t==da(t)}function Qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Js(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zs(t){return null!=t&&"object"==typeof t}var ta=ve?We(ve):function(t){return Zs(t)&&co(t)==T};function ea(t){return"number"==typeof t||Zs(t)&&Tn(t)==E}function ra(t){if(!Zs(t)||Tn(t)!=O)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var na=xe?We(xe):function(t){return Zs(t)&&Tn(t)==N},ia=be?We(be):function(t){return Zs(t)&&co(t)==A};function oa(t){return"string"==typeof t||!Hs(t)&&Zs(t)&&Tn(t)==w}function sa(t){return"symbol"==typeof t||Zs(t)&&Tn(t)==R}var aa=Te?We(Te):function(t){return Zs(t)&&Qs(t.length)&&!!ie[Tn(t)]},la=Hi(Dn),ua=Hi((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(qs(t))return oa(t)?ur(t):Si(t);if(Wt&&t[Wt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Wt]());var e=co(t);return(e==T?ir:e==A?ar:Ka)(t)}function ha(t){return t?(t=fa(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=ha(t),r=e%1;return e==e?r?e-r:e:0}function pa(t){return t?nn(da(t),0,p):0}function fa(t){if("number"==typeof t)return t;if(sa(t))return d;if(Js(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Js(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=ft.test(t);return r||mt.test(t)?le(t.slice(2),r?2:8):pt.test(t)?d:+t}function ga(t){return Ni(t,Ca(t))}function ma(t){return null==t?"":oi(t)}var ya=wi((function(t,e){if(xo(e)||qs(e))Ni(e,Ra(e),t);else for(var r in e)kt.call(e,r)&&Qr(t,r,e[r])})),_a=wi((function(t,e){Ni(e,Ca(e),t)})),va=wi((function(t,e,r,n){Ni(e,Ca(e),t,n)})),xa=wi((function(t,e,r,n){Ni(e,Ra(e),t,n)})),ba=Ji(rn),Ta=zn((function(t,e){t=Ot(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&mo(e[0],e[1],o)&&(n=1);++r1),e})),Ni(t,to(t),r),n&&(r=on(r,7,Xi));for(var i=e.length;i--;)ai(r,e[i]);return r})),Da=Ji((function(t,e){return null==t?{}:$n(r=t,e,(function(t,e){return Sa(r,e)}));var r}));function Pa(t,e){if(null==t)return{};var r=Le(to(t),(function(t){return[t]}));return e=io(e),$n(t,r,(function(t,r){return e(t,r[0])}))}var Ma=zi(Ra),ja=zi(Ca);function Ka(t){return null==t?[]:Xe(t,Ra(t))}var Ua=Ii((function(t,e,r){return e=e.toLowerCase(),t+(r?Fa(e):e)}));function Fa(t){return Ya(ma(t).toLowerCase())}function $a(t){return(t=ma(t))&&t.replace(_t,tr).replace(Qt,"")}var Ha=Ii((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ba=Ii((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),qa=Li("toLowerCase"),Ga=Ii((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),za=Ii((function(t,e,r){return t+(r?" ":"")+Ya(e)})),Va=Ii((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ya=Li("toUpperCase");function Wa(t,e,r){return t=ma(t),(e=r?i:e)===i?(n=t,ee.test(n)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(lt)||[]}(t)):t.match(e)||[];var n}var Xa=zn((function(t,e){try{return Ee(t,i,e)}catch(t){return Ys(t)?t:new bt(t)}})),Qa=Ji((function(t,e){return Se(e,(function(e){e=Po(e),en(t,e,As(t[e],t))})),t}));function Ja(t){return function(){return t}}var Za=Pi(),tl=Pi(!0);function el(t){return t}function rl(t){return In("function"==typeof t?t:on(t,1))}var nl=zn((function(t,e){return function(r){return An(r,t,e)}})),il=zn((function(t,e){return function(r){return An(t,r,e)}}));function ol(t,e,r){var n=Ra(e),i=vn(e,n);null!=r||Js(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=vn(e,Ra(e)));var o=!(Js(r)&&"chain"in r&&!r.chain),s=Ws(t);return Se(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Ie([this.value()],arguments))})})),t}function sl(){}var al=Ui(Le),ll=Ui(Ae),ul=Ui(Pe);function cl(t){return yo(t)?Be(Po(t)):(e=t,function(t){return xn(t,e)});var e}var hl=$i(),dl=$i(!0);function pl(){return[]}function fl(){return!1}var gl,ml=Ki((function(t,e){return t+e}),0),yl=qi("ceil"),_l=Ki((function(t,e){return t/e}),1),vl=qi("floor"),xl=Ki((function(t,e){return t*e}),1),bl=qi("round"),Tl=Ki((function(t,e){return t-e}),0);return Mr.after=function(t,e){if("function"!=typeof e)throw new At(o);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Mr.ary=Ss,Mr.assign=ya,Mr.assignIn=_a,Mr.assignInWith=va,Mr.assignWith=xa,Mr.at=ba,Mr.before=Ns,Mr.bind=As,Mr.bindAll=Qa,Mr.bindKey=ws,Mr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},Mr.chain=cs,Mr.chunk=function(t,e,r){e=(r?mo(t,e,r):e===i)?1:fr(da(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=n(de(o/e));so?0:o+r),(n=n===i||n>o?o:da(n))<0&&(n+=o),n=r>n?0:pa(n);r>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!na(e))&&!(e=oi(e))&&nr(t)?yi(ur(t),0,r):t.split(e,r):[]},Mr.spread=function(t,e){if("function"!=typeof t)throw new At(o);return e=null==e?0:fr(da(e),0),zn((function(r){var n=r[e],i=yi(r,0,e);return n&&Ie(i,n),Ee(t,this,i)}))},Mr.tail=function(t){var e=null==t?0:t.length;return e?Zn(t,1,e):[]},Mr.take=function(t,e,r){return t&&t.length?Zn(t,0,(e=r||e===i?1:da(e))<0?0:e):[]},Mr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Zn(t,(e=n-(e=r||e===i?1:da(e)))<0?0:e,n):[]},Mr.takeRightWhile=function(t,e){return t&&t.length?ui(t,io(e,3),!1,!0):[]},Mr.takeWhile=function(t,e){return t&&t.length?ui(t,io(e,3)):[]},Mr.tap=function(t,e){return e(t),t},Mr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new At(o);return Js(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Rs(t,e,{leading:n,maxWait:e,trailing:i})},Mr.thru=hs,Mr.toArray=ca,Mr.toPairs=Ma,Mr.toPairsIn=ja,Mr.toPath=function(t){return Hs(t)?Le(t,Po):sa(t)?[t]:Si(Do(ma(t)))},Mr.toPlainObject=ga,Mr.transform=function(t,e,r){var n=Hs(t),i=n||zs(t)||aa(t);if(e=io(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Js(t)&&Ws(o)?jr(qt(t)):{}}return(i?Se:yn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Mr.unary=function(t){return Ss(t,1)},Mr.union=Zo,Mr.unionBy=ts,Mr.unionWith=es,Mr.uniq=function(t){return t&&t.length?si(t):[]},Mr.uniqBy=function(t,e){return t&&t.length?si(t,io(e,2)):[]},Mr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?si(t,i,e):[]},Mr.unset=function(t,e){return null==t||ai(t,e)},Mr.unzip=rs,Mr.unzipWith=ns,Mr.update=function(t,e,r){return null==t?t:li(t,e,fi(r))},Mr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:li(t,e,fi(r),n)},Mr.values=Ka,Mr.valuesIn=function(t){return null==t?[]:Xe(t,Ca(t))},Mr.without=is,Mr.words=Wa,Mr.wrap=function(t,e){return Ps(fi(e),t)},Mr.xor=os,Mr.xorBy=ss,Mr.xorWith=as,Mr.zip=ls,Mr.zipObject=function(t,e){return di(t||[],e||[],Qr)},Mr.zipObjectDeep=function(t,e){return di(t||[],e||[],Wn)},Mr.zipWith=us,Mr.entries=Ma,Mr.entriesIn=ja,Mr.extend=_a,Mr.extendWith=va,ol(Mr,Mr),Mr.add=ml,Mr.attempt=Xa,Mr.camelCase=Ua,Mr.capitalize=Fa,Mr.ceil=yl,Mr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=fa(r))==r?r:0),e!==i&&(e=(e=fa(e))==e?e:0),nn(fa(t),e,r)},Mr.clone=function(t){return on(t,4)},Mr.cloneDeep=function(t){return on(t,5)},Mr.cloneDeepWith=function(t,e){return on(t,5,e="function"==typeof e?e:i)},Mr.cloneWith=function(t,e){return on(t,4,e="function"==typeof e?e:i)},Mr.conformsTo=function(t,e){return null==e||sn(t,e,Ra(e))},Mr.deburr=$a,Mr.defaultTo=function(t,e){return null==t||t!=t?e:t},Mr.divide=_l,Mr.endsWith=function(t,e,r){t=ma(t),e=oi(e);var n=t.length,o=r=r===i?n:nn(da(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},Mr.eq=Ks,Mr.escape=function(t){return(t=ma(t))&&Y.test(t)?t.replace(z,er):t},Mr.escapeRegExp=function(t){return(t=ma(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Mr.every=function(t,e,r){var n=Hs(t)?Ae:hn;return r&&mo(t,e,r)&&(e=i),n(t,io(e,3))},Mr.find=fs,Mr.findIndex=$o,Mr.findKey=function(t,e){return je(t,io(e,3),yn)},Mr.findLast=gs,Mr.findLastIndex=Ho,Mr.findLastKey=function(t,e){return je(t,io(e,3),_n)},Mr.floor=vl,Mr.forEach=ms,Mr.forEachRight=ys,Mr.forIn=function(t,e){return null==t?t:gn(t,io(e,3),Ca)},Mr.forInRight=function(t,e){return null==t?t:mn(t,io(e,3),Ca)},Mr.forOwn=function(t,e){return t&&yn(t,io(e,3))},Mr.forOwnRight=function(t,e){return t&&_n(t,io(e,3))},Mr.get=Oa,Mr.gt=Us,Mr.gte=Fs,Mr.has=function(t,e){return null!=t&&ho(t,e,On)},Mr.hasIn=Sa,Mr.head=qo,Mr.identity=el,Mr.includes=function(t,e,r,n){t=qs(t)?t:Ka(t),r=r&&!n?da(r):0;var i=t.length;return r<0&&(r=fr(i+r,0)),oa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ue(t,e,r)>-1},Mr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:da(r);return i<0&&(i=fr(n+i,0)),Ue(t,e,i)},Mr.inRange=function(t,e,r){return e=ha(e),r===i?(r=e,e=0):r=ha(r),(n=t=fa(t))>=gr(o=e,s=r)&&n=-9007199254740991&&t<=h},Mr.isSet=ia,Mr.isString=oa,Mr.isSymbol=sa,Mr.isTypedArray=aa,Mr.isUndefined=function(t){return t===i},Mr.isWeakMap=function(t){return Zs(t)&&co(t)==C},Mr.isWeakSet=function(t){return Zs(t)&&"[object WeakSet]"==Tn(t)},Mr.join=function(t,e){return null==t?"":qe.call(t,e)},Mr.kebabCase=Ha,Mr.last=Yo,Mr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=da(r))<0?fr(n+o,0):gr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Ke(t,$e,o,!0)},Mr.lowerCase=Ba,Mr.lowerFirst=qa,Mr.lt=la,Mr.lte=ua,Mr.max=function(t){return t&&t.length?dn(t,el,En):i},Mr.maxBy=function(t,e){return t&&t.length?dn(t,io(e,2),En):i},Mr.mean=function(t){return He(t,el)},Mr.meanBy=function(t,e){return He(t,io(e,2))},Mr.min=function(t){return t&&t.length?dn(t,el,Dn):i},Mr.minBy=function(t,e){return t&&t.length?dn(t,io(e,2),Dn):i},Mr.stubArray=pl,Mr.stubFalse=fl,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xl,Mr.nth=function(t,e){return t&&t.length?Un(t,da(e)):i},Mr.noConflict=function(){return he._===this&&(he._=Kt),this},Mr.noop=sl,Mr.now=Os,Mr.pad=function(t,e,r){t=ma(t);var n=(e=da(e))?lr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Fi(pe(i),r)+t+Fi(de(i),r)},Mr.padEnd=function(t,e,r){t=ma(t);var n=(e=da(e))?lr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var o=_r();return gr(t+o*(e-t+ae("1e-"+((o+"").length-1))),e)}return qn(t,e)},Mr.reduce=function(t,e,r){var n=Hs(t)?ke:Ge,i=arguments.length<3;return n(t,io(e,4),r,i,un)},Mr.reduceRight=function(t,e,r){var n=Hs(t)?De:Ge,i=arguments.length<3;return n(t,io(e,4),r,i,cn)},Mr.repeat=function(t,e,r){return e=(r?mo(t,e,r):e===i)?1:da(e),Gn(ma(t),e)},Mr.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mr.result=function(t,e,r){var n=-1,o=(e=gi(e,t)).length;for(o||(o=1,t=i);++nh)return[];var r=p,n=gr(t,p);e=io(e),t-=p;for(var i=Ve(n,e);++r=s)return t;var l=r-lr(n);if(l<1)return n;var u=a?yi(a,0,l).join(""):t.slice(0,l);if(o===i)return u+n;if(a&&(l+=u.length-l),na(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,ma(dt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(oi(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+n},Mr.unescape=function(t){return(t=ma(t))&&V.test(t)?t.replace(G,hr):t},Mr.uniqueId=function(t){var e=++Dt;return ma(t)+e},Mr.upperCase=Va,Mr.upperFirst=Ya,Mr.each=ms,Mr.eachRight=ys,Mr.first=qo,ol(Mr,(gl={},yn(Mr,(function(t,e){kt.call(Mr.prototype,e)||(gl[e]=t)})),gl),{chain:!1}),Mr.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Mr[t].placeholder=Mr})),Se(["drop","take"],(function(t,e){Fr.prototype[t]=function(r){r=r===i?1:fr(da(r),0);var n=this.__filtered__&&!e?new Fr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:t+(n.__dir__<0?"Right":"")}),n},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:io(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Se(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(el)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=zn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return An(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(ks(io(t)))},Fr.prototype.slice=function(t,e){t=da(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Fr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=da(e))<0?r.dropRight(-e):r.take(e-t)),r)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},yn(Fr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=Mr[n?"take"+("last"==e?"Right":""):e],s=n||/^find/.test(e);o&&(Mr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,l=e instanceof Fr,u=a[0],c=l||Hs(e),h=function(t){var e=o.apply(Mr,Ie([t],a));return n&&d?e[0]:e};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new Fr(this);var m=t.apply(e,a);return m.__actions__.push({func:hs,args:[h],thisArg:i}),new Ur(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?n?m.value()[0]:m.value():m)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Mr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Hs(i)?i:[],t)}return this[r]((function(r){return e.apply(Hs(r)?r:[],t)}))}})),yn(Fr.prototype,(function(t,e){var r=Mr[e];if(r){var n=r.name+"";kt.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:e,func:r})}})),Ar[Mi(i,2).name]=[{name:"wrapper",func:i}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Hs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(t){for(var e,r=this;r instanceof Kr;){var n=jo(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},Mr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:hs,args:[Jo],thisArg:i}),new Ur(e,this.__chain__)}return this.thru(Jo)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Wt&&(Mr.prototype[Wt]=function(){return this}),Mr}();he._=dr,(n=function(){return dr}.call(e,r,e,t))===i||(t.exports=n)}.call(this)},2593:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;let i=r(2399);class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},2662:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;let o=r(8151),s=r(9057),a=r(5636),l=r(2399),u=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0})},2682:(t,e,r)=>{var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var s,a;arguments.length>=3&&(s=r),a=t,"[object Array]"===i.call(a)?function(t,e,r){for(var n=0,i=t.length;n{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeHTML=function(t){return s(o,t)},e.encodeNonAsciiHTML=function(t){return s(i.xmlReplacer,t)};let n=r(811),i=r(7366),o=/[\t\n\f!-,./:-@[-`{-}\u0080-\uFFFF]/g;function s(t,e){let r,o="",s=0;for(;null!==(r=t.exec(e));){let{index:a}=r;o+=e.substring(s,a);let l=e.charCodeAt(a),u=n.htmlTrie.get(l);if("object"==typeof u){if(a+1{Object.defineProperty(e,"__esModule",{value:!0})},2806:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;let i=r(7477),o=r(2399),s=r(7760);class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new c(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new u(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),o=new h(this.tokens,t,e,i.length,r);i.push(o)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){return this.lastRewriteTokenIndexes.get(t)??-1}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;en.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndexn.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i'}}n([o.Override],l.prototype,"toString",null),e.RewriteOperation=l;class u extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},2807:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;let i=r(5629),o=r(1862),s=r(7477),a=r(1492),l=r(1088),u=r(6181),c=r(2399),h=r(8831),d=r(7760);class p extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=p.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return d.Token.DEFAULT_CHANNEL}static get HIDDEN(){return d.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=d.Token.INVALID_TYPE,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=p.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=d.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=p.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===d.Token.INVALID_TYPE&&(this._type=t),this._type===p.SKIP)continue t}while(this._type===p.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=p.SKIP}more(){this._type=p.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,d.Token.EOF,void 0,d.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==d.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case d.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}p.DEFAULT_MODE=0,p.MORE=-2,p.SKIP=-3,p.MIN_CHAR_VALUE=0,p.MAX_CHAR_VALUE=1114111,n([c.Override],p.prototype,"nextToken",null),n([c.Override],p.prototype,"tokenFactory",null),n([c.Override],p.prototype,"inputStream",null),n([c.Override],p.prototype,"sourceName",null),n([c.Override],p.prototype,"line",null),n([c.Override],p.prototype,"charPositionInLine",null),e.Lexer=p},2813:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;let i=r(2399);class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,(o=e.ATNState||(e.ATNState={})).INVALID_STATE_NUMBER=-1},2962:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},3003:t=>{t.exports=function(t){return t!=t}},3053:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;let o=r(3357),s=r(2399),a=r(1072),l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.RangeTransition=l},3074:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;let o=r(1533),s=r(3258),a=r(8590),l=r(9709),u=r(324),c=r(2399),h=r(8055),d=r(4016),p=r(7435),f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof d.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=p.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},3093:(t,e,r)=>{var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3099:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;let n=r(8016);class i extends n.DecisionState{}e.BlockStartState=i},3126:(t,e,r)=>{var n=r(6743),i=r(9675),o=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},3144:(t,e,r)=>{var n=r(6743),i=r(1002),o=r(76),s=r(7119);t.exports=s||n.call(o,i)},3161:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;let o=r(2962),s=r(9202),a=r(1533),l=r(5754),u=r(4274),c=r(8880),h=r(3258),d=r(6298),p=r(7037),f=r(5369),g=r(6889),m=r(1405),y=r(8016),_=r(9709),v=r(8240),x=r(7477),b=r(1492),T=r(2399),E=r(3575),O=r(755),S=r(8055),N=r(1097),A=r(8859),w=r(6409),R=r(333),C=r(8840),L=r(3334),I=r(2356),k=r(1384),D=r(4364),P=r(7760),M=r(7435),j=r(4148),K=-2147483648,U=class t extends d.ATNSimulator{constructor(t,e){super(t),this.predictionMode=R.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(j(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(s,e,l,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);return null==e?void 0:new D.SimulatorState(r,e,!1,r)}return null==t.s0?void 0:new D.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(j(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?j(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new D.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=s.getContextTarget(this.getReturnState(l))),null==t){let t=new D.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(e,r,n,t)}j(null!=l),l=l.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}j(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=x.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new D.SimulatorState(o,s,i.useContext,l);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===d.ATNSimulator.ERROR){let t=new D.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,t)}s=u,this.isAcceptState(s,i.useContext)||a===b.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;j(!i.useContext);let a=s.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new D.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new w.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),d.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(j(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),j(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let d=null!=l&&this.userWantsCtxSensitive;if(d&&(d=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,o,d||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(d){j(!s),j(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new g.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;j(null!=o),o=o.parent,s=t}if(j(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new D.SimulatorState(e.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,o,r,i,n);l=e[0],o=e[1]}return l!==d.ATNSimulator.ERROR?(j(!i||!l.configs.dipsIntoOuterContext),new D.SimulatorState(e.outerContext,l,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let a,l,c=r.configs.toArray(),p=new h.ATNConfigSet;do{let e=!o||null!=n;e||(p.isOutermostConfigSet=!0);let r,d=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof C.RuleStopState){j(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===b.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t0);for(let t of r)p.add(t,s)}if(o&&l){p.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new v.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e0;){let t=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,e,t,l,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,a,l,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof C.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;tK),this.closureImpl(p,r,n,i,o,a,l,u-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let d=e.state;d.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let c=0;cK),s--,t.debug&&console.log("dips into outer ctx: "+m)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(j(m.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(m.outerContextDepth=m.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(m))continue;this.closureImpl(m,r,n,i,g,a,l,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:""}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(P.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new g.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==s)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new g.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=s}else if(o!==e){if(o!==a.nextSetBit(e+1)){i=!1;break}e=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,d=n[0].context;for(let t=1;t"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof k.SetTransition&&(e=(r instanceof E.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new O.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof C.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){j(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r&&(r=this.addDFAContextState(e,a.configs,t,s),j(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r)),a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){t?.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return j(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new _.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,a){if(t.debug||t.retry_debug){let t=x.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,a)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(j(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([T.NotNull],U.prototype,"predictionMode",void 0),n([T.NotNull],U.prototype,"getPredictionMode",null),n([i(0,T.NotNull)],U.prototype,"setPredictionMode",null),n([T.Override],U.prototype,"reset",null),n([i(0,T.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"getStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execDFA",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execATN",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"computeTargetState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([T.NotNull],U.prototype,"computeStartState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,T.NotNull),i(4,T.Nullable)],U.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable),i(3,T.NotNull),i(6,T.NotNull)],U.prototype,"closureImpl",null),n([T.NotNull],U.prototype,"getRuleName",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getEpsilonTarget",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"actionTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"precedenceTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"predTransition",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable)],U.prototype,"ruleTransition",null),n([i(0,T.NotNull)],U.prototype,"isConflicted",null),n([T.NotNull],U.prototype,"getTokenName",null),n([i(0,T.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"noViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,T.NotNull)],U.prototype,"configWithAltAtStopState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(4,T.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,T.Nullable),i(2,T.Nullable)],U.prototype,"setDFAEdge",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAContextState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"createDFAState",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,T.NotNull),i(5,T.NotNull),i(6,T.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,T.NotNull)],U),e.ParserATNSimulator=U},3196:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},3258:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;let i=r(3907),o=r(1533),s=r(8151),a=r(4274),l=r(8880),u=r(6889),c=r(2399),h=r(8055),d=r(8859),p=r(6409),f=r(2356),g=r(4148),m=r(659);class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function _(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class v{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=_(),this.unmerged=[]):(this.mergedConfigs=_(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=_(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");g(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new v(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;g(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=p.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=d.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;it.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],v.prototype,"getRepresentedAlternatives",null),n([c.Override],v.prototype,"size",null),n([c.Override],v.prototype,"isEmpty",null),n([c.Override],v.prototype,"contains",null),n([c.Override],v.prototype,Symbol.iterator,null),n([c.Override],v.prototype,"toArray",null),n([c.Override],v.prototype,"containsAll",null),n([c.Override],v.prototype,"clear",null),n([c.Override],v.prototype,"equals",null),n([c.Override],v.prototype,"hashCode",null),e.ATNConfigSet=v},3274:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;let n=r(5577);function i(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function o(t){let{startLine:e,startColumn:r,endLine:o,endColumn:s}=i(t);return new n.Block(e,r,o,s,[])}function s(t){let{startLine:e,startColumn:r,endLine:o,endColumn:s}=i(t);return new n.Expr(e,r,o,s,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=this.getAllNames(t.nameList()),u=t.mult()?.toStringTree(),c=t.sigExt()?.toStringTree(),h=t.block(),d=h?o(h):void 0;for(let t of l){let i=new n.Sig(e,r,s,a,t,d,c,u);this._sigs.push(i)}}exitPredDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name().text,u=t.paraDecls(),c=u?o(u):void 0,h=o(t.block()),d=new n.Predicate(e,r,s,a,l,c,h);this._predicates.push(d)}exitFunDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:o}=i(t),s=t.name().text,a=new Function(e,r,n,o,s);this._functions.push(a)}exitTestDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name()?.IDENTIFIER_TOK().text||Math.random().toString(36).substring(7),u=t.block(),c=u?o(u):void 0,h=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),p=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown",f=new n.Test(e,r,s,a,l,p,c,d,h);this._tests.push(f)}exitSatisfiabilityDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=s(t.expr()),u=t.scope()?.toStringTree(),c=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",d=new n.SatisfiabilityAssertionTest(e,r,o,a,l,h,c,u);this._satisfiabilityAssertions.push(d)}exitPropertyDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===l)throw new Error("Property relation must be either necessary or sufficient.");let u=s(t.expr()),c=t.name().text,h=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),p=new n.AssertionTest(e,r,o,a,c,u,l,d,h);this._assertions.push(p)}exitQuantifiedPropertyDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=i(t),u=!!t.DISJ_TOK(),c=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===c)throw new Error("Property relation must be either necessary or sufficient.");let h=t.name().text,d=s(t.expr()),p=t.exprList(),f=p?o(p):void 0,g=t.scope()?.toStringTree(),m=t.bounds()?.toStringTree(),y=t.quantDeclList(),_=y?o(y):void 0,v=new n.QuantifiedAssertionTest(e,r,a,l,h,d,c,u,_,m,g,f);this._quantifiedAssertions.push(v)}exitConsistencyDecl(t){let{startLine:e,startColumn:r,endLine:o,endColumn:a}=i(t),l=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===l)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let u="consistent"===l,c=t.name().text,h=s(t.expr()),d=t.scope()?.toStringTree(),p=t.bounds()?.toStringTree(),f=new n.ConsistencyAssertionTest(e,r,o,a,c,h,u,p,d);this._consistencyAssertions.push(f)}exitExampleDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:a}=i(t),l=t.name().text,u=o(t.expr()),c=o(t.bounds()),h=new n.Example(e,r,s,a,l,u,c);this._examples.push(h)}getAllNames(t){let e=[];return function t(r){r.name()&&e.push(r.name());let n=r.nameList();n&&t(n)}(t),e.map((t=>t.IDENTIFIER_TOK().text))}}},3303:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;let o=r(8291),s=r(2399),a=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TokenTagToken=a},3334:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),e.RuleTransition=a},3357:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;let o=r(8151),s=r(8240),a=r(7477),l=r(2807),u=r(5636),c=r(2399),h=r(7760);class d{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===d._COMPLETE_CHAR_SET&&(d._COMPLETE_CHAR_SET=d.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),d._COMPLETE_CHAR_SET.setReadonly(!0)),d._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==d._EMPTY_SET&&(d._EMPTY_SET=new d,d._EMPTY_SET.setReadonly(!0)),d._EMPTY_SET}static of(t,e=t){let r=new d;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.bs.b)n++;else if(l.a>s.a&&(t=new a.Interval(s.a,l.a-1)),l.b>1,i=this._intervals[n],o=i.a;if(i.bt))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof d&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"":e===h.Token.EPSILON?"":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;rn&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;let o=r(2813),s=r(7037),a=r(2262),l=r(2468),u=r(3357),c=r(755),h=r(8859),d=r(7760),p=r(2399);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(d.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===d.Token.EOF?"":n.getTextFromRange(e.startToken,e.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=d.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===d.Token.EOF?"":"";let o=r,s=t.inputStream.tryLT(-1);return o.type===d.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,d.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===d.Token.EOF?"":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(d.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==d.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([p.Override],f.prototype,"reset",null),n([i(0,p.NotNull)],f.prototype,"beginErrorCondition",null),n([p.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,p.NotNull)],f.prototype,"endErrorCondition",null),n([p.Override],f.prototype,"reportMatch",null),n([p.Override],f.prototype,"reportError",null),n([i(0,p.NotNull)],f.prototype,"notifyErrorListeners",null),n([p.Override],f.prototype,"recover",null),n([p.Override],f.prototype,"sync",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,p.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,p.NotNull)],f.prototype,"reportMissingToken",null),n([p.Override],f.prototype,"recoverInline",null),n([i(0,p.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,p.NotNull)],f.prototype,"singleTokenDeletion",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getMissingSymbol",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,p.NotNull)],f.prototype,"getSymbolText",null),n([i(0,p.NotNull)],f.prototype,"getSymbolType",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"escapeWSAndQuote",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},3530:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},3575:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;let o=r(2399),s=r(1384),a=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),e.NotSetTransition=a},3628:(t,e,r)=>{var n=r(8648),i=r(1064),o=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},3651:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,o){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},3696:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3714:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;let i=r(2399),o=r(1097);class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},3907:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;let n=r(1533);class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class o{constructor(t){this.backingStore=t instanceof o?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof o&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=o},3918:(t,e,r)=>{var n=r(5606);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=r(537).inspect,m=r(9597).codes.ERR_INVALID_ARG_TYPE;function y(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var _="",v="",x="",b="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function O(t){return g(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(N,t);var r,i,u,c,S=(r=N,i=h(),function(){var t,e=p(r);if(i){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function N(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,N),"object"!==f(t)||null===t)throw new m("options","Object",t);var r=t.message,i=t.operator,o=t.stackStartFn,s=t.actual,u=t.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=S.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(_="",v="",b="",x=""):(_="",v="",b="",x="")),"object"===f(s)&&null!==s&&"object"===f(u)&&null!==u&&"stack"in s&&s instanceof Error&&"stack"in u&&u instanceof Error&&(s=E(s),u=E(u)),"deepStrictEqual"===i||"strictEqual"===i)e=S.call(this,function(t,e,r){var i="",o="",s=0,a="",l=!1,u=O(t),c=u.split("\n"),h=O(e).split("\n"),d=0,p="";if("strictEqual"===r&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var g=c[0].length+h[0].length;if(g<=10){if(!("object"===f(t)&&null!==t||"object"===f(e)&&null!==e||0===t&&0===e))return"".concat(T[r],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",d),"^"),d=0)}}for(var m=c[c.length-1],E=h[h.length-1];m===E&&(d++<2?a="\n ".concat(m).concat(a):i=m,c.pop(),h.pop(),0!==c.length&&0!==h.length);)m=c[c.length-1],E=h[h.length-1];var S=Math.max(c.length,h.length);if(0===S){var N=u.split("\n");if(N.length>30)for(N[26]="".concat(_,"...").concat(b);N.length>27;)N.pop();return"".concat(T.notIdentical,"\n\n").concat(N.join("\n"),"\n")}d>3&&(a="\n".concat(_,"...").concat(b).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var A=0,w=T[r]+"\n".concat(v,"+ actual").concat(b," ").concat(x,"- expected").concat(b),R=" ".concat(_,"...").concat(b," Lines skipped");for(d=0;d1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(h[d-2]),A++),o+="\n ".concat(h[d-1]),A++),s=d,i+="\n".concat(x,"-").concat(b," ").concat(h[d]),A++;else if(h.length1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(v,"+").concat(b," ").concat(c[d]),A++;else{var L=h[d],I=c[d],k=I!==L&&(!y(I,",")||I.slice(0,-1)!==L);k&&y(L,",")&&L.slice(0,-1)===I&&(k=!1,I+=","),k?(C>1&&d>2&&(C>4?(o+="\n".concat(_,"...").concat(b),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(v,"+").concat(b," ").concat(I),i+="\n".concat(x,"-").concat(b," ").concat(L),A+=2):(o+=i,i="",1!==C&&0!==d||(o+="\n ".concat(I),A++))}if(A>20&&d30)for(d[26]="".concat(_,"...").concat(b);d.length>27;)d.pop();e=1===d.length?S.call(this,"".concat(h," ").concat(d[0])):S.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var p=O(s),g="",A=T[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(T[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(O(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(A,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),e=S.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=c,e.generatedMessage=!r,Object.defineProperty(l(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=s,e.expected=u,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(l(e),o),e.stack,e.name="AssertionError",a(e)}return u=N,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return g(this,o(o({},e),{},{customInspect:!1,depth:0}))}}])&&function(t,e){for(var r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerChannelAction=a},4016:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;let i=r(7037),o=r(6889),s=r(8016),a=r(2399);class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},4035:(t,e,r)=>{var n,i=r(6556),o=r(9092)(),s=r(9957),a=r(5795);if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},h={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=c),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{l(t,h)}catch(t){return t===u}}}else{var d=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===d(t)}}t.exports=n},4039:(t,e,r)=>{var n=typeof Symbol<"u"&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4133:(t,e,r)=>{var n=r(487),i=r(8452),o=r(3003),s=r(6642),a=r(2464),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},4148:(t,e,r)=>{var n=r(5606);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r(9597).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,p=r(3918),f=r(537).inspect,g=r(537).types,m=g.isPromise,y=g.isRegExp,_=r(9133)(),v=r(9394)(),x=r(8075)("RegExp.prototype.test");function b(){var t=r(2299);o=t.isDeepEqual,s=t.isDeepStrictEqual}var T=!1,E=t.exports=A,O={};function S(t){throw t.message instanceof Error?t.message:new p(t)}function N(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;let i=r(2399),o=r(360),s=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},4241:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ErrorInfo=a},4274:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;let o=r(3907),s=r(3074),a=r(3357),l=r(9803),u=r(9462),c=r(2399),h=r(8055),d=r(8859),p=r(7760),f=r(4148),g=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(p.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(p.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(p.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(p.Token.EPSILON),r=r._parent}return i.contains(p.Token.EPSILON)&&o.add(p.Token.EOF),o}};n([c.NotNull],g.prototype,"states",void 0),n([c.NotNull],g.prototype,"decisionToState",void 0),n([c.NotNull],g.prototype,"modeNameToStartState",void 0),n([c.NotNull],g.prototype,"modeToStartState",void 0),n([c.NotNull],g.prototype,"decisionToDFA",void 0),n([c.NotNull],g.prototype,"modeToDFA",void 0),n([c.NotNull],g.prototype,"nextTokens",null),n([i(0,c.NotNull)],g.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],g.prototype,"defineMode",null),n([i(0,c.NotNull)],g.prototype,"defineDecisionState",null),n([c.NotNull],g.prototype,"getExpectedTokens",null),g=n([i(0,c.NotNull)],g),e.ATN=g,(g=e.ATN||(e.ATN={})).INVALID_ALT_NUMBER=0,e.ATN=g},4275:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},4283:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,(l=a=e.LexerPopModeAction||(e.LexerPopModeAction={})).INSTANCE=new l},4364:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;let o=r(2399),s=r(1097),a=class{constructor(t,e,r,n){this.outerContext=t??s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),e.SimulatorState=a},4459:t=>{t.exports=Number.isNaN||function(t){return t!=t}},4520:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},4605:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},4650:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.WildcardTransition=a},4699:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;let n=r(5585),i=r(6684);function o(t){let e=new Set;for(let r of t.values())for(let t of r)e.add(t);return e}class s extends n.AbstractParseTreeVisitor{constructor(t,e,r){super(),this.datum=t,this.instanceIndex=e,this.instanceData=this.datum.parsed.instances[this.instanceIndex],this.predicates=r}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(let[r,n]of e.entries()){t.has(r)||t.set(r,new Set);let e=t.get(r);for(let t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,o(e));let n=e.get(t);if(void 0!==r)for(let t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){let e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(let r of t.expr()){let t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){let e=t.name().text,r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([t.name().text])}getQuantDeclVarNames(t){let e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");let n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(let t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected to quantify over something!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=o(e),s=new Set;for(let t of i)r.has(t)||s.add(t);return e.set(t,s),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){let e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr16(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=o(e),s=new Set;for(let t of i)r.has(t)||s.add(t);return e.set(t,s),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");let r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{let r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}isPredicateName(t){return this.predicates.some((e=>e.name===t))}visitName(t){let e=t.IDENTIFIER_TOK().text;if("true"===e||"false"===e)return this.defaultResult();if(this.isPredicateName(e))return this.defaultResult();let r=Object.keys(this.instanceData.types).map((t=>this.instanceData.types[t].id));if(r.includes(e))return this.defaultResult();for(let t of r)if(this.instanceData.types[t].atoms.map((t=>t.id)).includes(e))return this.defaultResult();let n=Object.keys(this.instanceData.relations);for(let t of n)if(this.instanceData.relations[t].name===e)return this.defaultResult();if(i.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();let o=this.defaultResult();return o.set(t,new Set([e])),o}}e.ForgeExprFreeVariableFinder=s},4776:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;let o=r(2399),s=r(7760),a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.RuleTagToken=a},4864:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;let o=r(7442),s=r(6776),a=r(5411),l=r(309),u=r(821),c=r(2399),h=r(9278),d=r(9274),p=r(1097),f=r(8571),g=r(5920),m=r(9449),y=r(5378),_=r(4776),v=r(9086),x=r(360),b=r(6947),T=r(7760),E=r(3303);class O{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r,n=this.tokenize(t),i=new l.ListTokenSource(n),s=new a.CommonTokenStream(i),u=this._parser,c=new d.ParserInterpreter(u.grammarFileName,u.vocabulary,u.ruleNames,u.getATNWithBypassAlts(),s);try{c.errorHandler=new o.BailErrorStrategy,r=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof m.RecognitionException?t:t instanceof Error?new O.CannotInvokeStartRule(t):t}if(s.LA(1)!==T.Token.EOF)throw new O.StartRuleDoesNotConsumeFullPattern;return new g.ParseTreePattern(this,t,e,r)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof x.TerminalNode&&e instanceof x.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof E.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);let i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof p.ParserRuleContext&&e instanceof p.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);let e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+t);if(i.length=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new b.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new b.TextChunk(e))}for(let e=0;e=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new v.TagChunk(l,r)),e+10){let e=o[s-1]+this.stop.length;if(e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},5116:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5288:function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],d._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],d.VOCABULARY=new c.VocabularyImpl(d._LITERAL_NAMES,d._SYMBOLIC_NAMES,[]),d._serializedATNSegments=2,d._serializedATNSegment0='줝쪺֍꾺体؇쉁o̥\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tnî\n\fñ\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ȇ\n:;;;;<<<<<<<Ȓ\n<==========ȝ\n=>>>>>??????ȩ\n?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDDɍ\nDEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\]]^^_____˃\n_```aaabbbccccddddeeeeeeeffgghhˢ\nh\rhhˣiii˨\ni\fii˫\vijjˮ\nj\rjj˯jjkkkkk˸\nk\fkk˻\vkkklllll̃\nl\fll̆\vlllmmmmm̎\nm\fmm̑\vmmmmmmnnnnnnnn̟\nn\fnn̢\vnnn̏o\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏiÑjÓkÕl×mÙnÛo\b$$^^2;&&11C\\aac|&&1;C\\aac|\v\f""\f\f̳\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÓÕ×ÙÛÝâä\tæ\vé\rôøāąćĉđĔĖě!Ġ#Ĥ%Ĩ\'Ĭ)ı+ķ-ļ/ľ1ń3ʼn5ŋ7ŏ9ő;œ=Ś?ŞAŤCŨEŬGŴIŹKžMƃOƅQƈSƌUƒWƚYƦ[Ʈ]Ƴ_ƺaǀcǂedžgǑiǛkǦmdzoǸqǼsȅuȇwȑyȜ{Ȟ}ȨȪȰƒȸ…Ⱦ‡Ɍ‰Ɏ‹ɕɠɦ‘ɭ“ɲ•ɿ—ʁ™ʄ›ʆʉŸʌ¡ʎ£ʐ¥ʒ§ʔ©ʖ«ʘ­ʝ¯ʣ±ʨ³ʭµʵ·ʸ¹ʺ»ʼ½˂¿˄ÁˇÃˊÅˍÇˑÉ˕˘Í˞ÏˡÑ˥Ó˭Õ˳×˾Ù̉Û̗ÝÞqÞßrßàgàápáâã]ãäå_å\bæçcçèuè\néï$êî\nëì^ìî\víêíëîñïíïððòñïòó$ó\fôõxõöcö÷t÷øùcùúdúûuûüvüýtýþcþÿeÿĀvĀāĂuĂăkăĄiĄąĆ}ĆćĈĈĉĊgĊċzċČvČčgčĎpĎďfďĐuĐđĒkĒēpēĔĕ-ĕĖėnėĘqĘępęĚgĚěĜuĜĝqĝĞoĞğgğ ĠġqġĢpĢģgģ"ĤĥvĥĦyĦħqħ$ĨĩuĩĪgĪīvī&ĬĭhĭĮwĮįpįİeİ(ıIJrIJijhijĴwĴĵpĵĶeĶ*ķĸfĸĹkĹĺuĺĻlĻ,ļĽ<Ľ.ľĿyĿŀjŀŁgŁłcłŃvŃ0ńŅrŅņtņŇgŇňfň2ʼnŊ0Ŋ4ŋŌhŌōwōŎpŎ6ŏŐ*Ő8őŒ+Œ:œŔcŔŕuŕŖuŖŗgŗŘtŘřvř<ŚśtśŜwŜŝpŝ>ŞşeşŠjŠšgšŢeŢţmţ@ŤťhťŦqŦŧtŧBŨũdũŪwŪūvūDŬŭgŭŮzŮůcůŰeŰűvűŲnŲų{ųFŴŵpŵŶqŶŷpŷŸgŸHŹźwźŻpŻżkżŽxŽJžſkſƀfƀƁgƁƂpƂLƃƄ/ƄNƅƆkƆƇuƇPƈƉuƉƊcƊƋvƋRƌƍwƍƎpƎƏuƏƐcƐƑvƑTƒƓvƓƔjƔƕgƕƖqƖƗtƗƘgƘƙoƙVƚƛhƛƜqƜƝtƝƞiƞƟgƟƠaƠơgơƢtƢƣtƣƤqƤƥtƥXƦƧeƧƨjƨƩgƩƪeƪƫmƫƬgƬƭfƭZƮƯvƯưgưƱuƱƲvƲ\\ƳƴgƴƵzƵƶrƶƷgƷƸeƸƹvƹ^ƺƻuƻƼwƼƽkƽƾvƾƿgƿ`ǀǁ~ǁbǂǃcǃDŽnDŽDžnDžddžLJuLJLjwLjljhljNJhNJNjkNjnjenjǍkǍǎgǎǏpǏǐvǐfǑǒpǒǓgǓǔeǔǕgǕǖuǖǗuǗǘcǘǙtǙǚ{ǚhǛǜeǜǝqǝǞpǞǟuǟǠkǠǡuǡǢvǢǣgǣǤpǤǥvǥjǦǧkǧǨpǨǩeǩǪqǪǫpǫǬuǬǭkǭǮuǮǯvǯǰgǰDZp',d._serializedATNSegment1="DZDzvDzldzǴyǴǵkǵǶvǶǷjǷnǸǹnǹǺgǺǻvǻpǼǽdǽǾkǾǿpǿȀfȀrȁȂ~ȂȆ~ȃȄqȄȆtȅȁȅȃȆtȇȈzȈȉqȉȊtȊvȋȌ>Ȍȍ?ȍȒ@ȎȏkȏȐhȐȒhȑȋȑȎȒxȓȔkȔȕoȕȖrȖȗnȗȘkȘșgșȝuȚț?țȝ@ȜȓȜȚȝzȞȟgȟȠnȠȡuȡȢgȢ|ȣȤ(Ȥȩ(ȥȦcȦȧpȧȩfȨȣȨȥȩ~ȪȫwȫȬpȬȭvȭȮkȮȯnȯ€ȰȱtȱȲgȲȳnȳȴgȴȵcȵȶuȶȷgȷ‚ȸȹuȹȺkȺȻpȻȼeȼȽgȽ„ȾȿvȿɀtɀɁkɁɂiɂɃiɃɄgɄɅtɅɆgɆɇfɇ†Ɉɍ#ɉɊpɊɋqɋɍvɌɈɌɉɍˆɎɏcɏɐnɐɑyɑɒcɒɓ{ɓɔuɔŠɕɖgɖɗxɗɘgɘəpəɚvɚɛwɛɜcɜɝnɝɞnɞɟ{ɟŒɠɡcɡɢhɢɣvɣɤgɤɥtɥŽɦɧdɧɨgɨɩhɩɪqɪɫtɫɬgɬɭɮqɮɯpɯɰeɰɱgɱ’ɲɳjɳɴkɴɵuɵɶvɶɷqɷɸtɸɹkɹɺeɺɻcɻɼnɼɽnɽɾ{ɾ”ɿʀ%ʀ–ʁʂ-ʂʃ-ʃ˜ʄʅ(ʅšʆʇ>ʇʈ<ʈœʉʊ<ʊʋ@ʋžʌʍ)ʍ ʎʏ€ʏ¢ʐʑ`ʑ¤ʒʓ,ʓ¦ʔʕBʕ¨ʖʗbʗªʘʙvʙʚjʚʛkʛʜuʜ¬ʝʞuʞʟgʟʠzʠʡrʡʢtʢ®ʣʤkʤʥpʥʦuʦʧvʧ°ʨʩgʩʪxʪʫcʫʬnʬ²ʭʮgʮʯzʯʰcʰʱoʱʲrʲʳnʳʴgʴ´ʵʶ/ʶʷ@ʷ¶ʸʹ?ʹ¸ʺʻ>ʻºʼʽ@ʽ¼ʾʿ>ʿ˃?ˀˁ?ˁ˃>˂ʾ˂ˀ˃¾˄˅@˅ˆ?ˆÀˇˈpˈˉkˉÂˊˋpˋˌqˌÄˍˎuˎˏwˏːoːÆˑ˒K˒˓p˓˔v˔È˕˖q˖˗r˗˘v˘˙k˙˚q˚˛p˛Ê˜˝.˝Ì˞˟1˟Îˠˢ\tˡˠˢˣˣˡˣˤˤÐ˥˩\t˦˨\t˧˦˨˫˩˧˩˪˪Ò˫˩ˬˮ\t˭ˬˮ˯˯˭˯˰˰˱˱˲\bj˲Ô˳˴1˴˵1˵˹˶˸\n˷˶˸˻˹˷˹˺˺˼˻˹˼˽\bk˽Ö˾˿/˿̀/̀̄́̃\n̂́̃̆̄̂̄̅̅̇̆̄̇̈\bl̈Ø̉̊1̊̋,̋̏̌̎\v̍̌̎̑̏̐̏̍̐̒̑̏̒̓,̓̔1̖̔̕̕\bm̖Ú̗̘%̘̙n̙̚c̛̚p̛̜i̜̠̝̟\n̢̡̡̢̞̝̟̠̞̠̣̠̣̤\bn̤ÜíïȅȑȜȨɌ˂ˣ˩˯˹̠̄̏\b",d._serializedATN=h.join([d._serializedATNSegment0,d._serializedATNSegment1],"")},5345:t=>{t.exports=URIError},5369:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;let o=r(3357),s=r(2399),a=r(1072),l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.AtomTransition=l},5378:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},5395:function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],_._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],_.VOCABULARY=new m.VocabularyImpl(_._LITERAL_NAMES,_._SYMBOLIC_NAMES,[]),_._serializedATNSegments=2,_._serializedATNSegment0="줝쪺֍꾺体؇쉁oϼ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tV¯\n´\n¸\nÀ\n\fÃ\vÆ\n\fÉ\vÌ\n\fÏ\vÑ\nÙ\nÝ\nã\nå\nø\nû\nþ\nā\nĆ\nĊ\nĎ\n\b\b\b\b\b\b\bĖ\n\b\f\b\bę\v\b\bě\n\b\t\t\n\n\v\v\f\fĤ\n\f\f\f\f\fĩ\n\f\f\f\r\rĮ\n\r\r\r\r\rij\n\r\r\rĸ\nŅ\nʼn\nō\nŖ\nś\nŞ\nŢ\nũ\nŮ\nű\nŵ\nź\nž\nƁ\nƅ\nƋ\nƏ\nƕ\n\fƘ\vƠ\nƤ\nƧ\nư\nƳ\nƺ\nƾ\nǃ\nǐ\nǓ\nǗ\nǠ\nǤ\nǭ\nDZ\nǹ\n\fǼ\vȆ\n   Ȋ\n     ȏ\n !!\"\"\"\"###ș\n#\f##Ȝ\v###$$$$ȣ\n$%%%%%ȩ\n%&&&ȭ\n&&&&&Ȳ\n&\f&&ȵ\v&&&&&Ⱥ\n&''''''Ɂ\n'''Ʉ\n'(())))))ɍ\n)******ɔ\n*++++++ɛ\n+,,,,,,ɢ\n,------ɩ\n-......ɰ\n.//////ɷ\n/000000ɾ\n0111111111111ʋ\n11111ʐ\n12222222ʘ\n2\f22ʛ\v23333333ʣ\n3\f33ʦ\v34444444ʮ\n4\f44ʱ\v45555555ʹ\n55ʻ\n56666666˃\n6\f66ˆ\v6777777777777777777˙\n78888888888888888˪\n8999999˱\n99999˶\n9\f99˹\v9::::˾\n:;;;;;;;̆\n;\f;;̉\v;<<<<̎\n<=======̖\n=\f==̙\v=>>>>>>>̡\n>\f>>̤\v>????????̭\n?\f??̰\v?@@@@@@@̸\n@\f@@̻\v@AAAAAAAAAͅ\nA\fAA͈\vABBBBBBBB͑\nBBBBB͖\nB\fBB͙\vBCCCCCC͠\nC\fCCͣ\vCDDDDͨ\nDEEEEEEEEEEEEEEEEEEEͼ\nEFFFFFF΃\nFGGHHIIIII΍\nIJJKKKLLLLLLLMMMMMMNNNNNNΦ\nNOOPPPά\nP\fPPί\vPPPPγ\nPPPζ\nPQQQQQQν\nQRRRRRRRRφ\nRSSSSSSSώ\nS\rSSϏSϒ\nSTTTTTTTϚ\nTTTTTϟ\nT\fTTϢ\vTUUUUUUUϪ\nUUUUUϯ\nU\fUUϲ\vUVVVVVVVϺ\nVVbdfjptxz|~€‚„¦¨W\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª !*.*+--4567))]bcc((OPRT\\\\ggю¬»Ð\bä\n÷\fúĚĜĞĠģĭķľŀ ŝ\"ş$Ũ&Ź(Ɗ*ƒ,ƣ.Ʀ0Ʋ2ƴ4ƿ6ǘ8ǥ:Dz<ȅ>ȉ@ȐBȒDȖFȢHȨJȹLȻNɅPɌRɓTɚVɡXɨZɯ\\ɶ^ɽ`ʏbʑdʜfʧhʺjʼl˘n˩p˫r˽t˿v̍x̏z̚|̥~̱€̼‚͐„͚†ͧˆͻŠ΂Œ΄ŽΆΈ’Ύ”ΐ–Γ˜ΚšΥœΧžε μ¢υ¤ϑ¦ϙ¨ϩªϹ¬®­¯®­®¯¯³°±J&±²²´³°³´´µµ·N(¶¸ ·¶·¸¸¹¹ºD#º»¼`1¼½½¾À\b¿¾ÀÃÁ¿ÁÂÂÇÃÁÄÆ\nÅÄÆÉÇÅÇÈÈÑÉÇÊÌ”KËÊÌÏÍËÍÎÎÑÏÍÐÁÐÍÑÒÓÓØJ&ÔÕÕÖR*Ö××ÙØÔØÙÙÜÚÛÛÝN(ÜÚÜÝÝåÞßßâàááãN(âàâããåäÒäÞå\tæø\fçøèøéø\"êø$ëø(ìøŒGíø˜Mîø’JïøL'ðøIñø–Lòø6óø4ôø2õø8öø:÷æ÷ç÷è÷é÷ê÷ë÷ì÷í÷î÷ï÷ð÷ñ÷ò÷ó÷ô÷õ÷öø\vùû\búùúûûýüþ\týüýþþĀÿā\tĀÿĀāāĂĂă\năąP)ĄĆ\bąĄąĆĆććĉ\vĈĊX-ĉĈĉĊĊċċč\fČĎD#čČčĎĎ\rďĐ\rĐěJ&đĒĒėJ&ēĔĔĖJ&ĕēĖęėĕėĘĘěęėĚďĚđěĜĝ\tĝĞğ\tğĠġ\tġĢĤģĢģĤĤĥĥĦP)ĦĨħĩ\vĨħĨĩĩĪĪī`1īĬĮĭĬĭĮĮįįİP)İIJıijIJıIJijijĴĴĵ`1ĵĶĸ\bķĶķĸĸĹĹĺP)ĺĻĻļ\nļĽŠFĽľĿĿŀńŁłJ&łŃŃŅńŁńŅŅņņňN(Ňʼn ňŇňʼnʼnŊŊŌŋō\vŌŋŌōōŎŎŏ`1ŏŐ\vŐő`1őŒ\fŒœŕŔŖT+ŕŔŕŖŖŗŗŞŘŚřśT+ŚřŚśśŜŜŞŝœŝŘŞ!şšŠŢN(šŠšŢŢţţŤD#Ť#ťŦN(ŦŧŧũŨťŨũũŪŪŭ\tūŮJ&ŬŮD#ŭūŭŬŭŮŮŰůű,ŰůŰűűŴŲų\"ųŵžPŴŲŴŵŵ%ŶŷN(ŷŸŸźŹŶŹźźŽŻžJ&żžD#ŽŻŽżžƀſƁ,ƀſƀƁƁƄƂƃ\"ƃƅžPƄƂƄƅƅƆƆƇ)Ƈƈ\tƈ'ƉƋ/ƊƉƊƋƋƌƌƎ0ƍƏN(ƎƍƎƏƏƐƐƑ*Ƒ)ƒƖ\vƓƕ&ƔƓƕƘƖƔƖƗƗƙƘƖƙƚ\fƚ+ƛƜ\"ƜƟœOƝƞ#ƞƠ\\/ƟƝƟƠƠƤơƢ\"ƢƤ\\/ƣƛƣơƤ-ƥƧ$ƦƥƦƧƧƨƨƩœOƩƪJ&ƪ/ƫƳ%ƬƳ&ƭƳ'Ʈư(ƯƮƯưưƱƱƳœOƲƫƲƬƲƭƲƯƳ1ƴƵƵƶ`1ƶƷ)Ʒƹ\tƸƺ,ƹƸƹƺƺƽƻƼ\"",_._serializedATNSegment1='ƼƾžPƽƻƽƾƾ3ƿǀǀǂ3ǁǃǂǁǂǃǃDŽDŽDžV,Dždž2džLJ`1LJLj)Ljlj\t\bljNJ"NJǏN(NjnjnjǍ^0ǍǎǎǐǏNjǏǐǐǒǑǓ,ǒǑǒǓǓǖǔǕ"ǕǗžPǖǔǖǗǗ5ǘǙǙǚ`1ǚǛ)Ǜǜ\t\bǜǝ"ǝǟN(ǞǠ,ǟǞǟǠǠǣǡǢ"ǢǤžPǣǡǣǤǤ7ǥǦǦǧ`1ǧǨ)Ǩǩ\t\tǩǪ8ǪǬN(ǫǭ,ǬǫǬǭǭǰǮǯ"ǯDZžPǰǮǰDZDZ9Dzdz/dzǴ1Ǵǵ"ǵǶN(ǶǺ\vǷǹ<ǸǷǹǼǺǸǺǻǻǽǼǺǽǾ\fǾ;ǿȆ–LȀȆ(ȁȆ4ȂȆ6ȃȆ2ȄȆ8ȅǿȅȀȅȁȅȂȅȃȅȄȆ=ȇȊ\tȈȊȉȇȉȈȉȊȊȋȋȎ\\Ȍȏ\tȍȏȎȌȎȍȎȏȏ?Ȑȑ\t\nȑAȒȓN(ȓȔ]Ȕȕ`1ȕCȖȚ\vȗș`1ȘȗșȜȚȘȚțțȝȜȚȝȞ\fȞEȟȣD#Ƞȡ2ȡȣ`1ȢȟȢȠȣGȤȩ3ȥȩcȦȩdȧȩ\tȨȤȨȥȨȦȨȧȩIȪȫWȫȭhȬȪȬȭȭȳȮȯN(ȯȰhȰȲȱȮȲȵȳȱȳȴȴȶȵȳȶȺN(ȷȺeȸȺdȹȬȹȷȹȸȺKȻȼfȼɃJ&ȽɄJ&ȾɄȿɁ(ɀȿɀɁɁɂɂɄœOɃȽɃȾɃɀɄMɅɆjɆOɇɍN(ɈɉN(ɉɊgɊɋP)ɋɍɌɇɌɈɍQɎɔJ&ɏɐJ&ɐɑgɑɒR*ɒɔɓɎɓɏɔSɕɛ\fɖɗ\fɗɘgɘəT+əɛɚɕɚɖɛUɜɢ\rɝɞ\rɞɟgɟɠV,ɠɢɡɜɡɝɢWɣɩɤɥɥɦgɦɧX-ɧɩɨɣɨɤɩYɪɰB"ɫɬB"ɬɭgɭɮZ.ɮɰɯɪɯɫɰ[ɱɷ.ɲɳ.ɳɴgɴɵ\\/ɵɷɶɱɶɲɷ]ɸɾ`1ɹɺ`1ɺɻgɻɼ^0ɼɾɽɸɽɹɾ_ɿʐb2ʀʁ9ʁʂZ.ʂʃF$ʃʐʄʅ:ʅʆZ.ʆʇF$ʇʐʈʊH%ʉʋʊʉʊʋʋʌʌʍV,ʍʎF$ʎʐʏɿʏʀʏʄʏʈʐaʑʒ\b2ʒʓd3ʓʙʔʕ\fʕʖ;ʖʘd3ʗʔʘʛʙʗʙʚʚcʛʙʜʝ\b3ʝʞf4ʞʤʟʠ\fʠʡ<ʡʣf4ʢʟʣʦʤʢʤʥʥeʦʤʧʨ\b4ʨʩh5ʩʯʪʫ\fʫʬ=ʬʮh5ʭʪʮʱʯʭʯʰʰgʱʯʲʻj6ʳʴj6ʴʵ>ʵʸh5ʶʷ?ʷʹh5ʸʶʸʹʹʻʺʲʺʳʻiʼʽ\b6ʽʾl7ʾ˄ʿˀ\fˀˁ@ˁ˃l7˂ʿ˃ˆ˄˂˄˅˅kˆ˄ˇ˙n8ˈˉn8ˉˊAˊˋn8ˋ˙ˌˍn8ˍˎBˎˏn8ˏ˙ːˑn8ˑ˒C˒˓n8˓˙˔˕n8˕˖D˖˗n8˗˙˘ˇ˘ˈ˘ˌ˘ː˘˔˙m˚˪p9˛˜E˜˪n8˝˞F˞˪n8˟ˠGˠ˪n8ˡˢHˢ˪n8ˣˤIˤ˪n8˥˦J˦˪n8˧˨K˨˪n8˩˚˩˛˩˝˩˟˩ˡ˩ˣ˩˥˩˧˪o˫ˬ\b9ˬ˭r:˭˷ˮ˰\f˯˱E˰˯˰˱˱˲˲˳@!˳˴r:˴˶˵ˮ˶˹˷˵˷˸˸q˹˷˺˾t;˻˼\t\v˼˾t;˽˺˽˻˾s˿̀\b;̀́v<́̇̂̃\f̃̄\t\f̄̆x=̅̂̆̉̇̅̇̈̈ủ̇̊̎x=̋̌Ľ̎v<̍̊̍̋̎w̏̐\b=̐̑z>̗̑̒̓\f̓̔M̖̔z>̖̙̗̗̘̘̒̕̕y̛̙̗̚\b>̛̜|?̢̜̝̞\f̞̟N̡̟|?̡̢̢̠̝̤̠̣̣{̢̤̥̦\b?̧̦~@̧̨̮̩\f̩̪> ̪̫~@̨̫̭̬̭̰̮̬̮̯̯}̰̮̱̲\b@̲̳€A̴̵̳̹\f̵̶\t\r̶̸€A̷̴̸̷̻̹̹̺̺̻̹̼̽\bA̽̾‚B̾͆̿̀\f̀́́͂^0͈͇͇͂̓̓̈́̿͆̈́͆ͅͅ͈͉͆͊\bB͊͑„C͋͌N(͍͍͎͌^0͎͏͏͉͓͑͐͐͋͑͗͒\f͓͔͔͖„C͕͖͙͕͒͗͗͘͘ƒ͙͚͗͛\bC͛͜†D͜͡͝͞\f͞͠Qͣ͟͟͢͢͝͠͡͡…ͣͤͨ͡ˆEͥͦ\tͦͨ†Dͧͤͧͥͨ‡ͩͼ0ͪͼJ&ͫͬUͬͼN(ͭͮVͮͼN(ͯͼWͰͱ\vͱͲV,ͲͳF$ͳʹ\fʹͼ͵ͶͶͷ`1ͷ͸͸ͼ͹ͼD#ͺͼŽHͻͩͻͪͻͫͻͭͻͯͻͰͻ͵ͻ͹ͻͺͼ‰ͽ΃J&;ͿJ&Ϳ΀\\΀΁ŠF΁΃΂ͽ΂;΃‹΄΅ŽH΅Ά·X·ΈΉYΉΊN(ΊΌžP΋΍,Ό΋Ό΍΍‘ΎΏΏ“ΐΑZΑΒ`1Β•ΓΔ[ΔΕN(ΕΖ)ΖΗ`1ΗΘ"ΘΙžPΙ—ΚΛN(ΛΜΜΝŠFΝΞ]ΞΟ`1Ο™ΠΦœOΡ΢œO΢ΣgΣΤšNΤΦΥΠΥΡΦ›ΧΨi؝Ωέ\vΪά¢RΫΪάίέΫέήήΰίέΰζ\fαγ$βαβγγδδζJ&εΩεβζŸηθVθνN(ινœOκλ(λνœOμημιμκν¡ξο¤Sοπ@!πρ¦Tρφςσcσφ¤SτφJ&υξυςυτφ£χψLψϒJ&ωϒJ&ϊύ QϋόόώJ&ύϋώϏϏύϏϐϐϒϑχϑωϑϊϒ¥ϓϔ\bTϔϚ¨Uϕϖϖϗ¦TϗϘϘϚϙϓϙϕϚϠϛϜ\fϜϝϝϟ¨UϞϛϟϢϠϞϠϡϡ§ϢϠϣϤ\bUϤϥϥϦ¨UϦϧϧϪϨϪªVϩϣϩϨϪϰϫϬ\fϬϭ\tϭϯªVϮϫϯϲϰϮϰϱϱ©ϲϰϳϺ QϴϺJ&ϵ϶϶Ϸ¦TϷϸϸϺϹϳϹϴϹϵϺ«x®³·ÁÇÍÐØÜâä÷úýĀąĉčėĚģĨĭIJķńňŌŕŚŝšŨŭŰŴŹŽƀƄƊƎƖƟƣƦƯƲƹƽǂǏǒǖǟǣǬǰǺȅȉȎȚȢȨȬȳȹɀɃɌɓɚɡɨɯɶɽʊʏʙʤʯʸʺ˄˘˩˰˷˽̢̗̮̹̇̍͆͐͗ͧ͡ͻ΂ΌΥέβεμυϏϑϙϠϩϰϹ',_._serializedATN=y.join([_._serializedATNSegment0,_._serializedATNSegment1],"");class v extends d.ParserRuleContext{PRED_TOK(){return this.getToken(_.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,I)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=v;class x extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}EOF(){return this.getToken(_.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=x;class b extends d.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(T):this.getRuleContext(t,T)}paragraph(t){return void 0===t?this.getRuleContexts(E):this.getRuleContext(t,E)}evalDecl(t){return void 0===t?this.getRuleContexts(Kt):this.getRuleContext(t,Kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=b;class T extends d.ParserRuleContext{OPEN_TOK(){return this.getToken(_.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(_.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=T;class E extends d.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,O)}predDecl(){return this.tryGetRuleContext(0,v)}funDecl(){return this.tryGetRuleContext(0,k)}assertDecl(){return this.tryGetRuleContext(0,P)}cmdDecl(){return this.tryGetRuleContext(0,M)}testExpectDecl(){return this.tryGetRuleContext(0,K)}sexprDecl(){return this.tryGetRuleContext(0,Dt)}queryDecl(){return this.tryGetRuleContext(0,Ft)}evalRelDecl(){return this.tryGetRuleContext(0,jt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Mt)}exampleDecl(){return this.tryGetRuleContext(0,Ut)}propertyDecl(){return this.tryGetRuleContext(0,G)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}testSuiteDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=E;class O extends d.ParserRuleContext{SIG_TOK(){return this.getToken(_.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(_.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}sigExt(){return this.tryGetRuleContext(0,S)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=O;class S extends d.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(_.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(_.PLUS_TOK):this.getToken(_.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=S;class N extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=N;class A extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=A;class w extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=w;class R extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=R;class C extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=C;class L extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,A)}arrowExpr(){return this.getRuleContext(0,kt)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=L;class I extends d.ParserRuleContext{WHEAT_TOK(){return this.getToken(_.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=I;class k extends d.ParserRuleContext{FUN_TOK(){return this.getToken(_.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=k;class D extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=D;class P extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=P;class M extends d.ParserRuleContext{RUN_TOK(){return this.tryGetToken(_.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(_.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=M;class j extends d.ParserRuleContext{IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(_.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(_.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=j;class K extends d.ParserRuleContext{EXPECT_TOK(){return this.getToken(_.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,U)}TEST_TOK(){return this.tryGetToken(_.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=K;class U extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=U;class F extends d.ParserRuleContext{FOR_TOK(){return this.getToken(_.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}BUT_TOK(){return this.tryGetToken(_.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=F;class $ extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=$;class H extends d.ParserRuleContext{NONE_TOK(){return this.tryGetToken(_.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(_.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(_.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=H;class B extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=B;class q extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(_.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(_.BAR_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=q;class G extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=G;class z extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}WITH_TOK(){return this.getToken(_.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(_.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(_.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=z;class V extends d.ParserRuleContext{TEST_TOK(){return this.getToken(_.TEST_TOK,0)}SUITE_TOK(){return this.getToken(_.SUITE_TOK,0)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=V;class Y extends d.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Ut)}testExpectDecl(){return this.tryGetRuleContext(0,K)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}propertyDecl(){return this.tryGetRuleContext(0,G)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=Y;class W extends d.ParserRuleContext{ARROW_TOK(){return this.getToken(_.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(N):this.getRuleContext(t,N)}SET_TOK(t){return void 0===t?this.getTokens(_.SET_TOK):this.getToken(_.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=W;class X extends d.ParserRuleContext{IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(_.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(_.LT_TOK,0)}GT_TOK(){return this.tryGetToken(_.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(_.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(_.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(_.IS_TOK,0)}NI_TOK(){return this.tryGetToken(_.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=X;class Q extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=Q;class J extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends d.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(_.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends d.ParserRuleContext{ALL_TOK(){return this.tryGetToken(_.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends d.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(_.SLASH_TOK):this.getToken(_.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(_.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends d.ParserRuleContext{OPTION_TOK(){return this.getToken(_.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends d.ParserRuleContext{IDENTIFIER_TOK(){return this.getToken(_.IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class ot extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=ot;class st extends d.ParserRuleContext{paraDecl(){return this.getRuleContext(0,R)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=st;class at extends d.ParserRuleContext{quantDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ut extends d.ParserRuleContext{letDecl(){return this.getRuleContext(0,Q)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ut;class ct extends d.ParserRuleContext{typescope(){return this.getRuleContext(0,$)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ct;class ht extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class dt extends d.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,pt)}LET_TOK(){return this.tryGetToken(_.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(_.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=dt;class pt extends d.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,pt)}OR_TOK(){return this.tryGetToken(_.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=pt;class ft extends d.ParserRuleContext{expr2(){return this.getRuleContext(0,gt)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(_.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class gt extends d.ParserRuleContext{expr3(){return this.getRuleContext(0,mt)}expr2(){return this.tryGetRuleContext(0,gt)}IFF_TOK(){return this.tryGetToken(_.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=gt;class mt extends d.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(_.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(mt):this.getRuleContext(t,mt)}ELSE_TOK(){return this.tryGetToken(_.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=mt;class yt extends d.ParserRuleContext{expr4_5(){return this.getRuleContext(0,_t)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(_.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class _t extends d.ParserRuleContext{expr5(t){return void 0===t?this.getRuleContexts(vt):this.getRuleContext(t,vt)}UNTIL_TOK(){return this.tryGetToken(_.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(_.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(_.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(_.TRIGGERED_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4_5}enterRule(t){t.enterExpr4_5&&t.enterExpr4_5(this)}exitRule(t){t.exitExpr4_5&&t.exitExpr4_5(this)}accept(t){return t.visitExpr4_5?t.visitExpr4_5(this):t.visitChildren(this)}}e.Expr4_5Context=_t;class vt extends d.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,vt)}ALWAYS_TOK(){return this.tryGetToken(_.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(_.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(_.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(_.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(_.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(_.HISTORICALLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=vt;class xt extends d.ParserRuleContext{expr7(){return this.getRuleContext(0,bt)}expr6(){return this.tryGetRuleContext(0,xt)}compareOp(){return this.tryGetRuleContext(0,X)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=xt;class bt extends d.ParserRuleContext{expr8(){return this.getRuleContext(0,Tt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=bt;class Tt extends d.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,Et)}expr8(){return this.tryGetRuleContext(0,Tt)}expr10(){return this.tryGetRuleContext(0,Ot)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=Tt;class Et extends d.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,Ot)}CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,Et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=Et;class Ot extends d.ParserRuleContext{expr11(){return this.getRuleContext(0,St)}expr10(){return this.tryGetRuleContext(0,Ot)}PPLUS_TOK(){return this.tryGetToken(_.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=Ot;class St extends d.ParserRuleContext{expr12(){return this.getRuleContext(0,Nt)}expr11(){return this.tryGetRuleContext(0,St)}AMP_TOK(){return this.tryGetToken(_.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=St;class Nt extends d.ParserRuleContext{expr13(){return this.getRuleContext(0,At)}expr12(){return this.tryGetRuleContext(0,Nt)}arrowOp(){return this.tryGetRuleContext(0,W)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Nt;class At extends d.ParserRuleContext{expr14(){return this.getRuleContext(0,wt)}expr13(){return this.tryGetRuleContext(0,At)}SUBT_TOK(){return this.tryGetToken(_.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(_.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=At;class wt extends d.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Rt)}expr14(){return this.tryGetRuleContext(0,wt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=wt;class Rt extends d.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,Ct)}expr15(){return this.tryGetRuleContext(0,Rt)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=Rt;class Ct extends d.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Lt)}expr16(){return this.tryGetRuleContext(0,Ct)}PRIME_TOK(){return this.tryGetToken(_.PRIME_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr16}enterRule(t){t.enterExpr16&&t.enterExpr16(this)}exitRule(t){t.exitExpr16&&t.exitExpr16(this)}accept(t){return t.visitExpr16?t.visitExpr16(this):t.visitChildren(this)}}e.Expr16Context=Ct;class Lt extends d.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,It)}expr17(){return this.tryGetRuleContext(0,Lt)}TILDE_TOK(){return this.tryGetToken(_.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(_.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(_.STAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=Lt;class It extends d.ParserRuleContext{const(){return this.tryGetRuleContext(0,H)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(_.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=It;class kt extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=kt;class Dt extends d.ParserRuleContext{sexpr(){return this.getRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=Dt;class Pt extends d.ParserRuleContext{SEXPR_TOK(){return this.getToken(_.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=Pt;class Mt extends d.ParserRuleContext{INST_TOK(){return this.getToken(_.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Bt)}scope(){return this.tryGetRuleContext(0,F)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Mt;class jt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=jt;class Kt extends d.ParserRuleContext{EVAL_TOK(){return this.getToken(_.EVAL_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Kt;class Ut extends d.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(_.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}expr(){return this.getRuleContext(0,dt)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Ut;class Ft extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,kt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=Ft;class $t extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,$t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=$t;class Ht extends d.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(_.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=Ht;class Bt extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(Gt):this.getRuleContext(t,Gt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Bt;class qt extends d.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=qt;class Gt extends d.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,zt)}compareOp(){return this.tryGetRuleContext(0,X)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=Gt;class zt extends d.ParserRuleContext{CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}DOT_TOK(t){return void 0===t?this.getTokens(_.DOT_TOK):this.getToken(_.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=zt;class Vt extends d.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=Vt;class Yt extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Wt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=Yt;class Wt extends d.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Wt},5411:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;let o=r(6737),s=r(2399),a=r(7760),l=class extends o.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},5577:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.name=i,this.body=o,this.inheritsFrom=s,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.Test=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.name=i,this.check=o,this.body=s,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l,u,c,h){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.disj=a,this.quantDecls=l,this.bounds=u,this.scope=c,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.testExpr=o,this.bounds=s}},e.Function=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.exp=i,this.check=o,this.bounds=s,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.consistent=s,this.bounds=a,this.scope=l}}},5585:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;let o=r(2399);class s{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch{try{return e.call(null,t,0)}catch{return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch{e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch{r=o}}();var a,l=[],u=!1,c=-1;function h(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c1)for(var r=1;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;let i=r(8291),o=r(7477),s=r(2399);class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,a,l,u){let c=new i.CommonToken(e,r,t,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,a))),c}createSimple(t,e){return new i.CommonToken(t,e)}}var l;n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,(l=a=e.CommonTokenFactory||(e.CommonTokenFactory={})).DEFAULT=new l},5635:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5636:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let o=e(i),s=0;for(let e of t)o=r(o,e),s++;return o=n(o,s),o}}(e.MurmurHash||(e.MurmurHash={}))},5643:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;let i=r(2399),o=r(5636),s=r(8055);class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},5680:(t,e,r)=>{var n=r(5767);t.exports=function(t){return!!n(t)}},5754:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(rn))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},5767:(t,e,r)=>{var n=r(2682),i=r(9209),o=r(487),s=r(6556),a=r(5795),l=r(3628),u=s("Object.prototype.toString"),c=r(9092)(),h=typeof globalThis>"u"?r.g:globalThis,d=i(),p=s("String.prototype.slice"),f=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&(r=t,i=!1,n(g,(function(t,e){if(!i)try{t(r),i=p(e,1)}catch{}})),i)}var r,i;return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch{}})),e}(t):null}},5795:(t,e,r)=>{var n=r(6549);if(n)try{n([],"length")}catch{n=null}t.exports=n},5859:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerSkipAction=a,(l=a=e.LexerSkipAction||(e.LexerSkipAction={})).INSTANCE=new l},5866:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;let n=r(4148),i=r(4605);class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;var r;(r=e||(e={}))[r.BYTE=0]="BYTE",r[r.CHAR=1]="CHAR",r[r.INT=2]="INT";class o{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=o}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},5880:t=>{t.exports=Math.pow},5895:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;let i=r(3258),o=r(2399);class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},5920:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;let o=r(2399),s=r(6605),a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),e.ParseTreePattern=a},5922:function(t,e,r){var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;let a=r(659),l=r(8955),u=r(493),c=r(3361),h=r(1964),d=r(1862),p=r(2807),f=r(2399),g=r(8344),m=r(3161),y=r(6142),_=r(8831),v=r(360),x=r(7760);class b{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],b.prototype,"enterEveryRule",null),i([f.Override],b.prototype,"exitEveryRule",null),i([f.Override],b.prototype,"visitErrorNode",null),i([f.Override],b.prototype,"visitTerminal",null);class T extends _.Recognizer{constructor(t){super(),this._errHandler=new c.DefaultErrorStrategy,this._precedenceStack=new d.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0),this.interpreter?.reset()}match(t){let e=this.currentToken;return e.type===t?(t===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=T.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new u.ATNDeserializer(r).deserialize(a.toCharArray(t)),T.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return s(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof p.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r(4864)))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==T.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new v.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){this._ctx._parent?.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r(1284))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new g.ParseInfo(e)}))}setProfile(t){return s(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r(1284))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new m.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new b(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}T.bypassAltsAtnCache=new Map,i([f.NotNull],T.prototype,"_errHandler",void 0),i([f.NotNull],T.prototype,"match",null),i([f.NotNull],T.prototype,"matchWildcard",null),i([f.NotNull],T.prototype,"getParseListeners",null),i([o(0,f.NotNull)],T.prototype,"addParseListener",null),i([f.NotNull],T.prototype,"getATNWithBypassAlts",null),i([f.NotNull,o(0,f.NotNull)],T.prototype,"errorHandler",null),i([f.Override],T.prototype,"inputStream",null),i([f.NotNull],T.prototype,"currentToken",null),i([o(0,f.NotNull)],T.prototype,"enterRule",null),i([f.Override,o(0,f.Nullable)],T.prototype,"precpred",null),i([f.Override],T.prototype,"getErrorListenerDispatch",null),i([f.NotNull],T.prototype,"getExpectedTokens",null),i([f.NotNull],T.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],T.prototype,"parseInfo",null),e.Parser=T},5979:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=void 0,e.replaceCodePoint=i,e.decodeCodePoint=function(t){return(0,e.fromCodePoint)(i(t))};let n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=n.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e}},6061:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;let o=r(8939),s=r(2399),a=r(2356),l=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PrecedencePredicateTransition=l},6142:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;let i=r(7115),o=r(2399);class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},6145:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;let o=r(2807),s=r(1088),a=r(2399),l=r(2399),u=class extends o.Lexer{constructor(t,e,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),e.LexerInterpreter=u},6181:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;let o=r(9449),s=r(2399),a=r(7477),l=r(659),u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex{t.exports=Math.max},6251:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),e.LoopEndState=a},6298:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;let o=r(3258),s=r(9709),a=r(2399),l=r(8859),u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},6305:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;let i=r(7037),o=r(8016),s=r(2399);class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},6369:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;let o=r(8939),s=r(2399),a=r(2356),l=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PredicateTransition=l},6409:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;let i=r(3907),o=r(2399),s=r(8055),a=r(8859),l=r(4148);class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=u,u.UNCACHED=new u(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},6474:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;let o=r(5636),s=r(2399);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerMoreAction=a,(l=a=e.LexerMoreAction||(e.LexerMoreAction={})).INSTANCE=new l},6479:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerTypeAction=a},6549:t=>{t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{var n=r(453),i=r(3126),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},6576:(t,e,r)=>{var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6605:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;let n=r(6776),i=r(5411),o=r(6181),s=r(1097),a=r(7760),l=r(9939),u=r(2593),c=r(996),h=r(6739),d=r(2193),p=r(4197),f=r(7712),g=r(2431);class m{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,d=0;t:for(;d0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=m,m.WILDCARD="*",m.NOT="!"},6642:(t,e,r)=>{var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6684:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=f;let n=r(5585),i=r(2543),o=r(4699);function s(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function a(t){return Array.isArray(t)}function l(t){return"boolean"==typeof t}function u(t){return"number"==typeof t}function c(t){return u(t)?t:(e=t,Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&1===e[0].length&&"number"==typeof e[0][0]?t[0][0]:void 0);var e}function h(t){return"string"==typeof t}function d(t,e){return t.length===e.length&&t.every(((t,r)=>t===e[r]))}function p(t,e){return t.every((t=>e.some((e=>d(t,e)))))}function f(t,e){return t.length===e.length&&p(t,e)&&p(e,t)}function g(t){let e=[];for(let r of t)e.some((t=>d(t,r)))||e.push(r);return e}function m(t){return function t(e){if(0===e.length)return[[]];let[r,...n]=e,i=t(n);return r.flatMap((t=>i.map((e=>[t,...e]))))}(t.map((t=>t.flat())))}function y(t){if(0===t.length)return[];t.forEach((t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")}));let e=new Map;for(let[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);let r=new Set;for(let t of e.keys()){let n=new Set,i=[...e.get(t)??[]];for(;i.length>0;){let o=i.shift();if(n.has(o))continue;n.add(o),r.add(JSON.stringify([t,o]));let s=e.get(o);if(s)for(let t of s)n.has(t)||i.push(t)}}return Array.from(r).map((t=>JSON.parse(t)))}function _(t,e){let r=s(t)?[[t]]:t,n=s(e)?[[e]]:e,i=[];if(r.forEach((t=>{n.forEach((e=>{t[t.length-1]===e[0]&&i.push([...t.slice(0,t.length-1),...e.slice(1)])}))})),i.some((t=>0===t.length)))throw new Error("Join would create a relation of arity 0");return i}function v(t,e){let r=Math.pow(2,e),n=(t%r+r)%r;return n>=Math.pow(2,e-1)&&(n-=r),n}let x=["add","subtract","multiply","divide","remainder"],b=["abs","sign"];e.SUPPORTED_BUILTINS=x.concat(b);class T extends n.AbstractParseTreeVisitor{constructor(t,e,r){super(),this.cachedResults=new Map,this.datum=t,this.instanceIndex=e,this.instanceData=this.datum.parsed.instances[this.instanceIndex],this.bitwidth=this.datum.parsed.bitwidth,this.predicates=r,this.environmentStack=[],this.freeVariableFinder=new o.ForgeExprFreeVariableFinder(t,e,r),this.freeVariables=new Map}isPredicateName(t){return this.predicates.some((e=>e.name===t))}getPredicate(t){let e=this.predicates.find((e=>e.name===t));if(void 0===e)throw new Error(`Predicate ${t} not found`);return e}callPredicate(t,e){let r=t.args?t.args.length:0,n=Array.isArray(e)?e.length:1;if(r!==n)throw new Error(`Expected ${r} arguments, but got ${n}`);let i=t.args?.map((t=>t.split(":")[0])),o={env:{},type:"predArgs"};if(i)for(let t=0;t`${e}=${t[e]}`)).join("|")}cacheResult(t,e,r){this.cachedResults.has(t)||this.cachedResults.set(t,new Map),this.cachedResults.get(t).set(e,r)}getIden(){let t=this.instanceData.types,e=[];for(let r in t)t[r].atoms.forEach((t=>{let r=t.id;isNaN(Number(r))?"true"==r||"#t"===r?r=!0:"false"!=r&&"#f"!==r||(r=!1):r=Number(r),e.push([r,r])}));return e}aggregateResult(t,e){if(a(t)&&0===t.length)return e;if(a(e)&&0===e.length)return t;if(s(t)){if(s(e))return e;throw new Error("Expected nextResult to be a single value")}return s(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(let r of t.expr()){let t=this.visit(r);if(!l(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){let r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0,n={};for(let t of e)for(let e=this.environmentStack.length-1;e>=0;e--){let i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}let i,o=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)&&this.cachedResults.get(t).has(o))return this.cachedResults.get(t).get(o);if(t.LET_TOK()&&(i=[],i.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let s=i.expr(),a=[],u=[];for(let t in r)a.push(t),u.push(r[t]);let c=m(u),h=[],d=!1,p=!1;for(let e=0;e1)return this.cacheResult(t,o,!1),!1;if(e.SOME_TOK()&&d)return this.cacheResult(t,o,!0),!0;if(e.ONE_TOK()&&h.length>1)return this.cacheResult(t,o,!1),!1}}if(t.quant().ALL_TOK()){let e=!p;return this.cacheResult(t,o,e),e}if(t.quant().NO_TOK()){let e=!d;return this.cacheResult(t,o,e),e}if(t.quant().mult()){let e=t.quant().mult();if(e.LONE_TOK()){let e=h.length<=1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()){let e=d;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()){let e=1===h.length;return this.cacheResult(t,o,e),e}if(e.TWO_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Two (`two`)")}}let a=this.visitChildren(t);if(void 0===i)return this.cacheResult(t,o,a),a;if(s(i))throw new Error("Expected results to be a tuple array");return s(a)?i.push([a]):i=i.concat(a),this.cacheResult(t,o,i),i}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");let e=this.visit(t.expr1());if(!l(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;let r=this.visit(t.expr1_5());if(!l(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");let e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!l(e)||!l(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");let e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!l(e)||!l(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!l(e))throw new Error("IMP operator expected 2 boolean operands!");if(!e)return!0;let r=this.visit(t.expr3()[0]);if(!l(r))throw new Error("IMP operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr4_5())throw new Error("Expected the AND operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!l(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;let r=this.visit(t.expr4_5());if(!l(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4_5(t){let e=[];return t.UNTIL_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),e):t.RELEASE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),e):t.SINCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),e):t.TRIGGERED_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),e):this.visitChildren(t)}visitExpr5(t){let e=[];if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the temporal operator to have 1 operand!");let r=this.visit(t.expr5());if(t.NEG_TOK()){if(!l(r))throw new Error("Expected the negation operator to have a boolean operand!");return!r}return t.ALWAYS_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),e):t.EVENTUALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),e):t.AFTER_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),e):t.BEFORE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),e):t.ONCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),e):t.HISTORICALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),e):r}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");let r=this.visit(t.expr6()),i=this.visit(t.expr7()),o=c(r),l=c(i);switch(t.compareOp()?.text){case"=":if(s(r)&&s(i))e=r===i;else if(s(r)&&a(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(a(r)&&s(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!a(r)||!a(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=f(r,i)}break;case"<":if(void 0===o||void 0===l)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o":if(void 0===o||void 0===l)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>l;break;case"<=":if(void 0===o||void 0===l)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o<=l;break;case">=":if(void 0===o||void 0===l)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>=l;break;case"in":e=a(r)&&a(i)?!!f(r,i)||p(r,i):!!a(i)&&i.some((t=>1===t.length&&t[0]===r));break;case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");case"ni":return e.push(["**UNIMPLEMENTED** Set Non-Membership (`ni`)"]),e;default:throw new Error(`Unexpected compare operator provided: ${t.compareOp()?.text}`)}}if(r){if(!l(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){let e=this.visit(t.expr8());if(t.SET_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Set (`set`)");if(t.ONE_TOK())return a(e)&&1===e.length;if(t.TWO_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Two (`two`)");return t.NO_TOK()?a(e)&&0===e.length:t.SOME_TOK()?a(e)&&e.length>0:t.LONE_TOK()?a(e)&&e.length<=1:e}visitExpr8(t){if(t.PLUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(s(e)&&s(r))return[[e],[r]];if(s(e)&&a(r)){if(0===r.length)return e;if(1===r[0].length)return g([[e],...r]);throw new Error("arity mismatch in set union!")}if(a(e)&&s(r)){if(0===e.length)return r;if(1===e[0].length)return g([...e,[r]]);throw new Error("arity mismatch in set union!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return g([...e,...r])}if(t.MINUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(s(e)&&s(r))return e===r?[]:e;if(s(e)&&a(r)){if(0===r.length)return e;if(1===r[0].length)return r.some((t=>t[0]===e))?[]:e;throw new Error("arity mismatch in set difference!")}if(a(e)&&s(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter((t=>t[0]!==r));throw new Error("arity mismatch in set difference!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length)return e.filter((t=>!r.some((e=>d(t,e)))))}return this.visitChildren(t)}visitExpr9(t){let e=this.visitChildren(t);if(t.CARD_TOK()){if(!a(e))throw new Error("The cardinal operator must be applied to a set of tuples!");return v(e.length,this.bitwidth)}return e}visitExpr10(t){if(t.PPLUS_TOK())throw void 0===t.expr10()||void 0===t.expr11()?new Error("Expected the pplus operator to have 2 operands of the right type!"):(this.visit(t.expr10()),this.visit(t.expr11()),new Error("**NOT IMPLEMENTING FOR NOW** pplus (`++`)"));return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");let e=this.visit(t.expr11()),r=this.visit(t.expr12());if(s(e)&&s(r))return e===r?e:[];if(s(e)&&a(r)){if(0===r.length)return[];if(1===r[0].length)return r.some((t=>t[0]===e))?e:[];throw new Error("arity mismatch in set intersection!")}if(a(e)&&s(r)){if(0===e.length)return[];if(1===e[0].length)return e.some((t=>t[0]===r))?r:[];throw new Error("arity mismatch in set intersection!")}if(!a(e)||!a(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length)return e.filter((t=>r.some((e=>d(t,e)))))}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");let e=this.visit(t.expr12()),r=this.visit(t.expr13()),n=s(e)?[[e]]:e,i=s(r)?[[r]]:r;if(!a(n)||!a(i))throw new Error("Arrow operator operands must be tuple arrays or single values");let o=[];for(let t of n)for(let e of i)o.push([...t,...e]);return g(o)}return this.visitChildren(t)}visitExpr13(t){if(t.SUPT_TOK())throw void 0===t.expr13()||void 0===t.expr14()?new Error("Expected the supertype operator to have 2 operands of the right type!"):(this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Supertype Operator (`:>`)"));if(t.SUBT_TOK())throw void 0===t.expr13()||void 0===t.expr14()?new Error("Expected the subtype operator to have 2 operands of the right type!"):(this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Subtype Operator (`<:`)"));return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){let e=this.visit(t.expr14()),r=this.visit(t.exprList());if(s(e)&&h(e)&&this.isPredicateName(e)){let t=this.getPredicate(e);return this.callPredicate(t,r)}if(h(e)){if(x.includes(e))return this.evaluateBinaryOperation(e,r,this.bitwidth);if(b.includes(e))return this.evaluateUnaryOperation(e,r,this.bitwidth)}return _(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr16())throw new Error("Expected the dot operator to have 2 operands of the right type!");return _(this.visit(t.expr15()),this.visit(t.expr16()))}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr16(t){let e=[];return t.PRIME_TOK()?(this.visit(t.expr16()),e.push(["**UNIMPLEMENTED** Primed Expression _'"]),e):this.visitChildren(t)}visitExpr17(t){let e=this.visitChildren(t);if(t.TILDE_TOK()){if(a(e)&&e.length>0&&2===e[0].length)return e.map((t=>[t[1],t[0]]));throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(a(e))return y(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&a(e)){let t=y(e);return g([...this.getIden(),...t])}return e}getNameListValues(t){return t.COMMA_TOK()?[t.name().text,...this.getNameListValues(t.nameList())]:[t.name().text]}getQuantDeclValues(t){let e=t.nameList(),r=this.getNameListValues(e),n=t.expr(),i=this.visitExpr(n);s(i)&&(i=[[i]]);let o={};for(let t of r)o[t]=i;return o}getQuantDeclListValues(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){let e=[];if(t.const()){let e=t.const();if(void 0!==e.number()){let t=Number(e.number().text),r=void 0!==e.MINUS_TOK()?-t:t,n=Math.pow(2,this.bitwidth-1)-1,i=-1*Math.pow(2,this.bitwidth-1);if(r>n||r=0;t--){let e=this.environmentStack[t];if(void 0!==e.env[r])return e.env[r];if("predArgs"===e.type)break}let n,i=Object.keys(this.instanceData.types).map((t=>this.instanceData.types[t].id));i.includes(r)&&(n=this.instanceData.types[r].atoms.map((t=>t.id)).map((t=>[t])));for(let t of i)if(this.instanceData.types[t].atoms.map((t=>t.id)).includes(r)){n=[[r]];break}let o=[r];for(;o.length>0;){let t=o.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");for(let e of i)if(e!==t&&this.instanceData.types[e].types.includes(t)){void 0===n&&(n=[]);let t=this.instanceData.types[e].atoms.map((t=>t.id));for(let e of t)n.push([e]);o.push(this.instanceData.types[e].id)}}let s=t=>"number"==typeof t||"string"==typeof t&&!isNaN(Number(t)),a=t=>"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t),l=t=>{if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)},u=Object.keys(this.instanceData.relations);for(let t of u)if(this.instanceData.relations[t].name===r){let e=this.instanceData.relations[t].tuples.map((t=>t.atoms));return e=e.map((t=>t.map((t=>s(t)?Number(t):t)))),e=e.map((t=>t.map((t=>a(t)?l(t):t)))),e}if(void 0!==n)return n=n.map((t=>t.map((t=>s(t)?Number(t):t)))),n=n.map((t=>t.map((t=>a(t)?l(t):t)))),n;if(this.isPredicateName(r)||e.SUPPORTED_BUILTINS.includes(r))return r;throw new Error(`bad name ${r} referenced!`)}visitQualName(t){return t.INT_TOK()?this.instanceData.types.Int.atoms.map((t=>[Number(t.id)])):this.visitChildren(t)}evaluateBinaryOperation(t,e,r){if(s(e))throw new Error(`Expected 2 arguments for ${t}`);let n,o,a;if((0,i.isArray)(e[0])){if(!u(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);n=e[0][0]}else{if(!u(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);n=e[0]}if((0,i.isArray)(e[1])){if(!u(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);o=e[1][0]}else{if(!u(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);o=e[1]}if(("divide"===t||"remainder"===t)&&0===o)throw new Error("Division by zero is not allowed");switch(t){case"add":a=n+o;break;case"subtract":a=n-o;break;case"multiply":a=n*o;break;case"divide":a=Math.floor(n/o);break;case"remainder":a=n%o;break;default:throw new Error(`Unsupported operation: ${t}`)}return v(a,r)}evaluateUnaryOperation(t,e,r){if(!s(e)||!u(e))throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);let n=v(e,r);if("abs"===t)return Math.abs(n);if("sign"===t)return n>0?1:n<0?-1:0;throw new Error(`Unsupported operation: ${t}`)}}e.ForgeExprEvaluator=T},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6737:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;let o=r(4148),s=r(8291),a=r(7477),l=r(2807),u=r(2399),c=r(7760),h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},6739:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;let i=r(1097),o=r(2399),s=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},6743:(t,e,r)=>{var n=r(9353);t.exports=Function.prototype.bind||n},6776:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;let n=r(5866),i=r(328),o=r(1492);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;let i=r(2399);class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},6889:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;let n=r(537),i=r(5636),o=new Uint16Array(0);function s(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<>>0:65535>>>15-e^65535>>>16-t}let h=new Uint8Array(65536);for(let t=0;t<16;t++){let e=1<>>0,r=0;for(;rr)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;nr)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n=r)return-1}return a(n)+l(e[n]&i)}or(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");let e=this.data,r=e.length,n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t{var n=r(453),i=r(41),o=r(592)(),s=r(5795),a=r(9675),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var c=s(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},6947:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;let o=r(934),s=r(2399),a=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TextChunk=a},7004:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,a){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),e.PredicateEvalInfo=a},7037:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},7059:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),e.LookaheadEventInfo=a},7115:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;let o=r(2399);class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},7119:t=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},7176:(t,e,r)=>{var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},7239:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;let o=r(4274),s=r(8291),a=r(1964),l=r(2399),u=r(5922),c=r(1097),h=r(5378),d=r(360),p=r(7760),f=r(659);class g{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof d.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;on)&&g.isAncestorOf(i,e)){let e=new s.CommonToken(p.Token.INVALID_TYPE,"...");t.children[o]=new d.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n{var n=r(9092)(),i=r(6556)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},7366:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.getCodePoint=e.xmlReplacer=void 0,e.encodeXML=n,e.xmlReplacer=/["$&'<>\u0080-\uFFFF]/g;let r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(t){let n,i="",o=0;for(;null!==(n=e.xmlReplacer.exec(t));){let{index:s}=n,a=t.charCodeAt(s),l=r.get(a);void 0===l?(i+=`${t.substring(o,s)}&#x${(0,e.getCodePoint)(t,s).toString(16)};`,o=e.xmlReplacer.lastIndex+=+(55296==(64512&a))):(i+=t.substring(o,s)+l,o=s+1)}return i+t.substr(o)}function i(t,e){return function(r){let n,i=0,o="";for(;n=t.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=e.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}e.getCodePoint=null==String.prototype.codePointAt?(t,e)=>55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e):(t,e)=>t.codePointAt(e),e.escape=n,e.escapeUTF8=i(/["&'<>]/g,r),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},7404:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;let i=r(4148),o=r(2399),s=r(1492);class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},7435:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let i=r(2399),o=r(7760);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t=0&&t=0&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;let i=r(3361),o=r(2468),s=r(2399),a=r(9278);class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},7477:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;let i=r(2399);class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},7653:(t,e,r)=>{var n=r(8452),i=r(487),o=r(9211),s=r(9394),a=r(6576),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},7712:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;let i=r(2399),o=r(7239),s=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},7760:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;let n=r(1492);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},7862:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;let i=r(4274),o=r(2399),s=r(1097);class a extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},7866:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;let o=r(6889),s=r(2399),a=r(7477);class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},7886:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;let o=r(1173),s=r(2399),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),e.AmbiguityInfo=a},7920:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),e.LexerCustomAction=a},7997:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},8002:t=>{t.exports=Math.min},8016:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;let n=r(2813);class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},8055:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;let i=r(2399);class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},8068:t=>{t.exports=SyntaxError},8075:(t,e,r)=>{var n=r(453),i=r(487),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},8151:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;let i=r(2399),o=r(5636),s=r(8055);class a{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e||t.length!==e.length)return!1;for(let r=0;r{var n,i=r(6556),o=r(9721)(/^\s*(?:function)?\*/),s=r(9092)(),a=r(3628),l=i("Object.prototype.toString"),u=i("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(o(u(t)))return!0;if(!s)return"[object GeneratorFunction]"===l(t);if(!a)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();n=!!e&&a(e)}return a(t)===n}},8195:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},8240:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;let i=r(5754),o=r(2399),s=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size||t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l)||this._size!==t._size)return!1;for(let e=0;ethis._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;ea)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e=65536?2:1;return t}}n([o.NotNull],l.prototype,"_data",void 0),n([o.Override],l.prototype,"equals",null),n([o.Override],l.prototype,"hashCode",null),n([o.Override],l.prototype,"toString",null),e.IntegerList=l},8291:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;let o=r(7477),s=r(2399),a=r(7760),l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),e.CommonToken=l},8344:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;let o=r(2399),s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0})},8403:(t,e,r)=>{var n=r(1189),i=r(1333)(),o=r(6556),s=r(9612),a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?s.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var o=1;o{var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r(41),l=r(592)(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?a(t,e,r,!0):a(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;let n=r(5636);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},8571:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;let o=r(2399),s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},8590:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;let i=r(6298),o=r(2399),s=r(8859),a=r(8831),l=r(7435);class u{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},8644:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;let i=r(7037),o=r(8016),s=r(2399);class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),e.TokensStartState=a},8648:t=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},8744:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),e.BasicState=a},8749:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;let i=r(7037),o=r(3099),s=r(2399);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},8831:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;let o=r(3196),s=r(7115),a=r(2399),l=r(7760),u=r(659);class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){return this.getTokenTypeMap().get(t)??l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},8840:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),e.RuleStopState=a},8859:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;let o=r(3907),s=r(1533),a=r(5754),l=r(5636),u=r(2399),c=r(6409),h=r(4148);class d{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?d.EMPTY_FULL:d.EMPTY_LOCAL;let n;n=e._parent?d.fromRuleContext(t,e._parent,r):r?d.EMPTY_FULL:d.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return d.isEmptyLocal(t)?t:d.addEmptyContext(e);if(e.isEmpty)return d.isEmptyLocal(e)?e:d.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,p=!0,m=!0;for(;l0){let t=1;for(;1<>>0>o&(1<>>0)-1,s=s&&e>=a.size-1,e>=a.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[l];u+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==d.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],d.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"getCachedContext",null),e.PredictionContext=d;class p extends d{constructor(t){super(d.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],p.prototype,"addEmptyContext",null),n([u.Override],p.prototype,"removeEmptyContext",null),n([u.Override],p.prototype,"getParent",null),n([u.Override],p.prototype,"getReturnState",null),n([u.Override],p.prototype,"findReturnState",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"appendSingleContext",null),n([u.Override],p.prototype,"appendContext",null),n([u.Override],p.prototype,"isEmpty",null),n([u.Override],p.prototype,"hasEmpty",null),n([u.Override],p.prototype,"equals",null),n([u.Override],p.prototype,"toStrings",null);let f=class t extends d{constructor(t,e,r){super(r||d.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==d.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===d.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(d.EMPTY_FULL),r.push(d.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new g(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new d.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(d.isEmptyLocal(r)){if(e.hasEmpty)return d.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let t=0;t1),i=new t(s,a)),e.hasEmpty&&(i=d.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t)||this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t{var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(1093),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window>"u")return!1;for(var t in window)try{if(!d["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch{return!0}}catch{return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),d=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=u&&r;if(a&&t.length>0&&!i.call(t,0))for(var g=0;g0)for(var m=0;m"u"||!p)return h(t);try{return h(t)}catch{return!1}}(t),v=0;v=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;let o=r(3907),s=r(8016),a=r(5636),l=r(2399),u=r(8055),c=r(8859),h=r(2356),d=r(4148),p=2147483648,f=class t{constructor(t,e,r){"number"==typeof e?(d((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new y(o,i,e,r,n,!1):new g(i,e,r,n):null!=o?new m(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){d(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new y(o,n,e,this,r,s):new g(n,e,this,r):null!=o||s?new m(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size{Object.defineProperty(e,"__esModule",{value:!0})},8939:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;let n=r(1072);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},8955:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;let i=r(2399);class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},8968:t=>{t.exports=Math.floor},9032:(t,e,r)=>{var n=r(7244),i=r(8184),o=r(5767),s=r(5680);function a(t){return t.call.bind(t)}var l=typeof BigInt<"u",u=typeof Symbol<"u",c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch{return!1}}function y(t){return"[object Map]"===c(t)}function _(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function x(t){return"[object WeakSet]"===c(t)}function b(t){return"[object ArrayBuffer]"===c(t)}function T(t){return typeof ArrayBuffer<"u"&&(b.working?b(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===c(t)}function O(t){return typeof DataView<"u"&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return typeof Promise<"u"&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working=typeof Map<"u"&&y(new Map),e.isMap=function(t){return typeof Map<"u"&&(y.working?y(t):t instanceof Map)},_.working=typeof Set<"u"&&_(new Set),e.isSet=function(t){return typeof Set<"u"&&(_.working?_(t):t instanceof Set)},v.working=typeof WeakMap<"u"&&v(new WeakMap),e.isWeakMap=function(t){return typeof WeakMap<"u"&&(v.working?v(t):t instanceof WeakMap)},x.working=typeof WeakSet<"u"&&x(new WeakSet),e.isWeakSet=function(t){return x(t)},b.working=typeof ArrayBuffer<"u"&&b(new ArrayBuffer),e.isArrayBuffer=T,E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return void 0!==S&&(void 0===N.working&&(N.working=N(new S)),N.working?N(t):t instanceof S)}function w(t){return m(t,h)}function R(t){return m(t,d)}function C(t){return m(t,p)}function L(t){return l&&m(t,f)}function I(t){return u&&m(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=w,e.isStringObject=R,e.isBooleanObject=C,e.isBigIntObject=L,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return w(t)||R(t)||C(t)||L(t)||I(t)},e.isAnyArrayBuffer=function(t){return typeof Uint8Array<"u"&&(T(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9057:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;let o=r(5636),s=r(2399),a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),e.LexerIndexedCustomAction=a},9086:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;let i=r(934),o=r(2399);class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},9092:(t,e,r)=>{var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.ActionTransition=a},9209:(t,e,r)=>{var n=r(6578),i=typeof globalThis>"u"?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9240:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;let i=r(2813),o=r(7037),s=r(2399);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),e.RuleStartState=a},9250:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;let o=r(2399),s=r(1072),a=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.EpsilonTransition=a},9274:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;let o=r(2813),s=r(7037),a=r(6889),l=r(2262),u=r(2468),c=r(3714),h=r(6251),d=r(2399),p=r(2399),f=r(5922),g=r(3161),m=r(9449),y=r(4016),_=r(7760),v=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new g.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new g.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof m.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),_.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=_.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,_.Token.INVALID_TYPE,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([d.NotNull],v.prototype,"_vocabulary",void 0),n([p.Override],v.prototype,"reset",null),n([p.Override],v.prototype,"atn",null),n([p.Override],v.prototype,"vocabulary",null),n([p.Override],v.prototype,"ruleNames",null),n([p.Override],v.prototype,"grammarFileName",null),n([p.Override],v.prototype,"enterRecursionRule",null),v=n([i(1,d.NotNull)],v),e.ParserInterpreter=v},9278:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},9290:t=>{t.exports=RangeError},9299:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=void 0,e.determineBranch=m,e.decodeHTML=function(t,e=u.Legacy){return y(t,e)},e.decodeHTMLAttribute=function(t){return y(t,u.Attribute)},e.decodeHTMLStrict=function(t){return y(t,u.Strict)},e.decodeXML=function(t){return _(t,u.Strict)};let n=r(642),i=r(1838),o=r(5979);var s,a,l,u,c;function h(t){return t>=s.ZERO&&t<=s.NINE}function d(t){return t>=s.UPPER_A&&t<=s.UPPER_F||t>=s.LOWER_A&&t<=s.LOWER_F}function p(t){return t===s.EQUALS||(e=t)>=s.UPPER_A&&e<=s.UPPER_Z||e>=s.LOWER_A&&e<=s.LOWER_Z||h(e);var e}(c=s||(s={}))[c.NUM=35]="NUM",c[c.SEMI=59]="SEMI",c[c.EQUALS=61]="EQUALS",c[c.ZERO=48]="ZERO",c[c.NINE=57]="NINE",c[c.LOWER_A=97]="LOWER_A",c[c.LOWER_F=102]="LOWER_F",c[c.LOWER_X=120]="LOWER_X",c[c.LOWER_Z=122]="LOWER_Z",c[c.UPPER_A=65]="UPPER_A",c[c.UPPER_F=70]="UPPER_F",c[c.UPPER_Z=90]="UPPER_Z",function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(a||(e.BinTrieFlags=a={})),function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(l||(l={})),function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"}(u||(e.DecodingMode=u={}));class f{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}startEntity(t){this.decodeMode=t,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case l.EntityStart:return t.charCodeAt(e)===s.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=l.NamedEntity,this.stateNamedEntity(t,e));case l.NumericStart:return this.stateNumericStart(t,e);case l.NumericDecimal:return this.stateNumericDecimal(t,e);case l.NumericHex:return this.stateNumericHex(t,e);case l.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===s.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,r,n){if(e!==r){let i=r-e;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(e,i),n),this.consumed+=i}}stateNumericHex(t,e){let r=e;for(;e>14;for(;e>14,0!==i){if(o===s.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:r}=this,n=(r[e]&a.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(1===e?n[t]&~a.VALUE_LENGTH:n[t+1],r),3===e&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===u.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function g(t){let e="",r=new f(t,(t=>e+=(0,o.fromCodePoint)(t)));return function(t,n){let i=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(i,o),r.startEntity(n);let s=r.write(t,o+1);if(s<0){i=o+r.end();break}i=o+s,o=0===s?i+1:i}let s=e+t.slice(i);return e="",s}}function m(t,e,r,n){let i=(e&a.BRANCH_LENGTH)>>7,o=e&a.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let e=n-o;return e<0||e>=i?-1:t[r+e]-1}let s=r,l=s+i-1;for(;s<=l;){let e=s+l>>>1,r=t[e];if(rn))return t[e+i];l=e-1}}return-1}e.EntityDecoder=f;let y=g(n.htmlDecodeTree),_=g(i.xmlDecodeTree);var v=r(642);Object.defineProperty(e,"htmlDecodeTree",{enumerable:!0,get:function(){return v.htmlDecodeTree}});var x=r(1838);Object.defineProperty(e,"xmlDecodeTree",{enumerable:!0,get:function(){return x.xmlDecodeTree}});var b=r(5979);Object.defineProperty(e,"decodeCodePoint",{enumerable:!0,get:function(){return b.decodeCodePoint}}),Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return b.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return b.fromCodePoint}})},9353:t=>{var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{t.exports=Error},9394:(t,e,r)=>{var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9449:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},9462:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;let o=r(8939),s=r(1533),a=r(8880),l=r(6889),u=r(3357),c=r(2399),h=r(3575),d=r(8055),p=r(8859),f=r(8840),g=r(3334),m=r(7760),y=r(4650),_=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n{t.exports=ReferenceError},9597:(t,e,r)=>{function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s,a,l={};function u(t,e,r){r||(r=Error);var s=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,r);var s,a,l,u=(a=c,l=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}(),function(){var t,e=o(a);if(l){var r=o(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(r,n,i){var o,s,a,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(o=u.call(this,(s=r,a=n,l=i,"string"==typeof e?e:e(s,a,l)))).code=t,o}return s=c,Object.defineProperty(s,"prototype",{writable:!1}),s}(r);l[t]=s}function c(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,a,l,u,h,d;if(void 0===s&&(s=r(4148)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&"not "===e.substr(0,4)?(o="must not be",e=e.replace(/^not /,"")):o="must be",h=t,(void 0===d||d>h.length)&&(d=h.length)," argument"===h.substring(d-9,d))a="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var p=("number"!=typeof u&&(u=0),u+1>(l=t).length||-1===l.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(p," ").concat(o," ").concat(c(e,"type"))}return a+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(537));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=l},9600:t=>{var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch{return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch{return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch{}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},9612:t=>{t.exports=Object},9616:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;let o=r(5636),s=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerModeAction=a},9675:t=>{t.exports=TypeError},9709:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;let o=r(4274),s=r(6889),a=r(5636),l=r(2399),u=r(8859),c=r(4148);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new s.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},9721:(t,e,r)=>{var n=r(6556),i=r(4035),o=n("RegExp.prototype.exec"),s=r(9675);t.exports=function(t){if(!i(t))throw new s("`regex` must be a RegExp");return function(e){return null!==o(t,e)}}},9803:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;let i=r(7037),o=r(8744),s=r(2399);class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),e.InvalidState=a},9939:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;let n=r(493),i=r(2807),o=r(1088),s=r(7435),a=r(659);class l extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},9957:(t,e,r)=>{var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);t.exports=o.call(n,i)},9984:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;let i=r(4274),o=r(8831),s=r(5378),a=r(7477),l=r(2399),u=r(7239),c=r(1097);class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=e??-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e=0&&t(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForgeExprEvaluatorUtil=void 0;let e=r(2221),i=r(5395),o=r(5288),s=r(3274),a=r(2219),l=r(6684),u=r(960),c=r(3651);function h(t){let r=e.CharStreams.fromString(t),n=new o.ForgeLexer(r),s=new e.CommonTokenStream(n),a=new i.ForgeParser(s);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new c.ParseErrorListener),a}t.ForgeExprEvaluatorUtil=class{constructor(t,e){this.forgeListener=new s.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.datum=t,this.predicates=(0,u.extractPredicates)(e),this.gotPredicateParseTrees=!1}getPredParseTree(t){return h(t).predDecl()}getExpressionParseTree(t){let e=h(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}getPredicateParseTrees(){for(let t of this.predicates){let e=this.getPredParseTree(t.predicateString);t.predTree=e}this.gotPredicateParseTrees=!0}evaluateExpression(t,e=0){this.gotPredicateParseTrees||this.getPredicateParseTrees();try{var r=this.getExpressionParseTree(t)}catch{return{error:new Error(`Error parsing expression "${t}"`)}}let n=new l.ForgeExprEvaluator(this.datum,e,this.predicates);try{return n.visit(r instanceof i.ExprContext?r:r.getChild(0))}catch(e){if(e instanceof Error){let r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}}})(),n})()))})),Sn=p(((t,e)=>{var r,n;r=t,n=()=>(()=>{var t={"./node_modules/antlr4ts/ANTLRErrorListener.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ANTLRErrorStrategy.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ANTLRInputStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;let i=r("./node_modules/assert/build/assert.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/IntStream.js");class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},"./node_modules/antlr4ts/BailErrorStrategy.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;let i=r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),o=r("./node_modules/antlr4ts/InputMismatchException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/ParseCancellationException.js");class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},"./node_modules/antlr4ts/BufferedTokenStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;let o=r("./node_modules/assert/build/assert.js"),s=r("./node_modules/antlr4ts/CommonToken.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Lexer.js"),u=r("./node_modules/antlr4ts/Decorators.js"),c=r("./node_modules/antlr4ts/Token.js"),h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},"./node_modules/antlr4ts/CharStream.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/CharStreams.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;let n=r("./node_modules/antlr4ts/CodePointBuffer.js"),i=r("./node_modules/antlr4ts/CodePointCharStream.js"),o=r("./node_modules/antlr4ts/IntStream.js");(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){(void 0===e||0===e.length)&&(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;let n=r("./node_modules/assert/build/assert.js"),i=r("./node_modules/antlr4ts/misc/Character.js");class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;var r;(r=e||(e={}))[r.BYTE=0]="BYTE",r[r.CHAR=1]="CHAR",r[r.INT=2]="INT";class o{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=o}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},"./node_modules/antlr4ts/CodePointCharStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;let i=r("./node_modules/assert/build/assert.js"),o=r("./node_modules/antlr4ts/IntStream.js"),s=r("./node_modules/antlr4ts/misc/Interval.js"),a=r("./node_modules/antlr4ts/Decorators.js");class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return(void 0===e||0===e.length)&&(e=o.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){let e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},"./node_modules/antlr4ts/CommonToken.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;let o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),e.CommonToken=l},"./node_modules/antlr4ts/CommonTokenFactory.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;let i=r("./node_modules/antlr4ts/CommonToken.js"),o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,a,l,u){let c=new i.CommonToken(e,r,t,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,a))),c}createSimple(t,e){return new i.CommonToken(t,e)}}var l;n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,(l=a=e.CommonTokenFactory||(e.CommonTokenFactory={})).DEFAULT=new l},"./node_modules/antlr4ts/CommonTokenStream.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;let o=r("./node_modules/antlr4ts/BufferedTokenStream.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class extends o.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},"./node_modules/antlr4ts/Decorators.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/DefaultErrorStrategy.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;let o=r("./node_modules/antlr4ts/atn/ATNState.js"),s=r("./node_modules/antlr4ts/atn/ATNStateType.js"),a=r("./node_modules/antlr4ts/FailedPredicateException.js"),l=r("./node_modules/antlr4ts/InputMismatchException.js"),u=r("./node_modules/antlr4ts/misc/IntervalSet.js"),c=r("./node_modules/antlr4ts/NoViableAltException.js"),h=r("./node_modules/antlr4ts/atn/PredictionContext.js"),d=r("./node_modules/antlr4ts/Token.js"),p=r("./node_modules/antlr4ts/Decorators.js");class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(d.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===d.Token.EOF?"":n.getTextFromRange(e.startToken,e.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=d.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===d.Token.EOF?"":"";let o=r,s=t.inputStream.tryLT(-1);return o.type===d.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,d.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===d.Token.EOF?"":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(d.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==d.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([p.Override],f.prototype,"reset",null),n([i(0,p.NotNull)],f.prototype,"beginErrorCondition",null),n([p.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,p.NotNull)],f.prototype,"endErrorCondition",null),n([p.Override],f.prototype,"reportMatch",null),n([p.Override],f.prototype,"reportError",null),n([i(0,p.NotNull)],f.prototype,"notifyErrorListeners",null),n([p.Override],f.prototype,"recover",null),n([p.Override],f.prototype,"sync",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,p.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,p.NotNull)],f.prototype,"reportMissingToken",null),n([p.Override],f.prototype,"recoverInline",null),n([i(0,p.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,p.NotNull)],f.prototype,"singleTokenDeletion",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getMissingSymbol",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,p.NotNull)],f.prototype,"getSymbolText",null),n([i(0,p.NotNull)],f.prototype,"getSymbolType",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"escapeWSAndQuote",null),n([p.NotNull,i(0,p.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,p.NotNull),i(1,p.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},"./node_modules/antlr4ts/Dependents.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},"./node_modules/antlr4ts/DiagnosticErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;let o=r("./node_modules/antlr4ts/misc/BitSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/Interval.js");class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},"./node_modules/antlr4ts/FailedPredicateException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/PredicateTransition.js"),l=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),e.FailedPredicateException=l},"./node_modules/antlr4ts/InputMismatchException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,s.NotNull)],a),e.InputMismatchException=a},"./node_modules/antlr4ts/IntStream.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME=""},"./node_modules/antlr4ts/InterpreterRuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/ParserRuleContext.js");class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},"./node_modules/antlr4ts/Lexer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;let i=r("./node_modules/antlr4ts/CommonTokenFactory.js"),o=r("./node_modules/antlr4ts/misc/IntegerStack.js"),s=r("./node_modules/antlr4ts/misc/Interval.js"),a=r("./node_modules/antlr4ts/IntStream.js"),l=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),u=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/Recognizer.js"),d=r("./node_modules/antlr4ts/Token.js");class p extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=p.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return d.Token.DEFAULT_CHANNEL}static get HIDDEN(){return d.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=d.Token.INVALID_TYPE,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=p.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=d.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=d.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=p.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===d.Token.INVALID_TYPE&&(this._type=t),this._type===p.SKIP)continue t}while(this._type===p.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=p.SKIP}more(){this._type=p.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,d.Token.EOF,void 0,d.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==d.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case d.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}p.DEFAULT_MODE=0,p.MORE=-2,p.SKIP=-3,p.MIN_CHAR_VALUE=0,p.MAX_CHAR_VALUE=1114111,n([c.Override],p.prototype,"nextToken",null),n([c.Override],p.prototype,"tokenFactory",null),n([c.Override],p.prototype,"inputStream",null),n([c.Override],p.prototype,"sourceName",null),n([c.Override],p.prototype,"line",null),n([c.Override],p.prototype,"charPositionInLine",null),e.Lexer=p},"./node_modules/antlr4ts/LexerInterpreter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;let o=r("./node_modules/antlr4ts/Lexer.js"),s=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=class extends o.Lexer{constructor(t,e,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),e.LexerInterpreter=u},"./node_modules/antlr4ts/LexerNoViableAltException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;let o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/misc/Utils.js"),u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;let o=r("./node_modules/antlr4ts/CommonTokenFactory.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),e.ListTokenSource=l},"./node_modules/antlr4ts/NoViableAltException.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;let i=r("./node_modules/antlr4ts/Parser.js"),o=r("./node_modules/antlr4ts/RecognitionException.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},"./node_modules/antlr4ts/Parser.js":function(t,e,r){var n=r("./node_modules/process/browser.js"),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof r?t:new r((function(e){e(t)}))}(t.value).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;let a=r("./node_modules/antlr4ts/misc/Utils.js"),l=r("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),u=r("./node_modules/antlr4ts/atn/ATNDeserializer.js"),c=r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),h=r("./node_modules/antlr4ts/tree/ErrorNode.js"),d=r("./node_modules/antlr4ts/misc/IntegerStack.js"),p=r("./node_modules/antlr4ts/Lexer.js"),f=r("./node_modules/antlr4ts/Decorators.js"),g=r("./node_modules/antlr4ts/atn/ParseInfo.js"),m=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),y=r("./node_modules/antlr4ts/ProxyParserErrorListener.js"),_=r("./node_modules/antlr4ts/Recognizer.js"),v=r("./node_modules/antlr4ts/tree/TerminalNode.js"),x=r("./node_modules/antlr4ts/Token.js");class b{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],b.prototype,"enterEveryRule",null),i([f.Override],b.prototype,"exitEveryRule",null),i([f.Override],b.prototype,"visitErrorNode",null),i([f.Override],b.prototype,"visitTerminal",null);class T extends _.Recognizer{constructor(t){super(),this._errHandler=new c.DefaultErrorStrategy,this._precedenceStack=new d.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0),this.interpreter?.reset()}match(t){let e=this.currentToken;return e.type===t?(t===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=T.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new u.ATNDeserializer(r).deserialize(a.toCharArray(t)),T.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return s(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof p.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r("./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js")))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==T.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new v.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){this._ctx._parent?.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js"))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new g.ParseInfo(e)}))}setProfile(t){return s(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js"))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new m.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new b(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}T.bypassAltsAtnCache=new Map,i([f.NotNull],T.prototype,"_errHandler",void 0),i([f.NotNull],T.prototype,"match",null),i([f.NotNull],T.prototype,"matchWildcard",null),i([f.NotNull],T.prototype,"getParseListeners",null),i([o(0,f.NotNull)],T.prototype,"addParseListener",null),i([f.NotNull],T.prototype,"getATNWithBypassAlts",null),i([f.NotNull,o(0,f.NotNull)],T.prototype,"errorHandler",null),i([f.Override],T.prototype,"inputStream",null),i([f.NotNull],T.prototype,"currentToken",null),i([o(0,f.NotNull)],T.prototype,"enterRule",null),i([f.Override,o(0,f.Nullable)],T.prototype,"precpred",null),i([f.Override],T.prototype,"getErrorListenerDispatch",null),i([f.NotNull],T.prototype,"getExpectedTokens",null),i([f.NotNull],T.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],T.prototype,"parseInfo",null),e.Parser=T},"./node_modules/antlr4ts/ParserErrorListener.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/ParserInterpreter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;let o=r("./node_modules/antlr4ts/atn/ATNState.js"),s=r("./node_modules/antlr4ts/atn/ATNStateType.js"),a=r("./node_modules/antlr4ts/misc/BitSet.js"),l=r("./node_modules/antlr4ts/FailedPredicateException.js"),u=r("./node_modules/antlr4ts/InputMismatchException.js"),c=r("./node_modules/antlr4ts/InterpreterRuleContext.js"),h=r("./node_modules/antlr4ts/atn/LoopEndState.js"),d=r("./node_modules/antlr4ts/Decorators.js"),p=r("./node_modules/antlr4ts/Decorators.js"),f=r("./node_modules/antlr4ts/Parser.js"),g=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),m=r("./node_modules/antlr4ts/RecognitionException.js"),y=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),_=r("./node_modules/antlr4ts/Token.js"),v=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new g.ParserATNSimulator(this._atn,this)}else{r=r,n=n,i=i,this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new g.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof m.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),_.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=_.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,_.Token.INVALID_TYPE,e.text,_.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([d.NotNull],v.prototype,"_vocabulary",void 0),n([p.Override],v.prototype,"reset",null),n([p.Override],v.prototype,"atn",null),n([p.Override],v.prototype,"vocabulary",null),n([p.Override],v.prototype,"ruleNames",null),n([p.Override],v.prototype,"grammarFileName",null),n([p.Override],v.prototype,"enterRecursionRule",null),v=n([i(1,d.NotNull)],v),e.ParserInterpreter=v},"./node_modules/antlr4ts/ParserRuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;let i=r("./node_modules/antlr4ts/tree/ErrorNode.js"),o=r("./node_modules/antlr4ts/misc/Interval.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/RuleContext.js"),l=r("./node_modules/antlr4ts/tree/TerminalNode.js");class u extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){let e=t;return e.setParent(this),this.addAnyChild(e)}{let e=t,r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;let o=r("./node_modules/antlr4ts/Decorators.js");class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},"./node_modules/antlr4ts/ProxyParserErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;let i=r("./node_modules/antlr4ts/ProxyErrorListener.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},"./node_modules/antlr4ts/RecognitionException.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},"./node_modules/antlr4ts/Recognizer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;let o=r("./node_modules/antlr4ts/ConsoleErrorListener.js"),s=r("./node_modules/antlr4ts/ProxyErrorListener.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/Token.js"),u=r("./node_modules/antlr4ts/misc/Utils.js");class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){return this.getTokenTypeMap().get(t)??l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},"./node_modules/antlr4ts/RuleContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;let i=r("./node_modules/antlr4ts/atn/ATN.js"),o=r("./node_modules/antlr4ts/Recognizer.js"),s=r("./node_modules/antlr4ts/tree/RuleNode.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/tree/Trees.js"),c=r("./node_modules/antlr4ts/ParserRuleContext.js");class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=e??-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e=0&&t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;let i=r("./node_modules/antlr4ts/atn/ATN.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js");class a extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},"./node_modules/antlr4ts/RuleDependency.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/RuleVersion.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},"./node_modules/antlr4ts/Token.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;let n=r("./node_modules/antlr4ts/IntStream.js");var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},"./node_modules/antlr4ts/TokenFactory.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenSource.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenStream.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/TokenStreamRewriter.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;let i=r("./node_modules/antlr4ts/misc/Interval.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js");class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new c(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new u(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),o=new h(this.tokens,t,e,i.length,r);i.push(o)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){return this.lastRewriteTokenIndexes.get(t)??-1}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;en.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndexn.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i'}}n([o.Override],l.prototype,"toString",null),e.RewriteOperation=l;class u extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},"./node_modules/antlr4ts/Vocabulary.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/VocabularyImpl.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/Token.js");class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t=0&&t=0&&t{Object.defineProperty(e,"__esModule",{value:!0})},"./node_modules/antlr4ts/atn/ATN.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/dfa/DFA.js"),a=r("./node_modules/antlr4ts/misc/IntervalSet.js"),l=r("./node_modules/antlr4ts/atn/InvalidState.js"),u=r("./node_modules/antlr4ts/atn/LL1Analyzer.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/PredictionContext.js"),p=r("./node_modules/antlr4ts/Token.js"),f=r("./node_modules/assert/build/assert.js"),g=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(p.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(p.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(p.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(p.Token.EPSILON),r=r._parent}return i.contains(p.Token.EPSILON)&&o.add(p.Token.EOF),o}};n([c.NotNull],g.prototype,"states",void 0),n([c.NotNull],g.prototype,"decisionToState",void 0),n([c.NotNull],g.prototype,"modeNameToStartState",void 0),n([c.NotNull],g.prototype,"modeToStartState",void 0),n([c.NotNull],g.prototype,"decisionToDFA",void 0),n([c.NotNull],g.prototype,"modeToDFA",void 0),n([c.NotNull],g.prototype,"nextTokens",null),n([i(0,c.NotNull)],g.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],g.prototype,"defineMode",null),n([i(0,c.NotNull)],g.prototype,"defineDecisionState",null),n([c.NotNull],g.prototype,"getExpectedTokens",null),g=n([i(0,c.NotNull)],g),e.ATN=g,(g=e.ATN||(e.ATN={})).INVALID_ALT_NUMBER=0,e.ATN=g},"./node_modules/antlr4ts/atn/ATNConfig.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/atn/DecisionState.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),c=r("./node_modules/antlr4ts/atn/PredictionContext.js"),h=r("./node_modules/antlr4ts/atn/SemanticContext.js"),d=r("./node_modules/assert/build/assert.js"),p=2147483648,f=class t{constructor(t,e,r){"number"==typeof e?(d((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new y(o,i,e,r,n,!1):new g(i,e,r,n):null!=o?new m(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){d(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new y(o,n,e,this,r,s):new g(n,e,this,r):null!=o||s?new m(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNConfig.js"),u=r("./node_modules/antlr4ts/misc/BitSet.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/PredictionContext.js"),p=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),f=r("./node_modules/antlr4ts/atn/SemanticContext.js"),g=r("./node_modules/assert/build/assert.js"),m=r("./node_modules/antlr4ts/misc/Utils.js");class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function _(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class v{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=_(),this.unmerged=[]):(this.mergedConfigs=_(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,(e||!t.isReadOnly)&&(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=_(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");g(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new v(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");g(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=p.PredictionContextCache.UNCACHED);let r,n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=d.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;it.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],v.prototype,"getRepresentedAlternatives",null),n([c.Override],v.prototype,"size",null),n([c.Override],v.prototype,"isEmpty",null),n([c.Override],v.prototype,"contains",null),n([c.Override],v.prototype,Symbol.iterator,null),n([c.Override],v.prototype,"toArray",null),n([c.Override],v.prototype,"containsAll",null),n([c.Override],v.prototype,"clear",null),n([c.Override],v.prototype,"equals",null),n([c.Override],v.prototype,"hashCode",null),e.ATNConfigSet=v},"./node_modules/antlr4ts/atn/ATNDeserializationOptions.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},"./node_modules/antlr4ts/atn/ATNDeserializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;let o=r("./node_modules/antlr4ts/atn/ActionTransition.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),u=r("./node_modules/antlr4ts/atn/ATNStateType.js"),c=r("./node_modules/antlr4ts/atn/AtomTransition.js"),h=r("./node_modules/antlr4ts/atn/BasicBlockStartState.js"),d=r("./node_modules/antlr4ts/atn/BasicState.js"),p=r("./node_modules/antlr4ts/misc/BitSet.js"),f=r("./node_modules/antlr4ts/atn/BlockEndState.js"),g=r("./node_modules/antlr4ts/atn/BlockStartState.js"),m=r("./node_modules/antlr4ts/atn/DecisionState.js"),y=r("./node_modules/antlr4ts/dfa/DFA.js"),_=r("./node_modules/antlr4ts/atn/EpsilonTransition.js"),v=r("./node_modules/antlr4ts/misc/IntervalSet.js"),x=r("./node_modules/antlr4ts/atn/InvalidState.js"),b=r("./node_modules/antlr4ts/atn/LexerChannelAction.js"),T=r("./node_modules/antlr4ts/atn/LexerCustomAction.js"),E=r("./node_modules/antlr4ts/atn/LexerModeAction.js"),O=r("./node_modules/antlr4ts/atn/LexerMoreAction.js"),S=r("./node_modules/antlr4ts/atn/LexerPopModeAction.js"),N=r("./node_modules/antlr4ts/atn/LexerPushModeAction.js"),A=r("./node_modules/antlr4ts/atn/LexerSkipAction.js"),w=r("./node_modules/antlr4ts/atn/LexerTypeAction.js"),R=r("./node_modules/antlr4ts/atn/LoopEndState.js"),C=r("./node_modules/antlr4ts/Decorators.js"),L=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),I=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),k=r("./node_modules/antlr4ts/atn/PlusBlockStartState.js"),D=r("./node_modules/antlr4ts/atn/PlusLoopbackState.js"),P=r("./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js"),M=r("./node_modules/antlr4ts/atn/PredicateTransition.js"),j=r("./node_modules/antlr4ts/atn/RangeTransition.js"),K=r("./node_modules/antlr4ts/atn/RuleStartState.js"),U=r("./node_modules/antlr4ts/atn/RuleStopState.js"),F=r("./node_modules/antlr4ts/atn/RuleTransition.js"),$=r("./node_modules/antlr4ts/atn/SetTransition.js"),H=r("./node_modules/antlr4ts/atn/StarBlockStartState.js"),B=r("./node_modules/antlr4ts/atn/StarLoopbackState.js"),q=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),G=r("./node_modules/antlr4ts/Token.js"),z=r("./node_modules/antlr4ts/atn/TokensStartState.js"),V=r("./node_modules/antlr4ts/misc/UUID.js"),Y=r("./node_modules/antlr4ts/atn/WildcardTransition.js");var W,X;(X=W||(W={}))[X.UNICODE_BMP=0]="UNICODE_BMP",X[X.UNICODE_SMP=1]="UNICODE_SMP";class Q{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=Q.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&Q.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>Q.toInt(t[e]),size:1}:{readUnicode:(t,e)=>Q.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;et.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${Q.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=Q.isFeatureSupported(Q.ADDED_LEXER_ACTIONS,n),l=Q.toInt(t[e++]),p=Q.toInt(t[e++]),m=new a.ATN(l,p),v=[],b=[],E=Q.toInt(t[e++]);for(let r=0;rt.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),P=[];for(let t of m.states){let e=t.ruleIndex>=0&&m.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r0;){let r=m.ruleToStartState[t].removeTransition(m.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}m.ruleToStartState[t].addTransition(new _.EpsilonTransition(e)),i.addTransition(new _.EpsilonTransition(r));let o=new d.BasicState;m.addState(o),o.addTransition(new c.AtomTransition(i,m.ruleToTokenType[t])),e.addTransition(new _.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=Q.inlineSetRules(m),t+=Q.combineChainedEpsilons(m);let e=0===m.grammarType;if(t+=Q.optimizeSets(m,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(m)}return Q.identifyTailCalls(m),m}deserializeSets(t,e,r,n){let i=Q.toInt(t[e++]);for(let o=0;o=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new v.IntervalSet;for(let t=0;t0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r>>0}static toUUID(t,e){let r=Q.toInt32(t,e),n=Q.toInt32(t,e+2),i=Q.toInt32(t,e+4),o=Q.toInt32(t,e+6);return new V.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,a,l){let u=t.states[n];switch(e){case 1:return new _.EpsilonTransition(u);case 2:return 0!==a?new j.RangeTransition(u,G.Token.EOF,s):new j.RangeTransition(u,i,s);case 3:return new F.RuleTransition(t.states[i],s,a,u);case 4:return new M.PredicateTransition(u,i,s,0!==a);case 10:return new P.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,G.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new $.SetTransition(u,l[i]);case 8:return new L.NotSetTransition(u,l[i]);case 9:return new Y.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new x.InvalidState;case u.ATNStateType.BASIC:r=new d.BasicState;break;case u.ATNStateType.RULE_START:r=new K.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new H.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new z.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new B.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new q.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new D.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new b.LexerChannelAction(e);case 1:return new T.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return O.LexerMoreAction.INSTANCE;case 4:return S.LexerPopModeAction.INSTANCE;case 5:return new N.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new w.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}Q.BASE_SERIALIZED_UUID=V.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),Q.ADDED_LEXER_ACTIONS=V.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),Q.ADDED_UNICODE_SMP=V.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),Q.SUPPORTED_UUIDS=[Q.BASE_SERIALIZED_UUID,Q.ADDED_LEXER_ACTIONS,Q.ADDED_UNICODE_SMP],Q.SERIALIZED_UUID=Q.ADDED_UNICODE_SMP,n([C.NotNull],Q.prototype,"deserializationOptions",void 0),n([i(0,C.NotNull)],Q.prototype,"deserialize",null),n([i(0,C.NotNull)],Q.prototype,"markPrecedenceDecisions",null),n([C.NotNull,i(0,C.NotNull)],Q.prototype,"edgeFactory",null),e.ATNDeserializer=Q},"./node_modules/antlr4ts/atn/ATNSimulator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;let o=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),s=r("./node_modules/antlr4ts/dfa/DFAState.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/atn/PredictionContext.js"),u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},"./node_modules/antlr4ts/atn/ATNState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,(o=e.ATNState||(e.ATNState={})).INVALID_STATE_NUMBER=-1},"./node_modules/antlr4ts/atn/ATNStateType.js":(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},"./node_modules/antlr4ts/atn/AbstractPredicateTransition.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;let n=r("./node_modules/antlr4ts/atn/Transition.js");class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},"./node_modules/antlr4ts/atn/ActionTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.ActionTransition=a},"./node_modules/antlr4ts/atn/AmbiguityInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),e.AmbiguityInfo=a},"./node_modules/antlr4ts/atn/AtomTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/Transition.js"),l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.AtomTransition=l},"./node_modules/antlr4ts/atn/BasicBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},"./node_modules/antlr4ts/atn/BasicState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),e.BasicState=a},"./node_modules/antlr4ts/atn/BlockEndState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),e.BlockEndState=a},"./node_modules/antlr4ts/atn/BlockStartState.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;let n=r("./node_modules/antlr4ts/atn/DecisionState.js");class i extends n.DecisionState{}e.BlockStartState=i},"./node_modules/antlr4ts/atn/ConflictInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/Utils.js");class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},"./node_modules/antlr4ts/atn/ContextSensitivityInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ContextSensitivityInfo=a},"./node_modules/antlr4ts/atn/DecisionEventInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},"./node_modules/antlr4ts/atn/DecisionInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},"./node_modules/antlr4ts/atn/DecisionState.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;let n=r("./node_modules/antlr4ts/atn/ATNState.js");class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},"./node_modules/antlr4ts/atn/EpsilonTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.EpsilonTransition=a},"./node_modules/antlr4ts/atn/ErrorInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ErrorInfo=a},"./node_modules/antlr4ts/atn/InvalidState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BasicState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),e.InvalidState=a},"./node_modules/antlr4ts/atn/LL1Analyzer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/atn/ATNConfig.js"),l=r("./node_modules/antlr4ts/misc/BitSet.js"),u=r("./node_modules/antlr4ts/misc/IntervalSet.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),d=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),p=r("./node_modules/antlr4ts/atn/PredictionContext.js"),f=r("./node_modules/antlr4ts/atn/RuleStopState.js"),g=r("./node_modules/antlr4ts/atn/RuleTransition.js"),m=r("./node_modules/antlr4ts/Token.js"),y=r("./node_modules/antlr4ts/atn/WildcardTransition.js"),_=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;let o=r("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),s=r("./node_modules/antlr4ts/atn/ATN.js"),a=r("./node_modules/antlr4ts/atn/ATNConfig.js"),l=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),u=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),c=r("./node_modules/antlr4ts/dfa/DFAState.js"),h=r("./node_modules/antlr4ts/misc/Interval.js"),d=r("./node_modules/antlr4ts/IntStream.js"),p=r("./node_modules/antlr4ts/Lexer.js"),f=r("./node_modules/antlr4ts/atn/LexerActionExecutor.js"),g=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),m=r("./node_modules/antlr4ts/Decorators.js"),y=r("./node_modules/antlr4ts/atn/OrderedATNConfigSet.js"),_=r("./node_modules/antlr4ts/atn/PredictionContext.js"),v=r("./node_modules/antlr4ts/atn/RuleStopState.js"),x=r("./node_modules/antlr4ts/Token.js"),b=r("./node_modules/assert/build/assert.js"),T=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=p.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let a=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR||(n!==d.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===d.IntStream.EOF)))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===d.IntStream.EOF&&e.index===this.startIndex)return x.Token.EOF;throw new g.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t "+n+" upon "+String.fromCharCode(r)),e?.setTarget(r,n)}addDFAState(t){b(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof v.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){10===t.LA(1)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};var E;n([m.NotNull],T.prototype,"prevAccept",void 0),n([i(0,m.NotNull)],T.prototype,"copyState",null),n([i(0,m.NotNull)],T.prototype,"match",null),n([m.Override],T.prototype,"reset",null),n([i(0,m.NotNull)],T.prototype,"matchATN",null),n([i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"execATN",null),n([i(0,m.NotNull)],T.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeTargetState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"getReachableConfigSet",null),n([i(0,m.NotNull)],T.prototype,"accept",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],T.prototype,"computeStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull),i(3,m.NotNull)],T.prototype,"getEpsilonTarget",null),n([i(0,m.NotNull)],T.prototype,"evaluatePredicate",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],T.prototype,"captureSimState",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"addDFAState",null),n([m.NotNull],T.prototype,"getDFA",null),n([m.NotNull,i(0,m.NotNull)],T.prototype,"getText",null),n([i(0,m.NotNull)],T.prototype,"consume",null),n([m.NotNull],T.prototype,"getTokenName",null),T=n([i(0,m.NotNull)],T),e.LexerATNSimulator=T,(E=T=e.LexerATNSimulator||(e.LexerATNSimulator={})).debug=!1,E.dfa_debug=!1,E.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}},e.LexerATNSimulator=T},"./node_modules/antlr4ts/atn/LexerActionExecutor.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;let o=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),s=r("./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerChannelAction=a},"./node_modules/antlr4ts/atn/LexerCustomAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),e.LexerCustomAction=a},"./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),e.LexerIndexedCustomAction=a},"./node_modules/antlr4ts/atn/LexerModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerModeAction=a},"./node_modules/antlr4ts/atn/LexerMoreAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerMoreAction=a,(l=a=e.LexerMoreAction||(e.LexerMoreAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerPopModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,(l=a=e.LexerPopModeAction||(e.LexerPopModeAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerPushModeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},"./node_modules/antlr4ts/atn/LexerSkipAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}var l;n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerSkipAction=a,(l=a=e.LexerSkipAction||(e.LexerSkipAction={})).INSTANCE=new l},"./node_modules/antlr4ts/atn/LexerTypeAction.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;let o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerTypeAction=a},"./node_modules/antlr4ts/atn/LookaheadEventInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),e.LookaheadEventInfo=a},"./node_modules/antlr4ts/atn/LoopEndState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),e.LoopEndState=a},"./node_modules/antlr4ts/atn/NotSetTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/SetTransition.js"),a=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),e.NotSetTransition=a},"./node_modules/antlr4ts/atn/OrderedATNConfigSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;let i=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},"./node_modules/antlr4ts/atn/ParseInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;let o=r("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),s=r("./node_modules/antlr4ts/atn/ActionTransition.js"),a=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),l=r("./node_modules/antlr4ts/misc/Arrays.js"),u=r("./node_modules/antlr4ts/atn/ATN.js"),c=r("./node_modules/antlr4ts/atn/ATNConfig.js"),h=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),d=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),p=r("./node_modules/antlr4ts/atn/ATNStateType.js"),f=r("./node_modules/antlr4ts/atn/AtomTransition.js"),g=r("./node_modules/antlr4ts/misc/BitSet.js"),m=r("./node_modules/antlr4ts/atn/ConflictInfo.js"),y=r("./node_modules/antlr4ts/atn/DecisionState.js"),_=r("./node_modules/antlr4ts/dfa/DFAState.js"),v=r("./node_modules/antlr4ts/misc/IntegerList.js"),x=r("./node_modules/antlr4ts/misc/Interval.js"),b=r("./node_modules/antlr4ts/IntStream.js"),T=r("./node_modules/antlr4ts/Decorators.js"),E=r("./node_modules/antlr4ts/atn/NotSetTransition.js"),O=r("./node_modules/antlr4ts/NoViableAltException.js"),S=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),N=r("./node_modules/antlr4ts/ParserRuleContext.js"),A=r("./node_modules/antlr4ts/atn/PredictionContext.js"),w=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),R=r("./node_modules/antlr4ts/atn/PredictionMode.js"),C=r("./node_modules/antlr4ts/atn/RuleStopState.js"),L=r("./node_modules/antlr4ts/atn/RuleTransition.js"),I=r("./node_modules/antlr4ts/atn/SemanticContext.js"),k=r("./node_modules/antlr4ts/atn/SetTransition.js"),D=r("./node_modules/antlr4ts/atn/SimulatorState.js"),P=r("./node_modules/antlr4ts/Token.js"),M=r("./node_modules/antlr4ts/VocabularyImpl.js"),j=r("./node_modules/assert/build/assert.js"),K=-2147483648,U=class t extends d.ATNSimulator{constructor(t,e){super(t),this.predictionMode=R.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(j(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(s,e,l,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);return null==e?void 0:new D.SimulatorState(r,e,!1,r)}return null==t.s0?void 0:new D.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(j(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?j(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new D.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=s.getContextTarget(this.getReturnState(l))),null==t){let t=new D.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(e,r,n,t)}j(null!=l),l=l.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}j(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=x.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new D.SimulatorState(o,s,i.useContext,l);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===d.ATNSimulator.ERROR){let t=new D.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,t)}s=u,!this.isAcceptState(s,i.useContext)&&a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){j(!i.useContext);let t,a=s.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new D.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new w.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),d.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(j(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),j(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let d=null!=l&&this.userWantsCtxSensitive;if(d&&(d=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,o,d||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(d){j(!s),j(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new g.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;j(null!=o),o=o.parent,s=t}if(j(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new D.SimulatorState(e.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,o,r,i,n);l=e[0],o=e[1]}return l!==d.ATNSimulator.ERROR?(j(!i||!l.configs.dipsIntoOuterContext),new D.SimulatorState(e.outerContext,l,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let a,l,c=r.configs.toArray(),p=new h.ATNConfigSet;do{let e=!o||null!=n;e||(p.isOutermostConfigSet=!0);let r,d=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof C.RuleStopState){j(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===b.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t0);for(let t of r)p.add(t,s)}if(o&&l){p.clear(),n=n,n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new v.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e0;){let t=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,e,t,l,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,a,l,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof C.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;tK),this.closureImpl(p,r,n,i,o,a,l,u-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let d=e.state;d.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let c=0;cK),s--,t.debug&&console.log("dips into outer ctx: "+m)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(j(m.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(m.outerContextDepth=m.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(m))continue;this.closureImpl(m,r,n,i,g,a,l,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:""}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(P.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new g.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==s)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new g.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=s}else if(o!==e){if(o!==a.nextSetBit(e+1)){i=!1;break}e=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,d=n[0].context;for(let t=1;t"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof k.SetTransition&&(e=(r instanceof E.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new O.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof C.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){j(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,s),j(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){t?.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return j(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new _.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=x.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,a){if(t.debug||t.retry_debug){let t=x.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,a)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(j(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r||(r=t.alt-e.alt,0!==r)?r:0},n([T.NotNull],U.prototype,"predictionMode",void 0),n([T.NotNull],U.prototype,"getPredictionMode",null),n([i(0,T.NotNull)],U.prototype,"setPredictionMode",null),n([T.Override],U.prototype,"reset",null),n([i(0,T.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"getStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execDFA",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execATN",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"computeTargetState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([T.NotNull],U.prototype,"computeStartState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,T.NotNull),i(4,T.Nullable)],U.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable),i(3,T.NotNull),i(6,T.NotNull)],U.prototype,"closureImpl",null),n([T.NotNull],U.prototype,"getRuleName",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getEpsilonTarget",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"actionTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"precedenceTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"predTransition",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable)],U.prototype,"ruleTransition",null),n([i(0,T.NotNull)],U.prototype,"isConflicted",null),n([T.NotNull],U.prototype,"getTokenName",null),n([i(0,T.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"noViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,T.NotNull)],U.prototype,"configWithAltAtStopState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(4,T.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,T.Nullable),i(2,T.Nullable)],U.prototype,"setDFAEdge",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAContextState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"createDFAState",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,T.NotNull),i(5,T.NotNull),i(6,T.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,T.NotNull)],U),e.ParserATNSimulator=U},"./node_modules/antlr4ts/atn/PlusBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},"./node_modules/antlr4ts/atn/PlusLoopbackState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/DecisionState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},"./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/SemanticContext.js"),l=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PrecedencePredicateTransition=l},"./node_modules/antlr4ts/atn/PredicateEvalInfo.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;let o=r("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,a){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),e.PredicateEvalInfo=a},"./node_modules/antlr4ts/atn/PredicateTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;let o=r("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/SemanticContext.js"),l=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PredicateTransition=l},"./node_modules/antlr4ts/atn/PredictionContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),s=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),a=r("./node_modules/antlr4ts/misc/Arrays.js"),l=r("./node_modules/antlr4ts/misc/MurmurHash.js"),u=r("./node_modules/antlr4ts/Decorators.js"),c=r("./node_modules/antlr4ts/atn/PredictionContextCache.js"),h=r("./node_modules/assert/build/assert.js");class d{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?d.EMPTY_FULL:d.EMPTY_LOCAL;let n;n=e._parent?d.fromRuleContext(t,e._parent,r):r?d.EMPTY_FULL:d.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return d.isEmptyLocal(t)?t:d.addEmptyContext(e);if(e.isEmpty)return d.isEmptyLocal(e)?e:d.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,p=!0,m=!0;for(;l0){let t=1;for(;1<>>0>o&(1<>>0)-1,s=s&&e>=a.size-1,e>=a.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[l];u+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==d.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],d.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],d,"getCachedContext",null),e.PredictionContext=d;class p extends d{constructor(t){super(d.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],p.prototype,"addEmptyContext",null),n([u.Override],p.prototype,"removeEmptyContext",null),n([u.Override],p.prototype,"getParent",null),n([u.Override],p.prototype,"getReturnState",null),n([u.Override],p.prototype,"findReturnState",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"appendSingleContext",null),n([u.Override],p.prototype,"appendContext",null),n([u.Override],p.prototype,"isEmpty",null),n([u.Override],p.prototype,"hasEmpty",null),n([u.Override],p.prototype,"equals",null),n([u.Override],p.prototype,"toStrings",null);let f=class t extends d{constructor(t,e,r){super(r||d.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==d.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===d.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(d.EMPTY_FULL),r.push(d.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new g(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new d.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(d.isEmptyLocal(r)){if(e.hasEmpty)return d.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let t=0;t1),i=new t(s,a)),e.hasEmpty&&(i=d.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t)||this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),a=r("./node_modules/antlr4ts/atn/PredictionContext.js"),l=r("./node_modules/assert/build/assert.js");class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=u,u.UNCACHED=new u(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},"./node_modules/antlr4ts/atn/PredictionMode.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;let i=r("./node_modules/antlr4ts/misc/Array2DHashMap.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/RuleStopState.js");var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([s.Override],e.prototype,"hashCode",null),n([s.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},"./node_modules/antlr4ts/atn/ProfilingATNSimulator.js":function(t,e,r){var n=r("./node_modules/process/browser.js"),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;let s=r("./node_modules/antlr4ts/atn/AmbiguityInfo.js"),a=r("./node_modules/antlr4ts/atn/ATN.js"),l=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),u=r("./node_modules/antlr4ts/atn/ContextSensitivityInfo.js"),c=r("./node_modules/antlr4ts/atn/DecisionInfo.js"),h=r("./node_modules/antlr4ts/atn/ErrorInfo.js"),d=r("./node_modules/antlr4ts/Decorators.js"),p=r("./node_modules/antlr4ts/atn/LookaheadEventInfo.js"),f=r("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),g=r("./node_modules/antlr4ts/atn/PredicateEvalInfo.js"),m=r("./node_modules/antlr4ts/atn/SemanticContext.js"),y=r("./node_modules/antlr4ts/atn/SimulatorState.js");class _ extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;tthis.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=u,this.decisions[e].SLL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new p.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof m.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new g.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,o,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=o?o.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new s.AmbiguityInfo(this.currentDecision,this.currentState,o,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,o,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([d.Override,o(0,d.NotNull)],_.prototype,"adaptivePredict",null),i([d.Override],_.prototype,"getStartState",null),i([d.Override],_.prototype,"computeStartState",null),i([d.Override],_.prototype,"computeReachSet",null),i([d.Override],_.prototype,"getExistingTargetState",null),i([d.Override],_.prototype,"computeTargetState",null),i([d.Override],_.prototype,"evalSemanticContextImpl",null),i([d.Override],_.prototype,"reportContextSensitivity",null),i([d.Override],_.prototype,"reportAttemptingFullContext",null),i([d.Override,o(0,d.NotNull),o(5,d.NotNull),o(6,d.NotNull)],_.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=_},"./node_modules/antlr4ts/atn/RangeTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/atn/Transition.js"),l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.RangeTransition=l},"./node_modules/antlr4ts/atn/RuleStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),e.RuleStartState=a},"./node_modules/antlr4ts/atn/RuleStopState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),e.RuleStopState=a},"./node_modules/antlr4ts/atn/RuleTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),e.RuleTransition=a},"./node_modules/antlr4ts/atn/SemanticContext.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),c=r("./node_modules/antlr4ts/misc/Utils.js");class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class d extends t{}t.Operator=d;let p=class r extends d{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;let o=r("./node_modules/antlr4ts/misc/IntervalSet.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/Token.js"),l=r("./node_modules/antlr4ts/atn/Transition.js"),u=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},"./node_modules/antlr4ts/atn/SimulatorState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js"),a=class{constructor(t,e,r,n){this.outerContext=t??s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),e.SimulatorState=a},"./node_modules/antlr4ts/atn/StarBlockStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/BlockStartState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},"./node_modules/antlr4ts/atn/StarLoopEntryState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/misc/BitSet.js"),s=r("./node_modules/antlr4ts/atn/DecisionState.js"),a=r("./node_modules/antlr4ts/Decorators.js");class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},"./node_modules/antlr4ts/atn/StarLoopbackState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNState.js"),o=r("./node_modules/antlr4ts/atn/ATNStateType.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},"./node_modules/antlr4ts/atn/TokensStartState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;let i=r("./node_modules/antlr4ts/atn/ATNStateType.js"),o=r("./node_modules/antlr4ts/atn/DecisionState.js"),s=r("./node_modules/antlr4ts/Decorators.js");class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),e.TokensStartState=a},"./node_modules/antlr4ts/atn/Transition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},"./node_modules/antlr4ts/atn/WildcardTransition.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/Transition.js"),a=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.WildcardTransition=a},"./node_modules/antlr4ts/dfa/AcceptStateInfo.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},"./node_modules/antlr4ts/dfa/DFA.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;let o=r("./node_modules/antlr4ts/misc/Array2DHashSet.js"),s=r("./node_modules/antlr4ts/atn/ATNConfigSet.js"),a=r("./node_modules/antlr4ts/dfa/DFASerializer.js"),l=r("./node_modules/antlr4ts/dfa/DFAState.js"),u=r("./node_modules/antlr4ts/dfa/LexerDFASerializer.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),d=r("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),p=r("./node_modules/antlr4ts/VocabularyImpl.js"),f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof d.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=p.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},"./node_modules/antlr4ts/dfa/DFASerializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;let i=r("./node_modules/antlr4ts/atn/ATNSimulator.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/atn/PredictionContext.js"),a=r("./node_modules/antlr4ts/Recognizer.js"),l=r("./node_modules/antlr4ts/VocabularyImpl.js");class u{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},"./node_modules/antlr4ts/dfa/DFAState.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;let o=r("./node_modules/antlr4ts/atn/ATN.js"),s=r("./node_modules/antlr4ts/misc/BitSet.js"),a=r("./node_modules/antlr4ts/misc/MurmurHash.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/atn/PredictionContext.js"),c=r("./node_modules/assert/build/assert.js");class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),!this.isContextSensitive&&(this.contextSymbols||(this.contextSymbols=new s.BitSet))}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},"./node_modules/antlr4ts/dfa/LexerDFASerializer.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;let o=r("./node_modules/antlr4ts/dfa/DFASerializer.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=r("./node_modules/antlr4ts/VocabularyImpl.js"),l=class extends o.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),e.LexerDFASerializer=l},"./node_modules/antlr4ts/index.js":function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"!==r&&!Object.prototype.hasOwnProperty.call(e,r)&&n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./node_modules/antlr4ts/ANTLRErrorListener.js"),e),i(r("./node_modules/antlr4ts/ANTLRErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/ANTLRInputStream.js"),e),i(r("./node_modules/antlr4ts/BailErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/BufferedTokenStream.js"),e),i(r("./node_modules/antlr4ts/CharStream.js"),e),i(r("./node_modules/antlr4ts/CharStreams.js"),e),i(r("./node_modules/antlr4ts/CodePointBuffer.js"),e),i(r("./node_modules/antlr4ts/CodePointCharStream.js"),e),i(r("./node_modules/antlr4ts/CommonToken.js"),e),i(r("./node_modules/antlr4ts/CommonTokenFactory.js"),e),i(r("./node_modules/antlr4ts/CommonTokenStream.js"),e),i(r("./node_modules/antlr4ts/ConsoleErrorListener.js"),e),i(r("./node_modules/antlr4ts/DefaultErrorStrategy.js"),e),i(r("./node_modules/antlr4ts/Dependents.js"),e),i(r("./node_modules/antlr4ts/DiagnosticErrorListener.js"),e),i(r("./node_modules/antlr4ts/FailedPredicateException.js"),e),i(r("./node_modules/antlr4ts/InputMismatchException.js"),e),i(r("./node_modules/antlr4ts/InterpreterRuleContext.js"),e),i(r("./node_modules/antlr4ts/IntStream.js"),e),i(r("./node_modules/antlr4ts/Lexer.js"),e),i(r("./node_modules/antlr4ts/LexerInterpreter.js"),e),i(r("./node_modules/antlr4ts/LexerNoViableAltException.js"),e),i(r("./node_modules/antlr4ts/ListTokenSource.js"),e),i(r("./node_modules/antlr4ts/NoViableAltException.js"),e),i(r("./node_modules/antlr4ts/Parser.js"),e),i(r("./node_modules/antlr4ts/ParserErrorListener.js"),e),i(r("./node_modules/antlr4ts/ParserInterpreter.js"),e),i(r("./node_modules/antlr4ts/ParserRuleContext.js"),e),i(r("./node_modules/antlr4ts/ProxyErrorListener.js"),e),i(r("./node_modules/antlr4ts/ProxyParserErrorListener.js"),e),i(r("./node_modules/antlr4ts/RecognitionException.js"),e),i(r("./node_modules/antlr4ts/Recognizer.js"),e),i(r("./node_modules/antlr4ts/RuleContext.js"),e),i(r("./node_modules/antlr4ts/RuleContextWithAltNum.js"),e),i(r("./node_modules/antlr4ts/RuleDependency.js"),e),i(r("./node_modules/antlr4ts/RuleVersion.js"),e),i(r("./node_modules/antlr4ts/Token.js"),e),i(r("./node_modules/antlr4ts/TokenFactory.js"),e),i(r("./node_modules/antlr4ts/TokenSource.js"),e),i(r("./node_modules/antlr4ts/TokenStream.js"),e),i(r("./node_modules/antlr4ts/TokenStreamRewriter.js"),e),i(r("./node_modules/antlr4ts/Vocabulary.js"),e),i(r("./node_modules/antlr4ts/VocabularyImpl.js"),e),i(r("./node_modules/antlr4ts/WritableToken.js"),e)},"./node_modules/antlr4ts/misc/Array2DHashMap.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;let n=r("./node_modules/antlr4ts/misc/Array2DHashSet.js");class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class o{constructor(t){this.backingStore=t instanceof o?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof o&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=o},"./node_modules/antlr4ts/misc/Array2DHashSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;let o=r("./node_modules/assert/build/assert.js"),s=r("./node_modules/antlr4ts/misc/DefaultEqualityComparator.js"),a=r("./node_modules/antlr4ts/Decorators.js"),l=r("./node_modules/antlr4ts/misc/MurmurHash.js");class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;tthis.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&t.size===this.size&&this.containsAll(t)}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){let t=new Array(this.size),e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},"./node_modules/antlr4ts/misc/ArrayEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class a{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e||t.length!==e.length)return!1;for(let r=0;r{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(rn))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},"./node_modules/antlr4ts/misc/BitSet.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;let n=r("./node_modules/util/util.js"),i=r("./node_modules/antlr4ts/misc/MurmurHash.js"),o=new Uint16Array(0);function s(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<>>0:65535>>>15-e^65535>>>16-t}let h=new Uint8Array(65536);for(let t=0;t<16;t++){let e=1<>>0,r=0;for(;rr)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;nr)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n=r)return-1}return a(n)+l(e[n]&i)}or(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");let e=this.data,r=e.length,n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){let e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i),a=-1;for(let t=0;tr.length?e:r;for(let t=n;t{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},"./node_modules/antlr4ts/misc/DefaultEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/misc/MurmurHash.js"),s=r("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},"./node_modules/antlr4ts/misc/IntegerList.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;let i=r("./node_modules/antlr4ts/misc/Arrays.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size||t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l)||this._size!==t._size)return!1;for(let e=0;ethis._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;ea)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e=65536?2:1;return t}}n([o.NotNull],l.prototype,"_data",void 0),n([o.Override],l.prototype,"equals",null),n([o.Override],l.prototype,"hashCode",null),n([o.Override],l.prototype,"toString",null),e.IntegerList=l},"./node_modules/antlr4ts/misc/IntegerStack.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;let n=r("./node_modules/antlr4ts/misc/IntegerList.js");class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},"./node_modules/antlr4ts/misc/Interval.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},"./node_modules/antlr4ts/misc/IntervalSet.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;let o=r("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),s=r("./node_modules/antlr4ts/misc/IntegerList.js"),a=r("./node_modules/antlr4ts/misc/Interval.js"),l=r("./node_modules/antlr4ts/Lexer.js"),u=r("./node_modules/antlr4ts/misc/MurmurHash.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/Token.js");class d{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===d._COMPLETE_CHAR_SET&&(d._COMPLETE_CHAR_SET=d.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),d._COMPLETE_CHAR_SET.setReadonly(!0)),d._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==d._EMPTY_SET&&(d._EMPTY_SET=new d,d._EMPTY_SET.setReadonly(!0)),d._EMPTY_SET}static of(t,e=t){let r=new d;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.bs.b)n++;else if(l.a>s.a&&(t=new a.Interval(s.a,l.a-1)),l.b>1,i=this._intervals[n],o=i.a;if(i.bt))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof d&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"":e===h.Token.EPSILON?"":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;rn&&t{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=r},"./node_modules/antlr4ts/misc/MurmurHash.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let o=e(i),s=0;for(let e of t)o=r(o,e),s++;return o=n(o,s),o}}(e.MurmurHash||(e.MurmurHash={}))},"./node_modules/antlr4ts/misc/ObjectEqualityComparator.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},"./node_modules/antlr4ts/misc/ParseCancellationException.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},"./node_modules/antlr4ts/misc/UUID.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;let n=r("./node_modules/antlr4ts/misc/MurmurHash.js");class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},"./node_modules/antlr4ts/misc/Utils.js":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;let o=r("./node_modules/antlr4ts/Decorators.js");class s{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/TerminalNode.js");class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},"./node_modules/antlr4ts/tree/ParseTreeWalker.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;let n=r("./node_modules/antlr4ts/tree/ErrorNode.js"),i=r("./node_modules/antlr4ts/tree/TerminalNode.js"),o=r("./node_modules/antlr4ts/tree/RuleNode.js");class s{walk(t,e){let r=[],s=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),s.push(l),l=0,a=a.getChild(0);else do{if(a instanceof o.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},"./node_modules/antlr4ts/tree/TerminalNode.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;let i=r("./node_modules/antlr4ts/misc/Interval.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js");class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),e.TerminalNode=a},"./node_modules/antlr4ts/tree/Trees.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;let o=r("./node_modules/antlr4ts/atn/ATN.js"),s=r("./node_modules/antlr4ts/CommonToken.js"),a=r("./node_modules/antlr4ts/tree/ErrorNode.js"),l=r("./node_modules/antlr4ts/Decorators.js"),u=r("./node_modules/antlr4ts/Parser.js"),c=r("./node_modules/antlr4ts/ParserRuleContext.js"),h=r("./node_modules/antlr4ts/tree/RuleNode.js"),d=r("./node_modules/antlr4ts/tree/TerminalNode.js"),p=r("./node_modules/antlr4ts/Token.js"),f=r("./node_modules/antlr4ts/misc/Utils.js");class g{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof d.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;on)&&g.isAncestorOf(i,e)){let e=new s.CommonToken(p.Token.INVALID_TYPE,"...");t.children[o]=new d.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},"./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},"./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),e.ParseTreePattern=a},"./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;let o=r("./node_modules/antlr4ts/BailErrorStrategy.js"),s=r("./node_modules/antlr4ts/CharStreams.js"),a=r("./node_modules/antlr4ts/CommonTokenStream.js"),l=r("./node_modules/antlr4ts/ListTokenSource.js"),u=r("./node_modules/antlr4ts/misc/MultiMap.js"),c=r("./node_modules/antlr4ts/Decorators.js"),h=r("./node_modules/antlr4ts/misc/ParseCancellationException.js"),d=r("./node_modules/antlr4ts/ParserInterpreter.js"),p=r("./node_modules/antlr4ts/ParserRuleContext.js"),f=r("./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js"),g=r("./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js"),m=r("./node_modules/antlr4ts/RecognitionException.js"),y=r("./node_modules/antlr4ts/tree/RuleNode.js"),_=r("./node_modules/antlr4ts/tree/pattern/RuleTagToken.js"),v=r("./node_modules/antlr4ts/tree/pattern/TagChunk.js"),x=r("./node_modules/antlr4ts/tree/TerminalNode.js"),b=r("./node_modules/antlr4ts/tree/pattern/TextChunk.js"),T=r("./node_modules/antlr4ts/Token.js"),E=r("./node_modules/antlr4ts/tree/pattern/TokenTagToken.js");class O{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r,n=this.tokenize(t),i=new l.ListTokenSource(n),s=new a.CommonTokenStream(i),u=this._parser,c=new d.ParserInterpreter(u.grammarFileName,u.vocabulary,u.ruleNames,u.getATNWithBypassAlts(),s);try{c.errorHandler=new o.BailErrorStrategy,r=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof m.RecognitionException?t:t instanceof Error?new O.CannotInvokeStartRule(t):t}if(s.LA(1)!==T.Token.EOF)throw new O.StartRuleDoesNotConsumeFullPattern;return new g.ParseTreePattern(this,t,e,r)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof x.TerminalNode&&e instanceof x.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof E.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);let i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof p.ParserRuleContext&&e instanceof p.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);let e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+t);if(i.length=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new b.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new b.TextChunk(e))}for(let e=0;e=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new v.TagChunk(l,r)),e+10){let e=o[s-1]+this.stop.length;if(e=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;let o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/Token.js"),a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.RuleTagToken=a},"./node_modules/antlr4ts/tree/pattern/TagChunk.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;let i=r("./node_modules/antlr4ts/tree/pattern/Chunk.js"),o=r("./node_modules/antlr4ts/Decorators.js");class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},"./node_modules/antlr4ts/tree/pattern/TextChunk.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;let o=r("./node_modules/antlr4ts/tree/pattern/Chunk.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TextChunk=a},"./node_modules/antlr4ts/tree/pattern/TokenTagToken.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;let o=r("./node_modules/antlr4ts/CommonToken.js"),s=r("./node_modules/antlr4ts/Decorators.js"),a=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TokenTagToken=a},"./node_modules/antlr4ts/tree/xpath/XPath.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;let n=r("./node_modules/antlr4ts/CharStreams.js"),i=r("./node_modules/antlr4ts/CommonTokenStream.js"),o=r("./node_modules/antlr4ts/LexerNoViableAltException.js"),s=r("./node_modules/antlr4ts/ParserRuleContext.js"),a=r("./node_modules/antlr4ts/Token.js"),l=r("./node_modules/antlr4ts/tree/xpath/XPathLexer.js"),u=r("./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js"),c=r("./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js"),h=r("./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js"),d=r("./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js"),p=r("./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js"),f=r("./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js"),g=r("./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js");class m{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,d=0;t:for(;d0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=m,m.WILDCARD="*",m.NOT="!"},"./node_modules/antlr4ts/tree/xpath/XPathElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},"./node_modules/antlr4ts/tree/xpath/XPathLexer.js":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;let n=r("./node_modules/antlr4ts/atn/ATNDeserializer.js"),i=r("./node_modules/antlr4ts/Lexer.js"),o=r("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),s=r("./node_modules/antlr4ts/VocabularyImpl.js"),a=r("./node_modules/antlr4ts/misc/Utils.js");class l extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},"./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;let i=r("./node_modules/antlr4ts/Decorators.js");class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},"./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class a extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},"./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;let i=r("./node_modules/antlr4ts/ParserRuleContext.js"),o=r("./node_modules/antlr4ts/Decorators.js"),s=r("./node_modules/antlr4ts/tree/Trees.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},"./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class a extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},"./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/TerminalNode.js"),s=r("./node_modules/antlr4ts/tree/Trees.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},"./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},"./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js":function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;let i=r("./node_modules/antlr4ts/Decorators.js"),o=r("./node_modules/antlr4ts/tree/Trees.js"),s=r("./node_modules/antlr4ts/tree/xpath/XPath.js"),a=r("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},"./node_modules/assert/build/assert.js":(t,e,r)=>{var n=r("./node_modules/process/browser.js");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r("./node_modules/assert/build/internal/errors.js").codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,p=r("./node_modules/assert/build/internal/assert/assertion_error.js"),f=r("./node_modules/util/util.js").inspect,g=r("./node_modules/util/util.js").types,m=g.isPromise,y=g.isRegExp,_=r("./node_modules/object.assign/polyfill.js")(),v=r("./node_modules/object-is/polyfill.js")(),x=r("./node_modules/call-bind/callBound.js")("RegExp.prototype.test");function b(){var t=r("./node_modules/assert/build/internal/util/comparisons.js");o=t.isDeepEqual,s=t.isDeepStrictEqual}var T=!1,E=t.exports=A,O={};function S(t){throw t.message instanceof Error?t.message:new p(t)}function N(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var n=r("./node_modules/process/browser.js");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=r("./node_modules/util/util.js").inspect,y=r("./node_modules/assert/build/internal/errors.js").codes.ERR_INVALID_ARG_TYPE;function _(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var v="",x="",b="",T="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function O(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function S(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var N=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(i,t);var r=function(t){var e=d();return function(){var r,n=f(t);if(e){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}(i);function i(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),"object"!==g(t)||null===t)throw new y("options","Object",t);var o=t.message,s=t.operator,a=t.stackStartFn,c=t.actual,h=t.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)e=r.call(this,String(o));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="",x="",T="",b=""):(v="",x="",T="",b="")),"object"===g(c)&&null!==c&&"object"===g(h)&&null!==h&&"stack"in c&&c instanceof Error&&"stack"in h&&h instanceof Error&&(c=O(c),h=O(h)),"deepStrictEqual"===s||"strictEqual"===s)e=r.call(this,function(t,e,r){var i="",o="",s=0,a="",l=!1,u=S(t),c=u.split("\n"),h=S(e).split("\n"),d=0,p="";if("strictEqual"===r&&"object"===g(t)&&"object"===g(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var f=c[0].length+h[0].length;if(f<=10){if(!("object"===g(t)&&null!==t||"object"===g(e)&&null!==e||0===t&&0===e))return"".concat(E[r],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&f<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",d),"^"),d=0)}}for(var m=c[c.length-1],y=h[h.length-1];m===y&&(d++<2?a="\n ".concat(m).concat(a):i=m,c.pop(),h.pop(),0!==c.length&&0!==h.length);)m=c[c.length-1],y=h[h.length-1];var O=Math.max(c.length,h.length);if(0===O){var N=u.split("\n");if(N.length>30)for(N[26]="".concat(v,"...").concat(T);N.length>27;)N.pop();return"".concat(E.notIdentical,"\n\n").concat(N.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(T).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var A=0,w=E[r]+"\n".concat(x,"+ actual").concat(T," ").concat(b,"- expected").concat(T),R=" ".concat(v,"...").concat(T," Lines skipped");for(d=0;d1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(h[d-2]),A++),o+="\n ".concat(h[d-1]),A++),s=d,i+="\n".concat(b,"-").concat(T," ").concat(h[d]),A++;else if(h.length1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(x,"+").concat(T," ").concat(c[d]),A++;else{var L=h[d],I=c[d],k=I!==L&&(!_(I,",")||I.slice(0,-1)!==L);k&&_(L,",")&&L.slice(0,-1)===I&&(k=!1,I+=","),k?(C>1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[d-2]),A++),o+="\n ".concat(c[d-1]),A++),s=d,o+="\n".concat(x,"+").concat(T," ").concat(I),i+="\n".concat(b,"-").concat(T," ").concat(L),A+=2):(o+=i,i="",(1===C||0===d)&&(o+="\n ".concat(I),A++))}if(A>20&&d30)for(f[26]="".concat(v,"...").concat(T);f.length>27;)f.pop();e=1===f.length?r.call(this,"".concat(p," ").concat(f[0])):r.call(this,"".concat(p,"\n\n").concat(f.join("\n"),"\n"))}else{var m=S(c),N="",A=E[s];"notDeepEqual"===s||"notEqual"===s?(m="".concat(E[s],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(N="".concat(S(h)),m.length>512&&(m="".concat(m.slice(0,509),"...")),N.length>512&&(N="".concat(N.slice(0,509),"...")),"deepEqual"===s||"equal"===s?m="".concat(A,"\n\n").concat(m,"\n\nshould equal\n\n"):N=" ".concat(s," ").concat(N)),e=r.call(this,"".concat(m).concat(N))}return Error.stackTraceLimit=d,e.generatedMessage=!o,Object.defineProperty(u(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=c,e.expected=h,e.operator=s,Error.captureStackTrace&&Error.captureStackTrace(u(e),a),e.stack,e.name="AssertionError",l(e)}return function(t,e,r){e&&function(t,e){for(var r=0;r{function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a,l,u={};function c(t,e,r){r||(r=Error);var n=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(a,r);var n=function(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}(a);function a(r,i,o){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),s=n.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,o)),s.code=t,s}return function(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}(a)}(r);u[t]=n}function h(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s;if(void 0===a&&(a=r("./node_modules/assert/build/assert.js")),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&function(t,e,r){return t.substr(0,e.length)===e}(e,"not ")?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(o," ").concat(h(e,"type"));else{var l=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+".".length>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";s='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(h(e,"type"))}return s+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=r("./node_modules/util/util.js"));var i=l.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=u},"./node_modules/assert/build/internal/util/comparisons.js":(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function k(t){return Object.keys(t).filter(I).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function D(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i{var n=r("./node_modules/possible-typed-array-names/index.js"),i=typeof globalThis>"u"?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/call-bind-apply-helpers/functionApply.js"),o=r("./node_modules/call-bind-apply-helpers/functionCall.js"),s=r("./node_modules/call-bind-apply-helpers/reflectApply.js");t.exports=s||n.call(o,i)},"./node_modules/call-bind-apply-helpers/applyBind.js":(t,e,r)=>{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/call-bind-apply-helpers/functionApply.js"),o=r("./node_modules/call-bind-apply-helpers/actualApply.js");t.exports=function(){return o(n,i,arguments)}},"./node_modules/call-bind-apply-helpers/functionApply.js":t=>{t.exports=Function.prototype.apply},"./node_modules/call-bind-apply-helpers/functionCall.js":t=>{t.exports=Function.prototype.call},"./node_modules/call-bind-apply-helpers/index.js":(t,e,r)=>{var n=r("./node_modules/function-bind/index.js"),i=r("./node_modules/es-errors/type.js"),o=r("./node_modules/call-bind-apply-helpers/functionCall.js"),s=r("./node_modules/call-bind-apply-helpers/actualApply.js");t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(n,o,t)}},"./node_modules/call-bind-apply-helpers/reflectApply.js":t=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},"./node_modules/call-bind/callBound.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/call-bind/index.js"),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},"./node_modules/call-bind/index.js":(t,e,r)=>{var n=r("./node_modules/set-function-length/index.js"),i=r("./node_modules/es-define-property/index.js"),o=r("./node_modules/call-bind-apply-helpers/index.js"),s=r("./node_modules/call-bind-apply-helpers/applyBind.js");t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},"./node_modules/call-bound/index.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/call-bind-apply-helpers/index.js"),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},"./node_modules/define-data-property/index.js":(t,e,r)=>{var n=r("./node_modules/es-define-property/index.js"),i=r("./node_modules/es-errors/syntax.js"),o=r("./node_modules/es-errors/type.js"),s=r("./node_modules/gopd/index.js");t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&h?h.configurable:!u,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},"./node_modules/define-properties/index.js":(t,e,r)=>{var n=r("./node_modules/object-keys/index.js"),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r("./node_modules/define-data-property/index.js"),l=r("./node_modules/has-property-descriptors/index.js")(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if(!function(t){return"function"==typeof t&&"[object Function]"===o.call(t)}(n)||!n())return;l?a(t,e,r,!0):a(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a{var n,i=r("./node_modules/call-bind-apply-helpers/index.js"),o=r("./node_modules/gopd/index.js");try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},"./node_modules/es-define-property/index.js":t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}t.exports=e},"./node_modules/es-errors/eval.js":t=>{t.exports=EvalError},"./node_modules/es-errors/index.js":t=>{t.exports=Error},"./node_modules/es-errors/range.js":t=>{t.exports=RangeError},"./node_modules/es-errors/ref.js":t=>{t.exports=ReferenceError},"./node_modules/es-errors/syntax.js":t=>{t.exports=SyntaxError},"./node_modules/es-errors/type.js":t=>{t.exports=TypeError},"./node_modules/es-errors/uri.js":t=>{t.exports=URIError},"./node_modules/es-object-atoms/index.js":t=>{t.exports=Object},"./node_modules/for-each/index.js":(t,e,r)=>{var n=r("./node_modules/is-callable/index.js"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,r){for(var n=0,i=t.length;n=3&&(i=r),u(t)?s(t,e,i):"string"==typeof t?a(t,e,i):l(t,e,i)}},"./node_modules/function-bind/implementation.js":t=>{var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(t,e){for(var r=[],n=0;n{var n=r("./node_modules/function-bind/implementation.js");t.exports=Function.prototype.bind||n},"./node_modules/get-intrinsic/index.js":(t,e,r)=>{var n,i=r("./node_modules/es-object-atoms/index.js"),o=r("./node_modules/es-errors/index.js"),s=r("./node_modules/es-errors/eval.js"),a=r("./node_modules/es-errors/range.js"),l=r("./node_modules/es-errors/ref.js"),u=r("./node_modules/es-errors/syntax.js"),c=r("./node_modules/es-errors/type.js"),h=r("./node_modules/es-errors/uri.js"),d=r("./node_modules/math-intrinsics/abs.js"),p=r("./node_modules/math-intrinsics/floor.js"),f=r("./node_modules/math-intrinsics/max.js"),g=r("./node_modules/math-intrinsics/min.js"),m=r("./node_modules/math-intrinsics/pow.js"),y=r("./node_modules/math-intrinsics/round.js"),_=r("./node_modules/math-intrinsics/sign.js"),v=Function,x=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch{}},b=r("./node_modules/gopd/index.js"),T=r("./node_modules/es-define-property/index.js"),E=function(){throw new c},O=b?function(){try{return E}catch{try{return b(arguments,"callee").get}catch{return E}}}():E,S=r("./node_modules/has-symbols/index.js")(),N=r("./node_modules/get-proto/index.js"),A=r("./node_modules/get-proto/Object.getPrototypeOf.js"),w=r("./node_modules/get-proto/Reflect.getPrototypeOf.js"),R=r("./node_modules/call-bind-apply-helpers/functionApply.js"),C=r("./node_modules/call-bind-apply-helpers/functionCall.js"),L={},I=typeof Uint8Array>"u"||!N?n:N(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!N?n:N((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!N?n:N((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&N?N(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":O,"%TypedArray%":I,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":R,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":_,"%Reflect.getPrototypeOf%":w};if(N)try{null.error}catch(t){var D=N(N(t));k["%Error.prototype%"]=D}var P=function t(e){var r;if("%AsyncFunction%"===e)r=x("async function () {}");else if("%GeneratorFunction%"===e)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=x("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&N&&(r=N(i.prototype))}return k[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r("./node_modules/function-bind/index.js"),K=r("./node_modules/hasown/index.js"),U=j.call(C,Array.prototype.concat),F=j.call(R,Array.prototype.splice),$=j.call(C,String.prototype.replace),H=j.call(C,String.prototype.slice),B=j.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return $(t,q,(function(t,e,r,i){n[n.length]=r?$(i,G,"$1"):e||t})),n},V=function(t,e){var r,n=t;if(K(M,n)&&(n="%"+(r=M[n])[0]+"%"),K(k,n)){var i=k[n];if(i===L&&(i=P(n)),typeof i>"u"&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(t),n=r.length>0?r[0]:"",i=V("%"+n+"%",e),o=i.name,s=i.value,a=!1,l=i.alias;l&&(n=l[0],F(r,U([0,1],l)));for(var h=1,d=!0;h=r.length){var m=b(s,p);s=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[p]}else d=K(s,p),s=s[p];d&&!a&&(k[o]=s)}}return s}},"./node_modules/get-proto/Object.getPrototypeOf.js":(t,e,r)=>{var n=r("./node_modules/es-object-atoms/index.js");t.exports=n.getPrototypeOf||null},"./node_modules/get-proto/Reflect.getPrototypeOf.js":t=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},"./node_modules/get-proto/index.js":(t,e,r)=>{var n=r("./node_modules/get-proto/Reflect.getPrototypeOf.js"),i=r("./node_modules/get-proto/Object.getPrototypeOf.js"),o=r("./node_modules/dunder-proto/get.js");t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},"./node_modules/gopd/gOPD.js":t=>{t.exports=Object.getOwnPropertyDescriptor},"./node_modules/gopd/index.js":(t,e,r)=>{var n=r("./node_modules/gopd/gOPD.js");if(n)try{n([],"length")}catch{n=null}t.exports=n},"./node_modules/has-property-descriptors/index.js":(t,e,r)=>{var n=r("./node_modules/es-define-property/index.js"),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch{return!0}},t.exports=i},"./node_modules/has-symbols/index.js":(t,e,r)=>{var n=typeof Symbol<"u"&&Symbol,i=r("./node_modules/has-symbols/shams.js");t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},"./node_modules/has-symbols/shams.js":t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"./node_modules/has-tostringtag/shams.js":(t,e,r)=>{var n=r("./node_modules/has-symbols/shams.js");t.exports=function(){return n()&&!!Symbol.toStringTag}},"./node_modules/hasown/index.js":(t,e,r)=>{var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r("./node_modules/function-bind/index.js");t.exports=o.call(n,i)},"./node_modules/inherits/inherits_browser.js":t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},"./node_modules/is-arguments/index.js":(t,e,r)=>{var n=r("./node_modules/has-tostringtag/shams.js")(),i=r("./node_modules/call-bound/index.js")("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},"./node_modules/is-callable/index.js":t=>{var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch{return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch{return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(typeof t>"u"||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch{}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},"./node_modules/is-generator-function/index.js":(t,e,r)=>{var n,i=r("./node_modules/call-bound/index.js"),o=r("./node_modules/safe-regex-test/index.js")(/^\s*(?:function)?\*/),s=r("./node_modules/has-tostringtag/shams.js")(),a=r("./node_modules/get-proto/index.js"),l=i("Object.prototype.toString"),u=i("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(o(u(t)))return!0;if(!s)return"[object GeneratorFunction]"===l(t);if(!a)return!1;if(typeof n>"u"){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();n=!!e&&a(e)}return a(t)===n}},"./node_modules/is-nan/implementation.js":t=>{t.exports=function(t){return t!=t}},"./node_modules/is-nan/index.js":(t,e,r)=>{var n=r("./node_modules/call-bind/index.js"),i=r("./node_modules/define-properties/index.js"),o=r("./node_modules/is-nan/implementation.js"),s=r("./node_modules/is-nan/polyfill.js"),a=r("./node_modules/is-nan/shim.js"),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},"./node_modules/is-nan/polyfill.js":(t,e,r)=>{var n=r("./node_modules/is-nan/implementation.js");t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},"./node_modules/is-nan/shim.js":(t,e,r)=>{var n=r("./node_modules/define-properties/index.js"),i=r("./node_modules/is-nan/polyfill.js");t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},"./node_modules/is-regex/index.js":(t,e,r)=>{var n,i=r("./node_modules/call-bound/index.js"),o=r("./node_modules/has-tostringtag/shams.js")(),s=r("./node_modules/hasown/index.js"),a=r("./node_modules/gopd/index.js");if(o){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},h={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=c),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{l(t,h)}catch(t){return t===u}}}else{var d=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===d(t)}}t.exports=n},"./node_modules/is-typed-array/index.js":(t,e,r)=>{var n=r("./node_modules/which-typed-array/index.js");t.exports=function(t){return!!n(t)}},"./node_modules/lodash/lodash.js":function(t,e,r){var n;t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",_="[object Date]",v="[object Error]",x="[object Function]",b="[object GeneratorFunction]",T="[object Map]",E="[object Number]",O="[object Object]",S="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",R="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",I="[object DataView]",k="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",j="[object Int32Array]",K="[object Uint8Array]",U="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,V=RegExp(G.source),Y=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wt="["+bt+"]",Rt="["+At+"]",Ct="["+Tt+"]",Lt="\\d+",It="["+Et+"]",kt="["+Ot+"]",Dt="[^"+bt+At+Lt+Et+Ot+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Mt="[^"+bt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+St+"]",Ft="(?:"+kt+"|"+Dt+")",$t="(?:"+Ut+"|"+Dt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Bt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Ct+"|"+Pt+")?",Gt="["+Nt+"]?",zt=Gt+qt+"(?:\\u200d(?:"+[Mt,jt,Kt].join("|")+")"+Gt+qt+")*",Vt="(?:"+[It,jt,Kt].join("|")+")"+zt,Yt="(?:"+[Mt+Ct+"?",Ct,jt,Kt,wt].join("|")+")",Wt=RegExp("['’]","g"),Xt=RegExp(Ct,"g"),Qt=RegExp(Pt+"(?="+Pt+")|"+Yt+zt,"g"),Jt=RegExp([Ut+"?"+kt+"+"+Ht+"(?="+[Rt,Ut,"$"].join("|")+")",$t+"+"+Bt+"(?="+[Rt,Ut+Ft,"$"].join("|")+")",Ut+"?"+Ft+"+"+Ht,Ut+"+"+Bt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Vt].join("|"),"g"),Zt=RegExp("[\\u200d"+bt+Tt+Nt+"]"),te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ne={};ne[k]=ne[D]=ne[P]=ne[M]=ne[j]=ne[K]=ne[U]=ne[F]=ne[$]=!0,ne[g]=ne[m]=ne[L]=ne[y]=ne[I]=ne[_]=ne[v]=ne[x]=ne[T]=ne[E]=ne[O]=ne[N]=ne[A]=ne[w]=ne[C]=!1;var ie={};ie[g]=ie[m]=ie[L]=ie[I]=ie[y]=ie[_]=ie[k]=ie[D]=ie[P]=ie[M]=ie[j]=ie[T]=ie[E]=ie[O]=ie[N]=ie[A]=ie[w]=ie[R]=ie[K]=ie[U]=ie[F]=ie[$]=!0,ie[v]=ie[x]=ie[C]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ae=parseInt,le="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ue="object"==typeof self&&self&&self.Object===Object&&self,ce=le||ue||Function("return this")(),he=e&&!e.nodeType&&e,de=he&&t&&!t.nodeType&&t,pe=de&&de.exports===he,fe=pe&&le.process,ge=function(){try{return de&&de.require&&de.require("util").types||fe&&fe.binding&&fe.binding("util")}catch{}}(),me=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,_e=ge&&ge.isMap,ve=ge&&ge.isRegExp,xe=ge&&ge.isSet,be=ge&&ge.isTypedArray;function Te(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Re(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Je(t,e){for(var r=t.length;r--&&Ke(e,t[r],0)>-1;);return r}function Ze(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var tr=Be({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=Be({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+oe[t]}function nr(t){return Zt.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),dr=function t(e){var r,n=(e=null==e?ce:dr.defaults(ce.Object(),e,dr.pick(ce,ee))).Array,it=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=n.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(r=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mt=Ct.toString,jt=It.call(Ot),Kt=ce._,Ut=St("^"+It.call(kt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=pe?e.Buffer:i,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:i,qt=or(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Vt=wt.splice,Yt=$t?$t.isConcatSpreadable:i,Qt=$t?$t.iterator:i,Zt=$t?$t.toStringTag:i,oe=function(){try{var t=lo(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),le=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,ue=it&&it.now!==ce.Date.now&&it.now,he=e.setTimeout!==ce.setTimeout&&e.setTimeout,de=Et.ceil,fe=Et.floor,ge=Ot.getOwnPropertySymbols,Pe=Ft?Ft.isBuffer:i,Be=e.isFinite,pr=wt.join,fr=or(Ot.keys,Ot),gr=Et.max,mr=Et.min,yr=it.now,_r=e.parseInt,vr=Et.random,xr=wt.reverse,br=lo(e,"DataView"),Tr=lo(e,"Map"),Er=lo(e,"Promise"),Or=lo(e,"Set"),Sr=lo(e,"WeakMap"),Nr=lo(Ot,"create"),Ar=Sr&&new Sr,wr={},Rr=Ko(br),Cr=Ko(Tr),Lr=Ko(Er),Ir=Ko(Or),kr=Ko(Sr),Dr=$t?$t.prototype:i,Pr=Dr?Dr.valueOf:i,Mr=Dr?Dr.toString:i;function jr(t){if(ea(t)&&!qs(t)&&!(t instanceof $r)){if(t instanceof Fr)return t;if(kt.call(t,"__wrapped__"))return Uo(t)}return new Fr(t)}var Kr=function(){function t(){}return function(e){if(!ta(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Ur(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,r,n,o,s){var a,l=1&e,u=2&e,c=4&e;if(r&&(a=o?r(t,n,o,s):r(t)),a!==i)return a;if(!ta(t))return t;var h=qs(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Ni(t,a)}else{var d=ho(t),p=d==x||d==b;if(Ys(t))return xi(t,l);if(d==O||d==g||p&&!o){if(a=u||p?{}:fo(t),!l)return u?function(t,e){return Ai(t,co(t),e)}(t,function(t,e){return t&&Ai(e,Ia(e),t)}(a,t)):function(t,e){return Ai(t,uo(t),e)}(t,en(a,t))}else{if(!ie[d])return o?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case L:return bi(t);case y:case _:return new n(+t);case I:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case k:case D:case P:case M:case j:case K:case U:case F:case $:return Ti(t,r);case T:return new n;case E:case w:return new n(t);case N:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new n;case R:return function(t){return Pr?Ot(Pr.call(t)):{}}(t)}}(t,d,l)}}s||(s=new zr);var f=s.get(t);if(f)return f;s.set(t,a),sa(t)?t.forEach((function(n){a.add(sn(n,e,r,n,t,s))})):ra(t)&&t.forEach((function(n,i){a.set(i,sn(n,e,r,i,t,s))}));var m=h?i:(c?u?eo:to:u?Ia:La)(t);return Oe(m||t,(function(n,i){m&&(n=t[i=n]),Jr(a,i,sn(n,e,r,i,t,s))})),a}function an(t,e,r){var n=r.length;if(null==t)return!n;for(t=Ot(t);n--;){var o=r[n],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function ln(t,e,r){if("function"!=typeof t)throw new At(o);return Ro((function(){t.apply(i,r)}),e)}function un(t,e,r,n){var i=-1,o=we,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Ce(e,Ye(r))),n?(o=Re,s=!1):e.length>=200&&(o=Xe,s=!1,e=new Gr(e));t:for(;++i-1},Br.prototype.set=function(t,e){var r=this.__data__,n=Zr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Tr||Br),string:new Hr}},qr.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},qr.prototype.get=function(t){return so(this,t).get(t)},qr.prototype.has=function(t){return so(this,t).has(t)},qr.prototype.set=function(t,e){var r=so(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,s),this},Gr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.clear=function(){this.__data__=new Br,this.size=0},zr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},zr.prototype.get=function(t){return this.__data__.get(t)},zr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!Tr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(t,e),this.size=r.size,this};var cn=Ci(_n),hn=Ci(vn,!0);function dn(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function pn(t,e,r){for(var n=-1,o=t.length;++n0&&r(a)?e>1?gn(a,e-1,r,n,i):Le(i,a):n||(i[i.length]=a)}return i}var mn=Li(),yn=Li(!0);function _n(t,e){return t&&mn(t,e,La)}function vn(t,e){return t&&yn(t,e,La)}function xn(t,e){return Ae(e,(function(e){return Qs(t[e])}))}function bn(t,e){for(var r=0,n=(e=mi(e,t)).length;null!=t&&re}function Sn(t,e){return null!=t&&kt.call(t,e)}function Nn(t,e){return null!=t&&e in Ot(t)}function An(t,e,r){for(var o=r?Re:we,s=t[0].length,a=t.length,l=a,u=n(a),c=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Ce(d,Ye(e))),c=mr(d.length,c),u[l]=!r&&(e||s>=120&&d.length>=120)?new Gr(l&&d):i}d=t[0];var p=-1,f=u[0];t:for(;++p=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Mn(t,(function(t,r,i){return{criteria:Ce(e,(function(e){return e(t)})),index:++n,value:t}})))}function Hn(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Vt.call(a,l,1),Vt.call(t,l,1);return t}function qn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Vt.call(t,i,1):li(t,i)}}return t}function Gn(t,e){return t+fe(vr()*(e-t+1))}function zn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=fe(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return Co(Oo(t,e,nl),t+"")}function Yn(t){return Yr(Fa(t))}function Wn(t,e){var r=Fa(t);return ko(r,on(e,0,r.length))}function Xn(t,e,r,n){if(!ta(t))return t;for(var o=-1,s=(e=mi(e,t)).length,a=s-1,l=t;null!=l&&++oo?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i>>1,s=t[o];null!==s&&!la(s)&&(r?s<=e:s=200){var u=e?null:zi(t);if(u)return ar(u);s=!1,i=Xe,l=new Gr}else l=e?[]:a;t:for(;++n=n?t:ti(t,e,r)}var vi=le||function(t){return ce.clearTimeout(t)};function xi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,s=la(t),a=e!==i,l=null===e,u=e==e,c=la(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||n&&a&&u||!r&&u||!o)return 1;if(!n&&!s&&!c&&t1?r[o-1]:i,a=o>2?r[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&yo(r[0],r[1],a)&&(s=o<3?i:s,o=1),e=Ot(e);++n-1?o[s?e[a]:a]:i}}function Mi(t){return Zi((function(e){var r=e.length,n=r,s=Fr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new At(o);if(s&&!l&&"wrapper"==no(a))var l=new Fr([],!0)}for(n=l?n:r;++n1&&v.reverse(),p&&hl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&r?new Gr:i;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Oe(f,(function(r){var n="_."+r[0];e&r[1]&&!we(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(n),r)))}function Io(t){var e=0,r=0;return function(){var n=yr(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ko(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,os(t,r)}));function ds(t){var e=jr(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var fs=Zi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof $r&&mo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:i}),new Fr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)})),gs=wi((function(t,e,r){kt.call(t,r)?++t[r]:rn(t,r,1)})),ms=Pi(Bo),ys=Pi(qo);function _s(t,e){return(qs(t)?Oe:cn)(t,oo(e,3))}function vs(t,e){return(qs(t)?Se:hn)(t,oo(e,3))}var xs=wi((function(t,e,r){kt.call(t,r)?t[r].push(e):rn(t,r,[e])})),bs=Vn((function(t,e,r){var i=-1,o="function"==typeof e,s=zs(t)?n(t.length):[];return cn(t,(function(t){s[++i]=o?Te(e,t,r):wn(t,e,r)})),s})),Ts=wi((function(t,e,r){rn(t,r,e)}));function Es(t,e){return(qs(t)?Ce:Mn)(t,oo(e,3))}var Os=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ss=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yo(t,e[0],e[1])?e=[]:r>2&&yo(e[0],e[1],e[2])&&(e=[e[0]]),$n(t,gn(e,1),[])})),Ns=ue||function(){return ce.Date.now()};function As(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function ws(t,e){var r;if("function"!=typeof e)throw new At(o);return t=fa(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var Rs=Vn((function(t,e,r){var n=1;if(r.length){var i=sr(r,io(Rs));n|=l}return Yi(t,n,e,r,i)})),Cs=Vn((function(t,e,r){var n=3;if(r.length){var i=sr(r,io(Cs));n|=l}return Yi(e,n,t,r,i)}));function Ls(t,e,r){var n,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(o);function g(e){var r=n,o=s;return n=s=i,h=e,l=t.apply(o,r)}function m(t){return h=t,u=Ro(_,e),d?g(t):l}function y(t){var r=t-c;return c===i||r>=e||r<0||p&&t-h>=a}function _(){var t=Ns();if(y(t))return v(t);u=Ro(_,function(t){var r=e-(t-c);return p?mr(r,a-(t-h)):r}(t))}function v(t){return u=i,f&&n?g(t):(n=s=i,l)}function x(){var t=Ns(),r=y(t);if(n=arguments,s=this,c=t,r){if(u===i)return m(c);if(p)return vi(u),u=Ro(_,e),g(c)}return u===i&&(u=Ro(_,e)),l}return e=ma(e)||0,ta(r)&&(d=!!r.leading,a=(p="maxWait"in r)?gr(ma(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f),x.cancel=function(){u!==i&&vi(u),h=0,n=c=s=u=i},x.flush=function(){return u===i?l:v(Ns())},x}var Is=Vn((function(t,e){return ln(t,1,e)})),ks=Vn((function(t,e,r){return ln(t,ma(e)||0,r)}));function Ds(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ds.Cache||qr),r}function Ps(t){if("function"!=typeof t)throw new At(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ds.Cache=qr;var Ms=yi((function(t,e){var r=(e=1==e.length&&qs(e[0])?Ce(e[0],Ye(oo())):Ce(gn(e,1),Ye(oo()))).length;return Vn((function(n){for(var i=-1,o=mr(n.length,r);++i=e})),Bs=Rn(function(){return arguments}())?Rn:function(t){return ea(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},qs=n.isArray,Gs=me?Ye(me):function(t){return ea(t)&&En(t)==L};function zs(t){return null!=t&&Zs(t.length)&&!Qs(t)}function Vs(t){return ea(t)&&zs(t)}var Ys=Pe||ml,Ws=ye?Ye(ye):function(t){return ea(t)&&En(t)==_};function Xs(t){if(!ea(t))return!1;var e=En(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Qs(t){if(!ta(t))return!1;var e=En(t);return e==x||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==fa(t)}function Zs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var ra=_e?Ye(_e):function(t){return ea(t)&&ho(t)==T};function na(t){return"number"==typeof t||ea(t)&&En(t)==E}function ia(t){if(!ea(t)||En(t)!=O)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var oa=ve?Ye(ve):function(t){return ea(t)&&En(t)==N},sa=xe?Ye(xe):function(t){return ea(t)&&ho(t)==A};function aa(t){return"string"==typeof t||!qs(t)&&ea(t)&&En(t)==w}function la(t){return"symbol"==typeof t||ea(t)&&En(t)==R}var ua=be?Ye(be):function(t){return ea(t)&&Zs(t.length)&&!!ne[En(t)]},ca=Bi(Pn),ha=Bi((function(t,e){return t<=e}));function da(t){if(!t)return[];if(zs(t))return aa(t)?ur(t):Ni(t);if(Qt&&t[Qt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Qt]());var e=ho(t);return(e==T?ir:e==A?ar:Fa)(t)}function pa(t){return t?(t=ma(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fa(t){var e=pa(t),r=e%1;return e==e?r?e-r:e:0}function ga(t){return t?on(fa(t),0,p):0}function ma(t){if("number"==typeof t)return t;if(la(t))return d;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=ft.test(t);return r||mt.test(t)?ae(t.slice(2),r?2:8):pt.test(t)?d:+t}function ya(t){return Ai(t,Ia(t))}function _a(t){return null==t?"":si(t)}var va=Ri((function(t,e){if(bo(e)||zs(e))Ai(e,La(e),t);else for(var r in e)kt.call(e,r)&&Jr(t,r,e[r])})),xa=Ri((function(t,e){Ai(e,Ia(e),t)})),ba=Ri((function(t,e,r,n){Ai(e,Ia(e),t,n)})),Ta=Ri((function(t,e,r,n){Ai(e,La(e),t,n)})),Ea=Zi(nn),Oa=Vn((function(t,e){t=Ot(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&yo(e[0],e[1],o)&&(n=1);++r1),e})),Ai(t,eo(t),r),n&&(r=sn(r,7,Qi));for(var i=e.length;i--;)li(r,e[i]);return r})),Ma=Zi((function(t,e){return null==t?{}:function(t,e){return Hn(t,e,(function(e,r){return Aa(t,r)}))}(t,e)}));function ja(t,e){if(null==t)return{};var r=Ce(eo(t),(function(t){return[t]}));return e=oo(e),Hn(t,r,(function(t,r){return e(t,r[0])}))}var Ka=Vi(La),Ua=Vi(Ia);function Fa(t){return null==t?[]:We(t,La(t))}var $a=ki((function(t,e,r){return e=e.toLowerCase(),t+(r?Ha(e):e)}));function Ha(t){return Xa(_a(t).toLowerCase())}function Ba(t){return(t=_a(t))&&t.replace(_t,tr).replace(Xt,"")}var qa=ki((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ga=ki((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),za=Ii("toLowerCase"),Va=ki((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ya=ki((function(t,e,r){return t+(r?" ":"")+Xa(e)})),Wa=ki((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xa=Ii("toUpperCase");function Qa(t,e,r){return t=_a(t),(e=r?i:e)===i?function(t){return te.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Ja=Vn((function(t,e){try{return Te(t,i,e)}catch(t){return Xs(t)?t:new bt(t)}})),Za=Zi((function(t,e){return Oe(e,(function(e){e=jo(e),rn(t,e,Rs(t[e],t))})),t}));function tl(t){return function(){return t}}var el=Mi(),rl=Mi(!0);function nl(t){return t}function il(t){return kn("function"==typeof t?t:sn(t,1))}var ol=Vn((function(t,e){return function(r){return wn(r,t,e)}})),sl=Vn((function(t,e){return function(r){return wn(t,r,e)}}));function al(t,e,r){var n=La(e),i=xn(e,n);null==r&&(!ta(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=xn(e,La(e)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Qs(t);return Oe(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=Ni(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Le([this.value()],arguments))})})),t}function ll(){}var ul=Fi(Ce),cl=Fi(Ne),hl=Fi(De);function dl(t){return _o(t)?He(jo(t)):function(t){return function(e){return bn(e,t)}}(t)}var pl=Hi(),fl=Hi(!0);function gl(){return[]}function ml(){return!1}var yl=Ui((function(t,e){return t+e}),0),_l=Gi("ceil"),vl=Ui((function(t,e){return t/e}),1),xl=Gi("floor"),bl=Ui((function(t,e){return t*e}),1),Tl=Gi("round"),El=Ui((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new At(o);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=As,jr.assign=va,jr.assignIn=xa,jr.assignInWith=ba,jr.assignWith=Ta,jr.at=Ea,jr.before=ws,jr.bind=Rs,jr.bindAll=Za,jr.bindKey=Cs,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},jr.chain=ds,jr.chunk=function(t,e,r){e=(r?yo(t,e,r):e===i)?1:gr(fa(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=n(de(o/e));so?0:o+r),(n=n===i||n>o?o:fa(n))<0&&(n+=o),n=r>n?0:ga(n);r>>0)?(t=_a(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=si(e))&&nr(t)?_i(ur(t),0,r):t.split(e,r):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new At(o);return e=null==e?0:gr(fa(e),0),Vn((function(r){var n=r[e],i=_i(r,0,e);return n&&Le(i,n),Te(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},jr.take=function(t,e,r){return t&&t.length?ti(t,0,(e=r||e===i?1:fa(e))<0?0:e):[]},jr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=n-(e=r||e===i?1:fa(e)))<0?0:e,n):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new At(o);return ta(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ls(t,e,{leading:n,maxWait:e,trailing:i})},jr.thru=ps,jr.toArray=da,jr.toPairs=Ka,jr.toPairsIn=Ua,jr.toPath=function(t){return qs(t)?Ce(t,jo):la(t)?[t]:Ni(Mo(_a(t)))},jr.toPlainObject=ya,jr.transform=function(t,e,r){var n=qs(t),i=n||Ys(t)||ua(t);if(e=oo(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:ta(t)&&Qs(o)?Kr(qt(t)):{}}return(i?Oe:_n)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return As(t,1)},jr.union=es,jr.unionBy=rs,jr.unionWith=ns,jr.uniq=function(t){return t&&t.length?ai(t):[]},jr.uniqBy=function(t,e){return t&&t.length?ai(t,oo(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},jr.unset=function(t,e){return null==t||li(t,e)},jr.unzip=is,jr.unzipWith=os,jr.update=function(t,e,r){return null==t?t:ui(t,e,gi(r))},jr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:ui(t,e,gi(r),n)},jr.values=Fa,jr.valuesIn=function(t){return null==t?[]:We(t,Ia(t))},jr.without=ss,jr.words=Qa,jr.wrap=function(t,e){return js(gi(e),t)},jr.xor=as,jr.xorBy=ls,jr.xorWith=us,jr.zip=cs,jr.zipObject=function(t,e){return pi(t||[],e||[],Jr)},jr.zipObjectDeep=function(t,e){return pi(t||[],e||[],Xn)},jr.zipWith=hs,jr.entries=Ka,jr.entriesIn=Ua,jr.extend=xa,jr.extendWith=ba,al(jr,jr),jr.add=yl,jr.attempt=Ja,jr.camelCase=$a,jr.capitalize=Ha,jr.ceil=_l,jr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=ma(r))==r?r:0),e!==i&&(e=(e=ma(e))==e?e:0),on(ma(t),e,r)},jr.clone=function(t){return sn(t,4)},jr.cloneDeep=function(t){return sn(t,5)},jr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:i)},jr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:i)},jr.conformsTo=function(t,e){return null==e||an(t,e,La(e))},jr.deburr=Ba,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=vl,jr.endsWith=function(t,e,r){t=_a(t),e=si(e);var n=t.length,o=r=r===i?n:on(fa(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},jr.eq=Fs,jr.escape=function(t){return(t=_a(t))&&Y.test(t)?t.replace(z,er):t},jr.escapeRegExp=function(t){return(t=_a(t))&&rt.test(t)?t.replace(et,"\\$&"):t},jr.every=function(t,e,r){var n=qs(t)?Ne:dn;return r&&yo(t,e,r)&&(e=i),n(t,oo(e,3))},jr.find=ms,jr.findIndex=Bo,jr.findKey=function(t,e){return Me(t,oo(e,3),_n)},jr.findLast=ys,jr.findLastIndex=qo,jr.findLastKey=function(t,e){return Me(t,oo(e,3),vn)},jr.floor=xl,jr.forEach=_s,jr.forEachRight=vs,jr.forIn=function(t,e){return null==t?t:mn(t,oo(e,3),Ia)},jr.forInRight=function(t,e){return null==t?t:yn(t,oo(e,3),Ia)},jr.forOwn=function(t,e){return t&&_n(t,oo(e,3))},jr.forOwnRight=function(t,e){return t&&vn(t,oo(e,3))},jr.get=Na,jr.gt=$s,jr.gte=Hs,jr.has=function(t,e){return null!=t&&po(t,e,Sn)},jr.hasIn=Aa,jr.head=zo,jr.identity=nl,jr.includes=function(t,e,r,n){t=zs(t)?t:Fa(t),r=r&&!n?fa(r):0;var i=t.length;return r<0&&(r=gr(i+r,0)),aa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ke(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=gr(n+i,0)),Ke(t,e,i)},jr.inRange=function(t,e,r){return e=pa(e),r===i?(r=e,e=0):r=pa(r),function(t,e,r){return t>=mr(e,r)&&t=-h&&t<=h},jr.isSet=sa,jr.isString=aa,jr.isSymbol=la,jr.isTypedArray=ua,jr.isUndefined=function(t){return t===i},jr.isWeakMap=function(t){return ea(t)&&ho(t)==C},jr.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==En(t)},jr.join=function(t,e){return null==t?"":pr.call(t,e)},jr.kebabCase=qa,jr.last=Xo,jr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=fa(r))<0?gr(n+o,0):mr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):je(t,Fe,o,!0)},jr.lowerCase=Ga,jr.lowerFirst=za,jr.lt=ca,jr.lte=ha,jr.max=function(t){return t&&t.length?pn(t,nl,On):i},jr.maxBy=function(t,e){return t&&t.length?pn(t,oo(e,2),On):i},jr.mean=function(t){return $e(t,nl)},jr.meanBy=function(t,e){return $e(t,oo(e,2))},jr.min=function(t){return t&&t.length?pn(t,nl,Pn):i},jr.minBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Pn):i},jr.stubArray=gl,jr.stubFalse=ml,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=bl,jr.nth=function(t,e){return t&&t.length?Fn(t,fa(e)):i},jr.noConflict=function(){return ce._===this&&(ce._=Kt),this},jr.noop=ll,jr.now=Ns,jr.pad=function(t,e,r){t=_a(t);var n=(e=fa(e))?lr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return $i(fe(i),r)+t+$i(de(i),r)},jr.padEnd=function(t,e,r){t=_a(t);var n=(e=fa(e))?lr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var o=vr();return mr(t+o*(e-t+se("1e-"+((o+"").length-1))),e)}return Gn(t,e)},jr.reduce=function(t,e,r){var n=qs(t)?Ie:qe,i=arguments.length<3;return n(t,oo(e,4),r,i,cn)},jr.reduceRight=function(t,e,r){var n=qs(t)?ke:qe,i=arguments.length<3;return n(t,oo(e,4),r,i,hn)},jr.repeat=function(t,e,r){return e=(r?yo(t,e,r):e===i)?1:fa(e),zn(_a(t),e)},jr.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,r){var n=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=i);++nh)return[];var r=p,n=mr(t,p);e=oo(e),t-=p;for(var i=ze(n,e);++r=s)return t;var l=r-lr(n);if(l<1)return n;var u=a?_i(a,0,l).join(""):t.slice(0,l);if(o===i)return u+n;if(a&&(l+=u.length-l),oa(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,_a(dt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(si(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+n},jr.unescape=function(t){return(t=_a(t))&&V.test(t)?t.replace(G,hr):t},jr.uniqueId=function(t){var e=++Dt;return _a(t)+e},jr.upperCase=Wa,jr.upperFirst=Xa,jr.each=_s,jr.eachRight=vs,jr.first=zo,al(jr,function(){var t={};return _n(jr,(function(e,r){kt.call(jr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),jr.VERSION="4.17.21",Oe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),Oe(["drop","take"],(function(t,e){$r.prototype[t]=function(r){r=r===i?1:gr(fa(r),0);var n=this.__filtered__&&!e?new $r(this):this.clone();return n.__filtered__?n.__takeCount__=mr(r,n.__takeCount__):n.__views__.push({size:mr(r,p),type:t+(n.__dir__<0?"Right":"")}),n},$r.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Oe(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;$r.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Oe(["head","last"],(function(t,e){var r="take"+(e?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),Oe(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(nl)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new $r(this):this.map((function(r){return wn(r,t,e)}))})),$r.prototype.reject=function(t){return this.filter(Ps(oo(t)))},$r.prototype.slice=function(t,e){t=fa(t);var r=this;return r.__filtered__&&(t>0||e<0)?new $r(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=fa(e))<0?r.dropRight(-e):r.take(e-t)),r)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(p)},_n($r.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=jr[n?"take"+("last"==e?"Right":""):e],s=n||/^find/.test(e);o&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,l=e instanceof $r,u=a[0],c=l||qs(e),h=function(t){var e=o.apply(jr,Le([t],a));return n&&d?e[0]:e};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new $r(this);var m=t.apply(e,a);return m.__actions__.push({func:ps,args:[h],thisArg:i}),new Fr(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?n?m.value()[0]:m.value():m)})})),Oe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(qs(i)?i:[],t)}return this[r]((function(r){return e.apply(qs(r)?r:[],t)}))}})),_n($r.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";kt.call(wr,n)||(wr[n]=[]),wr[n].push({name:e,func:r})}})),wr[ji(i,2).name]=[{name:"wrapper",func:i}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=qs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,r=this;r instanceof Ur;){var n=Uo(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var e=t;return this.__actions__.length&&(e=new $r(this)),(e=e.reverse()).__actions__.push({func:ps,args:[ts],thisArg:i}),new Fr(e,this.__chain__)}return this.thru(ts)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,Qt&&(jr.prototype[Qt]=function(){return this}),jr}();ce._=dr,(n=function(){return dr}.call(e,r,e,t))!==i&&(t.exports=n)}.call(this)},"./node_modules/math-intrinsics/abs.js":t=>{t.exports=Math.abs},"./node_modules/math-intrinsics/floor.js":t=>{t.exports=Math.floor},"./node_modules/math-intrinsics/isNaN.js":t=>{t.exports=Number.isNaN||function(t){return t!=t}},"./node_modules/math-intrinsics/max.js":t=>{t.exports=Math.max},"./node_modules/math-intrinsics/min.js":t=>{t.exports=Math.min},"./node_modules/math-intrinsics/pow.js":t=>{t.exports=Math.pow},"./node_modules/math-intrinsics/round.js":t=>{t.exports=Math.round},"./node_modules/math-intrinsics/sign.js":(t,e,r)=>{var n=r("./node_modules/math-intrinsics/isNaN.js");t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},"./node_modules/object-is/implementation.js":t=>{var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:!!(t===r||e(t)&&e(r))}},"./node_modules/object-is/index.js":(t,e,r)=>{var n=r("./node_modules/define-properties/index.js"),i=r("./node_modules/call-bind/index.js"),o=r("./node_modules/object-is/implementation.js"),s=r("./node_modules/object-is/polyfill.js"),a=r("./node_modules/object-is/shim.js"),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},"./node_modules/object-is/polyfill.js":(t,e,r)=>{var n=r("./node_modules/object-is/implementation.js");t.exports=function(){return"function"==typeof Object.is?Object.is:n}},"./node_modules/object-is/shim.js":(t,e,r)=>{var n=r("./node_modules/object-is/polyfill.js"),i=r("./node_modules/define-properties/index.js");t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},"./node_modules/object-keys/implementation.js":(t,e,r)=>{var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r("./node_modules/object-keys/isArguments.js"),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window>"u")return!1;for(var t in window)try{if(!d["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch{return!0}}catch{return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),d=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=u&&r;if(a&&t.length>0&&!i.call(t,0))for(var g=0;g0)for(var m=0;m"u"||!p)return h(t);try{return h(t)}catch{return!1}}(t),v=0;v{var n=Array.prototype.slice,i=r("./node_modules/object-keys/isArguments.js"),o=Object.keys,s=o?function(t){return o(t)}:r("./node_modules/object-keys/implementation.js"),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},"./node_modules/object-keys/isArguments.js":t=>{var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},"./node_modules/object.assign/implementation.js":(t,e,r)=>{var n=r("./node_modules/object-keys/index.js"),i=r("./node_modules/has-symbols/shams.js")(),o=r("./node_modules/call-bound/index.js"),s=r("./node_modules/es-object-atoms/index.js"),a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?s.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var o=1;o{var n=r("./node_modules/object.assign/implementation.js");t.exports=function(){return!Object.assign||function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},"./node_modules/process/browser.js":t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch{try{return e.call(null,t,0)}catch{return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch{e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch{r=o}}();var a,l=[],u=!1,c=-1;function h(){!u||!a||(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c1)for(var r=1;r{var n=r("./node_modules/call-bound/index.js"),i=r("./node_modules/is-regex/index.js"),o=n("RegExp.prototype.exec"),s=r("./node_modules/es-errors/type.js");t.exports=function(t){if(!i(t))throw new s("`regex` must be a RegExp");return function(e){return null!==o(t,e)}}},"./node_modules/set-function-length/index.js":(t,e,r)=>{var n=r("./node_modules/get-intrinsic/index.js"),i=r("./node_modules/define-data-property/index.js"),o=r("./node_modules/has-property-descriptors/index.js")(),s=r("./node_modules/gopd/index.js"),a=r("./node_modules/es-errors/type.js"),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var c=s(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},"./node_modules/util/support/isBufferBrowser.js":t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"./node_modules/util/support/types.js":(t,e,r)=>{var n=r("./node_modules/is-arguments/index.js"),i=r("./node_modules/is-generator-function/index.js"),o=r("./node_modules/which-typed-array/index.js"),s=r("./node_modules/is-typed-array/index.js");function a(t){return t.call.bind(t)}var l=typeof BigInt<"u",u=typeof Symbol<"u",c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function m(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch{return!1}}function y(t){return"[object Map]"===c(t)}function _(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function x(t){return"[object WeakSet]"===c(t)}function b(t){return"[object ArrayBuffer]"===c(t)}function T(t){return!(typeof ArrayBuffer>"u")&&(b.working?b(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===c(t)}function O(t){return!(typeof DataView>"u")&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return typeof Promise<"u"&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working=typeof Map<"u"&&y(new Map),e.isMap=function(t){return!(typeof Map>"u")&&(y.working?y(t):t instanceof Map)},_.working=typeof Set<"u"&&_(new Set),e.isSet=function(t){return!(typeof Set>"u")&&(_.working?_(t):t instanceof Set)},v.working=typeof WeakMap<"u"&&v(new WeakMap),e.isWeakMap=function(t){return!(typeof WeakMap>"u")&&(v.working?v(t):t instanceof WeakMap)},x.working=typeof WeakSet<"u"&&x(new WeakSet),e.isWeakSet=function(t){return x(t)},b.working=typeof ArrayBuffer<"u"&&b(new ArrayBuffer),e.isArrayBuffer=T,E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return!(typeof S>"u")&&(typeof N.working>"u"&&(N.working=N(new S)),N.working?N(t):t instanceof S)}function w(t){return m(t,h)}function R(t){return m(t,d)}function C(t){return m(t,p)}function L(t){return l&&m(t,f)}function I(t){return u&&m(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=w,e.isStringObject=R,e.isBooleanObject=C,e.isBigIntObject=L,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return w(t)||R(t)||C(t)||L(t)||I(t)},e.isAnyArrayBuffer=function(t){return typeof Uint8Array<"u"&&(T(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},"./node_modules/util/util.js":(t,e,r)=>{var n=r("./node_modules/process/browser.js"),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return t}})),a=n[r];r"u")return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function u(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=d(t,i,n)),i}var o=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(S(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var u,c="",h=!1,T=["{","}"];return g(r)&&(h=!0,T=["[","]"]),S(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(c=" "+RegExp.prototype.toString.call(r)),E(r)&&(c=" "+Date.prototype.toUTCString.call(r)),O(r)&&(c=" "+p(r)),0!==s.length||h&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=h?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(u,c,T)):T[0]+c+T[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?d(t,l.value,null):d(t,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function v(t){return"string"==typeof t}function x(t){return void 0===t}function b(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"==typeof t&&null!==t}function E(t){return T(t)&&"[object Date]"===N(t)}function O(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function S(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r("./node_modules/util/support/types.js"),e.isArray=g,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=b,e.types.isRegExp=b,e.isObject=T,e.isDate=E,e.types.isDate=E,e.isError=O,e.types.isNativeError=O,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||typeof t>"u"},e.isBuffer=r("./node_modules/util/support/isBufferBrowser.js");var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),w[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=r("./node_modules/inherits/inherits_browser.js"),e._extend=function(t,e){if(!e||!T(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o{var n=r("./node_modules/for-each/index.js"),i=r("./node_modules/available-typed-arrays/index.js"),o=r("./node_modules/call-bind/index.js"),s=r("./node_modules/call-bound/index.js"),a=r("./node_modules/gopd/index.js"),l=r("./node_modules/get-proto/index.js"),u=s("Object.prototype.toString"),c=r("./node_modules/has-tostringtag/shams.js")(),h=typeof globalThis>"u"?r.g:globalThis,d=i(),p=s("String.prototype.slice"),f=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(g,(function(r,n){if(!e)try{r(t),e=p(n,1)}catch{}})),e}(t)}return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch{}})),e}(t):null}},"./src/ForgeExprEvaluator.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NameNotFoundError=e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=g;let n=r("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),i=r("./src/forge-antlr/utils.ts"),o=r("./node_modules/lodash/lodash.js"),s=r("./src/ForgeExprFreeVariableFinder.ts"),a=r("./src/NumericConstraintOptimizer.ts");function l(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function u(t){return Array.isArray(t)}function c(t){return"boolean"==typeof t}function h(t){return"number"==typeof t}function d(t){return h(t)?t:function(t){return Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&1===t[0].length&&"number"==typeof t[0][0]}(t)?t[0][0]:void 0}function p(t){return JSON.stringify(t)}function f(t,e){let r=new Set(e.map(p));return t.every((t=>r.has(p(t))))}function g(t,e){return t.length===e.length&&f(t,e)&&f(e,t)}function m(t){let e=new Set,r=[];for(let n of t){let t=p(n);e.has(t)||(e.add(t),r.push(n))}return r}function y(t){let e=t.map((t=>t.flat()));if(0===e.length)return[[]];if(e.some((t=>0===t.length)))return[];let r=[[]];for(let t of e){let e=[];for(let n of r)for(let r of t)e.push([...n,r]);r=e}return r}function _(t){if(0===t.length)return[];t.forEach((t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")}));let e=new Map;for(let[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);let r=new Set;for(let t of e.keys()){let n=new Set,i=[...e.get(t)??[]],o=0;for(;oJSON.parse(t)))}let v=["add","subtract","multiply","divide","remainder"],x=["abs","sign"],b=["min","max"];e.SUPPORTED_BUILTINS=v.concat(x,b);class T extends n.AbstractParseTreeVisitor{constructor(t){super(),this.cachedResults=new Map,this.relationCache=null,this.relationIndexCache=null,this.instanceData=t,this.environmentStack=[],this.freeVariableFinder=new s.ForgeExprFreeVariableFinder(t),this.freeVariables=new Map}buildRelationCache(){if(null!==this.relationCache)return;this.relationCache=new Map,this.relationIndexCache=new Map;let t=this.instanceData.getRelations();for(let e of t){let t=e.tuples.map((t=>t.atoms));t=t.map((t=>t.map((t=>this.isConvertibleToNumber(t)?Number(t):t)))),t=t.map((t=>t.map((t=>this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t)))),this.relationCache.set(e.name,t);let r=new Map;for(let e of t)if(e.length>0){let t=e[0];r.has(t)||r.set(t,[]),r.get(t).push(e)}this.relationIndexCache.set(e.name,r)}}updateFreeVariables(t){if(0===this.freeVariables.size&&(this.freeVariables=t),0!==this.freeVariables.size)for(let[e,r]of t.entries()){this.freeVariables.has(e)||this.freeVariables.set(e,new Set);let t=this.freeVariables.get(e);for(let e of r)t.add(e)}}constructFreeVariableKey(t){let e=Object.keys(t);return e.sort(),e.map((e=>{let r=t[e];return`${e}=${Array.isArray(r)?JSON.stringify(r):String(r)}`})).join("|")}getLabelForValue(t){if("number"==typeof t||"boolean"==typeof t)return String(t);if("string"==typeof t){let e=this.instanceData.getAtoms().find((e=>e.id===t));if(e)return void 0!==e.label?e.label:e.id}return console.error(`No atom found for value: ${t}`),t}getLabelAsString(t){if("number"==typeof t||"boolean"==typeof t)return String(t);let e=this.getLabelForValue(t);return String(e)}getLabelAsBoolean(t){if("boolean"==typeof t)return t;if("number"==typeof t)return 0!==t;let e=this.getLabelForValue(t),r=String(e).toLowerCase();if("true"===r)return!0;if("false"===r)return!1;let n=Number(e);return isNaN(n)?""!==r:0!==n}getLabelAsNumber(t){if("number"==typeof t)return t;let e=this.getLabelForValue(t),r=Number(e);if(isNaN(r))throw new Error(`Cannot convert label "${e}" to number`);return r}isConvertibleToNumber(t){return"number"==typeof t||"string"==typeof t&&!isNaN(Number(t))}isConvertibleToBoolean(t){return"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t)}convertToBoolean(t){if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)}dotJoin(t,e,r){let n,i=l(t)?[[t]]:t,o=l(e)?[[e]]:e;if(r&&this.relationIndexCache&&(n=this.relationIndexCache.get(r)),!n){n=new Map;for(let t of o){let e=t[0];n.has(e)||n.set(e,[]),n.get(e).push(t)}}let s=[];for(let t of i){let e=t[t.length-1],r=n.get(e);if(r)for(let e of r)s.push([...t.slice(0,t.length-1),...e.slice(1)])}if(s.some((t=>0===t.length)))throw new Error("Join would create a relation of arity 0");return m(s)}cacheResult(t,e,r){this.cachedResults.has(t)||this.cachedResults.set(t,new Map),this.cachedResults.get(t).set(e,r)}getIden(){let t=this.instanceData.getTypes(),e=[],r=new Set;for(let n of t)n.atoms.forEach((t=>{if(r.has(t.id))return;r.add(t.id);let n=t.id;isNaN(Number(n))?"true"==n||"#t"===n?n=!0:("false"==n||"#f"===n)&&(n=!1):n=Number(n),e.push([n,n])}));return e}aggregateResult(t,e){if(u(t)&&0===t.length)return e;if(u(e)&&0===e.length)return t;if(l(t)){if(l(e))return e;throw new Error("Expected nextResult to be a single value")}return l(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(let r of t.expr()){let t=this.visit(r);if(!c(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){let r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0,n={};for(let t of e)for(let e=this.environmentStack.length-1;e>=0;e--){let i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}let i,o=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)&&this.cachedResults.get(t).has(o))return this.cachedResults.get(t).get(o);if(t.LET_TOK()&&(i=[],i.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let s=i.expr(),l=[],u=[];for(let t in r)l.push(t),u.push(r[t]);let h,d=!1;if(!n&&l.length>=2&&(0,a.areAllNumericSets)(u)){let t=(0,a.detectNumericComparisonPattern)(s,l);t&&"none"!==t.type?(h=(0,a.generateOptimizedNumericCombinations)(l,u,t),d=!0):h=y(u)}else h=y(u);let p=[],f=!1,g=!1,m={env:{},type:"quantDecl"};this.environmentStack.push(m);for(let e=0;e1){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()&&f){this.environmentStack.pop();let e=!0;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()&&p.length>1){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}if(e.TWO_TOK()&&p.length>2){this.environmentStack.pop();let e=!1;return this.cacheResult(t,o,e),e}}}if(this.environmentStack.pop(),t.quant().ALL_TOK()){let e=!g;return this.cacheResult(t,o,e),e}if(t.quant().NO_TOK()){let e=!f;return this.cacheResult(t,o,e),e}if(t.quant().mult()){let e=t.quant().mult();if(e.LONE_TOK()){let e=p.length<=1;return this.cacheResult(t,o,e),e}if(e.SOME_TOK()){let e=f;return this.cacheResult(t,o,e),e}if(e.ONE_TOK()){let e=1===p.length;return this.cacheResult(t,o,e),e}if(e.TWO_TOK()){let e=2===p.length;return this.cacheResult(t,o,e),e}}}let s=this.visitChildren(t);if(void 0===i)return this.cacheResult(t,o,s),s;if(l(i))throw new Error("Expected results to be a tuple array");return l(s)?i.push([s]):i=i.concat(s),this.cacheResult(t,o,i),i}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");let e=this.visit(t.expr1());if(!c(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;let r=this.visit(t.expr1_5());if(!c(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");let e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!c(e)||!c(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");let e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!c(e)||!c(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!c(e))throw new Error("IMP operator expected 2 boolean operands!");let r=t.expr3()??[],n=r[0],i=r[1];if(t.ELSE_TOK()){if(!n||!i)throw new Error("Expected the ELSE operator to have 2 operands!");let t=this.visit(e?n:i);if(!c(t))throw new Error("IMP operator expected 2 boolean operands!");return t}if(!e)return!0;if(!n)throw new Error("Expected the IMP operator to have a consequent expression!");let o=this.visit(n);if(!c(o))throw new Error("IMP operator expected 2 boolean operands!");return o}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr4_5())throw new Error("Expected the AND operator to have 2 operands of the right type!");let e=this.visit(t.expr4());if(!c(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;let r=this.visit(t.expr4_5());if(!c(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4_5(t){let e=[];return t.UNTIL_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),e):t.RELEASE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),e):t.SINCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),e):t.TRIGGERED_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),e):this.visitChildren(t)}visitExpr5(t){let e=[];if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the temporal operator to have 1 operand!");let r=this.visit(t.expr5());if(t.NEG_TOK()){if(!c(r))throw new Error("Expected the negation operator to have a boolean operand!");return!r}return t.ALWAYS_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),e):t.EVENTUALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),e):t.AFTER_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),e):t.BEFORE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),e):t.ONCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),e):t.HISTORICALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),e):r}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");let r=this.visit(t.expr6()),i=this.visit(t.expr7()),o=d(r),s=d(i);switch(t.compareOp()?.text){case"=":if(l(r)&&l(i))e=r===i;else if(l(r)&&u(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(u(r)&&l(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!u(r)||!u(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=g(r,i)}break;case"<":if(void 0===o||void 0===s)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o":if(void 0===o||void 0===s)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>s;break;case"<=":if(void 0===o||void 0===s)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o<=s;break;case">=":if(void 0===o||void 0===s)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=o>=s;break;case"in":case"ni":{let n;n=u(r)&&u(i)?!!g(r,i)||f(r,i):!!u(i)&&i.some((t=>1===t.length&&t[0]===r)),e="ni"===t.compareOp()?.text?!n:n;break}case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");default:throw new Error(`Unexpected compare operator provided: ${t.compareOp()?.text}`)}}if(r){if(!c(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){let e=this.visit(t.expr8());return t.SET_TOK()?e:t.ONE_TOK()?u(e)&&1===e.length:t.TWO_TOK()?u(e)&&2===e.length:t.NO_TOK()?u(e)&&0===e.length:t.SOME_TOK()?u(e)&&e.length>0:t.LONE_TOK()?u(e)&&e.length<=1:e}visitExpr8(t){if(t.PLUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(l(e)&&l(r))return[[e],[r]];if(l(e)&&u(r)){if(0===r.length)return e;if(1===r[0].length)return m([[e],...r]);throw new Error("arity mismatch in set union!")}if(u(e)&&l(r)){if(0===e.length)return r;if(1===e[0].length)return m([...e,[r]]);throw new Error("arity mismatch in set union!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return m([...e,...r])}if(t.MINUS_TOK()){let e=this.visit(t.expr8()),r=this.visit(t.expr10());if(l(e)&&l(r))return e===r?[]:e;if(l(e)&&u(r)){if(0===r.length)return e;if(1===r[0].length)return r.some((t=>t[0]===e))?[]:e;throw new Error("arity mismatch in set difference!")}if(u(e)&&l(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter((t=>t[0]!==r));throw new Error("arity mismatch in set difference!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length){let t=new Set(r.map(p));return e.filter((e=>!t.has(p(e))))}}return this.visitChildren(t)}visitExpr9(t){let e=this.visitChildren(t);if(t.CARD_TOK()){if(!u(e))throw new Error("The cardinal operator must be applied to a set of tuples!");return e.length}return e}visitExpr10(t){if(t.PPLUS_TOK()){if(void 0===t.expr10()||void 0===t.expr11())throw new Error("Expected the pplus operator to have 2 operands of the right type!");throw this.visit(t.expr10()),this.visit(t.expr11()),new Error("**NOT IMPLEMENTING FOR NOW** pplus (`++`)")}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");let e=this.visit(t.expr11()),r=this.visit(t.expr12());if(l(e)&&l(r))return e===r?e:[];if(l(e)&&u(r)){if(0===r.length)return[];if(1===r[0].length)return r.some((t=>t[0]===e))?e:[];throw new Error("arity mismatch in set intersection!")}if(u(e)&&l(r)){if(0===e.length)return[];if(1===e[0].length)return e.some((t=>t[0]===r))?r:[];throw new Error("arity mismatch in set intersection!")}if(!u(e)||!u(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length){let t=new Set(r.map(p));return e.filter((e=>t.has(p(e))))}}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");let e=this.visit(t.expr12()),r=this.visit(t.expr13()),n=l(e)?[[e]]:e,i=l(r)?[[r]]:r;if(!u(n)||!u(i))throw new Error("Arrow operator operands must be tuple arrays or single values");let o=[];for(let t of n)for(let e of i)o.push([...t,...e]);return m(o)}return this.visitChildren(t)}visitExpr13(t){if(t.SUPT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the supertype operator to have 2 operands of the right type!");throw this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Supertype Operator (`:>`)")}if(t.SUBT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the subtype operator to have 2 operands of the right type!");throw this.visit(t.expr13()),this.visit(t.expr14()),new Error("**NOT IMPLEMENTING FOR NOW** Subtype Operator (`<:`)")}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){let e=this.visit(t.expr14()),r=this.visit(t.exprList());if("string"==typeof e){if(v.includes(e))return this.evaluateBinaryOperation(e,r);if(x.includes(e))return this.evaluateUnaryOperation(e,r);if(b.includes(e))return this.evaluateSetOperation(e,r)}return this.dotJoin(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr16())throw new Error("Expected the dot operator to have 2 operands of the right type!");let e,r=this.visit(t.expr15()),n=this.visit(t.expr16());if(u(n)&&this.relationCache)for(let[t,r]of this.relationCache.entries())if(r===n){e=t;break}return this.dotJoin(r,n,e)}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr16(t){let e=[];return t.PRIME_TOK()?(this.visit(t.expr16()),e.push(["**UNIMPLEMENTED** Primed Expression _'"]),e):this.visitChildren(t)}visitExpr17(t){if(t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()){let e,r,n=t.expr17();if(!n)throw new Error("Label operator requires an expression");if(t.GET_LABEL_TOK())e=t=>this.getLabelAsString(t),r="@:";else if(t.GET_LABEL_STR_TOK())e=t=>this.getLabelAsString(t),r="@str:";else if(t.GET_LABEL_BOOL_TOK())e=t=>this.getLabelAsBoolean(t),r="@bool:";else{if(!t.GET_LABEL_NUM_TOK())throw new Error("Unknown label operator");e=t=>this.getLabelAsNumber(t),r="@num:"}try{let t=this.visit(n);if(u(t)&&0===t.length){let t=n.text;t.startsWith("(")&&t.endsWith(")")&&(t=t.slice(1,-1));try{return e(t)}catch{return t}}if(l(t))return e(t);if(u(t))return 1===t.length&&1===t[0].length?e(t[0][0]):t.map((t=>t.map((t=>e(t)))));throw new Error(`${r} operator can only be applied to single values or tuple arrays`)}catch(t){if(t instanceof E){let t=n.text;t.startsWith("(")&&t.endsWith(")")&&(t=t.slice(1,-1));try{return e(t)}catch{return t}}throw t}}let e=this.visitChildren(t);if(t.TILDE_TOK()){if(u(e)&&e.length>0&&2===e[0].length)return e.map((t=>[t[1],t[0]]));throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(u(e))return _(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&u(e)){let t=_(e),r=this.getIden(),n=new Set;for(let t of r)n.add(p(t));for(let e of t)n.add(p(e));return Array.from(n).map((t=>JSON.parse(t)))}return e}getNameListValues(t){return t.COMMA_TOK()?[(0,i.getIdentifierName)(t.name()),...this.getNameListValues(t.nameList())]:[(0,i.getIdentifierName)(t.name())]}getQuantDeclValues(t){let e=t.nameList(),r=this.getNameListValues(e),n=t.expr(),i=this.visitExpr(n);l(i)&&(i=[[i]]);let o={};for(let t of r)o[t]=i;return o}getQuantDeclListValues(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){let e=[];if(t.const()){let e=t.const();if(void 0!==e.number()){let t=Number(e.number().text);return void 0!==e.MINUS_TOK()?-t:t}if(void 0!==e.IDEN_TOK()){let t=this.instanceData.getAtoms(),e=[];for(let r of t){let t=r.id;this.isConvertibleToNumber(t)?t=Number(t):this.isConvertibleToBoolean(t)&&(t=this.convertToBoolean(t)),e.push([t,t])}return e}if(void 0!==e.UNIV_TOK()){let t=this.instanceData.getAtoms(),e=[];for(let r of t){let t=r.id;this.isConvertibleToNumber(t)?t=Number(t):this.isConvertibleToBoolean(t)&&(t=this.convertToBoolean(t)),e.push([t])}return e}return"true"===e.text||"false"!==e.text&&`${e.text}`}if(t.qualName())return this.visitQualName(t.qualName());if(t.AT_TOK())throw new Error("`@` operator is Alloy specific; it is not supported by Forge!");if(t.BACKQUOTE_TOK())return this.visitChildren(t),e.push(["**UNIMPLEMENTED** Backquoted Name (`` `x` ``)"]),e;if(t.THIS_TOK())throw new Error("`this` is Alloy specific; it is not supported by Forge!");if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);let r=this.getQuantDeclListValues(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");let i=n.expr(),o=[],s=[];for(let t in r)o.push(t),s.push(r[t]);let l,u=!1;if(o.length>=2&&(0,a.areAllNumericSets)(s)){let t=(0,a.detectNumericComparisonPattern)(i,o);t&&"none"!==t.type?(l=(0,a.generateOptimizedNumericCombinations)(o,s,t),u=!0):l=y(s)}else l=y(s);let h=[],d={env:{},type:"quantDecl"};this.environmentStack.push(d);for(let t=0;t=0;t--){let e=this.environmentStack[t];if(void 0!==e.env[n])return e.env[n];if("predArgs"===e.type)break}if(this.instanceData.getTypes().map((t=>t.id)).includes(n)){let t=this.instanceData.getTypes().find((t=>t.id===n))?.atoms||[],e=new Set,i=[];for(let r of t)e.has(r.id)||(e.add(r.id),i.push(r.id));r=i.map((t=>[t]))}for(let t of this.instanceData.getTypes())if(t.atoms.map((t=>t.id)).includes(n)){r=[[n]];break}this.instanceData.getTypes().map((t=>t.id));let o=[n],s=new Set;for(;o.length>0;){let t=o.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");if(!s.has(t)){s.add(t);for(let e of this.instanceData.getTypes())if(e.id!==t&&e.types&&e.types.includes(t)){void 0===r&&(r=[]);for(let t of e.atoms)r.push([t.id]);o.push(e.id)}}}if(this.buildRelationCache(),this.relationCache.has(n))return this.relationCache.get(n);if(void 0!==r)return r=r.map((t=>t.map((t=>this.isConvertibleToNumber(t)?Number(t):t)))),r=r.map((t=>t.map((t=>this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t)))),r;if(e.SUPPORTED_BUILTINS.includes(n)||/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(n))return n;throw new E(`bad name ${n} referenced!`)}visitQualName(t){if(t.INT_TOK()){let t=this.instanceData.getTypes().find((t=>"Int"===t.id));if(!t)throw new Error('Type "Int" not found in instance data');let e=new Set,r=[];for(let n of t.atoms)e.has(n.id)||(e.add(n.id),r.push([Number(n.id)]));return r}return this.visitChildren(t)}evaluateBinaryOperation(t,e){if(l(e))throw new Error(`Expected 2 arguments for ${t}`);let r,n,i;if((0,o.isArray)(e[0])){if(!h(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0][0]}else{if(!h(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0]}if((0,o.isArray)(e[1])){if(!h(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1][0]}else{if(!h(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1]}if(("divide"===t||"remainder"===t)&&0===n)throw new Error("Division by zero is not allowed");switch(t){case"add":i=r+n;break;case"subtract":i=r-n;break;case"multiply":i=r*n;break;case"divide":i=Math.floor(r/n);break;case"remainder":i=r%n;break;default:throw new Error(`Unsupported operation: ${t}`)}return i}evaluateUnaryOperation(t,e){if(!l(e)||!h(e))throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);let r=e;if("abs"===t)return Math.abs(r);if("sign"===t)return r>0?1:r<0?-1:0;throw new Error(`Unsupported operation: ${t}`)}evaluateSetOperation(t,e){let r=[];if(l(e)){if(!h(e))throw new Error(`Expected a set of numbers for ${t}`);r=[e]}else{if(!u(e))throw new Error(`Expected a set of numbers for ${t}`);for(let n of e){if(1!==n.length)throw new Error(`${t} expects a set of arity 1 (single column)`);let e=n[0];if(!h(e))throw new Error(`${t} expects all elements to be numbers, got: ${typeof e}`);r.push(e)}}if(0===r.length)throw new Error(`${t} requires a non-empty set`);if("min"===t)return Math.min(...r);if("max"===t)return Math.max(...r);throw new Error(`Unsupported set operation: ${t}`)}}e.ForgeExprEvaluator=T;class E extends Error{constructor(t){super(t),this.name="NameNotFoundError"}}e.NameNotFoundError=E},"./src/ForgeExprFreeVariableFinder.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;let n=r("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),i=r("./src/forge-antlr/utils.ts"),o=r("./src/ForgeExprEvaluator.ts");function s(t){let e=new Set;for(let r of t.values())for(let t of r)e.add(t);return e}class a extends n.AbstractParseTreeVisitor{constructor(t){super(),this.instanceData=t}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(let[r,n]of e.entries()){t.has(r)||t.set(r,new Set);let e=t.get(r);for(let t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,s(e));let n=e.get(t);if(void 0!==r)for(let t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){let e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(let r of t.expr()){let t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){let e=(0,i.getIdentifierName)(t.name()),r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([(0,i.getIdentifierName)(t.name())])}getQuantDeclVarNames(t){let e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){let e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");let n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(let t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=this.visit(t.quantDeclList()),i=t.blockOrBar();if(void 0===i)throw new Error("expected to quantify over something!");if(void 0===i.BAR_TOK()||void 0===i.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");e=void 0!==i.block()?this.visit(i.block()):this.visit(i.expr());let o=this.aggregateResult(e,n),a=s(o),l=new Set;for(let t of a)r.has(t)||l.add(t);return o.set(t,l),o}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4_5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){let e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr16(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");let e,r=this.getQuantDeclListVarNames(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");e=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());let i=s(e),o=new Set;for(let t of i)r.has(t)||o.add(t);return e.set(t,o),e}let e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");let r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{let r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}visitName(t){let e=(0,i.getIdentifierName)(t);if("true"===e||"false"===e)return this.defaultResult();if(this.instanceData.getTypes().map((t=>t.id)).includes(e))return this.defaultResult();for(let t of this.instanceData.getTypes())if(t.atoms.map((t=>t.id)).includes(e))return this.defaultResult();for(let t of this.instanceData.getRelations())if(t.name===e)return this.defaultResult();if(o.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();let r=this.defaultResult();return r.set(t,new Set([e])),r}}e.ForgeExprFreeVariableFinder=a},"./src/NumericConstraintOptimizer.ts":(t,e)=>{function r(t){return t.map((t=>t[0]))}function n(t){if(0===t.length)return[[]];if(t.some((t=>0===t.length)))return[];let e=[[]];for(let r of t){let t=[];for(let n of e)for(let e of r)t.push([...n,e]);e=t}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.detectNumericComparisonPattern=function(t,e){let r=t.text;for(let t of e)for(let n of e)if(t!==n){if(r===`${t}<${n}`)return{type:"less_than",leftVar:t,rightVar:n};if(r===`${t}>${n}`)return{type:"greater_than",leftVar:t,rightVar:n};if(r===`${t}<=${n}`)return{type:"less_equal",leftVar:t,rightVar:n};if(r===`${t}>=${n}`)return{type:"greater_equal",leftVar:t,rightVar:n};if(r===`${t}!=${n}`)return{type:"not_equal",leftVar:t,rightVar:n};if(r===`not${t}=${n}`)return{type:"not_equal",leftVar:t,rightVar:n}}return null},e.areAllNumericSets=function(t){for(let e of t)for(let t of e)if(1!==t.length||"number"!=typeof t[0])return!1;return!0},e.generateOptimizedNumericCombinations=function(t,e,i){let o=new Map;t.forEach(((t,e)=>{o.set(t,e)}));let s=o.get(i.leftVar),a=o.get(i.rightVar);if(void 0===s||void 0===a)throw new Error(`Internal error: Pattern variables ${i.leftVar}, ${i.rightVar} not found in variable list`);let l=r(e[s]),u=r(e[a]),c=[],h=[];for(let n=0;n{for(let r of l)for(let i of u)if(e(r,i))if(0===c.length){let e=new Array(t.length);e[s]=r,e[a]=i,d.push(e)}else{let e=n(h);for(let n of e){let e=new Array(t.length);e[s]=r,e[a]=i;for(let t=0;ttt>e));break;case"less_equal":p(((t,e)=>t<=e));break;case"greater_equal":p(((t,e)=>t>=e));break;case"not_equal":p(((t,e)=>t!==e));break;default:return[]}return d}},"./src/SelectorSynthesizer.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SelectorSynthesisError=void 0,e.synthesizeSelector=function(t,e=3){return o(g(t.map((t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map((t=>t.id)))}))),l,e))},e.synthesizeBinaryRelation=function(t,e=3){return o(g(t.map((t=>{let e=new Set(Array.from(t.pairs).map((([t,e])=>`${t.id}\0${e.id}`)));return{datum:t.datum,target:e}})),u,e))},e.synthesizeSelectorWithWhy=function(t,e=3){let r=t.map((t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map((t=>t.id)))}))),n=g(r,l,e),i=o(n),s=new Map;return{expression:i,examples:r.map((t=>{let e=p(t.datum,s);return{datum:t.datum,target:t.target,result:c(n,e,l),why:m(n,e,l)}}))}},e.synthesizeBinaryRelationWithWhy=function(t,e=3){let r=t.map((t=>{let e=new Set(Array.from(t.pairs).map((([t,e])=>`${t.id}\0${e.id}`)));return{datum:t.datum,target:e}})),n=g(r,u,e),i=o(n),s=new Map;return{expression:i,examples:r.map((t=>{let e=p(t.datum,s);return{datum:t.datum,target:t.target,result:c(n,e,u),why:m(n,e,u)}}))}};let n=r("./src/index.ts");class i extends Error{}function o(t){switch(t.kind){case"identifier":return t.name;case"closure":return`^${a(o(t.child))}`;case"reflexive-closure":return`*${a(o(t.child))}`;case"transpose":return`~${a(o(t.child))}`;case"join":return`${s(t.left)}.${s(t.right)}`;case"union":return`(${o(t.left)} + ${o(t.right)})`;case"intersection":return`(${o(t.left)} & ${o(t.right)})`;case"difference":return`(${o(t.left)} - ${o(t.right)})`;case"comprehension":return`{${t.varName}: ${o(t.domain)} | ${o(t.body)}}`;case"all":return`(all ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"some":return`(some ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"no":return`(no ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"one":return`(one ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"lone":return`(lone ${t.varName}: ${o(t.domain)} | ${o(t.body)})`;case"and":return`(${o(t.left)} and ${o(t.right)})`;case"or":return`(${o(t.left)} or ${o(t.right)})`;case"implies":return`(${o(t.left)} => ${o(t.right)})`;case"iff":return`(${o(t.left)} <=> ${o(t.right)})`;case"not":return`!${a(o(t.child))}`;case"in":return`(${o(t.left)} in ${o(t.right)})`;case"eq":return`(${o(t.left)} = ${o(t.right)})`;case"neq":return`(${o(t.left)} != ${o(t.right)})`;case"lt":return`(${o(t.left)} < ${o(t.right)})`;case"gt":return`(${o(t.left)} > ${o(t.right)})`;case"lte":return`(${o(t.left)} <= ${o(t.right)})`;case"gte":return`(${o(t.left)} >= ${o(t.right)})`;case"box-join":return`${o(t.base)}[${t.args.map(o).join(", ")}]`}}function s(t){return"identifier"===t.kind||"closure"===t.kind||"reflexive-closure"===t.kind||"transpose"===t.kind||"box-join"===t.kind?o(t):`(${o(t)})`}function a(t){return t.startsWith("(")&&t.endsWith(")")?t:`(${t})`}function l(t){if("string"==typeof t)return new Set([t]);if(!Array.isArray(t))return null;let e=t,r=new Set;for(let t of e){if(!Array.isArray(t)||1!==t.length)return null;let e=t[0];if("string"==typeof e)r.add(e);else{if("number"!=typeof e)return null;r.add(String(e))}}return r}function u(t){if(!Array.isArray(t))return null;let e=t,r=new Set;for(let t of e){if(!Array.isArray(t)||2!==t.length)return null;let[e,n]=t,i="string"==typeof e?e:"number"==typeof e?String(e):null,o="string"==typeof n?n:"number"==typeof n?String(n):null;if(null===i||null===o)return null;r.add(`${i}\0${o}`)}return r}function c(t,e,r){let n=o(t);return r(e.evaluateExpression(n))}function h(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function d(t,e){if("univ"===t||"iden"===t)return"builtin";for(let r of e){if(r.getRelations().some((e=>e.name===t)))return"relation";if(r.getTypes().some((e=>e.id===t)))return"type"}return"other"}function p(t,e){let r=e.get(t);if(r)return r;let i=new n.SimpleGraphQueryEvaluator(t);return e.set(t,i),i}function f(t,e,r){for(let n of e){let e=c(t,n.evaluator,r);if(!e||!h(e,n.target))return!1}return!0}function g(t,e,r=3){if(0===t.length)throw new i("No examples provided for synthesis");let n=new Map,s=t.map((t=>({...t,evaluator:p(t.datum,n)}))),a=s.map((t=>t.datum)),l=function(t){let e=function(t){let e=t.map((t=>{let e=t.getTypes().map((t=>t.id)),r=t.getRelations().map((t=>t.name));return new Set([...e,...r])}));if(0===e.length)return new Set;let[r,...n]=e,i=new Set;for(let t of r)n.every((e=>e.has(t)))&&i.add(t);return i}(t);return["univ","iden"].forEach((t=>e.add(t))),Array.from(e).sort(((e,r)=>{let n={relation:0,type:1,builtin:2,other:3},i=n[d(e,t)],o=n[d(r,t)];return i!==o?i-o:e.localeCompare(r)})).map((t=>({kind:"identifier",name:t})))}(a);if(0===l.length)throw new i("No shared identifiers available across provided data instances");for(let t of l)if(f(t,s,e))return t;let u=function(t){let e=[],r=new Set,n=new Set,i=new Set;if(0===t.length)return e;let s=t[0];s.getRelations().forEach((t=>n.add(t.name))),s.getTypes().forEach((t=>i.add(t.id)));for(let e=1;et.name))),s=new Set(r.getTypes().map((t=>t.id)));for(let t of n)o.has(t)||n.delete(t);for(let t of i)s.has(t)||i.delete(t)}for(let t of n){let n=s.getRelations().find((e=>e.name===t));if(!n||n.types.length<2)continue;let a=n.types[0];for(let n of i){let i=s.getTypes().find((t=>t.id===n));if(i&&(n===a||i.types.includes(a)||s.getTypes().find((t=>t.id===a))?.types.includes(n))){let i={kind:"join",left:{kind:"identifier",name:n},right:{kind:"identifier",name:t}},s=o(i);r.has(s)||(r.add(s),e.push(i))}}}for(let t of n){let n=s.getRelations().find((e=>e.name===t));if(!n||n.types.length<2)continue;let a=n.types[n.types.length-1];for(let n of i){let i=s.getTypes().find((t=>t.id===n));if(i&&(n===a||i.types.includes(a)||s.getTypes().find((t=>t.id===a))?.types.includes(n))){let i={kind:"join",left:{kind:"identifier",name:t},right:{kind:"identifier",name:n}},s=o(i);r.has(s)||(r.add(s),e.push(i))}}}return e}(a);for(let t of u)if(f(t,s,e))return t;let c=[],h=new Set,g=new Set,m=[...l],y=(t,e)=>{let r=o(t);g.has(r)||h.has(r)||(c.push({node:t,depth:e}),h.add(r))};for(let t of u)g.add(o(t));for(l.forEach((t=>y(t,0)));c.length>0;){let t=c.shift(),n=o(t.node);if(h.delete(n),!g.has(n)){if(g.add(n),f(t.node,s,e))return t.node;if(!(t.depth>=r)){y({kind:"closure",child:t.node},t.depth+1),y({kind:"reflexive-closure",child:t.node},t.depth+1),y({kind:"transpose",child:t.node},t.depth+1);for(let e of m){let r=o(t.node),n=o(e),[i,s]=rm(t,e,r)))]}}}e.SelectorSynthesisError=i},"./src/errorListener.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,o){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},"./src/forge-antlr/ForgeLexer.ts":function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],d._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],d.VOCABULARY=new c.VocabularyImpl(d._LITERAL_NAMES,d._SYMBOLIC_NAMES,[]),d._serializedATNSegments=2,d._serializedATNSegment0='줝쪺֍꾺体؇쉁t͗\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tno\top\tpq\tqr\trs\tsø\n\fû\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ȑ\n:;;;;<<<<<<<Ȝ\n<==========ȧ\n=>>>>>??????ȳ\n?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDDɗ\nDEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\\\]]]]]]^^^^^^^______``aabbcccccˣ\ncdddeeefffgggghhhhiiiiiiijjkkll̂\nl\rll̃lll̈\nl\rll̉ľ\nlmmmmm̒\nm\rmm̓mmnnn̚\nn\fnn̝\vnoo̠\no\roo̡ooppppp̪\np\fpp̭\vpppqqqqq̵\nq\fqq̸\vqqqrrrrr̀\nr\frr̓\vrrrrrrssssssss͑\ns\fss͔\vssśt\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏiÑjÓkÕl×mÙnÛoÝpßqárãsåt\t$$^^2;^^bb&&11C\\aac|&&1;C\\aac|\v\f""\f\fͩ\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÓÕ×ÙÛÝßáãåçìî\tð\vó\rþĂċďđēěĞĠĥ!Ī#Į%IJ\'Ķ)Ļ+Ł-ņ/ň1Ŏ3œ5ŕ7ř9ś;ŝ=Ť?ŨAŮCŲEŶGžIƃKƈMƍOƏQƒSƖUƜWƤYư[Ƹ]ƽ_DŽaNJcnjeǐgǛiǥkǰmǽoȂqȆsȏuȑwțyȦ{Ȩ}ȲȴȺƒɂ…Ɉ‡ɖ‰ɘ‹ɟɪɰ‘ɷ“ɼ•ʉ—ʋ™ʎ›ʐʓŸʖ¡ʘ£ʚ¥ʜ§ʞ©ʠ«ʢ­ʧ¯ʭ±ʲ³ʷµʿ·˂¹˅»ˋ½˒¿˘Á˚ØÅˢÇˤÉ˧Ë˪Í˭Ï˱Ñ˵Ó˼Õ˾×́Ù̍Û̗Ý̟ß̥á̰ã̻å͉çèqèéréêgêëpëìí]íîï_ï\bðñcñòuò\nóù$ôø\nõö^öø\v÷ô÷õøûù÷ùúúüûùüý$ý\fþÿxÿĀcĀātāĂăcăĄdĄąuąĆvĆćtćĈcĈĉeĉĊvĊċČuČčkčĎiĎďĐ}ĐđĒĒēĔgĔĕzĕĖvĖėgėĘpĘęfęĚuĚěĜkĜĝpĝĞğ-ğĠġnġĢqĢģpģĤgĤĥĦuĦħqħĨoĨĩgĩ ĪīqīĬpĬĭgĭ"Įįvįİyİıqı$IJijuijĴgĴĵvĵ&ĶķhķĸwĸĹpĹĺeĺ(ĻļrļĽhĽľwľĿpĿŀeŀ*ŁłfłŃkŃńuńŅlŅ,ņŇ<Ň.ňʼnyʼnŊjŊŋgŋŌcŌōvō0ŎŏrŏŐtŐőgőŒfŒ2œŔ0Ŕ4ŕŖhŖŗwŗŘpŘ6řŚ*Ś8śŜ+Ŝ:ŝŞcŞşuşŠuŠšgšŢtŢţvţ<ŤťtťŦwŦŧpŧ>ŨũeũŪjŪūgūŬeŬŭmŭ@ŮůhůŰqŰűtűBŲųdųŴwŴŵvŵDŶŷgŷŸzŸŹcŹźeźŻvŻżnżŽ{ŽFžſpſƀqƀƁpƁƂgƂHƃƄwƄƅpƅƆkƆƇxƇJƈƉkƉƊfƊƋgƋƌpƌLƍƎ/ƎNƏƐkƐƑuƑPƒƓuƓƔcƔƕvƕRƖƗwƗƘpƘƙuƙƚcƚƛvƛTƜƝvƝƞjƞƟgƟƠqƠơtơƢgƢƣoƣVƤƥhƥƦqƦƧtƧƨiƨƩgƩƪaƪƫgƫƬtƬƭtƭƮqƮƯtƯXưƱeƱƲjƲƳgƳƴeƴƵmƵƶgƶƷfƷZƸƹvƹƺgƺƻuƻƼvƼ\\ƽƾgƾƿzƿǀrǀǁgǁǂeǂǃvǃ^DŽDžuDždžwdžLJkLJLjvLjljglj`NJNj~NjbnjǍcǍǎnǎǏnǏdǐǑuǑǒwǒǓhǓǔhǔǕkǕǖeǖǗkǗǘgǘǙpǙǚvǚfǛǜp',d._serializedATNSegment1="ǜǝgǝǞeǞǟgǟǠuǠǡuǡǢcǢǣtǣǤ{ǤhǥǦeǦǧqǧǨpǨǩuǩǪkǪǫuǫǬvǬǭgǭǮpǮǯvǯjǰDZkDZDzpDzdzedzǴqǴǵpǵǶuǶǷkǷǸuǸǹvǹǺgǺǻpǻǼvǼlǽǾyǾǿkǿȀvȀȁjȁnȂȃnȃȄgȄȅvȅpȆȇdȇȈkȈȉpȉȊfȊrȋȌ~ȌȐ~ȍȎqȎȐtȏȋȏȍȐtȑȒzȒȓqȓȔtȔvȕȖ>Ȗȗ?ȗȜ@ȘșkșȚhȚȜhțȕțȘȜxȝȞkȞȟoȟȠrȠȡnȡȢkȢȣgȣȧuȤȥ?ȥȧ@ȦȝȦȤȧzȨȩgȩȪnȪȫuȫȬgȬ|ȭȮ(Ȯȳ(ȯȰcȰȱpȱȳfȲȭȲȯȳ~ȴȵwȵȶpȶȷvȷȸkȸȹnȹ€ȺȻtȻȼgȼȽnȽȾgȾȿcȿɀuɀɁgɁ‚ɂɃuɃɄkɄɅpɅɆeɆɇgɇ„ɈɉvɉɊtɊɋkɋɌiɌɍiɍɎgɎɏtɏɐgɐɑfɑ†ɒɗ#ɓɔpɔɕqɕɗvɖɒɖɓɗˆɘəcəɚnɚɛyɛɜcɜɝ{ɝɞuɞŠɟɠgɠɡxɡɢgɢɣpɣɤvɤɥwɥɦcɦɧnɧɨnɨɩ{ɩŒɪɫcɫɬhɬɭvɭɮgɮɯtɯŽɰɱdɱɲgɲɳhɳɴqɴɵtɵɶgɶɷɸqɸɹpɹɺeɺɻgɻ’ɼɽjɽɾkɾɿuɿʀvʀʁqʁʂtʂʃkʃʄeʄʅcʅʆnʆʇnʇʈ{ʈ”ʉʊ%ʊ–ʋʌ-ʌʍ-ʍ˜ʎʏ(ʏšʐʑ>ʑʒ<ʒœʓʔ<ʔʕ@ʕžʖʗ)ʗ ʘʙ€ʙ¢ʚʛ`ʛ¤ʜʝ,ʝ¦ʞʟBʟ¨ʠʡbʡªʢʣvʣʤjʤʥkʥʦuʦ¬ʧʨuʨʩgʩʪzʪʫrʫʬtʬ®ʭʮkʮʯpʯʰuʰʱvʱ°ʲʳgʳʴxʴʵcʵʶnʶ²ʷʸgʸʹzʹʺcʺʻoʻʼrʼʽnʽʾgʾ´ʿˀ/ˀˁ@ˁ¶˂˃B˃˄<˄¸˅ˆBˆˇuˇˈvˈˉtˉˊ<ˊºˋˌBˌˍdˍˎqˎˏqˏːnːˑ<ˑ¼˒˓B˓˔p˔˕w˕˖o˖˗<˗¾˘˙?˙À˚˛>˛Â˜˝@˝Ä˞˟>˟ˣ?ˠˡ?ˡˣ>ˢ˞ˢˠˣÆˤ˥@˥˦?˦È˧˨p˨˩k˩Ê˪˫p˫ˬqˬÌ˭ˮuˮ˯w˯˰o˰Î˱˲K˲˳p˳˴v˴Ð˵˶q˶˷r˷˸v˸˹k˹˺q˺˻p˻Ò˼˽.˽Ô˾˿1˿Ö̀̂\t́̀̂̃̃́̃̄̄̋̅̇0̆̈\ṫ̆̈̉̉̇̉̊̊̌̋̅̋̌̌Ø̍̑b̎̒\n̏̐^̐̒\v̖̑̎̑̏̒̓̓̑̓̔̔̕̕b̖Ứ̗\t̘̚\t̛̛̙̘̝̙̜̜̚Ư̝̞̠̈\t̡̡̡̢̢̟̞̠̟̣̣̤\bo̤Þ̥̦1̧̦1̧̨̫̪\n\b̨̩̪̭̫̩̫̬̬̮̭̫̮̯\bp̯à̰̱/̱̲/̶̵̲̳\n\b̴̵̸̶̴̶̷̷̸̶̳̹̹̺\bq̺â̻̼1̼̽,̽́̾̀\v̿̾̀̓́͂́̿͂̈́̓́̈́ͅ,͆ͅ1͇͇͈͆\br͈ä͉͊%͊͋n͋͌c͍͌p͍͎i͎͒͏͑\n\b͐͏͔͓͓͕͔͕͖͑͒͐͒͒\bs͖æ÷ùȏțȦȲɖˢ̶̡̛̫̃̉̋̑̓́͒\b",d._serializedATN=h.join([d._serializedATNSegment0,d._serializedATNSegment1],"")},"./src/forge-antlr/ForgeListenerImpl.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;let n=r("./src/forge-antlr/utils.ts"),i=r("./src/forge-antlr/ForgeSyntaxConstructs.ts");function o(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function s(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t);return new i.Block(e,r,n,s,[])}function a(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t);return new i.Expr(e,r,n,s,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:a}=o(t),l=this.getAllNames(t.nameList()),u=t.mult()?.toStringTree(),c=t.sigExt()?.toStringTree(),h=t.block(),d=h?s(h):void 0;for(let t of l){let o=new i.Sig(e,r,n,a,t,d,c,u);this._sigs.push(o)}}exitPredDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=(0,n.getIdentifierName)(t.name()),c=t.paraDecls(),h=c?s(c):void 0,d=s(t.block()),p=new i.Predicate(e,r,a,l,u,h,d);this._predicates.push(p)}exitFunDecl(t){let{startLine:e,startColumn:r,endLine:i,endColumn:s}=o(t),a=(0,n.getIdentifierName)(t.name()),l=new Function(e,r,i,s,a);this._functions.push(l)}exitTestDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=t.name(),c=u?(0,n.getIdentifierName)(u):Math.random().toString(36).substring(7),h=t.block(),d=h?s(h):void 0,p=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),g=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown",m=new i.Test(e,r,a,l,c,g,d,f,p);this._tests.push(m)}exitSatisfiabilityDecl(t){let{startLine:e,startColumn:r,endLine:n,endColumn:s}=o(t),l=a(t.expr()),u=t.scope()?.toStringTree(),c=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",d=new i.SatisfiabilityAssertionTest(e,r,n,s,l,h,c,u);this._satisfiabilityAssertions.push(d)}exitPropertyDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:l}=o(t),u=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===u)throw new Error("Property relation must be either necessary or sufficient.");let c=a(t.expr()),h=(0,n.getIdentifierName)(t.name()),d=t.scope()?.toStringTree(),p=t.bounds()?.toStringTree(),f=new i.AssertionTest(e,r,s,l,h,c,u,p,d);this._assertions.push(f)}exitQuantifiedPropertyDecl(t){let{startLine:e,startColumn:r,endLine:l,endColumn:u}=o(t),c=!!t.DISJ_TOK(),h=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===h)throw new Error("Property relation must be either necessary or sufficient.");let d=(0,n.getIdentifierName)(t.name()),p=a(t.expr()),f=t.exprList(),g=f?s(f):void 0,m=t.scope()?.toStringTree(),y=t.bounds()?.toStringTree(),_=t.quantDeclList(),v=_?s(_):void 0,x=new i.QuantifiedAssertionTest(e,r,l,u,d,p,h,c,v,y,m,g);this._quantifiedAssertions.push(x)}exitConsistencyDecl(t){let{startLine:e,startColumn:r,endLine:s,endColumn:l}=o(t),u=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===u)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let c="consistent"===u,h=(0,n.getIdentifierName)(t.name()),d=a(t.expr()),p=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),g=new i.ConsistencyAssertionTest(e,r,s,l,h,d,c,f,p);this._consistencyAssertions.push(g)}exitExampleDecl(t){let{startLine:e,startColumn:r,endLine:a,endColumn:l}=o(t),u=(0,n.getIdentifierName)(t.name()),c=s(t.expr()),h=s(t.bounds()),d=new i.Example(e,r,a,l,u,c,h);this._examples.push(d)}getAllNames(t){let e=[];return function t(r){r.name()&&e.push(r.name());let n=r.nameList();n&&t(n)}(t),e.map((t=>(0,n.getIdentifierName)(t)))}}},"./src/forge-antlr/ForgeParser.ts":function(t,e,r){var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),s=0;s'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],_._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],_.VOCABULARY=new m.VocabularyImpl(_._LITERAL_NAMES,_._SYMBOLIC_NAMES,[]),_._serializedATNSegments=2,_._serializedATNSegment0="줝쪺֍꾺体؇쉁tϼ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tV¯\n´\n¸\nÀ\n\fÃ\vÆ\n\fÉ\vÌ\n\fÏ\vÑ\nÙ\nÝ\nã\nå\nø\nû\nþ\nā\nĆ\nĊ\nĎ\n\b\b\b\b\b\b\bĖ\n\b\f\b\bę\v\b\bě\n\b\t\t\n\n\v\v\f\fĤ\n\f\f\f\f\fĩ\n\f\f\f\r\rĮ\n\r\r\r\r\rij\n\r\r\rĸ\nŅ\nʼn\nō\nŖ\nś\nŞ\nŢ\nũ\nŮ\nű\nŵ\nź\nž\nƁ\nƅ\nƋ\nƏ\nƕ\n\fƘ\vƠ\nƤ\nƧ\nư\nƳ\nƺ\nƾ\nǃ\nǐ\nǓ\nǗ\nǠ\nǤ\nǭ\nDZ\nǹ\n\fǼ\vȆ\n   Ȋ\n     ȏ\n !!\"\"\"\"###ș\n#\f##Ȝ\v###$$$$ȣ\n$%%%%%ȩ\n%&&&ȭ\n&&&&&Ȳ\n&\f&&ȵ\v&&&&&Ⱥ\n&''''''Ɂ\n'''Ʉ\n'(())))))ɍ\n)******ɔ\n*++++++ɛ\n+,,,,,,ɢ\n,------ɩ\n-......ɰ\n.//////ɷ\n/000000ɾ\n0111111111111ʋ\n11111ʐ\n12222222ʘ\n2\f22ʛ\v23333333ʣ\n3\f33ʦ\v34444444ʮ\n4\f44ʱ\v45555555ʹ\n55ʻ\n56666666˃\n6\f66ˆ\v6777777777777777777˙\n78888888888888888˪\n8999999˱\n99999˶\n9\f99˹\v9::::˾\n:;;;;;;;̆\n;\f;;̉\v;<<<<̎\n<=======̖\n=\f==̙\v=>>>>>>>̡\n>\f>>̤\v>????????̭\n?\f??̰\v?@@@@@@@̸\n@\f@@̻\v@AAAAAAAAAͅ\nA\fAA͈\vABBBBBBBB͑\nBBBBB͖\nB\fBB͙\vBCCCCCC͠\nC\fCCͣ\vCDDDDͨ\nDEEEEEEEEEEEEEEEEEEEͼ\nEFFFFFF΃\nFGGHHIIIII΍\nIJJKKKLLLLLLLMMMMMMNNNNNNΦ\nNOOPPPά\nP\fPPί\vPPPPγ\nPPPζ\nPQQQQQQν\nQRRRRRRRRφ\nRSSSSSSSώ\nS\rSSϏSϒ\nSTTTTTTTϚ\nTTTTTϟ\nT\fTTϢ\vTUUUUUUUϪ\nUUUUUϯ\nU\fUUϲ\vUVVVVVVVϺ\nVVbdfjptxz|~€‚„¦¨W\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª !*.*+--4567))afnogg((OPRT]`\\\\kkю¬»Ð\bä\n÷\fúĚĜĞĠģĭķľŀ ŝ\"ş$Ũ&Ź(Ɗ*ƒ,ƣ.Ʀ0Ʋ2ƴ4ƿ6ǘ8ǥ:Dz<ȅ>ȉ@ȐBȒDȖFȢHȨJȹLȻNɅPɌRɓTɚVɡXɨZɯ\\ɶ^ɽ`ʏbʑdʜfʧhʺjʼl˘n˩p˫r˽t˿v̍x̏z̚|̥~̱€̼‚͐„͚†ͧˆͻŠ΂Œ΄ŽΆΈ’Ύ”ΐ–Γ˜ΚšΥœΧžε μ¢υ¤ϑ¦ϙ¨ϩªϹ¬®­¯®­®¯¯³°±J&±²²´³°³´´µµ·N(¶¸ ·¶·¸¸¹¹ºD#º»¼`1¼½½¾À\b¿¾ÀÃÁ¿ÁÂÂÇÃÁÄÆ\nÅÄÆÉÇÅÇÈÈÑÉÇÊÌ”KËÊÌÏÍËÍÎÎÑÏÍÐÁÐÍÑÒÓÓØJ&ÔÕÕÖR*Ö××ÙØÔØÙÙÜÚÛÛÝN(ÜÚÜÝÝåÞßßâàááãN(âàâããåäÒäÞå\tæø\fçøèøéø\"êø$ëø(ìøŒGíø˜Mîø’JïøL'ðøIñø–Lòø6óø4ôø2õø8öø:÷æ÷ç÷è÷é÷ê÷ë÷ì÷í÷î÷ï÷ð÷ñ÷ò÷ó÷ô÷õ÷öø\vùû\búùúûûýüþ\týüýþþĀÿā\tĀÿĀāāĂĂă\năąP)ĄĆ\bąĄąĆĆććĉ\vĈĊX-ĉĈĉĊĊċċč\fČĎD#čČčĎĎ\rďĐ\rĐěJ&đĒĒėJ&ēĔĔĖJ&ĕēĖęėĕėĘĘěęėĚďĚđěĜĝ\tĝĞğ\tğĠġ\tġĢĤģĢģĤĤĥĥĦP)ĦĨħĩ\vĨħĨĩĩĪĪī`1īĬĮĭĬĭĮĮįįİP)İIJıijIJıIJijijĴĴĵ`1ĵĶĸ\bķĶķĸĸĹĹĺP)ĺĻĻļ\nļĽŠFĽľĿĿŀńŁłJ&łŃŃŅńŁńŅŅņņňN(Ňʼn ňŇňʼnʼnŊŊŌŋō\vŌŋŌōōŎŎŏ`1ŏŐ\vŐő`1őŒ\fŒœŕŔŖT+ŕŔŕŖŖŗŗŞŘŚřśT+ŚřŚśśŜŜŞŝœŝŘŞ!şšŠŢN(šŠšŢŢţţŤD#Ť#ťŦN(ŦŧŧũŨťŨũũŪŪŭ\tūŮJ&ŬŮD#ŭūŭŬŭŮŮŰůű,ŰůŰűűŴŲų\"ųŵžPŴŲŴŵŵ%ŶŷN(ŷŸŸźŹŶŹźźŽŻžJ&żžD#ŽŻŽżžƀſƁ,ƀſƀƁƁƄƂƃ\"ƃƅžPƄƂƄƅƅƆƆƇ)Ƈƈ\tƈ'ƉƋ/ƊƉƊƋƋƌƌƎ0ƍƏN(ƎƍƎƏƏƐƐƑ*Ƒ)ƒƖ\vƓƕ&ƔƓƕƘƖƔƖƗƗƙƘƖƙƚ\fƚ+ƛƜ\"ƜƟœOƝƞ#ƞƠ\\/ƟƝƟƠƠƤơƢ\"ƢƤ\\/ƣƛƣơƤ-ƥƧ$ƦƥƦƧƧƨƨƩœOƩƪJ&ƪ/ƫƳ%ƬƳ&ƭƳ'Ʈư(ƯƮƯưưƱƱƳœOƲƫƲƬƲƭƲƯƳ1ƴƵƵƶ`1ƶƷ)Ʒƹ\tƸƺ,ƹƸƹƺƺƽ",_._serializedATNSegment1='ƻƼ"ƼƾžPƽƻƽƾƾ3ƿǀǀǂ3ǁǃǂǁǂǃǃDŽDŽDžV,Dždž2džLJ`1LJLj)Ljlj\t\bljNJ"NJǏN(NjnjnjǍ^0ǍǎǎǐǏNjǏǐǐǒǑǓ,ǒǑǒǓǓǖǔǕ"ǕǗžPǖǔǖǗǗ5ǘǙǙǚ`1ǚǛ)Ǜǜ\t\bǜǝ"ǝǟN(ǞǠ,ǟǞǟǠǠǣǡǢ"ǢǤžPǣǡǣǤǤ7ǥǦǦǧ`1ǧǨ)Ǩǩ\t\tǩǪ8ǪǬN(ǫǭ,ǬǫǬǭǭǰǮǯ"ǯDZžPǰǮǰDZDZ9Dzdz/dzǴ1Ǵǵ"ǵǶN(ǶǺ\vǷǹ<ǸǷǹǼǺǸǺǻǻǽǼǺǽǾ\fǾ;ǿȆ–LȀȆ(ȁȆ4ȂȆ6ȃȆ2ȄȆ8ȅǿȅȀȅȁȅȂȅȃȅȄȆ=ȇȊ\tȈȊȉȇȉȈȉȊȊȋȋȎ\\Ȍȏ\tȍȏȎȌȎȍȎȏȏ?Ȑȑ\t\nȑAȒȓN(ȓȔaȔȕ`1ȕCȖȚ\vȗș`1ȘȗșȜȚȘȚțțȝȜȚȝȞ\fȞEȟȣD#Ƞȡ2ȡȣ`1ȢȟȢȠȣGȤȩ3ȥȩgȦȩhȧȩ\tȨȤȨȥȨȦȨȧȩIȪȫWȫȭlȬȪȬȭȭȳȮȯN(ȯȰlȰȲȱȮȲȵȳȱȳȴȴȶȵȳȶȺN(ȷȺiȸȺhȹȬȹȷȹȸȺKȻȼjȼɃJ&ȽɄJ&ȾɄȿɁ(ɀȿɀɁɁɂɂɄœOɃȽɃȾɃɀɄMɅɆ\t\vɆOɇɍN(ɈɉN(ɉɊkɊɋP)ɋɍɌɇɌɈɍQɎɔJ&ɏɐJ&ɐɑkɑɒR*ɒɔɓɎɓɏɔSɕɛ\fɖɗ\fɗɘkɘəT+əɛɚɕɚɖɛUɜɢ\rɝɞ\rɞɟkɟɠV,ɠɢɡɜɡɝɢWɣɩɤɥɥɦkɦɧX-ɧɩɨɣɨɤɩYɪɰB"ɫɬB"ɬɭkɭɮZ.ɮɰɯɪɯɫɰ[ɱɷ.ɲɳ.ɳɴkɴɵ\\/ɵɷɶɱɶɲɷ]ɸɾ`1ɹɺ`1ɺɻkɻɼ^0ɼɾɽɸɽɹɾ_ɿʐb2ʀʁ9ʁʂZ.ʂʃF$ʃʐʄʅ:ʅʆZ.ʆʇF$ʇʐʈʊH%ʉʋʊʉʊʋʋʌʌʍV,ʍʎF$ʎʐʏɿʏʀʏʄʏʈʐaʑʒ\b2ʒʓd3ʓʙʔʕ\fʕʖ;ʖʘd3ʗʔʘʛʙʗʙʚʚcʛʙʜʝ\b3ʝʞf4ʞʤʟʠ\fʠʡ<ʡʣf4ʢʟʣʦʤʢʤʥʥeʦʤʧʨ\b4ʨʩh5ʩʯʪʫ\fʫʬ=ʬʮh5ʭʪʮʱʯʭʯʰʰgʱʯʲʻj6ʳʴj6ʴʵ>ʵʸh5ʶʷ?ʷʹh5ʸʶʸʹʹʻʺʲʺʳʻiʼʽ\b6ʽʾl7ʾ˄ʿˀ\fˀˁ@ˁ˃l7˂ʿ˃ˆ˄˂˄˅˅kˆ˄ˇ˙n8ˈˉn8ˉˊAˊˋn8ˋ˙ˌˍn8ˍˎBˎˏn8ˏ˙ːˑn8ˑ˒C˒˓n8˓˙˔˕n8˕˖D˖˗n8˗˙˘ˇ˘ˈ˘ˌ˘ː˘˔˙m˚˪p9˛˜E˜˪n8˝˞F˞˪n8˟ˠGˠ˪n8ˡˢHˢ˪n8ˣˤIˤ˪n8˥˦J˦˪n8˧˨K˨˪n8˩˚˩˛˩˝˩˟˩ˡ˩ˣ˩˥˩˧˪o˫ˬ\b9ˬ˭r:˭˷ˮ˰\f˯˱E˰˯˰˱˱˲˲˳@!˳˴r:˴˶˵ˮ˶˹˷˵˷˸˸q˹˷˺˾t;˻˼\t\f˼˾t;˽˺˽˻˾s˿̀\b;̀́v<́̇̂̃\f̃̄\t\r̄̆x=̅̂̆̉̇̅̇̈̈ủ̇̊̎x=̋̌Ľ̎v<̍̊̍̋̎w̏̐\b=̐̑z>̗̑̒̓\f̓̔M̖̔z>̖̙̗̗̘̘̒̕̕y̛̙̗̚\b>̛̜|?̢̜̝̞\f̞̟N̡̟|?̡̢̢̠̝̤̠̣̣{̢̤̥̦\b?̧̦~@̧̨̮̩\f̩̪> ̪̫~@̨̫̭̬̭̰̮̬̮̯̯}̰̮̱̲\b@̲̳€A̴̵̳̹\f̵̶\t̶̸€A̷̴̸̷̻̹̹̺̺̻̹̼̽\bA̽̾‚B̾͆̿̀\f̀́́͂^0͈͇͇͂̓̓̈́̿͆̈́͆ͅͅ͈͉͆͊\bB͊͑„C͋͌N(͍͍͎͌^0͎͏͏͉͓͑͐͐͋͑͗͒\f͓͔͔͖„C͕͖͙͕͒͗͗͘͘ƒ͙͚͗͛\bC͛͜†D͜͡͝͞\f͞͠Qͣ͟͟͢͢͝͠͡͡…ͣͤͨ͡ˆEͥͦ\tͦͨ†Dͧͤͧͥͨ‡ͩͼ0ͪͼJ&ͫͬUͬͼN(ͭͮVͮͼN(ͯͼWͰͱ\vͱͲV,ͲͳF$ͳʹ\fʹͼ͵ͶͶͷ`1ͷ͸͸ͼ͹ͼD#ͺͼŽHͻͩͻͪͻͫͻͭͻͯͻͰͻ͵ͻ͹ͻͺͼ‰ͽ΃J&;ͿJ&Ϳ΀\\΀΁ŠF΁΃΂ͽ΂;΃‹΄΅ŽH΅Ά·X·ΈΉYΉΊN(ΊΌžP΋΍,Ό΋Ό΍΍‘ΎΏΏ“ΐΑZΑΒ`1Β•ΓΔ[ΔΕN(ΕΖ)ΖΗ`1ΗΘ"ΘΙžPΙ—ΚΛN(ΛΜΜΝŠFΝΞaΞΟ`1Ο™ΠΦœOΡ΢œO΢ΣkΣΤšNΤΦΥΠΥΡΦ›ΧΨm؝Ωέ\vΪά¢RΫΪάίέΫέήήΰίέΰζ\fαγ$βαβγγδδζJ&εΩεβζŸηθVθνN(ινœOκλ(λνœOμημιμκν¡ξο¤Sοπ@!πρ¦Tρφςσgσφ¤SτφJ&υξυςυτφ£χψLψϒJ&ωϒJ&ϊύ QϋόόώJ&ύϋώϏϏύϏϐϐϒϑχϑωϑϊϒ¥ϓϔ\bTϔϚ¨Uϕϖϖϗ¦TϗϘϘϚϙϓϙϕϚϠϛϜ\fϜϝϝϟ¨UϞϛϟϢϠϞϠϡϡ§ϢϠϣϤ\bUϤϥϥϦ¨UϦϧϧϪϨϪªVϩϣϩϨϪϰϫϬ\fϬϭ\tϭϯªVϮϫϯϲϰϮϰϱϱ©ϲϰϳϺ QϴϺJ&ϵ϶϶Ϸ¦TϷϸϸϺϹϳϹϴϹϵϺ«x®³·ÁÇÍÐØÜâä÷úýĀąĉčėĚģĨĭIJķńňŌŕŚŝšŨŭŰŴŹŽƀƄƊƎƖƟƣƦƯƲƹƽǂǏǒǖǟǣǬǰǺȅȉȎȚȢȨȬȳȹɀɃɌɓɚɡɨɯɶɽʊʏʙʤʯʸʺ˄˘˩˰˷˽̢̗̮̹̇̍͆͐͗ͧ͡ͻ΂ΌΥέβεμυϏϑϙϠϩϰϹ',_._serializedATN=y.join([_._serializedATNSegment0,_._serializedATNSegment1],"");class v extends d.ParserRuleContext{PRED_TOK(){return this.getToken(_.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,I)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=v;class x extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}EOF(){return this.getToken(_.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=x;class b extends d.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(T):this.getRuleContext(t,T)}paragraph(t){return void 0===t?this.getRuleContexts(E):this.getRuleContext(t,E)}evalDecl(t){return void 0===t?this.getRuleContexts(Kt):this.getRuleContext(t,Kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=b;class T extends d.ParserRuleContext{OPEN_TOK(){return this.getToken(_.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(_.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=T;class E extends d.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,O)}predDecl(){return this.tryGetRuleContext(0,v)}funDecl(){return this.tryGetRuleContext(0,k)}assertDecl(){return this.tryGetRuleContext(0,P)}cmdDecl(){return this.tryGetRuleContext(0,M)}testExpectDecl(){return this.tryGetRuleContext(0,K)}sexprDecl(){return this.tryGetRuleContext(0,Dt)}queryDecl(){return this.tryGetRuleContext(0,Ft)}evalRelDecl(){return this.tryGetRuleContext(0,jt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Mt)}exampleDecl(){return this.tryGetRuleContext(0,Ut)}propertyDecl(){return this.tryGetRuleContext(0,G)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}testSuiteDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=E;class O extends d.ParserRuleContext{SIG_TOK(){return this.getToken(_.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(_.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}sigExt(){return this.tryGetRuleContext(0,S)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=O;class S extends d.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(_.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(_.PLUS_TOK):this.getToken(_.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=S;class N extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=N;class A extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=A;class w extends d.ParserRuleContext{LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(_.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(_.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=w;class R extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=R;class C extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(){return this.getRuleContext(0,dt)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=C;class L extends d.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,A)}arrowExpr(){return this.getRuleContext(0,kt)}VAR_TOK(){return this.tryGetToken(_.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=L;class I extends d.ParserRuleContext{WHEAT_TOK(){return this.getToken(_.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=I;class k extends d.ParserRuleContext{FUN_TOK(){return this.getToken(_.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,D)}helperMult(){return this.tryGetRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=k;class D extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=D;class P extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=P;class M extends d.ParserRuleContext{RUN_TOK(){return this.tryGetToken(_.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(_.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=M;class j extends d.ParserRuleContext{IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(_.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(_.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(_.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=j;class K extends d.ParserRuleContext{EXPECT_TOK(){return this.getToken(_.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,U)}TEST_TOK(){return this.tryGetToken(_.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=K;class U extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=U;class F extends d.ParserRuleContext{FOR_TOK(){return this.getToken(_.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}BUT_TOK(){return this.tryGetToken(_.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=F;class $ extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=$;class H extends d.ParserRuleContext{NONE_TOK(){return this.tryGetToken(_.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(_.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(_.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=H;class B extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(_.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(_.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(_.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=B;class q extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(_.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(_.BAR_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=q;class G extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(_.FOR_TOK):this.getToken(_.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(_.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(_.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=G;class z extends d.ParserRuleContext{ASSERT_TOK(){return this.getToken(_.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,dt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}WITH_TOK(){return this.getToken(_.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(_.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(_.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,F)}FOR_TOK(){return this.tryGetToken(_.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=z;class V extends d.ParserRuleContext{TEST_TOK(){return this.getToken(_.TEST_TOK,0)}SUITE_TOK(){return this.getToken(_.SUITE_TOK,0)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=V;class Y extends d.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Ut)}testExpectDecl(){return this.tryGetRuleContext(0,K)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,q)}propertyDecl(){return this.tryGetRuleContext(0,G)}satisfiabilityDecl(){return this.tryGetRuleContext(0,B)}consistencyDecl(){return this.tryGetRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=Y;class W extends d.ParserRuleContext{ARROW_TOK(){return this.getToken(_.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(N):this.getRuleContext(t,N)}SET_TOK(t){return void 0===t?this.getTokens(_.SET_TOK):this.getToken(_.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=W;class X extends d.ParserRuleContext{IN_TOK(){return this.tryGetToken(_.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(_.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(_.LT_TOK,0)}GT_TOK(){return this.tryGetToken(_.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(_.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(_.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(_.IS_TOK,0)}NI_TOK(){return this.tryGetToken(_.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=X;class Q extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=Q;class J extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(_.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(dt):this.getRuleContext(t,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends d.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(_.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends d.ParserRuleContext{ALL_TOK(){return this.tryGetToken(_.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,N)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends d.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(_.SLASH_TOK):this.getToken(_.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(_.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(_.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends d.ParserRuleContext{OPTION_TOK(){return this.getToken(_.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}FILE_PATH_TOK(){return this.tryGetToken(_.FILE_PATH_TOK,0)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends d.ParserRuleContext{IDENTIFIER_TOK(){return this.tryGetToken(_.IDENTIFIER_TOK,0)}QUOTED_IDENTIFIER_TOK(){return this.tryGetToken(_.QUOTED_IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class ot extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=ot;class st extends d.ParserRuleContext{paraDecl(){return this.getRuleContext(0,R)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=st;class at extends d.ParserRuleContext{quantDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ut extends d.ParserRuleContext{letDecl(){return this.getRuleContext(0,Q)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ut;class ct extends d.ParserRuleContext{typescope(){return this.getRuleContext(0,$)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ct;class ht extends d.ParserRuleContext{expr(){return this.getRuleContext(0,dt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class dt extends d.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,pt)}LET_TOK(){return this.tryGetToken(_.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ut)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(_.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(_.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=dt;class pt extends d.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,pt)}OR_TOK(){return this.tryGetToken(_.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=pt;class ft extends d.ParserRuleContext{expr2(){return this.getRuleContext(0,gt)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(_.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class gt extends d.ParserRuleContext{expr3(){return this.getRuleContext(0,mt)}expr2(){return this.tryGetRuleContext(0,gt)}IFF_TOK(){return this.tryGetToken(_.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=gt;class mt extends d.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(_.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(mt):this.getRuleContext(t,mt)}ELSE_TOK(){return this.tryGetToken(_.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=mt;class yt extends d.ParserRuleContext{expr4_5(){return this.getRuleContext(0,_t)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(_.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class _t extends d.ParserRuleContext{expr5(t){return void 0===t?this.getRuleContexts(vt):this.getRuleContext(t,vt)}UNTIL_TOK(){return this.tryGetToken(_.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(_.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(_.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(_.TRIGGERED_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr4_5}enterRule(t){t.enterExpr4_5&&t.enterExpr4_5(this)}exitRule(t){t.exitExpr4_5&&t.exitExpr4_5(this)}accept(t){return t.visitExpr4_5?t.visitExpr4_5(this):t.visitChildren(this)}}e.Expr4_5Context=_t;class vt extends d.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,vt)}ALWAYS_TOK(){return this.tryGetToken(_.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(_.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(_.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(_.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(_.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(_.HISTORICALLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=vt;class xt extends d.ParserRuleContext{expr7(){return this.getRuleContext(0,bt)}expr6(){return this.tryGetRuleContext(0,xt)}compareOp(){return this.tryGetRuleContext(0,X)}NEG_TOK(){return this.tryGetToken(_.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=xt;class bt extends d.ParserRuleContext{expr8(){return this.getRuleContext(0,Tt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(_.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(_.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(_.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(_.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(_.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=bt;class Tt extends d.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,Et)}expr8(){return this.tryGetRuleContext(0,Tt)}expr10(){return this.tryGetRuleContext(0,Ot)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=Tt;class Et extends d.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,Ot)}CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,Et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=Et;class Ot extends d.ParserRuleContext{expr11(){return this.getRuleContext(0,St)}expr10(){return this.tryGetRuleContext(0,Ot)}PPLUS_TOK(){return this.tryGetToken(_.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=Ot;class St extends d.ParserRuleContext{expr12(){return this.getRuleContext(0,Nt)}expr11(){return this.tryGetRuleContext(0,St)}AMP_TOK(){return this.tryGetToken(_.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=St;class Nt extends d.ParserRuleContext{expr13(){return this.getRuleContext(0,At)}expr12(){return this.tryGetRuleContext(0,Nt)}arrowOp(){return this.tryGetRuleContext(0,W)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Nt;class At extends d.ParserRuleContext{expr14(){return this.getRuleContext(0,wt)}expr13(){return this.tryGetRuleContext(0,At)}SUBT_TOK(){return this.tryGetToken(_.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(_.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=At;class wt extends d.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Rt)}expr14(){return this.tryGetRuleContext(0,wt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=wt;class Rt extends d.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,Ct)}expr15(){return this.tryGetRuleContext(0,Rt)}DOT_TOK(){return this.tryGetToken(_.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(_.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(_.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=Rt;class Ct extends d.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Lt)}expr16(){return this.tryGetRuleContext(0,Ct)}PRIME_TOK(){return this.tryGetToken(_.PRIME_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr16}enterRule(t){t.enterExpr16&&t.enterExpr16(this)}exitRule(t){t.exitExpr16&&t.exitExpr16(this)}accept(t){return t.visitExpr16?t.visitExpr16(this):t.visitChildren(this)}}e.Expr16Context=Ct;class Lt extends d.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,It)}expr17(){return this.tryGetRuleContext(0,Lt)}TILDE_TOK(){return this.tryGetToken(_.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(_.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(_.STAR_TOK,0)}GET_LABEL_TOK(){return this.tryGetToken(_.GET_LABEL_TOK,0)}GET_LABEL_STR_TOK(){return this.tryGetToken(_.GET_LABEL_STR_TOK,0)}GET_LABEL_BOOL_TOK(){return this.tryGetToken(_.GET_LABEL_BOOL_TOK,0)}GET_LABEL_NUM_TOK(){return this.tryGetToken(_.GET_LABEL_NUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=Lt;class It extends d.ParserRuleContext{const(){return this.tryGetRuleContext(0,H)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(_.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(_.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,dt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=It;class kt extends d.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=kt;class Dt extends d.ParserRuleContext{sexpr(){return this.getRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=Dt;class Pt extends d.ParserRuleContext{SEXPR_TOK(){return this.getToken(_.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=Pt;class Mt extends d.ParserRuleContext{INST_TOK(){return this.getToken(_.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Bt)}scope(){return this.tryGetRuleContext(0,F)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Mt;class jt extends d.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,L)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=jt;class Kt extends d.ParserRuleContext{EVAL_TOK(){return this.getToken(_.EVAL_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Kt;class Ut extends d.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(_.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(_.IS_TOK,0)}expr(){return this.getRuleContext(0,dt)}FOR_TOK(){return this.getToken(_.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Bt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Ut;class Ft extends d.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(_.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,kt)}EQ_TOK(){return this.getToken(_.EQ_TOK,0)}expr(){return this.getRuleContext(0,dt)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=Ft;class $t extends d.ParserRuleContext{number(){return this.getRuleContext(0,Ht)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,$t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=$t;class Ht extends d.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(_.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=Ht;class Bt extends d.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(_.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(_.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(Gt):this.getRuleContext(t,Gt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(_.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Bt;class qt extends d.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(_.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,Ht)}MINUS_TOK(){return this.tryGetToken(_.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=qt;class Gt extends d.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,zt)}compareOp(){return this.tryGetRuleContext(0,X)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}NO_TOK(){return this.tryGetToken(_.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=Gt;class zt extends d.ParserRuleContext{CARD_TOK(){return this.tryGetToken(_.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}DOT_TOK(t){return void 0===t?this.getTokens(_.DOT_TOK):this.getToken(_.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=zt;class Vt extends d.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}PLUS_TOK(){return this.tryGetToken(_.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=Vt;class Yt extends d.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Yt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Wt)}COMMA_TOK(){return this.tryGetToken(_.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(_.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=Yt;class Wt extends d.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,qt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(_.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,Vt)}RIGHT_PAREN_TOK(){return this.tryGetToken(_.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return _.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Wt},"./src/forge-antlr/ForgeSyntaxConstructs.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.name=i,this.body=o,this.inheritsFrom=s,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.Test=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.name=i,this.check=o,this.body=s,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l,u,c,h){super(t,e,r,n),this.pred=i,this.prop=o,this.check=s,this.disj=a,this.quantDecls=l,this.bounds=u,this.scope=c,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.testExpr=o,this.bounds=s}},e.Function=class extends r{constructor(t,e,r,n,i,o,s){super(t,e,r,n),this.name=i,this.params=o,this.body=s}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a){super(t,e,r,n),this.exp=i,this.check=o,this.bounds=s,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,o,s,a,l){super(t,e,r,n),this.pred=i,this.prop=o,this.consistent=s,this.bounds=a,this.scope=l}}},"./src/forge-antlr/utils.ts":(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=void 0,e.getIdentifierName=function(t){let e=t.IDENTIFIER_TOK();if(e)return e.text;let r=t.QUOTED_IDENTIFIER_TOK();return r?r.text.slice(1,-1).replace(/\\(.)/g,"$1"):t.text},e.quoteIfReserved=function(t,e){return e.has(t)?"`"+t.replace(/([`\\])/g,"\\$1")+"`":t},e.FORGE_RESERVED_KEYWORDS=new Set(["open","as","var","abstract","sig","extends","in","lone","some","one","two","set","func","pfunc","disj","wheat","pred","fun","assert","run","check","for","but","exactly","none","univ","iden","is","sat","unsat","theorem","forge_error","checked","test","expect","suite","all","sufficient","necessary","consistent","inconsistent","with","let","bind","or","xor","iff","implies","else","and","until","release","since","triggered","not","always","eventually","after","before","once","historically","this","sexpr","inst","eval","example","ni","no","sum","Int","option"])},"./src/index.ts":(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=e.quoteIfReserved=e.getIdentifierName=e.SelectorSynthesisError=e.synthesizeSelectorWithWhy=e.synthesizeBinaryRelationWithWhy=e.synthesizeBinaryRelation=e.synthesizeSelector=e.SimpleGraphQueryEvaluator=void 0;let n=r("./node_modules/antlr4ts/index.js"),i=r("./src/forge-antlr/ForgeParser.ts"),o=r("./src/forge-antlr/ForgeLexer.ts"),s=r("./src/forge-antlr/ForgeListenerImpl.ts"),a=r("./node_modules/antlr4ts/tree/ParseTreeWalker.js"),l=r("./src/ForgeExprEvaluator.ts"),u=r("./src/errorListener.ts");e.SimpleGraphQueryEvaluator=class{constructor(t){this.forgeListener=new s.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.parseTreeCache=new Map,this.datum=t}getExpressionParseTree(t){let e=function(t){let e=n.CharStreams.fromString(t),r=new o.ForgeLexer(e),s=new n.CommonTokenStream(r),a=new i.ForgeParser(s);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new u.ParseErrorListener),a}(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}evaluateExpression(t){let e;if(this.parseTreeCache.has(t))e=this.parseTreeCache.get(t);else try{let r=this.getExpressionParseTree(t);e=r instanceof i.ExprContext?r:r.getChild(0),this.parseTreeCache.set(t,e)}catch{return{error:new Error(`Error parsing expression "${t}"`)}}let r=new l.ForgeExprEvaluator(this.datum);try{return r.visit(e)}catch(e){if(e instanceof l.NameNotFoundError)return[];if(e instanceof Error){let r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}};var c=r("./src/SelectorSynthesizer.ts");Object.defineProperty(e,"synthesizeSelector",{enumerable:!0,get:function(){return c.synthesizeSelector}}),Object.defineProperty(e,"synthesizeBinaryRelation",{enumerable:!0,get:function(){return c.synthesizeBinaryRelation}}),Object.defineProperty(e,"synthesizeBinaryRelationWithWhy",{enumerable:!0,get:function(){return c.synthesizeBinaryRelationWithWhy}}),Object.defineProperty(e,"synthesizeSelectorWithWhy",{enumerable:!0,get:function(){return c.synthesizeSelectorWithWhy}}),Object.defineProperty(e,"SelectorSynthesisError",{enumerable:!0,get:function(){return c.SelectorSynthesisError}});var h=r("./src/forge-antlr/utils.ts");Object.defineProperty(e,"getIdentifierName",{enumerable:!0,get:function(){return h.getIdentifierName}}),Object.defineProperty(e,"quoteIfReserved",{enumerable:!0,get:function(){return h.quoteIfReserved}}),Object.defineProperty(e,"FORGE_RESERVED_KEYWORDS",{enumerable:!0,get:function(){return h.FORGE_RESERVED_KEYWORDS}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r("./src/index.ts")})(),"object"==typeof t&&"object"==typeof e?e.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof t?t.SimpleGraphQuery=n():r.SimpleGraphQuery=n()}));function Nn(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}t.SGraphQueryEvaluator=void 0;var An=d((()=>{r=g(Sn()),n=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=function(t){return void 0!==t.error}(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:(this.isSingletonResult,this.result)}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>Nn(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>Nn(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>Nn(t)))))}},t.SGraphQueryEvaluator=class{constructor(){this.evaluatorCache=new Map,this.MAX_CACHE_SIZE=1e3,this.ready=!1}initialize(t){if(this.context=t,!t.sourceData||!function(t){return void 0!==t.getAtoms&&void 0!==t.getRelations&&void 0!==t.getTypes&&void 0!==t.applyProjections&&void 0!==t.generateGraph}(t.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let e=t.sourceData;this.eval=new r.SimpleGraphQueryEvaluator(e),this.ready=!0,this.evaluatorCache.clear()}isReady(){return this.ready}evaluate(t,e){if(!this.isReady())throw new Error("Evaluator not initialized");let r=e?.instanceIndex??0,i=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(i)){let t=this.evaluatorCache.get(i);return this.evaluatorCache.delete(i),this.evaluatorCache.set(i,t),t}let o=this.eval.evaluateExpression(t),s=new n(o,t);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let t=this.evaluatorCache.keys().next().value;void 0!==t&&this.evaluatorCache.delete(t)}return this.evaluatorCache.set(i,s),s}dispose(){this.evaluatorCache.clear()}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,hasDataInstance:!1}}}})),wn=p(((t,e)=>{!function(r,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof t?e.exports=n():r.alasql=n()}(t,(function(){var r,n,i;let o=function(t,e,r,n){if(e=e||[],"function"!=typeof importScripts&&o.webworker){var i=o.lastid++;return o.buffer[i]=r,void o.webworker.postMessage({id:i,sql:t,params:e})}return 0===arguments.length?new q.Select({columns:[new q.Column({columnid:"*"})],from:[new q.ParamValue({param:0})]}):1===arguments.length&&t.constructor===Array?o.promise(t):("function"==typeof e&&(n=r,r=e,e=[]),"object"!=typeof e&&(e=[e]),"string"==typeof t&&"#"===t[0]&&"object"==typeof document?t=document.querySelector(t).textContent:"object"==typeof t&&t instanceof HTMLElement?t=t.textContent:"function"==typeof t&&(t=t.toString(),t=(/\/\*([\S\s]+)\*\//m.exec(t)||["","Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function."])[1]),o.exec(t,e,r,n))};o.version="4.16.0",o.build="develop-42f0e181",o.debug=void 0;var s=function(){return null},a=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[2,17],r=[1,112],n=[1,106],i=[1,107],s=[1,108],a=[1,109],l=[1,110],u=[1,111],c=[1,6],h=[1,42],d=[1,80],p=[1,103],f=[1,77],m=[1,97],y=[1,96],_=[1,69],v=[1,105],x=[1,86],b=[1,64],T=[1,71],E=[1,85],O=[1,66],S=[1,70],N=[1,68],A=[1,61],w=[1,74],R=[1,62],C=[1,67],L=[1,84],I=[1,78],k=[1,87],D=[1,88],P=[1,99],M=[1,82],j=[1,83],K=[1,81],U=[1,89],F=[1,90],$=[1,91],H=[1,92],B=[1,93],q=[1,94],G=[1,95],z=[1,101],V=[1,65],Y=[1,79],W=[1,72],X=[1,100],Q=[1,63],J=[1,73],Z=[1,116],tt=[1,115],et=[14,339,639,798],rt=[14,339,343,639,798],nt=[1,123],it=[1,125],ot=[1,124],st=[1,126],at=[1,127],lt=[1,128],ut=[1,129],ct=[139,388,447],ht=[1,137],dt=[1,136],pt=[1,144],ft=[1,174],gt=[1,189],mt=[1,192],yt=[1,185],_t=[1,195],vt=[1,199],xt=[1,170],bt=[1,196],Tt=[1,181],Et=[1,183],Ot=[1,188],St=[1,197],Nt=[1,186],At=[1,214],wt=[1,215],Rt=[1,187],Ct=[1,176],Lt=[1,177],It=[1,207],kt=[1,202],Dt=[1,203],Pt=[1,179],Mt=[1,208],jt=[1,209],Kt=[1,210],Ut=[1,211],Ft=[1,212],$t=[1,213],Ht=[1,216],Bt=[1,217],qt=[1,190],Gt=[1,191],zt=[1,193],Vt=[1,194],Yt=[1,200],Wt=[1,206],Xt=[1,198],Qt=[1,201],Jt=[1,184],Zt=[1,182],te=[1,205],ee=[1,218],re=[2,4,5,6,7,8,9,152,161,190,335],ne=[2,499],ie=[1,222],oe=[1,227],se=[1,236],ae=[1,234],le=[14,76,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],ue=[1,241],ce=[14,76,83,127,271,273,339,343,503,639,798],he=[2,248],de=[1,244],pe=[1,246],fe=[1,245],ge=[2,4,5,6,7,8,9,14,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],me=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],ye=[1,273],_e=[1,280],ve=[1,281],xe=[1,286],be=[1,291],Te=[1,296],Ee=[1,295],Oe=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,177,178,188,189,190,192,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],Se=[2,172],Ne=[1,307],Ae=[14,78,83,339,343,466,639,798],we=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,202,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,423,426,433,437,438,439,440,441,442,443,445,446,454,455,457,461,463,466,471,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,552,553,554,555,639,798],Re=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Ce=[1,595],Le=[1,597],Ie=[1,598],ke=[2,4,5,6,7,8,9],De=[2,531],Pe=[1,604],Me=[1,615],je=[1,618],Ke=[1,619],Ue=[14,82,83,96,141,146,155,198,329,339,343,509,639,798],Fe=[14,78,339,343,639,798],$e=[2,602],He=[1,637],Be=[2,4,5,6,7,8,9,165],qe=[1,675],Ge=[1,647],ze=[1,681],Ve=[1,682],Ye=[1,655],We=[1,666],Xe=[1,653],Qe=[1,661],Je=[1,654],Ze=[1,662],tr=[1,664],er=[1,656],rr=[1,657],nr=[1,676],ir=[1,673],or=[1,674],sr=[1,650],ar=[1,652],lr=[1,644],ur=[1,645],cr=[1,646],hr=[1,648],dr=[1,649],pr=[1,651],fr=[1,658],gr=[1,659],mr=[1,663],yr=[1,665],_r=[1,667],vr=[1,668],xr=[1,669],br=[1,670],Tr=[1,671],Er=[1,677],Or=[1,678],Sr=[1,679],Nr=[1,680],Ar=[1,690],wr=[1,687],Rr=[2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr=[2,298],Lr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ir=[2,296],kr=[2,297],Dr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Pr=[2,380],Mr=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,335,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,379,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],jr=[1,706],Kr=[1,716],Ur=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Fr=[1,733],$r=[1,735],Hr=[1,736],Br=[1,726],qr=[1,744],Gr=[1,743],zr=[2,4,5,6,7,8,9,14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Vr=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Yr=[1,760],Wr=[2,203],Xr=[1,769],Qr=[14,76,83,103,108,127,137,171,177,178,192,252,271,273,339,343,503,639,798],Jr=[2,173],Zr=[1,772],tn=[2,4,5,6,7,8,9,121,229,281],en=[14,76,83,271,273,339,343,503,639,798],rn=[2,260],nn=[1,776],on=[82,198],sn=[1,795],an=[1,814],ln=[1,794],un=[1,793],cn=[1,788],hn=[1,789],dn=[1,791],pn=[1,792],fn=[1,796],gn=[1,797],mn=[1,798],yn=[1,799],_n=[1,800],vn=[1,801],xn=[1,802],bn=[1,803],Tn=[1,804],En=[1,805],On=[1,806],Sn=[1,807],Nn=[1,808],An=[1,809],wn=[1,810],Rn=[1,811],Cn=[1,813],Ln=[1,815],In=[1,816],kn=[1,817],Dn=[1,818],Pn=[1,819],Mn=[1,820],jn=[1,821],Kn=[1,824],Un=[1,825],Fn=[1,826],$n=[1,827],Hn=[1,828],Bn=[1,829],qn=[1,830],Gn=[1,831],zn=[1,832],Vn=[1,833],Yn=[1,835],Wn=[1,836],Xn=[1,834],Qn=[78,82,96,198],Jn=[14,82,96,137,152,154,155,158,161,190,198,335,339,343,378,379,457,461,503,639,798],Zn=[14,78,83,163,196,250,330,339,343,378,391,403,404,407,408,639,798],ti=[1,855],ei=[14,78,83,333,339,343,639,798],ri=[1,856],ni=[1,863],ii=[1,864],oi=[1,868],si=[14,78,83,339,343,639,798],ai=[2,4,5,6,7,8,9,82,140,141,146,152,154,158,161,163,165,188,189,190,229,266,267,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,345,350,457,461],li=[14,76,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],ui=[2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,158,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],ci=[2,4,5,6,7,8,9,141,329],hi=[1,905],di=[14,78,81,83,339,343,639,798],pi=[2,780],fi=[14,78,81,83,141,148,150,154,161,339,343,457,461,639,798],gi=[2,1235],mi=[14,78,81,83,148,150,154,161,339,343,457,461,639,798],yi=[14,78,81,83,148,150,154,339,343,457,461,639,798],_i=[14,78,83,148,150,339,343,639,798],vi=[14,82,83,96,141,155,198,329,339,343,509,639,798],xi=[368,372,373],bi=[2,806],Ti=[1,930],Ei=[1,931],Oi=[1,932],Si=[1,933],Ni=[1,942],Ai=[1,941],wi=[2,759],Ri=[1,945],Ci=[173,175,367],Li=[2,465],Ii=[1,999],ki=[2,4,5,6,7,8,9,82,140,165,293,322,323,324,325,326],Di=[1,1017],Pi=[1,1016],Mi=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],ji=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ki=[2,396],Ui=[1,1028],Fi=[339,341,343],$i=[78,333],Hi=[78,333,463],Bi=[1,1036],qi=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Gi=[78,463],zi=[1,1055],Vi=[1,1054],Yi=[1,1062],Wi=[14,76,83,103,108,127,137,171,177,178,252,271,273,339,343,503,639,798],Xi=[2,183],Qi=[1,1075],Ji=[1,1085],Zi=[14,76,83,339,343,503,639,798],to=[2,271],eo=[1,1088],ro=[1,1089],no=[1,1098],io=[1,1099],oo=[1,1100],so=[2,4,5,6,7,8,9,14,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],ao=[1,1153],lo=[1,1152],uo=[1,1167],co=[1,1166],ho=[1,1174],po=[14,76,78,83,103,108,116,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],fo=[14,76,83,127,171,177,178,271,273,339,343,503,639,798],go=[2,83],mo=[2,345],yo=[1,1192],_o=[1,1208],vo=[14,82,83,96,155,198,339,343,509,639,798],xo=[1,1228],bo=[1,1227],To=[1,1226],Eo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Oo=[1,1243],So=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],No=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,348,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ao=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],wo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,133,137,138,139,140,141,143,144,146,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ro=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Co=[2,427],Lo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Io=[2,317],ko=[9,83],Do=[2,349],Po=[1,1261],Mo=[2,293],jo=[2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Ko=[14,83,339,343,639,798],Uo=[1,1287],Fo=[14,82,83,152,154,161,190,335,339,343,457,461,503,639,798],$o=[14,78,83,339,341,343,503,639,798],Ho=[1,1305],Bo=[1,1308],qo=[2,1143],Go=[14,76,83,127,137,171,177,178,252,271,273,339,343,503,639,798],zo=[1,1314],Vo=[1,1315],Yo=[14,76,78,83,103,108,127,137,171,177,178,192,207,252,271,273,339,343,503,639,798],Wo=[2,4,5,6,7,8,9,76,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Xo=[2,4,5,6,7,8,9,76,78,81,82,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Qo=[2,1137],Jo=[2,4,5,6,7,8,9,76,78,81,82,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,194,196,266,267,304,313,314,315,316,317,318,319,320,457,461],Zo=[1,1366],ts=[14,76,78,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],es=[2,515],rs=[1,1369],ns=[14,78,83,137,339,341,343,503,639,798],is=[124,125,133],os=[2,619],ss=[1,1399],as=[81,148],ls=[2,766],us=[1,1416],cs=[1,1417],hs=[2,4,5,6,7,8,9,14,57,76,81,82,96,133,155,165,198,250,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],ds=[1,1446],ps=[2,351],fs=[1,1463],gs=[78,83],ms=[1,1472],ys=[14,339,341,343,503,639,798],_s=[14,76,83,127,171,177,178,252,271,273,339,343,503,639,798],vs=[2,234],xs=[1,1482],bs=[1,1486],Ts=[1,1490],Es=[1,1491],Os=[1,1493],Ss=[1,1494],Ns=[1,1495],As=[1,1496],ws=[1,1497],Rs=[1,1498],Cs=[1,1499],Ls=[1,1500],Is=[1,1507],ks=[9,14,76,78,83,271,273,339,343,503,639,798],Ds=[1,1531],Ps=[83,127],Ms=[2,236],js=[1,1627],Ks=[1,1643],Us=[1,1645],Fs=[2,4,5,6,7,8,9,82,152,154,161,165,190,293,322,323,324,325,326,335,457,461],$s=[1,1684],Hs=[1,1686],Bs=[1,1687],qs=[1,1683],Gs=[1,1682],zs=[1,1681],Vs=[1,1688],Ys=[1,1678],Ws=[1,1679],Xs=[1,1680],Qs=[1,1710],Js=[2,4,5,6,7,8,9,14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Zs=[1,1733],ta=[1,1732],ea=[1,1788],ra=[1,1789],na=[1,1787],ia=[1,1803],oa=[1,1805],sa=[1,1802],aa=[1,1804],la=[196,202,403,404,407],ua=[2,543],ca=[1,1810],ha=[1,1827],da=[1,1849],pa=[1,1856],fa=[14,76,78,83,127,171,177,178,259,271,273,339,343,503,639,798],ga=[4,14,269,339,343,378,391,639,798],ma=[2,246],ya=[1,1893],_a=[14,76,83,339,343,452,503,639,798],va=[14,78,83,163,196,330,339,343,378,391,403,404,407,408,639,798],xa=[2,549],ba=[1,1909],Ta=[1,1959],Ea=[1,1958],Oa=[1,1980],Sa=[1,1991],Na=[1,1990],Aa=[1,1992],wa=[1,1993],Ra=[1,2e3],Ca=[1,2017],La=[14,78,83,250,339,343,639,798],Ia={trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,KEY:6,OPEN:7,CLOSE:8,SEPARATOR:9,NonReserved:10,LiteralWithSpaces:11,main:12,Statements:13,EOF:14,Statements_group0:15,AStatement:16,ExplainStatement:17,EXPLAIN:18,QUERY:19,PLAN:20,Statement:21,AlterTable:22,AttachDatabase:23,Call:24,CreateDatabase:25,CreateIndex:26,CreateGraph:27,CreateTable:28,CreateView:29,CreateEdge:30,CreateVertex:31,Declare:32,Delete:33,DetachDatabase:34,DropDatabase:35,DropIndex:36,DropTable:37,DropView:38,If:39,Insert:40,Merge:41,Reindex:42,RenameTable:43,Select:44,ShowCreateTable:45,ShowColumns:46,ShowDatabases:47,ShowIndex:48,ShowTables:49,TruncateTable:50,WithSelect:51,CreateTrigger:52,DropTrigger:53,BeginTransaction:54,CommitTransaction:55,RollbackTransaction:56,EndTransaction:57,UseDatabase:58,Update:59,JavaScript:60,Source:61,Assert:62,While:63,Continue:64,Break:65,BeginEnd:66,Print:67,Require:68,SetVariable:69,ExpressionStatement:70,AddRule:71,Query:72,Echo:73,CreateFunction:74,CreateAggregate:75,WITH:76,WithTablesList:77,COMMA:78,WithTable:79,RECURSIVE:80,AS:81,LPAR:82,RPAR:83,ColumnsList:84,SelectClause:85,Select_option0:86,IntoClause:87,FromClause:88,Select_option1:89,WhereClause:90,GroupClause:91,UnionClause:92,OrderClause:93,LimitClause:94,ParenthesizedSelect:95,SEARCH:96,Select_repetition0:97,Select_option2:98,SelectWithoutOrderOrLimit:99,SelectWithoutOrderOrLimit_option0:100,SelectWithoutOrderOrLimit_option1:101,PivotClause:102,PIVOT:103,Expression:104,FOR:105,PivotClause_option0:106,PivotClause_option1:107,UNPIVOT:108,IN:109,PivotClause_option2:110,PivotClause2:111,AsList:112,AsLiteral:113,AsPart:114,RemoveClause:115,REMOVE:116,RemoveClause_option0:117,RemoveColumnsList:118,RemoveColumn:119,Column:120,LIKE:121,StringValue:122,ArrowDot:123,ARROW:124,DOT:125,SearchSelector:126,ORDER:127,BY:128,OrderExpressionsList:129,SearchSelector_option0:130,DOTDOT:131,CARET:132,EQ:133,SearchSelector_repetition_plus0:134,SearchSelector_repetition_plus1:135,SearchSelector_option1:136,WHERE:137,OF:138,CLASS:139,NUMBER:140,STRING:141,SLASH:142,VERTEX:143,EDGE:144,EXCLAMATION:145,SHARP:146,MODULO:147,GT:148,LT:149,GTGT:150,LTLT:151,DOLLAR:152,Json:153,AT:154,SET:155,SetColumnsList:156,TO:157,VALUE:158,ROW:159,ExprList:160,COLON:161,PlusStar:162,NOT:163,SearchSelector_repetition2:164,IF:165,SearchSelector_repetition3:166,Aggregator:167,SearchSelector_repetition4:168,SearchSelector_group0:169,SearchSelector_repetition5:170,UNION:171,SearchSelectorList:172,ALL:173,SearchSelector_repetition6:174,ANY:175,SearchSelector_repetition7:176,INTERSECT:177,EXCEPT:178,AND:179,OR:180,PATH:181,RETURN:182,ResultColumns:183,REPEAT:184,SearchSelector_repetition8:185,SearchSelectorList_repetition0:186,SearchSelectorList_repetition1:187,PLUS:188,STAR:189,QUESTION:190,SearchFrom:191,FROM:192,SelectModifier:193,DISTINCT:194,TopClause:195,UNIQUE:196,SelectClause_option0:197,SELECT:198,COLUMN:199,MATRIX:200,TEXTSTRING:201,INDEX:202,RECORDSET:203,TOP:204,NumValue:205,TopClause_option0:206,INTO:207,Table:208,FuncValue:209,ParamValue:210,VarValue:211,FromTablesList:212,JoinTablesList:213,ApplyClause:214,CROSS:215,APPLY:216,OUTER:217,FromTable:218,FromTable_option0:219,FromTable_option1:220,FromTable_option2:221,FromTable_option3:222,INDEXED:223,FromTable_option4:224,FromTable_option5:225,FromTable_option6:226,FromString:227,FromTable_option7:228,INSERTED:229,FromTableAlias:230,TargetTable:231,JoinTable:232,JoinMode:233,JoinTableAs:234,OnClause:235,JoinTableAs_option0:236,JoinTableAs_option1:237,JoinTableAs_option2:238,JoinTableAs_option3:239,JoinTableAs_option4:240,JoinModeMode:241,NATURAL:242,JOIN:243,INNER:244,LEFT:245,RIGHT:246,FULL:247,SEMI:248,ANTI:249,ON:250,USING:251,GROUP:252,GroupExpressionsList:253,HavingClause:254,ROLLUP:255,CUBE:256,GroupExpression:257,GROUPING:258,HAVING:259,UnionOp:260,UnionableSelect:261,CORRESPONDING:262,OrderExpression:263,NullsOrder:264,NULLS:265,FIRST:266,LAST:267,DIRECTION:268,COLLATE:269,NOCASE:270,LIMIT:271,OffsetClause:272,OFFSET:273,LimitClause_option0:274,FETCH:275,LimitClause_option1:276,LimitClause_option2:277,LimitClause_option3:278,ResultColumn:279,Star:280,DELETED:281,AggrValue:282,Op:283,LogicValue:284,NullValue:285,ExistsValue:286,CaseValue:287,CastClause:288,ArrayValue:289,NewClause:290,Expression_group0:291,CURRENT_TIMESTAMP:292,CURRENT_DATE:293,JAVASCRIPT:294,CREATE:295,FUNCTION:296,AGGREGATE:297,NEW:298,CAST:299,ColumnType:300,CONVERT:301,PrimitiveValue:302,OverClause:303,GROUP_CONCAT:304,GroupConcatOrderClause:305,GroupConcatSeparatorClause:306,OVER:307,OverClause_option0:308,OverClause_option1:309,OverPartitionClause:310,PARTITION:311,OverOrderByClause:312,SUM:313,TOTAL:314,COUNT:315,MIN:316,MAX:317,AVG:318,AGGR:319,ARRAY:320,FuncValue_option0:321,REPLACE:322,DATEADD:323,DATEDIFF:324,TIMESTAMPDIFF:325,INTERVAL:326,TRUE:327,FALSE:328,NSTRING:329,NULL:330,EXISTS:331,ARRAYLBRA:332,RBRA:333,ParamValue_group0:334,BRAQUESTION:335,CASE:336,WhensList:337,ElseClause:338,END:339,When:340,WHEN:341,THEN:342,ELSE:343,REGEXP:344,TILDA:345,GLOB:346,ESCAPE:347,NOT_LIKE:348,BARBAR:349,MINUS:350,AMPERSAND:351,BAR:352,GE:353,LE:354,EQEQ:355,EQEQEQ:356,NE:357,NEEQEQ:358,NEEQEQEQ:359,CondOp:360,AllSome:361,ColFunc:362,BETWEEN:363,NOT_BETWEEN:364,IS:365,DOUBLECOLON:366,SOME:367,UPDATE:368,OutputClause:369,SetColumn:370,SetColumn_group0:371,DELETE:372,INSERT:373,Into:374,Values:375,ValuesListsList:376,IGNORE:377,DEFAULT:378,VALUES:379,ValuesList:380,Value:381,DateValue:382,TemporaryClause:383,TableClass:384,IfNotExists:385,CreateTableDefClause:386,CreateTableOptionsClause:387,TABLE:388,CreateTableOptions:389,CreateTableOption:390,IDENTITY:391,TEMP:392,ColumnDefsList:393,ConstraintsList:394,Constraint:395,ConstraintName:396,PrimaryKey:397,ForeignKey:398,UniqueKey:399,IndexKey:400,Check:401,CONSTRAINT:402,CHECK:403,PRIMARY:404,PrimaryKey_option0:405,ColsList:406,FOREIGN:407,REFERENCES:408,ForeignKey_option0:409,OnReferentialActions:410,ParColsList:411,OnDeleteClause:412,OnUpdateClause:413,ReferentialAction:414,CASCADE:415,RESTRICT:416,NO:417,ACTION:418,UniqueKey_option0:419,UniqueKey_option1:420,ColumnDef:421,ColumnConstraintsClause:422,ColumnConstraints:423,SingularColumnType:424,NumberMax:425,ENUM:426,MAXNUM:427,ColumnConstraintsList:428,ColumnConstraint:429,ParLiteral:430,ColumnConstraint_option0:431,ColumnConstraint_option1:432,DROP:433,DropTable_group0:434,IfExists:435,TablesList:436,ALTER:437,RENAME:438,ADD:439,MODIFY:440,ATTACH:441,DATABASE:442,DETACH:443,AsClause:444,USE:445,SHOW:446,VIEW:447,CreateView_option0:448,CreateView_option1:449,SubqueryRestriction:450,READ:451,ONLY:452,OPTION:453,SOURCE:454,ASSERT:455,JsonObject:456,ATLBRA:457,JsonArray:458,JsonValue:459,JsonPrimitiveValue:460,LCUR:461,JsonPropertiesList:462,RCUR:463,JsonElementsList:464,JsonProperty:465,COLONDASH:466,OnOff:467,SetPropsList:468,AtDollar:469,SetProp:470,OFF:471,COMMIT:472,TRANSACTION:473,ROLLBACK:474,BEGIN:475,ElseStatement:476,WHILE:477,CONTINUE:478,ITERATE:479,BREAK:480,LEAVE:481,PRINT:482,REQUIRE:483,StringValuesList:484,PluginsList:485,Plugin:486,ECHO:487,DECLARE:488,DeclaresList:489,DeclareItem:490,TRUNCATE:491,MERGE:492,MergeInto:493,MergeUsing:494,MergeOn:495,MergeMatchedList:496,MergeMatched:497,MergeNotMatched:498,MATCHED:499,MergeMatchedAction:500,MergeNotMatchedAction:501,TARGET:502,OUTPUT:503,CreateVertex_option0:504,CreateVertex_option1:505,CreateVertex_option2:506,CreateVertexSet:507,SharpValue:508,CONTENT:509,CreateEdge_option0:510,GRAPH:511,GraphList:512,GraphVertexEdge:513,GraphElement:514,GraphVertexEdge_option0:515,GraphVertexEdge_option1:516,GraphElementVar:517,GraphVertexEdge_option2:518,GraphVertexEdge_option3:519,GraphVertexEdge_option4:520,GraphVar:521,GraphAsClause:522,GraphAtClause:523,GraphElement2:524,GraphElement2_option0:525,GraphElement2_option1:526,GraphElement2_option2:527,GraphElement2_option3:528,GraphElement_option0:529,GraphElement_option1:530,GraphElement_option2:531,SharpLiteral:532,GraphElement_option3:533,GraphElement_option4:534,GraphElement_option5:535,ColonLiteral:536,DeleteVertex:537,DeleteVertex_option0:538,DeleteEdge:539,DeleteEdge_option0:540,DeleteEdge_option1:541,DeleteEdge_option2:542,Term:543,TermsList:544,QUESTIONDASH:545,CALL:546,TRIGGER:547,BeforeAfter:548,InsertDeleteUpdate:549,CreateTrigger_option0:550,CreateTrigger_option1:551,BEFORE:552,AFTER:553,INSTEAD:554,REINDEX:555,A:556,ABSENT:557,ABSOLUTE:558,ACCORDING:559,ADA:560,ADMIN:561,ALWAYS:562,ASC:563,ASSERTION:564,ASSIGNMENT:565,ATTRIBUTE:566,ATTRIBUTES:567,BASE64:568,BERNOULLI:569,BLOCKED:570,BOM:571,BREADTH:572,C:573,CATALOG:574,CATALOG_NAME:575,CHAIN:576,CHARACTERISTICS:577,CHARACTERS:578,CHARACTER_SET_CATALOG:579,CHARACTER_SET_NAME:580,CHARACTER_SET_SCHEMA:581,CLASS_ORIGIN:582,COBOL:583,COLLATION:584,COLLATION_CATALOG:585,COLLATION_NAME:586,COLLATION_SCHEMA:587,COLUMNS:588,COLUMN_NAME:589,COMMAND_FUNCTION:590,COMMAND_FUNCTION_CODE:591,COMMITTED:592,CONDITION_NUMBER:593,CONNECTION:594,CONNECTION_NAME:595,CONSTRAINTS:596,CONSTRAINT_CATALOG:597,CONSTRAINT_NAME:598,CONSTRAINT_SCHEMA:599,CONSTRUCTOR:600,CONTROL:601,CURSOR_NAME:602,DATA:603,DATETIME_INTERVAL_CODE:604,DATETIME_INTERVAL_PRECISION:605,DB:606,DEFAULTS:607,DEFERRABLE:608,DEFERRED:609,DEFINED:610,DEFINER:611,DEGREE:612,DEPTH:613,DERIVED:614,DESC:615,DESCRIPTOR:616,DIAGNOSTICS:617,DISPATCH:618,DOCUMENT:619,DOMAIN:620,DYNAMIC_FUNCTION:621,DYNAMIC_FUNCTION_CODE:622,EMPTY:623,ENCODING:624,ENFORCED:625,EXCLUDE:626,EXCLUDING:627,EXPRESSION:628,FILE:629,FINAL:630,FLAG:631,FOLLOWING:632,FORTRAN:633,FOUND:634,FS:635,G:636,GENERAL:637,GENERATED:638,GO:639,GOTO:640,GRANTED:641,HEX:642,HIERARCHY:643,ID:644,IMMEDIATE:645,IMMEDIATELY:646,IMPLEMENTATION:647,INCLUDING:648,INCREMENT:649,INDENT:650,INITIALLY:651,INPUT:652,INSTANCE:653,INSTANTIABLE:654,INTEGRITY:655,INVOKER:656,ISOLATION:657,K:658,KEY_MEMBER:659,KEY_TYPE:660,LENGTH:661,LEVEL:662,LIBRARY:663,LINK:664,LOCATION:665,LOCATOR:666,M:667,MAP:668,MAPPING:669,MAXVALUE:670,MESSAGE_LENGTH:671,MESSAGE_OCTET_LENGTH:672,MESSAGE_TEXT:673,MINVALUE:674,MORE:675,MUMPS:676,NAME:677,NAMES:678,NAMESPACE:679,NESTING:680,NEXT:681,NFC:682,NFD:683,NFKC:684,NFKD:685,NIL:686,NORMALIZED:687,NULLABLE:688,OBJECT:689,OCTETS:690,OPTIONS:691,ORDERING:692,ORDINALITY:693,OTHERS:694,OVERRIDING:695,P:696,PAD:697,PARAMETER_MODE:698,PARAMETER_NAME:699,PARAMETER_ORDINAL_POSITION:700,PARAMETER_SPECIFIC_CATALOG:701,PARAMETER_SPECIFIC_NAME:702,PARAMETER_SPECIFIC_SCHEMA:703,PARTIAL:704,PASCAL:705,PASSING:706,PASSTHROUGH:707,PERMISSION:708,PLACING:709,PLI:710,PRECEDING:711,PRESERVE:712,PRIOR:713,PRIVILEGES:714,PUBLIC:715,RECOVERY:716,RELATIVE:717,REPEATABLE:718,REQUIRING:719,RESPECT:720,RESTART:721,RESTORE:722,RETURNED_CARDINALITY:723,RETURNED_LENGTH:724,RETURNED_OCTET_LENGTH:725,RETURNED_SQLSTATE:726,RETURNING:727,ROLE:728,ROUTINE:729,ROUTINE_CATALOG:730,ROUTINE_NAME:731,ROUTINE_SCHEMA:732,ROW_COUNT:733,SCALE:734,SCHEMA:735,SCHEMA_NAME:736,SCOPE_CATALOG:737,SCOPE_NAME:738,SCOPE_SCHEMA:739,SECTION:740,SECURITY:741,SELECTIVE:742,SELF:743,SEQUENCE:744,SERIALIZABLE:745,SERVER:746,SERVER_NAME:747,SESSION:748,SETS:749,SIMPLE:750,SIZE:751,SPACE:752,SPECIFIC_NAME:753,STANDALONE:754,STATE:755,STATEMENT:756,STRIP:757,STRUCTURE:758,STYLE:759,SUBCLASS_ORIGIN:760,T:761,TABLE_NAME:762,TEMPORARY:763,TIES:764,TOKEN:765,TOP_LEVEL_COUNT:766,TRANSACTIONS_COMMITTED:767,TRANSACTIONS_ROLLED_BACK:768,TRANSACTION_ACTIVE:769,TRANSFORM:770,TRANSFORMS:771,TRIGGER_CATALOG:772,TRIGGER_NAME:773,TRIGGER_SCHEMA:774,TYPE:775,UNBOUNDED:776,UNCOMMITTED:777,UNDER:778,UNLINK:779,UNNAMED:780,UNTYPED:781,URI:782,USAGE:783,USER_DEFINED_TYPE_CATALOG:784,USER_DEFINED_TYPE_CODE:785,USER_DEFINED_TYPE_NAME:786,USER_DEFINED_TYPE_SCHEMA:787,VALID:788,VERSION:789,WHITESPACE:790,WORK:791,WRAPPER:792,WRITE:793,XMLDECLARATION:794,XMLSCHEMA:795,YES:796,ZONE:797,SEMICOLON:798,PERCENT:799,ROWS:800,FuncValue_option0_group0:801,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",6:"KEY",7:"OPEN",8:"CLOSE",9:"SEPARATOR",14:"EOF",18:"EXPLAIN",19:"QUERY",20:"PLAN",57:"EndTransaction",76:"WITH",78:"COMMA",80:"RECURSIVE",81:"AS",82:"LPAR",83:"RPAR",96:"SEARCH",103:"PIVOT",105:"FOR",108:"UNPIVOT",109:"IN",116:"REMOVE",121:"LIKE",124:"ARROW",125:"DOT",127:"ORDER",128:"BY",131:"DOTDOT",132:"CARET",133:"EQ",137:"WHERE",138:"OF",139:"CLASS",140:"NUMBER",141:"STRING",142:"SLASH",143:"VERTEX",144:"EDGE",145:"EXCLAMATION",146:"SHARP",147:"MODULO",148:"GT",149:"LT",150:"GTGT",151:"LTLT",152:"DOLLAR",154:"AT",155:"SET",157:"TO",158:"VALUE",159:"ROW",161:"COLON",163:"NOT",165:"IF",171:"UNION",173:"ALL",175:"ANY",177:"INTERSECT",178:"EXCEPT",179:"AND",180:"OR",181:"PATH",182:"RETURN",184:"REPEAT",188:"PLUS",189:"STAR",190:"QUESTION",192:"FROM",194:"DISTINCT",196:"UNIQUE",198:"SELECT",199:"COLUMN",200:"MATRIX",201:"TEXTSTRING",202:"INDEX",203:"RECORDSET",204:"TOP",207:"INTO",215:"CROSS",216:"APPLY",217:"OUTER",223:"INDEXED",229:"INSERTED",242:"NATURAL",243:"JOIN",244:"INNER",245:"LEFT",246:"RIGHT",247:"FULL",248:"SEMI",249:"ANTI",250:"ON",251:"USING",252:"GROUP",255:"ROLLUP",256:"CUBE",258:"GROUPING",259:"HAVING",262:"CORRESPONDING",265:"NULLS",266:"FIRST",267:"LAST",268:"DIRECTION",269:"COLLATE",270:"NOCASE",271:"LIMIT",273:"OFFSET",275:"FETCH",281:"DELETED",292:"CURRENT_TIMESTAMP",293:"CURRENT_DATE",294:"JAVASCRIPT",295:"CREATE",296:"FUNCTION",297:"AGGREGATE",298:"NEW",299:"CAST",301:"CONVERT",304:"GROUP_CONCAT",307:"OVER",311:"PARTITION",313:"SUM",314:"TOTAL",315:"COUNT",316:"MIN",317:"MAX",318:"AVG",319:"AGGR",320:"ARRAY",322:"REPLACE",323:"DATEADD",324:"DATEDIFF",325:"TIMESTAMPDIFF",326:"INTERVAL",327:"TRUE",328:"FALSE",329:"NSTRING",330:"NULL",331:"EXISTS",332:"ARRAYLBRA",333:"RBRA",335:"BRAQUESTION",336:"CASE",339:"END",341:"WHEN",342:"THEN",343:"ELSE",344:"REGEXP",345:"TILDA",346:"GLOB",347:"ESCAPE",348:"NOT_LIKE",349:"BARBAR",350:"MINUS",351:"AMPERSAND",352:"BAR",353:"GE",354:"LE",355:"EQEQ",356:"EQEQEQ",357:"NE",358:"NEEQEQ",359:"NEEQEQEQ",363:"BETWEEN",364:"NOT_BETWEEN",365:"IS",366:"DOUBLECOLON",367:"SOME",368:"UPDATE",372:"DELETE",373:"INSERT",377:"IGNORE",378:"DEFAULT",379:"VALUES",382:"DateValue",388:"TABLE",391:"IDENTITY",392:"TEMP",402:"CONSTRAINT",403:"CHECK",404:"PRIMARY",407:"FOREIGN",408:"REFERENCES",415:"CASCADE",416:"RESTRICT",417:"NO",418:"ACTION",423:"ColumnConstraints",426:"ENUM",427:"MAXNUM",433:"DROP",437:"ALTER",438:"RENAME",439:"ADD",440:"MODIFY",441:"ATTACH",442:"DATABASE",443:"DETACH",445:"USE",446:"SHOW",447:"VIEW",451:"READ",452:"ONLY",453:"OPTION",454:"SOURCE",455:"ASSERT",457:"ATLBRA",461:"LCUR",463:"RCUR",466:"COLONDASH",471:"OFF",472:"COMMIT",473:"TRANSACTION",474:"ROLLBACK",475:"BEGIN",477:"WHILE",478:"CONTINUE",479:"ITERATE",480:"BREAK",481:"LEAVE",482:"PRINT",483:"REQUIRE",487:"ECHO",488:"DECLARE",491:"TRUNCATE",492:"MERGE",499:"MATCHED",502:"TARGET",503:"OUTPUT",509:"CONTENT",511:"GRAPH",545:"QUESTIONDASH",546:"CALL",547:"TRIGGER",552:"BEFORE",553:"AFTER",554:"INSTEAD",555:"REINDEX",556:"A",557:"ABSENT",558:"ABSOLUTE",559:"ACCORDING",560:"ADA",561:"ADMIN",562:"ALWAYS",563:"ASC",564:"ASSERTION",565:"ASSIGNMENT",566:"ATTRIBUTE",567:"ATTRIBUTES",568:"BASE64",569:"BERNOULLI",570:"BLOCKED",571:"BOM",572:"BREADTH",573:"C",574:"CATALOG",575:"CATALOG_NAME",576:"CHAIN",577:"CHARACTERISTICS",578:"CHARACTERS",579:"CHARACTER_SET_CATALOG",580:"CHARACTER_SET_NAME",581:"CHARACTER_SET_SCHEMA",582:"CLASS_ORIGIN",583:"COBOL",584:"COLLATION",585:"COLLATION_CATALOG",586:"COLLATION_NAME",587:"COLLATION_SCHEMA",588:"COLUMNS",589:"COLUMN_NAME",590:"COMMAND_FUNCTION",591:"COMMAND_FUNCTION_CODE",592:"COMMITTED",593:"CONDITION_NUMBER",594:"CONNECTION",595:"CONNECTION_NAME",596:"CONSTRAINTS",597:"CONSTRAINT_CATALOG",598:"CONSTRAINT_NAME",599:"CONSTRAINT_SCHEMA",600:"CONSTRUCTOR",601:"CONTROL",602:"CURSOR_NAME",603:"DATA",604:"DATETIME_INTERVAL_CODE",605:"DATETIME_INTERVAL_PRECISION",606:"DB",607:"DEFAULTS",608:"DEFERRABLE",609:"DEFERRED",610:"DEFINED",611:"DEFINER",612:"DEGREE",613:"DEPTH",614:"DERIVED",615:"DESC",616:"DESCRIPTOR",617:"DIAGNOSTICS",618:"DISPATCH",619:"DOCUMENT",620:"DOMAIN",621:"DYNAMIC_FUNCTION",622:"DYNAMIC_FUNCTION_CODE",623:"EMPTY",624:"ENCODING",625:"ENFORCED",626:"EXCLUDE",627:"EXCLUDING",628:"EXPRESSION",629:"FILE",630:"FINAL",631:"FLAG",632:"FOLLOWING",633:"FORTRAN",634:"FOUND",635:"FS",636:"G",637:"GENERAL",638:"GENERATED",639:"GO",640:"GOTO",641:"GRANTED",642:"HEX",643:"HIERARCHY",644:"ID",645:"IMMEDIATE",646:"IMMEDIATELY",647:"IMPLEMENTATION",648:"INCLUDING",649:"INCREMENT",650:"INDENT",651:"INITIALLY",652:"INPUT",653:"INSTANCE",654:"INSTANTIABLE",655:"INTEGRITY",656:"INVOKER",657:"ISOLATION",658:"K",659:"KEY_MEMBER",660:"KEY_TYPE",661:"LENGTH",662:"LEVEL",663:"LIBRARY",664:"LINK",665:"LOCATION",666:"LOCATOR",667:"M",668:"MAP",669:"MAPPING",670:"MAXVALUE",671:"MESSAGE_LENGTH",672:"MESSAGE_OCTET_LENGTH",673:"MESSAGE_TEXT",674:"MINVALUE",675:"MORE",676:"MUMPS",677:"NAME",678:"NAMES",679:"NAMESPACE",680:"NESTING",681:"NEXT",682:"NFC",683:"NFD",684:"NFKC",685:"NFKD",686:"NIL",687:"NORMALIZED",688:"NULLABLE",689:"OBJECT",690:"OCTETS",691:"OPTIONS",692:"ORDERING",693:"ORDINALITY",694:"OTHERS",695:"OVERRIDING",696:"P",697:"PAD",698:"PARAMETER_MODE",699:"PARAMETER_NAME",700:"PARAMETER_ORDINAL_POSITION",701:"PARAMETER_SPECIFIC_CATALOG",702:"PARAMETER_SPECIFIC_NAME",703:"PARAMETER_SPECIFIC_SCHEMA",704:"PARTIAL",705:"PASCAL",706:"PASSING",707:"PASSTHROUGH",708:"PERMISSION",709:"PLACING",710:"PLI",711:"PRECEDING",712:"PRESERVE",713:"PRIOR",714:"PRIVILEGES",715:"PUBLIC",716:"RECOVERY",717:"RELATIVE",718:"REPEATABLE",719:"REQUIRING",720:"RESPECT",721:"RESTART",722:"RESTORE",723:"RETURNED_CARDINALITY",724:"RETURNED_LENGTH",725:"RETURNED_OCTET_LENGTH",726:"RETURNED_SQLSTATE",727:"RETURNING",728:"ROLE",729:"ROUTINE",730:"ROUTINE_CATALOG",731:"ROUTINE_NAME",732:"ROUTINE_SCHEMA",733:"ROW_COUNT",734:"SCALE",735:"SCHEMA",736:"SCHEMA_NAME",737:"SCOPE_CATALOG",738:"SCOPE_NAME",739:"SCOPE_SCHEMA",740:"SECTION",741:"SECURITY",742:"SELECTIVE",743:"SELF",744:"SEQUENCE",745:"SERIALIZABLE",746:"SERVER",747:"SERVER_NAME",748:"SESSION",749:"SETS",750:"SIMPLE",751:"SIZE",752:"SPACE",753:"SPECIFIC_NAME",754:"STANDALONE",755:"STATE",756:"STATEMENT",757:"STRIP",758:"STRUCTURE",759:"STYLE",760:"SUBCLASS_ORIGIN",761:"T",762:"TABLE_NAME",763:"TEMPORARY",764:"TIES",765:"TOKEN",766:"TOP_LEVEL_COUNT",767:"TRANSACTIONS_COMMITTED",768:"TRANSACTIONS_ROLLED_BACK",769:"TRANSACTION_ACTIVE",770:"TRANSFORM",771:"TRANSFORMS",772:"TRIGGER_CATALOG",773:"TRIGGER_NAME",774:"TRIGGER_SCHEMA",775:"TYPE",776:"UNBOUNDED",777:"UNCOMMITTED",778:"UNDER",779:"UNLINK",780:"UNNAMED",781:"UNTYPED",782:"URI",783:"USAGE",784:"USER_DEFINED_TYPE_CATALOG",785:"USER_DEFINED_TYPE_CODE",786:"USER_DEFINED_TYPE_NAME",787:"USER_DEFINED_TYPE_SCHEMA",788:"VALID",789:"VERSION",790:"WHITESPACE",791:"WORK",792:"WRAPPER",793:"WRITE",794:"XMLDECLARATION",795:"XMLSCHEMA",796:"YES",797:"ZONE",798:"SEMICOLON",799:"PERCENT",800:"ROWS"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,2],[11,1],[11,2],[12,2],[13,3],[13,1],[13,1],[17,2],[17,4],[16,1],[21,0],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[51,3],[77,3],[77,4],[77,1],[77,2],[79,5],[79,8],[44,10],[44,4],[44,4],[99,8],[95,3],[102,8],[102,11],[111,4],[113,2],[113,1],[112,3],[112,1],[114,1],[114,3],[115,3],[118,3],[118,1],[119,1],[119,2],[123,1],[123,1],[126,1],[126,5],[126,5],[126,1],[126,2],[126,1],[126,2],[126,2],[126,3],[126,4],[126,4],[126,4],[126,4],[126,4],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,2],[126,2],[126,1],[126,1],[126,1],[126,1],[126,1],[126,1],[126,2],[126,3],[126,4],[126,3],[126,1],[126,4],[126,2],[126,2],[126,4],[126,4],[126,4],[126,4],[126,4],[126,5],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,4],[126,6],[172,3],[172,1],[162,1],[162,1],[162,1],[191,2],[85,4],[85,4],[85,4],[85,3],[193,1],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[193,2],[195,3],[195,4],[195,0],[87,0],[87,2],[87,2],[87,2],[87,2],[87,2],[88,2],[88,3],[88,5],[88,5],[88,0],[214,6],[214,7],[214,6],[214,7],[212,1],[212,3],[218,4],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[218,2],[218,1],[230,1],[230,2],[227,1],[208,3],[208,1],[231,1],[231,1],[213,2],[213,2],[213,1],[213,1],[232,3],[234,2],[234,3],[234,2],[234,4],[234,2],[234,2],[233,1],[233,2],[241,1],[241,2],[241,2],[241,3],[241,2],[241,3],[241,2],[241,3],[241,2],[241,2],[241,2],[235,2],[235,2],[235,4],[235,0],[90,0],[90,2],[91,0],[91,4],[91,6],[91,6],[253,1],[253,3],[257,5],[257,4],[257,4],[257,1],[254,0],[254,2],[92,0],[92,2],[260,1],[260,2],[260,1],[260,1],[260,2],[260,3],[260,2],[260,2],[261,1],[261,1],[93,0],[93,3],[129,1],[129,3],[264,2],[264,2],[263,1],[263,2],[263,3],[263,3],[263,4],[94,0],[94,3],[94,8],[272,0],[272,2],[183,3],[183,1],[279,3],[279,2],[279,3],[279,2],[279,3],[279,2],[279,1],[280,5],[280,3],[280,3],[280,3],[280,1],[120,5],[120,3],[120,3],[120,3],[120,3],[120,4],[120,1],[120,1],[120,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,3],[104,3],[104,3],[104,1],[104,1],[104,1],[60,1],[74,5],[75,5],[290,2],[290,2],[288,6],[288,8],[288,6],[288,8],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[302,1],[282,5],[282,6],[282,6],[282,6],[282,7],[303,0],[303,5],[310,3],[312,3],[305,0],[305,3],[306,0],[306,2],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[167,1],[209,6],[209,4],[209,4],[209,4],[209,3],[209,8],[209,8],[209,8],[209,8],[209,8],[209,3],[160,1],[160,3],[205,1],[284,1],[284,1],[122,1],[122,1],[285,1],[211,2],[286,4],[289,3],[210,2],[210,2],[210,1],[210,1],[287,5],[287,4],[337,2],[337,1],[340,4],[338,2],[338,0],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,5],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,3],[283,6],[283,6],[283,3],[283,3],[283,2],[283,2],[283,2],[283,2],[283,2],[283,3],[283,5],[283,6],[283,5],[283,6],[283,4],[283,5],[283,3],[283,4],[283,3],[283,4],[283,3],[283,3],[283,3],[283,3],[283,3],[362,1],[362,1],[362,4],[360,1],[360,1],[360,1],[360,1],[360,1],[360,1],[361,1],[361,1],[361,1],[59,7],[59,5],[156,1],[156,3],[370,3],[370,4],[33,6],[33,4],[40,6],[40,5],[40,7],[40,6],[40,10],[40,9],[40,6],[40,9],[40,8],[40,7],[40,6],[40,5],[40,6],[40,9],[40,8],[40,5],[40,7],[40,8],[40,6],[375,1],[375,1],[374,0],[374,1],[376,3],[376,1],[376,1],[376,5],[376,3],[376,3],[380,1],[380,3],[381,1],[381,1],[381,1],[381,1],[381,1],[381,1],[84,1],[84,3],[28,9],[28,5],[384,1],[384,1],[387,0],[387,1],[389,2],[389,1],[390,1],[390,3],[390,3],[390,3],[383,0],[383,1],[385,0],[385,3],[386,3],[386,1],[386,2],[394,1],[394,3],[395,2],[395,2],[395,2],[395,2],[395,2],[396,0],[396,2],[401,4],[397,6],[398,9],[411,3],[410,0],[410,1],[410,1],[410,2],[410,2],[412,3],[413,3],[414,1],[414,2],[414,2],[414,1],[414,2],[399,6],[400,5],[406,1],[406,1],[406,3],[406,3],[393,1],[393,3],[421,3],[421,2],[421,1],[424,6],[424,4],[424,1],[424,4],[300,2],[300,1],[425,1],[425,1],[422,0],[422,1],[428,2],[428,1],[430,3],[429,2],[429,6],[429,4],[429,6],[429,1],[429,2],[429,4],[429,2],[429,1],[429,2],[429,1],[429,1],[429,3],[429,5],[37,4],[436,3],[436,1],[435,0],[435,2],[22,6],[22,6],[22,6],[22,8],[22,6],[43,5],[23,4],[23,7],[23,6],[23,9],[34,3],[25,4],[25,6],[25,9],[25,6],[444,0],[444,2],[58,3],[58,2],[35,4],[35,5],[35,5],[26,8],[26,9],[36,3],[47,2],[47,4],[47,3],[47,5],[49,2],[49,4],[49,4],[49,6],[46,4],[46,6],[48,4],[48,6],[45,4],[45,6],[29,11],[29,8],[450,3],[450,3],[450,5],[38,4],[70,2],[61,2],[62,2],[62,2],[62,4],[153,4],[153,2],[153,2],[153,2],[153,2],[153,1],[153,2],[153,2],[459,1],[459,1],[460,1],[460,2],[460,1],[460,1],[460,1],[460,1],[460,1],[460,1],[460,3],[456,3],[456,4],[456,2],[458,2],[458,3],[458,1],[462,3],[462,1],[465,3],[465,3],[465,3],[465,3],[465,3],[465,3],[464,3],[464,1],[69,4],[69,3],[69,4],[69,5],[69,5],[69,6],[469,1],[469,1],[468,3],[468,2],[470,1],[470,1],[470,3],[467,1],[467,1],[55,2],[56,2],[54,2],[39,4],[39,3],[476,2],[63,3],[64,1],[64,1],[65,1],[65,1],[66,3],[67,2],[67,2],[68,2],[68,2],[486,1],[486,1],[73,2],[484,3],[484,1],[485,3],[485,1],[32,2],[489,1],[489,3],[490,3],[490,4],[490,5],[490,6],[50,3],[41,6],[493,1],[493,2],[494,2],[494,4],[495,2],[496,2],[496,2],[496,1],[496,1],[497,4],[497,6],[500,1],[500,3],[498,5],[498,7],[498,7],[498,9],[498,7],[498,9],[501,3],[501,6],[501,3],[501,6],[369,0],[369,2],[369,5],[369,4],[369,7],[31,6],[508,2],[507,0],[507,2],[507,2],[507,1],[30,8],[27,3],[27,4],[512,3],[512,1],[513,3],[513,7],[513,6],[513,3],[513,4],[517,1],[517,1],[521,2],[522,3],[523,2],[524,4],[514,4],[514,3],[514,2],[514,1],[536,2],[532,2],[532,2],[537,4],[539,6],[71,3],[71,2],[544,3],[544,1],[543,1],[543,4],[72,2],[24,2],[52,9],[52,8],[52,9],[548,0],[548,1],[548,1],[548,1],[548,2],[549,1],[549,1],[549,1],[53,3],[42,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[15,1],[15,1],[86,0],[86,1],[89,0],[89,1],[97,0],[97,2],[98,0],[98,1],[100,0],[100,1],[101,0],[101,1],[106,0],[106,1],[107,0],[107,1],[110,0],[110,1],[117,0],[117,1],[130,0],[130,1],[134,1],[134,2],[135,1],[135,2],[136,0],[136,1],[164,0],[164,2],[166,0],[166,2],[168,0],[168,2],[169,1],[169,1],[170,0],[170,2],[174,0],[174,2],[176,0],[176,2],[185,0],[185,2],[186,0],[186,2],[187,0],[187,2],[197,0],[197,1],[206,0],[206,1],[219,0],[219,1],[220,0],[220,1],[221,0],[221,1],[222,0],[222,1],[224,0],[224,1],[225,0],[225,1],[226,0],[226,1],[228,0],[228,1],[236,0],[236,1],[237,0],[237,1],[238,0],[238,1],[239,0],[239,1],[240,0],[240,1],[274,0],[274,1],[276,0],[276,1],[277,0],[277,1],[278,0],[278,1],[291,1],[291,1],[308,0],[308,1],[309,0],[309,1],[801,1],[801,1],[321,0],[321,1],[334,1],[334,1],[371,1],[371,1],[405,0],[405,1],[409,0],[409,1],[419,0],[419,1],[420,0],[420,1],[431,0],[431,1],[432,0],[432,1],[434,1],[434,1],[448,0],[448,1],[449,0],[449,1],[504,0],[504,1],[505,0],[505,1],[506,0],[506,1],[510,0],[510,1],[515,0],[515,1],[516,0],[516,1],[518,0],[518,1],[519,0],[519,1],[520,0],[520,1],[525,0],[525,1],[526,0],[526,1],[527,0],[527,1],[528,0],[528,1],[529,0],[529,1],[530,0],[530,1],[531,0],[531,1],[533,0],[533,1],[534,0],[534,1],[535,0],[535,1],[538,0],[538,2],[540,0],[540,2],[541,0],[541,2],[542,0],[542,2],[550,0],[550,1],[551,0],[551,1]],performAction:function(t,e,r,n,i,s,a){var l=s.length-1;switch(i){case 1:o.options.casesensitive?this.$=s[l]:this.$=s[l].toLowerCase();break;case 2:this.$=g(s[l].substr(1,s[l].length-2));break;case 3:case 4:case 5:case 6:case 7:this.$=s[l].toLowerCase();break;case 8:case 87:case 88:case 96:case 157:case 199:case 200:case 204:case 205:case 245:case 284:case 299:case 300:case 301:case 302:case 303:case 304:case 305:case 306:case 307:case 308:case 309:case 310:case 311:case 312:case 315:case 316:case 332:case 333:case 334:case 335:case 336:case 337:case 350:case 395:case 461:case 462:case 463:case 464:case 465:case 466:case 544:case 577:case 581:case 583:case 658:case 659:case 660:case 661:case 662:case 663:case 668:case 670:case 671:case 680:case 699:case 700:case 765:case 780:case 781:case 783:case 784:case 790:case 791:case 320:case 458:case 459:case 554:case 555:case 709:this.$=s[l];break;case 9:this.$=s[l]?s[l-1]+" "+s[l]:s[l-1];break;case 10:return new n.Statements({statements:s[l-1]});case 11:this.$=s[l-2],s[l]&&s[l-2].push(s[l]);break;case 12:case 13:case 75:case 90:case 95:case 153:case 188:case 208:case 209:case 240:case 262:case 277:case 375:case 393:case 472:case 502:case 503:case 507:case 515:case 563:case 564:case 601:case 688:case 698:case 724:case 726:case 728:case 743:case 744:case 774:case 798:case 536:case 567:case 1113:case 1115:this.$=[s[l]];break;case 14:case 15:this.$=s[l],s[l].explain=!0;break;case 16:this.$=s[l],n.exists&&(this.$.exists=n.exists),delete n.exists,n.queries&&(this.$.queries=n.queries),delete n.queries;break;case 17:case 172:case 183:case 233:case 234:case 236:case 246:case 248:case 260:case 271:case 274:case 345:case 349:case 351:case 396:case 519:case 529:case 531:case 543:case 602:case 173:case 766:case 580:case 619:this.$=void 0;break;case 72:this.$=new n.WithSelect({withs:s[l-1],select:s[l]});break;case 73:case 600:case 276:case 537:case 568:case 687:case 697:case 723:case 725:case 729:case 376:s[l-2].push(s[l]),this.$=s[l-2];break;case 74:s[l].recursive=!0,s[l-3].push(s[l]),this.$=s[l-3];break;case 76:s[l].recursive=!0,this.$=[s[l]];break;case 77:this.$={name:s[l-4],select:s[l-1]};break;case 78:this.$={name:s[l-7],columns:s[l-5],select:s[l-1]};break;case 79:n.extend(this.$,s[l-9]),n.extend(this.$,s[l-8]),n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-9],n.exists&&(this.$.exists=n.exists.slice());break;case 80:n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-3],n.exists&&(this.$.exists=n.exists.slice());break;case 81:this.$=new n.Search({selectors:s[l-2],from:s[l]}),n.extend(this.$,s[l-1]);break;case 82:n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]),this.$=s[l-7],n.exists&&(this.$.exists=n.exists.slice());break;case 83:case 86:case 548:case 584:case 620:case 654:case 672:case 673:case 676:case 701:case 460:this.$=s[l-1];break;case 84:this.$={pivot:{expr:s[l-5],columnid:s[l-3],inlist:s[l-2],as:s[l]}};break;case 85:this.$={unpivot:{tocolumnid:s[l-8],forcolumnid:s[l-6],inlist:s[l-3],as:s[l]}};break;case 89:case 94:case 773:case 797:case 152:this.$=s[l-2],this.$.push(s[l]);break;case 91:this.$={expr:s[l]};break;case 92:this.$={expr:s[l-2],as:s[l]};break;case 93:this.$={removecolumns:s[l]};break;case 97:this.$={like:s[l]};break;case 100:case 114:this.$={srchid:"PROP",args:[s[l]]};break;case 101:this.$={srchid:"ORDERBY",args:s[l-1]};break;case 102:var u=s[l-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new n.Column({columnid:"_"}),direction:u}]};break;case 103:this.$={srchid:"PARENT"};break;case 104:this.$={srchid:"APROP",args:[s[l]]};break;case 105:this.$={selid:"ROOT"};break;case 106:this.$={srchid:"EQ",args:[s[l]]};break;case 107:this.$={srchid:"LIKE",args:[s[l]]};break;case 108:case 109:this.$={selid:"WITH",args:s[l-1]};break;case 110:this.$={srchid:s[l-3].toUpperCase(),args:s[l-1]};break;case 111:this.$={srchid:"WHERE",args:[s[l-1]]};break;case 112:this.$={selid:"OF",args:[s[l-1]]};break;case 113:this.$={srchid:"CLASS",args:[s[l-1]]};break;case 115:this.$={srchid:"NAME",args:[s[l].substr(1,s[l].length-2)]};break;case 116:this.$={srchid:"CHILD"};break;case 117:this.$={srchid:"VERTEX"};break;case 118:this.$={srchid:"EDGE"};break;case 119:this.$={srchid:"REF"};break;case 120:this.$={srchid:"SHARP",args:[s[l]]};break;case 121:this.$={srchid:"ATTR",args:typeof s[l]>"u"?void 0:[s[l]]};break;case 122:this.$={srchid:"ATTR"};break;case 123:this.$={srchid:"OUT"};break;case 124:this.$={srchid:"IN"};break;case 125:this.$={srchid:"OUTOUT"};break;case 126:this.$={srchid:"ININ"};break;case 127:this.$={srchid:"CONTENT"};break;case 128:this.$={srchid:"EX",args:[new n.Json({value:s[l]})]};break;case 129:this.$={srchid:"AT",args:[s[l]]};break;case 130:this.$={srchid:"AS",args:[s[l]]};break;case 131:this.$={srchid:"SET",args:s[l-1]};break;case 132:this.$={selid:"TO",args:[s[l]]};break;case 133:this.$={srchid:"VALUE"};break;case 134:this.$={srchid:"ROW",args:s[l-1]};break;case 135:this.$={srchid:"CLASS",args:[s[l]]};break;case 136:this.$={selid:s[l],args:[s[l-1]]};break;case 137:this.$={selid:"NOT",args:s[l-1]};break;case 138:this.$={selid:"IF",args:s[l-1]};break;case 139:this.$={selid:s[l-3],args:s[l-1]};break;case 140:this.$={selid:"DISTINCT",args:s[l-1]};break;case 141:this.$={selid:"UNION",args:s[l-1]};break;case 142:this.$={selid:"UNIONALL",args:s[l-1]};break;case 143:this.$={selid:"ALL",args:[s[l-1]]};break;case 144:this.$={selid:"ANY",args:[s[l-1]]};break;case 145:this.$={selid:"INTERSECT",args:s[l-1]};break;case 146:this.$={selid:"EXCEPT",args:s[l-1]};break;case 147:this.$={selid:"AND",args:s[l-1]};break;case 148:this.$={selid:"OR",args:s[l-1]};break;case 149:this.$={selid:"PATH",args:[s[l-1]]};break;case 150:this.$={srchid:"RETURN",args:s[l-1]};break;case 151:this.$={selid:"REPEAT",sels:s[l-3],args:s[l-1]};break;case 154:this.$="PLUS";break;case 155:this.$="STAR";break;case 156:this.$="QUESTION";break;case 158:case 159:this.$=new n.Select({columns:s[l],distinct:!0}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-1]);break;case 160:this.$=new n.Select({columns:s[l],all:!0}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-1]);break;case 161:s[l]?(this.$=new n.Select({columns:s[l]}),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1])):this.$=new n.Select({columns:[new n.Column({columnid:"_"})],modifier:"COLUMN"});break;case 162:"SELECT"==s[l]?this.$=void 0:this.$={modifier:s[l]};break;case 163:this.$={modifier:"VALUE"};break;case 164:this.$={modifier:"ROW"};break;case 165:this.$={modifier:"COLUMN"};break;case 166:this.$={modifier:"MATRIX"};break;case 167:this.$={modifier:"TEXTSTRING"};break;case 168:this.$={modifier:"INDEX"};break;case 169:this.$={modifier:"RECORDSET"};break;case 170:this.$={top:s[l-1],percent:typeof s[l]<"u"||void 0};break;case 171:this.$={top:s[l-1]};break;case 174:case 175:case 176:case 177:case 736:case 737:this.$={into:s[l]};break;case 178:var c=(p=(p=s[l]).substr(1,p.length-2)).substr(-3).toUpperCase(),h=p.substr(-4).toUpperCase();"#"==p[0]?this.$={into:new n.FuncValue({funcid:"HTML",args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}:"XLS"==c||"CSV"==c||"TAB"==c?this.$={into:new n.FuncValue({funcid:c,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new n.FuncValue({funcid:h,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})});break;case 179:this.$={from:s[l]};break;case 180:this.$={from:s[l-1],joins:s[l]};break;case 181:var d=s[l-2];s[l].forEach((t=>{var e=new n.Join({joinmode:"CROSS"});t.tableid?e.table=new n.Table({databaseid:t.databaseid,tableid:t.tableid}):t instanceof n.Select?e.select=t:t instanceof n.Search?e.search=t:t instanceof n.ParamValue?e.param=t:t instanceof n.VarValue?e.variable=t.variable:t instanceof n.FuncValue?e.func=t:t instanceof n.Json&&(e.json=t),t.as&&(e.as=t.as),d.push(e)})),this.$={from:s[l-3],joins:d};break;case 182:this.$={from:s[l-2],joins:s[l-1]};break;case 184:this.$=new n.Apply({select:s[l-2],applymode:"CROSS",as:s[l]});break;case 185:this.$=new n.Apply({select:s[l-3],applymode:"CROSS",as:s[l]});break;case 186:this.$=new n.Apply({select:s[l-2],applymode:"OUTER",as:s[l]});break;case 187:this.$=new n.Apply({select:s[l-3],applymode:"OUTER",as:s[l]});break;case 189:case 241:case 473:case 565:case 566:case 263:case 505:case 506:case 508:case 516:this.$=s[l-2],s[l-2].push(s[l]);break;case 190:this.$=s[l-2],this.$.as=s[l]||"default";break;case 191:this.$=new n.Json({value:s[l-2]}),s[l-2].as=s[l];break;case 192:this.$=s[l-1],s[l]&&(s[l-1].as=s[l]);break;case 193:case 674:case 677:this.$=s[l-2];break;case 194:case 195:case 196:case 197:this.$=s[l-1],s[l-1].as=s[l]||"default";break;case 198:this.$={inserted:!0};break;case 201:var p,f;if(c=(p=(p=s[l]).substr(1,p.length-2)).substr(-3).toUpperCase(),h=p.substr(-4).toUpperCase(),"#"==p[0])f=new n.FuncValue({funcid:"HTML",args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]});else if("XLS"==c||"CSV"==c||"TAB"==c)f=new n.FuncValue({funcid:c,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");f=new n.FuncValue({funcid:h,args:[new n.StringValue({value:p}),new n.Json({value:{headers:!0}})]})}this.$=f;break;case 202:"INFORMATION_SCHEMA"==s[l-2]?this.$=new n.FuncValue({funcid:s[l-2],args:[new n.StringValue({value:s[l]})]}):this.$=new n.Table({databaseid:s[l-2],tableid:s[l]});break;case 203:this.$=new n.Table({tableid:s[l]});break;case 206:case 207:this.$=s[l-1],s[l-1].push(s[l]);break;case 210:this.$=new n.Join(s[l-2]),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]);break;case 211:this.$={table:s[l-1]},s[l]&&(this.$.as=s[l]);break;case 212:this.$={json:new n.Json({value:s[l-2],as:s[l]})};break;case 213:this.$={param:s[l-1],as:s[l]};break;case 214:this.$={select:s[l-2],as:s[l]};break;case 215:this.$={func:s[l-1],as:s[l]||"default"};break;case 216:this.$={variable:s[l-1],as:s[l]||"default"};break;case 217:this.$={joinmode:s[l]};break;case 218:this.$={joinmode:s[l-1],natural:!0};break;case 219:case 220:this.$="INNER";break;case 221:case 222:this.$="LEFT";break;case 223:case 224:this.$="RIGHT";break;case 225:case 226:this.$="OUTER";break;case 227:this.$="SEMI";break;case 228:this.$="ANTI";break;case 229:this.$="CROSS";break;case 230:case 740:this.$={on:s[l]};break;case 231:case 738:this.$={using:s[l]};break;case 232:case 739:this.$={using:s[l-1]};break;case 235:this.$={where:new n.Expression({expression:s[l]})};break;case 237:this.$={group:s[l-1]},n.extend(this.$,s[l]);break;case 238:this.$={group:[new n.GroupExpression({type:"ROLLUP",group:s[l-3]})]},n.extend(this.$,s[l]);break;case 239:this.$={group:[new n.GroupExpression({type:"CUBE",group:s[l-3]})]},n.extend(this.$,s[l]);break;case 242:this.$=new n.GroupExpression({type:"GROUPING SETS",group:s[l-1]});break;case 243:this.$=new n.GroupExpression({type:"ROLLUP",group:s[l-1]});break;case 244:this.$=new n.GroupExpression({type:"CUBE",group:s[l-1]});break;case 247:this.$={having:s[l]};break;case 249:this.$={},this.$[s[l-1].op]=s[l],s[l-1].corresponding&&(this.$.corresponding=!0);break;case 250:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"union"};break;case 251:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"unionall"};break;case 252:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"except"};break;case 253:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"intersect"};break;case 254:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"union",corresponding:!0};break;case 255:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"unionall",corresponding:!0};break;case 256:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"except",corresponding:!0};break;case 257:n.queriesStack||(n.queriesStack=[]),n.queriesStack.push(n.queries||[]),n.queries=[],this.$={op:"intersect",corresponding:!0};break;case 258:case 259:n.queriesStack&&n.queriesStack.length>0&&(n.queries&&n.queries.length>0&&(s[l].queries=n.queries),n.queries=n.queriesStack.pop()),this.$=s[l];break;case 261:case 348:this.$={order:s[l]};break;case 264:this.$={nullsOrder:"FIRST"};break;case 265:this.$={nullsOrder:"LAST"};break;case 266:this.$=new n.Expression({expression:s[l],direction:"ASC"});break;case 267:this.$=new n.Expression({expression:s[l-1],direction:s[l].toUpperCase()});break;case 268:this.$=new n.Expression({expression:s[l-2],direction:s[l-1].toUpperCase()}),n.extend(this.$,s[l]);break;case 269:this.$=new n.Expression({expression:s[l-2],direction:"ASC",nocase:!0});break;case 270:this.$=new n.Expression({expression:s[l-3],direction:s[l].toUpperCase(),nocase:!0});break;case 272:this.$={limit:s[l-1]},n.extend(this.$,s[l]);break;case 273:this.$={limit:s[l-2],offset:s[l-6]};break;case 275:this.$={offset:s[l]};break;case 278:case 280:s[l-2].as=s[l],this.$=s[l-2];break;case 279:case 281:s[l-1].as=s[l],this.$=s[l-1];break;case 282:s[l-2].as=s[l].value,this.$=s[l-2];break;case 283:s[l-1].as=s[l].value,this.$=s[l-1];break;case 285:this.$=new n.Column({columid:s[l],tableid:s[l-2],databaseid:s[l-4]});break;case 286:case 293:case 294:this.$=new n.Column({columnid:s[l],tableid:s[l-2]});break;case 287:case 291:this.$=new n.Column({columnid:s[l],tableid:"INSERTED"});break;case 288:case 292:this.$=new n.Column({columnid:s[l],tableid:"DELETED"});break;case 289:case 298:this.$=new n.Column({columnid:s[l]});break;case 290:this.$=new n.Column({columnid:s[l],tableid:s[l-2],databaseid:s[l-4]});break;case 295:this.$=new n.Column({columnid:"@"+s[l],tableid:s[l-3]});break;case 296:this.$=new n.Column({columnid:"inserted"});break;case 297:this.$=new n.Column({columnid:"deleted"});break;case 313:this.$=new n.DomainValueValue;break;case 314:this.$=new n.Json({value:s[l]});break;case 317:case 318:case 319:n.queries||(n.queries=[]),n.queries.push(s[l-1]),s[l-1].queriesidx=n.queries.length,this.$=s[l-1];break;case 321:case 338:this.$=new n.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 322:case 339:this.$=new n.FuncValue({funcid:"CURRENT_DATE"});break;case 323:this.$=new n.JavaScript({value:s[l].substr(2,s[l].length-4)});break;case 324:this.$=new n.JavaScript({value:'alasql.fn["'+s[l-2]+'"] = '+s[l].substr(2,s[l].length-4)});break;case 325:this.$=new n.JavaScript({value:'alasql.aggr["'+s[l-2]+'"] = '+s[l].substr(2,s[l].length-4)});break;case 326:this.$=new n.FuncValue({funcid:s[l],newid:!0});break;case 327:this.$=s[l],n.extend(this.$,{newid:!0});break;case 328:this.$=new n.Convert({expression:s[l-3]}),n.extend(this.$,s[l-1]);break;case 329:this.$=new n.Convert({expression:s[l-5],style:s[l-1]}),n.extend(this.$,s[l-3]);break;case 330:this.$=new n.Convert({expression:s[l-1]}),n.extend(this.$,s[l-3]);break;case 331:this.$=new n.Convert({expression:s[l-3],style:s[l-1]}),n.extend(this.$,s[l-5]);break;case 340:s[l-2].length>1&&("MAX"==s[l-4].toUpperCase()||"MIN"==s[l-4].toUpperCase())?this.$=new n.FuncValue({funcid:s[l-4],args:s[l-2]}):this.$=new n.AggrValue({aggregatorid:s[l-4].toUpperCase(),expression:s[l-2].pop(),over:s[l]});break;case 341:this.$=new n.AggrValue({aggregatorid:s[l-5].toUpperCase(),expression:s[l-2],distinct:!0,over:s[l]});break;case 342:this.$=new n.AggrValue({aggregatorid:s[l-5].toUpperCase(),expression:s[l-2],over:s[l]});break;case 343:this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:s[l-3],order:s[l-2],separator:s[l-1]});break;case 344:this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:"GROUP_CONCAT",expression:s[l-3],distinct:!0,order:s[l-2],separator:s[l-1]});break;case 346:this.$=new n.Over,n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]);break;case 347:this.$={partition:s[l]};break;case 352:var m=s[l].substring(1,s[l].length-1);m=m.replace(/\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\r/g,"\r").replace(/\\\\/g,"\\"),this.$=m;break;case 353:this.$="SUM";break;case 354:this.$="TOTAL";break;case 355:this.$="COUNT";break;case 356:this.$="MIN";break;case 357:case 579:this.$="MAX";break;case 358:this.$="AVG";break;case 359:this.$="FIRST";break;case 360:this.$="LAST";break;case 361:this.$="AGGR";break;case 362:this.$="ARRAY";break;case 363:this.$="GROUP_CONCAT";break;case 364:var y=s[l-5],_=s[l-2];_.length>1&&("MIN"==y.toUpperCase()||"MAX"==y.toUpperCase())?this.$=new n.FuncValue({funcid:y,args:_,over:s[l]}):o.aggr[s[l-5]]?this.$=new n.AggrValue({aggregatorid:"REDUCE",funcid:y,expression:_[0],args:_,distinct:"DISTINCT"==s[l-3],over:s[l]}):this.$=new n.FuncValue({funcid:y,args:_,over:s[l]});break;case 365:this.$=new n.FuncValue({funcid:s[l-3],over:s[l]});break;case 366:this.$=new n.FuncValue({funcid:"IIF",args:s[l-1]});break;case 367:this.$=new n.FuncValue({funcid:"REPLACE",args:s[l-1]});break;case 368:this.$=new n.FuncValue({funcid:s[l-2]});break;case 369:this.$=new n.FuncValue({funcid:"DATEADD",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 370:this.$=new n.FuncValue({funcid:"DATEADD",args:[s[l-5],s[l-3],s[l-1]]});break;case 371:this.$=new n.FuncValue({funcid:"DATEDIFF",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 372:this.$=new n.FuncValue({funcid:"DATEDIFF",args:[s[l-5],s[l-3],s[l-1]]});break;case 373:this.$=new n.FuncValue({funcid:"TIMESTAMPDIFF",args:[new n.StringValue({value:s[l-5]}),s[l-3],s[l-1]]});break;case 374:this.$=new n.FuncValue({funcid:"INTERVAL",args:[s[l-1],new n.StringValue({value:s[l].toLowerCase()})]});break;case 377:this.$=new n.NumValue({value:+s[l]});break;case 378:this.$=new n.LogicValue({value:!0});break;case 379:this.$=new n.LogicValue({value:!1});break;case 380:this.$=new n.StringValue({value:s[l].substr(1,s[l].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 381:this.$=new n.StringValue({value:s[l].substr(2,s[l].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 382:this.$=new n.NullValue({value:void 0});break;case 383:this.$=new n.VarValue({variable:s[l]});break;case 384:n.exists||(n.exists=[]),this.$=new n.ExistsValue({value:s[l-1],existsidx:n.exists.length}),n.exists.push(s[l-1]);break;case 385:this.$=new n.ArrayValue({value:s[l-1]});break;case 386:case 387:this.$=new n.ParamValue({param:s[l]});break;case 388:typeof n.question>"u"&&(n.question=0),this.$=new n.ParamValue({param:n.question++});break;case 389:typeof n.question>"u"&&(n.question=0),this.$=new n.ParamValue({param:n.question++,array:!0});break;case 390:this.$=new n.CaseValue({expression:s[l-3],whens:s[l-2],elses:s[l-1]});break;case 391:this.$=new n.CaseValue({whens:s[l-2],elses:s[l-1]});break;case 392:case 741:case 742:this.$=s[l-1],this.$.push(s[l]);break;case 394:this.$={when:s[l-2],then:s[l]};break;case 397:case 398:this.$=new n.Op({left:s[l-2],op:"REGEXP",right:s[l]});break;case 399:this.$=new n.Op({left:s[l-2],op:"GLOB",right:s[l]});break;case 400:this.$=new n.Op({left:s[l-2],op:"LIKE",right:s[l]});break;case 401:this.$=new n.Op({left:s[l-4],op:"LIKE",right:s[l-2],escape:s[l]});break;case 402:this.$=new n.Op({left:s[l-2],op:"NOT LIKE",right:s[l]});break;case 403:this.$=new n.Op({left:s[l-4],op:"NOT LIKE",right:s[l-2],escape:s[l]});break;case 404:this.$=new n.Op({left:s[l-2],op:"||",right:s[l]});break;case 405:this.$=new n.Op({left:s[l-2],op:"+",right:s[l]});break;case 406:this.$=new n.Op({left:s[l-2],op:"-",right:s[l]});break;case 407:this.$=new n.Op({left:s[l-2],op:"*",right:s[l]});break;case 408:this.$=new n.Op({left:s[l-2],op:"/",right:s[l]});break;case 409:this.$=new n.Op({left:s[l-2],op:"%",right:s[l]});break;case 410:this.$=new n.Op({left:s[l-2],op:"^",right:s[l]});break;case 411:this.$=new n.Op({left:s[l-2],op:">>",right:s[l]});break;case 412:this.$=new n.Op({left:s[l-2],op:"<<",right:s[l]});break;case 413:this.$=new n.Op({left:s[l-2],op:"&",right:s[l]});break;case 414:this.$=new n.Op({left:s[l-2],op:"|",right:s[l]});break;case 415:case 416:case 418:this.$=new n.Op({left:s[l-2],op:"->",right:s[l]});break;case 417:this.$=new n.Op({left:s[l-4],op:"->",right:s[l-1]});break;case 419:case 420:case 422:this.$=new n.Op({left:s[l-2],op:"!",right:s[l]});break;case 421:this.$=new n.Op({left:s[l-4],op:"!",right:s[l-1]});break;case 423:this.$=new n.Op({left:s[l-2],op:">",right:s[l]});break;case 424:this.$=new n.Op({left:s[l-2],op:">=",right:s[l]});break;case 425:this.$=new n.Op({left:s[l-2],op:"<",right:s[l]});break;case 426:this.$=new n.Op({left:s[l-2],op:"<=",right:s[l]});break;case 427:this.$=new n.Op({left:s[l-2],op:"=",right:s[l]});break;case 428:this.$=new n.Op({left:s[l-2],op:"==",right:s[l]});break;case 429:this.$=new n.Op({left:s[l-2],op:"===",right:s[l]});break;case 430:this.$=new n.Op({left:s[l-2],op:"!=",right:s[l]});break;case 431:this.$=new n.Op({left:s[l-2],op:"!==",right:s[l]});break;case 432:this.$=new n.Op({left:s[l-2],op:"!===",right:s[l]});break;case 433:n.queries||(n.queries=[]);var v=n.queries.slice();n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-5],op:s[l-4],allsome:s[l-3],right:s[l-1],queriesidx:n.queries.length-1});break;case 434:this.$=new n.Op({left:s[l-5],op:s[l-4],allsome:s[l-3],right:s[l-1]});break;case 435:"BETWEEN1"==s[l-2].op?"AND"==s[l-2].left.op?this.$=new n.Op({left:s[l-2].left.left,op:"AND",right:new n.Op({left:s[l-2].left.right,op:"BETWEEN",right1:s[l-2].right,right2:s[l]})}):this.$=new n.Op({left:s[l-2].left,op:"BETWEEN",right1:s[l-2].right,right2:s[l]}):"NOT BETWEEN1"==s[l-2].op?"AND"==s[l-2].left.op?this.$=new n.Op({left:s[l-2].left.left,op:"AND",right:new n.Op({left:s[l-2].left.right,op:"NOT BETWEEN",right1:s[l-2].right,right2:s[l]})}):this.$=new n.Op({left:s[l-2].left,op:"NOT BETWEEN",right1:s[l-2].right,right2:s[l]}):this.$=new n.Op({left:s[l-2],op:"AND",right:s[l]});break;case 436:this.$=new n.Op({left:s[l-2],op:"OR",right:s[l]});break;case 437:this.$=new n.UniOp({op:"NOT",right:s[l]});break;case 438:this.$=new n.UniOp({op:"-",right:s[l]});break;case 439:this.$=new n.UniOp({op:"+",right:s[l]});break;case 440:this.$=new n.UniOp({op:"~",right:s[l]});break;case 441:this.$=new n.UniOp({op:"#",right:s[l]});break;case 442:this.$=new n.UniOp({right:s[l-1]});break;case 443:n.queries||(n.queries=[]),v=n.queries.slice(),n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-4],op:"IN",right:s[l-1],queriesidx:n.queries.length-1});break;case 444:n.queries||(n.queries=[]),v=n.queries.slice(),n.queries=[],v.length>0&&(s[l-1].queries=v),n.queries.push(s[l-1]),this.$=new n.Op({left:s[l-5],op:"NOT IN",right:s[l-1],queriesidx:n.queries.length-1});break;case 445:this.$=new n.Op({left:s[l-4],op:"IN",right:s[l-1]});break;case 446:this.$=new n.Op({left:s[l-5],op:"NOT IN",right:s[l-1]});break;case 447:this.$=new n.Op({left:s[l-3],op:"IN",right:[]});break;case 448:this.$=new n.Op({left:s[l-4],op:"NOT IN",right:[]});break;case 449:case 451:this.$=new n.Op({left:s[l-2],op:"IN",right:s[l]});break;case 450:case 452:this.$=new n.Op({left:s[l-3],op:"NOT IN",right:s[l]});break;case 453:this.$=new n.Op({left:s[l-2],op:"BETWEEN1",right:s[l]});break;case 454:this.$=new n.Op({left:s[l-2],op:"NOT BETWEEN1",right:s[l]});break;case 455:this.$=new n.Op({op:"IS",left:s[l-2],right:s[l]});break;case 456:this.$=new n.Op({op:"IS",left:s[l-2],right:new n.UniOp({op:"NOT",right:new n.NullValue({value:void 0})})});break;case 457:this.$=new n.Convert({expression:s[l-2]}),n.extend(this.$,s[l]);break;case 467:this.$="ALL";break;case 468:this.$="SOME";break;case 469:this.$="ANY";break;case 470:this.$=new n.Update({table:s[l-5],columns:s[l-3],where:s[l-1]}),n.extend(this.$,s[l]);break;case 471:this.$=new n.Update({table:s[l-3],columns:s[l-1]}),n.extend(this.$,s[l]);break;case 474:this.$=new n.SetColumn({column:s[l-2],expression:s[l]});break;case 475:this.$=new n.SetColumn({variable:s[l-2],expression:s[l],method:s[l-3]});break;case 476:this.$=new n.Delete({table:s[l-3],where:s[l-1]}),n.extend(this.$,s[l]);break;case 477:this.$=new n.Delete({table:s[l-1]}),n.extend(this.$,s[l]);break;case 478:this.$=new n.Insert({into:s[l-3],values:s[l-1]}),n.extend(this.$,s[l]);break;case 479:this.$=new n.Insert({into:s[l-2],values:s[l-1]}),n.extend(this.$,s[l]);break;case 480:this.$=new n.Insert({into:s[l-3],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 481:this.$=new n.Insert({into:s[l-2],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 482:this.$=new n.Insert({into:s[l-6],columns:s[l-4],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 483:this.$=new n.Insert({into:s[l-5],columns:s[l-3],values:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 484:this.$=new n.Insert({into:s[l-2],select:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 485:this.$=new n.Insert({into:s[l-5],columns:s[l-3],select:s[l-1],ignore:!0}),n.extend(this.$,s[l]);break;case 486:case 488:this.$=new n.Insert({into:s[l-3],values:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 487:case 489:this.$=new n.Insert({into:s[l-2],values:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 490:this.$=new n.Insert({into:s[l-3],default:!0}),n.extend(this.$,s[l]);break;case 491:this.$=new n.Insert({into:s[l-6],columns:s[l-4],values:s[l-1]}),n.extend(this.$,s[l]);break;case 492:this.$=new n.Insert({into:s[l-5],columns:s[l-3],values:s[l-1]}),n.extend(this.$,s[l]);break;case 493:this.$=new n.Insert({into:s[l-2],select:s[l-1]}),n.extend(this.$,s[l]);break;case 494:this.$=new n.Insert({into:s[l-2],select:s[l-1],orreplace:!0}),n.extend(this.$,s[l]);break;case 495:this.$=new n.Insert({into:s[l-5],columns:s[l-3],select:s[l-1]}),n.extend(this.$,s[l]);break;case 496:this.$=new n.Insert({into:s[l-3],setcolumns:s[l-1]}),n.extend(this.$,s[l]);break;case 501:this.$=[s[l-1]];break;case 504:this.$=s[l-4],s[l-4].push(s[l-1]);break;case 517:this.$=new n.CreateTable({table:s[l-4]}),n.extend(this.$,s[l-7]),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-5]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l]);break;case 518:this.$=new n.CreateTable({table:s[l]}),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,s[l-1]);break;case 520:this.$={class:!0};break;case 530:this.$={temporary:!0};break;case 532:this.$={ifnotexists:!0};break;case 533:this.$={columns:s[l-2],constraints:s[l]};break;case 534:this.$={columns:s[l]};break;case 535:this.$={as:s[l]};break;case 538:case 539:case 540:case 541:case 542:s[l].constraintid=s[l-1],this.$=s[l];break;case 545:this.$={type:"CHECK",expression:s[l-1]};break;case 546:this.$={type:"PRIMARY KEY",columns:s[l-1],clustered:(s[l-3]+"").toUpperCase()};break;case 547:this.$={type:"FOREIGN KEY",columns:s[l-5],fktable:s[l-2],fkcolumns:s[l-1]},n.extend(this.$,s[l]);break;case 549:case 675:this.$={};break;case 550:this.$={ondelete:s[l]};break;case 551:case 597:this.$={onupdate:s[l]};break;case 552:this.$={ondelete:s[l-1],onupdate:s[l]};break;case 553:this.$={ondelete:s[l],onupdate:s[l-1]};break;case 556:this.$="CASCADE";break;case 557:this.$="SET NULL";break;case 558:this.$="SET DEFAULT";break;case 559:this.$="RESTRICT";break;case 560:this.$="NO ACTION";break;case 561:this.$={type:"UNIQUE",columns:s[l-1],clustered:(s[l-3]+"").toUpperCase()};break;case 562:this.$={type:"INDEX",indexid:s[l-3],columns:s[l-1]};break;case 569:this.$=new n.ColumnDef({columnid:s[l-2]}),n.extend(this.$,s[l-1]),n.extend(this.$,s[l]);break;case 570:this.$=new n.ColumnDef({columnid:s[l-1]}),n.extend(this.$,s[l]);break;case 571:this.$=new n.ColumnDef({columnid:s[l],dbtypeid:""});break;case 572:this.$={dbtypeid:s[l-5],dbsize:s[l-3],dbprecision:+s[l-1]};break;case 573:this.$={dbtypeid:s[l-3],dbsize:s[l-1]};break;case 574:this.$={dbtypeid:s[l]};break;case 575:this.$={dbtypeid:"ENUM",enumvalues:s[l-1]};break;case 576:this.$=s[l-1],s[l-1].dbtypeid+="["+s[l]+"]";break;case 578:case 792:this.$=+s[l];break;case 582:n.extend(s[l-1],s[l]),this.$=s[l-1];break;case 585:this.$={primarykey:!0};break;case 586:case 587:this.$={foreignkey:{table:s[l-2],columnid:s[l-1]}},n.extend(this.$.foreignkey,s[l]);break;case 588:this.$={identity:{value:s[l-3],step:s[l-1]}};break;case 589:this.$={identity:{value:1,step:1}};break;case 590:case 592:this.$={default:s[l]};break;case 591:this.$={default:s[l-1]};break;case 593:this.$={null:!0};break;case 594:this.$={notnull:!0};break;case 595:this.$={check:s[l]};break;case 596:this.$={unique:!0};break;case 598:this.$={onupdate:s[l-1]};break;case 599:this.$=new n.DropTable({tables:s[l],type:s[l-2]}),n.extend(this.$,s[l-1]);break;case 603:this.$={ifexists:!0};break;case 604:this.$=new n.AlterTable({table:s[l-3],renameto:s[l]});break;case 605:this.$=new n.AlterTable({table:s[l-3],addcolumn:s[l]});break;case 606:this.$=new n.AlterTable({table:s[l-3],modifycolumn:s[l]});break;case 607:this.$=new n.AlterTable({table:s[l-5],renamecolumn:s[l-2],to:s[l]});break;case 608:this.$=new n.AlterTable({table:s[l-3],dropcolumn:s[l]});break;case 609:this.$=new n.AlterTable({table:s[l-2],renameto:s[l]});break;case 610:this.$=new n.AttachDatabase({databaseid:s[l],engineid:s[l-2].toUpperCase()});break;case 611:this.$=new n.AttachDatabase({databaseid:s[l-3],engineid:s[l-5].toUpperCase(),args:s[l-1]});break;case 612:this.$=new n.AttachDatabase({databaseid:s[l-2],engineid:s[l-4].toUpperCase(),as:s[l]});break;case 613:this.$=new n.AttachDatabase({databaseid:s[l-5],engineid:s[l-7].toUpperCase(),as:s[l],args:s[l-3]});break;case 614:this.$=new n.DetachDatabase({databaseid:s[l]});break;case 615:this.$=new n.CreateDatabase({databaseid:s[l]}),n.extend(this.$,s[l]);break;case 616:this.$=new n.CreateDatabase({engineid:s[l-4].toUpperCase(),databaseid:s[l-1],as:s[l]}),n.extend(this.$,s[l-2]);break;case 617:this.$=new n.CreateDatabase({engineid:s[l-7].toUpperCase(),databaseid:s[l-4],args:s[l-2],as:s[l]}),n.extend(this.$,s[l-5]);break;case 618:this.$=new n.CreateDatabase({engineid:s[l-4].toUpperCase(),as:s[l],args:[s[l-1]]}),n.extend(this.$,s[l-2]);break;case 621:case 622:this.$=new n.UseDatabase({databaseid:s[l]});break;case 623:this.$=new n.DropDatabase({databaseid:s[l]}),n.extend(this.$,s[l-1]);break;case 624:case 625:this.$=new n.DropDatabase({databaseid:s[l],engineid:s[l-3].toUpperCase()}),n.extend(this.$,s[l-1]);break;case 626:this.$=new n.CreateIndex({indexid:s[l-5],table:s[l-3],columns:s[l-1]});break;case 627:this.$=new n.CreateIndex({indexid:s[l-5],table:s[l-3],columns:s[l-1],unique:!0});break;case 628:this.$=new n.DropIndex({indexid:s[l]});break;case 629:this.$=new n.ShowDatabases;break;case 630:this.$=new n.ShowDatabases({like:s[l]});break;case 631:this.$=new n.ShowDatabases({engineid:s[l-1].toUpperCase()});break;case 632:this.$=new n.ShowDatabases({engineid:s[l-3].toUpperCase(),like:s[l]});break;case 633:this.$=new n.ShowTables;break;case 634:this.$=new n.ShowTables({like:s[l]});break;case 635:this.$=new n.ShowTables({databaseid:s[l]});break;case 636:this.$=new n.ShowTables({like:s[l],databaseid:s[l-2]});break;case 637:this.$=new n.ShowColumns({table:s[l]});break;case 638:this.$=new n.ShowColumns({table:s[l-2],databaseid:s[l]});break;case 639:this.$=new n.ShowIndex({table:s[l]});break;case 640:this.$=new n.ShowIndex({table:s[l-2],databaseid:s[l]});break;case 641:this.$=new n.ShowCreateTable({table:s[l]});break;case 642:this.$=new n.ShowCreateTable({table:s[l-2],databaseid:s[l]});break;case 643:this.$=new n.CreateTable({table:s[l-6],view:!0,select:s[l-1],viewcolumns:s[l-4]}),n.extend(this.$,s[l-9]),n.extend(this.$,s[l-7]);break;case 644:this.$=new n.CreateTable({table:s[l-3],view:!0,select:s[l-1]}),n.extend(this.$,s[l-6]),n.extend(this.$,s[l-4]);break;case 648:this.$=new n.DropTable({tables:s[l],view:!0}),n.extend(this.$,s[l-1]);break;case 649:case 802:this.$=new n.ExpressionStatement({expression:s[l]});break;case 650:this.$=new n.Source({url:s[l].value});break;case 651:this.$=new n.Assert({value:s[l]});break;case 652:this.$=new n.Assert({value:s[l].value});break;case 653:this.$=new n.Assert({value:s[l],message:s[l-2]});break;case 655:case 667:case 669:this.$=s[l].value;break;case 656:case 664:this.$=+s[l].value;break;case 657:this.$=!!s[l].value;break;case 665:this.$=-s[l].value;break;case 666:this.$=""+s[l].value;break;case 678:case 1095:case 1119:case 1121:case 1123:case 1127:case 1129:case 1131:case 1133:case 1135:case 1137:this.$=[];break;case 679:n.extend(s[l-2],s[l]),this.$=s[l-2];break;case 681:this.$={},this.$[s[l-2].substr(1,s[l-2].length-2)]=s[l];break;case 682:case 683:this.$={},this.$[s[l-2]]=s[l];break;case 684:this.$={},this.$[s[l-2].substr(1,s[l-2].length-2)]=-s[l].value;break;case 685:case 686:this.$={},this.$[s[l-2]]=-s[l].value;break;case 689:this.$=new n.SetVariable({variable:s[l-2].toLowerCase(),value:s[l]});break;case 690:this.$=new n.SetVariable({variable:s[l-1].toLowerCase(),value:s[l]});break;case 691:this.$=new n.SetVariable({variable:s[l-2],expression:s[l]});break;case 692:this.$=new n.SetVariable({variable:s[l-3],props:s[l-2],expression:s[l]});break;case 693:this.$=new n.SetVariable({variable:s[l-2],expression:s[l],method:s[l-3]});break;case 694:this.$=new n.SetVariable({variable:s[l-3],props:s[l-2],expression:s[l],method:s[l-4]});break;case 695:this.$="@";break;case 696:this.$="$";break;case 702:this.$=!0;break;case 703:this.$=!1;break;case 704:this.$=new n.CommitTransaction;break;case 705:this.$=new n.RollbackTransaction;break;case 706:this.$=new n.BeginTransaction;break;case 707:this.$=new n.If({expression:s[l-2],thenstat:s[l-1],elsestat:s[l]}),s[l-1].exists&&(this.$.exists=s[l-1].exists),s[l-1].queries&&(this.$.queries=s[l-1].queries);break;case 708:this.$=new n.If({expression:s[l-1],thenstat:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 710:this.$=new n.While({expression:s[l-1],loopstat:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 711:case 712:this.$=new n.Continue;break;case 713:case 714:this.$=new n.Break;break;case 715:this.$=new n.BeginEnd({statements:s[l-1]});break;case 716:this.$=new n.Print({exprs:s[l]});break;case 717:this.$=new n.Print({select:s[l]});break;case 718:this.$=new n.Require({paths:s[l]});break;case 719:this.$=new n.Require({plugins:s[l]});break;case 720:case 721:this.$=s[l].toUpperCase();break;case 722:this.$=new n.Echo({expr:s[l]});break;case 727:this.$=new n.Declare({declares:s[l]});break;case 730:this.$={variable:s[l-1]},n.extend(this.$,s[l]);break;case 731:this.$={variable:s[l-2]},n.extend(this.$,s[l]);break;case 732:this.$={variable:s[l-3],expression:s[l]},n.extend(this.$,s[l-2]);break;case 733:this.$={variable:s[l-4],expression:s[l]},n.extend(this.$,s[l-2]);break;case 734:this.$=new n.TruncateTable({table:s[l]});break;case 735:this.$=new n.Merge,n.extend(this.$,s[l-4]),n.extend(this.$,s[l-3]),n.extend(this.$,s[l-2]),n.extend(this.$,{matches:s[l-1]}),n.extend(this.$,s[l]);break;case 745:this.$={matched:!0,action:s[l]};break;case 746:this.$={matched:!0,expr:s[l-2],action:s[l]};break;case 747:this.$={delete:!0};break;case 748:this.$={update:s[l]};break;case 749:case 750:this.$={matched:!1,bytarget:!0,action:s[l]};break;case 751:case 752:this.$={matched:!1,bytarget:!0,expr:s[l-2],action:s[l]};break;case 753:this.$={matched:!1,bysource:!0,action:s[l]};break;case 754:this.$={matched:!1,bysource:!0,expr:s[l-2],action:s[l]};break;case 755:this.$={insert:!0,values:s[l]};break;case 756:this.$={insert:!0,values:s[l],columns:s[l-3]};break;case 757:this.$={insert:!0,defaultvalues:!0};break;case 758:this.$={insert:!0,defaultvalues:!0,columns:s[l-3]};break;case 760:this.$={output:{columns:s[l]}};break;case 761:this.$={output:{columns:s[l-3],intovar:s[l],method:s[l-1]}};break;case 762:this.$={output:{columns:s[l-2],intotable:s[l]}};break;case 763:this.$={output:{columns:s[l-5],intotable:s[l-3],intocolumns:s[l-1]}};break;case 764:this.$=new n.CreateVertex({class:s[l-3],sharp:s[l-2],name:s[l-1]}),n.extend(this.$,s[l]);break;case 767:this.$={sets:s[l]};break;case 768:this.$={content:s[l]};break;case 769:this.$={select:s[l]};break;case 770:this.$=new n.CreateEdge({from:s[l-3],to:s[l-1],name:s[l-5]}),n.extend(this.$,s[l]);break;case 771:this.$=new n.CreateGraph({graph:s[l]});break;case 772:this.$=new n.CreateGraph({from:s[l]});break;case 775:this.$=s[l-2],s[l-1]&&(this.$.json=new n.Json({value:s[l-1]})),s[l]&&(this.$.as=s[l]);break;case 776:this.$={source:s[l-6],target:s[l]},s[l-3]&&(this.$.json=new n.Json({value:s[l-3]})),s[l-2]&&(this.$.as=s[l-2]),n.extend(this.$,s[l-4]);break;case 777:this.$={source:s[l-5],target:s[l]},s[l-2]&&(this.$.json=new n.Json({value:s[l-3]})),s[l-1]&&(this.$.as=s[l-2]);break;case 778:this.$={source:s[l-2],target:s[l]};break;case 782:this.$={vars:s[l],method:s[l-1]};break;case 785:case 786:var x=s[l-1];this.$={prop:s[l-3],sharp:s[l-2],name:typeof x>"u"?void 0:x.substr(1,x.length-2),class:s[l]};break;case 787:var b=s[l-1];this.$={sharp:s[l-2],name:typeof b>"u"?void 0:b.substr(1,b.length-2),class:s[l]};break;case 788:var T=s[l-1];this.$={name:typeof T>"u"?void 0:T.substr(1,T.length-2),class:s[l]};break;case 789:this.$={class:s[l]};break;case 795:this.$=new n.AddRule({left:s[l-2],right:s[l]});break;case 796:this.$=new n.AddRule({right:s[l]});break;case 799:this.$={termid:s[l]};break;case 800:this.$={termid:s[l-3],args:s[l-1]};break;case 803:this.$=new n.CreateTrigger({trigger:s[l-6],when:s[l-5],action:s[l-4],table:s[l-2],statement:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 804:this.$=new n.CreateTrigger({trigger:s[l-5],when:s[l-4],action:s[l-3],table:s[l-1],funcid:s[l]});break;case 805:this.$=new n.CreateTrigger({trigger:s[l-6],when:s[l-4],action:s[l-3],table:s[l-5],statement:s[l]}),s[l].exists&&(this.$.exists=s[l].exists),s[l].queries&&(this.$.queries=s[l].queries);break;case 806:case 807:case 809:this.$="AFTER";break;case 808:this.$="BEFORE";break;case 810:this.$="INSTEADOF";break;case 811:this.$="INSERT";break;case 812:this.$="DELETE";break;case 813:this.$="UPDATE";break;case 814:this.$=new n.DropTrigger({trigger:s[l]});break;case 815:this.$=new n.Reindex({indexid:s[l]});break;case 1096:case 1114:case 1116:case 1120:case 1122:case 1124:case 1128:case 1130:case 1132:case 1134:case 1136:case 1138:s[l-1].push(s[l])}},table:[t([14,639,798],e,{12:1,13:2,16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,2:r,4:n,5:i,6:s,7:a,8:l,9:u,18:c,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{1:[3]},{14:[1,113],15:114,639:Z,798:tt},t(et,[2,12]),t(et,[2,13]),t(rt,[2,16]),t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:117,2:r,4:n,5:i,6:s,7:a,8:l,9:u,19:[1,118],57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,18]),t(rt,[2,19]),t(rt,[2,20]),t(rt,[2,21]),t(rt,[2,22]),t(rt,[2,23]),t(rt,[2,24]),t(rt,[2,25]),t(rt,[2,26]),t(rt,[2,27]),t(rt,[2,28]),t(rt,[2,29]),t(rt,[2,30]),t(rt,[2,31]),t(rt,[2,32]),t(rt,[2,33]),t(rt,[2,34]),t(rt,[2,35]),t(rt,[2,36]),t(rt,[2,37]),t(rt,[2,38]),t(rt,[2,39]),t(rt,[2,40]),t(rt,[2,41]),t(rt,[2,42]),t(rt,[2,43]),t(rt,[2,44]),t(rt,[2,45]),t(rt,[2,46]),t(rt,[2,47]),t(rt,[2,48]),t(rt,[2,49]),t(rt,[2,50]),t(rt,[2,51]),t(rt,[2,52]),t(rt,[2,53]),t(rt,[2,54]),t(rt,[2,55]),t(rt,[2,56]),t(rt,[2,57]),t(rt,[2,58]),t(rt,[2,59]),t(rt,[2,60]),t(rt,[2,61]),t(rt,[2,62]),t(rt,[2,63]),t(rt,[2,64]),t(rt,[2,65]),t(rt,[2,66]),t(rt,[2,67]),t(rt,[2,68]),t(rt,[2,69]),t(rt,[2,70]),t(rt,[2,71]),{388:[1,119]},{2:r,3:120,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:121,293:it,322:ot,323:st,324:at,325:lt,326:ut},t(ct,[2,529],{3:131,383:135,2:r,4:n,5:i,6:s,7:a,8:l,9:u,143:ht,144:dt,196:[1,133],202:[1,132],296:[1,139],297:[1,140],392:[1,141],442:[1,130],511:[1,134],547:[1,138]}),{154:pt,489:142,490:143},{192:[1,145]},{442:[1,146]},{2:r,3:148,4:n,5:i,6:s,7:a,8:l,9:u,139:[1,154],202:[1,149],388:[1,153],434:150,442:[1,147],447:[1,151],547:[1,152]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:155,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(re,ne,{374:219,180:[1,221],207:ie,377:[1,220]}),t(re,ne,{374:223,207:ie}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,207:[1,226],208:229,209:231,210:230,211:232,218:225,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee,493:224},{2:r,3:237,4:n,5:i,6:s,7:a,8:l,9:u},{388:[1,238]},t(le,[2,1091],{86:239,115:240,116:ue}),t(ce,he,{92:242,260:243,171:de,177:pe,178:fe}),t(ge,[2,1095],{97:247}),{2:r,3:251,4:n,5:i,6:s,7:a,8:l,9:u,199:[1,249],202:[1,252],295:[1,248],388:[1,253],442:[1,250]},{388:[1,254]},{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,77:255,79:256,80:[1,257]},t([339,639,798],e,{16:3,17:4,21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,13:260,2:r,4:n,5:i,6:s,7:a,8:l,9:u,18:c,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,473:[1,259],474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{473:[1,261]},{473:[1,262]},{2:r,3:264,4:n,5:i,6:s,7:a,8:l,9:u,442:[1,263]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:265,335:Xt},t(me,[2,323]),{122:269,141:mt,329:zt},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,122:275,140:gt,141:[1,272],152:_t,153:270,154:ye,161:bt,165:nt,190:St,205:274,209:279,210:278,284:276,285:277,292:_e,293:ve,302:271,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:282,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,711]),t(rt,[2,712]),t(rt,[2,713]),t(rt,[2,714]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:284,60:175,82:xe,85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:283,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:292,4:n,5:i,6:s,7:a,8:l,9:u,122:289,141:mt,329:zt,484:287,485:288,486:290,487:be},{2:r,3:293,4:n,5:i,6:s,7:a,8:l,9:u,152:Te,154:Ee,469:294},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:297,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{466:[1,298]},{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:299},{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:301,293:it,322:ot,323:st,324:at,325:lt,326:ut},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:302,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Oe,Se,{195:306,173:[1,305],194:[1,303],196:[1,304],204:Ne}),{44:308,82:p,85:75,95:76,96:f,193:102,198:v},t(Ae,[2,799],{82:[1,309]}),t([2,4,5,6,7,8,9,14,76,82,83,103,108,116,127,137,140,141,146,152,154,161,163,165,171,173,177,178,188,189,190,192,194,196,204,207,229,252,266,267,271,273,281,292,293,294,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,335,336,339,343,345,350,457,461,503,639,798],[2,162],{158:[1,310],159:[1,311],199:[1,312],200:[1,313],201:[1,314],202:[1,315],203:[1,316]}),t(we,[2,1]),t(we,[2,2]),t(we,[2,3]),t(we,[2,4]),t(we,[2,5]),t(we,[2,6]),{6:[1,434],7:[1,473],8:[1,350],9:[1,533],10:317,127:[1,476],140:[1,469],181:[1,494],229:[1,426],265:[1,468],266:[1,402],267:[1,437],271:[1,441],281:[1,383],377:[1,417],415:[1,340],416:[1,511],418:[1,322],439:[1,324],447:[1,582],451:[1,503],453:[1,474],454:[1,542],471:[1,472],473:[1,558],478:[1,370],499:[1,448],503:[1,480],509:[1,369],552:[1,334],553:[1,326],554:[1,429],556:[1,318],557:[1,319],558:[1,320],559:[1,321],560:[1,323],561:[1,325],562:[1,327],563:[1,328],564:[1,329],565:[1,330],566:[1,331],567:[1,332],568:[1,333],569:[1,335],570:[1,336],571:[1,337],572:[1,338],573:[1,339],574:[1,341],575:[1,342],576:[1,343],577:[1,344],578:[1,345],579:[1,346],580:[1,347],581:[1,348],582:[1,349],583:[1,351],584:[1,352],585:[1,353],586:[1,354],587:[1,355],588:[1,356],589:[1,357],590:[1,358],591:[1,359],592:[1,360],593:[1,361],594:[1,362],595:[1,363],596:[1,364],597:[1,365],598:[1,366],599:[1,367],600:[1,368],601:[1,371],602:[1,372],603:[1,373],604:[1,374],605:[1,375],606:[1,376],607:[1,377],608:[1,378],609:[1,379],610:[1,380],611:[1,381],612:[1,382],613:[1,384],614:[1,385],615:[1,386],616:[1,387],617:[1,388],618:[1,389],619:[1,390],620:[1,391],621:[1,392],622:[1,393],623:[1,394],624:[1,395],625:[1,396],626:[1,397],627:[1,398],628:[1,399],629:[1,400],630:[1,401],631:[1,403],632:[1,404],633:[1,405],634:[1,406],635:[1,407],636:[1,408],637:[1,409],638:[1,410],639:[1,411],640:[1,412],641:[1,413],642:[1,414],643:[1,415],644:[1,416],645:[1,418],646:[1,419],647:[1,420],648:[1,421],649:[1,422],650:[1,423],651:[1,424],652:[1,425],653:[1,427],654:[1,428],655:[1,430],656:[1,431],657:[1,432],658:[1,433],659:[1,435],660:[1,436],661:[1,438],662:[1,439],663:[1,440],664:[1,442],665:[1,443],666:[1,444],667:[1,445],668:[1,446],669:[1,447],670:[1,449],671:[1,450],672:[1,451],673:[1,452],674:[1,453],675:[1,454],676:[1,455],677:[1,456],678:[1,457],679:[1,458],680:[1,459],681:[1,460],682:[1,461],683:[1,462],684:[1,463],685:[1,464],686:[1,465],687:[1,466],688:[1,467],689:[1,470],690:[1,471],691:[1,475],692:[1,477],693:[1,478],694:[1,479],695:[1,481],696:[1,482],697:[1,483],698:[1,484],699:[1,485],700:[1,486],701:[1,487],702:[1,488],703:[1,489],704:[1,490],705:[1,491],706:[1,492],707:[1,493],708:[1,495],709:[1,496],710:[1,497],711:[1,498],712:[1,499],713:[1,500],714:[1,501],715:[1,502],716:[1,504],717:[1,505],718:[1,506],719:[1,507],720:[1,508],721:[1,509],722:[1,510],723:[1,512],724:[1,513],725:[1,514],726:[1,515],727:[1,516],728:[1,517],729:[1,518],730:[1,519],731:[1,520],732:[1,521],733:[1,522],734:[1,523],735:[1,524],736:[1,525],737:[1,526],738:[1,527],739:[1,528],740:[1,529],741:[1,530],742:[1,531],743:[1,532],744:[1,534],745:[1,535],746:[1,536],747:[1,537],748:[1,538],749:[1,539],750:[1,540],751:[1,541],752:[1,543],753:[1,544],754:[1,545],755:[1,546],756:[1,547],757:[1,548],758:[1,549],759:[1,550],760:[1,551],761:[1,552],762:[1,553],763:[1,554],764:[1,555],765:[1,556],766:[1,557],767:[1,559],768:[1,560],769:[1,561],770:[1,562],771:[1,563],772:[1,564],773:[1,565],774:[1,566],775:[1,567],776:[1,568],777:[1,569],778:[1,570],779:[1,571],780:[1,572],781:[1,573],782:[1,574],783:[1,575],784:[1,576],785:[1,577],786:[1,578],787:[1,579],788:[1,580],789:[1,581],790:[1,583],791:[1,584],792:[1,585],793:[1,586],794:[1,587],795:[1,588],796:[1,589],797:[1,590]},{1:[2,10]},t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:591,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(Re,[2,1089]),t(Re,[2,1090]),t(et,[2,14]),{20:[1,592]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:593},{442:[1,594]},t(rt,[2,802]),{82:Ce},{82:[1,596]},{82:Le},{82:Ie},{82:[1,599]},{82:[1,600]},{82:[1,601]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:602,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ke,De,{385:603,165:Pe}),{442:[1,605]},{2:r,3:606,4:n,5:i,6:s,7:a,8:l,9:u},{202:[1,607]},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,192:[1,609],469:620,512:608,513:610,514:611,517:612,521:617,532:614,536:616},{139:[1,624],384:621,388:[1,623],447:[1,622]},{122:626,141:mt,192:[2,1215],329:zt,510:625},t(Ue,[2,1209],{504:627,3:628,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),{2:r,3:629,4:n,5:i,6:s,7:a,8:l,9:u},{4:[1,630]},{4:[1,631]},t(ct,[2,530]),t(rt,[2,727],{78:[1,632]}),t(Fe,[2,728]),{2:r,3:633,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:634,335:Xt},{2:r,3:635,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,$e,{435:636,165:He}),{442:[1,638]},{2:r,3:639,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,$e,{435:640,165:He}),t(ke,$e,{435:641,165:He}),{2:r,3:642,4:n,5:i,6:s,7:a,8:l,9:u},t(Be,[2,1203]),t(Be,[2,1204]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:643,123:660,360:672,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:We,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:y,163:nr,165:_,179:ir,180:or,188:sr,189:ar,198:v,294:x,295:b,322:T,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(me,[2,299]),t(me,[2,300]),t(me,[2,301]),t(me,[2,302]),t(me,[2,303]),t(me,[2,304]),t(me,[2,305]),t(me,[2,306]),t(me,[2,307]),t(me,[2,308]),t(me,[2,309]),t(me,[2,310]),t(me,[2,311]),t(me,[2,312]),t(me,[2,313]),t(me,[2,314]),t(me,[2,315]),t(me,[2,316]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,30:689,31:688,40:684,44:683,60:175,82:xe,85:75,95:76,96:f,104:686,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:Ct,293:Lt,294:x,295:Ar,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:wr,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,373:S,456:204,457:te,461:ee},t(me,[2,320]),t(me,[2,321]),t(Rr,[2,322],{82:Ie}),{82:[1,691]},{82:[1,692]},t([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr,{82:Ce,125:[1,693]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:694,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:695,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:696,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:697,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:698,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Lr,Ir,{125:[1,699]}),t(Lr,kr,{125:[1,700]}),t(me,[2,289]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,229,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,275,281,292,293,294,295,298,299,301,304,313,314,315,316,317,318,319,320,322,323,324,325,326,327,328,329,330,331,332,333,335,336,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,452,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798,799,800],[2,377]),t(Dr,[2,378]),t(Dr,[2,379]),t(Dr,Pr),t(Dr,[2,381]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,382]),{2:r,3:702,4:n,5:i,6:s,7:a,8:l,9:u,140:[1,703],334:701},{2:r,3:704,4:n,5:i,6:s,7:a,8:l,9:u},t(Mr,[2,388]),t(Mr,[2,389]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u,82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},{82:[1,712]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:713,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,337:714,340:715,341:Kr,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,717]},{82:[1,718]},t(Ur,[2,659]),{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,333:[1,721],335:Xt,350:Br,456:204,457:te,458:719,459:722,460:724,461:ee,464:720},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:737,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:738,4:n,5:i,6:s,7:a,8:l,9:u,165:nt,209:739,293:it,322:ot,323:st,324:at,325:lt,326:ut},{82:[2,353]},{82:[2,354]},{82:[2,355]},{82:[2,356]},{82:[2,357]},{82:[2,358]},{82:[2,359]},{82:[2,360]},{82:[2,361]},{82:[2,362]},{2:r,3:745,4:n,5:i,6:s,7:a,8:l,9:u,140:qr,141:Gr,462:740,463:[1,741],465:742},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:746,335:Xt},t(re,ne,{374:747,207:ie}),{322:[1,748]},t(re,[2,500]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:749,335:Xt},{251:[1,751],494:750},{251:[2,736]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:752,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{44:753,82:p,85:75,95:76,96:f,193:102,198:v},t(zr,[2,1145],{220:754,81:[1,755]}),t(Vr,[2,1149],{222:756,230:758,3:759,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,163:[1,757]}),t(Vr,[2,1151],{3:759,224:761,230:762,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1153],{3:759,225:763,230:764,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1155],{3:759,226:765,230:766,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1157],{3:759,228:767,230:768,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,198]),t([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,163,171,177,178,192,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],Wr,{82:Ce,125:Xr}),t([2,4,5,6,7,8,9,14,76,78,81,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,339,343,503,639,798],[2,201]),t(rt,[2,815]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:770},t(Qr,Jr,{87:771,207:Zr}),t(le,[2,1092]),t(tn,[2,1109],{117:773,199:[1,774]}),t(en,rn,{93:775,127:nn}),{82:p,85:780,95:779,99:778,193:102,198:v,261:777},t(on,[2,250],{173:[1,781],262:[1,782]}),t(on,[2,252],{262:[1,783]}),t(on,[2,253],{262:[1,784]}),t([14,83,192,339,343,503,639,798],Jr,{456:204,87:785,126:786,3:787,123:790,153:812,167:822,169:823,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,207:Zr,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),{388:[1,837]},{192:[1,838]},t(rt,[2,629],{121:[1,839]}),{442:[1,840]},{192:[1,841]},t(rt,[2,633],{121:[1,842],192:[1,843]}),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:844},{44:845,78:[1,846],82:p,85:75,95:76,96:f,193:102,198:v},t(Qn,[2,75]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:847},{81:[1,848],82:[1,849]},t(rt,[2,706]),{15:114,339:[1,850],639:Z,798:tt},t(rt,[2,704]),t(rt,[2,705]),{2:r,3:851,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,622]),{155:[1,852]},t(Jn,[2,204]),t(Jn,[2,205]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,105,133,137,152,154,155,157,158,161,163,165,190,192,196,198,250,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],Wr,{125:Xr}),t(rt,[2,650]),t(rt,[2,651]),t(rt,[2,652]),t(rt,Pr,{78:[1,853]}),{82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},t(Zn,[2,332]),t(Zn,[2,333]),t(Zn,[2,334]),t(Zn,[2,335]),t(Zn,[2,336]),t(Zn,[2,337]),t(Zn,[2,338]),t(Zn,[2,339],{82:Ie}),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,123:660,360:672,16:854,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:We,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:y,163:nr,165:_,179:ir,180:or,188:sr,189:ar,198:v,294:x,295:b,322:T,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,716],{78:ti}),t(rt,[2,717]),t(ei,[2,375],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,30:689,31:688,40:684,44:857,60:175,82:xe,85:75,95:76,96:f,104:686,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,291:685,292:Ct,293:Lt,294:x,295:Ar,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:wr,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,373:S,456:204,457:te,461:ee},t(rt,[2,718],{78:[1,858]}),t(rt,[2,719],{78:[1,859]}),t(Fe,[2,724]),t(Fe,[2,726]),t(Fe,[2,720]),t(Fe,[2,721]),{123:865,124:ze,125:Ve,133:[1,860],250:ni,467:861,468:862,471:ii},{2:r,3:866,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,[2,695]),t(ke,[2,696]),t(rt,[2,649],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:867},t(rt,[2,796],{78:oi}),t(si,[2,798]),t(rt,[2,801]),t(rt,[2,722],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(ai,Se,{195:869,204:Ne}),t(ai,Se,{195:870,204:Ne}),t(ai,Se,{195:871,204:Ne}),t(li,[2,1139],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,197:872,183:873,279:874,104:875,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{82:[1,877],140:gt,205:876},{83:[1,878]},{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:300,544:879},t(ui,[2,163]),t(ui,[2,164]),t(ui,[2,165]),t(ui,[2,166]),t(ui,[2,167]),t(ui,[2,168]),t(ui,[2,169]),t(we,[2,7]),t(we,[2,816]),t(we,[2,817]),t(we,[2,818]),t(we,[2,819]),t(we,[2,820]),t(we,[2,821]),t(we,[2,822]),t(we,[2,823]),t(we,[2,824]),t(we,[2,825]),t(we,[2,826]),t(we,[2,827]),t(we,[2,828]),t(we,[2,829]),t(we,[2,830]),t(we,[2,831]),t(we,[2,832]),t(we,[2,833]),t(we,[2,834]),t(we,[2,835]),t(we,[2,836]),t(we,[2,837]),t(we,[2,838]),t(we,[2,839]),t(we,[2,840]),t(we,[2,841]),t(we,[2,842]),t(we,[2,843]),t(we,[2,844]),t(we,[2,845]),t(we,[2,846]),t(we,[2,847]),t(we,[2,848]),t(we,[2,849]),t(we,[2,850]),t(we,[2,851]),t(we,[2,852]),t(we,[2,853]),t(we,[2,854]),t(we,[2,855]),t(we,[2,856]),t(we,[2,857]),t(we,[2,858]),t(we,[2,859]),t(we,[2,860]),t(we,[2,861]),t(we,[2,862]),t(we,[2,863]),t(we,[2,864]),t(we,[2,865]),t(we,[2,866]),t(we,[2,867]),t(we,[2,868]),t(we,[2,869]),t(we,[2,870]),t(we,[2,871]),t(we,[2,872]),t(we,[2,873]),t(we,[2,874]),t(we,[2,875]),t(we,[2,876]),t(we,[2,877]),t(we,[2,878]),t(we,[2,879]),t(we,[2,880]),t(we,[2,881]),t(we,[2,882]),t(we,[2,883]),t(we,[2,884]),t(we,[2,885]),t(we,[2,886]),t(we,[2,887]),t(we,[2,888]),t(we,[2,889]),t(we,[2,890]),t(we,[2,891]),t(we,[2,892]),t(we,[2,893]),t(we,[2,894]),t(we,[2,895]),t(we,[2,896]),t(we,[2,897]),t(we,[2,898]),t(we,[2,899]),t(we,[2,900]),t(we,[2,901]),t(we,[2,902]),t(we,[2,903]),t(we,[2,904]),t(we,[2,905]),t(we,[2,906]),t(we,[2,907]),t(we,[2,908]),t(we,[2,909]),t(we,[2,910]),t(we,[2,911]),t(we,[2,912]),t(we,[2,913]),t(we,[2,914]),t(we,[2,915]),t(we,[2,916]),t(we,[2,917]),t(we,[2,918]),t(we,[2,919]),t(we,[2,920]),t(we,[2,921]),t(we,[2,922]),t(we,[2,923]),t(we,[2,924]),t(we,[2,925]),t(we,[2,926]),t(we,[2,927]),t(we,[2,928]),t(we,[2,929]),t(we,[2,930]),t(we,[2,931]),t(we,[2,932]),t(we,[2,933]),t(we,[2,934]),t(we,[2,935]),t(we,[2,936]),t(we,[2,937]),t(we,[2,938]),t(we,[2,939]),t(we,[2,940]),t(we,[2,941]),t(we,[2,942]),t(we,[2,943]),t(we,[2,944]),t(we,[2,945]),t(we,[2,946]),t(we,[2,947]),t(we,[2,948]),t(we,[2,949]),t(we,[2,950]),t(we,[2,951]),t(we,[2,952]),t(we,[2,953]),t(we,[2,954]),t(we,[2,955]),t(we,[2,956]),t(we,[2,957]),t(we,[2,958]),t(we,[2,959]),t(we,[2,960]),t(we,[2,961]),t(we,[2,962]),t(we,[2,963]),t(we,[2,964]),t(we,[2,965]),t(we,[2,966]),t(we,[2,967]),t(we,[2,968]),t(we,[2,969]),t(we,[2,970]),t(we,[2,971]),t(we,[2,972]),t(we,[2,973]),t(we,[2,974]),t(we,[2,975]),t(we,[2,976]),t(we,[2,977]),t(we,[2,978]),t(we,[2,979]),t(we,[2,980]),t(we,[2,981]),t(we,[2,982]),t(we,[2,983]),t(we,[2,984]),t(we,[2,985]),t(we,[2,986]),t(we,[2,987]),t(we,[2,988]),t(we,[2,989]),t(we,[2,990]),t(we,[2,991]),t(we,[2,992]),t(we,[2,993]),t(we,[2,994]),t(we,[2,995]),t(we,[2,996]),t(we,[2,997]),t(we,[2,998]),t(we,[2,999]),t(we,[2,1e3]),t(we,[2,1001]),t(we,[2,1002]),t(we,[2,1003]),t(we,[2,1004]),t(we,[2,1005]),t(we,[2,1006]),t(we,[2,1007]),t(we,[2,1008]),t(we,[2,1009]),t(we,[2,1010]),t(we,[2,1011]),t(we,[2,1012]),t(we,[2,1013]),t(we,[2,1014]),t(we,[2,1015]),t(we,[2,1016]),t(we,[2,1017]),t(we,[2,1018]),t(we,[2,1019]),t(we,[2,1020]),t(we,[2,1021]),t(we,[2,1022]),t(we,[2,1023]),t(we,[2,1024]),t(we,[2,1025]),t(we,[2,1026]),t(we,[2,1027]),t(we,[2,1028]),t(we,[2,1029]),t(we,[2,1030]),t(we,[2,1031]),t(we,[2,1032]),t(we,[2,1033]),t(we,[2,1034]),t(we,[2,1035]),t(we,[2,1036]),t(we,[2,1037]),t(we,[2,1038]),t(we,[2,1039]),t(we,[2,1040]),t(we,[2,1041]),t(we,[2,1042]),t(we,[2,1043]),t(we,[2,1044]),t(we,[2,1045]),t(we,[2,1046]),t(we,[2,1047]),t(we,[2,1048]),t(we,[2,1049]),t(we,[2,1050]),t(we,[2,1051]),t(we,[2,1052]),t(we,[2,1053]),t(we,[2,1054]),t(we,[2,1055]),t(we,[2,1056]),t(we,[2,1057]),t(we,[2,1058]),t(we,[2,1059]),t(we,[2,1060]),t(we,[2,1061]),t(we,[2,1062]),t(we,[2,1063]),t(we,[2,1064]),t(we,[2,1065]),t(we,[2,1066]),t(we,[2,1067]),t(we,[2,1068]),t(we,[2,1069]),t(we,[2,1070]),t(we,[2,1071]),t(we,[2,1072]),t(we,[2,1073]),t(we,[2,1074]),t(we,[2,1075]),t(we,[2,1076]),t(we,[2,1077]),t(we,[2,1078]),t(we,[2,1079]),t(we,[2,1080]),t(we,[2,1081]),t(we,[2,1082]),t(we,[2,1083]),t(we,[2,1084]),t(we,[2,1085]),t(we,[2,1086]),t(we,[2,1087]),t(we,[2,1088]),t(et,[2,11]),t(et,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:880,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),{433:[1,884],438:[1,881],439:[1,882],440:[1,883]},{2:r,3:885,4:n,5:i,6:s,7:a,8:l,9:u},t(ai,[2,1185],{321:886,801:888,83:[1,887],173:[1,890],194:[1,889]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:891,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:892,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,893]},{2:r,3:894,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,895]},{2:r,3:896,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,897]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:898,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:899,4:n,5:i,6:s,7:a,8:l,9:u,109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:900,4:n,5:i,6:s,7:a,8:l,9:u},{163:[1,901]},t(ci,De,{385:902,165:Pe}),{250:[1,903]},{2:r,3:904,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,771],{78:hi}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:906,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(si,[2,774]),t(di,[2,1217],{456:204,515:907,153:908,148:pi,150:pi,154:ye,457:te,461:ee}),{148:[1,909],150:[1,910]},t(fi,gi,{529:912,532:913,82:[1,911],146:je}),t(mi,[2,1241],{533:914,141:[1,915]}),t(yi,[2,1245],{535:916,536:917,161:Ke}),t(yi,[2,789]),t(_i,[2,781]),{2:r,3:918,4:n,5:i,6:s,7:a,8:l,9:u,140:[1,919]},{2:r,3:920,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:921,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,De,{385:922,165:Pe}),t(ke,De,{385:923,165:Pe}),t(Be,[2,519]),t(Be,[2,520]),{192:[1,924]},{192:[2,1216]},t(vi,[2,1211],{505:925,508:926,146:[1,927]}),t(Ue,[2,1210]),t(xi,bi,{548:928,105:Ti,250:[1,929],552:Ei,553:Oi,554:Si}),{81:[1,934]},{81:[1,935]},{154:pt,490:936},{4:Ni,11:940,81:[1,938],300:937,424:939,426:Ai},t(rt,wi,{369:944,137:[1,943],503:Ri}),t(rt,[2,614]),{2:r,3:946,4:n,5:i,6:s,7:a,8:l,9:u},{331:[1,947]},t(ci,$e,{435:948,165:He}),t(rt,[2,628]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:950,436:949},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:950,436:951},t(rt,[2,814]),t(et,[2,708],{476:952,343:[1,953]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:954,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:955,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:956,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:957,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:958,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:959,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:960,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:961,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:962,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:963,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:964,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:965,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:966,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:967,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:968,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:969,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:970,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,972],140:gt,165:nt,205:971,209:973,293:it,322:ot,323:st,324:at,325:lt,326:ut},{2:r,3:974,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,976],140:gt,165:nt,205:975,209:977,293:it,322:ot,323:st,324:at,325:lt,326:ut},t(Ci,[2,461],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:978,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,462],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:979,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,463],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:980,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,[2,464],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:981,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),t(Ci,Li,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:982,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:983,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:984,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ci,[2,466],{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:985,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:986,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:987,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{173:[1,989],175:[1,991],361:988,367:[1,990]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:992,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:993,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,994],120:997,154:Ii,165:nt,209:998,211:996,229:$r,281:Hr,293:it,322:ot,323:st,324:at,325:lt,326:ut,362:995},{109:[1,1e3],330:[1,1001]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1002,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1003,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1004,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1005,424:939,426:Ai},t(ki,[2,98]),t(ki,[2,99]),{83:[1,1006]},{83:[1,1007]},{83:[1,1008]},{83:[1,1009],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(re,ne,{374:223,82:Le,207:ie}),{83:[2,1177]},{83:[2,1178]},{143:ht,144:dt},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1010,161:bt,163:Tt,165:nt,167:178,173:[1,1012],188:Et,189:Ot,190:St,194:[1,1011],205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1013,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,194:[1,1014],205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1015,4:n,5:i,6:s,7:a,8:l,9:u,154:Di,158:Pi,189:[1,1018]},t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,437],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t(Mi,[2,438],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Mi,[2,439],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(ji,[2,440],{123:660,360:672,349:dr}),t(ji,[2,441],{123:660,360:672,349:dr}),{2:r,3:1019,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1020]},{2:r,3:1021,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1022]},t(Mr,[2,386]),t(Mr,[2,1187]),t(Mr,[2,1188]),t(Mr,[2,387]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,251,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,383]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1023,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ur,[2,655]),t(Ur,[2,656]),t(Ur,[2,657]),t(Ur,[2,658]),t(Ur,[2,660]),{44:1024,82:p,85:75,95:76,96:f,193:102,198:v},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,337:1025,340:715,341:Kr,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{338:1026,339:Ki,340:1027,341:Kr,343:Ui},t(Fi,[2,393]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1029,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1030,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1031,424:939,426:Ai},t(Ur,[2,661]),{78:[1,1033],333:[1,1032]},t(Ur,[2,678]),t($i,[2,688]),t(Hi,[2,662]),t(Hi,[2,663]),t(Hi,[2,664]),{140:gt,205:1034},t(Hi,[2,666]),t(Hi,[2,667]),t(Hi,[2,668]),t(Hi,[2,669]),t(Hi,[2,670]),t(Hi,[2,671]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1035,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t([2,4,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,463,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],Cr,{82:Ce,125:Bi}),t(qi,Ir,{125:[1,1037]}),t(qi,kr,{125:[1,1038]}),{78:ti,333:[1,1039]},t(Rr,[2,326],{82:Ce}),t(me,[2,327]),{78:[1,1041],463:[1,1040]},t(Ur,[2,675]),t(Gi,[2,680]),{161:[1,1042],466:[1,1043]},{161:[1,1044],466:[1,1045]},{161:[1,1046],466:[1,1047]},{44:1052,82:[1,1051],85:75,95:76,96:f,152:_t,153:1056,154:ye,155:[1,1053],158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1048,376:1049,378:[1,1050],379:Vi,456:204,457:te,461:ee},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:1058,335:Xt},t(re,ne,{374:1059,207:ie}),{82:Yi,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,210:1057,335:Xt,375:1060,376:1061,379:Vi,456:204,457:te,461:ee},{250:[1,1064],495:1063},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1066],141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:1065,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{251:[2,737]},{83:[1,1067]},t(Vr,[2,1147],{221:1068,3:1069,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),t(zr,[2,1146]),t(Vr,[2,192]),{223:[1,1070]},t(Vr,[2,1150]),t(Vr,[2,199]),{2:r,3:1071,4:n,5:i,6:s,7:a,8:l,9:u},t(Vr,[2,194]),t(Vr,[2,1152]),t(Vr,[2,195]),t(Vr,[2,1154]),t(Vr,[2,196]),t(Vr,[2,1156]),t(Vr,[2,197]),t(Vr,[2,1158]),{2:r,3:1072,4:n,5:i,6:s,7:a,8:l,9:u},{157:[1,1073]},t(Wi,Xi,{88:1074,192:Qi}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,1080],152:_t,154:[1,1081],161:bt,165:nt,190:St,208:1076,209:1077,210:1078,211:1079,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,118:1082,119:1083,120:1084,121:Ji,229:$r,281:Hr},t(tn,[2,1110]),t(Zi,to,{94:1087,271:eo,273:ro}),{128:[1,1090]},t(ce,[2,249]),t(ce,[2,258]),t(ce,[2,259]),t(le,[2,1099],{100:1091,115:1092,116:ue}),t(on,[2,251],{262:[1,1093]}),t(on,[2,254]),t(on,[2,256]),t(on,[2,257]),t(Zi,[2,1097],{98:1094,191:1095,192:[1,1096]}),t(ge,[2,1096],{162:1097,188:no,189:io,190:oo}),t([2,4,5,6,7,8,9,14,76,78,81,83,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,100],{82:[1,1101]}),{128:[1,1102]},t(so,[2,103]),{2:r,3:1103,4:n,5:i,6:s,7:a,8:l,9:u},t(so,[2,105]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1104,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1105,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1107,127:cn,131:hn,132:dn,133:pn,134:1106,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{82:[1,1108]},{82:[1,1109]},{82:[1,1110]},{82:[1,1111]},t(so,[2,114]),t(so,[2,115]),t(so,[2,116]),t(so,[2,117]),t(so,[2,118]),t(so,[2,119]),{2:r,3:1112,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1113,4:n,5:i,6:s,7:a,8:l,9:u,142:[1,1114]},t(so,[2,123]),t(so,[2,124]),t(so,[2,125]),t(so,[2,126]),t(so,[2,127]),t(so,[2,128]),{2:r,3:1115,4:n,5:i,6:s,7:a,8:l,9:u,82:jr,122:707,140:gt,141:mt,152:_t,161:bt,190:St,205:708,210:710,284:709,327:qt,328:Gt,329:zt,335:Xt,456:711,461:ee},{154:[1,1116]},{82:[1,1117]},{154:[1,1118]},t(so,[2,133]),{82:[1,1119]},{2:r,3:1120,4:n,5:i,6:s,7:a,8:l,9:u},{82:[1,1121]},{82:[1,1122]},{82:[1,1123]},{82:[1,1124]},{82:[1,1125],173:[1,1126]},{82:[1,1127]},{82:[1,1128]},{82:[1,1129]},{82:[1,1130]},{82:[1,1131]},{82:[1,1132]},{82:[1,1133]},{82:[1,1134]},{82:[1,1135]},{82:[2,363]},{82:[2,1125]},{82:[2,1126]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1136},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1137},{122:1138,141:mt,329:zt},t(rt,[2,631],{121:[1,1139]}),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1140},{122:1141,141:mt,329:zt},{2:r,3:1142,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,734]),t(rt,[2,72]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:1143,80:[1,1144]},t(Qn,[2,76]),{82:[1,1145]},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1146,120:1147,229:$r,281:Hr},t(rt,[2,715]),t(rt,[2,621]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1148,229:$r,281:Hr,370:1149,371:1151},{153:1154,154:ye,456:204,457:te,461:ee},t(rt,[2,710]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1155,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ci,Li,{282:156,209:157,283:158,120:159,280:160,205:161,284:162,122:163,285:164,210:165,211:166,286:167,287:168,288:169,153:171,289:172,290:173,60:175,167:178,3:180,456:204,104:1156,2:r,4:n,5:i,6:s,7:a,8:l,9:u,82:ft,140:gt,141:mt,146:yt,152:_t,154:vt,158:xt,161:bt,163:Tt,165:nt,188:Et,189:Ot,190:St,229:Nt,266:At,267:wt,281:Rt,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,457:te,461:ee}),{83:[1,1157]},{122:1158,141:mt,329:zt},{2:r,3:292,4:n,5:i,6:s,7:a,8:l,9:u,486:1159,487:be},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1161,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,250:ni,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee,467:1160,471:ii},t(rt,[2,690]),{123:1163,124:ze,125:Ve,133:[1,1162]},t(rt,[2,702]),t(rt,[2,703]),{2:r,3:1165,4:n,5:i,6:s,7:a,8:l,9:u,82:uo,140:co,470:1164},{123:865,124:ze,125:Ve,133:[1,1168],468:1169},t(rt,[2,795],{78:oi}),{2:r,3:104,4:n,5:i,6:s,7:a,8:l,9:u,543:1170},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1171,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1172,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1173,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(li,[2,161]),t(li,[2,1140],{78:ho}),t(po,[2,277]),t(po,[2,284],{123:660,360:672,3:1176,122:1178,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1175],109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,140:[1,1177],141:mt,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,329:zt,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Oe,[2,1141],{206:1179,799:[1,1180]}),{140:gt,205:1181},t(fo,go),{78:oi,83:[1,1182]},t(et,[2,15]),{157:[1,1183],199:[1,1184]},{199:[1,1185]},{199:[1,1186]},{199:[1,1187]},t(rt,[2,610],{81:[1,1189],82:[1,1188]}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1190,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Dr,mo,{303:1191,307:yo}),t(ai,[2,1186]),t(ai,[2,1183]),t(ai,[2,1184]),{78:ti,83:[1,1193]},{78:ti,83:[1,1194]},t(Dr,[2,368]),{78:[1,1195]},{78:[1,1196]},{78:[1,1197]},{78:[1,1198]},{78:[1,1199],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Dr,[2,374]),t(rt,[2,615]),{331:[1,1200]},{2:r,3:1201,4:n,5:i,6:s,7:a,8:l,9:u,122:1202,141:mt,329:zt},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1203},{250:[1,1204]},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,513:1205,514:611,517:612,521:617,532:614,536:616},t(rt,[2,772],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(si,[2,1219],{516:1206,522:1207,81:_o}),t(di,[2,1218]),{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,153:1210,154:ye,161:Ke,456:204,457:te,461:ee,514:1209,532:614,536:616},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1212,521:617,532:614,536:616},{2:r,3:613,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,512:1214,513:610,514:611,517:612,521:617,532:614,536:616},t(mi,[2,1237],{530:1215,141:[1,1216]}),t(fi,[2,1236]),t(yi,[2,1243],{534:1217,536:1218,161:Ke}),t(mi,[2,1242]),t(yi,[2,788]),t(yi,[2,1246]),t(fi,[2,791]),t(fi,[2,792]),t(yi,[2,790]),t(_i,[2,782]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1219},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1220},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1221,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(vo,[2,1213],{506:1222,122:1223,141:mt,329:zt}),t(vi,[2,1212]),{2:r,3:1224,4:n,5:i,6:s,7:a,8:l,9:u},{368:xo,372:bo,373:To,549:1225},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1229},t(xi,[2,807]),t(xi,[2,808]),t(xi,[2,809]),{138:[1,1230]},{294:[1,1231]},{294:[1,1232]},t(Fe,[2,729]),t(Fe,[2,730],{133:[1,1233]}),{4:Ni,11:940,300:1234,424:939,426:Ai},t([2,4,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,577],{5:[1,1235]}),t([2,5,6,7,8,9,14,57,76,78,81,83,96,103,105,108,109,116,121,124,125,127,131,132,133,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,250,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,330,333,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,378,391,403,404,407,408,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,574],{4:[1,1237],82:[1,1236]}),{82:[1,1238]},t(Eo,[2,8]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1239,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,477]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1240,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,623]),t(ci,[2,603]),{2:r,3:1241,4:n,5:i,6:s,7:a,8:l,9:u,122:1242,141:mt,329:zt},t(rt,[2,599],{78:Oo}),t(Fe,[2,601]),t(rt,[2,648],{78:Oo}),t(rt,[2,707]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1244,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(So,[2,397],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(ji,[2,398],{123:660,360:672,349:dr}),t(So,[2,399],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(No,[2,400],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,347:[1,1245],349:dr,350:pr,351:fr,352:gr}),t(No,[2,402],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,347:[1,1246],349:dr,350:pr,351:fr,352:gr}),t(me,[2,404],{123:660,360:672}),t(Mi,[2,405],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Mi,[2,406],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,189:ar,345:ur,349:dr}),t(Ao,[2,407],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t(Ao,[2,408],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t(Ao,[2,409],{123:660,360:672,124:ze,125:Ve,132:Ye,145:Qe,345:ur,349:dr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,121,127,131,132,133,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,188,189,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,344,346,347,348,350,351,352,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,410],{123:660,360:672,124:ze,125:Ve,145:Qe,345:ur,349:dr}),t(wo,[2,411],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,412],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,413],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(wo,[2,414],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,188:sr,189:ar,345:ur,349:dr,350:pr}),t(Rr,[2,415],{82:Ce}),t(me,[2,416]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1247,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,418]),t(Rr,[2,419],{82:Ce}),t(me,[2,420]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1248,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,422]),t(Ro,[2,423],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,424],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,425],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,426],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,82,96,109,133,148,149,155,163,165,179,180,198,294,295,322,339,343,353,354,355,356,357,358,359,363,364,366,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],Co,{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,428],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,429],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,430],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,431],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t(Ro,[2,432],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),{82:[1,1249]},{82:[2,467]},{82:[2,468]},{82:[2,469]},t(Lo,[2,435],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,116,127,131,137,138,139,140,141,143,144,146,152,154,155,157,158,159,161,165,171,173,175,177,178,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,436],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1250,60:175,82:xe,83:[1,1252],85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1251,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,449]),t(me,[2,451]),t(me,[2,458]),t(me,[2,459]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1253]},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1254],120:997,154:Ii,165:nt,209:998,211:1256,229:$r,281:Hr,293:it,322:ot,323:st,324:at,325:lt,326:ut,362:1255},t(me,[2,456]),t(Lo,[2,453],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t(Lo,[2,454],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,365:Sr}),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,109,116,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,198,207,215,217,242,243,244,245,246,247,248,249,252,259,266,267,268,269,271,273,294,295,304,313,314,315,316,317,318,319,320,322,329,333,339,341,342,343,347,353,354,355,356,357,358,359,363,364,365,366,368,372,373,433,437,438,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,509,545,546,555,639,798],[2,455],{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr}),t(me,[2,457]),t(me,Io),t(me,[2,318]),t(me,[2,319]),t(me,[2,442]),{78:ti,83:[1,1257]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1258,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1259,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ko,Do,{123:660,360:672,305:1260,109:qe,121:Ge,124:ze,125:Ve,127:Po,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1262,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,Mo),t(jo,[2,294]),{2:r,3:1264,4:n,5:i,6:s,7:a,8:l,9:u},t(me,[2,286]),t(jo,[2,291]),t(me,[2,287]),t(jo,[2,292]),t(me,[2,288]),{83:[1,1265],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1266]},{338:1267,339:Ki,340:1027,341:Kr,343:Ui},{339:[1,1268]},t(Fi,[2,392]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1269,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1270],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{81:[1,1271],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1272]},t(Ur,[2,676]),{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,333:[1,1273],335:Xt,350:Br,456:204,457:te,459:1274,460:724,461:ee},t(Hi,[2,665]),{83:[1,1275],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:1276,4:n,5:i,6:s,7:a,8:l,9:u,154:Di,158:Pi},{2:r,3:1019,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1021,4:n,5:i,6:s,7:a,8:l,9:u},t(me,[2,385]),t(Ur,[2,673]),{2:r,3:745,4:n,5:i,6:s,7:a,8:l,9:u,140:qr,141:Gr,463:[1,1277],465:1278},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1279,460:724,461:ee},{140:gt,205:1280},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1281,460:724,461:ee},{140:gt,205:1282},{2:r,3:734,4:n,5:i,6:s,7:a,8:l,9:u,82:Fr,120:729,122:727,140:gt,141:mt,152:_t,153:723,154:ye,161:bt,165:nt,190:St,205:725,209:732,210:731,229:$r,281:Hr,284:728,285:730,293:it,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt,350:Br,456:204,457:te,459:1283,460:724,461:ee},{140:gt,205:1284},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1285,456:204,457:te,461:ee},t(Ko,wi,{369:1286,78:Uo,503:Ri}),{158:zi,375:1288,379:Vi},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,84:1289,85:75,95:76,96:f,104:1292,120:1291,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,wi,{369:1293,503:Ri}),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1294,229:$r,281:Hr,370:1149,371:1151},t(Fo,[2,497]),t(Fo,[2,498]),t($o,[2,502]),t($o,[2,503]),{44:1298,82:[1,1297],85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1295,376:1296,379:Vi,456:204,457:te,461:ee},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:_t,161:bt,190:St,208:266,210:267,231:1299,335:Xt},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1300,456:204,457:te,461:ee},t(Ko,wi,{369:1301,78:Uo,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},{341:Ho,496:1302,497:1303,498:1304},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1306,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{250:[2,738]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,44:753,82:Bo,85:75,95:76,96:f,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,193:102,198:v,208:229,209:231,210:230,211:232,218:1307,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(Vr,qo,{3:759,219:1309,230:1310,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,191]),t(Vr,[2,1148]),t(Vr,[2,193]),t(Vr,[2,200]),t([2,4,5,6,7,8,9,14,57,76,78,81,82,83,96,103,105,108,127,133,137,152,154,155,157,158,161,163,165,171,177,178,190,192,196,198,215,217,242,243,244,245,246,247,248,249,250,251,252,271,273,294,295,322,330,335,339,343,368,372,373,378,379,391,403,404,407,408,433,437,438,439,440,441,443,445,446,454,455,457,461,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,503,545,546,552,553,554,555,639,798],[2,202]),{2:r,3:1311,4:n,5:i,6:s,7:a,8:l,9:u},t(Go,[2,1093],{89:1312,102:1313,103:zo,108:Vo}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1317],141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,212:1316,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(Qr,[2,174]),t(Qr,[2,175]),t(Qr,[2,176]),t(Qr,[2,177]),t(Qr,[2,178]),{2:r,3:705,4:n,5:i,6:s,7:a,8:l,9:u},t(le,[2,93],{78:[1,1319]}),t(Yo,[2,95]),t(Yo,[2,96]),{122:1320,141:mt,329:zt},t([14,76,78,83,103,108,127,133,137,171,177,178,192,207,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],Cr,{125:Bi}),t(Zi,[2,80]),{140:gt,205:1321},{140:gt,205:1322},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1323,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Qr,Jr,{87:1326,207:Zr}),t(le,[2,1100]),t(on,[2,255]),t(Zi,[2,81]),t(Zi,[2,1098]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1327,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,136]),t(so,[2,154]),t(so,[2,155]),t(so,[2,156]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,83:[2,1117],104:285,120:159,122:163,136:1328,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1329,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1330]},t(so,[2,104]),t([2,4,5,6,7,8,9,14,76,78,81,82,83,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,106],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t([2,4,5,6,7,8,9,14,76,78,81,82,83,121,127,131,133,137,138,139,140,141,143,144,146,148,149,152,154,155,157,158,159,161,163,165,171,173,175,177,178,179,180,181,182,184,190,192,194,196,207,266,267,304,313,314,315,316,317,318,319,320,339,343,457,461,503,639,798],[2,107],{123:660,360:672,109:qe,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1331],121:un,123:790,124:ze,125:Ve,126:1332,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},t(Wo,[2,1113],{162:1097,188:no,189:io,190:oo}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1334,127:cn,131:hn,132:dn,133:pn,135:1333,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1335,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1336,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1337,4:n,5:i,6:s,7:a,8:l,9:u},t(so,[2,120]),t(so,[2,121]),t(so,[2,122]),t(so,[2,129]),{2:r,3:1338,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1339,229:$r,281:Hr,370:1149,371:1151},{2:r,3:1340,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1341,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,135]),t(Wo,[2,1119],{164:1342}),t(Wo,[2,1121],{166:1343}),t(Wo,[2,1123],{168:1344}),t(Wo,[2,1127],{170:1345}),t(Xo,Qo,{172:1346,187:1347}),{82:[1,1348]},t(Wo,[2,1129],{174:1349}),t(Wo,[2,1131],{176:1350}),t(Xo,Qo,{187:1347,172:1351}),t(Xo,Qo,{187:1347,172:1352}),t(Xo,Qo,{187:1347,172:1353}),t(Xo,Qo,{187:1347,172:1354}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1355,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,183:1356,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:874,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Jo,[2,1133],{185:1357}),t(rt,[2,641],{192:[1,1358]}),t(rt,[2,637],{192:[1,1359]}),t(rt,[2,630]),{122:1360,141:mt,329:zt},t(rt,[2,639],{192:[1,1361]}),t(rt,[2,634]),t(rt,[2,635],{121:[1,1362]}),t(Qn,[2,73]),{2:r,3:258,4:n,5:i,6:s,7:a,8:l,9:u,79:1363},{44:1364,82:p,85:75,95:76,96:f,193:102,198:v},{78:Zo,83:[1,1365]},t(ts,es),t(rt,wi,{369:1368,78:rs,137:[1,1367],503:Ri}),t(ns,[2,472]),{133:[1,1370]},{2:r,3:1371,4:n,5:i,6:s,7:a,8:l,9:u},t(ke,[2,1189]),t(ke,[2,1190]),t(rt,[2,653]),t(ei,[2,376],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ro,Co,{123:660,360:672,121:Ge,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,365:Sr}),t([14,78,83,109,121,124,125,127,132,133,142,145,147,148,149,150,151,163,171,177,178,179,180,188,189,271,273,339,343,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366,639,798],Io),t(Fe,[2,723]),t(Fe,[2,725]),t(rt,[2,689]),t(rt,[2,691],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1372,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1165,4:n,5:i,6:s,7:a,8:l,9:u,82:uo,140:co,470:1373},t(is,[2,698]),t(is,[2,699]),t(is,[2,700]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1374,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1375,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{123:1163,124:ze,125:Ve,133:[1,1376]},t(si,[2,797]),t(li,[2,158],{78:ho}),t(li,[2,159],{78:ho}),t(li,[2,160],{78:ho}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:875,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,279:1377,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1378,4:n,5:i,6:s,7:a,8:l,9:u,122:1380,140:[1,1379],141:mt,329:zt},t(po,[2,279]),t(po,[2,281]),t(po,[2,283]),t(Oe,[2,170]),t(Oe,[2,1142]),{83:[1,1381]},t(Ae,[2,800]),{2:r,3:1382,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1383,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,421:1384},{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,421:1386},{2:r,3:1387,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1388,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1389,4:n,5:i,6:s,7:a,8:l,9:u},{78:ti,83:[1,1390]},t(Dr,[2,365]),{82:[1,1391]},t(Dr,[2,366]),t(Dr,[2,367]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1392,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1393,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1394,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1395,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1396,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ci,[2,532]),t(rt,os,{444:1397,81:ss,82:[1,1398]}),t(rt,os,{444:1400,81:ss}),{82:[1,1401]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1402},t(si,[2,773]),t(si,[2,775]),t(si,[2,1220]),{152:Te,154:Ee,469:1403},t(as,[2,1221],{456:204,518:1404,153:1405,154:ye,457:te,461:ee}),{81:_o,148:[2,1225],520:1406,522:1407},t([14,78,81,83,141,148,154,161,339,343,457,461,639,798],gi,{529:912,532:913,146:je}),t(si,[2,778]),t(si,pi),{78:hi,83:[1,1408]},t(yi,[2,1239],{531:1409,536:1410,161:Ke}),t(mi,[2,1238]),t(yi,[2,787]),t(yi,[2,1244]),t(rt,[2,518],{82:[1,1411]}),{81:[1,1413],82:[1,1412]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,157:[1,1414],163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Ko,ls,{85:75,95:76,193:102,507:1415,44:1418,82:p,96:f,155:us,198:v,509:cs}),t(vo,[2,1214]),t(vi,[2,765]),{250:[1,1419]},t(hs,[2,811]),t(hs,[2,812]),t(hs,[2,813]),t(xi,bi,{548:1420,105:Ti,552:Ei,553:Oi,554:Si}),t(xi,[2,810]),t(rt,[2,324]),t(rt,[2,325]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1421,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Fe,[2,731],{133:[1,1422]}),t(Eo,[2,576]),{140:[1,1424],425:1423,427:[1,1425]},t(Eo,[2,9]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1426,456:204,457:te,461:ee},t(rt,wi,{123:660,360:672,369:1427,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,503:Ri}),t(Ko,[2,760],{78:ho,207:[1,1428]}),t(rt,[2,624]),t(rt,[2,625]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1429},t(rt,[2,709]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1430,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1431,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1432],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1433],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1434,60:175,82:xe,85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1435,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1436]},{78:ti,83:[1,1437]},t(me,[2,447]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1438,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:1439,60:175,82:xe,83:[1,1441],85:75,95:76,96:f,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1440,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(me,[2,450]),t(me,[2,452]),t(me,mo,{303:1442,307:yo}),{83:[1,1443],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1444],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{9:ds,83:ps,306:1445},{128:[1,1447]},t(ko,Do,{123:660,360:672,305:1448,109:qe,121:Ge,124:ze,125:Ve,127:Po,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:1449,4:n,5:i,6:s,7:a,8:l,9:u,189:[1,1450]},t(jo,[2,295]),t(Ur,[2,654]),t(me,[2,384]),{339:[1,1451]},t(me,[2,391]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,339:[2,395],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1452,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{4:Ni,11:940,300:1453,424:939,426:Ai},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1454,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ur,[2,677]),t($i,[2,687]),t(Hi,[2,672]),t(jo,Mo),t(Ur,[2,674]),t(Gi,[2,679]),t(Gi,[2,681]),t(Gi,[2,684]),t(Gi,[2,682]),t(Gi,[2,685]),t(Gi,[2,683]),t(Gi,[2,686]),t(Ko,wi,{369:1456,78:Uo,503:Ri}),t(Ko,[2,479]),{82:[1,1457],152:_t,153:1458,154:ye,161:bt,190:St,210:1459,335:Xt,456:204,457:te,461:ee},t(Ko,wi,{369:1460,503:Ri}),{78:Zo,83:[1,1461]},{78:fs,83:[1,1462]},t([78,83,109,121,124,125,132,133,142,145,147,148,149,150,151,163,179,180,188,189,344,345,346,348,349,350,351,352,353,354,355,356,357,358,359,363,364,365,366],es),t(gs,[2,507],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ko,[2,493]),t(Ko,wi,{369:1464,78:rs,503:Ri}),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1465,456:204,457:te,461:ee},t(Ko,wi,{369:1466,78:Uo,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,84:1467,85:75,95:76,96:f,104:1292,120:1291,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,wi,{369:1468,503:Ri}),{44:1471,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1469,376:1470,379:Vi,456:204,457:te,461:ee},t(Ko,wi,{369:1473,78:Uo,503:Ri}),t(Ko,[2,489]),t(rt,wi,{369:1474,497:1475,498:1476,341:Ho,503:Ri}),t(ys,[2,743]),t(ys,[2,744]),{163:[1,1478],499:[1,1477]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,341:[2,740],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1479]},{44:1480,82:p,85:75,95:76,96:f,193:102,198:v},t(Vr,[2,190]),t(Vr,[2,1144]),t(rt,[2,609]),t(_s,vs,{90:1481,137:xs}),t(Go,[2,1094]),{82:[1,1483]},{82:[1,1484]},t(Wi,[2,179],{213:1485,232:1487,214:1488,233:1489,241:1492,78:bs,215:Ts,217:Es,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,44:753,82:Bo,85:75,95:76,96:f,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,193:102,198:v,208:229,209:231,210:230,211:232,212:1501,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,188]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,119:1502,120:1084,121:Ji,229:$r,281:Hr},t(Yo,[2,97]),t(Zi,[2,274],{272:1503,273:[1,1504]}),{274:1505,275:[2,1169],800:[1,1506]},t(en,[2,261],{78:Is}),t(ks,[2,262]),t(ks,[2,266],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,268:[1,1508],269:[1,1509],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Wi,Xi,{88:1510,192:Qi}),t(Zi,[2,157],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{83:[1,1511]},{78:ti,83:[2,1118]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,83:[2,1111],104:1325,120:159,122:163,129:1512,130:1513,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,268:[1,1514],280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(so,[2,108]),t(Wo,[2,1114],{162:1097,188:no,189:io,190:oo}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1515],121:un,123:790,124:ze,125:Ve,126:1516,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},t(Wo,[2,1115],{162:1097,188:no,189:io,190:oo}),{83:[1,1517],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1518],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1519]},t(so,[2,130]),{78:rs,83:[1,1520]},t(so,[2,132]),{78:ti,83:[1,1521]},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1522],121:un,123:790,124:ze,125:Ve,126:1523,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1524],121:un,123:790,124:ze,125:Ve,126:1525,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1526],121:un,123:790,124:ze,125:Ve,126:1527,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1528],121:un,123:790,124:ze,125:Ve,126:1529,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{78:Ds,83:[1,1530]},t(gs,[2,153],{456:204,3:787,123:790,153:812,167:822,169:823,126:1532,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),t(Xo,Qo,{187:1347,172:1533}),{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1534],121:un,123:790,124:ze,125:Ve,126:1535,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,83:[1,1536],121:un,123:790,124:ze,125:Ve,126:1537,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{78:Ds,83:[1,1538]},{78:Ds,83:[1,1539]},{78:Ds,83:[1,1540]},{78:Ds,83:[1,1541]},{83:[1,1542],162:1097,188:no,189:io,190:oo},{78:ho,83:[1,1543]},{2:r,3:787,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,78:[1,1544],81:an,82:ln,121:un,123:790,124:ze,125:Ve,126:1545,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,153:812,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,167:822,169:823,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,456:204,457:te,461:ee},{2:r,3:1546,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1547,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,632]),{2:r,3:1548,4:n,5:i,6:s,7:a,8:l,9:u},{122:1549,141:mt,329:zt},t(Qn,[2,74]),{83:[1,1550]},{81:[1,1551]},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1552,229:$r,281:Hr},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1553,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,471]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,229:$r,281:Hr,370:1554,371:1151},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1555,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{133:[1,1556]},t(rt,[2,692],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(is,[2,697]),{83:[1,1557],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,[2,693],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1558,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(po,[2,276]),t(po,[2,278]),t(po,[2,280]),t(po,[2,282]),t(Oe,[2,171]),t(rt,[2,604]),{157:[1,1559]},t(rt,[2,605]),t(si,[2,571],{424:939,11:940,300:1560,4:Ni,423:[1,1561],426:Ai}),t(rt,[2,606]),t(rt,[2,608]),{78:ti,83:[1,1562]},t(rt,[2,612]),t(Dr,mo,{303:1563,307:yo}),t(Ps,[2,1179],{308:1564,310:1565,311:[1,1566]}),{78:[1,1567],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1568],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1569],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1570],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:[1,1571],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,[2,616]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1572,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1573,4:n,5:i,6:s,7:a,8:l,9:u},t(rt,[2,618]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1574,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1575]},{2:r,3:1576,4:n,5:i,6:s,7:a,8:l,9:u},{81:_o,148:[2,1223],519:1577,522:1578},t(as,[2,1222]),{148:[1,1579]},{148:[2,1226]},t(si,[2,779]),t(yi,[2,786]),t(yi,[2,1240]),{2:r,3:1385,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1582],386:1580,393:1581,421:1583},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1584,120:1147,229:$r,281:Hr},{44:1585,82:p,85:75,95:76,96:f,193:102,198:v},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1586,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,764]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1587,229:$r,281:Hr,370:1149,371:1151},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1588,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,769]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1589},{368:xo,372:bo,373:To,549:1590},t(Fe,[2,732],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1591,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:[1,1592],83:[1,1593]},t(gs,[2,578]),t(gs,[2,579]),{78:fs,83:[1,1594]},t(rt,[2,476]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,152:Te,154:Ee,208:1596,469:1595},t(Fe,[2,600]),t(So,[2,401],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(So,[2,403],{123:660,360:672,124:ze,125:Ve,132:Ye,142:Xe,145:Qe,147:Je,150:er,151:rr,188:sr,189:ar,345:ur,349:dr,350:pr,351:fr,352:gr}),t(me,[2,417]),t(me,[2,421]),{83:[1,1597]},{78:ti,83:[1,1598]},t(me,[2,443]),t(me,[2,445]),{83:[1,1599],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1600]},{78:ti,83:[1,1601]},t(me,[2,448]),t(me,[2,340]),t(me,mo,{303:1602,307:yo}),t(me,mo,{303:1603,307:yo}),{83:[1,1604]},{141:[1,1605]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1606,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{9:ds,83:ps,306:1607},t(jo,[2,290]),t(me,[2,285]),t(me,[2,390]),t(Fi,[2,394],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{78:[1,1609],83:[1,1608]},{78:[1,1611],83:[1,1610],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{2:r,3:1449,4:n,5:i,6:s,7:a,8:l,9:u},t(Ko,[2,478]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1612,456:204,457:te,461:ee},t($o,[2,505]),t($o,[2,506]),t(Ko,[2,490]),{44:1615,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1613,376:1614,379:Vi,456:204,457:te,461:ee},t($o,[2,501]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1616,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ko,[2,496]),t(Ko,wi,{369:1617,78:Uo,503:Ri}),t(Ko,[2,481]),{78:Zo,83:[1,1618]},t(Ko,[2,484]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1619,456:204,457:te,461:ee},t(Ko,wi,{369:1620,78:Uo,503:Ri}),t(Ko,wi,{369:1621,503:Ri}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,44:308,60:175,82:xe,85:75,95:76,96:f,104:1292,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,193:102,198:v,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,380:1290,456:204,457:te,461:ee},t(Ko,[2,488]),t(rt,[2,735]),t(ys,[2,741]),t(ys,[2,742]),{179:[1,1623],342:[1,1622]},{499:[1,1624]},{250:[2,739]},{83:[1,1625]},t(fo,Ms,{91:1626,252:js}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1628,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1629,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1630,4:n,5:i,6:s,7:a,8:l,9:u},t(Wi,[2,180],{233:1489,241:1492,232:1632,214:1633,78:[1,1631],215:Ts,217:Es,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls}),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,218:1634,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,208]),t(ts,[2,209]),{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1639],152:_t,153:1637,154:vt,161:bt,165:nt,190:St,208:1636,209:1640,210:1638,211:1641,234:1635,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},{216:[1,1642],243:Ks},{216:[1,1644],243:Us},t(Fs,[2,217]),{215:[1,1648],217:[1,1647],241:1646,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Fs,[2,219]),{243:[1,1649]},{217:[1,1651],243:[1,1650]},{217:[1,1653],243:[1,1652]},{217:[1,1654]},{243:[1,1655]},{243:[1,1656]},{78:bs,213:1657,214:1488,215:Ts,217:Es,232:1487,233:1489,241:1492,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Yo,[2,94]),t(Zi,[2,272]),{140:gt,205:1658},{275:[1,1659]},{275:[2,1170]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1660,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ks,[2,267],{264:1661,265:[1,1662]}),{270:[1,1663]},t(Go,[2,1101],{101:1664,102:1665,103:zo,108:Vo}),t(so,[2,110]),{78:Is,83:[1,1666]},{83:[1,1667]},{83:[2,1112]},t(so,[2,109]),t(Wo,[2,1116],{162:1097,188:no,189:io,190:oo}),t(so,[2,111]),t(so,[2,112]),t(so,[2,113]),t(so,[2,131]),t(so,[2,134]),t(so,[2,137]),t(Wo,[2,1120],{162:1097,188:no,189:io,190:oo}),t(so,[2,138]),t(Wo,[2,1122],{162:1097,188:no,189:io,190:oo}),t(so,[2,139]),t(Wo,[2,1124],{162:1097,188:no,189:io,190:oo}),t(so,[2,140]),t(Wo,[2,1128],{162:1097,188:no,189:io,190:oo}),t(so,[2,141]),t(Xo,[2,1135],{186:1668}),t(Xo,[2,1138],{162:1097,188:no,189:io,190:oo}),{78:Ds,83:[1,1669]},t(so,[2,143]),t(Wo,[2,1130],{162:1097,188:no,189:io,190:oo}),t(so,[2,144]),t(Wo,[2,1132],{162:1097,188:no,189:io,190:oo}),t(so,[2,145]),t(so,[2,146]),t(so,[2,147]),t(so,[2,148]),t(so,[2,149]),t(so,[2,150]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:285,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,160:1670,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Jo,[2,1134],{162:1097,188:no,189:io,190:oo}),t(rt,[2,642]),t(rt,[2,638]),t(rt,[2,640]),t(rt,[2,636]),t(Qn,[2,77]),{82:[1,1671]},t(ts,[2,516]),t(rt,wi,{123:660,360:672,369:1672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,503:Ri}),t(ns,[2,473]),t(ns,[2,474],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1673,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(is,[2,701]),t(rt,[2,694],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{2:r,3:1674,4:n,5:i,6:s,7:a,8:l,9:u},t(si,[2,580],{422:1675,428:1676,429:1677,401:1685,163:$s,196:Hs,250:Bs,330:qs,378:Gs,391:zs,403:Vs,404:Ys,407:Ws,408:Xs}),t(si,[2,570]),t(rt,[2,611],{81:[1,1689]}),t(Dr,[2,364]),{83:[2,1181],127:[1,1692],309:1690,312:1691},t(Ps,[2,1180]),{128:[1,1693]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1694,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1695,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1696,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1697,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1698,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:ti,83:[1,1699]},t(rt,[2,620]),{78:Is,83:[1,1700]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1701,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t([14,78,83,148,339,343,639,798],[2,783]),{148:[1,1702]},{148:[2,1224]},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1703,521:617,532:614,536:616},{83:[1,1704]},{78:[1,1705],83:[2,534]},{44:1706,82:p,85:75,95:76,96:f,193:102,198:v},t(gs,[2,567]),{78:Zo,83:[1,1707]},t(rt,[2,1207],{449:1708,450:1709,76:Qs}),t(Ko,ls,{85:75,95:76,193:102,123:660,360:672,44:1418,507:1711,82:p,96:f,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,155:us,163:nr,179:ir,180:or,188:sr,189:ar,198:v,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr,509:cs}),t(Ko,[2,767],{78:rs}),t(Ko,[2,768],{78:ti}),t([14,57,76,82,96,133,155,165,198,294,295,322,339,343,368,372,373,433,437,438,441,443,445,446,454,455,466,472,474,475,477,478,479,480,481,482,483,487,488,491,492,545,546,555,639,798],[2,1255],{550:1712,3:1713,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1714]}),t(Js,[2,1257],{551:1715,81:[1,1716]}),t(Fe,[2,733],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{140:[1,1717]},t(Eo,[2,573]),t(Eo,[2,575]),{2:r,3:1718,4:n,5:i,6:s,7:a,8:l,9:u},t(Ko,[2,762],{82:[1,1719]}),t(me,[2,433]),t(me,[2,434]),t(me,[2,460]),t(me,[2,444]),t(me,[2,446]),t(me,[2,341]),t(me,[2,342]),t(me,[2,343]),{83:[2,352]},t(ko,[2,350],{78:Is}),{83:[1,1720]},t(me,[2,328]),{140:[1,1721]},t(me,[2,330]),{140:[1,1722]},{78:fs,83:[1,1723]},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1724,456:204,457:te,461:ee},t(Ko,wi,{369:1725,78:Uo,503:Ri}),t(Ko,wi,{369:1726,503:Ri}),t(gs,[2,508],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Ko,[2,480]),{44:1729,82:ms,85:75,95:76,96:f,152:_t,153:1056,154:ye,158:zi,161:bt,190:St,193:102,198:v,210:1057,335:Xt,375:1727,376:1728,379:Vi,456:204,457:te,461:ee},t(Ko,wi,{369:1730,78:Uo,503:Ri}),t(Ko,[2,487]),t(Ko,[2,494]),{368:Zs,372:ta,500:1731},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1734,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{128:[1,1736],179:[1,1737],342:[1,1735]},t([78,215,217,242,243,244,245,246,247,248,249],qo,{3:759,219:1309,230:1310,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,83:go,127:go,171:go,177:go,178:go,271:go,273:go}),t(ce,he,{260:243,92:1738,171:de,177:pe,178:fe}),{128:[1,1739]},t(_s,[2,235],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{105:[1,1740],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{105:[1,1741]},{2:r,3:235,4:n,5:i,6:s,7:a,8:l,9:u,82:oe,141:se,152:_t,153:228,154:vt,161:bt,165:nt,190:St,208:229,209:231,210:230,211:232,212:1742,218:1318,227:233,229:ae,293:it,322:ot,323:st,324:at,325:lt,326:ut,335:Xt,456:204,457:te,461:ee},t(ts,[2,206]),t(ts,[2,207]),t(ts,[2,189]),t(ts,[2,233],{235:1743,250:[1,1744],251:[1,1745]}),t(Vr,[2,1159],{3:759,236:1746,230:1747,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(zr,[2,1161],{237:1748,81:[1,1749]}),{2:r,3:759,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,230:1750},{44:1751,82:p,85:75,95:76,96:f,193:102,198:v},t(Vr,[2,1165],{3:759,239:1752,230:1753,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),t(Vr,[2,1167],{3:759,240:1754,230:1755,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr}),{82:[1,1756]},t(Fs,[2,229]),{82:[1,1757]},t(Fs,[2,225]),t(Fs,[2,218]),{243:Us},{243:Ks},t(Fs,[2,220]),t(Fs,[2,221]),{243:[1,1758]},t(Fs,[2,223]),{243:[1,1759]},{243:[1,1760]},t(Fs,[2,227]),t(Fs,[2,228]),{83:[1,1761],214:1633,215:Ts,217:Es,232:1632,233:1489,241:1492,242:Os,243:Ss,244:Ns,245:As,246:ws,247:Rs,248:Cs,249:Ls},t(Zi,[2,275]),{140:[2,1171],276:1762,681:[1,1763]},t(ks,[2,263]),t(ks,[2,268]),{266:[1,1764],267:[1,1765]},t(ks,[2,269],{268:[1,1766]}),t(_s,vs,{90:1767,137:xs}),t(Go,[2,1102]),t(so,[2,101]),t(so,[2,102]),t(gs,[2,152],{456:204,3:787,123:790,153:812,167:822,169:823,126:1768,2:r,4:n,5:i,6:s,7:a,8:l,9:u,76:sn,81:an,82:ln,121:un,124:ze,125:Ve,127:cn,131:hn,132:dn,133:pn,137:fn,138:gn,139:mn,140:yn,141:_n,142:vn,143:xn,144:bn,145:Tn,146:En,147:On,148:Sn,149:Nn,150:An,151:wn,152:Rn,154:Cn,155:Ln,157:In,158:kn,159:Dn,161:Pn,163:Mn,165:jn,171:Kn,173:Un,175:Fn,177:$n,178:Hn,179:Bn,180:qn,181:Gn,182:zn,184:Vn,194:Yn,196:Wn,266:At,267:wt,304:Xn,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,457:te,461:ee}),t(so,[2,142]),{78:ti,83:[1,1769]},{44:1770,82:p,85:75,95:76,96:f,193:102,198:v},t(rt,[2,470]),t(ns,[2,475],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(rt,[2,607]),t(si,[2,569]),t(si,[2,581],{401:1685,429:1771,163:$s,196:Hs,250:Bs,330:qs,378:Gs,391:zs,403:Vs,404:Ys,407:Ws,408:Xs}),t(Zn,[2,583]),{6:[1,1772]},{6:[1,1773]},{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1774},t(Zn,[2,589],{82:[1,1775]}),{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1777],122:275,140:gt,141:mt,152:_t,161:bt,165:nt,190:St,205:274,209:1778,210:278,284:276,285:277,292:_e,293:ve,302:1776,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt},t(Zn,[2,593]),{330:[1,1779]},t(Zn,[2,595]),t(Zn,[2,596]),{368:[1,1780]},{82:[1,1781]},{2:r,3:1782,4:n,5:i,6:s,7:a,8:l,9:u},{83:[1,1783]},{83:[2,1182]},{128:[1,1784]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1785,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1791],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1792],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1793],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1794],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{83:[1,1795],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(rt,os,{444:1796,81:ss}),t(rt,[2,626]),{78:Is,83:[1,1797]},{2:r,3:1211,4:n,5:i,6:s,7:a,8:l,9:u,141:Me,146:je,152:Te,154:Ee,161:Ke,469:620,514:1213,517:1798,521:617,532:614,536:616},t(si,[2,777]),t(rt,[2,521],{387:1799,389:1800,390:1801,4:ia,269:oa,378:sa,391:aa}),t(la,ua,{3:1385,394:1806,421:1807,395:1808,396:1809,2:r,4:n,5:i,6:s,7:a,8:l,9:u,402:ca}),{83:[2,535]},{81:[1,1811]},t(rt,[2,644]),t(rt,[2,1208]),{403:[1,1813],451:[1,1812]},t(Ko,[2,770]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1814,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(rt,[2,804]),t(Js,[2,1256]),t(rt,e,{21:5,22:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:18,34:19,35:20,36:21,37:22,38:23,39:24,40:25,41:26,42:27,43:28,44:29,45:30,46:31,47:32,48:33,49:34,50:35,51:36,52:37,53:38,54:39,55:40,56:41,58:43,59:44,60:45,61:46,62:47,63:48,64:49,65:50,66:51,67:52,68:53,69:54,70:55,71:56,72:57,73:58,74:59,75:60,85:75,95:76,543:98,193:102,3:104,16:1815,2:r,4:n,5:i,6:s,7:a,8:l,9:u,57:h,76:d,82:p,96:f,133:m,155:y,165:_,198:v,294:x,295:b,322:T,368:E,372:O,373:S,433:N,437:A,438:w,441:R,443:C,445:L,446:I,454:k,455:D,466:P,472:M,474:j,475:K,477:U,478:F,479:$,480:H,481:B,482:q,483:G,487:z,488:V,491:Y,492:W,545:X,546:Q,555:J}),t(Js,[2,1258]),{83:[1,1816]},t(Ko,[2,761]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1817,120:1147,229:$r,281:Hr},t(me,[2,344]),{83:[1,1818]},{83:[1,1819]},t($o,[2,504]),t(Ko,wi,{369:1820,78:Uo,503:Ri}),t(Ko,[2,492]),t(Ko,[2,495]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1821,456:204,457:te,461:ee},t(Ko,wi,{369:1822,78:Uo,503:Ri}),t(Ko,wi,{369:1823,503:Ri}),t(Ko,[2,486]),t(ys,[2,745]),t(ys,[2,747]),{155:[1,1824]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1825],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{373:ha,501:1826},{454:[1,1829],502:[1,1828]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1830,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(en,rn,{93:1831,127:nn}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1832,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1833,4:n,5:i,6:s,7:a,8:l,9:u},{2:r,3:1834,4:n,5:i,6:s,7:a,8:l,9:u},t(Wi,[2,181],{78:bs}),t(ts,[2,210]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1835,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1837],84:1836,120:1147,229:$r,281:Hr},t(Vr,[2,211]),t(Vr,[2,1160]),t(Vr,[2,1163],{238:1838,3:1839,2:r,4:n,5:i,6:s,7:a,8:l,9:u}),t(zr,[2,1162]),t(Vr,[2,213]),{83:[1,1840]},t(Vr,[2,215]),t(Vr,[2,1166]),t(Vr,[2,216]),t(Vr,[2,1168]),{44:1841,82:p,85:75,95:76,96:f,193:102,198:v},{44:1842,82:p,85:75,95:76,96:f,193:102,198:v},t(Fs,[2,222]),t(Fs,[2,224]),t(Fs,[2,226]),t(Wi,[2,182]),{140:gt,205:1843},{140:[2,1172]},t(ks,[2,264]),t(ks,[2,265]),t(ks,[2,270]),t(fo,Ms,{91:1844,252:js}),t(Xo,[2,1136],{162:1097,188:no,189:io,190:oo}),t(so,[2,151]),{83:[1,1845]},t(Zn,[2,582]),t(Zn,[2,585]),{408:[1,1846]},t(Zn,[2,1201],{432:1847,430:1848,82:da}),{140:gt,205:1850},t(Zn,[2,590]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1851,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Zn,[2,592]),t(Zn,[2,594]),{2:r,3:122,4:n,5:i,6:s,7:a,8:l,9:u,82:[1,1853],122:275,140:gt,141:mt,152:_t,161:bt,165:nt,190:St,205:274,209:279,210:278,284:276,285:277,292:_e,293:ve,302:1852,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,335:Xt},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1854,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(rt,[2,613]),t(Dr,[2,346]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:1855,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(Ps,[2,347],{78:pa}),t(fa,[2,240]),{155:[1,1857]},{82:[1,1858]},{82:[1,1859]},t(fa,[2,245],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Dr,[2,369]),t(Dr,[2,370]),t(Dr,[2,371]),t(Dr,[2,372]),t(Dr,[2,373]),t(rt,[2,617]),t(rt,[2,627]),t(si,[2,776]),t(rt,[2,517]),t(rt,[2,522],{390:1860,4:ia,269:oa,378:sa,391:aa}),t(ga,[2,524]),t(ga,[2,525]),{133:[1,1861]},{133:[1,1862]},{133:[1,1863]},{78:[1,1864],83:[2,533]},t(gs,[2,568]),t(gs,[2,536]),{196:[1,1872],202:[1,1873],397:1865,398:1866,399:1867,400:1868,401:1869,403:Vs,404:[1,1870],407:[1,1871]},{2:r,3:1874,4:n,5:i,6:s,7:a,8:l,9:u},{44:1875,82:p,85:75,95:76,96:f,193:102,198:v},{452:[1,1876]},{453:[1,1877]},t(rt,[2,803]),t(rt,[2,805]),t(Eo,[2,572]),{78:Zo,83:[1,1878]},t(me,[2,329]),t(me,[2,331]),t(Ko,[2,491]),t(Ko,wi,{369:1879,78:Uo,503:Ri}),t(Ko,[2,483]),t(Ko,[2,485]),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,120:1150,152:ao,154:lo,156:1880,229:$r,281:Hr,370:1149,371:1151},{368:Zs,372:ta,500:1881},t(ys,[2,749]),{82:[1,1883],378:[1,1884],379:[1,1882]},{179:[1,1886],342:[1,1885]},{179:[1,1888],342:[1,1887]},{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1889],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zi,to,{94:1890,271:eo,273:ro}),t([14,83,127,171,177,178,271,273,339,343,503,639,798],ma,{254:1891,76:[1,1892],78:pa,259:ya}),{83:[2,1103],106:1894,109:[1,1896],111:1895},{109:[1,1897]},t(ts,[2,230],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t([14,76,83,103,108,127,137,171,177,178,215,217,242,243,244,245,246,247,248,249,252,271,273,339,343,503,639,798],[2,231],{78:Zo}),{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1898,120:1147,229:$r,281:Hr},t(Vr,[2,212]),t(Vr,[2,1164]),{2:r,3:759,4:n,5:i,6:s,7:a,8:l,9:u,81:Yr,230:1899},{83:[1,1900]},{83:[1,1901]},t(_a,[2,1173],{277:1902,800:[1,1903]}),t(ce,he,{260:243,92:1904,171:de,177:pe,178:fe}),t(Qn,[2,78]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:1905},t(va,xa,{410:1906,412:1907,413:1908,250:ba}),t(Zn,[2,1202]),{2:r,3:1910,4:n,5:i,6:s,7:a,8:l,9:u},{78:[1,1911]},{83:[1,1912],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zn,[2,597]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1913,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1914],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},{78:Is,83:[2,348]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,255:ea,256:ra,257:1915,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{82:[1,1916]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1917,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1918,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},t(ga,[2,523]),{2:r,3:1919,4:n,5:i,6:s,7:a,8:l,9:u},{140:gt,205:1920},{2:r,3:1921,4:n,5:i,6:s,7:a,8:l,9:u},t(la,ua,{396:1809,395:1922,402:ca}),t(si,[2,538]),t(si,[2,539]),t(si,[2,540]),t(si,[2,541]),t(si,[2,542]),{6:[1,1923]},{6:[1,1924]},t([2,4,5,7,8,9,82],[2,1195],{419:1925,6:[1,1926]}),{2:r,3:1927,4:n,5:i,6:s,7:a,8:l,9:u},t(la,[2,544]),t(rt,[2,1205],{448:1928,450:1929,76:Qs}),t(rt,[2,645]),t(rt,[2,646],{402:[1,1930]}),t(Ko,[2,763]),t(Ko,[2,482]),t(ys,[2,748],{78:rs}),t(ys,[2,746]),{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:1931,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1932,120:1147,229:$r,281:Hr},{379:[1,1933]},{373:ha,501:1934},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1935,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{373:ha,501:1936},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1937,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{373:ha,501:1938},t(Zi,[2,79]),t(fo,[2,237]),{255:[1,1939],256:[1,1940]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1941,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{83:[1,1942]},{83:[2,1104]},{82:[1,1943]},{82:[1,1944]},{78:Zo,83:[1,1945]},t(Vr,[2,214]),{2:r,3:1946,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1947]},{2:r,3:1948,4:n,5:i,6:s,7:a,8:l,9:u,81:[1,1949]},t(Zi,[2,1175],{278:1950,452:[1,1951]}),t(_a,[2,1174]),t(ce,[2,82]),t(Zn,[2,1199],{431:1952,430:1953,82:da}),t(Zn,[2,587]),t(va,[2,550],{413:1954,250:[1,1955]}),t(va,[2,551],{412:1956,250:[1,1957]}),{368:Ta,372:Ea},{83:[1,1960]},{140:gt,205:1961},t(Zn,[2,591]),{83:[1,1962],109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(Zn,[2,545]),t(fa,[2,241]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1790,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,253:1963,255:ea,256:ra,257:1786,258:na,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:pa,83:[1,1964]},{78:pa,83:[1,1965]},t(ga,[2,526]),t(ga,[2,527]),t(ga,[2,528]),t(gs,[2,537]),{2:r,3:1967,4:n,5:i,6:s,7:a,8:l,9:u,82:[2,1191],405:1966},{82:[1,1968]},{2:r,3:1970,4:n,5:i,6:s,7:a,8:l,9:u,82:[2,1197],420:1969},t([2,4,5,6,7,8,9,82],[2,1196]),{82:[1,1971]},t(rt,[2,643]),t(rt,[2,1206]),t(la,ua,{396:1809,395:1972,402:ca}),t(ys,[2,755],{78:Uo}),{78:Zo,83:[1,1973]},t(ys,[2,757]),t(ys,[2,750]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1974],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(ys,[2,753]),{109:qe,121:Ge,123:660,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,342:[1,1975],344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,360:672,363:Er,364:Or,365:Sr,366:Nr},t(ys,[2,751]),t(fo,ma,{254:1976,259:ya}),t(fo,ma,{254:1977,259:ya}),t(fo,[2,247],{123:660,360:672,109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),t(Go,[2,1105],{107:1978,113:1979,3:1981,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Oa}),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1984,112:1982,114:1983,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:1086,4:n,5:i,6:s,7:a,8:l,9:u,84:1985,120:1147,229:$r,281:Hr},t(ts,[2,232]),t(ts,[2,184]),{2:r,3:1986,4:n,5:i,6:s,7:a,8:l,9:u},t(ts,[2,186]),{2:r,3:1987,4:n,5:i,6:s,7:a,8:l,9:u},t(Zi,[2,273]),t(Zi,[2,1176]),t(va,xa,{412:1907,413:1908,410:1988,250:ba}),t(Zn,[2,1200]),t(Zn,[2,552]),{368:Ta},t(Zn,[2,553]),{372:Ea},{155:Sa,414:1989,415:Na,416:Aa,417:wa},{155:Sa,414:1994,415:Na,416:Aa,417:wa},t(Zn,[2,584]),{83:[1,1995]},t(Zn,[2,598]),{78:pa,83:[1,1996]},t(fa,[2,243]),t(fa,[2,244]),{82:[1,1997]},{82:[2,1192]},{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:1998},{82:[1,2001]},{82:[2,1198]},{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2002},t(rt,[2,647]),{378:[1,2004],379:[1,2003]},{373:ha,501:2005},{368:Zs,372:ta,500:2006},t(fo,[2,238]),t(fo,[2,239]),t(Go,[2,84]),t(Go,[2,1106]),{2:r,3:2007,4:n,5:i,6:s,7:a,8:l,9:u},t(Go,[2,88]),{78:[1,2009],83:[1,2008]},t(gs,[2,90]),t(gs,[2,91],{123:660,360:672,81:[1,2010],109:qe,121:Ge,124:ze,125:Ve,132:Ye,133:ri,142:Xe,145:Qe,147:Je,148:Ze,149:tr,150:er,151:rr,163:nr,179:ir,180:or,188:sr,189:ar,344:lr,345:ur,346:cr,348:hr,349:dr,350:pr,351:fr,352:gr,353:mr,354:yr,355:_r,356:vr,357:xr,358:br,359:Tr,363:Er,364:Or,365:Sr,366:Nr}),{78:Zo,83:[1,2011]},t(ts,[2,185]),t(ts,[2,187]),t(Zn,[2,586]),t(Zn,[2,554]),t(Zn,[2,556]),{330:[1,2012],378:[1,2013]},t(Zn,[2,559]),{418:[1,2014]},t(Zn,[2,555]),t(Zn,[2,588]),t(fa,[2,242]),{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2015},{78:Ca,83:[1,2016]},t(gs,[2,563]),t(gs,[2,564]),{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1325,120:159,122:163,129:2018,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,263:1324,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{78:Ca,83:[1,2019]},{82:Yi,152:_t,153:1056,154:ye,161:bt,190:St,210:1057,335:Xt,376:2020,456:204,457:te,461:ee},{379:[1,2021]},t(ys,[2,752]),t(ys,[2,754]),t(Go,[2,87]),{83:[2,86]},{2:r,3:180,4:n,5:i,6:s,7:a,8:l,9:u,60:175,82:ft,104:1984,114:2022,120:159,122:163,140:gt,141:mt,146:yt,152:_t,153:171,154:vt,158:xt,161:bt,163:Tt,165:nt,167:178,188:Et,189:Ot,190:St,205:161,209:157,210:165,211:166,229:Nt,266:At,267:wt,280:160,281:Rt,282:156,283:158,284:162,285:164,286:167,287:168,288:169,289:172,290:173,292:Ct,293:Lt,294:x,298:It,299:kt,301:Dt,304:Pt,313:Mt,314:jt,315:Kt,316:Ut,317:Ft,318:$t,319:Ht,320:Bt,322:ot,323:st,324:at,325:lt,326:ut,327:qt,328:Gt,329:zt,330:Vt,331:Yt,332:Wt,335:Xt,336:Qt,345:Jt,350:Zt,456:204,457:te,461:ee},{2:r,3:2023,4:n,5:i,6:s,7:a,8:l,9:u},{83:[1,2024]},t(Zn,[2,557]),t(Zn,[2,558]),t(Zn,[2,560]),{78:Ca,83:[1,2025]},{408:[1,2026]},{2:r,3:2027,4:n,5:i,6:s,7:a,8:l,9:u,141:[1,2028]},{78:Is,83:[1,2029]},t(si,[2,562]),t(ys,[2,756],{78:Uo}),t(ys,[2,758]),t(gs,[2,89]),t(gs,[2,92]),t(Go,[2,1107],{3:1981,110:2030,113:2031,2:r,4:n,5:i,6:s,7:a,8:l,9:u,81:Oa}),t(si,[2,546]),{2:r,3:268,4:n,5:i,6:s,7:a,8:l,9:u,208:2032},t(gs,[2,565]),t(gs,[2,566]),t(si,[2,561]),t(Go,[2,85]),t(Go,[2,1108]),t(La,[2,1193],{409:2033,411:2034,82:[1,2035]}),t(si,xa,{412:1907,413:1908,410:2036,250:ba}),t(La,[2,1194]),{2:r,3:1999,4:n,5:i,6:s,7:a,8:l,9:u,141:Ra,406:2037},t(si,[2,547]),{78:Ca,83:[1,2038]},t(La,[2,548])],defaultActions:{113:[2,10],208:[2,353],209:[2,354],210:[2,355],211:[2,356],212:[2,357],213:[2,358],214:[2,359],215:[2,360],216:[2,361],217:[2,362],225:[2,736],626:[2,1216],688:[2,1177],689:[2,1178],752:[2,737],834:[2,363],835:[2,1125],836:[2,1126],989:[2,467],990:[2,468],991:[2,469],1065:[2,738],1407:[2,1226],1479:[2,739],1506:[2,1170],1514:[2,1112],1578:[2,1224],1605:[2,352],1691:[2,1182],1706:[2,535],1763:[2,1172],1895:[2,1104],1967:[2,1192],1970:[2,1198],2008:[2,86]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[null],i=[],o=this.table,s="",a=0,l=0,u=0,c=2,h=1,d=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(t,f.yy),f.yy.lexer=p,f.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var m=p.yylloc;i.push(m);var y=p.options&&p.options.ranges;function _(t){r.length=r.length-2*t,n.length=n.length-t,i.length=i.length-t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,x,b,T,E,O,S,N,A,w=function(){var t;return"number"!=typeof(t=p.lex()||h)&&(t=e.symbols_[t]||t),t},R={};;){if(b=r[r.length-1],this.defaultActions[b]?T=this.defaultActions[b]:((null===v||typeof v>"u")&&(v=w()),T=o[b]&&o[b][v]),typeof T>"u"||!T.length||!T[0]){var C,L="",I=function(t){for(var e=r.length-1,n=0;;){if(c.toString()in o[t])return n;if(0===t||e<2)return!1;t=r[e-=2],++n}};if(u)x!==h&&(C=I(b));else{for(O in C=I(b),A=[],o[b])this.terminals_[O]&&O>c&&A.push("'"+this.terminals_[O]+"'");L=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(a+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(L,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:m,expected:A,recoverable:!1!==C})}if(3==u){if(v===h||x===h)throw new Error(L||"Parsing halted while starting to recover from another error.");l=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,v=w()}if(!1===C)throw new Error(L||"Parsing halted. No suitable error recovery rule available.");_(C),x=v==c?null:v,v=c,b=r[r.length-1],T=o[b]&&o[b][c],u=3}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(T[0]){case 1:r.push(v),n.push(p.yytext),i.push(p.yylloc),r.push(T[1]),v=null,x?(v=x,x=null):(l=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,u>0&&u--);break;case 2:if(S=this.productions_[T[1]][1],R.$=n[n.length-S],R._$={first_line:i[i.length-(S||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(S||1)].first_column,last_column:i[i.length-1].last_column},y&&(R._$.range=[i[i.length-(S||1)].range[0],i[i.length-1].range[1]]),typeof(E=this.performAction.apply(R,[s,l,a,f.yy,T[1],n,i].concat(d)))<"u")return E;S&&(r=r.slice(0,-1*S*2),n=n.slice(0,-1*S),i=i.slice(0,-1*S)),r.push(this.productions_[T[1]][0]),n.push(R.$),i.push(R._$),N=o[r[r.length-2]][r[r.length-1]],r.push(N);break;case 3:return!0}}return!0}},ka=["A","ABSENT","ABSOLUTE","ACCORDING","ACTION","ADA","ADD","ADMIN","AFTER","ALWAYS","ASC","ASSERTION","ASSIGNMENT","ATTRIBUTE","ATTRIBUTES","BASE64","BEFORE","BERNOULLI","BLOCKED","BOM","BREADTH","C","CASCADE","CATALOG","CATALOG_NAME","CHAIN","CHARACTERISTICS","CHARACTERS","CHARACTER_SET_CATALOG","CHARACTER_SET_NAME","CHARACTER_SET_SCHEMA","CLASS_ORIGIN","CLOSE","COBOL","COLLATION","COLLATION_CATALOG","COLLATION_NAME","COLLATION_SCHEMA","COLUMNS","COLUMN_NAME","COMMAND_FUNCTION","COMMAND_FUNCTION_CODE","COMMITTED","CONDITION_NUMBER","CONNECTION","CONNECTION_NAME","CONSTRAINTS","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONSTRUCTOR","CONTENT","CONTINUE","CONTROL","CURSOR_NAME","DATA","DATETIME_INTERVAL_CODE","DATETIME_INTERVAL_PRECISION","DB","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DEGREE","DELETED","DEPTH","DERIVED","DESC","DESCRIPTOR","DIAGNOSTICS","DISPATCH","DOCUMENT","DOMAIN","DYNAMIC_FUNCTION","DYNAMIC_FUNCTION_CODE","EMPTY","ENCODING","ENFORCED","EXCLUDE","EXCLUDING","EXPRESSION","FILE","FINAL","FIRST","FLAG","FOLLOWING","FORTRAN","FOUND","FS","G","GENERAL","GENERATED","GO","GOTO","GRANTED","HEX","HIERARCHY","ID","IGNORE","IMMEDIATE","IMMEDIATELY","IMPLEMENTATION","INCLUDING","INCREMENT","INDENT","INITIALLY","INPUT","INSERTED","INSTANCE","INSTANTIABLE","INSTEAD","INTEGRITY","INVOKER","ISOLATION","K","KEY","KEY_MEMBER","KEY_TYPE","LAST","LENGTH","LEVEL","LIBRARY","LIMIT","LINK","LOCATION","LOCATOR","M","MAP","MAPPING","MATCHED","MAXVALUE","MESSAGE_LENGTH","MESSAGE_OCTET_LENGTH","MESSAGE_TEXT","MINVALUE","MORE","MUMPS","NAME","NAMES","NAMESPACE","NESTING","NEXT","NFC","NFD","NFKC","NFKD","NIL","NORMALIZED","NULLABLE","NULLS","NUMBER","OBJECT","OCTETS","OFF","OPEN","OPTION","OPTIONS","ORDER","ORDERING","ORDINALITY","OTHERS","OUTPUT","OVERRIDING","P","PAD","PARAMETER_MODE","PARAMETER_NAME","PARAMETER_ORDINAL_POSITION","PARAMETER_SPECIFIC_CATALOG","PARAMETER_SPECIFIC_NAME","PARAMETER_SPECIFIC_SCHEMA","PARTIAL","PASCAL","PASSING","PASSTHROUGH","PATH","PERMISSION","PLACING","PLI","PRECEDING","PRESERVE","PRIOR","PRIVILEGES","PUBLIC","READ","RECOVERY","RELATIVE","REPEATABLE","REQUIRING","RESPECT","RESTART","RESTORE","RESTRICT","RETURNED_CARDINALITY","RETURNED_LENGTH","RETURNED_OCTET_LENGTH","RETURNED_SQLSTATE","RETURNING","ROLE","ROUTINE","ROUTINE_CATALOG","ROUTINE_NAME","ROUTINE_SCHEMA","ROW_COUNT","SCALE","SCHEMA","SCHEMA_NAME","SCOPE_CATALOG","SCOPE_NAME","SCOPE_SCHEMA","SECTION","SECURITY","SELECTIVE","SELF","SEPARATOR","SEQUENCE","SERIALIZABLE","SERVER","SERVER_NAME","SESSION","SETS","SIMPLE","SIZE","SOURCE","SPACE","SPECIFIC_NAME","STANDALONE","STATE","STATEMENT","STRIP","STRUCTURE","STYLE","SUBCLASS_ORIGIN","T","TABLE_NAME","TEMPORARY","TIES","TOKEN","TOP_LEVEL_COUNT","TRANSACTION","TRANSACTIONS_COMMITTED","TRANSACTIONS_ROLLED_BACK","TRANSACTION_ACTIVE","TRANSFORM","TRANSFORMS","TRIGGER_CATALOG","TRIGGER_NAME","TRIGGER_SCHEMA","TYPE","UNBOUNDED","UNCOMMITTED","UNDER","UNLINK","UNNAMED","UNTYPED","URI","USAGE","USER_DEFINED_TYPE_CATALOG","USER_DEFINED_TYPE_CODE","USER_DEFINED_TYPE_NAME","USER_DEFINED_TYPE_SCHEMA","VALID","VERSION","VIEW","WHITESPACE","WORK","WRAPPER","WRITE","XMLDECLARATION","XMLSCHEMA","YES","ZONE"];Ia.parseError=function(t,e){if(!(e.expected&&e.expected.indexOf("'LITERAL'")>-1&&/[a-zA-Z_][a-zA-Z_0-9]*/.test(e.token)&&ka.indexOf(e.token)>-1))throw new SyntaxError(t)};var Da={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;oe[0].length)){if(e=r,n=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:return 294;case 1:return 335;case 2:return 457;case 3:return 332;case 4:case 5:return 5;case 6:case 7:return 329;case 8:case 9:return 141;case 10:return;case 11:break;case 12:return 349;case 13:case 258:return 352;case 14:return e.yytext="VALUE",96;case 15:return e.yytext="VALUE",198;case 16:return e.yytext="ROW",198;case 17:return e.yytext="COLUMN",198;case 18:return e.yytext="MATRIX",198;case 19:return e.yytext="INDEX",198;case 20:return e.yytext="RECORDSET",198;case 21:return e.yytext="TEXT",198;case 22:return e.yytext="SELECT",198;case 23:return 558;case 24:return 418;case 25:return 439;case 26:return 553;case 27:return 319;case 28:case 29:return 297;case 30:return 173;case 31:return 437;case 32:return 179;case 33:return 249;case 34:return 175;case 35:return 216;case 36:return 320;case 37:return 81;case 38:return 455;case 39:case 88:return 268;case 40:return 441;case 41:case 119:return 391;case 42:return 318;case 43:return 552;case 44:return 475;case 45:return 363;case 46:return 480;case 47:return 364;case 48:case 51:case 53:case 55:return 348;case 49:return 128;case 50:case 52:case 54:case 139:return 121;case 56:case 99:case 100:return 546;case 57:return 336;case 58:return 415;case 59:return 299;case 60:return 403;case 61:return 139;case 62:return 8;case 63:return 269;case 64:case 65:return 199;case 66:return 472;case 67:return 402;case 68:return 509;case 69:return 478;case 70:return 301;case 71:return 262;case 72:return 315;case 73:return 295;case 74:return 215;case 75:return 256;case 76:return 292;case 77:case 78:return 293;case 79:return"CURSOR";case 80:case 200:return 442;case 81:return 323;case 82:return 324;case 83:return 325;case 84:return 488;case 85:return 378;case 86:return 372;case 87:return 281;case 89:return 443;case 90:return 194;case 91:return 433;case 92:return 487;case 93:return 144;case 94:return 339;case 95:return 426;case 96:return 343;case 97:return 347;case 98:case 147:return 178;case 101:return 331;case 102:return 18;case 103:return 328;case 104:return 275;case 105:return 266;case 106:return 105;case 107:return 407;case 108:return 192;case 109:return 247;case 110:return 296;case 111:return 346;case 112:return 639;case 113:return 511;case 114:return 252;case 115:return 304;case 116:return 258;case 117:return 259;case 118:return 165;case 120:return 377;case 121:return 365;case 122:return 109;case 123:return 202;case 124:return 223;case 125:return 244;case 126:return 554;case 127:return 373;case 128:return 229;case 129:return 177;case 130:return 326;case 131:return 207;case 132:return 479;case 133:return 243;case 134:return 6;case 135:return 267;case 136:return"LET";case 137:return 481;case 138:return 245;case 140:return 271;case 141:return 499;case 142:return 200;case 143:return 317;case 144:return 427;case 145:return 316;case 146:return 492;case 148:return 440;case 149:return 242;case 150:return 681;case 151:return 298;case 152:return 270;case 153:return 417;case 154:return 163;case 155:return 330;case 156:return 265;case 157:return 471;case 158:return 250;case 159:return 452;case 160:return 138;case 161:return 273;case 162:return 7;case 163:return 453;case 164:return 180;case 165:return 127;case 166:return 217;case 167:return 503;case 168:return 307;case 169:return 181;case 170:return 311;case 171:return 799;case 172:return 103;case 173:return 20;case 174:return 404;case 175:return 482;case 176:return 713;case 177:return 19;case 178:return 451;case 179:return 203;case 180:return"REDUCE";case 181:return 80;case 182:return 408;case 183:return 344;case 184:return 555;case 185:return 717;case 186:return 116;case 187:return 438;case 188:return 184;case 189:return 322;case 190:return 416;case 191:return 483;case 192:return 722;case 193:case 194:return 182;case 195:return 246;case 196:return 474;case 197:return 255;case 198:return 159;case 199:return 800;case 201:return 96;case 202:return 248;case 203:return 9;case 204:case 205:return 155;case 206:return 446;case 207:return 367;case 208:return 454;case 209:return"STRATEGY";case 210:return"STORE";case 211:return 313;case 212:return 314;case 213:case 214:return 388;case 215:return 502;case 216:case 217:return 392;case 218:return 201;case 219:return 342;case 220:return"TIMEOUT";case 221:return 157;case 222:return 204;case 223:case 224:case 242:return 473;case 225:return 547;case 226:return 327;case 227:return 491;case 228:return 171;case 229:return 196;case 230:return 108;case 231:return 368;case 232:return 445;case 233:return 251;case 234:return 158;case 235:return 379;case 236:return 143;case 237:return 447;case 238:return 341;case 239:return 137;case 240:return 477;case 241:return 76;case 243:return 4;case 244:return 140;case 245:return 124;case 246:return 146;case 247:return 188;case 248:return 350;case 249:return 189;case 250:return 142;case 251:return 147;case 252:return 359;case 253:return 356;case 254:return 358;case 255:return 355;case 256:return 353;case 257:return 351;case 259:return 151;case 260:return 150;case 261:return 148;case 262:return 354;case 263:case 266:return 357;case 264:return 149;case 265:return 133;case 267:return 82;case 268:return 83;case 269:return 461;case 270:return 463;case 271:return 333;case 272:return 466;case 273:return 545;case 274:return 131;case 275:return 125;case 276:return 78;case 277:return 366;case 278:return 161;case 279:return 798;case 280:return 152;case 281:return 190;case 282:return 145;case 283:return 132;case 284:return 345;case 285:return 154;case 286:return 14;case 287:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/i,/^(?:ARRAY\[)/i,/^(?:\[([^\]'])*?\])/i,/^(?:`([^\`'])*?`)/i,/^(?:N(['](\\.|[^']|\\')*?['])+)/i,/^(?:X(['](\\.|[^']|\\')*?['])+)/i,/^(?:(['](\\.|[^']|\\')*?['])+)/i,/^(?:(["](\\.|[^"]|\\")*?["])+)/i,/^(?:--(.*?)($|\r\n|\r|\n))/i,/^(?:\s+)/i,/^(?:\|\|)/i,/^(?:\|)/i,/^(?:VALUE\s+OF\s+SEARCH\b)/i,/^(?:VALUE\s+OF\s+SELECT\b)/i,/^(?:ROW\s+OF\s+SELECT\b)/i,/^(?:COLUMN\s+OF\s+SELECT\b)/i,/^(?:MATRIX\s+OF\s+SELECT\b)/i,/^(?:INDEX\s+OF\s+SELECT\b)/i,/^(?:RECORDSET\s+OF\s+SELECT\b)/i,/^(?:TEXT\s+OF\s+SELECT\b)/i,/^(?:SELECT\b)/i,/^(?:ABSOLUTE\b)/i,/^(?:ACTION\b)/i,/^(?:ADD\b)/i,/^(?:AFTER\b)/i,/^(?:AGGR\b)/i,/^(?:AGGREGATE\b)/i,/^(?:AGGREGATOR\b)/i,/^(?:ALL\b)/i,/^(?:ALTER\b)/i,/^(?:AND\b)/i,/^(?:ANTI\b)/i,/^(?:ANY\b)/i,/^(?:APPLY\b)/i,/^(?:ARRAY\b)/i,/^(?:AS\b)/i,/^(?:ASSERT\b)/i,/^(?:ASC\b)/i,/^(?:ATTACH\b)/i,/^(?:AUTO(_)?INCREMENT\b)/i,/^(?:AVG\b)/i,/^(?:BEFORE\b)/i,/^(?:BEGIN\b)/i,/^(?:BETWEEN\b)/i,/^(?:BREAK\b)/i,/^(?:NOT\s+BETWEEN\b)/i,/^(?:NOT\s+LIKE\b)/i,/^(?:BY\b)/i,/^(?:~~\*)/i,/^(?:!~~\*)/i,/^(?:~~)/i,/^(?:!~~)/i,/^(?:ILIKE\b)/i,/^(?:NOT\s+ILIKE\b)/i,/^(?:CALL\b)/i,/^(?:CASE\b)/i,/^(?:CASCADE\b)/i,/^(?:CAST\b)/i,/^(?:CHECK\b)/i,/^(?:CLASS\b)/i,/^(?:CLOSE\b)/i,/^(?:COLLATE\b)/i,/^(?:COLUMN\b)/i,/^(?:COLUMNS\b)/i,/^(?:COMMIT\b)/i,/^(?:CONSTRAINT\b)/i,/^(?:CONTENT\b)/i,/^(?:CONTINUE\b)/i,/^(?:CONVERT\b)/i,/^(?:CORRESPONDING\b)/i,/^(?:COUNT\b)/i,/^(?:CREATE\b)/i,/^(?:CROSS\b)/i,/^(?:CUBE\b)/i,/^(?:CURRENT_TIMESTAMP\b)/i,/^(?:CURRENT_DATE\b)/i,/^(?:CURDATE\b)/i,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\b)/i,/^(?:TIMESTAMPDIFF\b)/i,/^(?:DECLARE\b)/i,/^(?:DEFAULT\b)/i,/^(?:DELETE\b)/i,/^(?:DELETED\b)/i,/^(?:DESC\b)/i,/^(?:DETACH\b)/i,/^(?:DISTINCT\b)/i,/^(?:DROP\b)/i,/^(?:ECHO\b)/i,/^(?:EDGE\b)/i,/^(?:END\b)/i,/^(?:ENUM\b)/i,/^(?:ELSE\b)/i,/^(?:ESCAPE\b)/i,/^(?:EXCEPT\b)/i,/^(?:EXEC\b)/i,/^(?:EXECUTE\b)/i,/^(?:EXISTS\b)/i,/^(?:EXPLAIN\b)/i,/^(?:FALSE\b)/i,/^(?:FETCH\b)/i,/^(?:FIRST\b)/i,/^(?:FOR\b)/i,/^(?:FOREIGN\b)/i,/^(?:FROM\b)/i,/^(?:FULL\b)/i,/^(?:FUNCTION\b)/i,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUP_CONCAT\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\b)/i,/^(?:IGNORE\b)/i,/^(?:IS\b)/i,/^(?:IN\b)/i,/^(?:INDEX\b)/i,/^(?:INDEXED\b)/i,/^(?:INNER\b)/i,/^(?:INSTEAD\b)/i,/^(?:INSERT\b)/i,/^(?:INSERTED\b)/i,/^(?:INTERSECT\b)/i,/^(?:INTERVAL\b)/i,/^(?:INTO\b)/i,/^(?:ITERATE\b)/i,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\b)/i,/^(?:LEAVE\b)/i,/^(?:LEFT\b)/i,/^(?:LIKE\b)/i,/^(?:LIMIT\b)/i,/^(?:MATCHED\b)/i,/^(?:MATRIX\b)/i,/^(?:MAX\s*(?=\())/i,/^(?:MAX\s*(?=(,|\))))/i,/^(?:MIN\s*(?=\())/i,/^(?:MERGE\b)/i,/^(?:MINUS\b)/i,/^(?:MODIFY\b)/i,/^(?:NATURAL\b)/i,/^(?:NEXT\b)/i,/^(?:NEW\b)/i,/^(?:NOCASE\b)/i,/^(?:NO\b)/i,/^(?:NOT\b)/i,/^(?:NULL\b)/i,/^(?:NULLS\b)/i,/^(?:OFF\b)/i,/^(?:ON\b)/i,/^(?:ONLY\b)/i,/^(?:OF\b)/i,/^(?:OFFSET\b)/i,/^(?:OPEN\b)/i,/^(?:OPTION\b)/i,/^(?:OR\b)/i,/^(?:ORDER\b)/i,/^(?:OUTER\b)/i,/^(?:OUTPUT\b)/i,/^(?:OVER\b)/i,/^(?:PATH\b)/i,/^(?:PARTITION\b)/i,/^(?:PERCENT\b)/i,/^(?:PIVOT\b)/i,/^(?:PLAN\b)/i,/^(?:PRIMARY\b)/i,/^(?:PRINT\b)/i,/^(?:PRIOR\b)/i,/^(?:QUERY\b)/i,/^(?:READ\b)/i,/^(?:RECORDSET\b)/i,/^(?:REDUCE\b)/i,/^(?:RECURSIVE\b)/i,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\b)/i,/^(?:RESTRICT\b)/i,/^(?:REQUIRE\b)/i,/^(?:RESTORE\b)/i,/^(?:RETURN\b)/i,/^(?:RETURNS\b)/i,/^(?:RIGHT\b)/i,/^(?:ROLLBACK\b)/i,/^(?:ROLLUP\b)/i,/^(?:ROW\b)/i,/^(?:ROWS\b)/i,/^(?:SCHEMA(S)?)/i,/^(?:SEARCH\b)/i,/^(?:SEMI\b)/i,/^(?:SEPARATOR\b)/i,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\b)/i,/^(?:TOTAL\b)/i,/^(?:TABLE\b)/i,/^(?:TABLES\b)/i,/^(?:TARGET\b)/i,/^(?:TEMP\b)/i,/^(?:TEMPORARY\b)/i,/^(?:TEXTSTRING\b)/i,/^(?:THEN\b)/i,/^(?:TIMEOUT\b)/i,/^(?:TO\b)/i,/^(?:TOP\b)/i,/^(?:TRAN\b)/i,/^(?:TRANSACTION\b)/i,/^(?:TRIGGER\b)/i,/^(?:TRUE\b)/i,/^(?:TRUNCATE\b)/i,/^(?:UNION\b)/i,/^(?:UNIQUE\b)/i,/^(?:UNPIVOT\b)/i,/^(?:UPDATE\b)/i,/^(?:USE\b)/i,/^(?:USING\b)/i,/^(?:VALUE\b)/i,/^(?:VALUES\b)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:[0-9]*[a-zA-Z_]+[a-zA-Z_0-9]*)/i,/^(?:(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?(?![a-zA-Z_0-9]))/i,/^(?:->)/i,/^(?:#)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:!===)/i,/^(?:===)/i,/^(?:!==)/i,/^(?:==)/i,/^(?:>=)/i,/^(?:&)/i,/^(?:\|)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:<>)/i,/^(?:<)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\{)/i,/^(?:\})/i,/^(?:\])/i,/^(?::-)/i,/^(?:\?-)/i,/^(?:\.\.)/i,/^(?:\.)/i,/^(?:,)/i,/^(?:::)/i,/^(?::)/i,/^(?:;)/i,/^(?:\$)/i,/^(?:\?)/i,/^(?:!)/i,/^(?:\^)/i,/^(?:~)/i,/^(?:@)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287],inclusive:!0}}};function Pa(){this.yy={}}return Ia.lexer=Da,Pa.prototype=Ia,Ia.Parser=Pa,new Pa}();typeof t<"u"&&(t.parser=a,t.Parser=a.Parser,t.parse=function(){return a.parse.apply(a,arguments)},t.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var r=null.readFileSync(null.normalize(e[1]),"utf8");return t.parser.parse(r)},typeof e<"u"&&s.main===e&&t.main(process.argv.slice(1))),o.prettyflag=!1,o.pretty=function(t,e){var r=o.prettyflag;o.prettyflag=!e;var n=o.parse(t).toString();return o.prettyflag=r,n};var l=o.utils={},u=function(t){return"(y="+t+",y===y?y:undefined)"},h=function(t,e){return"(y="+t+',typeof y=="undefined"?undefined:'+e+")"};function d(){return!0}var p=l.escapeq=function(t){return(""+t).replace(/["'\\\n\r\u2028\u2029]/g,(function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}}))},f=l.undoubleq=function(t){return t.replace(/(\')/g,"''")},g=l.doubleq=function(t){return t.replace(/(\'\')/g,"\\'")};l.doubleqq=function(t){return t.replace(/'/g,"\\'")};var y=function(t){return"\ufeff"===t[0]&&(t=t.substr(1)),t};l.global=typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:Function("return this")(),l.isNativeFunction=function(t){return"function"==typeof t&&!!~t.toString().indexOf("[native code]")},l.isWebWorker=function(){try{var t=l.global.importScripts;return l.isNativeFunction(t)}catch{return!1}}(),l.isNode=function(){try{return!(typeof process>"u"||!process.versions||!process.versions.node)}catch{return!1}}(),l.isBrowser=function(){try{return l.isNativeFunction(l.global.location.reload)}catch{return!1}}(),l.isBrowserify=l.isBrowser&&typeof process<"u"&&process.browser,l.isRequireJS=l.isBrowser&&"function"==typeof s.specified,l.isMeteor=typeof Meteor<"u"&&Meteor.release,l.isMeteorClient=l.isMeteorClient=l.isMeteor&&Meteor.isClient,l.isMeteorServer=l.isMeteor&&Meteor.isServer,l.isCordova="object"==typeof cordova,l.isReactNative=!1,l.hasIndexedDB=!!l.global.indexedDB,l.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)};let _=l.loadFile=function(t,e,r,n){var i;if(!l.isNode&&!l.isMeteorServer){if(l.isCordova)return void l.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,(function(e){e.root.getFile(t,{create:!1},(function(t){t.file((function(t){var e=new FileReader;e.onloadend=function(t){r(y(this.result))},e.readAsText(t)}))}))}));if("string"==typeof t)return"#"===t.substr(0,1)&&typeof document<"u"?(i=document.querySelector(t).textContent,void r(i)):void x(t,(t=>r(y(t))),n,e);if(t instanceof Event){var o=t.target.files,s=new FileReader;o[0].name,s.onload=function(t){var e=t.target.result;r(y(e))},s.readAsText(o[0])}x(t,(t=>r(y(t))),n,e)}},v=typeof fetch<"u"?fetch:null;async function x(t,e,r,n){return n?b(t,e,r):await b(t,e,r)}function b(t,e,r){return v(t).then((t=>t.text())).then((t=>{e(t)})).catch((t=>{if(r)return r(t);throw console.error(t),t}))}l.loadBinaryFile=function(t,e,r,n=(t=>{throw t})){if(!l.isNode&&!l.isMeteorServer)if("string"==typeof t){var i=new XMLHttpRequest;i.open("GET",t,e),i.responseType="arraybuffer",i.onload=function(){for(var t=new Uint8Array(i.response),e=[],n=0;n701){let r=((t-26)/676|0)-1;e=String.fromCharCode(65+r%26),t%=676}var r=String.fromCharCode(65+t%26);return t>=26&&(t=(t/26|0)-1,r=String.fromCharCode(65+t%26)+r,t>26&&(t=(t/26|0)-1,r=String.fromCharCode(65+t%26)+r)),e+r},l.xlscn=function(t){var e=t.charCodeAt(0)-65;return t.length>1&&(e=26*(e+1)+t.charCodeAt(1)-65,t.length>2&&(e=26*(e+1)+t.charCodeAt(2)-65)),e},l.domEmptyChildren=function(t){for(var e=t.childNodes.length;e--;)t.removeChild(t.lastChild)};var P={};l.like=function(t,e,r=""){if(!P[t]){for(var n="^",i=0;i-1?n+="\\"+o:n+=o,i++}n+="$",P[t]=RegExp(n,"i")}return(""+(e??"")).search(P[t])>-1},l.glob=function(t,e){for(var r=0,n="^";r-1?n+="\\"+i:n+=i,r++}return n+="$",(""+(t||"")).toUpperCase().search(RegExp(n.toUpperCase()))>-1},l.findAlaSQLPath=function(){if(l.isWebWorker)return"";if(l.isMeteorClient)return"/packages/dist/";if(l.isMeteorServer)return"assets/packages/dist/";if(l.isNode)return"";if(l.isBrowser)for(var t=document.getElementsByTagName("script"),e=0;e0&&t==+t?+t:t;if(j.str.test(e))return String(t);if(j.int.test(e)){var r=parseInt(t,10);return isNaN(r)?t:r}if(j.num.test(e)){var n=parseFloat(t);return isNaN(n)?t:n}return j.bool.test(e)?"string"==typeof t?/^(true|1|yes)$/i.test(t):!!t:j.date.test(e)?t instanceof Date?t:new Date(t):t},o.path=o.utils.findAlaSQLPath(),o.utils.uncomment=function(t){for(var e,r=!1,n=!1,i=!1,o=0,s=(t=("__"+t+"__").split("")).length;oo.MAXSQLCACHESIZE&&s.resetSqlCache(),s.sqlCacheSize++,s.sqlCache[a]=c),l=o.res=c(r,n,i),K(c),l}return o.precompile(u.statements[0],o.useid,r),o.res=u.statements[0].execute(t,r,n,i)}return n?void o.adrun(t,u,r,n,i):o.drun(t,u,r,n,i)}},o.drun=function(t,e,r,n,i){var s=o.useid;s!==t&&o.use(t);for(var a=[],l=0,u=e.statements.length;l"u")throw new Error("Please include a Promise/A+ library");if("string"==typeof t)return U(t,e);if(!l.isArray(t)||t.length<1||typeof e<"u")throw new Error("Error in .promise parameters");return function(t){if(!(t.length<1)){for(var e,r,n,i=[],o=0;o{var r=e.resolve([]);return t.forEach((t=>{r=r.then((e=>U(t.sql,t.params,t.i,t.length).then((t=>[...e,t]))))})),r})(i,l.global.Promise)}}(t)};var F=o.Database=function(t){var e=this;if(e===o)if(t){if(e=o.databases[t],o.databases[t]=e,!e)throw new Error(`Database ${t} not found`)}else e=o.databases.alasql,o.options.tsql&&(o.databases.tempdb=o.databases.alasql);return t||(t="db"+o.databasenum++),e.databaseid=t,o.databases[t]=e,e.dbversion=0,e.tables={},e.views={},e.triggers={},e.indices={},e.objects={},e.counter=0,e.resetSqlCache(),e};F.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0,this.astCache={}},F.prototype.exec=function(t,e,r){return o.dexec(this.databaseid,t,e,r)},F.prototype.autoval=function(t,e,r){return o.autoval(t,e,r,this.databaseid)},F.prototype.transaction=function(t){return t(new o.Transaction(this.databaseid))};class ${constructor(t){m(this,"transactionid",Date.now()),m(this,"committed",!1),m(this,"bank"),this.databaseid=t,this.dbversion=o.databases[t].dbversion,this.bank=JSON.stringify(o.databases[t])}commit(){this.committed=!0,o.databases[this.databaseid].dbversion=Date.now(),delete this.bank}rollback(){if(this.committed)throw new Error("Transaction already commited");o.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank}exec(t,e,r){return o.dexec(this.databaseid,t,e,r)}}$.prototype.executeSQL=$.prototype.exec,o.Transaction=$;var H=o.Table=function(t){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checks=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Object.assign(this,t)};H.prototype.indexColumns=function(){var t=this;t.xcolumns={},t.columns.forEach((function(e){t.xcolumns[e.columnid]=e}))},o.View=class{constructor(t){this.columns=[],this.xcolumns={},this.query=[],Object.assign(this,t)}};class B{constructor(t){this.alasql=o,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Object.assign(this,t)}}o.Recordset=class{constructor(t){Object.assign(this,t)}},o.Query=B;var q={extend:Object.assign,casesensitive:o.options.casesensitive,Base:class{constructor(t){Object.assign(this,t)}toString(){}toType(){}toJS(){}exec(){}compile(){}},compileParamValue:function(t,e,r,n,i,s){return function(a,l){var u=a[t];if(!Array.isArray(u)){var c=new Error(e+" requires an array for parameter "+t);if(l)return l(null,c);throw c}var h="__p"+t+"_"+Date.now(),d=o.databases[n||"alasql"];d.tables[h]=new o.Table({tableid:h}),d.tables[h].data=u;try{var p=i[s];i[s]=new q.Table({tableid:h,databaseid:d.databaseid});var f=i.compile(n);i[s]=p;var g=f(a,l);if(r){var m=d.tables[h].data;u.length=0,Array.prototype.push.apply(u,m)}return g}catch(t){if(l)return l(null,t);throw t}finally{delete d.tables[h]}}}};a.yy=o.yy=q,q.Statements=class{constructor(t){Object.assign(this,t)}toString(){return this.statements.map((t=>t.toString())).join("; ")}compile(t){let e=this.statements.map((e=>e.compile(t)));return 1===e.length?e[0]:(t,r)=>{let n=e.map((e=>e(t)));return r&&r(n),n}}},q.Search=(i=class{constructor(t){((t,e,r)=>{e.has(t)?c("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,void 0)})(this,r),Object.assign(this,t)}toString(){let t="SEARCH ";return this.selectors&&(t+=this.selectors.toString()),this.from&&(t+="FROM "+this.from.toString()),t}toJS(t){return`this.queriesfn[${this.queriesidx-1}](this.params,null,${t})`}compile(t){var e=t,i=(t,o)=>{var s;return((t,e,r)=>(((t,e,r)=>{e.has(t)||c("Cannot access private method")})(t,e),r))(this,r,n).call(this,e,t,(function(t){s=X(i.query,t),o&&(s=o(s))})),s};return i.query={},i}},r=new WeakSet,n=function(t,e,r){var n,i,s={},a=R(this.selectors);if(void 0!==a&&a.length>0&&(a&&a[0]&&"PROP"===a[0].srchid&&a[0].args&&a[0].args[0]&&("XML"===a[0].args[0].toUpperCase()?(s.mode="XML",a.shift()):"HTML"===a[0].args[0].toUpperCase()?(s.mode="HTML",a.shift()):"JSON"===a[0].args[0].toUpperCase()&&(s.mode="JSON",a.shift())),a.length>0&&"VALUE"===a[0].srchid&&(s.value=!0,a.shift())),this.from instanceof q.Column){var l=this.from.databaseid||t;i=o.databases[l].tables[this.from.columnid].data}else if(this.from instanceof q.FuncValue&&o.from[this.from.funcid.toUpperCase()]){var u=this.from.args.map((function(t){var r=t.toJS();return new Function("params,alasql","var y;return "+r).bind(this)(e,o)}));i=o.from[this.from.funcid.toUpperCase()].apply(this,u)}else if(typeof this.from>"u")i=o.databases[t].objects;else{var c=new Function("params,alasql","var y;return "+this.from.toJS());i=c(e,o),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&i instanceof Mongo.Collection&&(i=i.find().fetch())}if(n=void 0!==a&&a.length>0?function t(r,n,a){var l=r[n],u=o.options.loopbreak||1e5;if(l.selid){if("PATH"===l.selid){for(var c=[{node:a,stack:[]}],h={},d=o.databases[o.useid].objects;c.length>0;){var p=c.shift(),f=p.node,g=p.stack;if((C=t(l.args,0,f)).length>0){if(n+1+1>r.length)return g;var m=[];return g&&g.length>0&&g.forEach((function(e){m=m.concat(t(r,n+1,e))})),m}typeof h[f.$id]<"u"||(h[f.$id]=!0,f.$out&&f.$out.length>0&&f.$out.forEach((function(t){var e=d[t],r=g.concat(e);r.push(d[e.$out[0]]),c.push({node:d[e.$out[0]],stack:r})})))}return[]}if("NOT"===l.selid)return(_=t(l.args,0,a)).length>0?[]:n+1+1>r.length?[a]:t(r,n+1,a);if("DISTINCT"===l.selid){if(0===(_=typeof l.args>"u"||0===l.args.length?L(a):t(l.args,0,a)).length)return[];var y=L(_);return n+1+1>r.length?y:t(r,n+1,y)}if("AND"===l.selid)return y=!0,l.args.forEach((function(e){y=y&&t(e,0,a).length>0})),y?n+1+1>r.length?[a]:t(r,n+1,a):[];if("OR"===l.selid)return y=!1,l.args.forEach((function(e){y=y||t(e,0,a).length>0})),y?n+1+1>r.length?[a]:t(r,n+1,a):[];if("ALL"===l.selid)return 0===(_=t(l.args[0],0,a)).length?[]:n+1+1>r.length?_:t(r,n+1,_);if("ANY"===l.selid)return 0===(_=t(l.args[0],0,a)).length?[]:n+1+1>r.length?[_[0]]:t(r,n+1,[_[0]]);if("UNIONALL"===l.selid){var _=[];return l.args.forEach((function(e){_=_.concat(t(e,0,a))})),0===_.length?[]:n+1+1>r.length?_:t(r,n+1,_)}if("UNION"===l.selid){_=[];return l.args.forEach((function(e){_=_.concat(t(e,0,a))})),0===(_=L(_)).length?[]:n+1+1>r.length?_:t(r,n+1,_)}if("IF"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:n+1+1>r.length?[a]:t(r,n+1,a);if("REPEAT"===l.selid){var v,x,b=l.args[0].value;x=l.args[1]?l.args[1].value:b,l.args[2]&&(v=l.args[2].variable);var T=[];if(0===b&&(n+1+1>r.length?T=[a]:(v&&(o.vars[v]=0),T=T.concat(t(r,n+1,a)))),x>0)for(var E=[{value:a,lvl:1}],O=0;E.length>0;){_=E[0];if(E.shift(),_.lvl<=x){v&&(o.vars[v]=_.lvl);var S=t(l.sels,0,_.value);S.forEach((function(t){E.push({value:t,lvl:_.lvl+1})})),_.lvl>=b&&(n+1+1>r.length?T=T.concat(S):S.forEach((function(e){T=T.concat(t(r,n+1,e))})))}if(++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O)}return T}if("OF"===l.selid){if(n+1+1>r.length)return[a];var N=[];return Object.keys(a).forEach((function(e){o.vars[l.args[0].variable]=e,N=N.concat(t(r,n+1,a[e]))})),N}if("TO"===l.selid){var A=o.vars[l.args[0]],w=[];return(w=void 0!==A?A.slice(0):[]).push(a),n+1+1>r.length?[a]:(o.vars[l.args[0]]=w,N=t(r,n+1,a),o.vars[l.args[0]]=A,N)}if("ARRAY"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("SUM"===l.selid){if(!((_=t(l.args,0,a)).length>0))return[];var R=_.reduce((function(t,e){return t+e}),0);return n+1+1>r.length?[R]:t(r,n+1,R)}if("AVG"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_.reduce((function(t,e){return t+e}),0)/_.length,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("COUNT"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_.length,n+1+1>r.length?[R]:t(r,n+1,R)):[];if("FIRST"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_[0],n+1+1>r.length?[R]:t(r,n+1,R)):[];if("LAST"===l.selid)return(_=t(l.args,0,a)).length>0?(R=_[_.length-1],n+1+1>r.length?[R]:t(r,n+1,R)):[];if("MIN"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:(R=_.reduce((function(t,e){return Math.min(t,e)}),1/0),n+1+1>r.length?[R]:t(r,n+1,R));if("MAX"===l.selid)return 0===(_=t(l.args,0,a)).length?[]:(R=_.reduce((function(t,e){return Math.max(t,e)}),-1/0),n+1+1>r.length?[R]:t(r,n+1,R));if("PLUS"===l.selid){for(T=[],E=t(l.args,0,a).slice(),n+1+1>r.length?T=T.concat(E):E.forEach((function(e){T=T.concat(t(r,n+1,e))})),O=0;E.length>0;)if(_=E.shift(),_=t(l.args,0,_),E=E.concat(_),n+1+1>r.length?T=T.concat(_):_.forEach((function(e){var i=t(r,n+1,e);T=T.concat(i)})),++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O);return T}if("STAR"===l.selid){for(T=[],T=t(r,n+1,a),E=t(l.args,0,a).slice(),n+1+1>r.length?T=T.concat(E):E.forEach((function(e){T=T.concat(t(r,n+1,e))})),O=0;E.length>0;)if(_=E[0],E.shift(),_=t(l.args,0,_),E=E.concat(_),n+1+1<=r.length&&_.forEach((function(e){T=T.concat(t(r,n+1,e))})),++O>u)throw new Error("Infinite loop brake. Number of iterations = "+O);return T}if("QUESTION"===l.selid)return T=(T=[]).concat(t(r,n+1,a)),_=t(l.args,0,a),n+1+1<=r.length&&_.forEach((function(e){T=T.concat(t(r,n+1,e))})),T;if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>r.length?[a]:t(r,n+1,i);throw new Error("Wrong selector "+l.selid)}if(0===(_=t(l.args,0,a)).length)return[];var C={status:1,values:_}}else{if(!l.srchid)throw new Error("Selector not found");C=o.srch[l.srchid.toUpperCase()](a,l.args,s,e)}if(typeof C>"u"&&(C={status:1,values:[a]}),y=[],1===C.status){var I=C.values;if(n+1+1>r.length)y=I;else for(O=0;O0&&(n=n[0]),r&&(n=r(n));return n},i),o.srch={PROP(t,e,r){if("XML"===r.mode){let r=t.children.filter((t=>t.name.toUpperCase()===e[0].toUpperCase()));return{status:r.length?1:-1,values:r}}return"object"!=typeof t||null===t||"object"!=typeof e||typeof t[e[0]]>"u"?{status:-1,values:[]}:{status:1,values:[t[e[0]]]}},APROP:(t,e)=>"object"!=typeof t||null===t||"object"!=typeof e||typeof t[e[0]]>"u"?{status:1,values:[void 0]}:{status:1,values:[t[e[0]]]},EQ(t,e,r,n){var i=e[0].toJS("x","");return t===new Function("x,alasql,params","return "+i)(t,o,n)?{status:1,values:[t]}:{status:-1,values:[]}},LIKE(t,e,r,n){var i=e[0].toJS("x",""),s=new Function("x,alasql,params","return "+i);return t.toUpperCase().match(new RegExp("^"+s(t,o,n).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[t]}:{status:-1,values:[]}},ATTR(t,e,r){if("XML"===r.mode)return typeof e>"u"?{status:1,values:[t.attributes]}:"object"==typeof t&&"object"==typeof t.attributes&&typeof t.attributes[e[0]]<"u"?{status:1,values:[t.attributes[e[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},CONTENT(t,e,r){if("XML"!==r.mode)throw new Error("ATTR is not using in usual mode");return{status:1,values:[t.content]}},SHARP(t,e){let r=o.databases[o.useid].objects[e[0]];return void 0!==t&&t===r?{status:1,values:[t]}:{status:-1,values:[]}},PARENT(){return console.error("PARENT not implemented",arguments),{status:-1,values:[]}},CHILD:(t,e,r)=>"object"==typeof t?Array.isArray(t)?{status:1,values:t}:"XML"===r.mode?{status:1,values:Object.keys(t.children).map((function(e){return t.children[e]}))}:{status:1,values:Object.keys(t).map((function(e){return t[e]}))}:{status:1,values:[]},KEYS:t=>"object"==typeof t&&null!==t?{status:1,values:Object.keys(t)}:{status:1,values:[]},WHERE(t,e,r,n){var i=e[0].toJS("x","");return new Function("x,alasql,params","return "+i)(t,o,n)?{status:1,values:[t]}:{status:-1,values:[]}},NAME:(t,e)=>t.name===e[0]?{status:1,values:[t]}:{status:-1,values:[]},CLASS:(t,e)=>t.$class==e?{status:1,values:[t]}:{status:-1,values:[]},VERTEX:t=>"VERTEX"===t.$node?{status:1,values:[t]}:{status:-1,values:[]},INSTANCEOF:(t,e)=>t instanceof o.fn[e[0]]?{status:1,values:[t]}:{status:-1,values:[]},EDGE:t=>"EDGE"===t.$node?{status:1,values:[t]}:{status:-1,values:[]},EX(t,e,r,n){var i=e[0].toJS("x","");return{status:1,values:[new Function("x,alasql,params","return "+i)(t,o,n)]}},RETURN(t,e,r,n){var i={};return e&&e.length>0&&e.forEach((function(e){var r=e.toJS("x",""),s=new Function("x,alasql,params","return "+r);typeof e.as>"u"&&(e.as=e.toString()),i[e.as]=s(t,o,n)})),{status:1,values:[i]}},REF:t=>({status:1,values:[o.databases[o.useid].objects[t]]}),OUT:t=>t.$out&&t.$out.length>0?{status:1,values:t.$out.map((function(t){return o.databases[o.useid].objects[t]}))}:{status:-1,values:[]},OUTOUT(t){if(t.$out&&t.$out.length>0){var e=[];return t.$out.forEach((function(t){var r=o.databases[o.useid].objects[t];r&&r.$out&&r.$out.length>0&&r.$out.forEach((function(t){e=e.concat(o.databases[o.useid].objects[t])}))})),{status:1,values:e}}return{status:-1,values:[]}},IN:t=>t.$in&&t.$in.length>0?{status:1,values:t.$in.map((function(t){return o.databases[o.useid].objects[t]}))}:{status:-1,values:[]},ININ(t){if(t.$in&&t.$in.length>0){var e=[];return t.$in.forEach((function(t){var r=o.databases[o.useid].objects[t];r&&r.$in&&r.$in.length>0&&r.$in.forEach((function(t){e=e.concat(o.databases[o.useid].objects[t])}))})),{status:1,values:e}}return{status:-1,values:[]}},AS:(t,e)=>(o.vars[e[0]]=t,{status:1,values:[t]}),AT:(t,e)=>({status:1,values:[o.vars[e[0]]]}),CLONEDEEP:t=>({status:1,values:[R(t)]}),SET(t,e,r,n){var i=e.map((function(t){return"@"===t.method?`alasql.vars[${JSON.stringify(t.variable)}]=`+t.expression.toJS("x",""):"$"===t.method?`params[${JSON.stringify(t.variable)}]=`+t.expression.toJS("x",""):`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");return new Function("x,params,alasql",i)(t,n,o),{status:1,values:[t]}},ROW(t,e,r,n){var i="var y;return [";return i+=e.map((t=>t.toJS("x",""))).join(","),i+="]",{status:1,values:[new Function("x,params,alasql",i)(t,n,o)]}},D3:t=>("VERTEX"!==t.$node&&"EDGE"===t.$node&&(t.source=t.$in[0],t.target=t.$out[0]),{status:1,values:[t]}),ORDERBY:(t,e)=>({status:1,values:t.sort(G(e))})};var G=function(t){if(t){if("function"==typeof t?.[0]?.expression){var e=t[0].expression;return function(t,r){var n=e(t),i=e(r);return n>i?1:n===i?0:-1}}var r="",n="";return t.forEach((function(t){var e="";if(t.expression instanceof q.NumValue&&(t.expression=self.columns[t.expression.value-1]),t.expression instanceof q.Column){var i=t.expression.columnid;o.options.valueof&&(e=".valueOf()"),t.nocase&&(e+=".toUpperCase()"),"_"===i?(r+="if(a"+e+("ASC"===t.direction?">":"<")+"b"+e+")return 1;",r+="if(a"+e+"==b"+e+"){"):r+=`if (\n\t\t\t\t\t\t\t(a[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t\t${"ASC"===t.direction?">":"<"}\n\t\t\t\t\t\t\t(b[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t) return 1;\n\n\t\t\t\t\t\tif(\n\t\t\t\t\t\t\t(a[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t\t==\n\t\t\t\t\t\t\t(b[${JSON.stringify(i)}]||'')${e}\n\t\t\t\t\t\t){\n\t\t\t\t\t\t`}else e=".valueOf()",t.nocase&&(e+=".toUpperCase()"),r+=`\n\t\t\t\t\tif (\n\t\t\t\t\t\t(${t.toJS("a","")} || '')${e}\n\t\t\t\t\t\t${"ASC"===t.direction?">":"<"}\n\t\t\t\t\t\t(${t.toJS("b","")} || '')${e}\n\t\t\t\t\t) return 1;\n\n\t\t\t\t\tif (\n\t\t\t\t\t\t(${t.toJS("a","")} || '')${e} ==\n\t\t\t\t\t\t(${t.toJS("b","")} || '')${e}\n\t\t\t\t\t) {`;n+="}"})),r+="return 0;",r+=n+"return -1",new Function("a,b",r)}};function z(t,e,r){if(e>=0){let n=r.sources[e];n.data=t,"function"==typeof n.data&&(n.getfn=n.data,n.dontcache=n.getfn.dontcache,["OUTER","RIGHT","ANTI"].includes(n.joinmode)&&(n.dontcache=!1),n.data={})}else r.queriesdata[-e-1]=D(t);if(r.sourceslen--,!(r.sourceslen>0))return V(r)}function V(t){var e,r=t.scope;if(Y(t),t.data=[],t.xgroups={},t.groups=[],W(t,r,0),t.groupfn){if(t.data=[],0===t.groups.length&&0===t.allgroups.length){var n={};t.selectGroup.length>0&&t.selectGroup.forEach((function(t){"COUNT"==t.aggregatorid||"SUM"==t.aggregatorid||"TOTAL"==t.aggregatorid?n[t.nick]=0:n[t.nick]=void 0})),t.groups=[n]}if(t.aggrKeys.length>0){var i="";t.aggrKeys.forEach((function(t){var e;e=t.args&&t.args.length>1?Array(t.args.length).fill("undefined").join(",")+",":"undefined,",i+=`\n\t\t\t\tg[${JSON.stringify(t.nick)}] = alasql.aggr[${JSON.stringify(t.funcid)}](${e}g[${JSON.stringify(t.nick)}],3); `}));var s=new Function("g,params,alasql","var y;"+i)}for(var a=0,l=t.groups.length;a0){var x=t.removeKeys;if((e=x.length)>0)for(l=t.data.length,a=0;a0&&(t.columns=t.columns.filter((function(t){var e=!1;return x.forEach((function(r){t.columnid==r&&(e=!0)})),!e})))}if(typeof t.removeLikeKeys<"u"&&t.removeLikeKeys.length>0){var b=t.removeLikeKeys;for(a=0,l=t.data.length;a0&&(t.columns=t.columns.filter((function(t){var e=!1;return b.forEach((function(r){o.utils.like(r,t.columnid)&&(e=!0)})),!e})))}if(t.pivotfn&&t.pivotfn(),t.unpivotfn&&t.unpivotfn(),t.intoallfn){var E=t.intoallfn(t.columns,t.cb,t.params,t.alasql);return E}if(t.intofn){for(l=t.data.length,a=0;a0&&"ix"==c.optimization&&c.onleftfn&&c.onrightfn){if(c.databaseid&&o.databases[c.databaseid].tables[c.tableid]&&(o.databases[c.databaseid].tables[c.tableid].indices||(t.database.tables[c.tableid].indices={}),l=o.databases[c.databaseid].tables[c.tableid].indices[T(c.onrightfns+"`"+c.srcwherefns)],!o.databases[c.databaseid].tables[c.tableid].dirty&&l&&(c.ix=l)),!c.ix){for(c.ix={},n={},i=0,s=c.data.length;(a=c.data[i])||c.getfn&&(a=c.getfn(i))||i=t.sources.length)t.wherefn(e,t.params,o)&&(t.groupfn?t.groupfn(e,t.params,o):t.data.push(t.selectfn(e,t.params,o)));else if(t.sources[r].applyselect){var n=t.sources[r];n.applyselect(t.params,(function(i){if(i.length>0)for(var o=0;o"u")throw new Error("Data source number "+r+" in undefined");let g,m=d.length;for(;(g=d[f])||!p&&n.getfn&&(g=n.getfn(f))||f"u"||"number"==typeof e||"string"==typeof e||"boolean"==typeof e)return e;var r=t.modifier||o.options.modifier,n=t.columns;if(t.dirtyColumns&&e.length>0){for(var i={},s=Math.min(e.length,o.options.columnlookup||10)-1;0<=s;s--)for(var a in e[s])i[a]=!0;var l=Object.keys(i).map((function(t){return{columnid:t}}));if(n&&0!==n.length){var u={};n.forEach((function(t){u[t.columnid]=!0})),l.forEach((function(t){u[t.columnid]||n.push(t)}))}else n=l}else if(typeof n>"u"||0===n.length)if(e.length>0){for(i={},s=Math.min(e.length,o.options.columnlookup||10)-1;0<=s;s--)for(var a in e[s])i[a]=!0;n=Object.keys(i).map((function(t){return{columnid:t}}))}else n=[],t&&t.sources&&t.sources.forEach((t=>{t&&t.columns&&Array.isArray(t.columns)&&(n=n.concat(t.columns))}));switch(r){case"VALUE":if(0===e.length)return;let r=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];return e[0][r];case"ROW":return 0===e.length?void 0:Object.values(e[0]);case"COLUMN":if(0===e.length)return[];let i;i=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];let a=[];s=0;for(var c=e.length;sn.map((e=>t[e.columnid]))));case"INDEX":if(0===e.length)return;let l=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0],u=n&&n.length>1?n[1].columnid:Object.keys(e[0])[1];return e.reduce(((t,e)=>({...t,[e[l]]:e[u]})),{});case"RECORDSET":return new o.Recordset({columns:n,data:e});case"TEXTSTRING":if(0===e.length)return;let h=n&&n.length>0?n[0].columnid:Object.keys(e[0])[0];return e.map((t=>t[h])).join("\n");case"ALASQL_DETAILS":return{data:e,columns:n,length:e.length}}return e}function Q(t,e,r){t.onleftfn||(t.onleftfns=e,t.onrightfns=r,t.onleftfn=new Function("p,params,alasql","var y;return "+e),t.onrightfn=new Function("p,params,alasql","var y;return "+r),t.optimization="ix")}function J(t,e,r){var n="("+e+"=="+r+")";t.srcwherefns=t.srcwherefns?t.srcwherefns+"&&"+n:n}function Z(t){var e=[];return function t(r){if(r){if(r instanceof q.Column)return void(r.tableid&&-1===e.indexOf(r.tableid)&&e.push(r.tableid));r instanceof q.Op&&(t(r.left),t(r.right))}}(t),e}function tt(t){return t.funcid&&"GROUP_CONCAT"===t.funcid.toUpperCase()?`,${void 0!==t.separator?JSON.stringify(t.separator):"undefined"},${t.order&&t.order.length>0&&t.order[0].direction?JSON.stringify(t.order[0].direction):"undefined"}`:""}q.Select=class{constructor(t){Object.assign(this,t)}toString(){var t;return t="",this.explain&&(t+="EXPLAIN "),t+="SELECT ",this.modifier&&(t+=this.modifier+" "),this.distinct&&(t+="DISTINCT "),this.top&&(t+="TOP "+this.top.value+" ",this.percent&&(t+="PERCENT ")),t+=this.columns.map((function(t){var e;return e=t.toString(),typeof t.as<"u"&&(e+=" AS "+t.as),e})).join(", "),this.from&&(t+=" FROM "+this.from.map((function(t){var e;return e=t.toString(),t.as&&(e+=" AS "+t.as),e})).join(",")),this.joins&&(t+=this.joins.map((function(t){var e;if(e=" ",t.joinmode&&(e+=t.joinmode+" "),t.table)e+="JOIN "+t.table.toString();else if(t.select)e+="JOIN ("+t.select.toString()+")";else{if(!(t instanceof o.yy.Apply))throw new Error("Wrong type in JOIN mode");e+=t.toString()}return t.as&&(e+=" AS "+t.as),t.using&&(e+=" USING "+t.using.toString()),t.on&&(e+=" ON "+t.on.toString()),e})).join("")),this.where&&(t+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(t+=" GROUP BY "+this.group.map((function(t){return t.toString()})).join(", ")),this.having&&(t+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(t+=" ORDER BY "+this.order.map((function(t){return t.toString()})).join(", ")),this.limit&&(t+=" LIMIT "+this.limit.value),this.offset&&(t+=" OFFSET "+this.offset.value),this.union&&(t+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(t+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(t+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(t+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),t}toJS(t){return"alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+"))[0]"}compile(t,e){var r=o.databases[t],n=new B;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=r,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,t),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],n.grouprownums=[],n.windowaggrs=[],this.into instanceof q.FuncValue&&"OBJECT"===this.into.funcid.toUpperCase()&&(n.intoObject=!0),this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n,e),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n,e),n.orderColumns=this.orderColumns),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n,e),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(t),!n.orderfn&&this.union.order&&(n.orderfn=this.union.compileOrder(n,e))):this.unionall?(n.unionallfn=this.unionall.compile(t),!n.orderfn&&this.unionall.order&&(n.orderfn=this.unionall.compileOrder(n,e))):this.except?(n.exceptfn=this.except.compile(t),!n.orderfn&&this.except.order&&(n.orderfn=this.except.compileOrder(n,e))):this.intersect&&(n.intersectfn=this.intersect.compile(t),!n.orderfn&&this.intersect.order&&(n.orderfn=this.intersect.compileOrder(n,e))),this.into){if(this.into instanceof q.Table)if(o.options.autocommit&&o.databases[this.into.databaseid||t].engineid)n.intoallfns=`return alasql\n\t\t\t\t\t\t\t\t.engines[${JSON.stringify(o.databases[this.into.databaseid||t].engineid)}]\n\t\t\t\t\t\t\t\t.intoTable(\n\t\t\t\t\t\t\t\t\t${JSON.stringify(this.into.databaseid||t)},\n\t\t\t\t\t\t\t\t\t${JSON.stringify(this.into.tableid)},\n\t\t\t\t\t\t\t\t\tthis.data,\n\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\tcb\n\t\t\t\t\t\t\t\t);`;else{var i=this.into.databaseid||t,s=this.into.tableid;n.intofns=`\n\t\t\t\t\t\tvar db = alasql.databases[${JSON.stringify(i)}];\n\t\t\t\t\t\tvar table = db.tables[${JSON.stringify(s)}];\n\t\t\t\t\t\tvar converted = {};\n\t\t\t\t\t\tfor (var key in r) {\n\t\t\t\t\t\t\tvar colDef = table.xcolumns && table.xcolumns[key];\n\t\t\t\t\t\t\tconverted[key] = alasql.utils.typeConverter(r[key], colDef ? colDef.dbtypeid : null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttable.data.push(converted);\n\t\t\t\t\t`}else if(this.into instanceof q.VarValue)n.intoallfns=`\n\t\t\t\t\talasql.vars[${JSON.stringify(this.into.variable)}]=this.data;\n\t\t\t\t\tres=this.data.length;\n\t\t\t\t\tif(cb) res = cb(res);\n\t\t\t\t\treturn res;\n\t\t\t\t`;else if(this.into instanceof q.FuncValue){var a=this.into.funcid.toUpperCase(),l="return alasql.into["+JSON.stringify(a)+"](";this.into.args&&this.into.args.length>0?(l+=this.into.args[0].toJS()+",",this.into.args.length>1?l+=this.into.args[1].toJS()+",":l+="undefined,"):l+="undefined, undefined,",n.intoallfns=l+"this.data,columns,cb)","OBJECT"===a&&(n.preserveArrayResult=!0)}else this.into instanceof q.ParamValue&&("string"==typeof this.into.param?n.intoallfns=`\n\t\t\t\t\t\tif(!params[${JSON.stringify(this.into.param)}]) params[${JSON.stringify(this.into.param)}]=[];\n\t\t\t\t\t\tparams[${JSON.stringify(this.into.param)}]=this.data;\n\t\t\t\t\t\tres=this.data.length;\n\t\t\t\t\t\tif(cb) res = cb(res);\n\t\t\t\t\t\treturn res;\n\t\t\t\t\t`:n.intofns=`params[${JSON.stringify(this.into.param)}].push(r)`);n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var u=function(t,e,r){n.params=t;var i=function(t,e,r,n,i){t.sourceslen=t.sources.length;let s,a=t.sourceslen;if(t.query=t,t.A=void 0,t.B=void 0,t.cb=r,t.oldscope=e,t.subqueryCache={},t.queriesfn&&(t.sourceslen+=t.queriesfn.length,a+=t.queriesfn.length,t.queriesdata=[],t.queriesfn.forEach((function(e,r){e.query.params=t.params,z([],-r-1,t)}))),t.scope=e?R(e):{},t.sources.forEach((function(e,r){e.query=t;var n=e.datafn(t,t.params,z,r,o);typeof n<"u"&&((t.intofn||t.intoallfn)&&Array.isArray(n)&&!t.preserveArrayResult&&(n=n.length),s=n),e.queriesdata=t.queriesdata})),0==t.sources.length||0===a)try{s=V(t)}catch(t){if(r)return r(null,t);throw t}return s}(n,r,(function(t,r){if(r){if(e)return e(null,r);throw r}if(n.rownums.length>0)for(var i=0,o=t.length;i0)for(s=0,a=n.grouprownums.length;s0?d.partitionColumns:[Object.keys(t[0]||{})[0]];var u=null,c=0;for(i=0,o=t.length;i0)for(s=0,a=n.windowaggrs.length;s0?d.partitionColumns.map((function(e){return t[i][e]})).join("|"):"__all__"]||(p[f]=[]),p[f].push(i);for(var f in p){var g,m=p[f],y=[],_=d.expression&&d.expression.columnid;if("COUNT"!==d.aggregatorid||_&&"*"!==_)for(var v=0;v0?y.reduce((function(t,e){return t+e}),0)/y.length:null;break;case"MAX":g=y.length>0?Math.max.apply(null,y):null;break;case"MIN":g=y.length>0?Math.min.apply(null,y):null}for(v=0;v{if(!t.from)return!1;let r=new Set;t.from.forEach((t=>{t.tableid&&r.add(t.tableid),t.as&&r.add(t.as)}));let n=t=>{if(!t)return!1;if(t instanceof q.Column&&t.tableid&&!r.has(t.tableid))return!0;for(let e of Object.keys(t))if(t[e]&&"object"==typeof t[e]&&n(t[e]))return!0;return!1};return n(t.where)||n(t.columns)})(e),e.queries&&e.queries.length>0&&(n.query.queriesfn=e.queries.map((function(e){var r=e.compile(t.database.databaseid);return r.query.modifier="RECORDSET",r}))),n})))}},q.ExistsValue=class{constructor(t){Object.assign(this,t)}toString(){return"EXISTS("+this.value.toString()+")"}toType(){return"boolean"}toJS(t,e,r){return`!!this.existsfn[${this.existsidx}](params, null, ${t}).data.length`}},o.precompile=function(t,e,r){if(t){if(t.params=r,t.view&&t.select&&t.queries)return void(t.select.queries=t.queries);t.queries&&(t.queriesfn=t.queries.map((function(r){var n=r.compile(e||t.database.databaseid);return n.query.modifier="RECORDSET",n}))),t.exists&&(t.existsfn=t.exists.map((function(r){var n=r.compile(e||t.database.databaseid);return n.query.modifier="RECORDSET",n})))}},q.Select.prototype.compileFrom=function(t){t.sources=[],t.aliases={},this.from&&(this.from.forEach((e=>{let r=e.as||e.tableid;if(e instanceof q.Table)t.aliases[r]={tableid:e.tableid,databaseid:e.databaseid||t.database.databaseid,type:"table"};else if(e instanceof q.Select)t.aliases[r]={type:"subquery"};else if(e instanceof q.Search)t.aliases[r]={type:"subsearch"};else if(e instanceof q.ParamValue)t.aliases[r]={type:"paramvalue"};else if(e instanceof q.FuncValue)t.aliases[r]={type:"funcvalue"};else if(e instanceof q.VarValue)t.aliases[r]={type:"varvalue"};else if(e instanceof q.FromData)t.aliases[r]={type:"fromdata"};else if(e instanceof q.Json)t.aliases[r]={type:"json"};else{if(!e.inserted)throw new Error("Wrong table at FROM");t.aliases[r]={type:"inserted"}}let n={alias:r,databaseid:e.databaseid||t.database.databaseid,tableid:e.tableid,joinmode:"INNER",onmiddlefn:d,srcwherefns:"",srcwherefn:d};if(e instanceof q.Table)n.columns=o.databases[n.databaseid].tables[n.tableid].columns,o.options.autocommit&&o.databases[n.databaseid].engineid&&!o.databases[n.databaseid].tables[n.tableid].view?n.datafn=(t,e,r,i,o)=>o.engines[o.databases[n.databaseid].engineid].fromTable(n.databaseid,n.tableid,r,i,t):o.databases[n.databaseid].tables[n.tableid].view?n.datafn=(t,e,r,i,o)=>{let s=o.databases[n.databaseid].tables[n.tableid];!s.select&&s.viewSelect&&(s.select=s.viewSelect.compile(s.viewDatabaseid));let a=s.select(e);return r&&(a=r(a,i,t)),a}:n.datafn=(t,e,r,i,o)=>{let s=o.databases[n.databaseid].tables[n.tableid].data;return r&&(s=r(s,i,t)),s};else if(e instanceof q.Select)n.subquery=e.compile(t.database.databaseid),typeof n.subquery.query.modifier>"u"&&(n.subquery.query.modifier="RECORDSET"),n.columns=n.subquery.query.columns,n.datafn=(t,e,r,i,o)=>{let s;return n.subquery(t.params,(e=>{s=e.data,r&&(s=r(s,i,t))})),s};else if(e instanceof q.Search)n.subsearch=e,n.columns=[],n.datafn=(t,e,r,i,o)=>{let s;return n.subsearch.execute(t.database.databaseid,t.params,(e=>{s=e,r&&(s=r(s,i,t))})),s};else if(e instanceof q.ParamValue){let t=`var res = alasql.prepareFromData(params['${e.param}']`;e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e.inserted){let t="var res = alasql.prepareFromData(alasql.inserted";e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.Json){let t="var res = alasql.prepareFromData("+e.toJS();e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.VarValue){let t=`var res = alasql.prepareFromData(alasql.vars['${e.variable}']`;e.array&&(t+=",true"),t+=");if(cb)res=cb(res,idx,query);return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else if(e instanceof q.FuncValue){let t="var res=alasql.from["+JSON.stringify(e.funcid.toUpperCase())+"](";e.args&&e.args.length>0?(e.args[0]?t+=e.args[0].toJS("query.oldscope")+",":t+="null,",e.args[1]?t+=e.args[1].toJS("query.oldscope")+",":t+="null,"):t+="null,null,",t+="cb,idx,query); return res",n.datafn=new Function("query,params,cb,idx,alasql",t)}else{if(!(e instanceof q.FromData))throw new Error("Wrong table at FROM");n.datafn=(t,r,n,i,o)=>{let s=e.data;return n&&(s=n(s,i,t)),s}}t.sources.push(n)})),t.defaultTableid=t.sources[0].alias)},o.prepareFromData=function(t,e){let r=t;if("string"==typeof t)r=t.split(/\r?\n/),e&&(r=r.map((t=>[t])));else if(e)r=t.map((t=>[t]));else if("object"==typeof t&&!Array.isArray(t))if(typeof Mongo<"u"&&typeof Mongo.Collection<"u"&&t instanceof Mongo.Collection)r=t.find().fetch();else{r=[];for(let e in t)t.hasOwnProperty(e)&&r.push([e,t[e]])}return r},q.Select.prototype.compileJoins=function(t){this.joins.forEach((e=>{let r,n,i;if("CROSS"===e.joinmode&&(e.joinmode="INNER"),e instanceof q.Apply)return i={alias:e.as,applymode:e.applymode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},i.applyselect=e.select.compile(t.database.databaseid),i.columns=i.applyselect.query.columns,i.datafn=function(t,e,r,n,i){let o;return r&&(o=r(o,n,t)),o},void t.sources.push(i);if(e.table){if(r=e.table,i={alias:e.as||r.tableid,databaseid:r.databaseid||t.database.databaseid,tableid:r.tableid,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},!o.databases[i.databaseid].tables[i.tableid])throw new Error("Table '"+i.tableid+"' is not exists in database '"+i.databaseid+"'");i.columns=o.databases[i.databaseid].tables[i.tableid].columns,o.options.autocommit&&o.databases[i.databaseid].engineid?i.datafn=function(t,e,r,n,o){return o.engines[o.databases[i.databaseid].engineid].fromTable(i.databaseid,i.tableid,r,n,t)}:o.databases[i.databaseid].tables[i.tableid].view?i.datafn=function(t,e,r,n,o){let s=o.databases[i.databaseid].tables[i.tableid].select(e);return r&&(s=r(s,n,t)),s}:i.datafn=function(t,e,r,n,o){let s=o.databases[i.databaseid].tables[i.tableid].data;return r&&(s=r(s,n,t)),s},t.aliases[i.alias]={tableid:r.tableid,databaseid:r.databaseid||t.database.databaseid}}else if(e.select)r=e.select,i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d,columns:[]},i.subquery=r.compile(t.database.databaseid),typeof i.subquery.query.modifier>"u"&&(i.subquery.query.modifier="RECORDSET"),i.columns=i.subquery.query.columns,i.datafn=function(t,e,r,n,o){i.data=i.subquery(t.params,null,r,n).data;let s=i.data;return r&&(s=r(s,n,t)),s},t.aliases[i.alias]={type:"subquery"};else if(e.param)i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d},n="let res=alasql.prepareFromData(params['"+e.param.param+"']",e.array&&(n+=",true"),n+="); if(cb) res=cb(res, idx, query); return res",i.datafn=new Function("query,params,cb,idx, alasql",n),t.aliases[i.alias]={type:"paramvalue"};else if(e.variable)i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d},n="let res=alasql.prepareFromData(alasql.vars['"+e.variable+"']",e.array&&(n+=", true"),n+="); if(cb)res=cb(res, idx, query);return res",i.datafn=new Function("query,params,cb,idx, alasql",n),t.aliases[i.alias]={type:"varvalue"};else if(e.func){i={alias:e.as,joinmode:e.joinmode,onmiddlefn:d,srcwherefns:"",srcwherefn:d};let r="let res=alasql.from["+JSON.stringify(e.func.funcid.toUpperCase())+"](",n=e.func.args;n&&n.length>0?(n[0]?r+=n[0].toJS("query.oldscope")+", ":r+="null, ",n[1]?r+=n[1].toJS("query.oldscope")+", ":r+="null, "):r+="null, null, ",r+="cb, idx, query); return res",i.datafn=new Function("query, params, cb, idx, alasql",r),t.aliases[i.alias]={type:"funcvalue"}}let s=i.alias;if(e.natural){if(e.using||e.on)throw new Error("NATURAL JOIN cannot have USING or ON clauses");if(t.sources.length>0){let r=t.sources[t.sources.length-1],n=o.databases[r.databaseid].tables[r.tableid],s=o.databases[i.databaseid].tables[i.tableid];if(!n||!s)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");{let t=n.columns.map((t=>t.columnid)),r=s.columns.map((t=>t.columnid));e.using=S(t,r).map((t=>({columnid:t})))}}}if(e.using){let r=t.sources[t.sources.length-1];i.onleftfns=e.using.map((t=>"p['"+(r.alias||r.tableid)+"']['"+t.columnid+"']")).join('+"`"+'),i.onleftfn=new Function("p,params,alasql","let y;return "+i.onleftfns),i.onrightfns=e.using.map((t=>"p['"+(i.alias||i.tableid)+"']['"+t.columnid+"']")).join('+"`"+'),i.onrightfn=new Function("p,params,alasql","let y;return "+i.onrightfns),i.optimization="ix"}else if(e.on)if(e.on instanceof q.Op&&"="===e.on.op&&!e.on.allsome){i.optimization="ix";let r="",n="",o="",a=!1,l=e.on.left.toJS("p",t.defaultTableid,t.defcols),u=e.on.right.toJS("p",t.defaultTableid,t.defcols);l.indexOf("p['"+s+"']")>-1&&!(u.indexOf("p['"+s+"']")>-1)?(l.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?n=l:a=!0:!(l.indexOf("p['"+s+"']")>-1)&&u.indexOf("p['"+s+"']")>-1&&(u.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?r=l:a=!0,u.indexOf("p['"+s+"']")>-1&&!(l.indexOf("p['"+s+"']")>-1)?(u.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?n=u:a=!0:!(u.indexOf("p['"+s+"']")>-1)&&l.indexOf("p['"+s+"']")>-1&&(l.match(/p\['.*?'\]/g)||[]).every((t=>t==="p['"+s+"']"))?r=u:a=!0,a&&(n="",r="",o=e.on.toJS("p",t.defaultTableid,t.defcols),i.optimization="no"),i.onleftfns=r,i.onrightfns=n,i.onmiddlefns=o||"true",i.onleftfn=new Function("p,params,alasql","let y;return "+i.onleftfns),i.onrightfn=new Function("p,params,alasql","let y;return "+i.onrightfns),i.onmiddlefn=new Function("p,params,alasql","let y;return "+i.onmiddlefns)}else i.optimization="no",i.onmiddlefns=e.on.toJS("p",t.defaultTableid,t.defcols),i.onmiddlefn=new Function("p,params,alasql","let y;return "+e.on.toJS("p",t.defaultTableid,t.defcols));t.sources.push(i)}))},q.Select.prototype.compileWhere=function(t){if(this.where){if("function"==typeof this.where)return this.where;var e=this.where.toJS("p",t.defaultTableid,t.defcols);return t.wherefns=e,new Function("p,params,alasql","var y;return "+e)}return function(){return!0}},q.Select.prototype.compileWhereJoins=function(t){if(this.where&&!(t.sources.length<=1)&&!t.sources.some((function(t,e){return e>0&&t.onleftfn}))){var e=function(t){var e=[];return function t(r){if(r){if(r.expression)return void t(r.expression);r instanceof q.Op&&("AND"===r.op?(t(r.left),t(r.right)):"="===r.op&&e.push(r))}}(t),e}(this.where),r={};t.sources.forEach((function(t,e){r[t.alias]=e})),e.forEach((function(e){if("="===e.op&&!e.allsome){var n=Z(e.left),i=Z(e.right),o=e.left.toJS("p",t.defaultTableid,t.defcols),s=e.right.toJS("p",t.defaultTableid,t.defcols);if(1===n.length&&1===i.length){var a=n[0],l=i[0];if(void 0===r[a]||void 0===r[l])return;var u=r[a],c=r[l];c>u?Q(t.sources[c],o,s):u>c&&Q(t.sources[u],s,o)}else 1===n.length&&0===i.length?void 0!==r[n[0]]&&J(t.sources[r[n[0]]],o,s):0===n.length&&1===i.length&&void 0!==r[i[0]]&&J(t.sources[r[i[0]]],o,s)}})),t.sources.forEach((function(t){t.srcwherefns&&(t.srcwherefn=new Function("p,params,alasql","var y;return "+t.srcwherefns))}))}},q.Select.prototype.compileGroup=function(t){if(t.sources.length>0)var e=t.sources[0].alias;else e="";var r=t.defcols,n=[[]];this.group&&(n=at(this.group,t));var i=[];n.forEach((function(t){i=E(i,t)})),t.allgroups=i,t.ingroup=[];var o="";return n.forEach((function(n){o+="var g=this.xgroups[";var s=n.map((function(e){var r=e.split("\t")[0],n=e.split("\t")[1];return""===r?"1":(t.ingroup.push(r),n)}));0===s.length&&(s=["''"]),o+=s.join('+"`"+'),o+="];if(!g) {this.groups.push((g=this.xgroups[",o+=s.join('+"`"+'),o+="] = {",o+=n.map((function(t){var e=t.split("\t")[0],r=t.split("\t")[1];return""===e?"":"'"+e+"':"+r+","})).join("");var a=O(i,n);o+=a.map((function(t){return"'"+t.split("\t")[0]+"':null,"})).join("");var l="",u="";typeof t.groupStar<"u"&&(u+="for(var f in p['"+t.groupStar+"']) {g[f]=p['"+t.groupStar+"'][f];};"),o+=t.selectGroup.map((function(n){var i=n.expression.toJS("p",e,r),o=n.nick;let s=t=>t.args[0].toJS("p",e,r);if(n instanceof q.AggrValue){if(n.distinct&&(l+=",g['$$_VALUES_"+o+"']={},g['$$_VALUES_"+o+"']["+i+"]=true"),"SUM"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}':(__alasql_tmp = ${i}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`):`'${o}':(__alasql_tmp = ${i}, (__alasql_tmp instanceof Date) ? undefined : ((__alasql_tmp || typeof __alasql_tmp == 'number') ? __alasql_tmp : undefined)),`;if("TOTAL"===n.aggregatorid){if("funcid"in n.expression){let t=s(n.expression);return`'${o}':(${t}) || typeof ${t} == 'number' ?\n\t\t\t\t\t\t\t${t} : ${t} == 'string' && typeof Number(${t}) == 'number' ? Number(${t}) :\n\t\t\t\t\t\t\ttypeof ${t} == 'boolean' ? Number(${t}) : 0,`}return`'${o}':(${i})|| typeof ${i} == 'number' ?\n\t\t\t\t\t\t\t${i} : ${i} == 'string' && typeof Number(${i}) == 'number' ? Number(${i}) :\n\t\t\t\t\t\t\ttypeof ${i} === 'boolean' ? Number(${i}) : 0,`}if("FIRST"===n.aggregatorid||"LAST"===n.aggregatorid)return"'"+o+"':"+i+",";if("MIN"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`):`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`;if("MAX"===n.aggregatorid)return"funcid"in n.expression?(s(n.expression),`'${o}': (__alasql_tmp = ${i}, __alasql_tmp !== null && (typeof __alasql_tmp == 'number' || typeof __alasql_tmp == 'bigint' || (typeof __alasql_tmp == 'object' && (typeof Number(__alasql_tmp) == 'number' || __alasql_tmp instanceof Date))) ? __alasql_tmp : undefined),`):`'${o}' : (${i} !== null && (typeof ${i} == 'number' || typeof ${i} == 'bigint') ? ${i} : ${i} !== null && typeof ${i} == 'object' ?\n\t\t\t\t\t\t\ttypeof Number(${i}) == 'number' ? ${i} : undefined : undefined),`;if("ARRAY"===n.aggregatorid)return`'${o}':[${i}],`;if("COUNT"===n.aggregatorid)return"*"===n.expression.columnid?`'${o}':1,`:`'${o}':(typeof ${i} == "undefined" || ${i} === null) ? 0 : 1,`;if("AVG"===n.aggregatorid)return t.removeKeys.push(`_SUM_${o}`),t.removeKeys.push(`_COUNT_${o}`),`'${o}':(function() { var t = ${i}; return (t instanceof Date) ? undefined : t; })(),'_SUM_${o}':(function() { var t = ${i}; return (t instanceof Date) ? undefined : (t || 0); })(),'_COUNT_${o}':(typeof ${i} == "undefined" || ${i} === null) ? 0 : 1,`;if("AGGR"===n.aggregatorid)return l+=`,g['${o}']=${n.expression.toJS("g",-1)}`,"";if("REDUCE"===n.aggregatorid){t.aggrKeys.push(n);let s=tt(n);if(n.args&&n.args.length>1){let t=n.args.map((t=>t.toJS("p",e,r))).join(",");return`'${o}':alasql.aggr['${n.funcid}'](${t},undefined,1${s}),`}return`'${o}':alasql.aggr['${n.funcid}'](${i},undefined,1${s}),`}return""}return""})).join(""),o+="}"+l+",g));"+u+"} else {",o+=t.selectGroup.map((function(t){var n=t.nick,i=t.expression.toJS("p",e,r);let o=t=>t.args[0].toJS("p",e,r);if(t instanceof q.AggrValue){var s="",a="";if(t.distinct&&(s=`if(typeof ${i}!="undefined" && (!g['$$_VALUES_${n}'][${i}])) {`,a=`g['$$_VALUES_${n}'][${i}]=true;}`),"SUM"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\t\tconst __typeof_colexp1 = typeof ${e};\n\t\t\t\t\t\t\t\t\tconst __colexp1 = ${e};\n\n\t\t\t\t\t\t\t\t\tif (__g_colas == null && ${e} == null) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else if (typeof __g_colas === 'bigint' || typeof __colexp1 === 'bigint') {\n \t\t\t\t\t \tg['${n}'] = BigInt(__g_colas) + BigInt(__colexp);\n \t\t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 !== 'object' && __typeof_colexp1 !== 'number') ||\n\t\t\t\t\t\t\t\t\t\t (__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${e} == null || (__typeof_colexp1 !== 'number' && __typeof_colexp1 !== 'object'))) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp1 == 'number') ||\n\t\t\t\t\t\t\t\t\t\t\t (__g_colas == null && __typeof_colexp1 == 'number')) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t\t\t} else if (typeof __g_colas == 'number' && ${e} == null) {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t\t} else if (__g_colas instanceof Date || __colexp1 instanceof Date) {\n\t\t\t\t\t\t\t\t\t\t// Date objects cause string concatenation with +=, return undefined instead\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] += ${i} || 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t`+a}return s+`\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\tconst __typeof_colexp = typeof ${i};\n\t\t\t\t\t\t\t\tconst __colexp = ${i};\n\n\t\t\t\t\t\t\t\tif (__g_colas == null && ${i} == null) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t\t} else if (typeof __g_colas === 'bigint' || typeof __colexp === 'bigint') {\n \t\t\t\t\t g['${n}'] = BigInt(__g_colas) + BigInt(__colexp);\n \t\t\t\t\t} else if ((typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp !== 'object' && __typeof_colexp !== 'number') ||\n\t\t\t\t\t\t\t\t\t\t (__g_colas == null || (typeof __g_colas !== 'number' && typeof __g_colas !== 'object')) && (${i} == null || (__typeof_colexp !== 'number' && __typeof_colexp !== 'object'))) {\n\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else if (typeof __g_colas !== 'object' && typeof __g_colas !== 'number' && __typeof_colexp == 'number') {\n\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t} else if (typeof __g_colas == 'number' && ${i} == null) {\n\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t} else if (__g_colas == null && __typeof_colexp == 'number') {\n\t\t\t\t\t\t\t\tg['${n}'] = ${i};\n\t\t\t\t\t\t\t} else if (__g_colas instanceof Date || __colexp instanceof Date) {\n\t\t\t\t\t\t\t\t// Date objects cause string concatenation with +=, return undefined instead\n\t\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tg['${n}'] += ${i} || 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t`+a}if("TOTAL"===t.aggregatorid)return"funcid"in t.expression?s+`{\n\t\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\t\tconst __colexp1 = ${o(t.expression)};\n\t\t\t\t\t\t\t\t\tconst __typeof_g_colas = typeof __g_colas;\n\t\t\t\t\t\t\t\t\tconst __typeof_colexp1 = typeof __colexp1;\n\n\t\t\t\t\t\t\t\t\tif (__typeof_g_colas == 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) == 'number' &&\n\t\t\t\t\t\t\t\t\t\t__typeof_colexp1 == 'string' && !isNaN(__colexp1) && typeof Number(__colexp1) == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = Number(__g_colas) + Number(__colexp1);\n\t\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'bigint' || __typeof_colexp1 === 'bigint') {\n \t\t\t\t\t\t\t \tg['${n}'] = BigInt(__g_colas || 0) + BigInt(__colexp1 || 0);\n \t\t\t\t\t\t\t\t} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'string') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = 0;\n\t\t\t\t\t\t\t\t\t} else if (__typeof_g_colas == 'string' && __typeof_colexp1 == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __colexp1;\n\t\t\t\t\t\t\t\t\t} else if (__typeof_colexp1 == 'string' && __typeof_g_colas == 'number') {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tg['${n}'] += __colexp1 || 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}`+a:s+`{\n\t\t\t\t\t\t\t\tconst __g_colas = g['${n}'];\n\t\t\t\t\t\t\t\tconst __colexp = ${i};\n\t\t\t\t\t\t\t\tconst __typeof_g_colas = typeof __g_colas;\n\t\t\t\t\t\t\t\tconst __typeof_colexp = typeof __colexp;\n\n\t\t\t\t\t\t\t\tif (__typeof_g_colas === 'string' && !isNaN(__g_colas) && typeof Number(__g_colas) === 'number' &&\n\t\t\t\t\t\t\t\t\t__typeof_colexp === 'string' && !isNaN(__colexp) && typeof Number(__colexp) === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(__g_colas) + Number(__colexp);\n\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'bigint' || __typeof_colexp === 'bigint') {\n \t\t\t\t\t\t\t g['${n}'] = BigInt(__g_colas || 0) + BigInt(__colexp || 0);\n \t\t\t\t\t\t\t} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'string') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = 0;\n\t\t\t\t\t\t\t\t} else if (__typeof_g_colas === 'string' && __typeof_colexp === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = __colexp;\n\t\t\t\t\t\t\t\t} else if (__typeof_colexp === 'string' && __typeof_g_colas === 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = __g_colas;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tg['${n}'] += __colexp || 0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t`+a;if("COUNT"===t.aggregatorid)return"*"===t.expression.columnid?`${s}\n\t\t\t\t\t\t\t\tg['${n}']++;\n\t\t\t\t\t\t\t\t${a}`:`${s}\n\t\t\t\t\t\t\tif(typeof ${i}!="undefined" && ${i} !== null) g['${n}']++;\n\t\t\t\t\t\t\t${a}`;if("ARRAY"===t.aggregatorid)return s+"g['"+n+"'].push("+i+");"+a;if("MIN"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`if ((g['${n}'] == null && ${e} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${e} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t\t((y = ${i}) < g['${n}'])) {\n\t\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t\t}`+a}return s+`if((g['${n}'] == null && ${i}!== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t(g['${n}']!== null && ${i} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t((y=${i}) < g['${n}'])) { \n\t\t\t\t\t\t\t\tif(typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if(typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if(typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(g['${n}']!== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t} else if(g['${n}']!== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t}`+a}if("MAX"===t.aggregatorid){if("funcid"in t.expression){let e=o(t.expression);return s+`if ((g['${n}'] == null && ${e} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${e} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t\t((y = ${i}) > g['${n}'])) {\n\t\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t\t}`+a}return s+`if ((g['${n}'] == null && ${i} !== null) ? y = ${i} : \n\t\t\t\t\t\t\t\t(g['${n}'] !== null && ${i} == null) ? y = g['${n}'] : \n\t\t\t\t\t\t\t\t((y = ${i}) > g['${n}'])) {\n\t\t\t\t\t\t\t\tif (typeof y == 'number' || typeof y == 'bigint') {\n\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\t g['${n}'] = y;\n\t\t\t\t\t\t\t\t} else if (typeof y == 'object' && typeof Number(y) == 'number') {\n\t\t\t\t\t\t\t\t g['${n}'] = Number(y);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object' && y instanceof Date) {\n\t\t\t\t\t\t\t\tg['${n}'] = g['${n}'];\n\t\t\t\t\t\t\t} else if (g['${n}'] !== null && typeof g['${n}'] == 'object') {\n\t\t\t\t\t\t\t\tg['${n}'] = Number(g['${n}']);\n\t\t\t\t\t\t\t}`+a}if("FIRST"===t.aggregatorid)return"";if("LAST"===t.aggregatorid)return`${s}g['${n}']=${i};${a}`;if("AVG"===t.aggregatorid)return`${s}\n\t\t\t\t\t\t\ty= (${i});\n\t\t\t\t\t\t\tg['_COUNT_${n}'] += (typeof y == "undefined" || y === null) ? 0 : 1;\n\t\t\t\t\t\t\tif (y instanceof Date || (g['_SUM_${n}'] && g['_SUM_${n}'] instanceof Date)) {\n\t\t\t\t\t\t\t// AVG on Date objects doesn't make semantic sense - return undefined\n\t\t\t\t\t\t\tg['_SUM_${n}'] = undefined;\n\t\t\t\t\t\t\tg['${n}'] = undefined;\n\t\t\t\t\t\t\t} else if (typeof g['_SUM_${n}'] === 'bigint' || typeof y === 'bigint') {\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] = BigInt(g['_SUM_${n}']);\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] += BigInt(y || 0);\n \t\t\t\t\t\t\tg['${n}'] = BigInt(g['_SUM_${n}']) / BigInt(g['_COUNT_${n}']); \n \t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tg['_SUM_${n}'] += (y || 0);\n \t\t\t\t\t\t\tg['${n}'] = g['_SUM_${n}'] / g['_COUNT_${n}']; \n \t\t\t\t\t\t}\n\t\t\t\t\t\t\t${a}`;if("AGGR"===t.aggregatorid)return`${s}\n\t\t\t\t\t\t\tg['${n}']=${t.expression.toJS("g",-1)};\n\t\t\t\t\t\t\t${a}`;if("REDUCE"===t.aggregatorid){let o=tt(t);if(t.args&&t.args.length>1){let i=t.args.map((t=>t.toJS("p",e,r))).join(",");return`${s}\n\t\t\t\t\t\t\t\tg['${n}'] = alasql.aggr.${t.funcid}(${i},g['${n}'],2${o});\n\t\t\t\t\t\t\t\t${a}`}return`${s}\n\t\t\t\t\t\t\t\tg['${n}'] = alasql.aggr.${t.funcid}(${i},g['${n}'],2${o});\n\t\t\t\t\t\t\t\t${a}`}return""}return""})).join(""),o+="}"})),new Function("p,params,alasql","var y;"+o)};var et=/^(SUM|MAX|MIN|FIRST|LAST|AVG|ARRAY|REDUCE|TOTAL)$/;function rt(t,e,r){var n="",i=[],s={};return e.forEach((function(e){if(t.ixsources={},t.sources.forEach((function(e){t.ixsources[e.alias]=e})),t.ixsources[e])var a=t.ixsources[e].columns;r&&"json"==o.options.joinstar&&(n+="r['"+e+"']={};"),a&&a.length>0?a.forEach((function(a){let l=p(a.columnid);if(r&&"underscore"==o.options.joinstar)i.push("'"+e+"_"+l+"':p['"+e+"']['"+l+"']");else if(r&&"json"==o.options.joinstar)n+="r['"+e+"']['"+l+"']=p['"+e+"']['"+l+"'];";else{var u="p['"+e+"']['"+l+"']";if(s[a.columnid]){var c=u+" !== undefined ? "+u+" : "+s[a.columnid].value;i[s[a.columnid].id]=s[a.columnid].key+c,s[a.columnid].value=c}else{var h="'"+l+"':";i.push(h+u),s[a.columnid]={id:i.length-1,value:u,key:h}}}t.selectColumns[l]=!0;var d={columnid:a.columnid,dbtypeid:a.dbtypeid,dbsize:a.dbsize,dbprecision:a.dbprecision,dbenum:a.dbenum};t.columns.push(d),t.xcolumns[d.columnid]=d})):(r&&"json"==o.options.joinstar?n+="r['"+p(e)+"']=p['"+p(e)+"'];":r&&"underscore"==o.options.joinstar?n+='var w=p["'+p(e)+'"];for(var k in w){r["'+p(e)+'_"+k]=w[k]};':n+='var w=p["'+p(e)+'"];for(var k in w){r[k]=w[k]};',t.dirtyColumns=!0)})),{s:i.join(","),sp:n}}q.Select.prototype.compileSelect1=function(t,e){var r=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var n="var r={",i="",s=[];return this.columns.forEach((function(n){if(n instanceof q.Column)if("*"===n.columnid)if(n.func)i+="r=params['"+n.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(n.tableid)(a=rt(t,[n.tableid],!1)).s&&(s=s.concat(a.s)),i+=a.sp;else{var a;(a=rt(t,Object.keys(t.aliases),!0)).s&&(s=s.concat(a.s)),i+=a.sp}else{var l=n.tableid,c=n.databaseid||t.sources[0].databaseid||t.database.databaseid;if(l||(l=t.defcols[n.columnid]),l||(l=t.defaultTableid),"_"!==n.columnid)if(e&&e.length>1&&Array.isArray(e[0])&&e[0].length>=1&&e[0][0].hasOwnProperty("sheetid"))i='var r={};var w=p["'+l+'"];var cols=['+r.columns.map((function(t){return"'"+t.columnid+"'"})).join(",")+"];var colas=["+r.columns.map((function(t){return"'"+(t.as||t.columnid)+"'"})).join(",")+"];for (var i=0;i1)||t.defcols[n.columnid]&&"-"!==t.defcols[n.columnid])s.push("'"+p(n.as||n.columnid)+"':p['"+l+"']['"+n.columnid+"']");else{var h=Object.keys(t.aliases).map((function(t){return"p['"+t+"']['"+n.columnid+"']"})).join(" ?? ");s.push("'"+p(n.as||n.columnid)+"':("+h+")")}else s.push("'"+p(n.as||n.columnid)+"':p['"+l+"']");if(t.selectColumns[p(n.as||n.columnid)]=!0,t.aliases[l]&&"table"===t.aliases[l].type){if(!o.databases[c].tables[t.aliases[l].tableid])throw new Error("Table '"+l+"' does not exist in database");var d=o.databases[c].tables[t.aliases[l].tableid].columns,f=o.databases[c].tables[t.aliases[l].tableid].xcolumns;if(f&&d.length>0){var g=f[n.columnid];if(void 0===g)throw new Error("Column does not exist: "+n.columnid);var m={columnid:n.as||n.columnid,dbtypeid:g.dbtypeid,dbsize:g.dbsize,dbpecision:g.dbprecision,dbenum:g.dbenum};t.columns.push(m),t.xcolumns[m.columnid]=m}else m={columnid:n.as||n.columnid},t.columns.push(m),t.xcolumns[m.columnid]=m,t.dirtyColumns=!0}else m={columnid:n.as||n.columnid},t.columns.push(m),t.xcolumns[m.columnid]=m}else if(n instanceof q.AggrValue)n.as||(n.as=p(n.toString())),n.over?t.windowaggrs.push({as:n.as,aggregatorid:n.aggregatorid,expression:n.expression,partitionColumns:n.over.partition?n.over.partition.map((function(t){return t.columnid||t.toString()})):[]}):(r.group||(r.group=[""]),et.test(n.aggregatorid)?s.push("'"+p(n.as)+"':"+u(n.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===n.aggregatorid&&s.push("'"+p(n.as)+"':1")),m={columnid:n.as||n.columnid||n.toString()},t.columns.push(m),t.xcolumns[m.columnid]=m;else{var y=t.intoObject&&!n.as?function(t){if(!t||"->"!==t.op)return null;for(var e=[],r=t;r&&"->"===r.op;){if("string"==typeof r.right)e.unshift(r.right);else{if("number"!=typeof r.right)return null;e.unshift(r.right)}r=r.left}return r&&r.columnid?(e.unshift(r.columnid),e):null}(n):null;if(y&&y.length>1){for(var _=u(n.toJS("p",t.defaultTableid,t.defcols)),v=0;v0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach((function(n,i){var o="$$$"+i;void 0!==n._useColumnIndex?r+="var keys=Object.keys(r);r['"+o+"']=r[keys["+n.columnIndex+"]];":n instanceof q.Column&&t.xcolumns[n.columnid]?r+="r['"+o+"']=r['"+n.columnid+"'];":n instanceof q.ParamValue&&t.xcolumns[e[n.param]]?r+="r['"+o+"']=r['"+e[n.param]+"'];":r+="r['"+o+"']="+n.toJS("p",t.defaultTableid,t.defcols)+";",t.removeKeys.push(o)})),new Function("p,params,alasql","var y;"+r+"return r")},q.Select.prototype.compileSelectGroup0=function(t){var e=this,r=null,n=null;e.group&&(r={},e.group.forEach((function(t,e){t instanceof q.Column&&t.columnid&&!t.tableid&&(r[t.columnid]=e)})),n={},e.columns.forEach((function(t){t instanceof q.Column&&t.columnid&&(n[t.columnid]=!0)}))),e.columns.forEach((function(i,o){if(i instanceof q.Column&&"*"===i.columnid)t.groupStar=i.tableid||"default";else{var s;s=i instanceof q.Column?p(i.columnid):p(i.toString(!0));for(var a=0;a-1&&(e.group[l].nick=s),i.as&&r&&r.hasOwnProperty(i.as)&&!n[i.as]){var u=r[i.as],c=R(i);delete c.as,c.nick=s,e.group[u]=c}}i.funcid&&("ROWNUM"===i.funcid.toUpperCase()||"ROW_NUMBER"===i.funcid.toUpperCase())&&(i.over&&i.over.partition?t.grouprownums.push({as:i.as,partitionColumns:i.over.partition.map((function(t){return t.columnid||t.toString()}))}):t.rownums.push(i.as)),i.funcid&&"GROUP_ROW_NUMBER"===i.funcid.toUpperCase()&&t.grouprownums.push({as:i.as,columnIndex:0})}})),this.columns.forEach((function(e){e.findAggregator&&e.findAggregator(t)})),this.having&&this.having.findAggregator&&this.having.findAggregator(t)},q.Select.prototype.compileSelectGroup1=function(t){var e="var r = {};";return this.columns.forEach((function(r){if(r instanceof q.Column&&"*"===r.columnid)return e+="for(var k in g) {r[k]=g[k]};","";var n=r.as;void 0===n&&(n=r instanceof q.Column?p(r.columnid):r.nick),t.groupColumns[n]=r.nick,e+="r['"+n+"']=",e+=u(r.toJS("g",""))+";";for(var i=0;i-1){var a=o&&o.nick||i.nick;r+="r['"+(i.as||i.nick)+"']=g['"+a+"'];"}}})),this.orderColumns&&this.orderColumns.length>0&&!this.union&&!this.unionall&&!this.except&&!this.intersect&&this.orderColumns.forEach((function(e,n){var i="$$$"+n;void 0!==e._useColumnIndex?r+="var keys=Object.keys(r);r['"+i+"']=r[keys["+e.columnIndex+"]];":e instanceof q.Column&&t.groupColumns[e.columnid]?r+="r['"+i+"']=r['"+e.columnid+"'];":r+="r['"+i+"']="+e.toJS("g","")+";",t.removeKeys.push(i)})),new Function("g,params,alasql","var y;"+r+"return r")},q.Select.prototype.compileRemoveColumns=function(t){typeof this.removecolumns<"u"&&(t.removeKeys=t.removeKeys.concat(this.removecolumns.filter((function(t){return typeof t.like>"u"})).map((function(t){return t.columnid}))),t.removeLikeKeys=this.removecolumns.filter((function(t){return typeof t.like<"u"})).map((function(t){return t.like.value})))},q.Select.prototype.compileHaving=function(t){if(this.having){var e=this.having.toJS("g",-1);return t.havingfns=e,new Function("g,params,alasql","var y;return "+e)}return function(){return!0}},q.Select.prototype.compileOrder=function(t,e){var r=this;if(r.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression,i="FIRST"==this.order[0].nullsOrder?-1:"LAST"==this.order[0].nullsOrder?1:0;return function(t,e){var r=n(t),o=n(e);if(i){if(null==r)return null==o?0:i;if(null==o)return-i}return r>o?1:r==o?0:-1}}var s="",a="";return this.order.forEach((function(n,i){if(n.expression instanceof q.NumValue){if(n.expression.value<1)throw new Error(`Invalid column number ${n.expression.value}. Column numbers must be at least 1.`);var l=r.columns[n.expression.value-1];if(1===r.columns.length&&r.columns[0]instanceof q.Column&&"*"===r.columns[0].columnid)l={_useColumnIndex:!0,columnIndex:n.expression.value-1};else{if(n.expression.value>r.columns.length)throw new Error(`You are trying to order by column number ${n.expression.value} but you have only selected ${r.columns.length} columns.`);l instanceof q.Column&&"*"===l.columnid&&(l={_useColumnIndex:!0,columnIndex:n.expression.value-1})}}else l=n.expression instanceof q.StringValue?new q.Column({columnid:n.expression.value}):n.expression;r.orderColumns.push(l);var u,c="$$$"+i,h="";if(n.expression instanceof q.Column?u=n.expression.columnid:n.expression instanceof q.ParamValue?u=e[n.expression.param]:n.expression instanceof q.StringValue&&(u=n.expression.value),u)if(o.options.valueof)h=".valueOf()";else if(t.xcolumns[u]){var d=t.xcolumns[u].dbtypeid;("DATE"==d||"DATETIME"==d||"DATETIME2"==d||"STRING"==d||"NUMBER"==d)&&(h=".valueOf()")}n.nocase&&(h+=".toUpperCase()"),n.nullsOrder&&("FIRST"==n.nullsOrder?s+="if((a['"+c+"'] != null) && (b['"+c+"'] == null)) return 1;":"LAST"==n.nullsOrder&&(s+="if((a['"+c+"'] == null) && (b['"+c+"'] != null)) return 1;"),s+="if((a['"+c+"'] == null) == (b['"+c+"'] == null)) {",a+="}"),s+="if((a['"+c+"']||'')"+h+("ASC"==n.direction?">":"<")+"(b['"+c+"']||'')"+h+")return 1;",s+="if((a['"+c+"']||'')"+h+"==(b['"+c+"']||'')"+h+"){",a+="}"})),s+="return 0;",s+=a+"return -1",t.orderfns=s,new Function("a,b","var y;"+s)}},q.Select.prototype.compilePivot=function(t){var e,r=this,n=r.pivot.columnid,i=r.pivot.expr.aggregatorid,s=r.pivot.inlist;if(null==(e=r.pivot.expr.expression.hasOwnProperty("columnid")?r.pivot.expr.expression.columnid:r.pivot.expr.expression.expression.columnid))throw"columnid not found";return s&&(s=s.map((function(t){return t.expr.columnid}))),function(){var t=this;if(!t.data||0===t.data.length)return void(t.columns=[]);var r=Object.keys(t.data[0]).filter((function(t){return t!==n&&t!==e})),a=[],l={},u={},c={},h=[];if(t.data.forEach((function(t){if(!s||-1!==s.indexOf(t[n])){var d=r.map((function(e){return void 0===t[e]||null===t[e]?"":t[e]})).join("`"),p=u[d];p||(p={},u[d]=p,h.push(p),r.forEach((function(e){p[e]=t[e]}))),c[d]||(c[d]={});var f=t[n],g=t[e];if(c[d][f]?null!==g&&typeof g<"u"&&c[d][f]++:c[d][f]=null!==g&&typeof g<"u"?1:0,l[f]||(l[f]=!0,a.push(f)),"SUM"==i||"AVG"==i||"TOTAL"==i)null!==g&&typeof g<"u"?p[f]=typeof p[f]>"u"||null===p[f]?Number(g):p[f]+Number(g):typeof p[f]>"u"&&(p[f]=null);else if("COUNT"==i)"*"===e||null!==g&&typeof g<"u"?p[f]=(p[f]||0)+1:typeof p[f]>"u"&&(p[f]=0);else if("MIN"==i)null!==g&&typeof g<"u"?(typeof p[f]>"u"||null===p[f]||g"u"&&(p[f]=null);else if("MAX"==i)null!==g&&typeof g<"u"?(typeof p[f]>"u"||null===p[f]||g>p[f])&&(p[f]=g):typeof p[f]>"u"&&(p[f]=null);else if("FIRST"==i)typeof p[f]>"u"&&(p[f]=g);else if("LAST"==i)p[f]=g;else{if(!o.aggr[i])throw new Error("Unknown aggregator in PIVOT clause: "+i);typeof p[f]>"u"?p[f]=o.aggr[i](g,void 0,1):p[f]=o.aggr[i](g,p[f],2)}}})),"AVG"==i)for(var d in u){var p=u[d];for(var f in c[d])if(p.hasOwnProperty(f)&&null!==p[f]){var g=c[d][f];p[f]=g>0?p[f]/g:null}}t.data=h,s?a=s:a.sort();let m=t.columns.find((t=>t.columnid===e));if(!m&&t.sources&&t.sources.length>0){let r=t.sources[0].tableid,n=t.sources[0].databaseid;r&&n&&o.databases[n]?.tables?.[r]?.xcolumns&&(m=o.databases[n].tables[r].xcolumns[e])}m=m||{columnid:e,dbtypeid:"OBJECT"},t.columns=t.columns.filter((function(t){return r.includes(t.columnid)})),a.forEach((function(e){var r=R(m);r.columnid=e;let n=(m.dbtypeid||"OBJECT").toUpperCase(),o=["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"],s=[...o,"NUMBER","FLOAT","DECIMAL","NUMERIC","MONEY"];"COUNT"===i?r.dbtypeid="INT":"AVG"===i?o.includes(n)?r.dbtypeid=m.dbtypeid:r.dbtypeid="FLOAT":"SUM"===i||"TOTAL"===i?s.includes(n)?r.dbtypeid=m.dbtypeid:r.dbtypeid="FLOAT":"MIN"===i||"MAX"===i||"FIRST"===i||"LAST"===i?r.dbtypeid=m.dbtypeid:r.dbtypeid||(r.dbtypeid="OBJECT"),t.columns.push(r)}))}},q.Select.prototype.compileUnpivot=function(t){var e=this,r=e.unpivot.tocolumnid,n=e.unpivot.forcolumnid,i=e.unpivot.inlist.map((function(t){return t.columnid}));return function(){var e=[],o=t.columns.map((function(t){return t.columnid})).filter((function(t){return-1==i.indexOf(t)&&t!=n&&t!=r}));t.data.forEach((function(t){i.forEach((function(i){var s={};o.forEach((function(e){s[e]=t[e]})),s[n]=i,s[r]=t[i],e.push(s)}))})),t.data=e}};let nt=(t,e)=>{let r=[],n=0,i=t.length;for(let o=0;o{let r=[],n=t.length,i=1<t.reduce(((t,r)=>t.concat(at(r,e))),[]),st=(t,e)=>{let r=[];for(let n=0;nr.concat(`${t[n].nick}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));else if(t[n]instanceof q.FuncValue)e.groupColumns[p(t[n].toString())]=p(t[n].toString()),r=r.map((r=>r.concat(`${p(t[n].toString())}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));else if(t[n]instanceof q.GroupExpression)if("ROLLUP"==t[n].type)r=st(r,nt(t[n].group,e));else if("CUBE"==t[n].type)r=st(r,it(t[n].group,e));else{if("GROUPING SETS"!=t[n].type)throw new Error("Unknown grouping function");r=st(r,ot(t[n].group,e))}else r=""===t[n]?[["1\t1"]]:r.map((r=>r.concat(`${p(t[n].toString())}\t${t[n].toJS("p",e.sources[0].alias,e.defcols)}`)));return r}return t instanceof q.FuncValue?(e.groupColumns[p(t.toString())]=p(t.toString()),[`${t.toString()}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`]):t instanceof q.Column?(t.nick=p(t.columnid),e.groupColumns[t.nick]=t.nick,[`${t.nick}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`]):(e.groupColumns[p(t.toString())]=p(t.toString()),[`${p(t.toString())}\t${t.toJS("p",e.sources[0].alias,e.defcols)}`])}q.Select.prototype.compileDefCols=function(t,e){var r={".":{}};return this.from&&this.from.forEach((function(t){if(r["."][t.as||t.tableid]=!0,t instanceof q.Table){var n=t.as||t.tableid,i=o.databases[t.databaseid||e].tables[t.tableid];if(void 0===i)throw new Error("Table does not exist: "+t.tableid);i.columns&&i.columns.forEach((function(t){r[t.columnid]?r[t.columnid]="-":r[t.columnid]=n}))}else if(!(t instanceof q.Select||t instanceof q.Search||t instanceof q.ParamValue||t instanceof q.VarValue||t instanceof q.FuncValue||t instanceof q.FromData||t instanceof q.Json||t.inserted))throw new Error("Unknown type of FROM clause")})),this.joins&&this.joins.forEach((function(t){if(r["."][t.as||t.table.tableid]=!0,t.table){var n=t.as||t.table.tableid,i=t.table.databaseid||e,s=o.databases[i];if(void 0===s)throw new Error("Database does not exist: "+i);var a=s.tables[t.table.tableid];if(void 0===a)throw new Error("Table does not exist: "+t.table.tableid);a.columns&&a.columns.forEach((function(t){r[t.columnid]?r[t.columnid]="-":r[t.columnid]=n}))}else if(!t.select&&!t.param&&!t.func)throw new Error("Unknown type of FROM clause")})),r},q.Union=class{constructor(t){Object.assign(this,t)}toString(){return"UNION"}compile(t){return null}},q.Apply=class{constructor(t){Object.assign(this,t)}toString(){let t=`${this.applymode} APPLY (${this.select.toString()})`;return this.as&&(t+=` AS ${this.as}`),t}},q.Over=class{constructor(t){Object.assign(this,t)}toString(){let t="OVER (";return this.partition&&(t+=`PARTITION BY ${this.partition.toString()}`,this.order&&(t+=" ")),this.order&&(t+=`ORDER BY ${this.order.toString()}`),t+=")",t}};{let t=Object.assign;class e{constructor(e){t(this,e)}toString(){return this.expression.toString()}execute(t,e,r){if(this.expression){o.precompile(this,t,e);var n=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this)(e,o);return r&&(n=r(n)),n}}}class r{constructor(e){t(this,e)}toString(){var t=this.expression.toString();return this.order&&(t+=" "+this.order.toString()),this.nocase&&(t+=" COLLATE NOCASE"),this.direction&&(t+=" "+this.direction),t}findAggregator(t){this.expression.findAggregator&&this.expression.findAggregator(t)}toJS(t,e,r){return this.expression.reduced?"true":this.expression.toJS(t,e,r)}compile(t,e,r){return!!this.reduced||new Function("p","var y;return "+this.toJS(t,e,r))}}class n{constructor(e){t(this,e)}toString(){return"``"+this.value+"``"}toJS(){return"("+this.value+")"}execute(t,e,r){var n=1;return new Function("params,alasql,p",this.value)(e,o),r&&(n=r(n)),n}}class i{constructor(e){t(this,e)}toString(){var t=this.value;return this.value1&&(t=this.value1+"."+t),t}}class s{constructor(e){t(this,e)}toString(){var t=" ";return this.joinmode&&(t+=this.joinmode+" "),t+"JOIN "+this.table.toString()}}class a{constructor(e){t(this,e)}toString(){var t=this.tableid;return this.databaseid&&(t=this.databaseid+"."+t),t}}class l{constructor(e){t(this,e)}toString(){var t=this.viewid;return this.databaseid&&(t=this.databaseid+"."+t),t}}let u=new Set(["-","*","/","%","^","<<",">>","&","|"]),c=new Set(["||"]),h=/[\s.\-\[\]]/,d=new Set(["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB","BETWEEN","NOT BETWEEN","IS NULL","IS NOT NULL"]);class f{constructor(e){t(this,e)}toString(){let t,e=this.left.toString();return"IN"===this.op||"NOT IN"===this.op?`${e} ${this.op} (${this.right.toString()})`:this.allsome?`${e} ${this.op} ${this.allsome} (${this.right.toString()})`:"->"===this.op||"!"===this.op?(t=`${e}${this.op}`,"string"!=typeof this.right&&"number"!=typeof this.right?t+`(${this.right.toString()})`:t+this.right.toString()):"BETWEEN"===this.op||"NOT BETWEEN"===this.op?`${e} ${this.op} ${this.right1.toString()} AND ${this.right2.toString()}`:`${e} ${this.op} ${this.allsome?this.allsome+" ":""}${this.right.toString()}`}findAggregator(t){this.left&&this.left.findAggregator&&this.left.findAggregator(t),("BETWEEN"===this.op||"NOT BETWEEN"===this.op)&&(this.right1&&this.right1.findAggregator&&this.right1.findAggregator(t),this.right2&&this.right2.findAggregator&&this.right2.findAggregator(t)),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(t)}toType(t){if(u.has(this.op))return"number";if(c.has(this.op))return"string";if("+"===this.op){let e=this.left.toType(t),r=this.right.toType(t);if("string"===e||"string"===r)return"string";if("number"===e||"number"===r)return"number"}return d.has(this.op)||this.allsome?"boolean":this.op?"unknown":this.left.toType(t)}toJS(t,e,r){let n=[],i=this.op,s=!1,a=this,l=function(i){return i.toJS&&(i=i.toJS(t,e,r)),"y["+(n.push(i)-1)+"]"};var u,c=function(){return l(a.left)},h=function(){return l(a.right)};if("="===this.op)i="===";else if("<>"===this.op)i="!=";else if("OR"===this.op)i="||";else if("->"===this.op){let t=`(${c()} || {})`;if("string"==typeof this.right)u=`${t}["${p(this.right)}"]`;else if("number"==typeof this.right)u=`${t}[${this.right}]`;else if(this.right instanceof q.FuncValue){let e=[];this.right.args&&this.right.args.length>0&&(e=this.right.args.map(l)),u=`${t}[${JSON.stringify(this.right.funcid)}](${e.join(",")})`}else u=`${t}[${h()}]`}else if("!"===this.op)"string"==typeof this.right&&(u=`alasql.databases[alasql.useid].objects[${c()}]["${this.right}"]`);else if("IS"===this.op){let t=c(),e=h();u=this.right instanceof q.NullValue||"NOT"===this.right.op&&this.right.right instanceof q.NullValue?`((${t} == null) === (${e} == null))`:`((${t} == ${e}) || (${t} < 0 && true == ${e}))`}else if("=="===this.op)u=`alasql.utils.deepEqual(${c()}, ${h()})`;else if("==="===this.op||"!==="===this.op)u=`(${"!==="===this.op?"!":""}((${c()}).valueOf() === (${h()}).valueOf()))`;else if("!=="===this.op)u=`(!alasql.utils.deepEqual(${c()}, ${h()}))`;else if("||"===this.op)u=`(''+(${c()} || '') + (${h()} || ''))`;else if("LIKE"===this.op||"NOT LIKE"===this.op)u=`(${"NOT LIKE"===this.op?"!":""}alasql.utils.like(${h()}, ${c()}${this.escape?`, ${l(this.escape)}`:""}))`;else if("REGEXP"===this.op)u=`alasql.stdfn.REGEXP_LIKE(${c()}, ${h()})`;else if("GLOB"===this.op)u=`alasql.utils.glob(${c()}, ${h()})`;else if("BETWEEN"===this.op||"NOT BETWEEN"===this.op){let t=c();u=`(${"NOT BETWEEN"===this.op?"!":""}((${l(this.right1)} <= ${t}) && (${t} <= ${l(this.right2)})))`}else if("IN"===this.op)if(this.right instanceof q.Select){let e=`in${this.queriesidx}`,r=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,n=`((this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${e} || (this.subqueryCache.${e} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${c()})))`;u=`(${r} ? (alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).indexOf(alasql.utils.getValueOf(${c()})) > -1) : ${n})`}else if(Array.isArray(this.right))if(0===this.right.length)c(),u="false",s=!0;else if(!o.options.cache||this.right.some((t=>t instanceof q.ParamValue)))u=`(new Set([${this.right.map(l).join(",")}]).has(alasql.utils.getValueOf(${c()})))`;else{o.sets=o.sets||{};let t=this.right.map((t=>t.value)),e=t.join(",");o.sets[e]=o.sets[e]||new Set(t),u=`alasql.sets["${e}"].has(alasql.utils.getValueOf(${c()}))`}else u=`(${h()}.indexOf(${c()}) > -1)`;else if("NOT IN"===this.op)if(this.right instanceof q.Select){let e=`notIn${this.queriesidx}`,r=`(this.queriesfn[${this.queriesidx}].query && this.queriesfn[${this.queriesidx}].query.isCorrelated)`,n=`(!(this.subqueryCache = this.subqueryCache || {}, this.subqueryCache.${e} || (this.subqueryCache.${e} = new Set(alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).map(alasql.utils.getValueOf)))).has(alasql.utils.getValueOf(${c()})))`;u=`(${r} ? (alasql.utils.flatArray(this.queriesfn[${this.queriesidx}](params, null, ${t})).indexOf(alasql.utils.getValueOf(${c()})) < 0) : ${n})`}else if(Array.isArray(this.right))if(0===this.right.length)c(),u="true",s=!0;else if(!o.options.cache||this.right.some((t=>t instanceof q.ParamValue)))u=`(!(new Set([${this.right.map(l).join(",")}]).has(alasql.utils.getValueOf(${c()}))))`;else{o.sets=o.sets||{};let t=this.right.map((t=>t.value)),e=t.join(",");o.sets[e]=o.sets[e]||new Set(t),u=`!alasql.sets["${e}"].has(alasql.utils.getValueOf(${c()}))`}else u=`(${h()}.indexOf(${c()}) === -1)`;if("ALL"===this.allsome)if(this.right instanceof q.Select)u="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",u+=".every(function(b){return (",u+=c()+")"+i+"b})";else{if(!Array.isArray(this.right))throw new Error("NOT IN operator without SELECT");u=""+(1==this.right.length?l(this.right[0]):"["+this.right.map(l).join(",")+"]"),u+=".every(function(b){return (",u+=c()+")"+i+"b})"}if("SOME"===this.allsome||"ANY"===this.allsome)if(this.right instanceof q.Select)u="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",u+=".some(function(b){return (",u+=c()+")"+i+"b})";else{if(!Array.isArray(this.right))throw new Error("SOME/ANY operator without SELECT");u=""+(1==this.right.length?l(this.right[0]):"["+this.right.map(l).join(",")+"]"),u+=".some(function(b){return (",u+=c()+")"+i+"b})"}if("AND"===this.op){if(this.left.reduced){if(this.right.reduced)return"true";u=h()}else this.right.reduced&&(u=c());i="&&"}var d=u||"("+c()+i+h()+")",f="y=[("+n.join("), (")+")]";return s||"&&"===i||"||"===i||"IS"===i||"IS NULL"===i||"IS NOT NULL"===i?"("+f+", "+d+")":`(${f}, y.some(e => e == null || (typeof e === 'number' && isNaN(e))) ? void 0 : ${d})`}}class g{constructor(e){t(this,e)}toString(){return"@"+this.variable}toType(){return"unknown"}toJS(){return"alasql.vars['"+p(this.variable)+"']"}}class m{constructor(e){t(this,e)}toString(){return this.value.toString()}toType(){return"number"}toJS(){return""+this.value}}class y{constructor(e){t(this,e)}toString(){return"'"+this.value.toString()+"'"}toType(){return"string"}toJS(){return"'"+p(this.value)+"'"}}class _{constructor(e){t(this,e)}toString(){return"VALUE"}toType(){return"object"}toJS(t,e,r){return t}}class v{constructor(e){t(this,e)}toString(){return"ARRAY[]"}toType(){return"object"}toJS(t,e,r){return"[("+this.value.map((function(n){return n.toJS(t,e,r)})).join("), (")+")]"}}class x{constructor(e){t(this,e)}toString(){return this.value?"TRUE":"FALSE"}toType(){return"boolean"}toJS(){return this.value?"true":"false"}}class b{constructor(e){t(this,e)}toString(){return"NULL"}toJS(){return"undefined"}}class T{constructor(e){t(this,e)}toString(){return"$"+this.param}toJS(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"}}let E={"~":"~","-":"-","+":"+",NOT:"!"};class O{constructor(e){t(this,e)}toString(){let{op:t,right:e}=this,r=e.toString();switch(t){case"~":case"-":case"+":case"#":return t+r;case"NOT":return t+"("+r+")";default:return"("+r+")"}}findAggregator(t){this.right.findAggregator&&this.right.findAggregator(t)}toType(){switch(this.op){case"-":case"+":return"number";case"NOT":return"boolean";default:return"string"}}toJS(t,e,r){if(this.right instanceof S&&"#"===this.op)return`(alasql.databases[alasql.useid].objects['${this.right.columnid}'])`;let n=this.right.toJS(t,e,r);if(E.hasOwnProperty(this.op))return`(${E[this.op]}(${n}))`;if(null==this.op)return`(${n})`;throw new Error(`Unsupported operator: ${this.op}`)}}class S{constructor(e){t(this,e)}static needsBrackets(t){return null!=t&&(t==+t||h.test(t))}static wrapId(t){return S.needsBrackets(t)?"["+t+"]":t}toString(){let t=S.needsBrackets(this.columnid),e=t?"["+this.columnid+"]":this.columnid;if(this.tableid){let r=t?"":".";e=S.wrapId(this.tableid)+r+e,this.databaseid&&(e=S.wrapId(this.databaseid)+"."+e)}return e}toJS(t,e,r){if(!this.tableid&&""===e&&!r)return"_"!==this.columnid?`${t}['${this.columnid}']`:"g"===t?"g['_']":t;if("g"===t)return`g['${this.nick||this.columnid}']`;if(this.tableid)return"_"!==this.columnid?`${t}['${this.tableid}']['${this.columnid}']`:"g"===t?"g['_']":`${t}['${this.tableid}']`;if(r){let n=r[this.columnid];if("-"===n)throw new Error(`Cannot resolve column "${this.columnid}" because it exists in two source tables`);return n?"_"!==this.columnid?`${t}['${n}']['${this.columnid}']`:`${t}['${n}']`:"_"!==this.columnid?`${t}['${this.tableid||e}']['${this.columnid}']`:`${t}['${this.tableid||e}']`}return-1===e?`${t}['${this.columnid}']`:"_"!==this.columnid?`${t}['${this.tableid||e}']['${this.columnid}']`:`${t}['${this.tableid||e}']`}}class N{constructor(e){t(this,e)}toString(){return`${"REDUCE"===this.aggregatorid?this.funcid.replace(lt,""):this.aggregatorid}(${this.distinct?"DISTINCT ":""}${this.expression?this.expression.toString():""})${this.over?` ${this.over.toString()}`:""}`}findAggregator(t){if(this.over)return;let e=t.selectGroup.find((t=>t.toString()===this.toString()));e?this.aggrNick=e.nick:(this.nick||(this.nick=p(this.toString())+":"+t.selectGroup.length,t.removeKeys.includes(this.nick)||t.removeKeys.push(this.nick)),this.aggrNick=this.nick,t.selectGroup.push(this))}toType(){return["SUM","COUNT","AVG","MIN","MAX","AGGR","VAR","STDDEV","TOTAL"].includes(this.aggregatorid)?"number":"ARRAY"===this.aggregatorid?"array":this.expression.toType()}toJS(){var t=this.aggrNick||this.nick;return void 0===t&&(t=p(this.toString())),"g['"+t+"']"}}class A{constructor(e){t(this,e)}}A.prototype.toString=r.prototype.toString;class w{constructor(e){t(this,e)}toString(){return this.type+"("+this.group.toString()+")"}}t(q,{AggrValue:N,ArrayValue:v,Column:S,DomainValueValue:_,Expression:r,ExpressionStatement:e,GroupExpression:w,JavaScript:n,Join:s,Literal:i,LogicValue:x,NullValue:b,NumValue:m,Op:f,OrderExpression:A,ParamValue:T,StringValue:y,Table:a,UniOp:O,VarValue:g,View:l})}q.FromData=function(t){return q.extend(this,t)},q.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},q.FromData.prototype.toJS=function(){},q.Select.prototype.exec=function(t,e){this.preparams&&(t=this.preparams.concat(t));var r=o.useid,n=o.databases[r],i=this.toString(),s=T(i),a=this.compile(r);if(a)return a.sql=i,a.dbversion=n.dbversion,n.sqlCacheSize>o.MAXSQLCACHESIZE&&n.resetSqlCache(),n.sqlCacheSize++,n.sqlCache[s]=a,o.res=a(t,e)},q.Select.prototype.Select=function(){var t=this,e=[];if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return t.columns=[],e.forEach((function(e){if("string"==typeof e)t.columns.push(new q.Column({columnid:e}));else if("function"==typeof e){var r=0;t.preparams?r=t.preparams.length:t.preparams=[],t.preparams.push(e),t.columns.push(new q.Column({columnid:"*",func:e,param:r}))}})),t},q.Select.prototype.From=function(t){var e=this;if(e.from||(e.from=[]),Array.isArray(t)){var r=0;e.preparams?r=e.preparams.length:e.preparams=[],e.preparams.push(t),e.from.push(new q.ParamValue({param:r}))}else{if("string"!=typeof t)throw new Error("Unknown arguments in From() function");e.from.push(new q.Table({tableid:t}))}return e},q.Select.prototype.OrderBy=function(){var t=this,e=[];if(t.order=[],0==arguments.length)e=["_"];else if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return e.length>0&&e.forEach((function(e){var r=new q.Column({columnid:e});"function"==typeof e&&(r=e),t.order.push(new q.OrderExpression({expression:r,direction:"ASC"}))})),t},q.Select.prototype.Top=function(t){return this.top=new q.NumValue({value:t}),this},q.Select.prototype.GroupBy=function(){var t=this,e=[];if(arguments.length>1)e=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");e=Array.isArray(arguments[0])?arguments[0]:[arguments[0]]}return t.group=[],e.forEach((function(e){var r=new q.Column({columnid:e});t.group.push(r)})),t},q.Select.prototype.Where=function(t){return"function"==typeof t&&(this.where=t),this},q.FuncValue=function(t){return Object.assign(this,t)};let lt=/[^0-9A-Z_$]+/i;q.FuncValue.prototype.toString=function(){let t="";return o.fn[this.funcid]||o.aggr[this.funcid]?t+=this.funcid:(o.stdlib[this.funcid.toUpperCase()]||o.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase().replace(lt,"")),"CURRENT_TIMESTAMP"!==this.funcid&&(t+="(",this.args&&this.args.length>0&&(t+=this.args.map((function(t){return t.toString()})).join(",")),t+=")"),this.over&&(t+=" "+this.over.toString()),t},q.FuncValue.prototype.execute=function(t,e,r){let n=1;return o.precompile(this,t,e),new Function("params,alasql","var y;return "+this.toJS("","",null))(e,o),r&&(n=r(n)),n},q.FuncValue.prototype.findAggregator=function(t){this.args&&this.args.length>0&&this.args.forEach((function(e){e.findAggregator&&e.findAggregator(t)}))},q.FuncValue.prototype.toJS=function(t,e,r){var n="",i=this.funcid;return!o.fn[i]&&o.stdlib[i.toUpperCase()]?this.args&&this.args.length>0?n+=o.stdlib[i.toUpperCase()].apply(this,this.args.map((function(r){return r.toJS(t,e)}))):n+=o.stdlib[i.toUpperCase()]():!o.fn[i]&&o.stdfn[i.toUpperCase()]?(this.newid&&(n+="new "),n+="alasql.stdfn["+JSON.stringify(this.funcid.toUpperCase())+"](",this.args&&this.args.length>0&&(n+=this.args.map((function(n){return n.toJS(t,e,r)})).join(",")),n+=")"):(this.newid&&(n+="new "),n+="alasql.fn["+JSON.stringify(this.funcid)+"](",this.args&&this.args.length>0&&(n+=this.args.map((function(n){return n.toJS(t,e,r)})).join(",")),n+=")"),n};var ut=o.stdlib={},ct=o.stdfn={};ut.ABS=function(t){return"Math.abs("+t+")"},ut.CLONEDEEP=function(t){return"alasql.utils.cloneDeep("+t+")"},ct.CONCAT=function(){return Array.prototype.slice.call(arguments).join("")},ut.EXP=function(t){return"Math.pow(Math.E,"+t+")"},ut.IIF=function(t,e,r){if(3===arguments.length)return`((${t}) ? (${e}) : (${r}))`;throw new Error("Number of arguments of IFF is not equals to 3")},ut.IFNULL=function(t,e){return`((typeof ${t} === "undefined" || ${t} === null) ? ${e} : ${t})`},ut.INSTR=function(t,e){return`((${t}).indexOf(${e}) + 1)`},ut.LEN=ut.LENGTH=function(t){return h(t,"y.length")},ut.LOWER=ut.LCASE=function(t){return h(t,"String(y).toLowerCase()")},ut.LTRIM=function(t){return h(t,'y.replace(/^[ ]+/,"")')},ut.RTRIM=function(t){return h(t,'y.replace(/[ ]+$/,"")')},ut.MAX=ut.GREATEST=function(){return"["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a > b ? a : b; })"},ut.MIN=ut.LEAST=function(){return"["+Array.prototype.join.call(arguments,",")+"].reduce(function (a, b) { return a < b ? a : b; })"},ut.SUBSTRING=ut.SUBSTR=ut.MID=function(t,e,r){return 2==arguments.length?h(t,"y.substr("+e+"-1)"):3==arguments.length?h(t,"y.substr("+e+"-1,"+r+")"):void 0},ct.REGEXP_LIKE=function(t,e,r){var n=e.replace(/\[\[:<:\]\]/g,"\\b").replace(/\[\[:>:\]\]/g,"\\b");return(t||"").search(RegExp(n,r))>-1},ut.ISNULL=ut.NULLIF=function(t,e){return"("+t+"=="+e+"?undefined:"+t+")"},ut.POWER=function(t,e){return"Math.pow("+t+","+e+")"},ut.RANDOM=function(t){return 0==arguments.length?"Math.random()":"(Math.random()*("+t+")|0)"},ut.ROUND=function(t,e){return 2==arguments.length?"(__alasql_tmp = ("+t+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp*Math.pow(10,('+e+")))/Math.pow(10,("+e+"))))":"(__alasql_tmp = ("+t+'), (__alasql_tmp == null || (typeof __alasql_tmp === "string" && __alasql_tmp.trim() === "")) ? undefined : ((__alasql_tmp = Number(__alasql_tmp)), isNaN(__alasql_tmp) ? undefined : Math.round(__alasql_tmp)))'},ut.CEIL=ut.CEILING=function(t){return"Math.ceil("+t+")"},ut.FLOOR=function(t){return"Math.floor("+t+")"},ut.ROWNUM=function(){return"1"},ut.ROW_NUMBER=function(){return"1"},ut.GROUP_ROW_NUMBER=function(){return"1"},ut.SQRT=function(t){return"Math.sqrt("+t+")"},ut.TRIM=function(t){return h(t,"y.trim()")},ut.UPPER=ut.UCASE=function(t){return h(t,"String(y).toUpperCase()")},ct.CONCAT_WS=function(){var t=Array.prototype.slice.call(arguments);return(t=t.filter((t=>!(null===t||typeof t>"u")))).slice(1,t.length).join(t[0]||"")},o.aggr.group_concat=o.aggr.GROUP_CONCAT=function(t,e,r,n,i){if(void 0===n&&(n=","),1===r)return null==t?{values:[],separator:n,orderDirection:i}:{values:[t],separator:n,orderDirection:i};if(2===r)return null==t?e:null==e?{values:[t],separator:n,orderDirection:i}:("string"==typeof e&&(e={values:e.split(","),separator:",",orderDirection:void 0}),e.values.push(t),e);{if(null==e)return;if("string"==typeof e)return e;let t=e.values;if(0===t.length)return;if(e.orderDirection&&void 0!==e.orderDirection){let r="ASC"===e.orderDirection;t=t.slice().sort(((t,e)=>t===e?0:null==t?1:null==e?-1:"string"==typeof t&&"string"==typeof e?r?t.localeCompare(e):e.localeCompare(t):r?tt>e?1:te?1:-1}));let o=n*(i.length+1)/4;return Number.isInteger(o)?i[o-1]:i[Math.floor(o)]},o.aggr.QUART2=function(t,e,r){return o.aggr.QUART(t,e,r,2)},o.aggr.QUART3=function(t,e,r){return o.aggr.QUART(t,e,r,3)},o.aggr.VAR=function(t,e,r){return 1===r?null===t?{sum:0,sumSq:0,count:0}:{sum:t,sumSq:t*t,count:1}:2===r?(null!==t&&(e.sum+=t,e.sumSq+=t*t,e.count++),e):e.count>1?(e.sumSq-e.sum*e.sum/e.count)/(e.count-1):0},o.aggr.STDEV=function(t,e,r){return 1===r||2===r?o.aggr.VAR(t,e,r):Math.sqrt(o.aggr.VAR(t,e,r))},o.aggr.STDEV=function(t,e,r){return 1===r||2===r?o.aggr.VAR(t,e,r):Math.sqrt(o.aggr.VAR(t,e,r))},o.aggr.VARP=function(t,e,r){if(1===r)return{count:1,sum:t,sumSq:t*t};if(2===r)return e.count++,e.sum+=t,e.sumSq+=t*t,e;if(e.count>0){let t=e.sum/e.count;return e.sumSq/e.count-t*t}return 0},o.aggr.STD=o.aggr.STDDEV=o.aggr.STDEVP=function(t,e,r){return 1==r||2==r?o.aggr.VARP(t,e,r):Math.sqrt(o.aggr.VARP(t,e,r))},o._aggrOriginal=o.aggr,o.aggr={},Object.keys(o._aggrOriginal).forEach((function(t){o.aggr[t]=function(e,r,n){if(!(3===n&&typeof r>"u"))return o._aggrOriginal[t].apply(null,arguments)}})),ct.REPLACE=function(t,e,r){return String(t??"").split(String(e??"")).join(String(r??""))};for(var ht=[],dt=0;dt<256;dt++)ht[dt]=(dt<16?"0":"")+dt.toString(16);ct.NEWID=ct.UUID=ct.GEN_RANDOM_UUID=function(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return ht[255&t]+ht[t>>8&255]+ht[t>>16&255]+ht[t>>24&255]+"-"+ht[255&e]+ht[e>>8&255]+"-"+ht[e>>16&15|64]+ht[e>>24&255]+"-"+ht[63&r|128]+ht[r>>8&255]+"-"+ht[r>>16&255]+ht[r>>24&255]+ht[255&n]+ht[n>>8&255]+ht[n>>16&255]+ht[n>>24&255]},q.CaseValue=function(t){return Object.assign(this,t)},q.CaseValue.prototype.toString=function(){var t="CASE ";return this.expression&&(t+=this.expression.toString()),this.whens&&(t+=this.whens.map((function(t){return" WHEN "+t.when.toString()+" THEN "+t.then.toString()})).join()),t+" END"},q.CaseValue.prototype.findAggregator=function(t){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(t),this.whens&&this.whens.length>0&&this.whens.forEach((function(e){e.when.findAggregator&&e.when.findAggregator(t),e.then.findAggregator&&e.then.findAggregator(t)})),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(t)},q.CaseValue.prototype.toJS=function(t,e,r){let n=`(((${t}, params, alasql) => {\n let y, r;`;return this.expression?(n+=`let v = ${this.expression.toJS(t,e,r)};`,this.whens.forEach(((i,o)=>{let s=`v === ${i.when.toJS(t,e,r)}`,a=`r = ${i.then.toJS(t,e,r)}`;n+=`${0===o?"if":" else if"} (${s}) { ${a}; }`}))):this.whens.forEach(((i,o)=>{let s=i.when.toJS(t,e,r),a=`r = ${i.then.toJS(t,e,r)}`;n+=`${0===o?"if":" else if"} (${s}) { ${a}; }`})),this.elses&&(n+=` else { r = ${this.elses.toJS(t,e,r)}; }`),n+="; return r; }))("+t+", params, alasql)",n},q.Json=function(t){return Object.assign(this,t)},q.Json.prototype.toString=function(){var t="";return(t+=pt(this.value))+""};let pt=o.utils.JSONtoString=function(t){if("string"==typeof t)return`"${t}"`;if("number"==typeof t||"boolean"==typeof t)return String(t);if("bigint"==typeof t)return`${t.toString()}n`;if(Array.isArray(t))return`[${t.map((t=>pt(t))).join(",")}]`;if("object"==typeof t){if(!t.toJS||t instanceof q.Json){let e=[];for(let r in t){let n="string"==typeof r?`"${r}"`:String(r),i=pt(t[r]);e.push(`${n}:${i}`)}return`{${e.join(",")}}`}if(t.toString)return t.toString();throw new Error(`1: Cannot show JSON object ${JSON.stringify(t)}`)}throw new Error(`2: Cannot show JSON object ${JSON.stringify(t)}`)};function ft(t,e,r,n){var i="";if("string"==typeof t)i='"'+t+'"';else if("number"==typeof t)i="("+t+")";else if("boolean"==typeof t)i=t;else if("bigint"==typeof t)i=t.toString()+"n";else{if("object"!=typeof t)throw new Error("2Can not parse JSON object "+JSON.stringify(t));if(Array.isArray(t))i+=`[${t.map((t=>ft(t,e,r,n))).join(",")}]`;else if(!t.toJS||t instanceof q.Json){let o=[];for(let i in t){let s="string"==typeof i?`"${i}"`:i.toString(),a=ft(t[i],e,r,n);o.push(`${s}:${a}`)}i=`{${o.join(",")}}`}else{if(!t.toJS)throw new Error(`Cannot parse JSON object ${JSON.stringify(t)}`);i=t.toJS(e,r,n)}}return i}q.Json.prototype.toJS=function(t,e,r){return ft(this.value,t,e,r)},q.Convert=function(t){return Object.assign(this,t)},q.Convert.prototype.toString=function(){var t="CONVERT(";return t+=this.dbtypeid,typeof this.dbsize<"u"&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),t+=","+this.expression.toString(),this.style&&(t+=","+this.style),t+")"},q.Convert.prototype.toJS=function(t,e,r){return`alasql.stdfn.CONVERT(${this.expression.toJS(t,e,r)}, {\n dbtypeid: "${this.dbtypeid}",\n dbsize: ${this.dbsize},\n dbprecision: ${this.dbprecision},\n style: ${this.style}\n })`},o.stdfn.CONVERT=function(t,e){var r,n=t,i=e.dbtypeid?.toUpperCase();if((e.style||"Date"==e.dbtypeid||["DATE","DATETIME","DATETIME2"].indexOf(i)>-1)&&(r=function(t){var e=t.getMonth()+1,r=t.getYear(),n=t.getFullYear(),i=t.getDate();return{month:e,year:r,fullYear:n,date:i,day:t.toString().substr(4,3),formattedDate:("0"+i).substr(-2),formattedMonth:("0"+e).substr(-2),formattedYear:("0"+r).substr(-2),formattedHour:("0"+t.getHours()).substr(-2),formattedMinutes:("0"+t.getMinutes()).substr(-2),formattedSeconds:("0"+t.getSeconds()).substr(-2),formattedMilliseconds:("00"+t.getMilliseconds()).substr(-3)}}(/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):yt(n))),e.style)switch(e.style){case 1:n=r.formattedMonth+"/"+r.formattedDate+"/"+r.formattedYear;break;case 2:n=r.formattedYear+"."+r.formattedMonth+"."+r.formattedDate;break;case 3:n=r.formattedDate+"/"+r.formattedMonth+"/"+r.formattedYear;break;case 4:n=r.formattedDate+"."+r.formattedMonth+"."+r.formattedYear;break;case 5:n=r.formattedDate+"-"+r.formattedMonth+"-"+r.formattedYear;break;case 6:n=r.formattedDate+" "+r.day.toLowerCase()+" "+r.formattedYear;break;case 7:n=r.day+" "+r.formattedDate+","+r.formattedYear;break;case 8:case 108:n=r.formattedHour+":"+r.formattedMinutes+":"+r.formattedSeconds;break;case 10:n=r.formattedMonth+"-"+r.formattedDate+"-"+r.formattedYear;break;case 11:n=r.formattedYear+"/"+r.formattedMonth+"/"+r.formattedDate;break;case 12:n=r.formattedYear+r.formattedMonth+r.formattedDate;break;case 101:n=r.formattedMonth+"/"+r.formattedDate+"/"+r.fullYear;break;case 102:n=r.fullYear+"."+r.formattedMonth+"."+r.formattedDate;break;case 103:n=r.formattedDate+"/"+r.formattedMonth+"/"+r.fullYear;break;case 104:n=r.formattedDate+"."+r.formattedMonth+"."+r.fullYear;break;case 105:n=r.formattedDate+"-"+r.formattedMonth+"-"+r.fullYear;break;case 106:n=r.formattedDate+" "+r.day.toLowerCase()+" "+r.fullYear;break;case 107:n=r.day+" "+r.formattedDate+","+r.fullYear;break;case 110:n=r.formattedMonth+"-"+r.formattedDate+"-"+r.fullYear;break;case 111:n=r.fullYear+"/"+r.formattedMonth+"/"+r.formattedDate;break;case 112:n=r.fullYear+r.formattedMonth+r.formattedDate;break;default:throw new Error("The CONVERT style "+e.style+" is not realized yet.")}switch(i){case"DATE":return`${r.formattedYear}.${r.formattedMonth}.${r.formattedDate}`;case"DATETIME":case"DATETIME2":return`${r.fullYear}.${r.formattedMonth}.${r.formattedDate} ${r.formattedHour}:${r.formattedMinutes}:${r.formattedSeconds}.${r.formattedMilliseconds}`;case"MONEY":return(0|(o=+n))+100*o%100/100;case"BOOLEAN":return!!n;case"INT":case"INTEGER":case"SMALLINT":case"BIGINT":case"SERIAL":case"SMALLSERIAL":case"BIGSERIAL":return 0|n;case"STRING":case"VARCHAR":case"NVARCHAR":case"CHARACTER VARIABLE":return e.dbsize?String(n).substr(0,e.dbsize):String(n);case"CHAR":case"CHARACTER":case"NCHAR":return(n+" ".repeat(e.dbsize)).substr(0,e.dbsize);case"NUMBER":case"FLOAT":case"DECIMAL":case"NUMERIC":var o=+n;return void 0!==e.dbsize&&(o=parseFloat(o.toPrecision(e.dbsize))),void 0!==e.dbprecision&&(o=parseFloat(o.toFixed(e.dbprecision))),o;case"JSON":if("object"==typeof n)return n;try{return JSON.parse(n)}catch{throw new Error("Cannot convert string to JSON")}default:return n}},q.ColumnDef=function(t){return Object.assign(this,t)},q.ColumnDef.prototype.toString=function(){let t=this.columnid;return this.dbtypeid&&(t+=" "+this.dbtypeid),this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),this.primarykey&&(t+=" PRIMARY KEY"),this.notnull&&(t+=" NOT NULL"),t},q.CreateTable=function(t){return Object.assign(this,t)},q.CreateTable.prototype.toString=function(){let t=`CREATE${this.temporary?" TEMPORARY":""}${this.view?" VIEW":" "+(this.class?"CLASS":"TABLE")}${this.ifnotexists?" IF NOT EXISTS":""} ${this.table.toString()}`;return this.viewcolumns&&(t+=`(${this.viewcolumns.map((t=>t.toString())).join(",")})`),this.as?t+=` AS ${this.as}`:t+=` (${this.columns.map((t=>t.toString())).join(",")})`,this.view&&this.select&&(t+=` AS ${this.select.toString()}`),t},q.CreateTable.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||t],i=this.table.tableid;if(!i)throw new Error("Table name is not defined");var s=this.columns,a=this.constraints||[];if(this.ifnotexists&&n.tables[i])return r?r(0):0;if(n.tables[i])throw new Error("Can not create table '"+i+"', because it already exists in the database '"+n.databaseid+"'");var l=n.tables[i]=new o.Table;this.class&&(l.isclass=!0);var u,c=[],h=[];if(s&&s.forEach((function(e){var r=e.dbtypeid;o.fn[r]||(r=r.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(r)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:r,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(l.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&l.checks.push({id:e.check.constrantid,fn:new Function("r,params,alasql","var y;return "+e.check.expression.toJS("r",""))}),e.default&&c.push(JSON.stringify(""+e.columnid)+":"+e.default.toJS("r","")),e.primarykey){var i=l.pk={};i.columns=[e.columnid],i.onrightfns=`r[${JSON.stringify(e.columnid)}]`,i.onrightfn=new Function("r","var y;return "+i.onrightfns),i.hh=T(i.onrightfns),l.uniqs[i.hh]={}}if(e.unique){var s={};l.uk=l.uk||[],l.uk.push(s),s.columns=[e.columnid],s.onrightfns=`r[${JSON.stringify(e.columnid)}]`,s.onrightfn=new Function("r","var y;return "+s.onrightfns),s.hh=T(s.onrightfns),l.uniqs[s.hh]={}}if(e.foreignkey){var a=e.foreignkey.table,u=o.databases[a.databaseid||t].tables[a.tableid];if(typeof a.columnid>"u"){if(!(u.pk.columns&&u.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");a.columnid=u.pk.columns[0]}n.foreignkey={tableid:a.tableid,columnid:a.columnid},l.checks.push({fn:function(t){var r={},n=t[e.columnid];if(null!=n&&("number"!=typeof n||!isNaN(n))){r[a.columnid]=n;var i=u.pk.onrightfn(r);if(!u.uniqs[u.pk.hh][i])throw new Error('Foreign key "'+n+'" not found in table "'+a.tableid+'"')}return!0},fk:!0})}e.onupdate&&h.push(`r[${JSON.stringify(e.columnid)}]=`+e.onupdate.toJS("r","")),l.columns.push(n),l.xcolumns[n.columnid]=n})),l.defaultfns=c.join(","),l.onupdatefns=h.join(";"),a.forEach((function(e){var r;if("PRIMARY KEY"===e.type){if(l.pk)throw new Error("Primary key already exists");var n=l.pk={};n.columns=e.columns,n.onrightfns=n.columns.map((function(t){return`r[${JSON.stringify(t)}]`})).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=T(n.onrightfns),l.uniqs[n.hh]={},n.columns.forEach((function(t){l.xcolumns[t]&&(l.xcolumns[t].primarykey=!0)}))}else if("CHECK"===e.type)r=new Function("r,params,alasql","var y;return "+e.expression.toJS("r",""));else if("UNIQUE"===e.type){var i={};l.uk=l.uk||[],l.uk.push(i),i.columns=e.columns,i.onrightfns=i.columns.map((function(t){return t.expression.toJS("r","")})).join("+'`'+"),i.onrightfn=new Function("r","var y;return "+i.onrightfns),i.hh=T(i.onrightfns),l.uniqs[i.hh]={}}else if("FOREIGN KEY"===e.type){var s=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(s.fkcolumns=e.fkcolumns);var a=o.databases[s.databaseid||t].tables[s.tableid];if(typeof s.fkcolumns>"u"&&(s.fkcolumns=a.pk.columns),s.columns=e.columns,s.fkcolumns.length>s.columns.length)throw new Error("Invalid foreign key on table "+l.tableid);s.columns.forEach((function(t,r){l.xcolumns[t]&&(l.xcolumns[t].foreignkey={tableid:s.tableid,columnid:s.fkcolumns[r],constraintid:e.constraintid})})),r=function(e){var r={};if(s.fkcolumns.forEach((function(t,n){var i=e[s.columns[n]];null!=i&&("number"!=typeof i||!isNaN(i))&&(r[t]=i)})),0===Object.keys(r).length)return!0;if(Object.keys(r).length!==s.columns.length)throw new Error("Invalid foreign key on table "+l.tableid);var n=o.databases[s.databaseid||t].tables[s.tableid],i=n.pk.onrightfn(r);if(!n.uniqs[n.pk.hh][i]){var a=s.columns.map((function(t){return e[t]}));throw new Error('Foreign key "'+a.join(", ")+'" not found in table "'+s.tableid+'"')}return!0}}r&&l.checks.push({fn:r,id:e.constraintid,fk:"FOREIGN KEY"===e.type})})),this.view&&this.viewcolumns){var d=this;this.viewcolumns.forEach((function(t,e){d.select.columns[e].as=t.columnid}))}return this.view&&this.select&&(l.view=!0,l.viewSelect=this.select,l.viewDatabaseid=this.table.databaseid||t),n.engineid?o.engines[n.engineid].createTable(this.table.databaseid||t,i,this.ifnotexists,r):(l.insert=function(r,n,i){var s=o.inserted;o.inserted=[r];var a=this;n&&i&&(i=!1);var l=!1,u=!1;for(var c in a.beforeinsert)(T=a.beforeinsert[c])&&!1===o.executeTrigger(T,t,r)&&(u=u||!0);if(!u){var h=!1;for(c in a.insteadofinsert)h=!0,(T=a.insteadofinsert[c])&&o.executeTrigger(T,t,r);if(!h){for(var d in a.identities){var p=a.identities[d];(typeof r[d]>"u"||null===r[d])&&(r[d]=p.value)}if(a.checks&&a.checks.length>0&&a.checks.forEach((function(t){if(!1===t.fn(r,{},o))throw new Error("Violation of CHECK constraint "+(t.id||""))})),a.columns.forEach((function(t){if(t.notnull&&typeof r[t.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+t.columnid)})),a.pk){var f=(_=a.pk).onrightfn(r);if(typeof a.uniqs[_.hh][f]<"u"){if(!n){if(i)return o.inserted=s,!1;throw new Error("Cannot insert record, because it already exists in primary key index")}l=a.uniqs[_.hh][f]}}if(a.uk&&a.uk.length)for(var g=0;g=p.value?p.value=+r[d]+p.step:p.value+=p.step;var _;if(a.pk)f=(_=a.pk).onrightfn(r),a.uniqs[_.hh][f]=r;if(a.uk&&a.uk.length&&a.uk.forEach((function(t){var e=t.onrightfn(r);a.uniqs[t.hh][e]=r})),a.inddefs)for(var v in a.inddefs){var x=a.inddefs[v],b=x.hh;a.indices[b]&&(f=new Function("r,params,alasql","return "+x.rightfns)(r,e,o),a.indices[b][f]||(a.indices[b][f]=[]),a.indices[b][f].push(r))}}for(var c in a.afterinsert){var T;(T=a.afterinsert[c])&&o.executeTrigger(T,t,r)}o.inserted=s}}},l.delete=function(e){var r=this,n=r.data[e],i=!1;for(var s in r.beforedelete)(l=r.beforedelete[s])&&!1===o.executeTrigger(l,t,n)&&(i=i||!0);if(i)return!1;var a=!1;for(var s in r.insteadofdelete){var l;a=!0,(l=r.insteadofdelete[s])&&o.executeTrigger(l,t,n)}if(!a){if(this.pk){var u=this.pk,c=u.onrightfn(n);if(typeof this.uniqs[u.hh][c]>"u")throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}r.uk&&r.uk.length&&r.uk.forEach((function(t){var e=t.onrightfn(n);if(typeof r.uniqs[t.hh][e]>"u")throw new Error("Something wrong with unique index on table");r.uniqs[t.hh][e]=void 0}))}},l.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),l.uk&&l.uk.length&&l.uk.forEach((function(t){l.uniqs[t.hh]={}}))},l.update=function(e,r,n){var i,s=R(this.data[r]);if(this.pk&&((i=this.pk).pkaddr=i.onrightfn(s,n),typeof this.uniqs[i.hh][i.pkaddr]>"u")){this.uniqs[i.hh]={};for(var a=0;a"u"){l.uniqs[t.hh]={};for(var e=0;e0&&l.checks.forEach((function(t){if(!1===t.fn(s,n,o))throw new Error("Violation of CHECK constraint "+(t.id||""))})),l.columns.forEach((function(t){if(t.notnull&&typeof s[t.columnid]>"u")throw new Error("Wrong NULL value in NOT NULL column "+t.columnid)})),this.pk&&(i.newpkaddr=i.onrightfn(s),typeof this.uniqs[i.hh][i.newpkaddr]<"u"&&i.newpkaddr!==i.pkaddr))throw new Error("Record already exists");for(var h in l.uk&&l.uk.length&&l.uk.forEach((function(t){if(t.newukaddr=t.onrightfn(s),typeof l.uniqs[t.hh][t.newukaddr]<"u"&&t.newukaddr!==t.ukaddr)throw new Error("Record already exists")})),this.pk&&(this.uniqs[i.hh][i.pkaddr]=void 0,this.uniqs[i.hh][i.newpkaddr]=s),l.uk&&l.uk.length&&l.uk.forEach((function(t){l.uniqs[t.hh][t.ukaddr]=void 0,l.uniqs[t.hh][t.newukaddr]=s})),this.data[r]=s,l.afterupdate){var p;(p=l.afterupdate[h])&&o.executeTrigger(p,t,this.data[r],s)}}},o.options.nocount||(u=1),r&&(u=r(u)),u)},o.fn.Date=Object,o.fn.Date=Date,o.fn.Number=Number,o.fn.String=String,o.fn.Boolean=Boolean,ct.EXTEND=o.utils.extend,ct.CHAR=String.fromCharCode.bind(String),ct.ASCII=function(t){return t.charCodeAt(0)},ct.COALESCE=function(){for(var t=0;t"u"||"number"==typeof arguments[t]&&isNaN(arguments[t])))return arguments[t]},ct.USER=function(){return"alasql"},ct.OBJECT_ID=function(t){return!!o.tables[t]},ct.DATE=function(t){return isNaN(t)||8!==t.length?yt(t):new Date(+t.substr(0,4),+t.substr(4,2)-1,+t.substr(6,2))},ct.NOW=function(){if(o.options.dateAsString){var t=new Date,e=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).substr(-2)+"-"+("0"+t.getDate()).substr(-2);return(e+=" "+("0"+t.getHours()).substr(-2)+":"+("0"+t.getMinutes()).substr(-2)+":"+("0"+t.getSeconds()).substr(-2))+"."+("00"+t.getMilliseconds()).substr(-3)}return new Date},ct.GETDATE=ct.NOW,ct.CURRENT_TIMESTAMP=ct.NOW,ct.CURDATE=ct.CURRENT_DATE=function(){var t=new Date;return t.setHours(0,0,0,0),o.options.dateAsString?t.getFullYear()+"-"+("0"+(t.getMonth()+1)).substr(-2)+"-"+("0"+t.getDate()).substr(-2):t},ct.SECOND=function(t){return(t=yt(t)).getSeconds()},ct.MINUTE=function(t){return(t=yt(t)).getMinutes()},ct.HOUR=function(t){return(t=yt(t)).getHours()},ct.DAYOFWEEK=ct.WEEKDAY=function(t){return(t=yt(t)).getDay()},ct.DAY=ct.DAYOFMONTH=function(t){return(t=yt(t)).getDate()},ct.MONTH=function(t){return(t=yt(t)).getMonth()+1},ct.YEAR=function(t){return(t=yt(t)).getFullYear()};var gt={year:31536e6,quarter:7884e6,month:2592e6,week:6048e5,day:864e5,dayofyear:864e5,weekday:864e5,hour:36e5,minute:6e4,second:1e3,millisecond:1,microsecond:.001};o.stdfn.DATEDIFF=function(t,e,r){return(yt(r).getTime()-yt(e).getTime())/gt[t.toLowerCase()]|0},o.stdfn.DATEADD=function(t,e,r){var n=yt(r);switch(t=t.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+e);break;case"quarter":n.setMonth(n.getMonth()+3*e);break;case"month":n.setMonth(n.getMonth()+e);break;default:n=new Date(n.getTime()+e*gt[t])}return n},o.stdfn.INTERVAL=function(t,e){return t*gt[e.toLowerCase()]},o.stdfn.DATE_ADD=o.stdfn.ADDDATE=function(t,e){var r=yt(t).getTime()+e;return new Date(r)},o.stdfn.DATE_SUB=o.stdfn.SUBDATE=function(t,e){var r=yt(t).getTime()-e;return new Date(r)};var mt=/^\d{4}\.\d{2}\.\d{2} \d{2}:\d{2}:\d{2}/;function yt(t){return"string"==typeof t&&mt.test(t)&&(t=t.replace(".","-").replace(".","-")),new Date(t)}function _t(t,e,r){return t.map((function(t){for(var n={},i=0;i0){n=this.sets.map((function(t){return`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");var s=new Function("x,params,alasql",n)}return function(t,n){var a,l=o.databases[e],u={$id:typeof r<"u"?r:l.counter++,$node:"VERTEX"};return l.objects[u.$id]=u,a=u,i&&i(u),s&&s(u,t,o),n&&(a=n(a)),a}},q.CreateEdge=function(t){return Object.assign(this,t)},q.CreateEdge.prototype.toString=function(){var t="CREATE EDGE ";return this.class&&(t+=this.class+" "),t},q.CreateEdge.prototype.toJS=function(t){return"this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+")"},q.CreateEdge.prototype.compile=function(t){var e=t,r=new Function("params,alasql","var y;return "+this.from.toJS()),n=new Function("params,alasql","var y;return "+this.to.toJS());if(typeof this.name<"u")var i="x.name="+this.name.toJS(),s=new Function("x",i);if(this.sets&&this.sets.length>0){i=this.sets.map((function(t){return`x[${JSON.stringify(t.column.columnid)}]=`+t.expression.toJS("x","")})).join(";");var a=new Function("x,params,alasql","var y;"+i)}return(t,i)=>{let l=0,u=o.databases[e],c={$id:u.counter++,$node:"EDGE"},h=r(t,o),d=n(t,o);return c.$in=[h.$id],c.$out=[d.$id],h.$out=h.$out||[],h.$out.push(c.$id),d.$in=d.$in||[],d.$in.push(c.$id),u.objects[c.$id]=c,l=c,s?.(c),a?.(c,t,o),i?i(l):l}},q.CreateGraph=function(t){return Object.assign(this,t)},q.CreateGraph.prototype.toString=function(){var t="CREATE GRAPH ";return this.class&&(t+=this.class+" "),t},q.CreateGraph.prototype.execute=function(t,e,r){var n=[];return this.from&&o.from[this.from.funcid]&&(this.graph=o.from[this.from.funcid.toUpperCase()]),this.graph.forEach((r=>{if(r.source){let s={};void 0!==r.as&&(o.vars[r.as]=s),void 0!==r.prop&&(s.name=r.prop),void 0!==r.sharp&&(s.$id=r.sharp),void 0!==r.name&&(s.name=r.name),void 0!==r.class&&(s.$class=r.class);let a=o.databases[t];s.$id=void 0!==s.$id?s.$id:a.counter++,s.$node="EDGE",void 0!==r.json&&Object.assign(s,new Function("params, alasql",`return ${r.json.toJS()}`)(e,o));let l=(t,e)=>{let r,n;if(t.vars)n=o.vars[t.vars],r="object"==typeof n?n:a.objects[n];else{let e=t.sharp||t.prop;r=a.objects[e],void 0===r&&o.options.autovertex&&(t.prop||t.name)&&(r=function(t){var e=o.databases[o.useid].objects;for(var r in e)if(e[r].name===t)return e[r]}(t.prop||t.name)||i(t))}return e&&r&&typeof r.$out>"u"&&(r.$out=[]),!e&&r&&typeof r.$in>"u"&&(r.$in=[]),r},u=l(r.source,!0),c=l(r.target,!1);if(s.$in=[u.$id],s.$out=[c.$id],u.$out.push(s.$id),c.$in.push(s.$id),a.objects[s.$id]=s,void 0!==s.$class){let e=o.databases[t].tables[s.$class];if(void 0===e)throw new Error("No such class. Please use CREATE CLASS");e.data.push(s)}n.push(s.$id)}else i(r)})),r&&(n=r(n)),n;function i(r){var i={};typeof r.as<"u"&&(o.vars[r.as]=i),typeof r.prop<"u"&&(i.$id=r.prop,i.name=r.prop),typeof r.sharp<"u"&&(i.$id=r.sharp),typeof r.name<"u"&&(i.name=r.name),typeof r.class<"u"&&(i.$class=r.class);var s=o.databases[t];if(typeof i.$id>"u"&&(i.$id=s.counter++),i.$node="VERTEX",typeof r.json<"u"&&I(i,new Function("params,alasql","var y;return "+r.json.toJS())(e,o)),s.objects[i.$id]=i,typeof i.$class<"u"){if(typeof o.databases[t].tables[i.$class]>"u")throw new Error("No such class. Pleace use CREATE CLASS");o.databases[t].tables[i.$class].data.push(i)}return n.push(i.$id),i}},q.CreateGraph.prototype.compile1=function(t){let e,r,n=t,i=new Function("params, alasql",`return ${this.from.toJS()}`),s=new Function("params, alasql",`return ${this.to.toJS()}`);if(void 0!==this.name){let t=`x.name = ${this.name.toJS()}`;e=new Function("x",t)}if(this.sets&&this.sets.length>0){let t=this.sets.map((t=>`x[${JSON.stringify(t.column.columnid)}] = ${t.expression.toJS("x","")}`)).join(";");r=new Function("x, params, alasql",`var y; ${t}`)}return(t,a)=>{let l=0,u=o.databases[n],c={$id:u.counter++,$node:"EDGE"},h=i(t,o),d=s(t,o);return c.$in=[h.$id],c.$out=[d.$id],h.$out=h.$out||[],h.$out.push(c.$id),d.$in=d.$in||[],d.$in.push(c.$id),u.objects[c.$id]=c,l=c,e&&e(c),r&&r(c,t,o),a&&(l=a(l)),l}},q.AlterTable=function(t){return Object.assign(this,t)},q.AlterTable.prototype.toString=function(){let t="ALTER TABLE "+this.table.toString();return this.renameto&&(t+=" RENAME TO "+this.renameto),t},q.AlterTable.prototype.execute=function(t,e,r){let n=o.databases[t];if(n.dbversion=Date.now(),this.renameto){var i=this.table.tableid,s=this.renameto;if(n.tables[s])throw new Error(`Can not rename a table "${i}" to "${s}" because the table with this name already exists`);if(s===i)throw new Error(`Can not rename a table "${i}" to itself`);return n.tables[s]=n.tables[i],delete n.tables[i],r&&r(1),1}if(this.addcolumn){n=o.databases[this.table.databaseid||t],n.dbversion++;var a=this.table.tableid,l=n.tables[a],u=this.addcolumn.columnid;if(l.xcolumns[u])throw new Error(`Cannot add column "${u}" because it already exists in table "${a}"`);var c={columnid:u,dbtypeid:this.addcolumn.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null};l.columns.push(c),l.xcolumns[u]=c;for(let t=0,e=l.data.length;t0)for(var h=0,d=s.data.length;h0)for(h=0,d=s.data.length;h0&&(c=t.columns.map((function(t){return t.columnid})));var d=new q.Select(l);d.modifier="ALASQL_DETAILS";var p=d.execute(e,r),f=p.columns.map((function(t){return t.columnid}));c||(c=f);var g=_t(p.data,f,c);a.data=g.slice();for(var m=g,y=g.slice(),_=0;m.length>0&&_t.toString())).join(", ")),this.output&&(t+=" OUTPUT ",t+=this.output.columns.map((t=>t.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.Insert.prototype.toJS=function(t,e,r){return"this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+t+")"},q.Insert.prototype.compile=function(t){var e=this;if(e.into instanceof q.ParamValue)return q.compileParamValue(e.into.param,"INSERT",!0,t,e,"into");t=e.into.databaseid||t;var r=o.databases[t],n=e.into.tableid,i=r.tables[n];if(!i)throw"Table '"+n+"' could not be found";var s,a=function(t,e,r){return`The number of values (${t}) does not match the number of ${r} (${e}). If using a subquery, use INSERT INTO ... SELECT instead of INSERT INTO ... VALUES (SELECT ...)`},l="",u="",c=(l="db.tables['"+n+"'].dirty=true;","var a,aa=[],x;");if(this.values){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),e.values.forEach((function(s){var c=[];if(e.columns){if(s.length!==e.columns.length)throw new Error(a(s.length,e.columns.length,"columns"));e.columns.forEach((function(t,e){var r="'"+t.columnid+"':";i.xcolumns&&i.xcolumns[t.columnid]?["INT","FLOAT","NUMBER","MONEY"].indexOf(i.xcolumns[t.columnid].dbtypeid)>=0?r+="(x="+s[e].toJS()+",x==undefined?undefined:+x)":o.fn[i.xcolumns[t.columnid].dbtypeid]?(r+="(new "+i.xcolumns[t.columnid].dbtypeid+"(",r+=s[e].toJS(),r+="))"):r+=s[e].toJS():r+=s[e].toJS(),c.push(r)}))}else if(Array.isArray(s)&&i.columns&&i.columns.length>0){if(s.length!==i.columns.length)throw new Error(a(s.length,i.columns.length,"table columns"));i.columns.forEach((function(t,e){var r="'"+t.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(t.dbtypeid)>=0?r+="+"+s[e].toJS():o.fn[t.dbtypeid]?(r+="(new "+t.dbtypeid+"(",r+=s[e].toJS(),r+="))"):r+=s[e].toJS(),c.push(r)}))}else u=ft(s);r.tables[n].defaultfns&&c.unshift(r.tables[n].defaultfns),l+=u?"a="+u+";":"a={"+c.join(",")+"};",r.tables[n].isclass&&(l+="var db=alasql.databases['"+t+"'];",l+='a.$class="'+n+'";',l+="a.$id=db.counter++;",l+="db.objects[a.$id]=a;"),r.tables[n].insert?(l+="var db=alasql.databases['"+t+"'];",l+="var inserted=db.tables['"+n+"'].insert(a,"+(e.orreplace?"true":"false")+","+(e.ignore?"true":"false")+");",e.ignore&&(l+="if(inserted!==false){"),(e.output||e.ignore)&&(l+="aa.push(a);"),e.ignore&&(l+="}")):l+="aa.push(a);"})),s=c+l,r.tables[n].insert||(l+="alasql.databases['"+t+"'].tables['"+n+"'].data=alasql.databases['"+t+"'].tables['"+n+"'].data.concat(aa);"),e.output?(l+="var output = [];",l+="for(var i=0;i"+(i+1),r.forEach((function(r){e+=" ",t[i][r]==+t[i][r]?(e+='
',typeof t[i][r]>"u"?e+="NULL":e+=t[i][r],e+="
"):typeof t[i][r]>"u"?e+="NULL":"string"==typeof t[i][r]?e+=t[i][r]:e+=pt(t[i][r])}));e+=""}else e+="

"+pt(t)+"

";return e}function Tt(t,e,r){if(!(r<=0)){var n=(e-t.scrollTop)/r*10;setTimeout((function(){t.scrollTop!==e&&(t.scrollTop=t.scrollTop+n,Tt(t,e,r-10))}),10)}}q.CreateTrigger.prototype.execute=function(t,e,r){let n=1,i=this.trigger;t=this.table.databaseid||t;let s=o.databases[t],{tableid:a}=this.table,l={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid,tableid:a};s.triggers[i]=l;let u=`${this.when}${this.action}`.toLowerCase();return xt.includes(u)&&(s.tables[a]=s.tables[a]||{},s.tables[a][u]=s.tables[a][u]||{},s.tables[a][u][i]=l),r&&(n=r(n)),n},q.DropTrigger=function(t){return Object.assign(this,t)},q.DropTrigger.prototype.toString=function(){return"DROP TRIGGER "+this.trigger},q.DropTrigger.prototype.execute=function(t,e,r){let n=0,i=o.databases[t],s=this.trigger,a=i.triggers[s];if(!a)throw new Error("Trigger not found");{let{tableid:t}=a;if(!t)throw new Error("Trigger Table not found");n=1,xt.forEach((e=>{delete i.tables[t][e][s]})),delete i.triggers[s]}return r&&(n=r(n)),n},o.executeTrigger=function(t,e,...r){if(t){if(t.funcid)return o.fn[t.funcid](...r);if(t.statement)return t.statement.expression&&t.statement.expression.funcid?o.fn[t.statement.expression.funcid](...r):t.statement.execute(e)}},q.Delete=function(t){return Object.assign(this,t)},q.Delete.prototype.toString=function(){var t="DELETE FROM "+this.table.toString();return this.where&&(t+=" WHERE "+this.where.toString()),this.output&&(t+=" OUTPUT ",t+=this.output.columns.map((t=>t.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.Delete.prototype.compile=function(t){var e=this;if(this.table instanceof q.ParamValue)return q.compileParamValue(this.table.param,"DELETE",!0,t,e,"table");t=this.table.databaseid||t;var r,n=this.table.tableid,i=o.databases[t];if(this.where){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r})));var s=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);r=function(r,a){if(i.engineid&&o.engines[i.engineid].deleteFromTable)return o.engines[i.engineid].deleteFromTable(t,n,s,r,a);o.options.autocommit&&i.engineid&&("LOCALSTORAGE"==i.engineid||"FILESTORAGE"==i.engineid)&&o.engines[i.engineid].loadTableData(t,n);for(var l=i.tables[n],u=l.data.length,c=[],h=[],d=0,p=l.data.length;dt.toString())).join(", "),this.output.intovar?t+=" INTO "+this.output.method+this.output.intovar:this.output.intotable&&(t+=" INTO "+this.output.intotable.toString(),this.output.intocolumns&&(t+="("+this.output.intocolumns.map((t=>t.toString())).join(", ")+")"))),t},q.SetColumn=function(t){return Object.assign(this,t)},q.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},q.Update.prototype.compile=function(t){var e=this;if(this.table instanceof q.ParamValue)return q.compileParamValue(this.table.param,"UPDATE",!1,t,e,"table");t=this.table.databaseid||t;var r=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r}))),this.queries&&(this.queriesfn=this.queries.map((function(e){var r=e.compile(t);return r.query.modifier="RECORDSET",r})));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var i=o.databases[t].tables[r].onupdatefns||"";i+=";",this.columns.forEach((function(t){i+="r['"+t.column.columnid+"']="+t.expression.toJS("r","")+";"}));var s=new Function("r,params,alasql","var y;"+i);return function(i,a){var l=o.databases[t];if(l.engineid&&o.engines[l.engineid].updateTable)return o.engines[l.engineid].updateTable(t,r,s,n,i,a);o.options.autocommit&&l.engineid&&o.engines[l.engineid].loadTableData(t,r);var u=l.tables[r];if(!u)throw new Error("Table '"+r+"' not exists");for(var c=0,h=[],d=0,p=u.data.length;d{t+="WHEN ",e.matched||(t+="NOT "),t+="MATCHED ",e.bytarget&&(t+="BY TARGET "),e.bysource&&(t+="BY SOURCE "),e.expr&&(t+=`AND ${e.expr.toString()} `),t+="THEN ",e.action.delete&&(t+="DELETE "),e.action.insert&&(t+="INSERT ",e.action.columns&&(t+=`(${e.action.columns.toString()}) `),e.action.values&&(t+=`VALUES (${e.action.values.toString()}) `),e.action.defaultvalues&&(t+="DEFAULT VALUES ")),e.action.update&&(t+="UPDATE ",t+=e.action.update.map((t=>t.toString())).join(", ")+" ")})),t},q.Merge.prototype.execute=function(t,e,r){var n=1;return r&&(n=r(n)),n},q.CreateDatabase=function(t){return Object.assign(this,t)},q.CreateDatabase.prototype.toString=function(){let t="CREATE ";return this.engineid&&(t+=`${this.engineid} `),t+="DATABASE ",this.ifnotexists&&(t+="IF NOT EXISTS "),t+=`${this.databaseid} `,this.args&&this.args.length>0&&(t+=`(${this.args.map((t=>t.toString())).join(", ")}) `),this.as&&(t+=`AS ${this.as}`),t},q.CreateDatabase.prototype.execute=function(t,e,r){if(this.args&&this.args.length>0&&this.args.map((function(t){return new Function("params,alasql","var y;return "+t.toJS())(e,o)})),this.engineid)return o.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,r);var n=this.databaseid;if(o.databases[n])throw new Error("Database '"+n+"' already exists");new o.Database(n);var i=1;return r?r(i):i},q.AttachDatabase=function(t){return Object.assign(this,t)},q.AttachDatabase.prototype.toString=function(t){let e="ATTACH";return this.engineid&&(e+=` ${this.engineid}`),e+=` DATABASE ${this.databaseid}`,t&&(e+="(",t.length>0&&(e+=t.map((t=>t.toString())).join(", ")),e+=")"),this.as&&(e+=` AS ${this.as}`),e},q.AttachDatabase.prototype.execute=function(t,e,r){if(!o.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');return o.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,e,r)},q.DetachDatabase=function(t){return Object.assign(this,t)},q.DetachDatabase.prototype.toString=function(){return"DETACH"+" DATABASE "+this.databaseid},q.DetachDatabase.prototype.execute=function(t,e,r){if(!o.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var n,i=this.databaseid;if(i===o.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(o.databases[i]){var s=o.databases[i].engineid&&"FILESTORAGE"==o.databases[i].engineid,a=o.databases[i].filename||"";delete o.databases[i],s&&(o.databases[i]={},o.databases[i].isDetached=!0,o.databases[i].filename=a),i===o.useid&&o.use(),n=1}else{if(!this.ifexists)throw new Error("Database '"+i+"' does not exist");n=0}return r&&r(n),n},q.UseDatabase=function(t){return Object.assign(this,t)},q.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},q.UseDatabase.prototype.execute=function(t,e,r){var n=this.databaseid;if(!o.databases[n])throw new Error("Database '"+n+"' does not exist");return o.use(n),r&&r(1),1},q.DropDatabase=function(t){return Object.assign(this,t)},q.DropDatabase.prototype.toString=function(){var t="DROP";return this.ifexists&&(t+=" IF EXISTS"),t+" DATABASE "+this.databaseid},q.DropDatabase.prototype.execute=function(t,e,r){if(this.engineid)return o.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,r);let n,i=this.databaseid;if(i===o.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(o.databases[i]){if(o.databases[i].engineid)throw new Error(`Cannot drop database '${i}', because it is attached. Detach it.`);delete o.databases[i],i===o.useid&&o.use(),n=1}else{if(!this.ifexists)throw new Error(`Database '${i}' does not exist`);n=0}return r&&r(n),n},q.Declare=function(t){return Object.assign(this,t)},q.Declare.prototype.toString=function(){let t="DECLARE ";return this.declares&&this.declares.length>0&&(t+=this.declares.map((t=>{let e=`@${t.variable} ${t.dbtypeid}`;return t.dbsize&&(e+=`(${t.dbsize}`,t.dbprecision&&(e+=`,${t.dbprecision}`),e+=")"),t.expression&&(e+=` = ${t.expression.toString()}`),e})).join(",")),t},q.Declare.prototype.execute=function(t,e,r){var n=1,i=this;return i.declares&&i.declares.length>0&&i.declares.forEach((function(t){var r=t.dbtypeid;o.fn[r]||(r=r.toUpperCase()),o.declares[t.variable]={dbtypeid:r,dbsize:t.dbsize,dbprecision:t.dbprecision},t.expression&&(o.vars[t.variable]=new Function("params,alasql","return "+t.expression.toJS("({})","",null)).bind(i)(e,o),o.declares[t.variable]&&(o.vars[t.variable]=o.stdfn.CONVERT(o.vars[t.variable],o.declares[t.variable])))})),r&&(n=r(n)),n},q.ShowDatabases=function(t){return Object.assign(this,t)},q.ShowDatabases.prototype.toString=function(){var t="SHOW DATABASES";return this.like&&(t+="LIKE "+this.like.toString()),t},q.ShowDatabases.prototype.execute=function(t,e,r){if(this.engineid)return o.engines[this.engineid].showDatabases(this.like,r);var n=this,i=[];for(var s in o.databases)i.push({databaseid:s});return n.like&&i&&i.length>0&&(i=i.filter((function(t){return o.utils.like(n.like.value,t.databaseid)}))),r&&r(i),i},q.ShowTables=function(t){return Object.assign(this,t)},q.ShowTables.prototype.toString=function(){var t="SHOW TABLES";return this.databaseid&&(t+=" FROM "+this.databaseid),this.like&&(t+=" LIKE "+this.like.toString()),t},q.ShowTables.prototype.execute=function(t,e,r){var n=o.databases[this.databaseid||t],i=this,s=[];for(var a in n.tables)s.push({tableid:a});return i.like&&s&&s.length>0&&(s=s.filter((function(t){return o.utils.like(i.like.value,t.tableid)}))),r&&r(s),s},q.ShowColumns=function(t){return Object.assign(this,t)},q.ShowColumns.prototype.toString=function(){var t="SHOW COLUMNS";return this.table.tableid&&(t+=" FROM "+this.table.tableid),this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowColumns.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||this.databaseid||t].tables[this.table.tableid];if(n&&n.columns){var i=n.columns.map((function(t){return{columnid:t.columnid,dbtypeid:t.dbtypeid,dbsize:t.dbsize}}));return r&&r(i),i}return r&&r([]),[]},q.ShowIndex=function(t){return Object.assign(this,t)},q.ShowIndex.prototype.toString=function(){var t="SHOW INDEX";return this.table.tableid&&(t+=" FROM "+this.table.tableid),this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowIndex.prototype.execute=function(t,e,r){var n=o.databases[this.table.databaseid||this.databaseid||t].tables[this.table.tableid],i=[];if(n&&n.indices)for(var s in n.indices)i.push({hh:s,len:Object.keys(n.indices[s]).length});return r&&r(i),i},q.ShowCreateTable=function(t){return Object.assign(this,t)},q.ShowCreateTable.prototype.toString=function(){var t="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(t+=" FROM "+this.databaseid),t},q.ShowCreateTable.prototype.execute=function(t){var e=o.databases[this.databaseid||t].tables[this.table.tableid];if(e){var r="CREATE TABLE "+this.table.tableid+" (",n=[];return e.columns&&(e.columns.forEach((function(t){var e=t.columnid+" "+t.dbtypeid;t.dbsize&&(e+="("+t.dbsize+")"),t.primarykey&&(e+=" PRIMARY KEY"),n.push(e)})),r+=n.join(", ")),r+")"}throw new Error('There is no such table "'+this.table.tableid+'"')},q.SetVariable=function(t){return Object.assign(this,t)},q.SetVariable.prototype.toString=function(){var t="SET ";return typeof this.value<"u"&&(t+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(t+=this.method+this.variable+" = "+this.expression.toString()),t},q.SetVariable.prototype.execute=function(t,e,r){if(typeof this.value<"u"){let t=this.value;"ON"===t?t=!0:"OFF"===t&&(t=!1),o.options[this.variable]=t}else if(this.expression){this.exists&&(this.existsfn=this.exists.map((e=>{let r=e.compile(t);return r.query&&!r.query.modifier&&(r.query.modifier="RECORDSET"),r}))),this.queries&&(this.queriesfn=this.queries.map((e=>{let r=e.compile(t);return r.query&&!r.query.modifier&&(r.query.modifier="RECORDSET"),r})));let r=new Function("params, alasql","return "+this.expression.toJS("({})","",null)).bind(this)(e,o);if(o.declares[this.variable]&&(r=o.stdfn.CONVERT(r,o.declares[this.variable])),this.props&&this.props.length>0){let t;t="@"===this.method?`alasql.vars['${this.variable}']`:`params['${this.variable}']`,this.props.forEach((e=>{t+="string"==typeof e?`['${e}']`:"number"==typeof e?`[${e}]`:`[${e.toJS()}]`})),new Function("value, params, alasql",`${t} = value`)(r,e,o)}else"@"===this.method?o.vars[this.variable]=r:e[this.variable]=r}let n=1;return r&&(n=r(n)),n},o.test=function(t,e,r){if(0!==arguments.length){var n=Date.now();if(1===arguments.length)return r(),void o.con.log(Date.now()-n);2===arguments.length&&(r=e,e=1);for(var i=0;i",t),Array.isArray(r)&&console.table?console.table(r):console.log(pt(r));else{var s;s="output"===i?document.getElementsByTagName("output")[0]:"string"==typeof i?document.getElementById(i):i;var a="";if("string"==typeof t&&o.options.logprompt&&(a+="
"+o.pretty(t)+"
"),Array.isArray(r))if(0===r.length)a+="

[ ]

";else if("object"!=typeof r[0]||Array.isArray(r[0]))for(var u=0,c=r.length;u"+bt(r[u])+"

";else a+=bt(r);else a+=bt(r);s.innerHTML+=a}},o.clear=function(){var t=o.options.logtarget;l.isNode||l.isMeteorServer?console.clear&&console.clear():("output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t).innerHTML=""},o.write=function(t){var e=o.options.logtarget;l.isNode||l.isMeteorServer?console.log&&console.log(t):("output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e).innerHTML+=t},o.prompt=function(t,e,r){if(l.isNode)throw new Error("The prompt not realized for Node.js");var n=0;if("string"==typeof t&&(t=document.getElementById(t)),"string"==typeof e&&(e=document.getElementById(e)),e.textContent=o.useid,r){o.prompthistory.push(r),n=o.prompthistory.length;try{var i=Date.now();o.log(r),o.write('

'+(Date.now()-i)+" ms

")}catch(t){o.write("

"+o.useid+"> "+r+"

"),o.write('

'+t+"

")}}var s=t.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;Tt(document.getElementsByTagName("body")[0],s,500),t.onkeydown=function(r){if(13===r.which){var i=t.value,s=o.useid;t.value="",o.prompthistory.push(i),n=o.prompthistory.length;try{var a=Date.now();o.log(i),o.write('

'+(Date.now()-a)+" ms

")}catch(t){o.write("

"+s+"> "+o.pretty(i,!1)+"

"),o.write('

'+t+"

")}t.focus(),e.textContent=o.useid;var l=t.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;Tt(document.getElementsByTagName("body")[0],l,500)}else 38===r.which?(--n<0&&(n=0),o.prompthistory[n]&&(t.value=o.prompthistory[n],r.preventDefault())):40===r.which&&(++n>=o.prompthistory.length?(n=o.prompthistory.length,t.value=""):o.prompthistory[n]&&(t.value=o.prompthistory[n],r.preventDefault()))}},q.BeginTransaction=function(t){return Object.assign(this,t)},q.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},q.BeginTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[o.useid].engineid].begin(t,r):(r&&(n=r(n)),n)},q.CommitTransaction=function(t){return Object.assign(this,t)},q.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},q.CommitTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[o.useid].engineid].commit(t,r):(r&&(n=r(n)),n)},q.RollbackTransaction=function(t){return Object.assign(this,t)},q.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},q.RollbackTransaction.prototype.execute=function(t,e,r){var n=1;return o.databases[t].engineid?o.engines[o.databases[t].engineid].rollback(t,r):(r&&(n=r(n)),n)},o.options.tsql&&(o.stdfn.OBJECT_ID=function(t,e){typeof e>"u"&&(e="T"),e=e.toUpperCase();var r=t.split("."),n=o.useid,i=r[0];2==r.length&&(n=r[0],i=r[1]);var s=o.databases[n].tables;for(var a in n=o.databases[n].databaseid,s)if(a==i)return s[a].view&&"V"==e||!s[a].view&&"T"==e?n+"."+a:void 0}),o.options.mysql&&(o.fn.TIMESTAMPDIFF=function(t,e,r){return o.stdfn.DATEDIFF(t,e,r)}),(o.options.mysql||o.options.sqlite)&&(o.from.INFORMATION_SCHEMA=function(t,e,r,n,i){if("VIEWS"==t||"TABLES"==t){var s=[];for(var a in o.databases){var l=o.databases[a].tables;for(var u in l)(l[u].view&&"VIEWS"==t||!l[u].view&&"TABLES"==t)&&s.push({TABLE_CATALOG:a,TABLE_NAME:u})}return r&&(s=r(s,n,i)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),o.options.postgres,o.options.oracle,o.options.sqlite,o.into.SQL=function(t,e,r,n,i){var s;"object"==typeof t&&(e=t,t=void 0);var a={};if(o.utils.extend(a,e),typeof a.tableid>"u")throw new Error("Table for INSERT TO is not defined.");var l="";0===n.length&&"object"==typeof r[0]&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}})));for(var u=0,c=r.length;u0&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}}))),"object"==typeof t&&(e=t,t=void 0);var s=r.length,a="";if(r.length>0){var l=n[0].columnid;a+=r.map((function(t){return t[l]})).join("\n")}return t=o.utils.autoExtFilename(t,"txt",e),s=o.utils.saveFile(t,a),i&&(s=i(s)),s},o.into.TAB=o.into.TSV=function(t,e,r,n,i){var s={};return o.utils.extend(s,e),s.separator="\t",t=o.utils.autoExtFilename(t,"tab",e),s.autoExt=!1,o.into.CSV(t,s,r,n,i)},o.into.CSV=function(t,e,r,n,i){0===n.length&&r.length>0&&(n=Object.keys(r[0]).map((function(t){return{columnid:t}}))),"object"==typeof t&&(e=t,t=void 0);var s={headers:!0,separator:";",quote:'"',utf8Bom:!0};e&&!e.headers&&typeof e.headers<"u"&&(s.utf8Bom=!1),o.utils.extend(s,e);var a=r.length,l=s.utf8Bom?"\ufeff":"";return s.headers&&(l+=s.quote+n.map((function(t){return t.columnid.trim()})).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),r.forEach((function(t){l+=n.map((function(e){var r=t[e.columnid];return""!==s.quote&&(r=(r+"").replace(new RegExp("\\"+s.quote,"g"),s.quote+s.quote)),+r!=r&&(r=s.quote+r+s.quote),r})).join(s.separator)+"\r\n"})),t=o.utils.autoExtFilename(t,"csv",e),a=o.utils.saveFile(t,l,null,{disableAutoBom:!0}),i&&(a=i(a)),a},o.into.XLS=function(t,e,r,n,i){"object"==typeof t&&(e=t,t=void 0);var s={};e&&e.sheets&&(s=e.sheets);var a={headers:!0};typeof s.Sheet1<"u"?a=s[0]:typeof e<"u"&&(a=e),typeof a.sheetid>"u"&&(a.sheetid="Sheet1");var l=function(){var t=' \t\t \t\t\x3c!--[if gte mso 9]> ';if(t+=" "+a.sheetid+" \t\t",t+="",t+="",t+="",typeof a.caption<"u"){var i=a.caption;"string"==typeof i&&(i={title:i}),t+=""}return typeof a.columns<"u"?n=a.columns:0==n.length&&r.length>0&&"object"==typeof r[0]&&(n=Array.isArray(r[0])?r[0].map((function(t,e){return{columnid:e}})):Object.keys(r[0]).map((function(t){return{columnid:t}}))),n.forEach((function(t,e){typeof a.column<"u"&&I(t,a.column),typeof t.width>"u"&&(a.column&&"undefined"!=a.column.width?t.width=a.column.width:t.width="120px"),"number"==typeof t.width&&(t.width=t.width+"px"),typeof t.columnid>"u"&&(t.columnid=e),typeof t.title>"u"&&(t.title=""+t.columnid.trim()),a.headers&&Array.isArray(a.headers)&&(t.title=a.headers[e])})),t+="",n.forEach((function(e){t+=''})),t+="",a.headers&&(t+="",t+="",n.forEach((function(e,r){t+="",t+=""),t+="",r&&r.length>0&&r.forEach((function(r,i){if(!(i>a.limit)){t+=""u"&&("number"==typeof u?c="number":"string"==typeof u?c="string":"boolean"==typeof u?c="boolean":"object"==typeof u&&u instanceof Date&&(c="date"));var h="";"money"==c?h='mso-number-format:"\\#\\,\\#\\#0\\\\ _р_\\.";white-space:normal;':"number"==c?h=" ":"date"==c?h='mso-number-format:"Short Date";':e.types&&e.types[c]&&e.types[c].typestyle&&(h=e.types[c].typestyle),t+=""})),t+=""}})),t+="",t+="
"})),t+="
"u")t+="";else if(typeof d<"u")if("function"==typeof d)t+=d(u);else{if("string"!=typeof d)throw new Error("Unknown format type. Should be function or string");t+=u}else t+="number"==c||"date"==c?u.toString():"money"==c?(+u).toFixed(2):u;t+="
",t+="",t+=""}();t=o.utils.autoExtFilename(t,"xls",e);var u=o.utils.saveFile(t,l);return i&&(u=i(u)),u},o.into.XLSXML=function(t,e,r,n,i){e=e||{},"object"==typeof t&&(e=t,t=void 0);var s,a,l={};e&&e.sheets?(l=e.sheets,s=r,a=n):(l.Sheet1=e,s=[r],a=[n]),t=o.utils.autoExtFilename(t,"xls",e);var u=o.utils.saveFile(t,function(){function t(t){return null==t?"":String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var r="",n=" ",i={},o=62;function u(t){var e="";for(var n in t){for(var s in e+="<"+n,t[n])e+=" ","x:"==s.substr(0,2)?e+=s:e+="ss:",e+=s+"="+JSON.stringify(t[n][s]);e+="/>"}var a=T(e);return i[a]||(i[a]={styleid:o},r+=`",o++),"s"+i[a].styleid}function c(t){try{return Object.values(t)}catch{return Object.keys(t).map((function(e){return t[e]}))}}var h=0;for(var d in l){var p=l[d],f=typeof p.dataidx<"u"?p.dataidx:h++,g=c(s[f]),m=void 0;typeof p.columns<"u"?m=p.columns:(void 0===(m=a[f])||0==m.length&&g.length>0)&&"object"==typeof g[0]&&(m=Array.isArray(g[0])?g[0].map((function(t,e){return{columnid:e}})):Object.keys(g[0]).map((function(t){return{columnid:t}}))),m.forEach((function(t,e){typeof p.column<"u"&&I(t,p.column),typeof t.width>"u"&&(p.column&&typeof p.column.width<"u"?t.width=p.column.width:t.width=120),"number"==typeof t.width&&(t.width=t.width),typeof t.columnid>"u"&&(t.columnid=e),typeof t.title>"u"&&(t.title=""+t.columnid.trim()),p.headers&&Array.isArray(p.headers)&&(t.title=p.headers[e])})),n+="',m.forEach((function(t,e){n+=`\n\t\t\t\t\t`})),p.headers&&(n+='',m.forEach((function(e,r){if(n+=""})),n+=""),g&&g.length>0&&g.forEach((function(r,i){if(!(i>p.limit)){var o={};if(I(o,p.row),p.rows&&p.rows[i]&&I(o,p.rows[i]),n+=""u"&&("number"==typeof c?h="number":"string"==typeof c?h="string":"boolean"==typeof c?h="boolean":"object"==typeof c&&c instanceof Date&&(h="date"));var d="String";"number"==h?d="Number":"date"==h&&(d="Date"),"money"==h||"number"==h||"date"==h||e.types&&e.types[h]&&e.types[h].typestyle&&e.types[h].typestyle,n+="";var g=l.format;if(typeof c>"u")n+="";else if(typeof g<"u")if("function"==typeof g)n+=t(g(c));else{if("string"!=typeof g)throw new Error("Unknown format type. Should be function or string");n+=t(c)}else n+=t("number"==h||"date"==h?c.toString():"money"==h?(+c).toFixed(2):c);n+=""})),n+=""}})),n+=""}return' \t\t \t\t \t\t \t\t \t\t \t\t \t\t \t\t 0 \t\t \t\t \t\t '+r+(n+="")}());return i&&(u=i(u)),u},o.into.XLSX=function(t,e,r,n,i){var s=1;e=e||{},C(n,[{columnid:"_"}])&&(r=r.map((function(t){return t._})),n=void 0),t=o.utils.autoExtFilename(t,"xlsx",e);var a=M();"object"==typeof t&&(e=t,t=void 0);var u={SheetNames:[],Sheets:{}};return e.sourcefilename?o.utils.loadBinaryFile(e.sourcefilename,!!i,(function(t){u=a.read(t,{type:"binary",...o.options.excel,...e}),c(),i&&(s=i(s))})):(c(),i&&(s=i(s))),s;function c(){"object"==typeof e&&Array.isArray(e)?r&&r.length>0&&r.forEach((function(t,r){h(e[r],t,void 0,r+1)})):h(e,r,n,1),function(e){var r;if(typeof t>"u")s=u;else if(r=M(),l.isNode||l.isMeteorServer)r.writeFile(u,t);else{var n=r.write(u,{bookType:"xlsx",bookSST:!1,type:"binary"});Ct(new Blob([function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=255&t.charCodeAt(n);return e}(n)],{type:"application/octet-stream"}),t)}}()}function h(t,e,r,n){var i={sheetid:"Sheet "+n,headers:!0};o.utils.extend(i,t);var s=Object.keys(e).length;(!r||0==r.length)&&(r=s>0?Object.keys(e[0]).map((function(t){return{columnid:t}})):[]);var a={};u.SheetNames.indexOf(i.sheetid)>-1||(u.SheetNames.push(i.sheetid),u.Sheets[i.sheetid]={}),a=u.Sheets[i.sheetid];var l="A1";i.range&&(l=i.range);var c=o.utils.xlscn(l.match(/[A-Z]+/)[0]),h=+l.match(/[0-9]+/)[0]-1;if(u.Sheets[i.sheetid]["!ref"])var d=u.Sheets[i.sheetid]["!ref"],p=o.utils.xlscn(d.match(/[A-Z]+/)[0]),f=+d.match(/[0-9]+/)[0]-1;else p=1,f=1;var g=r.length?0:1,m=Math.max(c+r.length-1+g,p),y=Math.max(h+s+2,f),_=h+1;u.Sheets[i.sheetid]["!ref"]="A1:"+o.utils.xlsnc(m)+y,i.headers&&(r.forEach((function(t,e){a[o.utils.xlsnc(c+e)+""+_]={v:t.columnid.trim()}})),_++);for(var v=0;vfunction(e,r,n,i,s){let a=[];return e=o.utils.autoExtFilename(e,t,r),o.utils.loadFile(e,!!n,(function(t){t.split(/\r?\n/).forEach(((t,e)=>{let r=t.trim();if(""!==r)try{a.push(JSON.parse(r))}catch(t){throw new Error(`Could not parse JSON at line ${e}: ${t.toString()}`)}})),n&&(a=n(a,i,s))}),(t=>{let e=t instanceof Error?t:new Error(t);if(!s||!s.cb)throw e;s.cb(null,e)})),a};function Ot(t,e,r,n,i,s){var a,l={};function u(t){return t&&!1===o.options.casesensitive?t.toLowerCase():t}function c(t,e,r){var n,i=[];if(typeof r.range>"u"?n=t.Sheets[e]["!ref"]:(n=r.range,t.Sheets[e][n]&&(n=t.Sheets[e][n])),n){for(var s=n.split(":"),a=s[0].match(/[A-Z]+/)[0],l=+s[0].match(/[0-9]+/)[0],c=s[1].match(/[A-Z]+/)[0],h=+s[1].match(/[0-9]+/)[0],d={},p=o.utils.xlscn(a),f=o.utils.xlscn(c),g=p;g<=f;g++){var m=o.utils.xlsnc(g);r.headers?t.Sheets[e][m+""+l]?d[m]=u(t.Sheets[e][m+""+l].v):d[m]=u(m):d[m]=m}r.headers&&l++;for(var y=l;y<=h;y++){var _={};for(g=p;g<=f;g++)m=o.utils.xlsnc(g),t.Sheets[e][m+""+y]&&(_[d[m]]=t.Sheets[e][m+""+y].v);i.push(_)}}else i.push([]);return i.length>0&&i[i.length-1]&&0==Object.keys(i[i.length-1]).length&&i.pop(),i}return r=r||{},o.utils.extend(l,r),typeof l.headers>"u"&&(l.headers=!0),e=o.utils.autoExtFilename(e,"xls",r),o.utils.loadBinaryFile(e,!!n,(function(e){if(e instanceof ArrayBuffer)var u=function(t){for(var e="",r=0,n=10240;r0){a=[];for(var d="*"===l.sheetid?h.SheetNames:l.sheetid,p=0;p"u"?h.SheetNames[0]:"number"==typeof l.sheetid?h.SheetNames[l.sheetid]:l.sheetid,a=c(h,y,l)}n&&(a=n(a,i,s))}),(function(t){if(!s||!s.cb)throw t;s.cb(null,t)})),a}o.from.JSONL=Et("jsonl"),o.from.NDJSON=Et("ndjson"),o.from.TXT=function(t,e,r,n,i){var s;return t=o.utils.autoExtFilename(t,"txt",e),o.utils.loadFile(t,!!r,(function(t){""===(s=t.split(/\r?\n/))[s.length-1]&&s.pop();for(var e=0,o=s.length;e=g)return p;if(o)return o=!1,d;var e=m;if(t.charCodeAt(e)===h){for(var r=e;r++i.cb(null,t)))),a},o.from.XLS=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"xls",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.XLSX=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"xlsx",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.ODS=function(t,e,r,n,i){return e=e||{},t=o.utils.autoExtFilename(t,"ods",e),e.autoExt=!1,Ot(M(),t,e,r,n,i)},o.from.XML=function(t,e,r,n,i){var s;return o.utils.loadFile(t,!!r,(function(t){s=function(t){return t=(t=t.trim()).replace(//g,""),{declaration:e(),root:r()};function e(){if(o(/^<\?xml\s*/)){for(var t={attributes:{}};!s()&&!a("?>");){var e=n();if(!e)return t;t.attributes[e.name]=e.value}return o(/\?>\s*/),t}}function r(){var t=o(/^<([\w-:.]+)\s*/);if(t){for(var e={name:t[1],attributes:{},children:[]};!(s()||a(">")||a("?>")||a("/>"));){var i=n();if(!i)return e;e.attributes[i.name]=i.value}if(o(/^\s*\/>\s*/))return e;o(/\??>\s*/),e.content=function(){var t=o(/^([^<]*)/);return t?t[1]:""}();for(var l;l=r();)e.children.push(l);return o(/^<\/[\w-:.]+>\s*/),e}}function n(){var t=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(t)return{name:t[1],value:i(t[2])}}function i(t){return t.replace(/^['"]|['"]$/g,"")}function o(e){var r=t.match(e);if(r)return t=t.slice(r[0].length),r}function s(){return 0==t.length}function a(e){return 0==t.indexOf(e)}}(t).root,r&&(s=r(s,n,i))})),s},o.from.GEXF=function(t,e,r,n,i){var s;return o("SEARCH FROM XML("+t+")",[],(function(t){s=t,r&&(s=r(s))})),s},q.Print=function(t){return Object.assign(this,t)},q.Print.prototype.toString=function(){var t="PRINT";return this.statement&&(t+=" "+this.statement.toString()),t},q.Print.prototype.execute=function(t,e,r){var n=this,i=1;if(o.precompile(this,t,e),this.exprs&&this.exprs.length>0){var s=this.exprs.map((function(t){var r=new Function("params,alasql,p","var y;return "+t.toJS("({})","",null)).bind(n)(e,o);return pt(r)}));console.log.apply(console,s)}else if(this.select){var a=this.select.execute(t,e);console.log(pt(a))}else console.log();return r&&(i=r(i)),i},q.Source=function(t){return Object.assign(this,t)},q.Source.prototype.toString=function(){var t="SOURCE";return this.url&&(t+=" '"+this.url+" '"),t},q.Source.prototype.execute=function(t,e,r){var n;return _(this.url,!!r,(function(t){return n=o(t),r&&(n=r(n)),n}),(function(t){throw t})),n},q.Require=function(t){return Object.assign(this,t)},q.Require.prototype.toString=function(){var t="REQUIRE";return this.paths&&this.paths.length>0&&(t+=this.paths.map((function(t){return t.toString()})).join(",")),this.plugins&&this.plugins.length>0&&(t+=this.plugins.map((function(t){return t.toUpperCase()})).join(",")),t},q.Require.prototype.execute=function(t,e,r){var n=this,i=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach((function(t){_(t.value,!!r,(function(t){i++,s+=t,!(i0?this.plugins.forEach((function(t){o.plugins[t]||_(o.path+"/alasql-"+t.toLowerCase()+".js",!!r,(function(a){i++,s+=a,!(ie.name===t))||0;let r=e.open(t);return new Promise((function(e,n){r.onsuccess=()=>{r.result.close(),e({name:t,version:r.result.version})},r.onupgradeneeded=t=>{t.target.transaction.abort(),e(0)},r.onerror=()=>{n(new Error("IndexedDB error"))},r.onblocked=()=>{e({name:t,version:r.result.version})}}))}St.showDatabases=function(t,e){indexedDB.databases?indexedDB.databases().then((r=>{let n=[],i=t&&new RegExp(t.value.replace(/\%/g,".*"),"g");for(var o=0;o{if(i)return i(null,t),null;throw t}));if(null!==o)if(o){if(!r){let e=new Error(`IndexedDB: Cannot create new database "${t}" because it already exists`);if(i)return void i(null,e);throw e}i&&i(0)}else{let e=indexedDB.open(t,1);e.onsuccess=()=>{e.result.close(),i(1)}}},St.dropDatabase=async function(t,e,r){let n=await Nt(t).catch((t=>{if(r)return r(null,t),null;throw t}));if(null!==n)if(n)indexedDB.deleteDatabase(t).onsuccess=()=>{r&&r(1)};else{if(!e){if(r)return void r(null,new Error(`IndexedDB: Cannot drop database "${t}" because it does not exist`));throw new Error(`IndexedDB: Cannot drop database "${t}" because it does not exist`)}r&&r(0)}},St.attachDatabase=async function(t,e,r,n,i){let s=await Nt(t).catch((t=>{if(i)return i(null,t),null;throw t}));if(null===s)return;if(!s){let e=new Error(`IndexedDB: Cannot attach database "${t}" because it does not exist`);if(i)return void i(null,e);throw e}let a=await new Promise(((e,r)=>{let n=indexedDB.open(t);n.onsuccess=()=>{e(n.result.objectStoreNames),n.result.close()}})),l=new o.Database(e||t);l.engineid="INDEXEDDB",l.ixdbid=t,l.tables=[];for(var u=0;u{if(n)return n(null,t),null;throw t}));if(null===s)return;if(!s){let t=new Error('IndexedDB: Cannot create table in database "'+i+'" because it does not exist');if(n)return void n(null,t);throw t}let a=indexedDB.open(i,s.version+1);a.onupgradeneeded=function(t){a.result.createObjectStore(e,{autoIncrement:!0})},a.onsuccess=function(t){a.result.close(),n&&n(1)},a.onerror=t=>{n(null,t)},a.onblocked=function(r){n(null,new Error(`Cannot create table "${e}" because database "${t}" is blocked`))}},St.dropTable=async function(t,e,r,n){let i=o.databases[t].ixdbid,s=await Nt(i).catch((t=>{if(n)return n(null,t),null;throw t}));if(null===s)return;if(!s){let t=new Error('IndexedDB: Cannot drop table in database "'+i+'" because it does not exist');if(n)return void n(null,t);throw t}let a,l=indexedDB.open(i,s.version+1);l.onupgradeneeded=function(n){var i=l.result;i.objectStoreNames.contains(e)?(i.deleteObjectStore(e),delete o.databases[t].tables[e]):r||(a=new Error(`IndexedDB: Cannot drop table "${e}" because it does not exist`),n.target.transaction.abort())},l.onsuccess=function(t){l.result.close(),n&&n(1)},l.onerror=function(t){n&&n(null,a||t)},l.onblocked=function(r){n(null,new Error(`Cannot drop table "${e}" because database "${t}" is blocked`))}},St.intoTable=function(t,e,r,n,i){let s=o.databases[t].ixdbid,a=indexedDB.open(s);var l=o.databases[t].tables[e];a.onupgradeneeded=r=>{r.target.transaction.abort();let n=new Error(`Cannot insert into table "${e}" because database "${t}" does not exist`);i&&i(null,n)},a.onsuccess=()=>{for(var n=a.result,s=n.transaction([e],"readwrite"),u=s.objectStore(e),c=0,h=r.length;c{n.target.transaction.abort();let i=new Error(`Cannot select from table "${e}" because database "${t}" does not exist`);r&&r(null,i)},a.onsuccess=()=>{let t=[],o=a.result,s=o.transaction([e]).objectStore(e).openCursor();s.onsuccess=()=>{let e=s.result;if(e){let r="object"==typeof e?e.value:{[e.key]:e.value};t.push(r),e.continue()}else o.close(),r&&r(t,n,i)}}},St.deleteFromTable=function(t,e,r,n,i){let s=o.databases[t].ixdbid,a=indexedDB.open(s);a.onsuccess=()=>{let t=a.result,s=t.transaction([e],"readwrite").objectStore(e).openCursor(),l=0;s.onsuccess=()=>{var e=s.result;e?((!r||r(e.value,n,o))&&(e.delete(),l++),e.continue()):(t.close(),i&&i(l))}}},St.updateTable=function(t,e,r,n,i,s){let a=o.databases[t].ixdbid,l=indexedDB.open(a);l.onsuccess=function(){let t=l.result,o=t.transaction([e],"readwrite").objectStore(e).openCursor(),a=0;o.onsuccess=()=>{var e=o.result;if(e){if(!n||n(e.value,i)){var l=e.value;r(l,i),e.update(l),a++}e.continue()}else t.close(),s&&s(a)}}},St.commit=function(t,e){return e?e(1):1},St.begin=St.commit,St.rollback=function(t,e){return e?e(1):1};var At=o.engines.LOCALSTORAGE=function(){};At.get=function(t){var e=localStorage.getItem(t);if(!(typeof e>"u")){var r;try{r=JSON.parse(e)}catch{throw new Error("Cannot parse JSON object from localStorage"+e)}return r}},At.set=function(t,e){typeof e>"u"?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(e))},At.storeTable=function(t,e){var r=o.databases[t],n=r.tables[e],i={};i.columns=n.columns,i.data=n.data,i.identities=n.identities,i.defaultfns=n.defaultfns,i.onupdatefns=n.onupdatefns,At.set(r.lsdbid+"."+e,i)},At.restoreTable=function(t,e){var r=o.databases[t],n=At.get(r.lsdbid+"."+e),i=new o.Table;for(var s in n)i[s]=n[s];return r.tables[e]=i,i.indexColumns(),i},At.removeTable=function(t,e){var r=o.databases[t];localStorage.removeItem(r.lsdbid+"."+e)},At.createDatabase=function(t,e,r,n,i){var o=1,s=At.get("alasql");if(r&&s&&s.databases&&s.databases[t])o=0;else{if(s||(s={databases:{}}),s.databases&&s.databases[t])throw new Error('localStorage: Cannot create new database "'+t+'" because it already exists');s.databases[t]=!0,At.set("alasql",s),At.set(t,{databaseid:t,tables:{}})}return i&&(o=i(o)),o},At.dropDatabase=function(t,e,r){var n=1,i=At.get("alasql");if(e&&i&&i.databases&&!i.databases[t])n=0;else{if(!i){if(e)return r?r(0):0;throw new Error("There is no any AlaSQL databases in localStorage")}if(i.databases&&!i.databases[t])throw new Error('localStorage: Cannot drop database "'+t+'" because there is no such database');delete i.databases[t],At.set("alasql",i);var o=At.get(t);for(var s in o.tables)localStorage.removeItem(t+"."+s);localStorage.removeItem(t)}return r&&(n=r(n)),n},At.attachDatabase=function(t,e,r,n,i){var s=1;if(o.databases[e])throw new Error('Unable to attach database as "'+e+'" because it already exists');e||(e=t);var a=new o.Database(e);if(a.engineid="LOCALSTORAGE",a.lsdbid=t,a.tables=At.get(t).tables,!o.options.autocommit&&a.tables)for(var l in a.tables)At.restoreTable(e,l);return i&&(s=i(s)),s},At.showDatabases=function(t,e){var r=[],n=At.get("alasql");if(t)var i=new RegExp(t.value.replace(/%/g,".*"),"g");if(n&&n.databases){for(var o in n.databases)r.push({databaseid:o});t&&r&&r.length>0&&(r=r.filter((function(t){return t.databaseid.match(i)})))}return e&&(r=e(r)),r},At.createTable=function(t,e,r,n){var i=1,s=o.databases[t].lsdbid;if(At.get(s+"."+e)&&!r)throw new Error('Table "'+e+'" alsready exists in localStorage database "'+s+'"');var a=At.get(s);return o.databases[t].tables[e],a.tables[e]=!0,At.set(s,a),At.storeTable(t,e),n&&(i=n(i)),i},At.truncateTable=function(t,e,r,n){var i,s=1,a=o.databases[t].lsdbid;if(i=o.options.autocommit?At.get(a):o.databases[t],!r&&!i.tables[e])throw new Error('Cannot truncate table "'+e+'" in localStorage, because it does not exist');return At.restoreTable(t,e).data=[],At.storeTable(t,e),n&&(s=n(s)),s},At.dropTable=function(t,e,r,n){var i,s=1,a=o.databases[t].lsdbid;if(i=o.options.autocommit?At.get(a):o.databases[t],!r&&!i.tables[e])throw new Error('Cannot drop table "'+e+'" in localStorage, because it does not exist');return delete i.tables[e],At.set(a,i),At.removeTable(t,e),n&&(s=n(s)),s},At.fromTable=function(t,e,r,n,i){o.databases[t].lsdbid;var s=At.restoreTable(t,e).data;return r&&(s=r(s,n,i)),s},At.intoTable=function(t,e,r,n,i){o.databases[t].lsdbid;var s=r.length,a=At.restoreTable(t,e);for(var l in a.identities){var u=a.identities[l];for(var c in r)r[c][l]=u.value,u.value+=u.step}return a.data||(a.data=[]),a.data=a.data.concat(r),At.storeTable(t,e),i&&(s=i(s)),s},At.loadTableData=function(t,e){o.databases[t],o.databases[t].lsdbid,At.restoreTable(t,e)},At.saveTableData=function(t,e){var r=o.databases[t],n=o.databases[t].lsdbid;At.storeTable(n,e),r.tables[e].data=void 0},At.commit=function(t,e){var r=o.databases[t],n=o.databases[t].lsdbid,i={databaseid:n,tables:{}};if(r.tables)for(var s in r.tables)i.tables[s]=!0,At.storeTable(t,s);return At.set(n,i),e?e(1):1},At.begin=At.commit,At.rollback=function(t,e){};var wt=o.engines.SQLITE=function(){};wt.createDatabase=function(t,e,r,n,i){throw new Error("Connot create SQLITE database in memory. Attach it.")},wt.dropDatabase=function(t){throw new Error("This is impossible to drop SQLite database. Detach it.")},wt.attachDatabase=function(t,e,r,n,i){if(o.databases[e])throw new Error('Unable to attach database as "'+e+'" because it already exists');if(r[0]&&r[0]instanceof q.StringValue||r[0]instanceof q.ParamValue){if(r[0]instanceof q.StringValue)var s=r[0].value;else r[0]instanceof q.ParamValue&&(s=n[r[0].param]);return o.utils.loadBinaryFile(s,!0,(function(r){var n=new o.Database(e||t);n.engineid="SQLITE",n.sqldbid=t;var s=n.sqldb=new SQL.Database(r);n.tables=[],s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values.forEach((function(t){n.tables[t[1]]={};var e=n.tables[t[1]].columns=[],r=o.parse(t[4]).statements[0].columns;r&&r.length>0&&r.forEach((function(t){e.push(t)}))})),i(1)}),(function(t){throw new Error('Cannot open SQLite database file "'+r[0].value+'"')})),1}throw new Error("Cannot attach SQLite database without a file")},wt.fromTable=function(t,e,r,n,i){var s=o.databases[t].sqldb.exec("SELECT * FROM "+e),a=i.sources[n].columns=[];s[0].columns.length>0&&s[0].columns.forEach((function(t){a.push({columnid:t})}));var l=[];s[0].values.length>0&&s[0].values.forEach((function(t){var e={};a.forEach((function(r,n){e[r.columnid]=t[n]})),l.push(e)})),r&&r(l,n,i)},wt.intoTable=function(t,e,r,n,i){for(var s=o.databases[t].sqldb,a=0,l=r.length;a"u")for(var n=document.getElementsByTagName("script"),i=0;i"u")throw new Error("Path to alasql.js is not specified");if(!1!==t){var s="importScripts('";s+=t,s+="');self.onmessage = function(event) {alasql(event.data.sql,event.data.params, function(data){postMessage({id:event.data.id, data:data});});}";var a=new Blob([s],{type:"text/plain"});if(o.webworker=new Worker(URL.createObjectURL(a)),o.webworker.onmessage=function(t){var e=t.data.id;o.buffer[e](t.data.data),delete o.buffer[e]},o.webworker.onerror=function(t){throw t},arguments.length>1){var l="REQUIRE "+e.map((function(t){return'"'+t+'"'})).join(",");o(l,[],r)}}else if(!1===t)return void delete o.webworker});var Ct=Ct||function(t){if(!(typeof t>"u"||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,r=function(){return t.URL||t.webkitURL||t},n=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,o=/constructor/i.test(t.HTMLElement)||t.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},l=function(t){setTimeout((function(){"string"==typeof t?r().revokeObjectURL(t):t.remove()}),4e4)},u=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},c=function(e,c,h){h||(e=u(e));var d,p=this,f="application/octet-stream"===e.type,g=function(){!function(t,e,r){for(var n=(e=[].concat(e)).length;n--;){var i=t["on"+e[n]];if("function"==typeof i)try{i.call(t,t)}catch(t){a(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return d=r().createObjectURL(e),void setTimeout((function(){n.href=d,n.download=c,function(t){var e=new MouseEvent("click");t.dispatchEvent(e)}(n),g(),l(d),p.readyState=p.DONE}));!function(){if((s||f&&o)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=s?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,g()},n.readAsDataURL(e),void(p.readyState=p.INIT)}d||(d=r().createObjectURL(e)),f?t.location.href=d:t.open(d,"_blank")||(t.location.href=d),p.readyState=p.DONE,g(),l(d)}()},h=c.prototype;return typeof navigator<"u"&&navigator.msSaveOrOpenBlob?function(t,e,r){return e=e||t.name||"download",r||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e,r){return new c(t,e||t.name||"download",r)})}}(typeof self<"u"&&self||typeof window<"u"&&window||this.content);typeof e<"u"&&e.exports?e.exports.saveAs=Ct:typeof define<"u"&&null!==define&&null!==define.amd&&define("FileSaver.js",(function(){return Ct})),(l.isCordova||l.isMeteorServer||l.isNode)&&console.log("It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead."),o.utils.saveAs=Ct}return new F("alasql"),o.use("alasql"),o}))}));function Rn(t){return void 0!==t.top}function Cn(t){return void 0!==t.left}function Ln(t){return void 0!==t.axis}function In(t){return void 0!==t.group&&void 0!==t.side}function kn(t){return void 0!==t.groupA&&void 0!==t.groupB}function Dn(t){return Array.isArray(t.nodes)&&Array.isArray(t.edges)&&Array.isArray(t.constraints)&&Array.isArray(t.groups)&&t.nodes.every((t=>"string"==typeof t.id))&&t.edges.every((t=>"object"==typeof t.source&&"object"==typeof t.target))&&t.constraints.every((t=>"object"==typeof t.sourceConstraint))&&t.groups.every((t=>"string"==typeof t.name))&&(void 0===t.disjunctiveConstraints||Array.isArray(t.disjunctiveConstraints))}function Pn(t){return t instanceof jn}var Mn,jn,Kn=d((()=>{Mn=class{constructor(t,e){this.c=t,this.reason=e}toHTML(){return`Implicit constraint ${this.c.toHTML()} because ${this.reason}`}},jn=class{constructor(t,e){this.sourceConstraint=t,this.alternatives=e}toString(){return`DisjunctiveConstraint with ${this.alternatives.length} alternatives from ${this.sourceConstraint}`}addAlternative(t){this.alternatives.push(t)}}}));function Un(t){return typeof t>"u"||null===t}function Fn(t){return"object"==typeof t&&null!==t}function $n(t){return Array.isArray(t)?t:Un(t)?[]:[t]}function Hn(t,e){var r,n,i,o;if(e)for(r=0,n=(o=Object.keys(e)).length;ra&&(e=n-a+(o=" ... ").length),r-n>a&&(r=n+a-(s=" ...").length),{str:o+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+o.length}}function Yn(t,e){return Ao.repeat(" ",e-t.length)+t}function Wn(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],o=[],s=-1;r=n.exec(t.buffer);)o.push(r.index),i.push(r.index+r[0].length),t.position<=r.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a,l,u="",c=Math.min(t.line+e.linesAfter,o.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(s-a<0);a++)l=Vn(t.buffer,i[s-a],o[s-a],t.position-(i[s]-i[s-a]),h),u=Ao.repeat(" ",e.indent)+Yn((t.line-a+1).toString(),c)+" | "+l.str+"\n"+u;for(l=Vn(t.buffer,i[s],o[s],t.position,h),u+=Ao.repeat(" ",e.indent)+Yn((t.line+1).toString(),c)+" | "+l.str+"\n",u+=Ao.repeat("-",e.indent+c+3+l.pos)+"^\n",a=1;a<=e.linesAfter&&!(s+a>=o.length);a++)l=Vn(t.buffer,i[s+a],o[s+a],t.position-(i[s]-i[s+a]),h),u+=Ao.repeat(" ",e.indent)+Yn((t.line+a+1).toString(),c)+" | "+l.str+"\n";return u.replace(/\n$/,"")}function Xn(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===Co.indexOf(e))throw new wo('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))})),e}(e.styleAliases||null),-1===Lo.indexOf(this.kind))throw new wo('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function Qn(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)})),r[e]=t})),r}function Jn(t){return this.extend(t)}function Zn(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function ti(){return null}function ei(t){return null===t}function ri(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function ni(t){return"true"===t||"True"===t||"TRUE"===t}function ii(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function oi(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function si(t){return 48<=t&&t<=55}function ai(t){return 48<=t&&t<=57}function li(t){if(null===t)return!1;var e,r=t.length,n=0,i=!1;if(!r)return!1;if(("-"===(e=t[n])||"+"===e)&&(e=t[++n]),"0"===e){if(n+1===r)return!0;if("b"===(e=t[++n])){for(n++;n=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}function pi(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ao.isNegativeZero(t))return"-0.0";return r=t.toString(10),Ho.test(r)?r.replace("e",".e"):r}function fi(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||Ao.isNegativeZero(t))}function gi(t){return null!==t&&(null!==zo.exec(t)||null!==Vo.exec(t))}function mi(t){var e,r,n,i,o,s,a,l,u=0,c=null;if(null===(e=zo.exec(t))&&(e=Vo.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,n,i,o,s,a,u)),c&&l.setTime(l.getTime()-c),l}function yi(t){return t.toISOString()}function _i(t){return"<<"===t||null===t}function vi(t){if(null===t)return!1;var e,r,n=0,i=t.length,o=Xo;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8==0}function xi(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=Xo,s=0,a=[];for(e=0;e>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(n.charAt(e));return 0==(r=i%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===r?(a.push(s>>10&255),a.push(s>>2&255)):12===r&&a.push(s>>4&255),new Uint8Array(a)}function bi(t){var e,r,n="",i=0,o=t.length,s=Xo;for(e=0;e>18&63],n+=s[i>>12&63],n+=s[i>>6&63],n+=s[63&i]),i=(i<<8)+t[e];return 0==(r=o%3)?(n+=s[i>>18&63],n+=s[i>>12&63],n+=s[i>>6&63],n+=s[63&i]):2===r?(n+=s[i>>10&63],n+=s[i>>4&63],n+=s[i<<2&63],n+=s[64]):1===r&&(n+=s[i>>2&63],n+=s[i<<4&63],n+=s[64],n+=s[64]),n}function Ti(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function Ei(t){if(null===t)return!0;var e,r,n,i,o,s=[],a=t;for(e=0,r=a.length;e>10),56320+(t-65536&1023))}function Ui(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}function Fi(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||os,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $i(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Ro(r),new wo(e,r)}function Hi(t,e){throw $i(t,e)}function Bi(t,e){t.onWarning&&t.onWarning.call(null,$i(t,e))}function qi(t,e,r,n){var i,o,s,a;if(e1&&(t.result+=Ao.repeat("\n",e-1))}function Qi(t,e){var r,n,i=t.tag,o=t.anchor,s=[],a=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Hi(t,"tab characters must not be used in indentation")),45===n&&Ii(t.input.charCodeAt(t.position+1)));)if(a=!0,t.position++,Yi(t,!0,-1)&&t.lineIndent<=e)s.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,to(t,e,us,!1,!0),s.push(t.result),Yi(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)Hi(t,"bad indentation of a sequence entry");else if(t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente)&&(y&&(s=t.line,a=t.lineStart,l=t.position),to(t,e,cs,!0,i)&&(y?g=t.result:m=t.result),y||(zi(t,d,p,f,g,m,s,a,l),f=g=m=null),Yi(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==u)Hi(t,"bad indentation of a mapping entry");else if(t.lineIndent=0))break;0===i?Hi(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Hi(t,"repeat of an indentation width identifier"):(u=e+i-1,l=!0)}if(Li(o)){do{o=t.input.charCodeAt(++t.position)}while(Li(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!Ci(o)&&0!==o)}for(;0!==o;){for(Vi(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!l||t.lineIndentu&&(u=t.lineIndent),Ci(o))c++;else{if(t.lineIndent0){for(i=s,o=0;i>0;i--)(s=Di(a=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+s:Hi(t,"expected hexadecimal character");t.result+=Ki(o),t.position++}else Hi(t,"unknown escape sequence");r=n=t.position}else Ci(a)?(qi(t,r,n,!0),Xi(t,Yi(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Wi(t)?Hi(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Hi(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?m=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Ii(n)&&!ki(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Hi(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ss.call(t.anchorMap,r)||Hi(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Yi(t,!0,-1),!0}(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&Hi(t,"alias node should not have any properties")):function(t,e,r){var n,i,o,s,a,l,u,c,h=t.kind,d=t.result;if(Ii(c=t.input.charCodeAt(t.position))||ki(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(Ii(n=t.input.charCodeAt(t.position+1))||r&&ki(n)))return!1;for(t.kind="scalar",t.result="",i=o=t.position,s=!1;0!==c;){if(58===c){if(Ii(n=t.input.charCodeAt(t.position+1))||r&&ki(n))break}else if(35===c){if(Ii(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Wi(t)||r&&ki(c))break;if(Ci(c)){if(a=t.line,l=t.lineStart,u=t.lineIndent,Yi(t,!1,-1),t.lineIndent>=e){s=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=a,t.lineStart=l,t.lineIndent=u;break}}s&&(qi(t,i,o,!1),Xi(t,t.line-a),i=o=t.position,s=!1),Li(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return qi(t,i,o,!1),!!t.result||(t.kind=h,t.result=d,!1)}(t,d,as===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=a&&Qi(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Hi(t,'unacceptable node kind for ! tag; it should be "scalar", not "'+t.kind+'"'),l=0,u=t.implicitTypes.length;l"),null!==t.result&&h.kind!==t.kind&&Hi(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Hi(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function eo(t){var e,r,n,i,o=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(Yi(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(s=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Ii(i);)i=t.input.charCodeAt(++t.position);for(n=[],(r=t.input.slice(e,t.position)).length<1&&Hi(t,"directive name must not be less than one character in length");0!==i;){for(;Li(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!Ci(i));break}if(Ci(i))break;for(e=t.position;0!==i&&!Ii(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&Vi(t),ss.call(Ts,r)?Ts[r](t,r,n):Bi(t,'unknown document directive "'+r+'"')}Yi(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Yi(t,!0,-1)):s&&Hi(t,"directives end mark is expected"),to(t,t.lineIndent-1,cs,!1,!0),Yi(t,!0,-1),t.checkLineBreaks&&gs.test(t.input.slice(o,t.position))&&Bi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Wi(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Yi(t,!0,-1)):t.position"u"&&(r=e,e=null);var n=ro(t,r);if("function"!=typeof e)return n;for(var i=0,o=n.length;i=55296&&n<=56319&&e+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function go(t){return/^\n* /.test(t)}function mo(t,e,r,n,i){t.dump=function(){if(0===e.length)return t.quotingType===ea?'""':"''";if(!t.noCompatMode&&(-1!==Js.indexOf(e)||Zs.test(e)))return t.quotingType===ea?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,r,n,i,o,s,a){var l,u=0,c=null,h=!1,d=!1,p=-1!==n,f=-1,g=function(t){return co(t)&&t!==Ns&&!uo(t)&&t!==Us&&t!==Bs&&t!==Fs&&t!==Ks&&t!==Gs&&t!==zs&&t!==Ys&&t!==Xs&&t!==ks&&t!==Ps&&t!==js&&t!==Ls&&t!==Ws&&t!==$s&&t!==Hs&&t!==Ms&&t!==Is&&t!==Ds&&t!==qs&&t!==Vs}(fo(t,0))&&function(t){return!uo(t)&&t!==Fs}(fo(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(!co(u=fo(t,l)))return sa;g=g&&po(u,c,a),c=u}else{for(l=0;l=65536?l+=2:l++){if((u=fo(t,l))===ws)h=!0,p&&(d=d||l-f-1>n&&" "!==t[f+1],f=l);else if(!co(u))return sa;g=g&&po(u,c,a),c=u}d=d||p&&l-f-1>n&&" "!==t[f+1]}return h||d?r>9&&go(t)?sa:s?o===ea?sa:na:d?oa:ia:!g||s||i(t)?o===ea?sa:na:ra}(e,a,t.indent,s,(function(e){return function(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r"+yo(e,t.indent)+_o(ao(function(t,e){for(var r,n,i=/(\n+)([^\n]*)/g,o=(u=void 0,u=-1!==(u=t.indexOf("\n"))?u:t.length,i.lastIndex=u,vo(t.slice(0,u),e)),s="\n"===t[0]||" "===t[0];n=i.exec(t);){var a=n[1],l=n[2];r=" "===l[0],o+=a+(s||r||""===l?"":"\n")+vo(l,e),s=r}var u;return o}(e,s),o));case sa:return'"'+function(t){for(var e,r="",n=0,i=0;i=65536?i+=2:i++)n=fo(t,i),!(e=Qs[n])&&co(n)?(r+=t[i],n>=65536&&(r+=t[i+1])):r+=e||oo(n);return r}(e)+'"';default:throw new wo("impossible error: invalid scalar style")}}()}function yo(t,e){var r=go(t)?String(e):"",n="\n"===t[t.length-1];return r+(!n||"\n"!==t[t.length-2]&&"\n"!==t?n?"":"-":"+")+"\n"}function _o(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function vo(t,e){if(""===t||" "===t[0])return t;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,l="";r=i.exec(t);)(a=r.index)-o>e&&(n=s>o?s:a,l+="\n"+t.slice(o,n),o=n+1),s=a;return l+="\n",t.length-o>e&&s>o?l+=t.slice(o,s)+"\n"+t.slice(s+1):l+=t.slice(o),l.slice(1)}function xo(t,e,r,n){var i,o,s,a="",l=t.tag;for(i=0,o=r.length;i"u"&&To(t,e+1,null,!0,!0,!1,!0))&&((!n||""!==a)&&(a+=lo(t,e)),t.dump&&ws===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=l,t.dump=a||"[]"}function bo(t,e,r){var n,i,o,s,a,l;for(o=0,s=(i=r?t.explicitTypes:t.implicitTypes).length;o tag resolver accepts not "'+l+'" style');n=a.represent[l](e,l)}t.dump=n}return!0}return!1}function To(t,e,r,n,i,o,s){t.tag=null,t.dump=r,bo(t,r,!1)||bo(t,r,!0);var a,l=Os.call(t.dump),u=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var c,h,d="[object Object]"===l||"[object Array]"===l;if(d&&(h=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(i=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===l)n&&0!==Object.keys(t.dump).length?(function(t,e,r,n){var i,o,s,a,l,u,c="",h=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new wo("sortKeys must be a boolean or a function");for(i=0,o=d.length;i1024)&&(t.dump&&ws===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,l&&(u+=lo(t,e)),To(t,e+1,a,!0,l)&&(t.dump&&ws===t.dump.charCodeAt(0)?u+=":":u+=": ",c+=u+=t.dump));t.tag=h,t.dump=c||"{}"}(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(function(t,e,r){var n,i,o,s,a,l="",u=t.tag,c=Object.keys(r);for(n=0,i=c.length;n1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),To(t,e,s,!1,!1)&&(l+=a+=t.dump));t.tag=u,t.dump="{"+l+"}"}(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===l)n&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?xo(t,e-1,t.dump,i):xo(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(function(t,e,r){var n,i,o,s="",a=t.tag;for(n=0,i=r.length;n"u"&&To(t,e,null,!1,!1))&&(""!==s&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=a,t.dump="["+s+"]"}(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new wo("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&mo(t,t.dump,e,o,u)}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump)}return!0}function Eo(t,e){var r,n,i=[],o=[];for(Oo(t,i,o),r=0,n=o.length;r{for(Ao={isNothing:Un,isObject:Fn,toArray:$n,repeat:Bn,isNegativeZero:qn,extend:Hn},zn.prototype=Object.create(Error.prototype),zn.prototype.constructor=zn,zn.prototype.toString=function(t){return this.name+": "+Gn(this,t)},wo=zn,Ro=Wn,Co=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Lo=["scalar","sequence","mapping"],Io=Xn,Jn.prototype.extend=function(t){var e=[],r=[];if(t instanceof Io)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new wo("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof Io))throw new wo("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new wo("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new wo("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof Io))throw new wo("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(Jn.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Qn(n,"implicit"),n.compiledExplicit=Qn(n,"explicit"),n.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),$o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ho=/^[-+]?[0-9]+e/,Bo=new Io("tag:yaml.org,2002:float",{kind:"scalar",resolve:hi,construct:di,predicate:fi,represent:pi,defaultStyle:"lowercase"}),qo=jo.extend({implicit:[Ko,Uo,Fo,Bo]}),Go=qo,zo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),Yo=new Io("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:gi,construct:mi,instanceOf:Date,represent:yi}),Wo=new Io("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_i}),Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Qo=new Io("tag:yaml.org,2002:binary",{kind:"scalar",resolve:vi,construct:xi,predicate:Ti,represent:bi}),Jo=Object.prototype.hasOwnProperty,Zo=Object.prototype.toString,ts=new Io("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ei,construct:Oi}),es=Object.prototype.toString,rs=new Io("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Si,construct:Ni}),ns=Object.prototype.hasOwnProperty,is=new Io("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ai,construct:wi}),os=Go.extend({implicit:[Yo,Wo],explicit:[Qo,ts,rs,is]}),ss=Object.prototype.hasOwnProperty,as=1,ls=2,us=3,cs=4,hs=1,ds=2,ps=3,fs=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gs=/[\x85\u2028\u2029]/,ms=/[,\[\]\{\}]/,ys=/^(?:!|!!|![a-z\-]+!)$/i,_s=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,vs=new Array(256),xs=new Array(256),bs=0;bs<256;bs++)vs[bs]=ji(bs)?1:0,xs[bs]=ji(bs);Ts={YAML:function(t,e,r){var n,i,o;null!==t.version&&Hi(t,"duplication of %YAML directive"),1!==r.length&&Hi(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Hi(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&Hi(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&Bi(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;2!==r.length&&Hi(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],ys.test(n)||Hi(t,"ill-formed tag handle (first argument) of the TAG directive"),ss.call(t.tagMap,n)&&Hi(t,'there is a previously declared suffix for "'+n+'" tag handle'),_s.test(i)||Hi(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Hi(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}},Es={loadAll:no,load:io},Os=Object.prototype.toString,Ss=Object.prototype.hasOwnProperty,Ns=65279,As=9,ws=10,Rs=13,Cs=32,Ls=33,Is=34,ks=35,Ds=37,Ps=38,Ms=39,js=42,Ks=44,Us=45,Fs=58,$s=61,Hs=62,Bs=63,qs=64,Gs=91,zs=93,Vs=96,Ys=123,Ws=124,Xs=125,(Qs={})[0]="\\0",Qs[7]="\\a",Qs[8]="\\b",Qs[9]="\\t",Qs[10]="\\n",Qs[11]="\\v",Qs[12]="\\f",Qs[13]="\\r",Qs[27]="\\e",Qs[34]='\\"',Qs[92]="\\\\",Qs[133]="\\N",Qs[160]="\\_",Qs[8232]="\\L",Qs[8233]="\\P",Js=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,ta=1,ea=2,ra=1,na=2,ia=3,oa=4,sa=5,aa=Io,la=ko,ua=jo,ca=qo,ha=Go,da=os,pa=Es.load,fa=Es.loadAll,ga=So,ma=wo,ya={binary:Qo,float:Bo,map:Mo,null:Ko,pairs:rs,set:is,timestamp:Yo,bool:Uo,int:Fo,merge:Wo,omap:ts,seq:Po,str:Do},_a=No("safeLoad","load"),va=No("safeLoadAll","loadAll"),xa=No("safeDump","dump"),ba={Type:aa,Schema:la,FAILSAFE_SCHEMA:ua,JSON_SCHEMA:ca,CORE_SCHEMA:ha,DEFAULT_SCHEMA:da,load:pa,loadAll:fa,dump:ga,YAMLException:ma,types:ya,safeLoad:_a,safeLoadAll:va,safeDump:xa}}));function Ea(t,e){if(null!=t&&("number"!=typeof t||Number.isNaN(t)||t<=0))throw new Error(`Size ${e} must be greater than 0`)}function Oa(t,e){Ea(t.width,`${e} width`),Ea(t.height,`${e} height`)}function Sa(t){if(!t)return{constraints:{orientation:{relative:[],cyclic:[]},alignment:[],grouping:{byfield:[],byselector:[]}},directives:{atomColors:[],sizes:[],icons:[],edgeColors:[],projections:[],attributes:[],tags:[],hiddenFields:[],inferredEdges:[],hiddenAtoms:[],hideDisconnected:!1,hideDisconnectedBuiltIns:!1}};let e=pa(t),r=e?.constraints,n=e?.directives,i={constraints:{orientation:{relative:[],cyclic:[]},alignment:[],grouping:{byfield:[],byselector:[]}},directives:{atomColors:[],sizes:[],icons:[],edgeColors:[],projections:[],attributes:[],tags:[],hiddenFields:[],inferredEdges:[],hiddenAtoms:[],hideDisconnected:!1,hideDisconnectedBuiltIns:!1}},o=[],s=[];if(r&&Array.isArray(r))try{let t=function(t){let e=t,r=e.filter((t=>t.cyclic)).map((t=>{if(!t.cyclic.selector)throw new Error("Cyclic constraint must have a selector");return new La(t.cyclic.direction||"clockwise",t.cyclic.selector)}));r=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.direction}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(r);let n={};r.forEach((t=>{let e=t.selector.trim();if(n[e]){if(n[e]!==t.direction)throw new Error(`Inconsistent cyclic constraint for selector ${e}: ${n[e]}, ${t.direction}`)}else n[e]=t.direction}));let i=e.filter((t=>t.orientation)).map((t=>{let e=t.orientation;if(!e.selector)throw new Error("Orientation constraint must have selector field");if(!e.directions)throw new Error("Orientation constraint must have directions field");let r=new Aa(e.directions,e.selector);if(!r.isInternallyConsistent())throw new Error(r.inconsistencyMessage());return r}));i=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.directions.sort().join(",")}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(i);let o=e.filter((t=>t.group)).filter((t=>t.group.field)).map((t=>{if(null==t.group.groupOn)throw new Error("Grouping constraint must have groupOn field");if(null==t.group.field)throw new Error("Grouping constraint must specify a field");if(null==t.group.addToGroup)throw new Error("Grouping constraint must specify addToGroup");return new Ca(t.group.field,t.group.groupOn,t.group.addToGroup,t.group.selector)}));o=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.field}|${n.groupOn}|${n.addToGroup}|${n.selector||""}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(o);let s=e.filter((t=>t.group)).filter((t=>t.group.selector&&t.group.name&&!t.group.field)).map((t=>{if(!t.group.selector)throw new Error("Grouping constraint must have a selector.");if(!t.group.name)throw new Error("Grouping constraint must have a name.");return new Ra(t.group.selector,t.group.name,t.group.addEdge)}));s=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.name}|${n.addEdge}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(s);let a=e.filter((t=>t.align)).map((t=>{if(!t.align.selector)throw new Error("Align constraint must have a selector");if(!t.align.direction)throw new Error("Align constraint must have a direction");let e=new wa(t.align.direction,t.align.selector);if(!e.isInternallyConsistent())throw new Error(e.inconsistencyMessage());return e}));return a=function(t){let e=new Map,r=[];for(let n of t){let t=`${n.selector.trim()}|${n.direction}`;e.has(t)||(e.set(t,n),r.push(n))}return r}(a),{orientation:{relative:i,cyclic:r},alignment:a,grouping:{byfield:o,byselector:s}}}(r);i.constraints=t;let e=r;o=e.filter((t=>t.size)).map((t=>(Oa(t.size,"constraint"),{height:t.size.height,width:t.size.width,selector:t.size.selector}))),s=e.filter((t=>t.hideAtom)).map((t=>({selector:t.hideAtom.selector})))}catch(t){let e=t instanceof Error?t.message:String(t);throw new Error(`${e}`)}if(n&&Array.isArray(n))try{let t=function(t){let e=t,r=e.filter((t=>t.icon)).map((t=>({path:t.icon.path,selector:t.icon.selector,showLabels:t.icon.showLabels||!1}))),n=e.filter((t=>t.atomColor)).map((t=>({color:t.atomColor.value,selector:t.atomColor.selector}))),i=e.filter((t=>t.size)).map((t=>(Oa(t.size,"directive"),{height:t.size.height,width:t.size.width,selector:t.size.selector}))),o=e.filter((t=>t.edgeColor)).map((t=>({color:t.edgeColor.value,field:t.edgeColor.field,selector:t.edgeColor.selector,filter:t.edgeColor.filter,style:t.edgeColor.style,weight:t.edgeColor.weight,showLabel:t.edgeColor.showLabel,hidden:t.edgeColor.hidden}))),s=e.filter((t=>t.attribute)).map((t=>({field:t.attribute.field,selector:t.attribute.selector,filter:t.attribute.filter}))),a=e.filter((t=>t.hideField)).map((t=>({field:t.hideField.field,selector:t.hideField.selector,filter:t.hideField.filter}))),l=e.filter((t=>t.projection)).map((t=>({sig:t.projection.sig}))),u=e.filter((t=>t.flag)).map((t=>t.flag)),c=u.includes("hideDisconnected"),h=u.includes("hideDisconnectedBuiltIns"),d=e.filter((t=>t.inferredEdge)).map((t=>({name:t.inferredEdge.name,selector:t.inferredEdge.selector,color:t.inferredEdge.color,style:t.inferredEdge.style,weight:t.inferredEdge.weight}))),p=e.filter((t=>t.hideAtom)).map((t=>({selector:t.hideAtom.selector})));return{atomColors:n,sizes:i,icons:r,edgeColors:o,projections:l,attributes:s,tags:e.filter((t=>t.tag)).map((t=>({toTag:t.tag.toTag,name:t.tag.name,value:t.tag.value}))),hiddenFields:a,inferredEdges:d,hiddenAtoms:p,hideDisconnected:c,hideDisconnectedBuiltIns:h}}(n);i.directives=t,i.directives.sizes=[...o,...t.sizes],i.directives.hiddenAtoms=[...s,...t.hiddenAtoms]}catch(t){let e=t instanceof Error?t.message:String(t);throw new Error(`${e}`)}else i.directives.sizes=o,i.directives.hiddenAtoms=s;return i}var Na,Aa,wa,Ra,Ca,La,Ia=d((()=>{Ta(),Na=class{constructor(t){this.selector=t}isInternallyConsistent(){return!0}inconsistencyMessage(){return`Inconsistent Constraint Operation: ${this.selector}`}toHTML(){return`ConstraintOperation with selector ${this.selector} .`}},Aa=class extends Na{constructor(t,e){super(e),this.directions=t}isInternallyConsistent(){return!(this.directions.includes("above")&&this.directions.includes("below")||this.directions.includes("left")&&this.directions.includes("right")||this.directions.includes("directlyLeft")&&!this.directions.every((t=>"left"===t||"directlyLeft"===t))||this.directions.includes("directlyRight")&&!this.directions.every((t=>"right"===t||"directlyRight"===t))||this.directions.includes("directlyAbove")&&!this.directions.every((t=>"above"===t||"directlyAbove"===t))||this.directions.includes("directlyBelow")&&!this.directions.every((t=>"below"===t||"directlyBelow"===t)))}inconsistencyMessage(){return`Orientation Constraint with directions [${this.directions.join(", ")}] and selector ${this.selector} is internally inconsistent.`}toHTML(){return`OrientationConstraint with directions [${this.directions.join(", ")}] and selector ${this.selector}`}},wa=class extends Na{constructor(t,e){super(e),this.direction=t}isInternallyConsistent(){return"horizontal"===this.direction||"vertical"===this.direction}inconsistencyMessage(){return`Align Constraint with direction [${this.direction}] and selector ${this.selector} is internally inconsistent.`}toHTML(){return`AlignConstraint with direction [${this.direction}] and selector ${this.selector}`}},Ra=class extends Na{constructor(t,e,r=!1){super(t),this.name=e,this.addEdge=r}toHTML(){return`GroupBySelector with selector ${this.selector} \n and name ${this.name}.`}},Ca=class{constructor(t,e,r,n){this.field=t,this.groupOn=e,this.addToGroup=r,this.selector=n}toHTML(){let t=this.selector?` with selector

${this.selector}
`:"";return`GroupByField on field
${this.field}
grouping field index
${this.groupOn}
\n adding to group index
${this.addToGroup}
${t}.`}},La=class extends Na{constructor(t,e){super(e),this.direction=t}inconsistencyMessage(){return`Cyclic constraint with direction [${this.direction}] with selector ${this.selector} is inconsistent.`}toHTML(){return`Cyclic constraint with direction [${this.direction}] and selector ${this.selector}`}}}));function ka(t){if("string"!=typeof t)return;let e=t.trim().toLowerCase();return"solid"===e||"dashed"===e||"dotted"===e?e:void 0}var Da=d((()=>{}));function Pa(t){if(!t)return"";if(t.startsWith("http")||t.startsWith("data:")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))return t;let e=t.indexOf(":");if(e>0){let r=t.substring(0,e),n=t.substring(e+1),i=$a[r];if(i)return i(n)}return Fa[t]||t}function Ma(){return Object.keys(Fa)}function ja(){return Object.keys($a)}function Ka(t){return t in Fa}function Ua(t){let e=t.indexOf(":");return!(e<=0)&&t.substring(0,e)in $a}var Fa,$a,Ha,Ba,qa,Ga,za=d((()=>{Fa={person:`data:image/svg+xml,${encodeURIComponent('')}`,"person-fill":`data:image/svg+xml,${encodeURIComponent('')}`,people:`data:image/svg+xml,${encodeURIComponent('')}`,home:`data:image/svg+xml,${encodeURIComponent('')}`,house:`data:image/svg+xml,${encodeURIComponent('')}`,building:`data:image/svg+xml,${encodeURIComponent('')}`,star:`data:image/svg+xml,${encodeURIComponent('')}`,"star-fill":`data:image/svg+xml,${encodeURIComponent('')}`,heart:`data:image/svg+xml,${encodeURIComponent('')}`,"heart-fill":`data:image/svg+xml,${encodeURIComponent('')}`,circle:`data:image/svg+xml,${encodeURIComponent('')}`,square:`data:image/svg+xml,${encodeURIComponent('')}`,triangle:`data:image/svg+xml,${encodeURIComponent('')}`,"tic-x":`data:image/svg+xml,${encodeURIComponent('')}`,"tic-o":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-right":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-left":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-up":`data:image/svg+xml,${encodeURIComponent('')}`,"arrow-down":`data:image/svg+xml,${encodeURIComponent('')}`,check:`data:image/svg+xml,${encodeURIComponent('')}`,x:`data:image/svg+xml,${encodeURIComponent('')}`,plus:`data:image/svg+xml,${encodeURIComponent('')}`,minus:`data:image/svg+xml,${encodeURIComponent('')}`,warning:`data:image/svg+xml,${encodeURIComponent('')}`,info:`data:image/svg+xml,${encodeURIComponent('')}`,gear:`data:image/svg+xml,${encodeURIComponent('')}`,database:`data:image/svg+xml,${encodeURIComponent('')}`,folder:`data:image/svg+xml,${encodeURIComponent('')}`,file:`data:image/svg+xml,${encodeURIComponent('')}`,tree:`data:image/svg+xml,${encodeURIComponent('')}`,flower:`data:image/svg+xml,${encodeURIComponent('')}`,car:`data:image/svg+xml,${encodeURIComponent('')}`,envelope:`data:image/svg+xml,${encodeURIComponent('')}`,phone:`data:image/svg+xml,${encodeURIComponent('')}`,flag:`data:image/svg+xml,${encodeURIComponent('')}`,lock:`data:image/svg+xml,${encodeURIComponent('')}`,key:`data:image/svg+xml,${encodeURIComponent('')}`},$a={bi:t=>`https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/${t}.svg`,fa:t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/solid/${t}.svg`,"fa-solid":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/solid/${t}.svg`,"fa-regular":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/regular/${t}.svg`,"fa-brands":t=>`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/svgs/brands/${t}.svg`,lucide:t=>`https://cdn.jsdelivr.net/npm/lucide-static@0.300.0/icons/${t}.svg`,heroicons:t=>`https://cdn.jsdelivr.net/npm/heroicons@2.1.1/24/outline/${t}.svg`,"heroicons-solid":t=>`https://cdn.jsdelivr.net/npm/heroicons@2.1.1/24/solid/${t}.svg`,tabler:t=>`https://cdn.jsdelivr.net/npm/@tabler/icons@2.44.0/icons/${t}.svg`,simple:t=>`https://cdn.jsdelivr.net/npm/simple-icons@10.4.0/icons/${t}.svg`}})),Va=d((()=>{({min:Ha,max:Ba}=Math),qa=(t,e=0,r=1)=>Ha(Ba(e,t),r)})),Ya=d((()=>{Va(),Ga=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=qa(t[e],0,255)):3===e&&(t[e]=qa(t[e],0,1));return t}}));function Wa(t){return Xa[Object.prototype.toString.call(t)]||"object"}var Xa,Qa,Ja,Za=d((()=>{Xa={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Xa[`[object ${t}]`]=t.toLowerCase()})),tl=d((()=>{Za(),Qa=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==Wa(t[0])&&e?e.split("").filter((e=>void 0!==t[0][e])).map((e=>t[0][e])):t[0].slice(0)})),el=d((()=>{Za(),Ja=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==Wa(t[e])?t[e].toLowerCase():null}}));function rl(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}var nl,il,ol,sl,al,ll,ul,cl,hl,dl,pl,fl,gl,ml,yl,_l,vl,xl,bl,Tl,El,Ol,Sl=d((()=>{Ya(),Va(),Za(),tl(),el(),({PI:nl,min:il,max:ol}=Math),sl=t=>Math.round(100*t)/100,al=t=>Math.round(100*t)/100,ll=2*nl,ul=nl/3,cl=nl/180,hl=180/nl})),Nl=d((()=>{dl={format:{},autodetect:[]}})),Al=d((()=>{Sl(),Nl(),pl=class{constructor(...t){let e=this;if("object"===Wa(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let r=Ja(t),n=!1;if(!r){n=!0,dl.sorted||(dl.autodetect=dl.autodetect.sort(((t,e)=>e.p-t.p)),dl.sorted=!0);for(let e of dl.autodetect)if(r=e.test(...t),r)break}if(!dl.format[r])throw new Error("unknown format: "+t);{let i=dl.format[r].apply(null,n?t:t.slice(0,-1));e._rgb=Ga(i)}3===e._rgb.length&&e._rgb.push(1)}toString(){return"function"==Wa(this.hex)?this.hex():`[${this._rgb.join(",")}]`}}})),wl=d((()=>{fl="3.2.0"})),Rl=d((()=>{Al(),wl(),gl=(...t)=>new pl(...t),gl.version=fl,ml=gl})),Cl=d((()=>{yl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}})),Ll=d((()=>{_l=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,vl=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,xl=t=>{if(t.match(_l)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(vl)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16);return[e>>24&255,e>>16&255,e>>8&255,Math.round((255&e)/255*100)/100]}throw new Error(`unknown hex color: ${t}`)},bl=xl})),Il=d((()=>{Sl(),({round:Tl}=Math),El=(...t)=>{let[e,r,n,i]=Qa(t,"rgba"),o=Ja(t)||"auto";void 0===i&&(i=1),"auto"===o&&(o=i<1?"rgba":"rgb"),e=Tl(e),r=Tl(r),n=Tl(n);let s="000000"+(e<<16|r<<8|n).toString(16);s=s.substr(s.length-6);let a="0"+Tl(255*i).toString(16);switch(a=a.substr(a.length-2),o.toLowerCase()){case"rgba":return`#${s}${a}`;case"argb":return`#${a}${s}`;default:return`#${s}`}},Ol=El})),kl=d((()=>{Al(),Nl(),Sl(),Cl(),Ll(),Il(),pl.prototype.name=function(){let t=Ol(this._rgb,"rgb");for(let e of Object.keys(yl))if(yl[e]===t)return e.toLowerCase();return t},dl.format.named=t=>{if(t=t.toLowerCase(),yl[t])return bl(yl[t]);throw new Error("unknown color name: "+t)},dl.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&yl[t.toLowerCase()])return"named"}})})),Dl=d((()=>{Al(),Sl(),pl.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===Wa(t)?e?(this._rgb[3]=t,this):new pl([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]}})),Pl=d((()=>{Al(),pl.prototype.clipped=function(){return this._rgb._clipped||!1}}));function Ml(t){let e=Fl.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Kl.labWhitePoint=t,Kl.Xn=e[0],Kl.Zn=e[1]}function jl(){return Kl.labWhitePoint}var Kl,Ul,Fl,$l,Hl,Bl,ql,Gl,zl=d((()=>{Ul=Kl={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:.008856451679035631,kKE:8,kK:903.2962962962963,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Fl=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]])})),Vl=d((()=>{zl(),Sl(),$l=(...t)=>{t=Qa(t,"lab");let[e,r,n]=t,[i,o,s]=Hl(e,r,n),[a,l,u]=ql(i,o,s);return[a,l,u,t.length>3?t[3]:1]},Hl=(t,e,r)=>{let{kE:n,kK:i,kKE:o,Xn:s,Yn:a,Zn:l}=Ul,u=(t+16)/116,c=.002*e+u,h=u-.005*r,d=c*c*c,p=h*h*h;return[(d>n?d:(116*c-16)/i)*s,(t>o?Math.pow((t+16)/116,3):t/i)*a,(p>n?p:(116*h-16)/i)*l]},Bl=t=>{let e=Math.sign(t);return((t=Math.abs(t))<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)*e},ql=(t,e,r)=>{let{MtxAdaptMa:n,MtxAdaptMaI:i,MtxXYZ2RGB:o,RefWhiteRGB:s,Xn:a,Yn:l,Zn:u}=Ul,c=a*n.m00+l*n.m10+u*n.m20,h=a*n.m01+l*n.m11+u*n.m21,d=a*n.m02+l*n.m12+u*n.m22,p=s.X*n.m00+s.Y*n.m10+s.Z*n.m20,f=s.X*n.m01+s.Y*n.m11+s.Z*n.m21,g=s.X*n.m02+s.Y*n.m12+s.Z*n.m22,m=(t*n.m00+e*n.m10+r*n.m20)*(p/c),y=(t*n.m01+e*n.m11+r*n.m21)*(f/h),_=(t*n.m02+e*n.m12+r*n.m22)*(g/d),v=m*i.m00+y*i.m10+_*i.m20,x=m*i.m01+y*i.m11+_*i.m21,b=m*i.m02+y*i.m12+_*i.m22;return[255*Bl(v*o.m00+x*o.m10+b*o.m20),255*Bl(v*o.m01+x*o.m11+b*o.m21),255*Bl(v*o.m02+x*o.m12+b*o.m22)]},Gl=$l}));function Yl(t){let e=Math.sign(t);return((t=Math.abs(t))<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}var Wl,Xl,Ql,Jl,Zl,tu,eu,ru,nu,iu,ou,su,au,lu,uu,cu,hu,du,pu,fu,gu,mu,yu,_u,vu,xu,bu,Tu,Eu,Ou,Su,Nu,Au,wu,Ru,Cu,Lu,Iu,ku,Du,Pu,Mu,ju,Ku,Uu,Fu,$u,Hu,Bu,qu,Gu,zu,Vu,Yu,Wu,Xu,Qu,Ju,Zu,tc,ec,rc,nc,ic,oc,sc,ac,lc,uc,cc,hc,dc=d((()=>{zl(),Sl(),Wl=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=Xl(e,r,n),[l,u,c]=function(t,e,r){let{Xn:n,Yn:i,Zn:o,kE:s,kK:a}=Ul,l=t/n,u=e/i,c=r/o,h=l>s?Math.pow(l,1/3):(a*l+16)/116,d=u>s?Math.pow(u,1/3):(a*u+16)/116;return[116*d-16,500*(h-d),200*(d-(c>s?Math.pow(c,1/3):(a*c+16)/116))]}(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},Xl=(t,e,r)=>{t=Yl(t/255),e=Yl(e/255),r=Yl(r/255);let{MtxRGB2XYZ:n,MtxAdaptMa:i,MtxAdaptMaI:o,Xn:s,Yn:a,Zn:l,As:u,Bs:c,Cs:h}=Ul,d=t*n.m00+e*n.m10+r*n.m20,p=t*n.m01+e*n.m11+r*n.m21,f=t*n.m02+e*n.m12+r*n.m22,g=s*i.m00+a*i.m10+l*i.m20,m=s*i.m01+a*i.m11+l*i.m21,y=s*i.m02+a*i.m12+l*i.m22,_=d*i.m00+p*i.m10+f*i.m20,v=d*i.m01+p*i.m11+f*i.m21,x=d*i.m02+p*i.m12+f*i.m22;return _*=g/u,v*=m/c,x*=y/h,d=_*o.m00+v*o.m10+x*o.m20,p=_*o.m01+v*o.m11+x*o.m21,f=_*o.m02+v*o.m12+x*o.m22,[d,p,f]},Ql=Wl})),pc=d((()=>{Sl(),Rl(),Al(),Nl(),Vl(),dc(),zl(),pl.prototype.lab=function(){return Ql(this._rgb)},Jl=(...t)=>new pl(...t,"lab"),Object.assign(ml,{lab:Jl,getLabWhitePoint:jl,setLabWhitePoint:Ml}),dl.format.lab=Gl,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"lab"))&&3===t.length)return"lab"}})})),fc=d((()=>{pc(),Al(),zl(),pl.prototype.darken=function(t=1){let e=this.lab();return e[0]-=Ul.Kn*t,new pl(e,"lab").alpha(this.alpha(),!0)},pl.prototype.brighten=function(t=1){return this.darken(-t)},pl.prototype.darker=pl.prototype.darken,pl.prototype.brighter=pl.prototype.brighten})),gc=d((()=>{Al(),pl.prototype.get=function(t){let[e,r]=t.split("."),n=this[e]();if(r){let t=e.indexOf(r)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw new Error(`unknown channel ${r} in mode ${e}`)}return n}})),mc=d((()=>{Al(),Sl(),({pow:Zl}=Math),pl.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===Wa(t)){if(0===t)return new pl([0,0,0,this._rgb[3]],"rgb");if(1===t)return new pl([255,255,255,this._rgb[3]],"rgb");let r=this.luminance(),n=20,i=(r,o)=>{let s=r.interpolate(o,.5,e),a=s.luminance();return Math.abs(t-a)<1e-7||!n--?s:a>t?i(r,s):i(s,o)},o=(r>t?i(new pl([0,0,0]),this):i(this,new pl([255,255,255]))).rgb();return new pl([...o,this._rgb[3]])}return tu(...this._rgb.slice(0,3))},tu=(t,e,r)=>.2126*(t=eu(t))+.7152*(e=eu(e))+.0722*eu(r),eu=t=>(t/=255)<=.03928?t/12.92:Zl((t+.055)/1.055,2.4)})),yc=d((()=>{ru={}})),_c=d((()=>{Al(),Sl(),yc(),nu=(t,e,r=.5,...n)=>{let i=n[0]||"lrgb";if(!ru[i]&&!n.length&&(i=Object.keys(ru)[0]),!ru[i])throw new Error(`interpolation mode ${i} is not defined`);return"object"!==Wa(t)&&(t=new pl(t)),"object"!==Wa(e)&&(e=new pl(e)),ru[i](t,e,r).alpha(t.alpha()+r*(e.alpha()-t.alpha()))}})),vc=d((()=>{Al(),_c(),pl.prototype.mix=pl.prototype.interpolate=function(t,e=.5,...r){return nu(this,t,e,...r)}})),xc=d((()=>{Al(),pl.prototype.premultiply=function(t=!1){let e=this._rgb,r=e[3];return t?(this._rgb=[e[0]*r,e[1]*r,e[2]*r,r],this):new pl([e[0]*r,e[1]*r,e[2]*r,r],"rgb")}})),bc=d((()=>{Sl(),({sin:iu,cos:ou}=Math),su=(...t)=>{let[e,r,n]=Qa(t,"lch");return isNaN(n)&&(n=0),n*=cl,[e,ou(n)*r,iu(n)*r]},au=su})),Tc=d((()=>{Sl(),bc(),Vl(),lu=(...t)=>{t=Qa(t,"lch");let[e,r,n]=t,[i,o,s]=au(e,r,n),[a,l,u]=Gl(i,o,s);return[a,l,u,t.length>3?t[3]:1]},uu=lu})),Ec=d((()=>{Sl(),Tc(),cu=(...t)=>{let e=rl(Qa(t,"hcl"));return uu(...e)},hu=cu})),Oc=d((()=>{Sl(),({sqrt:du,atan2:pu,round:fu}=Math),gu=(...t)=>{let[e,r,n]=Qa(t,"lab"),i=du(r*r+n*n),o=(pu(n,r)*hl+360)%360;return 0===fu(1e4*i)&&(o=Number.NaN),[e,i,o]},mu=gu})),Sc=d((()=>{Sl(),dc(),Oc(),yu=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=Ql(e,r,n),[l,u,c]=mu(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},_u=yu})),Nc=d((()=>{Sl(),Rl(),Al(),Nl(),Tc(),Ec(),Sc(),pl.prototype.lch=function(){return _u(this._rgb)},pl.prototype.hcl=function(){return rl(_u(this._rgb))},vu=(...t)=>new pl(...t,"lch"),xu=(...t)=>new pl(...t,"hcl"),Object.assign(ml,{lch:vu,hcl:xu}),dl.format.lch=uu,dl.format.hcl=hu,["lch","hcl"].forEach((t=>dl.autodetect.push({p:2,test:(...e)=>{if("array"===Wa(e=Qa(e,t))&&3===e.length)return t}})))})),Ac=d((()=>{Nc(),Al(),zl(),pl.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=Ul.Kn*t,e[1]<0&&(e[1]=0),new pl(e,"lch").alpha(this.alpha(),!0)},pl.prototype.desaturate=function(t=1){return this.saturate(-t)}})),wc=d((()=>{Al(),Sl(),pl.prototype.set=function(t,e,r=!1){let[n,i]=t.split("."),o=this[n]();if(i){let t=n.indexOf(i)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==Wa(e))switch(e.charAt(0)){case"+":case"-":o[t]+=+e;break;case"*":o[t]*=+e.substr(1);break;case"/":o[t]/=+e.substr(1);break;default:o[t]=+e}else{if("number"!==Wa(e))throw new Error("unsupported value for Color.set");o[t]=e}let i=new pl(o,n);return r?(this._rgb=i._rgb,this):i}throw new Error(`unknown channel ${i} in mode ${n}`)}return o}})),Rc=d((()=>{pc(),Al(),_c(),pl.prototype.tint=function(t=.5,...e){return nu(this,"white",t,...e)},pl.prototype.shade=function(t=.5,...e){return nu(this,"black",t,...e)}})),Cc=d((()=>{Al(),yc(),bu=(t,e,r)=>{let n=t._rgb,i=e._rgb;return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"rgb")},ru.rgb=bu})),Lc=d((()=>{Al(),yc(),({sqrt:Tu,pow:Eu}=Math),Ou=(t,e,r)=>{let[n,i,o]=t._rgb,[s,a,l]=e._rgb;return new pl(Tu(Eu(n,2)*(1-r)+Eu(s,2)*r),Tu(Eu(i,2)*(1-r)+Eu(a,2)*r),Tu(Eu(o,2)*(1-r)+Eu(l,2)*r),"rgb")},ru.lrgb=Ou})),Ic=d((()=>{pc(),yc(),Al(),Su=(t,e,r)=>{let n=t.lab(),i=e.lab();return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"lab")},ru.lab=Su})),kc=d((()=>{Al(),Nu=(t,e,r,n)=>{let i,o,s,a,l,u,c,h,d,p,f,g;return"hsl"===n?(i=t.hsl(),o=e.hsl()):"hsv"===n?(i=t.hsv(),o=e.hsv()):"hcg"===n?(i=t.hcg(),o=e.hcg()):"hsi"===n?(i=t.hsi(),o=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",i=t.hcl(),o=e.hcl()):"oklch"===n&&(i=t.oklch().reverse(),o=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([s,l,c]=i,[a,u,h]=o),isNaN(s)||isNaN(a)?isNaN(s)?isNaN(a)?p=Number.NaN:(p=a,(1==c||0==c)&&"hsv"!=n&&(d=u)):(p=s,(1==h||0==h)&&"hsv"!=n&&(d=l)):(g=a>s&&a-s>180?a-(s+360):a180?a+360-s:a-s,p=s+r*g),void 0===d&&(d=l+r*(u-l)),f=c+r*(h-c),new pl("oklch"===n?[f,d,p]:[p,d,f],n)}})),Dc=d((()=>{Nc(),kc(),yc(),Au=(t,e,r)=>Nu(t,e,r,"lch"),ru.lch=Au,ru.hcl=Au})),Pc=d((()=>{Sl(),wu=t=>{if("number"==Wa(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},Ru=wu})),Mc=d((()=>{Sl(),Cu=(...t)=>{let[e,r,n]=Qa(t,"rgb");return(e<<16)+(r<<8)+n},Lu=Cu})),jc=d((()=>{Rl(),Al(),Nl(),Sl(),Pc(),Mc(),pl.prototype.num=function(){return Lu(this._rgb)},Iu=(...t)=>new pl(...t,"num"),Object.assign(ml,{num:Iu}),dl.format.num=Ru,dl.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===Wa(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}})})),Kc=d((()=>{jc(),yc(),Al(),ku=(t,e,r)=>{let n=t.num(),i=e.num();return new pl(n+r*(i-n),"num")},ru.num=ku})),Uc=d((()=>{Sl(),({floor:Du}=Math),Pu=(...t)=>{t=Qa(t,"hcg");let e,r,n,[i,o,s]=t;s*=255;let a=255*o;if(0===o)e=r=n=s;else{360===i&&(i=0),i>360&&(i-=360),i<0&&(i+=360),i/=60;let t=Du(i),l=i-t,u=s*(1-o),c=u+a*(1-l),h=u+a*l,d=u+a;switch(t){case 0:[e,r,n]=[d,h,u];break;case 1:[e,r,n]=[c,d,u];break;case 2:[e,r,n]=[u,d,h];break;case 3:[e,r,n]=[u,c,d];break;case 4:[e,r,n]=[h,u,d];break;case 5:[e,r,n]=[d,u,c]}}return[e,r,n,t.length>3?t[3]:1]},Mu=Pu})),Fc=d((()=>{Sl(),ju=(...t)=>{let e,[r,n,i]=Qa(t,"rgb"),o=il(r,n,i),s=ol(r,n,i),a=s-o,l=100*a/255,u=o/(255-a)*100;return 0===a?e=Number.NaN:(r===s&&(e=(n-i)/a),n===s&&(e=2+(i-r)/a),i===s&&(e=4+(r-n)/a),e*=60,e<0&&(e+=360)),[e,l,u]},Ku=ju})),$c=d((()=>{Sl(),Rl(),Al(),Nl(),Uc(),Fc(),pl.prototype.hcg=function(){return Ku(this._rgb)},Uu=(...t)=>new pl(...t,"hcg"),ml.hcg=Uu,dl.format.hcg=Mu,dl.autodetect.push({p:1,test:(...t)=>{if("array"===Wa(t=Qa(t,"hcg"))&&3===t.length)return"hcg"}})})),Hc=d((()=>{$c(),kc(),yc(),Fu=(t,e,r)=>Nu(t,e,r,"hcg"),ru.hcg=Fu})),Bc=d((()=>{Sl(),({cos:$u}=Math),Hu=(...t)=>{t=Qa(t,"hsi");let e,r,n,[i,o,s]=t;return isNaN(i)&&(i=0),isNaN(o)&&(o=0),i>360&&(i-=360),i<0&&(i+=360),i/=360,i<1/3?(n=(1-o)/3,e=(1+o*$u(ll*i)/$u(ul-ll*i))/3,r=1-(n+e)):i<2/3?(i-=1/3,e=(1-o)/3,r=(1+o*$u(ll*i)/$u(ul-ll*i))/3,n=1-(e+r)):(i-=2/3,r=(1-o)/3,n=(1+o*$u(ll*i)/$u(ul-ll*i))/3,e=1-(r+n)),e=qa(s*e*3),r=qa(s*r*3),n=qa(s*n*3),[255*e,255*r,255*n,t.length>3?t[3]:1]},Bu=Hu})),qc=d((()=>{Sl(),({min:qu,sqrt:Gu,acos:zu}=Math),Vu=(...t)=>{let[e,r,n]=Qa(t,"rgb");e/=255,r/=255,n/=255;let i,o=qu(e,r,n),s=(e+r+n)/3,a=s>0?1-o/s:0;return 0===a?i=NaN:(i=(e-r+(e-n))/2,i/=Gu((e-r)*(e-r)+(e-n)*(r-n)),i=zu(i),n>r&&(i=ll-i),i/=ll),[360*i,a,s]},Yu=Vu})),Gc=d((()=>{Sl(),Rl(),Al(),Nl(),Bc(),qc(),pl.prototype.hsi=function(){return Yu(this._rgb)},Wu=(...t)=>new pl(...t,"hsi"),ml.hsi=Wu,dl.format.hsi=Bu,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsi"))&&3===t.length)return"hsi"}})})),zc=d((()=>{Gc(),kc(),yc(),Xu=(t,e,r)=>Nu(t,e,r,"hsi"),ru.hsi=Xu})),Vc=d((()=>{Sl(),Qu=(...t)=>{t=Qa(t,"hsl");let e,r,n,[i,o,s]=t;if(0===o)e=r=n=255*s;else{let t=[0,0,0],a=[0,0,0],l=s<.5?s*(1+o):s+o-s*o,u=2*s-l,c=i/360;t[0]=c+1/3,t[1]=c,t[2]=c-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?a[e]=u+6*(l-u)*t[e]:2*t[e]<1?a[e]=l:3*t[e]<2?a[e]=u+(l-u)*(2/3-t[e])*6:a[e]=u;[e,r,n]=[255*a[0],255*a[1],255*a[2]]}return t.length>3?[e,r,n,t[3]]:[e,r,n,1]},Ju=Qu})),Yc=d((()=>{Sl(),Zu=(...t)=>{t=Qa(t,"rgba");let[e,r,n]=t;e/=255,r/=255,n/=255;let i,o,s=il(e,r,n),a=ol(e,r,n),l=(a+s)/2;return a===s?(i=0,o=Number.NaN):i=l<.5?(a-s)/(a+s):(a-s)/(2-a-s),e==a?o=(r-n)/(a-s):r==a?o=2+(n-e)/(a-s):n==a&&(o=4+(e-r)/(a-s)),o*=60,o<0&&(o+=360),t.length>3&&void 0!==t[3]?[o,i,l,t[3]]:[o,i,l]},tc=Zu})),Wc=d((()=>{Sl(),Rl(),Al(),Nl(),Vc(),Yc(),pl.prototype.hsl=function(){return tc(this._rgb)},ec=(...t)=>new pl(...t,"hsl"),ml.hsl=ec,dl.format.hsl=Ju,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsl"))&&3===t.length)return"hsl"}})})),Xc=d((()=>{Wc(),kc(),yc(),rc=(t,e,r)=>Nu(t,e,r,"hsl"),ru.hsl=rc})),Qc=d((()=>{Sl(),({floor:nc}=Math),ic=(...t)=>{t=Qa(t,"hsv");let e,r,n,[i,o,s]=t;if(s*=255,0===o)e=r=n=s;else{360===i&&(i=0),i>360&&(i-=360),i<0&&(i+=360),i/=60;let t=nc(i),a=i-t,l=s*(1-o),u=s*(1-o*a),c=s*(1-o*(1-a));switch(t){case 0:[e,r,n]=[s,c,l];break;case 1:[e,r,n]=[u,s,l];break;case 2:[e,r,n]=[l,s,c];break;case 3:[e,r,n]=[l,u,s];break;case 4:[e,r,n]=[c,l,s];break;case 5:[e,r,n]=[s,l,u]}}return[e,r,n,t.length>3?t[3]:1]},oc=ic})),Jc=d((()=>{Sl(),({min:sc,max:ac}=Math),lc=(...t)=>{t=Qa(t,"rgb");let e,r,n,[i,o,s]=t,a=sc(i,o,s),l=ac(i,o,s),u=l-a;return n=l/255,0===l?(e=Number.NaN,r=0):(r=u/l,i===l&&(e=(o-s)/u),o===l&&(e=2+(s-i)/u),s===l&&(e=4+(i-o)/u),e*=60,e<0&&(e+=360)),[e,r,n]},uc=lc})),Zc=d((()=>{Sl(),Rl(),Al(),Nl(),Qc(),Jc(),pl.prototype.hsv=function(){return uc(this._rgb)},cc=(...t)=>new pl(...t,"hsv"),ml.hsv=cc,dl.format.hsv=oc,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"hsv"))&&3===t.length)return"hsv"}})})),th=d((()=>{Zc(),kc(),yc(),hc=(t,e,r)=>Nu(t,e,r,"hsv"),ru.hsv=hc}));function eh(t,e){let r=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map((t=>[t])));let n=e[0].length,i=e[0].map(((t,r)=>e.map((t=>t[r])))),o=t.map((t=>i.map((e=>Array.isArray(t)?t.reduce(((t,r,n)=>t+r*(e[n]||0)),0):e.reduce(((e,r)=>e+r*t),0)))));return 1===r&&(o=o[0]),1===n?o.map((t=>t[0])):o}var rh,nh,ih=d((()=>{})),oh=d((()=>{Sl(),ih(),Vl(),rh=(...t)=>{t=Qa(t,"lab");let[e,r,n,...i]=t,[o,s,a]=function(t){var e=eh([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],t);return eh([[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],e.map((t=>t**3)))}([e,r,n]),[l,u,c]=ql(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},nh=rh}));function sh(t){let e=eh([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],t);return eh([[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],e.map((t=>Math.cbrt(t))))}var ah,lh,uh,ch,hh,dh,ph,fh,gh,mh,yh,_h,vh,xh=d((()=>{Sl(),ih(),dc(),ah=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb");return[...sh(Xl(e,r,n)),...i.length>0&&i[0]<1?[i[0]]:[]]},lh=ah})),bh=d((()=>{Sl(),Rl(),Al(),Nl(),oh(),xh(),pl.prototype.oklab=function(){return lh(this._rgb)},uh=(...t)=>new pl(...t,"oklab"),Object.assign(ml,{oklab:uh}),dl.format.oklab=nh,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"oklab"))&&3===t.length)return"oklab"}})})),Th=d((()=>{bh(),yc(),Al(),ch=(t,e,r)=>{let n=t.oklab(),i=e.oklab();return new pl(n[0]+r*(i[0]-n[0]),n[1]+r*(i[1]-n[1]),n[2]+r*(i[2]-n[2]),"oklab")},ru.oklab=ch})),Eh=d((()=>{Nc(),kc(),yc(),hh=(t,e,r)=>Nu(t,e,r,"oklch"),ru.oklch=hh})),Oh=d((()=>{Al(),Sl(),({pow:dh,sqrt:ph,PI:fh,cos:gh,sin:mh,atan2:yh}=Math),_h=(t,e="lrgb",r=null)=>{let n=t.length;r||(r=Array.from(new Array(n)).map((()=>1)));let i=n/r.reduce((function(t,e){return t+e}));if(r.forEach(((t,e)=>{r[e]*=i})),t=t.map((t=>new pl(t))),"lrgb"===e)return vh(t,r);let o=t.shift(),s=o.get(e),a=[],l=0,u=0;for(let t=0;t{let i=t.get(e);c+=t.alpha()*r[n+1];for(let t=0;t=360;)e-=360;s[t]=e}else s[t]=s[t]/a[t];return c/=n,new pl(s,e).alpha(c>.99999?1:c,!0)},vh=(t,e)=>{let r=t.length,n=[0,0,0,0];for(let i=0;i.9999999&&(n[3]=1),new pl(Ga(n))}}));function Sh(t){let e="rgb",r=ml("#ccc"),n=0,i=[0,1],o=[0,1],s=[],a=[0,0],l=!1,u=[],c=!1,h=0,d=1,p=!1,f={},g=!0,m=1,y=function(t){if((t=t||["#fff","#000"])&&"string"===Wa(t)&&ml.brewer&&ml.brewer[t.toLowerCase()]&&(t=ml.brewer[t.toLowerCase()]),"array"===Wa(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;et,v=t=>t,x=function(t,n){let i,o;if(null==n&&(n=!1),isNaN(t)||null===t)return r;o=n?t:l&&l.length>2?function(t){if(null!=l){let e=l.length-1,r=0;for(;r=l[r];)r++;return r-1}return 0}(t)/(l.length-2):d!==h?(t-h)/(d-h):1,o=v(o),n||(o=_(o)),1!==m&&(o=Ah(o,m)),o=a[0]+o*(1-a[0]-a[1]),o=qa(o,0,1);let c=Math.floor(1e4*o);if(g&&f[c])i=f[c];else{if("array"===Wa(u))for(let t=0;t=r&&t===s.length-1){i=u[t];break}if(o>r&&of={};y(t);let T=function(t){let e=ml(x(t));return c&&e[c]?e[c]():e};return T.classes=function(t){if(null!=t){if("array"===Wa(t))l=t,i=[t[0],t[t.length-1]];else{let e=ml.analyze(i);l=0===t?[e.min,e.max]:ml.limits(e,"e",t)}return T}return l},T.domain=function(t){if(!arguments.length)return o;o=t.slice(0),h=t[0],d=t[t.length-1],s=[];let e=u.length;if(t.length===e&&h!==d)for(let e of Array.from(t))s.push((e-h)/(d-h));else{for(let t=0;t2){let e=t.map(((e,r)=>r/(t.length-1))),r=t.map((t=>(t-h)/(d-h)));r.every(((t,r)=>e[r]===t))||(v=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=r[n+1];)n++;let i=(t-r[n])/(r[n+1]-r[n]);return e[n]+i*(e[n+1]-e[n])})}}return i=[h,d],T},T.mode=function(t){return arguments.length?(e=t,b(),T):e},T.range=function(t,e){return y(t),T},T.out=function(t){return c=t,T},T.spread=function(t){return arguments.length?(n=t,T):n},T.correctLightness=function(t){return null==t&&(t=!0),p=t,b(),_=p?function(t){let e=x(0,!0).lab()[0],r=x(1,!0).lab()[0],n=e>r,i=x(t,!0).lab()[0],o=e+(r-e)*t,s=i-o,a=0,l=1,u=20;for(;Math.abs(s)>.01&&u-- >0;)n&&(s*=-1),s<0?(a=t,t+=.5*(l-t)):(l=t,t+=.5*(a-t)),i=x(t,!0).lab()[0],s=i-o;return t}:t=>t,T},T.padding=function(t){return null!=t?("number"===Wa(t)&&(t=[t,t]),a=t,T):a},T.colors=function(e,r){arguments.length<2&&(r="hex");let n=[];if(0===arguments.length)n=u.slice(0);else if(1===e)n=[T(.5)];else if(e>1){let t=i[0],r=i[1]-t;n=Nh(0,e).map((n=>T(t+n/(e-1)*r)))}else{t=[];let e=[];if(l&&l.length>2)for(let t=1,r=l.length,n=1<=r;n?tr;n?t++:t--)e.push(.5*(l[t-1]+l[t]));else e=i;n=e.map((t=>T(t)))}return ml[r]&&(n=n.map((t=>t[r]()))),n},T.cache=function(t){return null!=t?(g=t,T):g},T.gamma=function(t){return null!=t?(m=t,T):m},T.nodata=function(t){return null!=t?(r=ml(t),T):r},T}function Nh(t,e,r){let n=[],i=to;i?e++:e--)n.push(e);return n}var Ah,wh,Rh,Ch,Lh,Ih,kh,Dh,Ph,Mh,jh,Kh,Uh,Fh,$h,Hh,Bh,qh,Gh=d((()=>{Rl(),Sl(),({pow:Ah}=Math)})),zh=d((()=>{Al(),pc(),Gh(),wh=function(t){let e=[1,1];for(let r=1;rnew pl(t)))).length)[r,n]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>r[e]+t*(n[e]-r[e])));return new pl(e,"lab")};else if(3===t.length)[r,n,i]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>(1-t)*(1-t)*r[e]+2*(1-t)*t*n[e]+t*t*i[e]));return new pl(e,"lab")};else if(4===t.length){let o;[r,n,i,o]=t.map((t=>t.lab())),e=function(t){let e=[0,1,2].map((e=>(1-t)*(1-t)*(1-t)*r[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*i[e]+t*t*t*o[e]));return new pl(e,"lab")}}else{if(!(t.length>=5))throw new RangeError("No point in running bezier with only one color.");{let r,n,i;r=t.map((t=>t.lab())),i=t.length-1,n=wh(i),e=function(t){let e=1-t,o=[0,1,2].map((o=>r.reduce(((r,s,a)=>r+n[a]*e**(i-a)*t**a*s[o]),0)));return new pl(o,"lab")}}}return e},Ch=t=>{let e=Rh(t);return e.scale=()=>Sh(e),e}})),Vh=d((()=>{Rl(),Al(),Nl(),Sl(),({round:Lh}=Math),pl.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Lh)},pl.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map(((e,r)=>r<3?!1===t?e:Lh(e):e))},Ih=(...t)=>new pl(...t,"rgb"),Object.assign(ml,{rgb:Ih}),dl.format.rgb=(...t)=>{let e=Qa(t,"rgba");return void 0===e[3]&&(e[3]=1),e},dl.autodetect.push({p:3,test:(...t)=>{if("array"===Wa(t=Qa(t,"rgba"))&&(3===t.length||4===t.length&&"number"==Wa(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}})})),Yh=d((()=>{Vh(),Rl(),kh=(t,e,r)=>{if(!kh[r])throw new Error("unknown blend mode "+r);return kh[r](t,e)},Dh=t=>(e,r)=>{let n=ml(r).rgb(),i=ml(e).rgb();return ml.rgb(t(n,i))},Ph=t=>(e,r)=>{let n=[];return n[0]=t(e[0],r[0]),n[1]=t(e[1],r[1]),n[2]=t(e[2],r[2]),n},Mh=t=>t,jh=(t,e)=>t*e/255,Kh=(t,e)=>t>e?e:t,Uh=(t,e)=>t>e?t:e,Fh=(t,e)=>255*(1-(1-t/255)*(1-e/255)),$h=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),Hh=(t,e)=>255*(1-(1-e/255)/(t/255)),Bh=(t,e)=>255===t||(t=e/255*255/(1-t/255))>255?255:t,kh.normal=Dh(Ph(Mh)),kh.multiply=Dh(Ph(jh)),kh.screen=Dh(Ph(Fh)),kh.overlay=Dh(Ph($h)),kh.darken=Dh(Ph(Kh)),kh.lighten=Dh(Ph(Uh)),kh.dodge=Dh(Ph(Bh)),kh.burn=Dh(Ph(Hh)),qh=kh}));function Wh(t=300,e=-1.5,r=1,n=1,i=[0,1]){let o,s=0;"array"===Wa(i)?o=i[1]-i[0]:(o=0,i=[i,i]);let a=function(a){let l=ll*((t+120)/360+e*a),u=Xh(i[0]+o*a,n),c=(0!==s?r[0]+a*s:r)*u*(1-u)/2,h=Jh(l),d=Qh(l);return ml(Ga([255*(u+c*(-.14861*h+1.78277*d)),255*(u+c*(-.29227*h-.90649*d)),255*(u+c*(1.97294*h)),1]))};return a.start=function(e){return null==e?t:(t=e,a)},a.rotations=function(t){return null==t?e:(e=t,a)},a.gamma=function(t){return null==t?n:(n=t,a)},a.hue=function(t){return null==t?r:("array"===Wa(r=t)?(s=r[1]-r[0],0===s&&(r=r[1])):s=0,a)},a.lightness=function(t){return null==t?i:("array"===Wa(t)?(i=t,o=t[1]-t[0]):(i=[t,t],o=0),a)},a.scale=()=>ml.scale(a),a.hue(r),a}var Xh,Qh,Jh,Zh,td,ed,rd=d((()=>{Sl(),Rl(),({pow:Xh,sin:Qh,cos:Jh}=Math)})),nd=d((()=>{Al(),({floor:Zh,random:td}=Math),ed=(t=td)=>{let e="#";for(let r=0;r<6;r++)e+="0123456789abcdef".charAt(Zh(16*t()));return new pl(e,"hex")}}));function id(t,e=null){let r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Wa(t)&&(t=Object.values(t)),t.forEach((t=>{e&&"object"===Wa(t)&&(t=t[e]),null!=t&&!isNaN(t)&&(r.values.push(t),r.sum+=t,tr.max&&(r.max=t),r.count+=1)})),r.domain=[r.min,r.max],r.limits=(t,e)=>od(r,t,e),r}function od(t,e="equal",r=7){"array"==Wa(t)&&(t=id(t));let{min:n,max:i}=t,o=t.values.sort(((t,e)=>t-e));if(1===r)return[n,i];let s=[];if("c"===e.substr(0,1)&&(s.push(n),s.push(i)),"e"===e.substr(0,1)){s.push(n);for(let t=1;t 0");let t=Math.LOG10E*sd(n),e=Math.LOG10E*sd(i);s.push(n);for(let n=1;n200&&(u=!1)}let d={};for(let t=0;tt-e)),s.push(p[0]);for(let t=1;t{Za(),({log:sd,pow:ad,floor:ld,abs:ud}=Math)})),dd=d((()=>{Al(),mc(),cd=(t,e)=>{t=new pl(t),e=new pl(e);let r=t.luminance(),n=e.luminance();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}));function pd(t,e,r){return.2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(r/255,2.4)}var fd,gd,md=d((()=>{Al(),_c(),fd=.022,gd=(t,e)=>{t=new pl(t),e=new pl(e),t.alpha()<1&&(t=nu(e,t,t.alpha(),"rgb"));let r=pd(...t.rgb()),n=pd(...e.rgb()),i=r>=fd?r:r+Math.pow(fd-r,1.414),o=n>=fd?n:n+Math.pow(fd-n,1.414),s=Math.pow(o,.56)-Math.pow(i,.57),a=Math.pow(o,.65)-Math.pow(i,.62),l=Math.abs(o-i)<5e-4?0:i0?l-.027:l+.027)}}));function yd(t,e,r=1,n=1,i=1){var o=function(t){return 360*t/(2*Ad)},s=function(t){return 2*Ad*t/360};t=new pl(t),e=new pl(e);let[a,l,u]=Array.from(t.lab()),[c,h,d]=Array.from(e.lab()),p=(a+c)/2,f=(_d(vd(l,2)+vd(u,2))+_d(vd(h,2)+vd(d,2)))/2,g=.5*(1-_d(vd(f,7)/(vd(f,7)+vd(25,7)))),m=l*(1+g),y=h*(1+g),_=_d(vd(m,2)+vd(u,2)),v=_d(vd(y,2)+vd(d,2)),x=(_+v)/2,b=o(Td(u,m)),T=o(Td(d,y)),E=b>=0?b:b+360,O=T>=0?T:T+360,S=Ed(E-O)>180?(E+O+360)/2:(E+O)/2,N=1-.17*Od(s(S-30))+.24*Od(s(2*S))+.32*Od(s(3*S+6))-.2*Od(s(4*S-63)),A=O-E;A=Ed(A)<=180?A:O<=E?A+360:A-360,A=2*_d(_*v)*Sd(s(A)/2);let w=c-a,R=v-_,C=1+.015*vd(p-50,2)/_d(20+vd(p-50,2)),L=1+.045*x,I=1+.015*x*N,k=30*Nd(-vd((S-275)/25,2)),D=-2*_d(vd(x,7)/(vd(x,7)+vd(25,7)))*Sd(2*s(k)),P=_d(vd(w/(r*C),2)+vd(R/(n*L),2)+vd(A/(i*I),2)+D*(R/(n*L))*(A/(i*I)));return bd(0,xd(100,P))}var _d,vd,xd,bd,Td,Ed,Od,Sd,Nd,Ad,wd=d((()=>{Al(),({sqrt:_d,pow:vd,min:xd,max:bd,atan2:Td,abs:Ed,cos:Od,sin:Sd,exp:Nd,PI:Ad}=Math)}));function Rd(t,e,r="lab"){t=new pl(t),e=new pl(e);let n=t.get(r),i=e.get(r),o=0;for(let t in n){let e=(n[t]||0)-(i[t]||0);o+=e*e}return Math.sqrt(o)}var Cd,Ld,Id,kd,Dd,Pd,Md,jd,Kd,Ud,Fd,$d,Hd,Bd,qd,Gd,zd,Vd,Yd,Wd,Xd,Qd,Jd,Zd,tp,ep,rp,np,ip,op,sp,ap,lp,up,cp,hp,dp,pp,fp,gp,mp,yp,_p,vp,xp,bp,Tp,Ep,Op,Sp,Np,Ap,wp,Rp,Cp,Lp,Ip,kp,Dp,Pp,Mp,jp,Kp,Up,Fp,$p,Hp,Bp=d((()=>{Al()})),qp=d((()=>{Al(),Cd=(...t)=>{try{return new pl(...t),!0}catch{return!1}}})),Gp=d((()=>{Rl(),Wc(),Gh(),Ld={cool:()=>Sh([ml.hsl(180,1,.9),ml.hsl(250,.7,.4)]),hot:()=>Sh(["#000","#f00","#ff0","#fff"]).mode("rgb")}})),zp=d((()=>{Id={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},kd=Object.keys(Id),Dd=new Map(kd.map((t=>[t.toLowerCase(),t]))),Pd="function"==typeof Proxy?new Proxy(Id,{get(t,e){let r=e.toLowerCase();if(Dd.has(r))return t[Dd.get(r)]},getOwnPropertyNames:()=>Object.getOwnPropertyNames(kd)}):Id,Md=Pd})),Vp=d((()=>{Sl(),jd=(...t)=>{t=Qa(t,"cmyk");let[e,r,n,i]=t,o=t.length>4?t[4]:1;return 1===i?[0,0,0,o]:[e>=1?0:255*(1-e)*(1-i),r>=1?0:255*(1-r)*(1-i),n>=1?0:255*(1-n)*(1-i),o]},Kd=jd})),Yp=d((()=>{Sl(),({max:Ud}=Math),Fd=(...t)=>{let[e,r,n]=Qa(t,"rgb");e/=255,r/=255,n/=255;let i=1-Ud(e,Ud(r,n)),o=i<1?1/(1-i):0;return[(1-e-i)*o,(1-r-i)*o,(1-n-i)*o,i]},$d=Fd})),Wp=d((()=>{Rl(),Al(),Nl(),Sl(),Vp(),Yp(),pl.prototype.cmyk=function(){return $d(this._rgb)},Hd=(...t)=>new pl(...t,"cmyk"),Object.assign(ml,{cmyk:Hd}),dl.format.cmyk=Kd,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"cmyk"))&&4===t.length)return"cmyk"}})})),Xp=d((()=>{Sl(),Bd=(...t)=>{let e=Qa(t,"hsla"),r=Ja(t)||"lsa";return e[0]=sl(e[0]||0)+"deg",e[1]=sl(100*e[1])+"%",e[2]=sl(100*e[2])+"%","hsla"===r||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),r="hsla"):e.length=3,`${r.substr(0,3)}(${e.join(" ")})`},qd=Bd})),Qp=d((()=>{Sl(),Gd=(...t)=>{let e=Qa(t,"lab"),r=Ja(t)||"lab";return e[0]=sl(e[0])+"%",e[1]=sl(e[1]),e[2]=sl(e[2]),"laba"===r||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},zd=Gd})),Jp=d((()=>{Sl(),Vd=(...t)=>{let e=Qa(t,"lch"),r=Ja(t)||"lab";return e[0]=sl(e[0])+"%",e[1]=sl(e[1]),e[2]=isNaN(e[2])?"none":sl(e[2])+"deg","lcha"===r||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},Yd=Vd})),Zp=d((()=>{Sl(),Wd=(...t)=>{let e=Qa(t,"lab");return e[0]=sl(100*e[0])+"%",e[1]=al(e[1]),e[2]=al(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},Xd=Wd})),tf=d((()=>{Sl(),xh(),Oc(),Qd=(...t)=>{let[e,r,n,...i]=Qa(t,"rgb"),[o,s,a]=lh(e,r,n),[l,u,c]=mu(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},Jd=Qd})),ef=d((()=>{Sl(),Zd=(...t)=>{let e=Qa(t,"lch");return e[0]=sl(100*e[0])+"%",e[1]=al(e[1]),e[2]=isNaN(e[2])?"none":sl(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},tp=Zd})),rf=d((()=>{Sl(),Xp(),Yc(),Qp(),dc(),Jp(),Sc(),xh(),Zp(),tf(),ef(),zl(),({round:ep}=Math),rp=(...t)=>{let e=Qa(t,"rgba"),r=Ja(t)||"rgb";if("hsl"===r.substr(0,3))return qd(tc(e),r);if("lab"===r.substr(0,3)){let t=jl();Ml("d50");let n=zd(Ql(e),r);return Ml(t),n}if("lch"===r.substr(0,3)){let t=jl();Ml("d50");let n=Yd(_u(e),r);return Ml(t),n}return"oklab"===r.substr(0,5)?Xd(lh(e)):"oklch"===r.substr(0,5)?tp(Jd(e)):(e[0]=ep(e[0]),e[1]=ep(e[1]),e[2]=ep(e[2]),("rgba"===r||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),r="rgba"),`${r.substr(0,3)}(${e.slice(0,"rgb"===r?3:4).join(" ")})`)},np=rp})),nf=d((()=>{Sl(),bc(),oh(),ip=(...t)=>{t=Qa(t,"lch");let[e,r,n,...i]=t,[o,s,a]=au(e,r,n),[l,u,c]=nh(o,s,a);return[l,u,c,...i.length>0&&i[0]<1?[i[0]]:[]]},op=ip})),of=d((()=>{Vc(),Vl(),Tc(),oh(),nf(),Nl(),Va(),zl(),sp=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,ap=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,lp=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,up=/\s*/.source,cp=/\s+/.source,hp=/\s*,\s*/.source,dp=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,pp=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,fp=new RegExp("^rgba?\\("+up+[sp,sp,sp].join(cp)+pp+"\\)$"),gp=new RegExp("^rgb\\("+up+[sp,sp,sp].join(hp)+up+"\\)$"),mp=new RegExp("^rgba\\("+up+[sp,sp,sp,ap].join(hp)+up+"\\)$"),yp=new RegExp("^hsla?\\("+up+[dp,lp,lp].join(cp)+pp+"\\)$"),_p=new RegExp("^hsl?\\("+up+[dp,lp,lp].join(hp)+up+"\\)$"),vp=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,xp=new RegExp("^lab\\("+up+[ap,ap,ap].join(cp)+pp+"\\)$"),bp=new RegExp("^lch\\("+up+[ap,ap,dp].join(cp)+pp+"\\)$"),Tp=new RegExp("^oklab\\("+up+[ap,ap,ap].join(cp)+pp+"\\)$"),Ep=new RegExp("^oklch\\("+up+[ap,ap,dp].join(cp)+pp+"\\)$"),({round:Op}=Math),Sp=t=>t.map(((t,e)=>e<=2?qa(Op(t),0,255):t)),Np=(t,e=0,r=100,n=!1)=>("string"==typeof t&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,t=n?e+.5*(t+1)*(r-e):e+t*(r-e)),+t),Ap=(t,e)=>"none"===t?e:t,wp=t=>{if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];let e;if(dl.format.named)try{return dl.format.named(t)}catch{}if((e=t.match(fp))||(e=t.match(gp))){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+Np(Ap(t[e],0),0,255);t=Sp(t);let r=void 0!==e[4]?+Np(e[4],0,1):1;return t[3]=r,t}if(e=t.match(mp)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+Np(t[e],0,255);return t}if((e=t.match(yp))||(e=t.match(_p))){let t=e.slice(1,4);t[0]=+Ap(t[0].replace("deg",""),0),t[1]=.01*+Np(Ap(t[1],0),0,100),t[2]=.01*+Np(Ap(t[2],0),0,100);let r=Sp(Ju(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}if(e=t.match(vp)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let r=Ju(t);for(let t=0;t<3;t++)r[t]=Op(r[t]);return r[3]=+e[4],r}if(e=t.match(xp)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,100),t[1]=Np(Ap(t[1],0),-125,125,!0),t[2]=Np(Ap(t[2],0),-125,125,!0);let r=jl();Ml("d50");let n=Sp(Gl(t));Ml(r);let i=void 0!==e[4]?+Np(e[4],0,1):1;return n[3]=i,n}if(e=t.match(bp)){let t=e.slice(1,4);t[0]=Np(t[0],0,100),t[1]=Np(Ap(t[1],0),0,150,!1),t[2]=+Ap(t[2].replace("deg",""),0);let r=jl();Ml("d50");let n=Sp(uu(t));Ml(r);let i=void 0!==e[4]?+Np(e[4],0,1):1;return n[3]=i,n}if(e=t.match(Tp)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,1),t[1]=Np(Ap(t[1],0),-.4,.4,!0),t[2]=Np(Ap(t[2],0),-.4,.4,!0);let r=Sp(nh(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}if(e=t.match(Ep)){let t=e.slice(1,4);t[0]=Np(Ap(t[0],0),0,1),t[1]=Np(Ap(t[1],0),0,.4,!1),t[2]=+Ap(t[2].replace("deg",""),0);let r=Sp(op(t)),n=void 0!==e[4]?+Np(e[4],0,1):1;return r[3]=n,r}},wp.test=t=>fp.test(t)||yp.test(t)||xp.test(t)||bp.test(t)||Tp.test(t)||Ep.test(t)||gp.test(t)||mp.test(t)||_p.test(t)||vp.test(t)||"transparent"===t,Rp=wp})),sf=d((()=>{Rl(),Al(),Nl(),Sl(),rf(),of(),pl.prototype.css=function(t){return np(this._rgb,t)},Cp=(...t)=>new pl(...t,"css"),ml.css=Cp,dl.format.css=Rp,dl.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&Rp.test(t))return"css"}})})),af=d((()=>{Al(),Rl(),Nl(),Sl(),dl.format.gl=(...t)=>{let e=Qa(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},Lp=(...t)=>new pl(...t,"gl"),ml.gl=Lp,pl.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]}})),lf=d((()=>{Al(),Rl(),Sl(),Nl(),Ll(),Il(),pl.prototype.hex=function(t){return Ol(this._rgb,t)},Ip=(...t)=>new pl(...t,"hex"),ml.hex=Ip,dl.format.hex=bl,dl.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===Wa(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}})})),uf=d((()=>{({log:kp}=Math),Dp=t=>{let e,r,n,i=t/100;return i<66?(e=255,r=i<6?0:-155.25485562709179-.44596950469579133*(r=i-2)+104.49216199393888*kp(r),n=i<20?0:.8274096064007395*(n=i-10)-254.76935184120902+115.67994401066147*kp(n)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*kp(e),r=325.4494125711974+.07943456536662342*(r=i-50)-28.0852963507957*kp(r),n=255),[e,r,n,1]},Pp=Dp})),cf=d((()=>{uf(),Sl(),({round:Mp}=Math),jp=(...t)=>{let e,r=Qa(t,"rgb"),n=r[0],i=r[2],o=1e3,s=4e4;for(;s-o>.4;){e=.5*(s+o);let t=Pp(e);t[2]/t[0]>=i/n?s=e:o=e}return Mp(e)},Kp=jp})),hf=d((()=>{Rl(),Al(),Nl(),uf(),cf(),pl.prototype.temp=pl.prototype.kelvin=pl.prototype.temperature=function(){return Kp(this._rgb)},Up=(...t)=>new pl(...t,"temp"),Object.assign(ml,{temp:Up,kelvin:Up,temperature:Up}),dl.format.temp=dl.format.kelvin=dl.format.temperature=Pp})),df=d((()=>{Sl(),Rl(),Al(),Nl(),nf(),tf(),pl.prototype.oklch=function(){return Jd(this._rgb)},Fp=(...t)=>new pl(...t,"oklch"),Object.assign(ml,{oklch:Fp}),dl.format.oklch=op,dl.autodetect.push({p:2,test:(...t)=>{if("array"===Wa(t=Qa(t,"oklch"))&&3===t.length)return"oklch"}})})),pf=d((()=>{Rl(),kl(),Dl(),Pl(),fc(),gc(),mc(),vc(),xc(),Ac(),wc(),Rc(),Cc(),Lc(),Ic(),Dc(),Kc(),Hc(),zc(),Xc(),th(),Th(),Eh(),Oh(),zh(),Yh(),rd(),_c(),nd(),Gh(),hd(),dd(),md(),wd(),Bp(),hd(),qp(),Nl(),Gp(),Cl(),zp(),Al(),Wp(),sf(),af(),$c(),lf(),Gc(),Wc(),Zc(),pc(),Nc(),jc(),Vh(),hf(),bh(),df(),Object.assign(ml,{analyze:id,average:_h,bezier:Ch,blend:qh,brewer:Md,Color:pl,colors:yl,contrast:cd,contrastAPCA:gd,cubehelix:Wh,deltaE:yd,distance:Rd,input:dl,interpolate:nu,limits:od,mix:nu,random:ed,scale:Sh,scales:Ld,valid:Cd}),$p=ml})),ff=d((()=>{pf(),Hp=class{constructor(t){this.colors=this.generateColors(t),this.index=0}generateColors(t){let e=[];for(let r=0;r=this.colors.length&&(this.index=0),this.colors[this.index++]}phyllotacticColor(t){let e=t*(Math.PI/180*137.5),r=100*Math.cos(e),n=100*Math.sin(e),i=$p.lab(50,r,n).rgb();return`rgb(${Math.round(1*i[0])}, ${Math.round(1*i[1])}, ${Math.round(1*i[2])})`}}}));function gf(){return new mf}var mf,yf,_f,vf,xf=d((()=>{mf=function(){function t(){this.index={},this.array=[]}return t.prototype.size=function(){return this.array.length},t.prototype.empty=function(){return 0===this.array.length},t.prototype.itemAt=function(t){return this.array[t]},t.prototype.contains=function(t){return void 0!==this.index[t.id()]},t.prototype.find=function(t){var e=this.index[t.id()];return void 0===e?void 0:this.array[e]},t.prototype.setDefault=function(t,e){var r=this.index[t.id()];if(void 0===r){var n=new yf(t,e());return this.index[t.id()]=this.array.length,this.array.push(n),n}return this.array[r]},t.prototype.insert=function(t,e){var r=new yf(t,e),n=this.index[t.id()];return void 0===n?(this.index[t.id()]=this.array.length,this.array.push(r)):this.array[n]=r,r},t.prototype.erase=function(t){var e=this.index[t.id()];if(void 0!==e){this.index[t.id()]=void 0;var r=this.array[e],n=this.array.pop();return r!==n&&(this.array[e]=n,this.index[n.first.id()]=e),r}},t.prototype.copy=function(){for(var e=new t,r=0;r{wf(),_f=function(){function t(t){void 0===t&&(t=""),this._value=0,this._context=null,this._id=vf++,this._name=t}return t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t.prototype.plus=function(t){return new Ef(this,t)},t.prototype.minus=function(t){return new Ef(this,"number"==typeof t?-t:[-1,t])},t.prototype.multiply=function(t){return new Ef([t,this])},t.prototype.divide=function(t){return new Ef([1/t,this])},t.prototype.toJSON=function(){return{name:this._name,value:this._value}},t.prototype.toString=function(){return this._context+"["+this._name+":"+this._value+"]"},t}(),vf=0}));function Tf(t){for(var e=0,r=function(){return 0},n=gf(),i=0,o=t.length;i{xf(),bf(),Ef=function(){function t(){var t=Tf(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){for(var t=this._constant,e=0,r=this._terms.size();e{Of=function(){function t(){}return t.create=function(t,e,r,n){void 0===n&&(n=1);var i=0;return i+=1e6*Math.max(0,Math.min(1e3,t*n)),(i+=1e3*Math.max(0,Math.min(1e3,e*n)))+Math.max(0,Math.min(1e3,r*n))},t.clip=function(e){return Math.max(0,Math.min(t.required,e))},t.required=t.create(1e3,1e3,1e3),t.strong=t.create(1,0,0),t.medium=t.create(0,1,0),t.weak=t.create(0,0,1),t}()})),Cf=d((()=>{wf(),Rf(),function(t){t[t.Le=0]="Le",t[t.Ge=1]="Ge",t[t.Eq=2]="Eq"}(Sf||(Sf={})),Nf=function(){function t(t,e,r,n){void 0===n&&(n=Of.required),this._id=Af++,this._operator=e,this._strength=Of.clip(n),this._expression=void 0===r&&t instanceof Ef?t:t.minus(r)}return t.prototype.id=function(){return this._id},t.prototype.expression=function(){return this._expression},t.prototype.op=function(){return this._operator},t.prototype.strength=function(){return this._strength},t.prototype.toString=function(){return this._expression.toString()+" "+["<=",">=","="][this._operator]+" 0 ("+this._strength.toString()+")"},t}(),Af=0}));function Lf(t){return t<0?-t<1e-8:t<1e-8}var If,kf,Df,Pf,Mf,jf=d((()=>{Cf(),wf(),xf(),Rf(),If=function(){function t(){this._cnMap=gf(),this._rowMap=gf(),this._varMap=gf(),this._editMap=gf(),this._infeasibleRows=[],this._objective=new Mf,this._artificial=null,this._idTick=0}return t.prototype.createConstraint=function(t,e,r,n){void 0===n&&(n=Of.required);var i=new Nf(t,e,r,n);return this.addConstraint(i),i},t.prototype.addConstraint=function(t){if(void 0!==this._cnMap.find(t))throw new Error("duplicate constraint");var e=this._createRow(t),r=e.row,n=e.tag,i=this._chooseSubject(r,n);if(i.type()===kf.Invalid&&r.allDummies()){if(!Lf(r.constant()))throw new Error("unsatisfiable constraint");i=n.marker}if(i.type()===kf.Invalid){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(i),this._substitute(i,r),this._rowMap.insert(i,r);this._cnMap.insert(t,n),this._optimize(this._objective)},t.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error("unknown constraint");this._removeConstraintEffects(t,e.second);var r=e.second.marker,n=this._rowMap.erase(r);if(void 0===n){var i=this._getMarkerLeavingSymbol(r);if(i.type()===kf.Invalid)throw new Error("failed to find leaving row");(n=this._rowMap.erase(i)).second.solveForEx(i,r),this._substitute(r,n.second)}this._optimize(this._objective)},t.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},t.prototype.addEditVariable=function(t,e){if(void 0!==this._editMap.find(t))throw new Error("duplicate edit variable");if((e=Of.clip(e))===Of.required)throw new Error("bad required strength");var r=new Ef(t),n=new Nf(r,Sf.Eq,void 0,e);this.addConstraint(n);var i={tag:this._cnMap.find(n).second,constraint:n,constant:0};this._editMap.insert(t,i)},t.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error("unknown edit variable");this.removeConstraint(e.second.constraint)},t.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},t.prototype.suggestValue=function(t,e){var r=this._editMap.find(t);if(void 0===r)throw new Error("unknown edit variable");var n=this._rowMap,i=r.second,o=e-i.constant;i.constant=e;var s=i.tag.marker,a=n.find(s);if(void 0!==a)return a.second.add(-o)<0&&this._infeasibleRows.push(s),void this._dualOptimize();var l=i.tag.other;if(void 0!==(a=n.find(l)))return a.second.add(o)<0&&this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,c=n.size();u0&&a.type()!==kf.Dummy){var u=this._objective.coefficientFor(a)/l;u{Cf(),wf(),jf(),Rf(),bf()}));function Uf(t){return"positional-conflict"===t.type}function Ff(t){return"group-overlap"===t.type}function $f(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Hf(t){if(t.attributes&&Object.entries(t.attributes).some((([t,e])=>e&&e.length>0))){let e=t.attributes||{},r=Object.entries(e).sort((([t],[e])=>t.localeCompare(e))),n=[],i=2,o=20;for(let t=0;t0){let t=i[0];t.length>o&&(t=t.substring(0,o)+"..."),n.push(`${$f(e)}: ${$f(t)}`)}}if(r.length>i&&n.push("..."),n.length>0)return`${$f(t.label)} (${n.join(", ")})`}return t.label&&t.label!==t.id?`${$f(t.label)} (id = ${$f(t.id)})`:`${$f(t.id)}`}function Bf(t){let e=Hf;if(Rn(t)){let r=t;return`${e(r.top)} must be above ${e(r.bottom)}`}if(Cn(t)){let r=t;return`${e(r.left)} must be to the left of ${e(r.right)}`}if(Ln(t)){let r=t,n=r.axis,i=r.node1,o=r.node2;return"x"===n?`${e(i)} must be vertically aligned with ${e(o)}`:"y"===n?`${e(i)} must be horizontally aligned with ${e(o)}`:`${e(i)} must be aligned with ${e(o)} along the ${n} axis`}if(In(t)){let r=t;return`${e(r.node)} cannot be in group "${r.group.name}".`}if(kn(t)){let e=t,r={left:"to the left of",right:"to the right of",top:"above",bottom:"below"};return`Group "${e.groupA.name}" must be ${r[e.side]} group "${e.groupB.name}"`}return`Unknown constraint type: ${t}`}var qf,Gf,zf,Vf,Yf,Wf,Xf=d((()=>{Kf(),Kn(),Ia(),qf="This is a unique identifier in the graph. Hover over graph nodes to see their IDs.",Gf=class{constructor(t){this.kiwiConstraintCache=new Map,this.expressionCache=new Map,this.minPadding=15,this.horizontallyAligned=[],this.verticallyAligned=[],this.horizontalAlignmentMap=new Map,this.verticalAlignmentMap=new Map,this.layout=t,this.solver=new If,this.nodes=t.nodes,this.edges=t.edges,this.orientationConstraints=t.constraints,this.variables={},this.groupBoundingBoxes=new Map,this.groups=t.groups,this.added_constraints=[]}validateConstraints(){return this.validateGroupConstraints()||this.validatePositionalConstraints()}validatePositionalConstraints(){this.nodes.forEach((t=>{let e=this.getNodeIndex(t.id);this.variables[e]={x:new _f(`${t.id}_x`),y:new _f(`${t.id}_y`)}}));for(let t=0;t0){let e=this.solveDisjunctiveConstraints(i);if(!e.satisfiable)return e.error||null;let r=this.added_constraints.slice(t);console.assert(r.length>0,"Disjunctive solver succeeded but no constraints were added"),this.layout.constraints=this.layout.constraints.concat(r)}this.solver.updateVariables();let o=this.getAlignmentOrders();return this.detectNodeOverlaps()||(this.layout.constraints=this.layout.constraints.concat(o),null)}solveDisjunctiveConstraints(t){this.added_constraints.length;let e=this.backtrackDisjunctions(t,0);return e.satisfiable&&this.added_constraints.length,e}getChosenDisjunctiveConstraints(t){return this.added_constraints.slice(t)}hasObviousConflict(t){let e=new Set,r=new Set;for(let t of this.added_constraints)Cn(t)?e.add(`${t.left.id}:${t.right.id}`):Rn(t)&&r.add(`${t.top.id}:${t.bottom.id}`);for(let n of t)if(Cn(n)){let t=`${n.right.id}:${n.left.id}`;if(e.has(t))return!0}else if(Rn(n)){let t=`${n.bottom.id}:${n.top.id}`;if(r.has(t))return!0}return!1}orderAlternativesByHeuristic(t){let e=[...t];return e.sort(((t,e)=>{if(t.length!==e.length)return t.length-e.length;let r=t.some((t=>In(t)&&("left"===t.side||"right"===t.side))),n=e.some((t=>In(t)&&("left"===t.side||"right"===t.side)));return r&&!n?-1:!r&&n?1:0})),e}backtrackDisjunctions(t,e){if(e>=t.length)return{satisfiable:!0};let r,n=t[e],i=this.orderAlternativesByHeuristic(n.alternatives),o=0,s=0,a=0;for(let n=0;na||g===a&&p>s)&&(o=n,s=p,a=g,f&&(r=f)),this.restoreSolver(u),this.added_constraints=c,console.assert(this.added_constraints.length===h,`Backtracking failed: expected ${h} constraints, got ${this.added_constraints.length}`)}if(r&&a>0)return{satisfiable:!1,error:r};let l=i[o],u=this.getMinimalDisjunctiveConflict(this.added_constraints,l,n.sourceConstraint),c=l[0];if(l.some((t=>In(t)))&&u.existingConstraints.length>0){let t=new Set;l.forEach((e=>{In(e)&&e.group.nodeIds.forEach((e=>t.add(e)))}));let e=u.existingConstraints.find((e=>Cn(e)?t.has(e.left.id)||t.has(e.right.id):Rn(e)?t.has(e.top.id)||t.has(e.bottom.id):!!Ln(e)&&(t.has(e.node1.id)||t.has(e.node2.id))));e&&(c=e)}let h=new Map,d=[...u.existingConstraints,...u.disjunctiveConstraints],p=new Map;for(let t of d){let e=this.getConstraintKey(t);p.has(e)||p.set(e,t)}let f=this.removeTransitiveConstraints(Array.from(p.values()));for(let t of f){let e=t.sourceConstraint;h.has(e)||h.set(e,[]),h.get(e).push(t)}let g=Bf(c),m=new Map;for(let[t,e]of h.entries()){let r=t.toHTML();m.has(r)||m.set(r,[]),e.forEach((t=>{m.get(r).push(Bf(t))}))}return{satisfiable:!1,error:{name:"PositionalConstraintError",type:"positional-conflict",message:`Constraint "${g}" conflicts with existing constraints`,conflictingConstraint:c,conflictingSourceConstraint:n.sourceConstraint,minimalConflictingSet:h,errorMessages:{conflictingConstraint:g,conflictingSourceConstraint:n.sourceConstraint.toHTML(),minimalConflictingConstraints:m}}}}getVarPlusConstant(t,e){let r=`${t.name()}_plus_${e}`,n=this.expressionCache.get(r);return n||(n=t.plus(e),this.expressionCache.set(r,n)),n}getConstraintKey(t){if(Cn(t))return`left:${t.left.id}:${t.right.id}`;if(Rn(t))return`top:${t.top.id}:${t.bottom.id}`;if(Ln(t)){let[e,r]=[t.node1.id,t.node2.id].sort();return`align:${e}:${r}:${t.axis}`}return In(t)?`bbox:${t.node.id}:${t.group.name}:${t.side}`:kn(t)?`groupbound:${t.groupA.name}:${t.groupB.name}:${t.side}`:`unknown:${JSON.stringify(t)}`}areAlignmentsIdentical(t,e){return t.axis===e.axis&&(t.node1.id===e.node1.id&&t.node2.id===e.node2.id||t.node1.id===e.node2.id&&t.node2.id===e.node1.id)}areConstraintsIdentical(t,e){return t===e||(Cn(t)&&Cn(e)?t.left.id===e.left.id&&t.right.id===e.right.id:Rn(t)&&Rn(e)?t.top.id===e.top.id&&t.bottom.id===e.bottom.id:Ln(t)&&Ln(e)?this.areAlignmentsIdentical(t,e):In(t)&&In(e)?t.node.id===e.node.id&&t.group.name===e.group.name&&t.side===e.side:!(!kn(t)||!kn(e))&&t.groupA.name===e.groupA.name&&t.groupB.name===e.groupB.name&&t.side===e.side)}cloneSolver(){let t=new If;this.addBoundingBoxMemberConstraintsToSolver(t);for(let e of this.added_constraints)this.constraintToKiwi(e).forEach((e=>{t.addConstraint(e)}));return t}restoreSolver(t){this.solver=t}validateGroupConstraints(){for(let t=0;t0){let r=n.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t)),i=r.map((t=>t.label&&t.label!==t.id?`${t.label} (${t.id})`:t.id));return{name:"GroupOverlapError",type:"group-overlap",message:`Groups "${e.name}" and "${t.name}" overlap with nodes: ${i.join(", ")}`,group1:e,group2:t,overlappingNodes:r}}}}return null}addGroupBoundingBoxConstraints(){let t=new Map;for(let e of this.nodes)t.set(e.id,new Set);for(let e of this.groups)if(e.nodeIds.length>1&&e.sourceConstraint)for(let r of e.nodeIds)t.get(r)?.add(e);for(let e of this.groups){if(e.nodeIds.length<=1||!e.sourceConstraint)continue;let r=e.nodeIds.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t));if(0===r.length)continue;let n=new Set(e.nodeIds),i=new _f(`${e.name}_bbox_left`),o=new _f(`${e.name}_bbox_right`),s=new _f(`${e.name}_bbox_top`),a=new _f(`${e.name}_bbox_bottom`);this.groupBoundingBoxes.set(e.name,{left:i,right:o,top:s,bottom:a});for(let t of r){let e=this.getNodeIndex(t.id),r=this.variables[e].x,n=this.variables[e].y;this.solver.addConstraint(new Nf(r,Sf.Ge,i,Of.required)),this.solver.addConstraint(new Nf(r,Sf.Le,o,Of.required)),this.solver.addConstraint(new Nf(n,Sf.Ge,s,Of.required)),this.solver.addConstraint(new Nf(n,Sf.Le,a,Of.required))}for(let r of this.nodes){if(n.has(r.id))continue;let i=t.get(r.id);if(i&&i.size>0)continue;let o=e.sourceConstraint,s={group:e,node:r,side:"left",minDistance:this.minPadding,sourceConstraint:o},a={group:e,node:r,side:"right",minDistance:this.minPadding,sourceConstraint:o},l={group:e,node:r,side:"top",minDistance:this.minPadding,sourceConstraint:o},u={group:e,node:r,side:"bottom",minDistance:this.minPadding,sourceConstraint:o},c=new jn(o,[[s],[a],[l],[u]]);this.layout.disjunctiveConstraints||(this.layout.disjunctiveConstraints=[]),this.layout.disjunctiveConstraints.push(c)}}for(let t=0;t0)continue;let i={groupA:r,groupB:n,side:"left",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},o={groupA:r,groupB:n,side:"right",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},s={groupA:r,groupB:n,side:"top",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},a={groupA:r,groupB:n,side:"bottom",minDistance:this.minPadding,sourceConstraint:r.sourceConstraint||n.sourceConstraint},l=new jn(r.sourceConstraint||n.sourceConstraint,[[i],[o],[s],[a]]);this.layout.disjunctiveConstraints||(this.layout.disjunctiveConstraints=[]),this.layout.disjunctiveConstraints.push(l)}return null}getNodeIndex(t){return this.nodes.findIndex((e=>e.id===t))}deduplicateGroups(t){let e=new Map;for(let r of t){if(r.nodeIds.length<=1){let t=`_singleton_${r.nodeIds[0]||"empty"}_${Math.random()}`;e.set(t,[r]);continue}let t=[...r.nodeIds].sort().join("|");e.has(t)||e.set(t,[]),e.get(t).push(r)}let r=[],n=new Map;for(let t of e.values()){let e=t[0];r.push(e),n.set(e,t),t.length>1&&console.log(`Deduplicating ${t.length} groups with identical members: ${t.map((t=>t.name)).join(", ")}`)}return{dedupedGroups:r,groupMap:n}}addBoundingBoxMemberConstraintsToSolver(t){for(let e of this.groups){if(e.nodeIds.length<=1||!e.sourceConstraint)continue;let r=this.groupBoundingBoxes.get(e.name);if(!r)continue;let n=e.nodeIds.map((t=>this.nodes.find((e=>e.id===t)))).filter((t=>void 0!==t));for(let e of n){let n=this.getNodeIndex(e.id),i=this.variables[n].x,o=this.variables[n].y;try{t.addConstraint(new Nf(i,Sf.Ge,r.left,Of.required)),t.addConstraint(new Nf(i,Sf.Le,r.right,Of.required)),t.addConstraint(new Nf(o,Sf.Ge,r.top,Of.required)),t.addConstraint(new Nf(o,Sf.Le,r.bottom,Of.required))}catch{}}}}getMinimalDisjunctiveConflict(t,e,r){return e.some((t=>In(t)))||t.some((t=>In(t)))?this.getMinimalGroupingConflict(t,e):this.getMinimalSimpleConflict(t,e)}getMinimalGroupingConflict(t,e){let r=[...t];if(e.length>0){let n=e[0],i=[...t,n];r=this.isConflictingSet(i)?this.getMinimalConflictingConstraints(t,n):[]}if(r.length<=1&&e.some((t=>In(t)))){let n=new Set;for(let t of e)In(t)&&(n.add(t.node.id),t.group.nodeIds.forEach((t=>n.add(t))));let i=t.filter((t=>Cn(t)?n.has(t.left.id)||n.has(t.right.id):Rn(t)?n.has(t.top.id)||n.has(t.bottom.id):!!Ln(t)&&(n.has(t.node1.id)||n.has(t.node2.id))));i.length>0&&(r=i)}return{existingConstraints:r,disjunctiveConstraints:e}}getMinimalSimpleConflict(t,e){let r=[...t],n=[...e];if(!this.isConflicting(r,n))return{existingConstraints:[],disjunctiveConstraints:e.length>0?[e[0]]:[]};let i=!0;for(;i&&r.length>0;){i=!1;for(let t=r.length-1;t>=0;t--){let e=r.slice(0,t).concat(r.slice(t+1));this.isConflicting(e,n)&&(r=e,i=!0)}}for(i=!0;i&&n.length>0;){i=!1;for(let t=n.length-1;t>=0;t--){let e=n.slice(0,t).concat(n.slice(t+1));this.isConflicting(r,e)&&(n=e,i=!0)}}for(i=!0;i&&r.length>0;){i=!1;for(let t=r.length-1;t>=0;t--){let e=r.slice(0,t).concat(r.slice(t+1));this.isConflicting(e,n)&&(r=e,i=!0)}}return 0===r.length&&0===n.length&&(r=t.length>0?[t[0]]:[],n=e.length>0?[e[0]]:[]),{existingConstraints:r,disjunctiveConstraints:n}}isConflicting(t,e){return this.isConflictingSet([...t,...e])}isConflictingSet(t){let e=new If;try{if(!t.some((t=>In(t)||kn(t)))){for(let r of t)this.constraintToKiwi(r).forEach((t=>e.addConstraint(t)));return e.updateVariables(),!1}{let r=new Map,n=new Set;t.forEach((t=>{In(t)?n.add(t.group.name):kn(t)&&(n.add(t.groupA.name),n.add(t.groupB.name))})),n.forEach((t=>{r.set(t,{left:new _f(`test_${t}_bbox_left`),right:new _f(`test_${t}_bbox_right`),top:new _f(`test_${t}_bbox_top`),bottom:new _f(`test_${t}_bbox_bottom`)})}));let i=this.groupBoundingBoxes;this.groupBoundingBoxes=r;try{this.addBoundingBoxMemberConstraintsToSolver(e);for(let r of t)this.constraintToKiwi(r).forEach((t=>e.addConstraint(t)));return e.updateVariables(),!1}finally{this.groupBoundingBoxes=i}}}catch{return!0}}getMinimalConflictingConstraints(t,e){let r=[...t,e];if(!this.isConflictingSet(r))return[];let n=[...t],i=!0;for(;i&&n.length>0;){i=!1;for(let t=n.length-1;t>=0;t--){let r=n.slice(0,t).concat(n.slice(t+1)),o=[...r,e];this.isConflictingSet(o)&&(n=r,i=!0)}}return n=this.removeTransitiveConstraints(n),n}removeTransitiveConstraints(t){let e=this.removeTransitiveAlignments(t);return e=this.removeTransitiveOrderings(e),e}removeTransitiveOrderings(t){let e=t.filter((t=>Cn(t))),r=t.filter((t=>Rn(t))),n=[...t.filter((t=>!Cn(t)&&!Rn(t)))];return e.length>0&&n.push(...this.transitiveReduction(e,(t=>t.left.id),(t=>t.right.id))),r.length>0&&n.push(...this.transitiveReduction(r,(t=>t.top.id),(t=>t.bottom.id))),n}transitiveReduction(t,e,r){if(t.length<=1)return t;let n=new Map,i=new Map;for(let o of t){let t=e(o),s=r(o);n.has(t)||n.set(t,new Set),n.get(t).add(s),i.set(`${t}->${s}`,o)}let o=new Set;for(let[t,e]of n.entries())o.add(t),e.forEach((t=>o.add(t)));let s=Array.from(o),a=new Map;for(let t of s)a.set(t,new Set(n.get(t)||[]));for(let t of s)for(let e of s)for(let r of s)a.get(e)?.has(t)&&a.get(t)?.has(r)&&a.get(e).add(r);let l=[];for(let i of t){let t=e(i),o=r(i),s=!1,u=n.get(t);if(u&&u.size>1)for(let t of u)if(t!==o&&a.get(t)?.has(o)){s=!0;break}s||l.push(i)}return l}removeTransitiveAlignments(t){let e=t.filter((t=>Ln(t))),r=t.filter((t=>!Ln(t)));if(e.length<=2)return t;let n=new Map;for(let t of e)n.has(t.axis)||n.set(t.axis,[]),n.get(t.axis).push(t);let i=[...r];for(let[t,e]of n.entries()){if(e.length<=2){i.push(...e);continue}let t=new Map;for(let r of e){let e=r.node1.id,n=r.node2.id;t.has(e)||t.set(e,new Set),t.has(n)||t.set(n,new Set),t.get(e).add(n),t.get(n).add(e)}let r=Array.from(t.keys());if(0===r.length)continue;let n=new Set,o=[r[0]];n.add(r[0]);let s=[];for(;o.length>0&&n.sizee.node1.id===r&&e.node2.id===t||e.node2.id===r&&e.node1.id===t));i&&s.push(i)}}i.push(...s)}return i}constraintToKiwi(t){let e=this.kiwiConstraintCache.get(t);if(e)return e;let r=this.convertConstraintToKiwi(t);return this.kiwiConstraintCache.set(t,r),r}convertConstraintToKiwi(t){if(Rn(t)){let e=t,r=e.top,n=e.bottom,i=r.height,o=this.getNodeIndex(r.id),s=this.getNodeIndex(n.id),a=this.variables[o].y,l=this.variables[s].y,u=this.getVarPlusConstant(a,i);return[new Nf(u,Sf.Le,l,Of.required)]}if(Cn(t)){let e=t,r=e.left,n=e.right,i=r.width,o=this.getNodeIndex(r.id),s=this.getNodeIndex(n.id),a=this.variables[o].x,l=this.variables[s].x,u=this.getVarPlusConstant(a,i);return[new Nf(u,Sf.Le,l,Of.required)]}if(Ln(t)){let e=t,r=e.axis,n=e.node1,i=e.node2,o=this.getNodeIndex(n.id),s=this.getNodeIndex(i.id),a=this.variables[o][r],l=this.variables[s][r],u=this.getNodePairKey(n.id,i.id);return"x"===r?(this.verticallyAligned.push([n,i]),this.verticalAlignmentMap.has(u)||this.verticalAlignmentMap.set(u,[]),this.verticalAlignmentMap.get(u).push(e)):"y"===r&&(this.horizontallyAligned.push([n,i]),this.horizontalAlignmentMap.has(u)||this.horizontalAlignmentMap.set(u,[]),this.horizontalAlignmentMap.get(u).push(e)),[new Nf(a,Sf.Eq,l,Of.required)]}if(In(t)){let e=t,r=this.groupBoundingBoxes.get(e.group.name);if(!r)return console.error(`Bounding box not found for group ${e.group.name}`),[];let n=this.getNodeIndex(e.node.id),i=this.variables[n].x,o=this.variables[n].y;switch(e.node.width||e.minDistance,e.node.height||e.minDistance,e.side){case"left":return[new Nf(this.getVarPlusConstant(i,e.minDistance),Sf.Le,r.left,Of.required)];case"right":return[new Nf(i,Sf.Ge,this.getVarPlusConstant(r.right,e.minDistance),Of.required)];case"top":return[new Nf(this.getVarPlusConstant(o,e.minDistance),Sf.Le,r.top,Of.required)];case"bottom":return[new Nf(o,Sf.Ge,this.getVarPlusConstant(r.bottom,e.minDistance),Of.required)];default:return console.error(`Unknown bounding box side: ${e.side}`),[]}}else{if(!kn(t))return[];{let e=t,r=this.groupBoundingBoxes.get(e.groupA.name),n=this.groupBoundingBoxes.get(e.groupB.name);if(!r||!n)return console.error(`Bounding box not found for groups ${e.groupA.name} or ${e.groupB.name}`),[];switch(e.side){case"left":return[new Nf(this.getVarPlusConstant(r.right,e.minDistance),Sf.Le,n.left,Of.required)];case"right":return[new Nf(this.getVarPlusConstant(n.right,e.minDistance),Sf.Le,r.left,Of.required)];case"top":return[new Nf(this.getVarPlusConstant(r.bottom,e.minDistance),Sf.Le,n.top,Of.required)];case"bottom":return[new Nf(this.getVarPlusConstant(n.bottom,e.minDistance),Sf.Le,r.top,Of.required)];default:return console.error(`Unknown group boundary side: ${e.side}`),[]}}}}addConstraintToSolver(t){try{this.constraintToKiwi(t).forEach((t=>{this.solver.addConstraint(t)})),this.added_constraints.push(t)}catch{let e=this.getMinimalConflictingConstraints(this.added_constraints,t),r=new Map,n=new Map;return e.forEach((t=>{let e=t.sourceConstraint;r.has(e)||r.set(e,[]),n.has(e.toHTML())||n.set(e.toHTML(),[]),r.get(e).push(t),n.get(e.toHTML()).push(Bf(t))})),{name:"PositionalConstraintError",type:"positional-conflict",message:`Constraint "${Bf(t)}" conflicts with existing constraints`,conflictingConstraint:t,conflictingSourceConstraint:t.sourceConstraint,minimalConflictingSet:r,errorMessages:{conflictingConstraint:`${Bf(t)}`,conflictingSourceConstraint:`${t.sourceConstraint.toHTML()}`,minimalConflictingConstraints:n}}}return null}getAlignmentOrders(){this.solver.updateVariables(),this.horizontallyAligned=this.normalizeAlignment(this.horizontallyAligned),this.verticallyAligned=this.normalizeAlignment(this.verticallyAligned);let t=[];for(let t=0;tthis.variables[this.getNodeIndex(t.id)].x.value()-this.variables[this.getNodeIndex(e.id)].x.value()));this.horizontallyAligned.forEach((e=>{for(let r=0;r${i.id}`),s=new Mn(o,"Preventing Overlap"),a={left:n,right:i,minDistance:this.minPadding,sourceConstraint:s};t.push(a)}}));for(let t=0;tthis.variables[this.getNodeIndex(t.id)].y.value()-this.variables[this.getNodeIndex(e.id)].y.value()));return this.verticallyAligned.forEach((e=>{for(let r=0;r${i.id}`),s=new Mn(o,"Preventing Overlap"),a={top:n,bottom:i,minDistance:this.minPadding,sourceConstraint:s};t.push(a)}})),t}normalizeAlignment(t){let e=[];for(let r of t){let t=!1;for(let n of e)if(r.some((t=>n.includes(t)))){n.push(...r.filter((t=>!n.includes(t)))),t=!0;break}t||e.push([...r])}let r=!0;for(;r;){r=!1;for(let t=0;te[n].includes(t)))){e[t].push(...e[n].filter((r=>!e[t].includes(r)))),e.splice(n,1),r=!0;break}if(r)break}}return e}isSubGroup(t,e){let r=t.nodeIds,n=e.nodeIds;return r.every((t=>n.includes(t)))}groupIntersection(t,e){let r=t.nodeIds,n=e.nodeIds;return r.filter((t=>n.includes(t)))}getNodePairKey(t,e){return tt.id)));for(let r of this.verticallyAligned){let i=new Set(r.map((t=>t.id))),o=[];for(let t of n)i.has(t)&&o.push(t);if(o.length>=2)for(let r=0;rt.id===o[r])),s=this.nodes.find((t=>t.id===o[n]));t.push({node1:i,node2:s,overlappingNodeIds:o});let a=this.findAlignmentChain(i,s,this.horizontalAlignmentMap),l=this.findAlignmentChain(i,s,this.verticalAlignmentMap);a.forEach((t=>e.add(t))),l.forEach((t=>e.add(t)))}}}if(0===t.length)return null;let r=new Map;for(let t of e){let e=t.sourceConstraint;r.has(e)||r.set(e,[]),r.get(e).push(t)}let n=new Map;for(let[t,e]of r.entries()){let r=t.toHTML();n.has(r)||n.set(r,[]);for(let t of e)n.get(r).push(Bf(t))}let i=t.map((({node1:t,node2:e})=>`${Hf(t)} and ${Hf(e)}`)),o=1===t.length?`Alignment constraints force ${i[0]} to occupy the same position`:`Alignment constraints force multiple node pairs to overlap: ${i.join("; ")}`,s=Array.from(e)[0];return{name:"PositionalConstraintError",type:"positional-conflict",message:o,conflictingConstraint:s,conflictingSourceConstraint:s.sourceConstraint,minimalConflictingSet:r,errorMessages:{conflictingConstraint:Bf(s),conflictingSourceConstraint:s.sourceConstraint.toHTML(),minimalConflictingConstraints:n}}}findAlignmentChain(t,e,r){let n=new Map;for(let[t,e]of r.entries()){let[r,i]=t.split("|");n.has(r)||n.set(r,new Map),n.has(i)||n.set(i,new Map),n.get(r).set(i,e),n.get(i).set(r,e)}let i=new Set,o=[{nodeId:t.id,path:[]}];for(;o.length>0;){let{nodeId:t,path:r}=o.shift();if(t===e.id)return r;if(i.has(t))continue;i.add(t);let s=n.get(t);if(s)for(let[t,e]of s.entries())i.has(t)||o.push({nodeId:t,path:[...r,e[0]]})}return[]}dispose(){this.kiwiConstraintCache.clear(),this.expressionCache.clear(),this.solver=null,this.variables={},this.groupBoundingBoxes.clear()}getMemoryStats(){return{cachedConstraints:this.kiwiConstraintCache.size,cachedExpressions:this.expressionCache.size,variables:Object.keys(this.variables).length,groupBoundingBoxes:this.groupBoundingBoxes.size,addedConstraints:this.added_constraints?.length||0}}}}));t.LayoutInstance=void 0;var Qf,Jf,Zf=d((()=>{var e;Da(),za(),Kn(),ff(),Xf(),zf=class t extends Error{constructor(e,r){let n=r&&"selector"in r?r.selector:void 0;super(`Constraint references node "${e}" that is missing from the layout (it may be hidden).${n?` Selector: ${n}.`:""}`),this.type="unknown-constraint",this.name="MissingNodeConstraintError",this.missingNodeId=e,this.sourceConstraint=r,Object.setPrototypeOf(this,t.prototype)}},(e=Vf||{}).NEVER="never",e.DIRECT="direct",e.CONNECTED="connected",Vf=e,Yf=class{constructor(t,e){this.Path=t,this.LoopsTo=e}expand(t){let e=this.Path.map((t=>t.id));if(!this.LoopsTo)return e;let r=e.findIndex((t=>t===this.LoopsTo.id));if(-1===r)return e;let n=e.slice(0,r),i=e.slice(r);return n.concat(...Array(t).fill(i))}isSubpathOf(t){let e=this.expand(2),r=t.expand(1);if(r.length>e.length)return!1;for(let t=0;t<=e.length-r.length;t++)if(r.every(((r,n)=>r===e[t+n])))return!0;return!1}static areEquivalent(t,e){return t.isSubpathOf(e)&&e.isSubpathOf(t)}},Wf=class t{constructor(t,e,r=0,n=!0,i){this.hideThisEdge="_h_",this.DEFAULT_NODE_ICON_PATH="",this.DEFAULT_NODE_HEIGHT=60,this.DEFAULT_NODE_WIDTH=100,this.minSepHeight=15,this.minSepWidth=15,this.selectorErrors=[],this.instanceNum=r,this.evaluator=e,this._layoutSpec=t,this.alignmentEdgeStrategy=void 0!==i?i:n?"connected":"never"}recordSelectorError(t,e,r){let n=r instanceof Error?r.message:String(r);this.selectorErrors.push({selector:t,context:e,errorMessage:n})}get projectedSigs(){return this._layoutSpec.directives.projections?this._layoutSpec.directives.projections.map((t=>t.sig)):[]}get hideDisconnected(){return this._layoutSpec.directives.hideDisconnected||!1}get hideDisconnectedBuiltIns(){return this._layoutSpec.directives.hideDisconnectedBuiltIns||!1}getConstraintsRelatedToField(t,e,r){return this._layoutSpec.constraints.grouping.byfield.filter((r=>{if(r.field!==t)return!1;if(!r.selector)return!0;try{return this.evaluator.evaluate(r.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(t){return this.recordSelectorError(r.selector,"group by field selector",t),!1}}))}isAttributeField(t,e,r){let n=this._layoutSpec.directives.attributes.filter((e=>e.field===t));if(0===n.length)return!1;if(!e||!r)return n.some((t=>!t.selector&&!t.filter));for(let t of n){let n=!0;if(t.selector)try{n=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(e){this.recordSelectorError(t.selector,"attribute selector",e),n=!1}if(!n)continue;let i=!0;if(t.filter)try{i=this.evaluator.evaluate(t.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(e){this.recordSelectorError(t.filter,"attribute filter",e),i=!1}if(n&&i)return!0}return!1}isHiddenField(t,e,r){let n=this._layoutSpec.directives.hiddenFields.filter((e=>e.field===t));if(n.length>0)if(e&&r)for(let t of n){let n=!0;if(t.selector)try{n=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(e){this.recordSelectorError(t.selector,"hidden field selector",e),n=!1}if(!n)continue;let i=!0;if(t.filter)try{i=this.evaluator.evaluate(t.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(e){this.recordSelectorError(t.filter,"hidden field filter",e),i=!1}if(n&&i)return!0}else if(n.some((t=>!t.selector&&!t.filter)))return!0;return!(!e||!r||!0!==this.findEdgeDirective(t,e,r)?.hidden)}generateGroups(t,e){let r=this._layoutSpec.constraints.grouping.byfield,n=this._layoutSpec.constraints.grouping.byselector;if(!r&&!n)return[];let i=[];for(var o of n){let e,r=o.selector;try{e=this.evaluator.evaluate(r,{instanceIndex:this.instanceNum})}catch(t){this.recordSelectorError(r,"groupBySelector selector",t);continue}let n=e.selectedTwoples();if(n.length>0){let e=function(t,e,r){return"_g_0_1_"+t+":"+e+"->"+r};for(var s of n){let r=s[0],n=s[1],a=t.node(r)?.label||r;a!=r&&(a=a+":"+r);let l=`${o.name}[${a}]`,u=i.find((t=>t.name===l));if(u)u.nodeIds.push(n);else{let s={name:l,nodeIds:[n],keyNodeId:r,showLabel:!0,sourceConstraint:o};if(i.push(s),o.addEdge){let i=e(l,r,n);t.setEdge(r,n,l,i)}}}}else{let t=e.selectedAtoms();if(0===t.length)continue;let r=t[0],n={name:o.name,nodeIds:t,keyNodeId:r,showLabel:!0,sourceConstraint:o};i.push(n)}}return[...t.edges()].forEach((r=>{let n=r.name,o=this.getRelationName(t,r),s=this.getConstraintsRelatedToField(o,r.v,r.w);0!==s.length&&s.forEach((s=>{let a=s.groupOn,l=s.addToGroup,u=this.getFieldTuplesForSourceAndTarget(e,o,r.v,r.w);if(u&&0!==u.length)for(var c of u){let e=c?.length||0;if(e<2||a<0||a>=e||l<0||l>=e)throw new Error(`Invalid grouping. groupOn=${a} and addToGroup=${l} for ${e}-ary relation ${o}. These must be between 0 and ${e-1}.`);let u=c[a],h=c[l],d=c.map(((t,e)=>e===a?t:"_")).join(","),p=`${o}[${d}]`,f=i.find((t=>t.name===p));if(f)f.nodeIds.push(h),t.removeEdge(r.v,r.w,n);else{let e={name:p,nodeIds:[h],keyNodeId:u,showLabel:!0,sourceConstraint:s};i.push(e);let o=`_g_${a}_${l}_`+n;t.removeEdge(r.v,r.w,n),t.setEdge(r.v,r.w,p,o)}}}))})),i}generateAttributesAndRemoveEdges(t){let e={};return[...t.edges()].forEach((r=>{let n=r.name,i=this.getRelationName(t,r),o=r.v,s=r.w,a=this.isAttributeField(i,o,s),l=this.isHiddenField(i,o,s);if(l&&a)throw new Error(`${i} cannot be both an attribute and a hidden field.`);if(l)t.removeEdge(r.v,r.w,n);else if(a){let i=this.getEdgeLabel(t,r),o=r.v,s=r.w,a=t.node(s)?.label||s,l=e[o]||{};l[i]||(l[i]=[],e[o]=l),l[i].push(a),t.removeEdge(r.v,r.w,n)}})),e}generateTagsForNodes(t,e){let r=this._layoutSpec.directives.tags;if(!r||0===r.length)return e;let n={...e},i=new Set(t.nodes());for(let e of r)try{let r=this.evaluator.evaluate(e.toTag,{instanceIndex:this.instanceNum}).selectedAtoms(),o=this.evaluator.evaluate(e.value,{instanceIndex:this.instanceNum}).selectedTuplesAll();for(let s of r){if(!i.has(s))continue;n[s]||(n[s]={});let r=o.filter((t=>t[0]===s));if(0!==r.length)for(let o of r)if(1===o.length){let r=e.name;n[s][r]||(n[s][r]=[]);let i=t.node(s)?.label||s;n[s][r].push(String(i))}else if(2===o.length){let r=e.name;n[s][r]||(n[s][r]=[]);let a=o[o.length-1],l=i.has(String(a))&&t.node(String(a))?.label||String(a);n[s][r].push(l)}else{let r=o.slice(1,-1),a=o[o.length-1],l=r.map((e=>{let r=String(e);return`[${i.has(r)&&t.node(r)?.label||r}]`})).join(""),u=`${e.name}${l}`;n[s][u]||(n[s][u]=[]);let c=i.has(String(a))&&t.node(String(a))?.label||String(a);n[s][u].push(c)}}}catch(t){this.recordSelectorError(`name: ${e.name}, toTag: ${e.toTag}, value: ${e.value}`,"tag directive",t)}return n}ensureNoExtraNodes(t,e){[...t.nodes()].forEach((r=>{try{let n=e.getAtomType(r)?.isBuiltin||!1,i=t.inEdges(r)||[],o=t.outEdges(r)||[],s=0===i.length&&0===o.length&&(this.hideDisconnectedBuiltIns&&n||this.hideDisconnected),a=!1,l=this._layoutSpec.directives.hiddenAtoms;for(let t of l)try{if(this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(r)){a=!0;break}}catch(e){this.recordSelectorError(t.selector,"hideAtom selector",e)}(s||a)&&t.removeNode(r)}catch(t){console.error("Failed to identify node type. Defaulting to showing node.",t)}}))}getMostSpecificType(t,e){return this.getNodeTypes(t,e)[0]}getNodeTypes(t,e){let r=e.getAtomType(t)?.types||[];return r=r.concat("univ"),r}getRelationName(t,e){let r=this.getEdgeLabel(t,e);try{return r.split("[")[0]}catch{return console.warn(`Failed to parse relation name from edge label: ${r}. Defaulting to empty string.`),r}}getEdgeLabel(t,e){return t.edge(e.v,e.w,e.name)}applyLayoutProjections(t,e){let r=this.projectedSigs,n=t.getTypes(),i={};for(let t of r){if(!n.some((e=>e.types.includes(t))))throw new Error(`Projected type '${t}' not found in data instance`);let e=n.filter((e=>e.types.includes(t))),r=new Set;for(let t of e)for(let e of t.atoms)r.add(e.id);i[t]=[...r]}let o=[];Object.entries(i).forEach((([t,r])=>{if(r.length>0)if(e[t])o.push(e[t]);else{let n=r[0];e[t]=n,o.push(n)}}));let s=Object.entries(e).filter((([t])=>r.includes(t))).map((([t,e])=>({type:t,projectedAtom:e,atoms:i[t]})));return{projectedInstance:t.applyProjections(o),finalProjectionChoices:s}}generateLayout(t,e){this.selectorErrors=[];let r=this.applyLayoutProjections(t,e),n=r.projectedInstance,i=r.finalProjectionChoices,o=n.generateGraph(this.hideDisconnected,!1),s=this.generateAttributesAndRemoveEdges(o);s=this.generateTagsForNodes(o,s),this.addinferredEdges(o);let a=this.generateGroups(o,t);this.ensureNoExtraNodes(o,t);let l=this.getNodeIconMap(o),u=this.getNodeColorMap(o,n),c=this.getNodeSizeMap(o),h=this.getDisconnectedNodes(o),d=o.nodes().map((e=>{let r,i=o.node(e)?.label||e,h=u[e]||"black",d=l[e],p=d.path,f=d.showLabels,{height:g,width:m}=c[e]||{height:this.DEFAULT_NODE_HEIGHT,width:this.DEFAULT_NODE_WIDTH},y=this.getMostSpecificType(e,t),_=this.getNodeTypes(e,t),v=a.filter((t=>t.nodeIds.includes(e))).map((t=>t.name)),x=s[e]||{},b=n.getAtoms().find((t=>t.id===e));return b?.labels&&(r=b.labels),{id:e,label:i,name:i,color:h,groups:v,attributes:x,labels:r,icon:p,height:g,width:m,mostSpecificType:y,types:_,showLabels:f}})),p=[],f=0,g=0,m=[],y=[];try{p=this.applyRelativeOrientationConstraints(d,o),f=p.length,p=p.concat(this.applyAlignConstraints(d,o)),g=p.length-f,console.log(`Generated ${f} orientation constraints and ${g} alignment constraints (deduped + transitive reduction applied)`),this.pruneRedundantAlignmentEdges(o),p=function(t){let e=[],r=new Set;for(let n of t){let t;if(Cn(n))t=`left|${n.left.id}|${n.right.id}|${n.minDistance}`;else if(Rn(n))t=`top|${n.top.id}|${n.bottom.id}|${n.minDistance}`;else if(Ln(n)){let[e,r]=[n.node1.id,n.node2.id].sort();t=`align|${n.axis}|${e}|${r}`}else t=`unknown|${JSON.stringify(n)}`;r.has(t)||(r.add(t),e.push(n))}return e}(p),m=this.buildLayoutEdges(o,d),y=this.buildCyclicDisjunctions(d)}catch(t){if(function(t){return t instanceof zf}(t))return this.handleMissingNodeConstraintError(t,{layoutNodes:d,graph:o,groups:a,disconnectedNodes:h,projectionData:i,constraints:p});throw t}let _={nodes:d,edges:m,constraints:p,groups:a,disjunctiveConstraints:y},v=new Gf(_).validateConstraints();if(v){if(v.minimalConflictingSet)return this.handlePositionalConstraintError(v,_,i);if(v.overlappingNodes)return this.handleGroupOverlapError(v,_,i);throw v}p=_.constraints,m=this.filterHiddenEdges(m);let x=h.map((t=>this.singletonGroup(t)));return a=a.concat(x),_.nodes=d,_.edges=m,_.constraints=p,_.groups=a,{layout:_,projectionData:i,error:null,selectorErrors:this.selectorErrors}}handleMissingNodeConstraintError(t,e){let r=this.filterHiddenEdges(this.buildLayoutEdges(e.graph,e.layoutNodes)),n=e.groups.concat(e.disconnectedNodes.map((t=>this.singletonGroup(t))));return{layout:{nodes:e.layoutNodes,edges:r,constraints:e.constraints,groups:n,disjunctiveConstraints:[]},projectionData:e.projectionData,error:t,selectorErrors:this.selectorErrors}}handlePositionalConstraintError(t,e,r){let n=t.minimalConflictingSet;return{layout:{nodes:e.nodes,edges:e.edges,constraints:e.constraints.filter((t=>![...n.values()].flat().includes(t))),groups:e.groups,conflictingConstraints:[...n.values()].flat()},projectionData:r,error:t,selectorErrors:this.selectorErrors}}handleGroupOverlapError(t,e,r){let n=t.overlappingNodes.map((t=>t.groups)).flat(),i=e.groups.filter((t=>n.includes(t.name))),o=i.flatMap((t=>t.nodeIds)),s=e.nodes.filter((t=>o.includes(t.id))),a=e.edges.filter((t=>s.some((e=>t.source.id===e.id))&&s.some((e=>t.target.id===e.id))));return{layout:{nodes:s,edges:a,constraints:e.constraints,groups:i,overlappingNodes:t.overlappingNodes},projectionData:r,error:t,selectorErrors:this.selectorErrors}}buildCyclicDisjunctions(t){let e=this._layoutSpec.constraints.orientation.cyclic,r=[];for(let[,n]of e.entries()){let e;try{e=this.evaluator.evaluate(n.selector,{instanceIndex:this.instanceNum}).selectedTwoples()}catch(t){this.recordSelectorError(n.selector,"cyclic orientation selector",t);continue}let i=new Map;e.forEach((e=>{let r=e[0],n=e[1],o=t.find((t=>t.id===r)),s=t.find((t=>t.id===n));!o||!s||(i.has(o)?i.get(o).push(s):i.set(o,[s]))}));let o=this.getFragmentsToConstrain(i).map((t=>t.Path.map((t=>t.id))));"counterclockwise"===n.direction&&(o=o.map((t=>t.reverse()))),o.forEach((e=>{let i=e.length;if(i<=2)return;let o=[];for(let r=0;rc.x?a.push(this.leftConstraint(i,r,this.minSepWidth,e,n)):s.xc.y?a.push(this.topConstraint(i,r,this.minSepHeight,e,n)):s.y!e.some(((e,n)=>n!r.some(((r,n)=>e!==n&&r.isSubpathOf(t)))))}applyRelativeOrientationConstraints(t,e){let r=[],n=this._layoutSpec.constraints.orientation.relative,i=new Set,o=new Map,s=new Map;return n.forEach((n=>{let a,l=n.directions,u=n.selector;try{a=this.evaluator.evaluate(u,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(u,"orientation selector",t)}a.selectedTwoples().forEach((a=>{let u=a[0],c=a[1];l.forEach((a=>{if(this.shouldAddAlignmentEdge(e,u,c)){let t=`_alignment_${u}_${c}_`;e.setEdge(u,c,t,t)}if("left"==a){let e=`left:${c}:${u}:${this.minSepWidth}`;!i.has(e)&&!this.hasTransitivePath(o,c,u)&&(i.add(e),this.addToTransitiveGraph(o,c,u),r.push(this.leftConstraint(c,u,this.minSepWidth,t,n)))}else if("above"==a){let e=`top:${c}:${u}:${this.minSepHeight}`;!i.has(e)&&!this.hasTransitivePath(s,c,u)&&(i.add(e),this.addToTransitiveGraph(s,c,u),r.push(this.topConstraint(c,u,this.minSepHeight,t,n)))}else if("right"==a){let e=`left:${u}:${c}:${this.minSepWidth}`;!i.has(e)&&!this.hasTransitivePath(o,u,c)&&(i.add(e),this.addToTransitiveGraph(o,u,c),r.push(this.leftConstraint(u,c,this.minSepWidth,t,n)))}else if("below"==a){let e=`top:${u}:${c}:${this.minSepHeight}`;!i.has(e)&&!this.hasTransitivePath(s,u,c)&&(i.add(e),this.addToTransitiveGraph(s,u,c),r.push(this.topConstraint(u,c,this.minSepHeight,t,n)))}else if("directlyLeft"==a){let e=`left:${c}:${u}:${this.minSepWidth}`,s=`align-y:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(o,c,u)&&(i.add(e),this.addToTransitiveGraph(o,c,u),r.push(this.leftConstraint(c,u,this.minSepWidth,t,n))),i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(c,u,t,n)))}else if("directlyAbove"==a){let e=`top:${c}:${u}:${this.minSepHeight}`,o=`align-x:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(s,c,u)&&(i.add(e),this.addToTransitiveGraph(s,c,u),r.push(this.topConstraint(c,u,this.minSepHeight,t,n))),i.has(o)||(i.add(o),r.push(this.ensureSameXConstraint(c,u,t,n)))}else if("directlyRight"==a){let e=`left:${u}:${c}:${this.minSepWidth}`,s=`align-y:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(o,u,c)&&(i.add(e),this.addToTransitiveGraph(o,u,c),r.push(this.leftConstraint(u,c,this.minSepWidth,t,n))),i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(c,u,t,n)))}else if("directlyBelow"==a){let e=`top:${u}:${c}:${this.minSepHeight}`,o=`align-x:${c}:${u}`;!i.has(e)&&!this.hasTransitivePath(s,u,c)&&(i.add(e),this.addToTransitiveGraph(s,u,c),r.push(this.topConstraint(u,c,this.minSepHeight,t,n))),i.has(o)||(i.add(o),r.push(this.ensureSameXConstraint(c,u,t,n)))}}))}))})),r}hasTransitivePath(t,e,r){let n=t.get(e);if(!n)return!1;if(n.has(r))return!0;let i=new Set([e]),o=Array.from(n);for(;o.length>0;){let e=o.shift();if(e===r)return!0;if(i.has(e))continue;i.add(e);let n=t.get(e);if(n)for(let t of n)i.has(t)||o.push(t)}return!1}addToTransitiveGraph(t,e,r){t.has(e)||t.set(e,new Set),t.get(e).add(r);let n=t.get(r)||new Set;for(let[i,o]of t.entries())if(i===e||o.has(e)){o.add(r);for(let t of n)o.add(t)}}applyAlignConstraints(t,e){let r=[],n=this._layoutSpec.constraints.alignment,i=new Set;return n.forEach((n=>{let o,s=n.direction,a=n.selector;try{o=this.evaluator.evaluate(a,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(a,"align selector",t)}o.selectedTwoples().forEach((o=>{let a=o[0],l=o[1];if(this.shouldAddAlignmentEdge(e,a,l)){let t=`_alignment_${a}_${l}_`;e.setEdge(a,l,t,t)}if("horizontal"===s){let[e,o]=[a,l].sort(),s=`align-y:${e}:${o}`;i.has(s)||(i.add(s),r.push(this.ensureSameYConstraint(a,l,t,n)))}else if("vertical"===s){let[e,o]=[a,l].sort(),s=`align-x:${e}:${o}`;i.has(s)||(i.add(s),r.push(this.ensureSameXConstraint(a,l,t,n)))}}))})),r}shouldAddAlignmentEdge(t,e,r){if("never"===this.alignmentEdgeStrategy)return!1;let n=this.hasDirectEdgeBetween(t,e,r);return"direct"===this.alignmentEdgeStrategy?!n:!n&&!this.isConnectedViaPath(t,e,r)}hasDirectEdgeBetween(t,e,r){return"function"==typeof t.hasEdge&&(t.hasEdge(e,r)||t.hasEdge(r,e))||(t.inEdges(e)||[]).some((t=>t.v===r))||(t.outEdges(e)||[]).some((t=>t.w===r))||(t.inEdges(r)||[]).some((t=>t.v===e))||(t.outEdges(r)||[]).some((t=>t.w===e))}isConnectedViaPath(t,e,r,n){let i=new Set,o=[e];for(;o.length>0;){let e=o.shift();if(e===r)return!0;if(i.has(e))continue;i.add(e);let s=t.outEdges(e)||[],a=t.inEdges(e)||[];for(let t of[...s,...a]){if(n&&(t.v===n.v&&t.w===n.w&&t.name===n.name||t.v===n.w&&t.w===n.v&&t.name===n.name))continue;let r=t.v===e?t.w:t.v;i.has(r)||o.push(r)}}return!1}pruneRedundantAlignmentEdges(t){if("connected"!==this.alignmentEdgeStrategy)return;let e=t.edges().filter((t=>{let e=t.name;return e&&e.includes("_alignment_")})),r=[];for(let n of e)this.isConnectedViaPath(t,n.v,n.w,n)&&(t.removeEdge(n.v,n.w,n.name),r.push(n));r.length>0&&console.log(`Pruned ${r.length} redundant alignment edges out of ${e.length} total alignment edges`)}getDisconnectedNodes(t){let e=t.edges().map((t=>t.w)),r=t.edges().map((t=>t.v)),n=new Set(t.nodes()),i=new Set([...e,...r]);return[...n].filter((t=>!i.has(t)))}buildLayoutEdges(t,e){return t.edges().map((r=>{let n=r.name,i=t.edge(r.v,r.w,n),o=e.find((t=>t.id===r.v)),s=e.find((t=>t.id===r.w)),a=this.getRelationName(t,r),l=this.getEdgeColor(a,r.v,r.w,n),u=this.getEdgeStyle(a,r.v,r.w,n),c=this.getEdgeWeight(a,r.v,r.w,n),h=this.getEdgeShowLabel(a,r.v,r.w,n);return o&&s&&n?{source:o,target:s,label:i,relationName:a,id:n,color:l,style:u,weight:c,showLabel:h}:null})).filter((t=>null!==t))}filterHiddenEdges(t){return t.filter((t=>!t.id.startsWith(this.hideThisEdge)))}getNodeFromId(t,e,r){let n=e.find((e=>e.id===t));if(!n)throw new zf(t,r);return n}leftConstraint(t,e,r,n,i){return{left:this.getNodeFromId(t,n,i),right:this.getNodeFromId(e,n,i),minDistance:r,sourceConstraint:i}}topConstraint(t,e,r,n,i){return{top:this.getNodeFromId(t,n,i),bottom:this.getNodeFromId(e,n,i),minDistance:r,sourceConstraint:i}}ensureSameYConstraint(t,e,r,n){return{axis:"y",node1:this.getNodeFromId(t,r,n),node2:this.getNodeFromId(e,r,n),sourceConstraint:n}}ensureSameXConstraint(t,e,r,n){return{axis:"x",node1:this.getNodeFromId(t,r,n),node2:this.getNodeFromId(e,r,n),sourceConstraint:n}}singletonGroup(e){return{name:`${t.DISCONNECTED_PREFIX}${e}`,nodeIds:[e],keyNodeId:e,showLabel:!1}}getNodeSizeMap(t){let e={},r={width:this.DEFAULT_NODE_WIDTH,height:this.DEFAULT_NODE_HEIGHT};return this._layoutSpec.directives.sizes.forEach((t=>{let r;try{r=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"size selector",e)}let n=t.width,i=t.height;r.forEach((t=>{if(e[t]){let r=e[t];if(r.width!==n||r.height!==i)throw new Error(`Size Conflict: "${t}" cannot have multiple sizes: ${JSON.stringify(r)}, ${JSON.stringify({width:n,height:i})}.`)}e[t]={width:n,height:i}}))})),[...t.nodes()].forEach((t=>{e[t]||(e[t]=r)})),e}getNodeColorMap(t,e){let r={},n=this.getSigColors(e);return this._layoutSpec.directives.atomColors.forEach((t=>{let e;try{e=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"color selector",e)}let n=t.color;e.forEach((t=>{if(r[t]){let e=r[t];if(e!==n)throw new Error(`Color Conflict: "${t}" cannot have multiple colors: ${e}, ${n}.`)}r[t]=n}))})),[...t.nodes()].forEach((t=>{if(!r[t]){let i=this.getMostSpecificType(t,e);r[t]=n[i]}})),r}getNodeIconMap(t){let e={},r=this.DEFAULT_NODE_ICON_PATH;return this._layoutSpec.directives.icons.forEach((t=>{let r;try{r=this.evaluator.evaluate(t.selector,{instanceIndex:this.instanceNum}).selectedAtoms()}catch(e){return void this.recordSelectorError(t.selector,"icon selector",e)}let n=t.path;r.forEach((r=>{let i=Pa(n);if(e[r]){let n=e[r];if(n.path!==i||n.showLabels!==t.showLabels)throw new Error(`Icon Conflict: "${r}" cannot have multiple icons: ${JSON.stringify(n)}, ${JSON.stringify({path:i,showLabels:t.showLabels})}.`)}e[r]={path:i,showLabels:t.showLabels}}))})),[...t.nodes()].forEach((t=>{e[t]||(e[t]={path:r,showLabels:!0})})),e}getEdgeColor(t,e,r,n){let i=this.getInferredEdgeDirective(n);if(i?.color)return i.color;let o=this.findEdgeDirective(t,e,r);return o?.color?o.color:"black"}getEdgeStyle(t,e,r,n){return ka(this.getInferredEdgeDirective(n)?.style)||ka(this.findEdgeDirective(t,e,r)?.style)}getEdgeWeight(t,e,r,n){let i=this.getInferredEdgeDirective(n),o=this.normalizeEdgeWeight(i?.weight,"inferred edge");if(void 0!==o)return o;let s=this.findEdgeDirective(t,e,r);return this.normalizeEdgeWeight(s?.weight,"edge")}getEdgeShowLabel(t,e,r,n){return this.findEdgeDirective(t,e,r)?.showLabel}getInferredEdgeDirective(t){let e="_inferred_";return t&&t.includes(e)?this._layoutSpec.directives.inferredEdges.find((r=>t.includes(`${e}<:${r.name}`))):void 0}findEdgeDirective(t,e,r){let n=this._layoutSpec.directives.edgeColors;for(let i of n){if(i.field!==t)continue;let n=!0;if(i.selector)try{n=this.evaluator.evaluate(i.selector,{instanceIndex:this.instanceNum}).selectedAtoms().includes(e)}catch(t){this.recordSelectorError(i.selector,"edge selector",t),n=!1}if(!n)continue;let o=!0;if(i.filter&&r)try{o=this.evaluator.evaluate(i.filter,{instanceIndex:this.instanceNum}).selectedTwoples().some((t=>t[0]===e&&t[1]===r))}catch(t){this.recordSelectorError(i.filter,"edge filter",t),o=!1}if(n&&o)return i}}normalizeEdgeWeight(t,e){if(null!=t)return"number"!=typeof t||Number.isNaN(t)||t<=0?void console.warn(`Ignoring ${e} weight because it is not a positive number: ${t}`):t}getSigColors(t){let e={},r=t.getTypes(),n=new Hp(r.length);return r.forEach((t=>{e[t.id]=n.getNextColor()})),e}getFieldTuples(t,e){let r=t.getRelations();Object.values(r);let n=Object.values(r).find((t=>t.name===e));return n?n.tuples.map((t=>t.atoms)):[]}getFieldTuplesForSourceAndTarget(t,e,r,n){return this.getFieldTuples(t,e).filter((t=>{let e=t.length;return!(e<1)&&t[0]===r&&t[e-1]===n}))}addinferredEdges(t){this._layoutSpec.directives.inferredEdges.forEach((e=>{let r;try{r=this.evaluator.evaluate(e.selector,{instanceIndex:this.instanceNum})}catch(t){return void this.recordSelectorError(e.selector,"inferredEdge selector",t)}let n=r.selectedTuplesAll(),i=`_inferred_<:${e.name}`;n.forEach((r=>{let n=r.length,o=r[0],s=r[n-1],a=e.name;n>2&&(a=`${a}[${r.slice(1,n-1).map((e=>t.node(e)?.label||e)).join(",")}]`);let l=r.join("->"),u=`${i}<:${l}`;t.setEdge(o,s,a,u)}))}))}},Wf.DISCONNECTED_PREFIX="_d_",t.LayoutInstance=Wf})),tg=p(((t,e)=>{var r;if("function"==typeof h)try{r=gn()}catch{}r||(r=window.graphlib),e.exports=r})),eg=p(((t,e)=>{var r=ge();e.exports=function(t){return r(t,5)}})),rg=p(((t,e)=>{var r=_(),n=Ct(),i=vt(),o=P();e.exports=function(t,e,s){if(!o(s))return!1;var a=typeof e;return!!("number"==a?n(s)&&i(e,s.length):"string"==a&&e in s)&&r(s[e],t)}})),ng=p(((t,e)=>{var r=Pr(),n=_(),i=rg(),o=Pt(),s=Object.prototype,a=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var r=-1,l=e.length,u=l>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(l=1);++r{var r=cr(),n=Ct(),i=Lt();e.exports=function(t){return function(e,o,s){var a=Object(e);if(!n(e)){var l=r(o,3);e=i(e),o=function(t){return l(a[t],t,a)}}var u=t(e,o,s);return u>-1?a[l?e[u]:u]:void 0}}})),og=p(((t,e)=>{var r=/\s/;e.exports=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}})),sg=p(((t,e)=>{var r=og(),n=/^\s+/;e.exports=function(t){return t&&t.slice(0,r(t)+1).replace(n,"")}})),ag=p(((t,e)=>{var r=sg(),n=P(),i=Ge(),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var u=s.test(t);return u||a.test(t)?l(t.slice(2),u?2:8):o.test(t)?NaN:+t}})),lg=p(((t,e)=>{var r=ag(),n=1/0;e.exports=function(t){return t?(t=r(t))===n||t===-n?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}})),ug=p(((t,e)=>{var r=lg();e.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}})),cg=p(((t,e)=>{var r=Mr(),n=cr(),i=ug(),o=Math.max;e.exports=function(t,e,s){var a=null==t?0:t.length;if(!a)return-1;var l=null==s?0:i(s);return l<0&&(l=o(a+l,0)),r(t,n(e,3),l)}})),hg=p(((t,e)=>{var r=ig()(cg());e.exports=r})),dg=p(((t,e)=>{var r=Rr();e.exports=function(t){return null!=t&&t.length?r(t,1):[]}})),pg=p(((t,e)=>{var r=ve(),n=Oe(),i=Pt();e.exports=function(t,e){return null==t?t:r(t,n(e),i)}})),fg=p(((t,e)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}})),gg=p(((t,e)=>{var r=ut(),n=xe(),i=cr();e.exports=function(t,e){var o={};return e=i(e,3),n(t,(function(t,n,i){r(o,n,e(t,n,i))})),o}})),mg=p(((t,e)=>{var r=Ge();e.exports=function(t,e,n){for(var i=-1,o=t.length;++i{e.exports=function(t,e){return t>e}})),_g=p(((t,e)=>{var r=mg(),n=yg(),i=Ee();e.exports=function(t){return t&&t.length?r(t,i,n):void 0}})),vg=p(((t,e)=>{var r=ut(),n=_();e.exports=function(t,e,i){(void 0!==i&&!n(t[e],i)||void 0===i&&!(e in t))&&r(t,e,i)}})),xg=p(((t,e)=>{var r=D(),n=qt(),i=pt(),o=Function.prototype,s=Object.prototype,a=o.toString,l=s.hasOwnProperty,u=a.call(Object);e.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=n(t);if(null===e)return!0;var o=l.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&a.call(o)==u}})),bg=p(((t,e)=>{e.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}})),Tg=p(((t,e)=>{var r=ht(),n=Pt();e.exports=function(t){return r(t,n(t))}})),Eg=p(((t,e)=>{var r=vg(),n=jt(),i=ae(),o=Kt(),s=ce(),a=gt(),l=mt(),u=Gr(),c=_t(),h=M(),d=P(),p=xg(),f=Ot(),g=bg(),m=Tg();e.exports=function(t,e,y,_,v,x,b){var T=g(t,y),E=g(e,y),O=b.get(E);if(O)r(t,y,O);else{var S=x?x(T,E,y+"",t,e,b):void 0,N=void 0===S;if(N){var A=l(E),w=!A&&c(E),R=!A&&!w&&f(E);S=E,A||w||R?l(T)?S=T:u(T)?S=o(T):w?(N=!1,S=n(E,!0)):R?(N=!1,S=i(E,!0)):S=[]:p(E)||a(E)?(S=T,a(T)?S=m(T):(!d(T)||h(T))&&(S=s(E))):N=!1}N&&(b.set(E,S),v(S,E,_,x,b),b.delete(E)),r(t,y,S)}}})),Og=p(((t,e)=>{var r=st(),n=vg(),i=ve(),o=Eg(),s=P(),a=Pt(),l=bg();e.exports=function t(e,u,c,h,d){e!==u&&i(u,(function(i,a){if(d||(d=new r),s(i))o(e,u,a,c,t,h,d);else{var p=h?h(l(e,a),i,a+"",e,u,d):void 0;void 0===p&&(p=i),n(e,a,p)}}),a)}})),Sg=p(((t,e)=>{var r=Pr(),n=rg();e.exports=function(t){return r((function(e,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&n(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i{var r=Og(),n=Sg()((function(t,e,n){r(t,e,n)}));e.exports=n})),Ag=p(((t,e)=>{e.exports=function(t,e){return t{var r=mg(),n=Ag(),i=Ee();e.exports=function(t){return t&&t.length?r(t,i,n):void 0}})),Rg=p(((t,e)=>{var r=mg(),n=cr(),i=Ag();e.exports=function(t,e){return t&&t.length?r(t,n(e,2),i):void 0}})),Cg=p(((t,e)=>{var r=C();e.exports=function(){return r.Date.now()}})),Lg=p(((t,e)=>{var r=ct(),n=Ze(),i=vt(),o=P(),s=tr();e.exports=function(t,e,a,l){if(!o(t))return t;for(var u=-1,c=(e=n(e,t)).length,h=c-1,d=t;null!=d&&++u{var r=er(),n=Lg(),i=Ze();e.exports=function(t,e,o){for(var s=-1,a=e.length,l={};++s{var r=Ig(),n=or();e.exports=function(t,e){return r(t,e,(function(e,r){return n(t,r)}))}})),Dg=p(((t,e)=>{var r=dg(),n=Lr(),i=Dr();e.exports=function(t){return i(n(t,void 0,r),t+"")}})),Pg=p(((t,e)=>{var r=kg(),n=Dg()((function(t,e){return null==t?{}:r(t,e)}));e.exports=n})),Mg=p(((t,e)=>{var r=Math.ceil,n=Math.max;e.exports=function(t,e,i,o){for(var s=-1,a=n(r((e-t)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=t,t+=i;return l}})),jg=p(((t,e)=>{var r=Mg(),n=rg(),i=lg();e.exports=function(t){return function(e,o,s){return s&&"number"!=typeof s&&n(e,o,s)&&(o=s=void 0),e=i(e),void 0===o?(o=e,e=0):o=i(o),s=void 0===s?e{var r=jg()();e.exports=r})),Ug=p(((t,e)=>{e.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}})),Fg=p(((t,e)=>{var r=Ge();e.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,l=null===e,u=e==e,c=r(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&t{var r=Fg();e.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,l=n.length;++i=l?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}})),Hg=p(((t,e)=>{var r=Xe(),n=er(),i=cr(),o=mr(),s=Ug(),a=Tt(),l=$g(),u=Ee(),c=mt();e.exports=function(t,e,h){e=e.length?r(e,(function(t){return c(t)?function(e){return n(e,1===t.length?t[0]:t)}:t})):[u];var d=-1;e=r(e,a(i));var p=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++d,value:t}}));return s(p,(function(t,e){return l(t,e,h)}))}})),Bg=p(((t,e)=>{var r=Rr(),n=Hg(),i=Pr(),o=rg(),s=i((function(t,e){if(null==t)return[];var i=e.length;return i>1&&o(t,e[0],e[1])?e=[]:i>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),n(t,r(e,1),[])}));e.exports=s})),qg=p(((t,e)=>{var r=Je(),n=0;e.exports=function(t){var e=++n;return r(t)+e}})),Gg=p(((t,e)=>{e.exports=function(t,e,r){for(var n=-1,i=t.length,o=e.length,s={};++n{var r=ct(),n=Gg();e.exports=function(t,e){return n(t||[],e||[],r)}})),Vg=p(((t,e)=>{var r;if("function"==typeof h)try{r={cloneDeep:eg(),constant:ye(),defaults:ng(),each:Ne(),filter:hr(),find:hg(),flatten:dg(),forEach:Se(),forIn:pg(),has:pr(),isUndefined:gr(),last:fg(),map:yr(),mapValues:gg(),max:_g(),merge:Ng(),min:wg(),minBy:Rg(),now:Cg(),pick:Pg(),range:Kg(),reduce:xr(),sortBy:Bg(),uniqueId:qg(),values:Yr(),zipObject:zg()}}catch{}r||(r=window._),e.exports=r})),Yg=p(((t,e)=>{function r(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}e.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,i)),r=r._prev;return"["+t.join(", ")+"]"}})),Wg=p(((t,e)=>{var r=Vg(),n=tg().Graph,i=Yg();e.exports=function(t,e){if(t.nodeCount()<=1)return[];var l=function(t,e){var o=new n,s=0,l=0;r.forEach(t.nodes(),(function(t){o.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=o.edge(t.v,t.w)||0,n=e(t),i=r+n;o.setEdge(t.v,t.w,i),l=Math.max(l,o.node(t.v).out+=n),s=Math.max(s,o.node(t.w).in+=n)}));var u=r.range(l+s+3).map((function(){return new i})),c=s+1;return r.forEach(o.nodes(),(function(t){a(u,c,o.node(t))})),{graph:o,buckets:u,zeroIdx:c}}(t,e||o),u=function(t,e,r){for(var n,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;n=a.dequeue();)s(t,e,r,n);for(;n=o.dequeue();)s(t,e,r,n);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(n=e[l].dequeue()){i=i.concat(s(t,e,r,n,!0));break}}return i}(l.graph,l.buckets,l.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),l=t.node(r.v);o&&s.push({v:r.v,w:r.w}),l.out-=i,a(e,n,l)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,s=t.node(o);s.in-=i,a(e,n,s)})),t.removeNode(i.v),s}function a(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}})),Xg=p(((t,e)=>{var r=Vg(),n=Wg();e.exports={run:function(t){var e,i="greedy"===t.graph().acyclicer?n(t,(e=t,function(t){return e.edge(t).weight})):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,n[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[s])})),e}(t);r.forEach(i,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}})),Qg=p(((t,e)=>{var r=Vg(),n=tg().Graph;function i(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:i,simplify:function(t){var e=(new n).setGraph(t.graph());return r.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),r.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new n({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),r.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,i=t.x,o=t.y,s=e.x-i,a=e.y-o,l=t.width/2,u=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(s)*u?(a<0&&(u=-u),r=u*s/a,n=u):(s<0&&(l=-l),r=l,n=l*a/s),{x:i+r,y:o+n}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),i(t,"border",o,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}})),Jg=p(((t,e)=>{var r=Vg(),n=Qg();e.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var r=e.v,i=t.node(r).rank,o=e.w,s=t.node(o).rank,a=e.name,l=t.edge(e),u=l.labelRank;if(s!==i+1){var c,h,d;for(t.removeEdge(e),d=0,++i;i{var r=Vg();e.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return(s===Number.POSITIVE_INFINITY||null==s)&&(s=0),o.rank=s}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}})),tm=p(((t,e)=>{var r=Vg(),n=tg().Graph,i=Zg().slack;function o(t,e){return r.forEach(t.nodes(),(function n(o){r.forEach(e.nodeEdges(o),(function(r){var s=r.v,a=o===s?r.w:s;!t.hasNode(a)&&!i(e,r)&&(t.setNode(a,{}),t.setEdge(o,a,{}),n(a))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return i(e,r)}))}function a(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}e.exports=function(t){var e,r,l=new n({directed:!1}),u=t.nodes()[0],c=t.nodeCount();for(l.setNode(u,{});o(l,t){var r=Vg(),n=tm(),i=Zg().slack,o=Zg().longestPath,s=tg().alg.preorder,a=tg().alg.postorder,l=Qg().simplify;function u(t){t=l(t),o(t);var e,r=n(t);for(d(r),c(r,t);e=f(r);)m(r,t,e,g(r,t,e))}function c(t,e){var n=a(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=h(t,e,r)}(t,e,r)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,r.forEach(e.nodeEdges(n),(function(r){var s=r.v===n,l=s?r.w:r.v;if(l!==i){var u=s===o,c=e.edge(r).weight;if(a+=u?c:-c,function(t,e,r){return t.hasEdge(e,r)}(t,n,l)){var h=t.edge(n,l).cutvalue;a+=u?-h:h}}})),a}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var s=n,a=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),a.low=s,a.lim=n++,o?a.parent=o:delete a.parent,n}function f(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var o=n.v,s=n.w;e.hasEdge(o,s)||(o=n.w,s=n.v);var a=t.node(o),l=t.node(s),u=a,c=!1;a.lim>l.lim&&(u=l,c=!0);var h=r.filter(e.edges(),(function(e){return c===y(0,t.node(e.v),u)&&c!==y(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return i(e,t)}))}function m(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),c(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(r){var n=t.node(r).parent,i=e.edge(r,n),o=!1;i||(i=e.edge(n,r),o=!0),e.node(r).rank=e.node(n).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}e.exports=u,u.initLowLimValues=d,u.initCutValues=c,u.calcCutValue=h,u.leaveEdge=f,u.enterEdge=g,u.exchangeEdges=m})),rm=p(((t,e)=>{var r=Zg().longestPath,n=tm(),i=em();e.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){i(t)}(t);break;case"tight-tree":!function(t){r(t),n(t)}(t);break;case"longest-path":o(t)}};var o=r})),nm=p(((t,e)=>{var r=Vg();e.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(o){var s=n;r.forEach(t.children(o),i),e[o]={low:s,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),i=n.edgeObj,o=function(t,e,r,n){var i,o,s=[],a=[],l=Math.min(e[r].low,e[n].low),u=Math.max(e[r].lim,e[n].lim);i=r;do{i=t.parent(i),s.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=n;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,e,i.v,i.w),s=o.path,a=o.lca,l=0,u=s[l],c=!0;r!==i.w;){if(n=t.node(r),c){for(;(u=s[l])!==a&&t.node(u).maxRank{var r=Vg(),n=Qg();function i(t,e,o,s,a,l,u){var c=t.children(u);if(c.length){var h=n.addBorderNode(t,"_bt"),d=n.addBorderNode(t,"_bb"),p=t.node(u);t.setParent(h,u),p.borderTop=h,t.setParent(d,u),p.borderBottom=d,r.forEach(c,(function(r){i(t,e,o,s,a,l,r);var n=t.node(r),c=n.borderTop?n.borderTop:r,p=n.borderBottom?n.borderBottom:r,f=n.borderTop?s:2*s,g=c!==p?1:a-l[u]+1;t.setEdge(h,c,{weight:f,minlen:g,nestingEdge:!0}),t.setEdge(p,d,{weight:f,minlen:g,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:a+l[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:o})}e.exports={run:function(t){var e=n.addDummyNode(t,"root",{},"_root"),o=function(t){var e={};function n(i,o){var s=t.children(i);s&&s.length&&r.forEach(s,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),s=r.max(r.values(o))-1,a=2*s+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var l=function(t){return r.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){i(t,e,a,l,s,o,r)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}})),om=p(((t,e)=>{var r=Vg(),n=Qg();function i(t,e,r,i,o,s){var a={width:0,height:0,rank:s,borderType:e},l=o[e][s-1],u=n.addDummyNode(t,"border",a,r);o[e][s]=u,t.setParent(u,i),l&&t.setEdge(l,u,{weight:1})}e.exports=function(t){r.forEach(t.children(),(function e(n){var o=t.children(n),s=t.node(n);if(o.length&&r.forEach(o,e),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a{var r=Vg();function n(t){r.forEach(t.nodes(),(function(e){i(t.node(e))})),r.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}e.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&n(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();("bt"===e||"rl"===e)&&function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),("lr"===e||"rl"===e)&&(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),n(t))}}})),am=p(((t,e)=>{var r=Vg();e.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]})),s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,(function n(i){if(!r.has(e,i)){e[i]=!0;var s=t.node(i);o[s.rank].push(i),r.forEach(t.successors(i),n)}})),o}})),lm=p(((t,e)=>{var r=Vg();function n(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),s=1;s0;)e%2&&(r+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*r}))),u}e.exports=function(t,e){for(var r=0,i=1;i{var r=Vg();e.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,r){var n=t.edge(r),i=t.node(r.v);return{sum:e.sum+n.weight*i.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}})),cm=p(((t,e)=>{var r=Vg();e.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];!r.isUndefined(e)&&!r.isUndefined(i)&&(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}})),hm=p(((t,e)=>{var r=Vg(),n=Qg();function i(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}e.exports=function(t,e){var o=n.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,a=r.sortBy(o.rhs,(function(t){return-t.i})),l=[],u=0,c=0,h=0;s.sort(function(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}(!!e)),h=i(l,a,h),r.forEach(s,(function(t){h+=t.vs.length,l.push(t.vs),u+=t.barycenter*t.weight,c+=t.weight,h=i(l,a,h)}));var d={vs:r.flatten(l,!0)};return c&&(d.barycenter=u/c,d.weight=c),d}})),dm=p(((t,e)=>{var r=Vg(),n=um(),i=cm(),o=hm();e.exports=function t(e,s,a,l){var u=e.children(s),c=e.node(s),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,p={};h&&(u=r.filter(u,(function(t){return t!==h&&t!==d})));var f=n(e,u);r.forEach(f,(function(n){if(e.children(n.v).length){var i=t(e,n.v,a,l);p[n.v]=i,r.has(i,"barycenter")&&function(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(n,i)}}));var g=i(f,a);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,p);var m=o(g,l);if(h&&(m.vs=r.flatten([h,m.vs,d],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),_=e.node(e.predecessors(d)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+_.order)/(m.weight+2),m.weight+=2}return m}})),pm=p(((t,e)=>{var r=Vg(),n=tg().Graph;e.exports=function(t,e,i){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),s=new n({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(n){var a=t.node(n),l=t.parent(n);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(n),s.setParent(n,l||o),r.forEach(t[i](n),(function(e){var i=e.v===n?e.w:e.v,o=s.edge(i,n),a=r.isUndefined(o)?0:o.weight;s.setEdge(i,n,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(n,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}})),fm=p(((t,e)=>{var r=Vg();e.exports=function(t,e,n){var i,o={};r.forEach(n,(function(r){for(var n,s,a=t.parent(r);a;){if((n=t.parent(a))?(s=o[n],o[n]=a):(s=i,i=a),s&&s!==a)return void e.setEdge(s,a);a=n}}))}})),gm=p(((t,e)=>{var r=Vg(),n=am(),i=lm(),o=dm(),s=pm(),a=fm(),l=tg().Graph,u=Qg();function c(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,s=o(t,i,n,e);r.forEach(s.vs,(function(e,r){t.node(e).order=r})),a(t,n,s.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,r){t.node(e).order=r}))}))}e.exports=function(t){var e=u.maxRank(t),o=c(t,r.range(1,e+1),"inEdges"),s=c(t,r.range(e-1,-1,-1),"outEdges"),a=n(t);d(t,a);for(var l,p=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){h(f%2?o:s,f%4>=2),a=u.buildLayerMatrix(t);var m=i(t,a);m{var r=Vg(),n=tg().Graph,i=Qg();function o(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,s=0,l=e.length,u=r.last(i);return r.forEach(i,(function(e,c){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),d=h?t.node(h).order:l;(h||e===u)&&(r.forEach(i.slice(s,c+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),s=i.order;(sl)&&a(n,e,u)}))}))}return r.reduce(e,(function(e,n){var o,s=-1,a=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(o=t.node(u[0]).order,i(n,a,l,s,o),a=l,s=o)}i(n,a,n.length,o,e.length)})),n})),n}function a(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function u(t,e,n,i){var o={},s={},a={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,s[t]=t,a[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var c=((u=r.sortBy(u,(function(t){return a[t]}))).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var p=u[h];s[t]===t&&e{var r=Vg(),n=Qg(),i=mm().positionX;e.exports=function(t){(function(t){var e=n.buildLayerMatrix(t),i=t.graph().ranksep,o=0;r.forEach(e,(function(e){var n=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+n/2})),o+=n+i}))})(t=n.asNonCompoundGraph(t)),r.forEach(i(t),(function(e,r){t.node(r).x=e}))}})),_m=p(((t,e)=>{var r=Vg(),n=Xg(),i=Jg(),o=rm(),s=Qg().normalizeRanks,a=nm(),l=Qg().removeEmptyRanks,u=im(),c=om(),h=sm(),d=gm(),p=ym(),f=Qg(),g=tg().Graph;e.exports=function(t,e){var N=e&&e.debugTiming?f.time:f.notime;N("layout",(function(){var e=N(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,O(n,m),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=S(t.node(n));e.setNode(n,r.defaults(O(i,v),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},T,O(i,b),r.pick(i,E)))})),e}(t)}));N(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){n.run(t)})),e(" nestingGraph.run",(function(){u.run(t)})),e(" rank",(function(){o(f.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e};f.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){u.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){a(t)})),e(" addBorderSegments",(function(){c(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=f.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){f.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),i=n.x+n.width/2,o=n.y,s=r.x-i,a=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),s=t.node(r.last(n.borderLeft)),a=t.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,l=s.marginy||0;function u(t){var r=t.x,s=t.y,a=t.width,l=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-l/2),o=Math.max(o,s+l/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=a,i-=l,r.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),s.width=n-e+a,s.height=o-i+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var r,n,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=s,n=o),i.points.unshift(f.intersectRect(o,r)),i.points.push(f.intersectRect(s,n))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){n.undo(t)}))}(e,N)})),N(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],v=["width","height"],x={width:0,height:0},b=["minlen","weight","width","height","labeloffset"],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function O(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}})),vm=p(((t,e)=>{var r=Vg(),n=Qg(),i=tg().Graph;e.exports={debugOrdering:function(t){var e=n.buildLayerMatrix(t),o=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){o.setNode(e,{label:e}),o.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){o.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var n="layer"+e;o.setNode(n,{rank:"same"}),r.reduce(t,(function(t,e){return o.setEdge(t,e,{style:"invis"}),e}))})),o}}})),xm=p(((t,e)=>{e.exports="0.8.5"})),bm=p(((t,e)=>{e.exports={graphlib:tg(),layout:_m(),debug:vm(),util:{time:Qg().time,notime:Qg().notime},version:xm()}}));t.WebColaTranslator=void 0;var Tm=d((()=>{Kn(),Zf(),Qf=g(bm()),Jf=class{constructor(t,e=800,r=800,n){if(this.FIG_HEIGHT=e,this.FIG_WIDTH=r,this.DEFAULT_X=r/2,this.DEFAULT_Y=e/2,this.instanceLayout=t,this.priorPositionMap=new Map,n?.priorState?.positions){for(let t of n.priorState.positions)this.priorPositionMap.set(t.id,t);typeof console<"u"&&console.log&&console.log(`WebColaLayout: Using ${this.priorPositionMap.size} prior positions for temporal consistency`)}try{let e=new Qf.graphlib.Graph({multigraph:!0});e.setGraph({nodesep:50,ranksep:100,rankdir:"TB"}),e.setDefaultEdgeLabel((()=>({}))),t.nodes.forEach((t=>{e.setNode(t.id,{width:t.width,height:t.height})})),t.edges.forEach((t=>{e.setEdge(t.source.id,t.target.id)})),Qf.layout(e),this.dagre_graph=e}catch(t){console.log(t),this.dagre_graph=null}this.colaNodes=t.nodes.map((t=>this.toColaNode(t))),this.colaEdges=t.edges.map((t=>this.toColaEdge(t))),this.colaEdges=this.collapseSymmetricEdges(this.colaEdges);let i=this.collapseIdenticalGroups(t.groups);this.groupDefinitions=this.determineGroups(i),this.conflictingConstraints=t.conflictingConstraints||[],this.overlappingNodesData=t.overlappingNodes||[],this.colaConstraints=t.constraints.map((t=>this.toColaConstraint(t)));let o=this.colaConstraints.length;if(typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Generated ${o} constraints for ${this.colaNodes.length} nodes`),o>100){typeof console<"u"&&console.log&&console.log("WebColaTranslator: Constraint count exceeds threshold (100), applying transitive reduction optimization..."),this.colaConstraints=this.optimizeConstraints(this.colaConstraints);let t=this.colaConstraints.length,e=((o-t)/o*100).toFixed(1);typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Reduced constraints from ${o} to ${t} (${e}% reduction)`)}0===this.colaConstraints.length&&this.dagre_graph&&this.colaNodes.forEach((t=>t.fixed=1))}optimizeConstraints(t){let e=[],r=[],n=[];for(let i of t)if("separation"===i.type){let t=i;"x"!==t.axis||t.equality?"y"!==t.axis||t.equality?n.push(i):r.push(t):e.push(t)}else n.push(i);return[...this.transitiveReductionForSeparation(e),...this.transitiveReductionForSeparation(r),...n]}transitiveReductionForSeparation(t){if(0===t.length)return t;let e=this.colaNodes.length,r=Array(e).fill(null).map((()=>Array(e).fill(null)));for(let n of t){let t=n.left,i=n.right;"number"==typeof t&&"number"==typeof i&&t>=0&&t=0&&iArray(e).fill(!1)));for(let t=0;te.id===t))}computeHorizontalSeparation(t,e,r){let n=t.width||100,i=e.width||100,o=n/2+i/2+r,s=Math.max(n,i);return o+Math.min(.1*s,20)}computeVerticalSeparation(t,e,r){let n=t.height||60,i=e.height||60,o=n/2+i/2+r,s=Math.max(n,i);return o+Math.min(.1*s,15)}leftConstraint(t,e,r){return{type:"separation",axis:"x",left:t,right:e,gap:r}}topConstraint(t,e,r){return{type:"separation",axis:"y",left:t,right:e,gap:r}}heirarchyConstraint(t,e,r){return{type:"hierarchy",parent:t,child:e,gap:r}}toColaNode(t){let e=this.DEFAULT_X,r=this.DEFAULT_Y,n=this.priorPositionMap.get(t.id);if(n)e=n.x,r=n.y;else if(this.priorPositionMap.size>0){if(console.log(`Node ${t.id}: No prior position found (available: ${Array.from(this.priorPositionMap.keys()).join(", ")})`),this.dagre_graph){let n=this.dagre_graph.node(t.id);n&&(e=n.x,r=n.y)}}else if(this.dagre_graph){let n=this.dagre_graph.node(t.id);n&&(e=n.x,r=n.y)}return{id:t.id,color:t.color,attributes:t.attributes||{},labels:t.labels,width:t.width,height:t.height,x:e,y:r,icon:t.icon||"",fixed:0,mostSpecificType:t.mostSpecificType,showLabels:t.showLabels,label:t.label}}toColaEdge(t){return{source:this.getNodeIndex(t.source.id),target:this.getNodeIndex(t.target.id),relName:t.relationName,id:t.id,label:t.label,color:t.color,style:t.style,weight:t.weight,showLabel:t.showLabel}}collapseSymmetricEdges(t){let e=new Map,r=new Set;for(let n of t){if(r.has(n.id))continue;let i=`${Math.min(n.source,n.target)}-${Math.max(n.source,n.target)}-${n.label}`,o=t.find((t=>t.source===n.target&&t.target===n.source&&t.label===n.label&&!r.has(t.id)));if(o){let t=n.sourcet.name)).join(" / "),showLabel:i.some((t=>t.showLabel))};r.push(t)}return n>0&&typeof console<"u"&&console.log&&console.log(`WebColaTranslator: Collapsed ${n} duplicate group(s) from ${t.length} to ${r.length}`),r}determineGroups(t){let e={};t.forEach((t=>{e[t.name]=t.nodeIds}));let r=this.determineGroupsAndSubgroups(e);return r.forEach((e=>{let r=t.find((t=>t.name===e.name)),n=r.keyNodeId,i=this.getNodeIndex(n);e.keyNode=i,e.id=r.name,e.showLabel=r.showLabel})),r}isSubGroup(t,e){return t.every((t=>e.includes(t)))}determineGroupsAndSubgroups(e){let r={};Object.entries(e).forEach((([t,n])=>{Object.entries(e).forEach((([e,i])=>{t!==e&&(!r[e]||!r[e].includes(t))&&this.isSubGroup(i,n)&&(r[t]?r[t].push(e):r[t]=[e])}))}));let n=Object.entries(e).map((([e,r])=>{let n=t.LayoutInstance.DISCONNECTED_PREFIX,i=e;return{leaves:r.map((t=>this.getNodeIndex(t))),padding:i.startsWith(n)?30:10,name:i}}));return Object.entries(n).map((([t,e])=>{let i=e.leaves,o=e.padding,s=e.name;if(!r[s])return{leaves:i,padding:o,name:s,groups:[]};let a=r[s].map((t=>n.findIndex((e=>e.name===t))));return a.forEach((t=>{let e=n[t];i=i.filter((t=>!e.leaves.includes(t)))})),{leaves:i,padding:o,name:s,groups:a}}))}get nodes(){return this.colaNodes}get links(){return this.colaEdges}get constraints(){return this.colaConstraints}get groups(){return this.groupDefinitions}get conflictingNodes(){let t=[];return this.conflictingConstraints.forEach((e=>{Cn(e)?(t.push(e.left),t.push(e.right)):Rn(e)?(t.push(e.top),t.push(e.bottom)):Ln(e)&&(t.push(e.node1),t.push(e.node2))})),t}get overlappingNodes(){return this.overlappingNodesData}get overlappingGroups(){if(0===this.overlappingNodesData.length)return[];let t=new Set;return this.groupDefinitions.forEach((e=>{e.leaves.some((t=>this.overlappingNodesData.some((e=>e.id===t.id))))&&t.add(e)})),Array.from(t)}dispose(){this.dagre_graph&&(this.dagre_graph=null)}getMemoryStats(){return{nodeCount:this.colaNodes?.length||0,edgeCount:this.colaEdges?.length||0,groupCount:this.groupDefinitions?.length||0,constraintCount:this.colaConstraints?.length||0,hasDagreGraph:!!this.dagre_graph}}},t.WebColaTranslator=class{async translate(t,e=800,r=800,n){return new Jf(t,r,e,n)}}})),Em={};f(Em,{WebColaCnDGraph:()=>Am});var Om,Sm,Nm,Am,wm,Rm=d((()=>{Tm(),Kn(),Om=window.d3v4||window.d3,Sm=window.cola,Nm=class e extends HTMLElement{constructor(t=!1){super(),this.edgeRouteIdx=0,this.edgeRoutingCache={edgesBetweenNodes:new Map,alignmentEdges:new Set},this.isGridifyingInProgress=!1,this.userHasManuallyZoomed=!1,this.isInitialRender=!0,this.dragStartPositions=new Map,this.isInputModeActive=!1,this.inputModeEnabled=!0,this.inputModeListenersAttached=!1,this.handleInputModeKeydown=t=>{(t.metaKey||t.ctrlKey)&&!this.isInputModeActive&&this.activateInputMode()},this.handleInputModeKeyup=t=>{!t.metaKey&&!t.ctrlKey&&this.isInputModeActive&&this.deactivateInputMode()},this.handleInputModeBlur=()=>{this.isInputModeActive&&this.deactivateInputMode()},this.edgeCreationState={isCreating:!1,sourceNode:null,temporaryEdge:null},this.edgeDragState={isDragging:!1,edge:null,endpoint:null,dragMarker:null},this.textMeasurementCanvas=null,this.attachShadow({mode:"open"}),this.initializeDOM(),this.initializeD3(),this.lineFunction=Om.line().x((t=>t.x)).y((t=>t.y)).curve(Om.curveBasis),this.gridLineFunction=Om.line().x((t=>t.x)).y((t=>t.y)).curve(Om.curveLinear),this.inputModeEnabled=t,this.initializeInputModeHandlers()}get layoutFormat(){return this.getAttribute("layoutFormat")}get isUnsatCore(){return this.hasAttribute("unsat")}isAlignmentEdge(t){return this.edgeRoutingCache.alignmentEdges.size>0?this.edgeRoutingCache.alignmentEdges.has(t.id):t.id.startsWith("_alignment_")}isHiddenNode(t){let e=t.name||t.id;return!!e&&e.startsWith("_")}isErrorNode(t){let e=this.currentLayout.conflictingNodes,r=this.currentLayout.overlappingNodes;if(e.length>0&&r.length>0){let t=e.map((t=>t.id)),n=r.map((t=>t.id));throw new Error(`Layout cannot have both conflictingConstraints (${t}) and overlappingNodes ${n}`)}return[...e,...r].some((e=>e.id===t.id))}isSmallNode(t){let e=1;if(this.svg&&this.svg.node())try{e=Om.zoomTransform(this.svg.node()).k}catch{e=1}let r=(t.width||0)*e,n=(t.height||0)*e;return r<30||n<30}updateSmallNodeClasses(){this.container&&this.container.selectAll(".error-node").each(((t,e,r)=>{let n=Om.select(r[e]);this.isSmallNode(t)?n.classed("small-error-node")||n.classed("small-error-node",!0):n.classed("small-error-node")&&n.classed("small-error-node",!1)}))}getCurrentZoomScale(){if(this.svg&&this.svg.node())try{return Om.zoomTransform(this.svg.node()).k}catch{return 1}return 1}isErrorGroup(t){let e=this.currentLayout.overlappingGroups;if(!e)throw console.error("Overlapping groups data not available in current layout"),new Error("Overlapping groups data not available in current layout");return e.some((e=>e.name===t.name))}isInferredEdge(t){return!!t.id&&t.id.includes("_inferred_")}isDisconnectedGroup(t){return t.name.startsWith(e.DISCONNECTED_NODE_PREFIX)}computeAdaptiveLinkLength(t,e,r){if(!t||0===t.length)return 150;let n=0,i=0,o=0;if(t.forEach((t=>{t&&!this.isHiddenNode(t)&&(n+=t.width||100,i+=t.height||60,o++)})),0===o)return 150;let s=n/o,a=i/o,l=Math.max(s,a),u=0;r&&r.length>0&&r.forEach((t=>{if(t&&t.label){let e=this.measureTextWidth(t.label,12,"system-ui");u=Math.max(u,e)}}));let c=u+15+20,h=Math.max(l+50+c,120);h*=Math.max(.7,1-.1*Math.log10(o));let d=h/(e/5);return Math.max(60,Math.min(d,350))}getScaledDetails(t,e=5,r,n,i){let o,s=e/5,a=this.calculateAdaptiveGroupCompactness(n||[],r?.length||0,s);return o=r&&r.length>0?this.computeAdaptiveLinkLength(r,e,i):250/s,{scaledConstraints:(l=t,l.map((t=>{if("separation"===t.type&&"number"==typeof t.gap){let e=t.gap/s;return{...t,gap:e}}return t}))),linkLength:o,groupCompactness:a};var l}calculateAdaptiveGroupCompactness(t,r,n){let i=e.DEFAULT_GROUP_COMPACTNESS*n;if(!t||0===t.length)return i;let o=this.calculateMaxGroupDepth(t),s=t.length/Math.max(r,1),a=i;return o>2?(a*=10,typeof console<"u"&&console.log&&console.log(`WebCola: Using 10x group compactness for depth ${o} nested groups`)):o>1&&(a*=5),s>.3&&(a*=2,typeof console<"u"&&console.log&&console.log(`WebCola: Using 2x group compactness for high group density (ratio: ${s.toFixed(2)})`)),a}calculateMaxGroupDepth(t){if(!t||0===t.length)return 0;let e=1;for(let r of t)if(r.groups&&Array.isArray(r.groups)&&r.groups.length>0){let n=r.groups.filter((e=>"number"==typeof e&&e>=0&&et[e])).filter((t=>null!=t));if(n.length>0){let t=1+this.calculateMaxGroupDepth(n);e=Math.max(e,t)}}return e}initializeDOM(){let t=this.getBoundingClientRect(),e=t.width||800,r=t.height||600;this.shadowRoot.innerHTML=`\n \n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n ⚠️\n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n `}initializeD3(){Om||(Om=window.d3),this.svg=Om.select(this.shadowRoot.querySelector("#svg")),this.container=this.svg.select(".zoomable"),Om.zoom?(this.zoomBehavior=Om.zoom().scaleExtent([.01,20]).on("start",(()=>{Om.event.sourceEvent&&(this.userHasManuallyZoomed=!0)})).on("zoom",(()=>{this.container.attr("transform",Om.event.transform),this.updateZoomControlStates(),this.updateSmallNodeClasses()})),this.svg.call(this.zoomBehavior),this.initializeZoomControls()):console.warn("D3 zoom behavior not available. Ensure D3 v4+ is loaded.")}initializeZoomControls(){let t=this.shadowRoot.querySelector("#zoom-in"),e=this.shadowRoot.querySelector("#zoom-out"),r=this.shadowRoot.querySelector("#zoom-fit");t&&t.addEventListener("click",(()=>{this.userHasManuallyZoomed=!0,this.zoomIn()})),e&&e.addEventListener("click",(()=>{this.userHasManuallyZoomed=!0,this.zoomOut()})),r&&r.addEventListener("click",(()=>{this.resetViewToFitContent()}));let n=this.shadowRoot.querySelector("#routing-mode");if(n){let t=this.layoutFormat||"default";n.value=t,n.addEventListener("change",(()=>{this.handleRoutingModeChange(n.value)}))}this.updateZoomControlStates()}handleRoutingModeChange(t){this.setAttribute("layoutFormat",t),this.currentLayout&&this.colaLayout&&("grid"===t?this.gridify(10,25,10):this.routeEdges(),this.dispatchEvent(new CustomEvent("routing-mode-changed",{detail:{mode:t}})))}updateRoutingModeDropdown(){let t=this.shadowRoot?.querySelector("#routing-mode");if(t){let e=this.layoutFormat||"default";t.value=e}}initializeInputModeHandlers(){this.inputModeEnabled&&this.attachInputModeListeners()}attachInputModeListeners(){this.inputModeListenersAttached||(document.addEventListener("keydown",this.handleInputModeKeydown),document.addEventListener("keyup",this.handleInputModeKeyup),window.addEventListener("blur",this.handleInputModeBlur),this.inputModeListenersAttached=!0)}detachInputModeListeners(){this.inputModeListenersAttached&&(document.removeEventListener("keydown",this.handleInputModeKeydown),document.removeEventListener("keyup",this.handleInputModeKeyup),window.removeEventListener("blur",this.handleInputModeBlur),this.inputModeListenersAttached=!1)}activateInputMode(){this.isInputModeActive=!0,this.svg&&this.svg.classed("input-mode",!0),this.disableNodeDragging(),this.disableZoom(),this.updateEdgeEndpointMarkers(),this.dispatchEvent(new CustomEvent("input-mode-activated",{detail:{active:!0}}))}deactivateInputMode(){this.isInputModeActive=!1,this.svg&&this.svg.classed("input-mode",!1),this.cleanupEdgeCreation(),this.enableNodeDragging(),this.enableZoom(),this.updateEdgeEndpointMarkers(),this.dispatchEvent(new CustomEvent("input-mode-deactivated",{detail:{active:!1}}))}disableNodeDragging(){this.svgNodes&&this.colaLayout&&this.svgNodes.on(".drag",null)}enableNodeDragging(){if(this.svgNodes&&this.colaLayout&&this.colaLayout.drag){let t=this.colaLayout.drag();this.setupNodeDragHandlers(t),this.svgNodes.call(t)}}disableZoom(){this.svg&&this.zoomBehavior&&(this.storedTransform=Om.zoomTransform(this.svg.node()),this.svg.on(".zoom",null))}enableZoom(){this.svg&&this.zoomBehavior&&(this.svg.call(this.zoomBehavior),this.storedTransform&&this.svg.call(this.zoomBehavior.transform,this.storedTransform))}zoomIn(){this.svg&&this.zoomBehavior&&this.svg.transition().duration(200).call(this.zoomBehavior.scaleBy,1.5)}zoomOut(){this.svg&&this.zoomBehavior&&this.svg.transition().duration(200).call(this.zoomBehavior.scaleBy,1/1.5)}updateZoomControlStates(){if(!this.svg||!this.zoomBehavior)return;let t=Om.zoomTransform(this.svg.node()).k,[e,r]=this.zoomBehavior.scaleExtent(),n=this.shadowRoot.querySelector("#zoom-in"),i=this.shadowRoot.querySelector("#zoom-out");n&&(n.disabled=t>=r),i&&(i.disabled=t<=e)}cleanupEdgeCreation(){this.edgeCreationState.temporaryEdge&&this.edgeCreationState.temporaryEdge.remove(),this.edgeCreationState={isCreating:!1,sourceNode:null,temporaryEdge:null}}setupNodeDragHandlers(t){t.on("start.cnd",(t=>{this.userHasManuallyZoomed=!0;let e={x:t.x,y:t.y};this.dragStartPositions.set(t.id,e),this.dispatchEvent(new CustomEvent("node-drag-start",{detail:{id:t.id,position:e}}))})).on("end.cnd",(t=>{let e=this.dragStartPositions.get(t.id);this.dragStartPositions.delete(t.id);let r={id:t.id,previous:e,current:{x:t.x,y:t.y}};this.dispatchEvent(new CustomEvent("node-drag-end",{detail:r}))}))}startEdgeCreation(t){this.isInputModeActive&&(this.cleanupEdgeCreation(),this.edgeCreationState.isCreating=!0,this.edgeCreationState.sourceNode=t,this.edgeCreationState.temporaryEdge=this.container.append("line").attr("class","temporary-edge").attr("x1",t.x).attr("y1",t.y).attr("x2",t.x).attr("y2",t.y).attr("stroke","#007bff").attr("stroke-width",2).attr("stroke-dasharray","5,5").attr("opacity",.7),this.svg.on("mousemove.edgecreation",(()=>{if(this.edgeCreationState.isCreating&&this.edgeCreationState.temporaryEdge){let[t,e]=Om.mouse(this.container.node());this.edgeCreationState.temporaryEdge.attr("x2",t).attr("y2",e)}})))}async finishEdgeCreation(t){if(!this.isInputModeActive||!this.edgeCreationState.isCreating||!this.edgeCreationState.sourceNode)return;let e=this.edgeCreationState.sourceNode;e.id!==t.id||await this.showConfirmDialog(`Are you sure you want to create a self-loop edge on "${e.label||e.id}"?`)?(this.svg.on("mousemove.edgecreation",null),await this.showEdgeLabelInput(e,t)):this.cleanupEdgeCreation()}async showEdgeLabelInput(t,e){let r=await this.showPromptDialog(`Enter label for edge from "${t.label||t.id}" to "${e.label||e.id}":`,"");null!==r&&await this.createNewEdge(t,e,r||""),this.cleanupEdgeCreation()}async createNewEdge(t,e,r){if(!this.currentLayout)return;let n=this.currentLayout.nodes.findIndex((e=>e.id===t.id)),i=this.currentLayout.nodes.findIndex((t=>t.id===e.id));if(-1===n||-1===i)return void console.error("Could not find node indices for edge creation");let o={id:`edge_${t.id}_${e.id}_${Date.now()}`,source:n,target:i,label:r,relName:r,color:"#333",isUserCreated:!0};this.currentLayout.links.push(o),await this.updateExternalStateForNewEdge(t,e,r),this.dispatchEvent(new CustomEvent("edge-created",{detail:{edge:o,sourceNode:t,targetNode:e}})),this.rerenderGraph()}async updateExternalStateForNewEdge(t,e,r){if(r.trim())try{let n={atoms:[t.id,e.id],types:[t.type||"untyped",e.type||"untyped"]};console.log(`Dispatching edge creation request: ${r}(${t.id}, ${e.id})`);let i=new CustomEvent("edge-creation-requested",{detail:{relationId:r,sourceNodeId:t.id,targetNodeId:e.id,tuple:n},bubbles:!0});this.dispatchEvent(i)}catch(t){console.error("Failed to update external state for new edge:",t)}}rerenderGraph(){!this.currentLayout||!this.colaLayout||(this.colaLayout.links(this.currentLayout.links),this.container.selectAll(".link-group").remove(),this.renderLinks(this.currentLayout.links,this.colaLayout),this.colaLayout.start())}async editEdgeLabel(t){if(!this.isInputModeActive)return;let e=t.label||t.relName||"",r=await this.showEdgeEditDialog("Edit edge label:",e);if("DELETE"!==r){if(null!==r&&r!==e){let n=r,i=this.getNodeFromEdge(t,"source"),o=this.getNodeFromEdge(t,"target");await this.updateExternalStateForEdgeModification(i,o,e,n),t.label=n,t.relName=n,this.dispatchEvent(new CustomEvent("edge-modified",{detail:{edge:t,oldLabel:e,newLabel:n}})),this.rerenderGraph()}}else await this.deleteEdge(t)}getNodeFromEdge(t,e){if(!this.currentLayout)return null;let r="number"==typeof t[e]?t[e]:t[e].index;return this.currentLayout.nodes[r]||null}async updateExternalStateForEdgeModification(t,e,r,n){if(t&&e)try{let i={atoms:[t.id,e.id],types:[t.type||"untyped",e.type||"untyped"]};console.log(`Dispatching edge modification request: ${r} -> ${n}`);let o=new CustomEvent("edge-modification-requested",{detail:{oldRelationId:r,newRelationId:n,sourceNodeId:t.id,targetNodeId:e.id,tuple:i},bubbles:!0});this.dispatchEvent(o)}catch(t){console.error("Failed to update external state for edge modification:",t)}}async renderLayout(r,n){if(!Dn(r))throw new Error("Invalid instance layout provided. Expected an InstanceLayout instance.");let i=n?.priorState,o=i&&i.positions.length>0;if(o||(this.isInitialRender=!0,this.userHasManuallyZoomed=!1),this.svg&&this.zoomBehavior&&Om)try{if(o){let t=Om.zoomIdentity.translate(i.transform.x,i.transform.y).scale(i.transform.k);this.svg.call(this.zoomBehavior.transform,t),console.log(`WebCola: Restored prior state - ${i.positions.length} positions, zoom ${i.transform.k.toFixed(2)}x`)}else{let t=Om.zoomIdentity;this.svg.call(this.zoomBehavior.transform,t)}}catch(t){console.warn("Failed to set zoom transform:",t)}try{if(!Om)throw new Error("D3 library not available. Please ensure D3 v4 is loaded from CDN.");if(!Sm){if(!window.cola)throw new Error("WebCola library not available. Please ensure vendor/cola.js is loaded.");Sm=window.cola}if((!this.container||!this.svg)&&this.initializeD3(),!this.container)throw new Error("Failed to initialize D3 container. SVG elements may not be available.");this.showLoading(),this.updateLoadingProgress("Translating layout...");let s=this.shadowRoot.querySelector("#svg-container").getBoundingClientRect(),a=s.width||800,l=s.height||600,u=await(new t.WebColaTranslator).translate(r,a,l,n);this.updateLoadingProgress(`Computing layout for ${u.nodes.length} nodes...`);let c=u.nodes.length,h=e.INITIAL_UNCONSTRAINED_ITERATIONS,d=e.INITIAL_USER_CONSTRAINT_ITERATIONS,p=e.INITIAL_ALL_CONSTRAINTS_ITERATIONS;o&&(h=0,d=Math.min(10,d),p=Math.min(20,p),console.log(`WebCola: Using minimal iterations to preserve ${i.positions.length} prior positions`)),c>100?(h=Math.max(o?0:5,Math.floor(.5*h)),d=Math.max(25,Math.floor(.5*d)),p=Math.max(100,Math.floor(.5*p))):c>50&&(h=Math.max(o?0:8,Math.floor(.8*h)),d=Math.max(40,Math.floor(.8*d)),p=Math.max(150,Math.floor(.75*p)));let{scaledConstraints:f,linkLength:g,groupCompactness:m}=this.getScaledDetails(u.constraints,5,u.nodes,u.groups,u.links);this.updateLoadingProgress("Applying constraints and initializing...");let y=o?.1:.001,_=Sm.d3adaptor(Om).linkDistance(g).convergenceThreshold(y).avoidOverlaps(!0).handleDisconnected(!0).nodes(u.nodes).links(u.links).constraints(f).groups(u.groups).groupCompactness(m).size([u.FIG_WIDTH,u.FIG_HEIGHT]);this.currentLayout=u,this.colaLayout=_,this.container.selectAll("*").remove(),this.renderGroups(u.groups,_),this.renderLinks(u.links,_),this.renderNodes(u.nodes,_);let v=0,x=h+d+p;_.on("tick",(()=>{if(v++,v%20==0){let t=Math.min(95,Math.round(v/x*100));this.updateLoadingProgress(`Computing layout... ${t}%`)}"default"!==this.layoutFormat&&this.layoutFormat&&null!==this.layoutFormat?"grid"===this.layoutFormat?this.gridUpdatePositions():console.warn(`Unknown layout format: ${this.layoutFormat}. Skipping position updates.`):this.updatePositions()})).on("end",(()=>{this.updateLoadingProgress("Finalizing..."),"default"!==this.layoutFormat&&this.layoutFormat?"grid"===this.layoutFormat?this.gridify(10,25,10):console.warn(`Unknown layout format: ${this.layoutFormat}. Skipping edge routing.`):this.routeEdges(),this.isUnsatCore&&this.showErrorIcon(),this.dispatchRelationsAvailableEvent(),this.dispatchEvent(new CustomEvent("layout-complete",{detail:{nodePositions:this.getNodePositions()}})),this.updateRoutingModeDropdown(),this.hideLoading()}));try{_.start(h,d,p,e.GRID_SNAP_ITERATIONS)}catch(t){console.warn("WebCola layout start encountered an error, trying alternative approach:",t);try{_.start()}catch(t){throw console.error("Both WebCola start methods failed:",t),new Error(`WebCola layout failed to start: ${t.message}`)}}}catch(t){console.error("Error rendering layout:",t),this.showError(`Layout rendering failed: ${t.message}`)}}clear(){if(this.colaLayout)try{this.colaLayout.stop?.()}catch{}this.container&&this.container.selectAll("*").remove(),this.currentLayout=null,this.colaLayout=null,this.svgNodes=null,this.svgLinks=null,this.svgGroups=null,this.edgeRoutingCache.edgesBetweenNodes.clear(),this.edgeRoutingCache.alignmentEdges.clear(),this.dragStartPositions.clear()}getNodePositions(){return this.currentLayout?.nodes?this.currentLayout.nodes.map((t=>({id:t.id,x:t.x,y:t.y}))):[]}getCurrentTransform(){if(this.svg&&this.svg.node())try{let t=Om.zoomTransform(this.svg.node());return{k:t.k,x:t.x,y:t.y}}catch{return{k:1,x:0,y:0}}return{k:1,x:0,y:0}}getLayoutState(){return{positions:this.getNodePositions(),transform:this.getCurrentTransform()}}addToolbarControl(t){let e=this.shadowRoot?.querySelector("#graph-toolbar");e&&e.appendChild(t)}getToolbar(){return this.shadowRoot?.querySelector("#graph-toolbar")||null}renderGroups(t,e){this.currentLayout.nodes&&0!==this.currentLayout.nodes.length?this.svgGroups=this.setupGroups(t,this.currentLayout.nodes,e):console.warn("Cannot render groups: nodes not available")}setupLinks(t,e){let r=this.container.selectAll(".link-group").data(t).enter().append("g").attr("class","link-group");return this.setupLinkPaths(r),this.setupLinkLabels(r),this.setupEdgeEndpointMarkers(r),r}setupLinkPaths(t){t.append("path").attr("class",(t=>this.isAlignmentEdge(t)?"alignmentLink":this.isInferredEdge(t)?"inferredLink":"link")).attr("data-link-id",(t=>t.id||"")).attr("stroke",(t=>t.color)).attr("fill","none").style("stroke-width",(t=>null!=t.weight?`${t.weight}px`:null)).attr("stroke-dasharray",(t=>this.getEdgeDasharray(t.style))).attr("marker-end",(t=>this.isAlignmentEdge(t)?"none":"url(#end-arrow)")).attr("marker-start",(t=>this.isAlignmentEdge(t)||!t.bidirectional?"none":"url(#start-arrow)")).on("click.inputmode",(t=>{this.isInputModeActive&&!this.isAlignmentEdge(t)&&(Om.event.stopPropagation(),this.editEdgeLabel(t).catch((t=>{console.error("Error editing edge label:",t)})))})).style("cursor",(()=>this.isInputModeActive?"pointer":"default"))}getEdgeDasharray(t){if(!t)return null;switch(t.toLowerCase()){case"dotted":return"1,4";case"dashed":return"6,4";default:return null}}setupLinkLabels(t){t.filter((t=>!this.isAlignmentEdge(t)&&(this.isInferredEdge(t)||!1!==t.showLabel))).append("text").attr("class","linklabel").attr("text-anchor","middle").attr("dominant-baseline","middle").attr("font-family","system-ui").attr("pointer-events","none").text((t=>t.label||t.relName||""))}setupEdgeEndpointMarkers(t){t.filter((t=>!this.isAlignmentEdge(t))).append("circle").attr("class","edge-endpoint-marker target-marker").attr("r",8).attr("fill","#007bff").attr("stroke","white").attr("stroke-width",2).attr("opacity",0).attr("cursor","move").style("pointer-events","none").call(Om.drag().on("start",(t=>this.startEdgeEndpointDrag(t,"target"))).on("drag",(t=>this.dragEdgeEndpoint(t,"target"))).on("end",(t=>this.endEdgeEndpointDrag(t,"target")))),t.filter((t=>!this.isAlignmentEdge(t))).append("circle").attr("class","edge-endpoint-marker source-marker").attr("r",8).attr("fill","#28a745").attr("stroke","white").attr("stroke-width",2).attr("opacity",0).attr("cursor","move").style("pointer-events","none").call(Om.drag().on("start",(t=>this.startEdgeEndpointDrag(t,"source"))).on("drag",(t=>this.dragEdgeEndpoint(t,"source"))).on("end",(t=>this.endEdgeEndpointDrag(t,"source"))))}startEdgeEndpointDrag(t,e){Om.event.sourceEvent.stopPropagation(),this.edgeDragState.isDragging=!0,this.edgeDragState.edge=t,this.edgeDragState.endpoint=e,console.log(`🔵 Started dragging ${e} endpoint of edge:`,t.id)}dragEdgeEndpoint(t,e){if(!this.edgeDragState.isDragging)return;let[r,n]=Om.mouse(this.container.node()),i="target"===e?".target-marker":".source-marker";this.container.selectAll(".link-group").filter((e=>e.id===t.id)).select(i).attr("cx",r).attr("cy",n)}async endEdgeEndpointDrag(t,e){if(!this.edgeDragState.isDragging)return;let[r,n]=Om.mouse(this.container.node()),i=this.findNodeAtPosition(r,n);i?(console.log(`🔗 Reconnecting ${e} to node:`,i.id),await this.reconnectEdge(t,e,i)):(console.log("🗑️ No node found - deleting edge:",t.id),await this.deleteEdge(t)),this.edgeDragState={isDragging:!1,edge:null,endpoint:null,dragMarker:null},this.rerenderGraph()}findNodeAtPosition(t,e){if(!this.currentLayout?.nodes)return null;for(let r of this.currentLayout.nodes){let n=(r.width||0)/2,i=(r.height||0)/2;if(t>=r.x-n&&t<=r.x+n&&e>=r.y-i&&e<=r.y+i)return r}return null}async reconnectEdge(t,e,r){let n,i,o=this.getNodeFromEdge(t,"source"),s=this.getNodeFromEdge(t,"target");if(!o||!s)return void console.error("Could not find source or target node");if("source"===e?(n=r,i=s):(n=o,i=r),n.id===o.id&&i.id===s.id)return void console.log("⏭️ Edge already connected to this node, no change needed");let a=t.label||t.relName||"";if(!a.trim())return void console.warn("Edge has no relation name, cannot reconnect");let l={atoms:[o.id,s.id],types:[o.type||"untyped",s.type||"untyped"]},u={atoms:[n.id,i.id],types:[n.type||"untyped",i.type||"untyped"]};console.log(`🔄 Reconnecting edge from ${o.id}->${s.id} to ${n.id}->${i.id}`);let c=new CustomEvent("edge-reconnection-requested",{detail:{relationId:a,oldTuple:l,newTuple:u,oldSourceNodeId:o.id,oldTargetNodeId:s.id,newSourceNodeId:n.id,newTargetNodeId:i.id},bubbles:!0});this.dispatchEvent(c);let h=this.currentLayout.nodes.findIndex((t=>t.id===n.id)),d=this.currentLayout.nodes.findIndex((t=>t.id===i.id));-1!==h&&-1!==d&&(t.source=h,t.target=d)}async deleteEdge(t){let e=this.getNodeFromEdge(t,"source"),r=this.getNodeFromEdge(t,"target");if(!e||!r)return void console.error("Could not find source or target node for edge deletion");let n=t.label||t.relName||"";if(!n.trim())return console.warn("Edge has no relation name, cannot delete from data instance"),void this.removeEdgeFromLayout(t);let i={atoms:[e.id,r.id],types:[e.type||"untyped",r.type||"untyped"]};console.log(`🗑️ Deleting edge: ${n}(${e.id}, ${r.id})`);let o=new CustomEvent("edge-modification-requested",{detail:{oldRelationId:n,newRelationId:"",sourceNodeId:e.id,targetNodeId:r.id,tuple:i},bubbles:!0});this.dispatchEvent(o),this.removeEdgeFromLayout(t)}removeEdgeFromLayout(t){if(!this.currentLayout?.links)return;let e=this.currentLayout.links.findIndex((e=>e.id===t.id));-1!==e&&(this.currentLayout.links.splice(e,1),console.log(`✅ Edge removed from layout: ${t.id}`))}setupGroups(t,e,r){let n=this.setupGroupRectangles(t,e,r);return this.svgGroupLabels=this.setupGroupLabels(t,r),n}setupGroupRectangles(t,r,n){return this.container.selectAll(".group").data(t).enter().append("rect").attr("class",(t=>this.isDisconnectedGroup(t)?"disconnectedNode":this.isErrorGroup(t)?"error-group":"group")).attr("rx",e.GROUP_BORDER_RADIUS).attr("ry",e.GROUP_BORDER_RADIUS).style("fill",(t=>this.isDisconnectedGroup(t)?"transparent":r[t.keyNode]?.color||"#cccccc")).attr("fill-opacity",e.GROUP_FILL_OPACITY).attr("stroke",(t=>this.isDisconnectedGroup(t)?"none":r[t.keyNode]?.color||"#999999")).attr("stroke-width",1).call(n.drag)}setupGroupLabels(t,r){return this.container.selectAll(".groupLabel").data(t).enter().append("text").attr("class","groupLabel").attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("font-family","system-ui").attr("font-size","12px").attr("font-weight","bold").attr("fill","#333").attr("pointer-events","none").text((t=>t.showLabel?(t.padding&&(t.padding=Math.max(t.padding,e.GROUP_LABEL_PADDING)),t.name||""):"")).call(r.drag)}renderLinks(t,e){this.svgLinkGroups=this.setupLinks(t,e)}setupNodes(t,e){let r=e.drag();this.setupNodeDragHandlers(r);let n=this.container.selectAll(".node").data(t).enter().append("g").attr("class",(t=>{let e=this.isErrorNode(t)?"error-node":"node";return this.isErrorNode(t)&&this.isSmallNode(t)?e+" small-error-node":e})).call(r).on("mousedown.inputmode",(t=>{this.isInputModeActive&&(Om.event.stopPropagation(),this.startEdgeCreation(t))})).on("mouseup.inputmode",(t=>{this.isInputModeActive&&this.edgeCreationState.isCreating&&(Om.event.stopPropagation(),this.finishEdgeCreation(t).catch((t=>{console.error("Error finishing edge creation:",t)})))})).on("mouseover",(function(t){Om.select(this).append("title").attr("class","node-tooltip").text(`ID: ${t.id}`)})).on("mouseout",(function(){Om.select(this).select("title.node-tooltip").remove()}));return this.setupNodeRectangles(n),this.setupNodeIcons(n),this.setupMostSpecificTypeLabels(n),this.setupNodeLabels(n),n}setupNodeRectangles(t){t.append("rect").attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("x",(t=>-t.width/2)).attr("y",(t=>-t.height/2)).attr("stroke",(t=>t.color||"black")).attr("rx",e.NODE_BORDER_RADIUS).attr("ry",e.NODE_BORDER_RADIUS).attr("stroke-width",e.NODE_STROKE_WIDTH).attr("fill",(t=>{let e=this.isHiddenNode(t),r=!!t.icon,n=t.showLabels;return e||r&&!n?"transparent":"white"}))}setupNodeIcons(t){t.filter((t=>t.icon)).append("image").attr("xlink:href",(t=>t.icon)).attr("width",(t=>t.showLabels?t.width*e.SMALL_IMG_SCALE_FACTOR:t.width)).attr("height",(t=>t.showLabels?t.height*e.SMALL_IMG_SCALE_FACTOR:t.height)).attr("x",(t=>{let r=t.width;return t.showLabels?t.x+r-r*e.SMALL_IMG_SCALE_FACTOR:t.x-r/2})).attr("y",(t=>{let e=t.height;return t.y-e/2})).append("title").text((t=>t.label||t.name||t.id||"Node")).on("error",(function(t,e){Om.select(this).attr("xlink:href","img/default.png"),console.error(`Failed to load icon for node ${e.id}: ${e.icon}`)}))}setupMostSpecificTypeLabels(t){t.append("text").attr("class","mostSpecificTypeLabel").style("fill",(t=>t.color||"black")).text((t=>t.mostSpecificType||""))}getTextMeasurementContext(){return this.textMeasurementCanvas||(this.textMeasurementCanvas=document.createElement("canvas")),this.textMeasurementCanvas.getContext("2d")}measureTextWidth(t,e,r="system-ui"){let n=this.getTextMeasurementContext();return n.font=`${e}px ${r}`,n.measureText(t).width}calculateOptimalFontSize(t,r,n,i="system-ui"){let o=e.DEFAULT_FONT_SIZE;for(;o>e.MIN_FONT_SIZE;){let s=this.measureTextWidth(t,o,i),a=o*e.LINE_HEIGHT_RATIO;if(s<=r&&a<=n)break;o-=.5}for(;or||l>n)break;o=s}return Math.max(e.MIN_FONT_SIZE,Math.min(o,e.MAX_FONT_SIZE))}wrapText(t,e,r,n="system-ui"){let i=t.split(/\s+/),o=[],s="";for(let t of i){let i=s?`${s} ${t}`:t;this.measureTextWidth(i,r,n)<=e?s=i:s?(o.push(s),s=t):o.push(t)}return s&&o.push(s),o}setupNodeLabelsWithDynamicSizing(t){t.append("text").attr("class","label").attr("text-anchor","middle").attr("dominant-baseline","middle").attr("font-family","system-ui").attr("fill","black").each(((t,r,n)=>{if(this.isHiddenNode(t)||!t.showLabels)return;let i=Om.select(n[r]),o=t.width||100,s=t.height||60,a=o-2*e.TEXT_PADDING,l=s-2*e.TEXT_PADDING,u=t.label||t.name||t.id||"Node",c=t.attributes||{},h=Object.entries(c).sort((([t],[e])=>t.localeCompare(e))),d=t.labels||{},p=Object.entries(d),f=p.length>0,g=h.length>0,m=f||g,y=m?.5*l:l,_=this.calculateOptimalFontSize(u,a,y,"system-ui");i.attr("font-size",`${_}px`);let v=_*e.LINE_HEIGHT_RATIO,x=p.length+h.length,b=m?-x*v*.5:0;t._labelVerticalOffset=b,t._labelLineHeight=v,i.append("tspan").attr("x",0).attr("dy",`${b}px`).attr("class","main-label-tspan").style("font-weight","bold").style("font-size",`${_}px`).text(u);let T="";for(let[t,e]of p){let t=Array.isArray(e)?e.join(", "):String(e);t.length>T.length&&(T=t)}for(let[t,e]of h){let r=`${t}: ${e}`;r.length>T.length&&(T=r)}let E=.65*_,O=l-v,S=x>0?this.calculateOptimalFontSize(T||"SampleText",a,O/x,"system-ui"):.8*_,N=Math.max(S,E);if(f){let t="black";for(let[r,n]of p){let r=Array.isArray(n)?n.join(", "):String(n);i.append("tspan").attr("x",0).attr("dy",N*e.LINE_HEIGHT_RATIO+"px").style("font-size",`${N}px`).style("fill",t).style("font-style","italic").text(r)}}if(g)for(let t=0;t!!t.leaves&&t.leaves.some((t=>t.id===e.id))))}getNodeIndex(t){return this.currentLayout?.nodes?this.currentLayout.nodes.findIndex((e=>e.id===t.id)):-1}updatePositions(){this.svgGroups.attr("x",(t=>t.bounds.x)).attr("y",(t=>t.bounds.y)).attr("width",(t=>t.bounds.width())).attr("height",(t=>t.bounds.height())).lower(),this.svgNodes.select("rect").each((t=>{t.bounds&&(t.innerBounds=t.bounds.inflate(-1))})).attr("x",(t=>t.bounds.x)).attr("y",(t=>t.bounds.y)).attr("width",(t=>t.bounds.width())).attr("height",(t=>t.bounds.height())),this.svgNodes.select("image").attr("x",(t=>t.showLabels?t.x+t.width/2-t.width*e.SMALL_IMG_SCALE_FACTOR:t.bounds.x)).attr("y",(t=>t.showLabels?t.y-t.height/2:t.bounds.y)),this.svgNodes.select(".mostSpecificTypeLabel").attr("x",(t=>t.x-(t.width||0)/2+5)).attr("y",(t=>t.y-(t.height||0)/2+10)).raise(),this.svgNodes.select(".label").attr("x",(t=>t.x)).attr("y",(t=>t.y)).each(((t,e,r)=>{let n=t._labelVerticalOffset||0,i=t._labelLineHeight||12;Om.select(r[e]).selectAll("tspan").attr("x",t.x).attr("dy",((t,e)=>0===e?`${n}px`:`${i}px`))})).raise(),this.svgLinkGroups.select("path").attr("d",(t=>{let e=t.source,r=t.target;if(t.id?.startsWith("_g_")){let{groupOnIndex:n,addToGroupIndex:i}=this.getGroupOnAndAddToGroupIndices(t.id),o=n>=i;if(nt.keyNode===this.getNodeIndex(e)));t&&(r=t)}else if(o){let t=this.getContainingGroups(this.currentLayout?.groups||[],e).find((t=>t.keyNode===this.getNodeIndex(r)));t&&(e=t)}}let n=this.getStableEdgePath(e,r);return this.lineFunction(n)})).attr("marker-end",(t=>this.isAlignmentEdge(t)?"none":"url(#end-arrow)")).attr("marker-start",(t=>this.isAlignmentEdge(t)||!t.bidirectional?"none":"url(#start-arrow)")).raise(),this.svgLinkGroups.select(".linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?this.calculateNewPosition(e,"x"):(t.source.x+t.target.x)/2})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?this.calculateNewPosition(e,"y"):(t.source.y+t.target.y)/2})).style("font-size",(()=>{let t=this.getCurrentZoomScale(),e=t<1?12/Math.sqrt(t):12;return`${Math.min(e,16)}px`})).raise(),this.updateEdgeEndpointMarkers(),this.svgGroupLabels.attr("x",(t=>t.bounds?t.bounds.x+t.bounds.width()/2:0)).attr("y",(t=>t.bounds?t.bounds.y+5:0)).attr("text-anchor","middle").lower(),this.svgLinkGroups.selectAll("marker").raise(),this.svgLinkGroups.selectAll(".linklabel").raise(),this.svgGroups.selectAll(".error-group").raise(),this.svgNodes.selectAll(".error-node").raise()}updateEdgeEndpointMarkers(){this.svgLinkGroups&&(this.svgLinkGroups.select(".target-marker").attr("cx",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t).x}return t.target.x||0})).attr("cy",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t).y}return t.target.y||0})).attr("opacity",this.isInputModeActive?.8:0).style("pointer-events",this.isInputModeActive?"all":"none").raise(),this.svgLinkGroups.select(".source-marker").attr("cx",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?e.getPointAtLength(0).x:t.source.x||0})).attr("cy",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);return e?e.getPointAtLength(0).y:t.source.y||0})).attr("opacity",this.isInputModeActive?.8:0).style("pointer-events",this.isInputModeActive?"all":"none").raise())}gridUpdatePositions(){this.ensureNodeBounds(!0);let t=this.container.selectAll(".node"),r=this.container.selectAll(".mostSpecificTypeLabel"),n=this.container.selectAll(".label"),i=this.container.selectAll(".group"),o=this.container.selectAll(".groupLabel");t.select("rect").each((function(t){t.innerBounds=t.bounds.inflate(-1)})).attr("x",(function(t){return t.bounds.x})).attr("y",(function(t){return t.bounds.y})).attr("width",(function(t){return t.bounds.width()})).attr("height",(function(t){return t.bounds.height()})),t.select("image").attr("x",(function(t){return t.showLabels?t.x+t.width/2-t.width*e.SMALL_IMG_SCALE_FACTOR:t.bounds.x})).attr("y",(function(t){return t.showLabels?t.y-t.height/2:t.bounds.y})),r.attr("x",(function(t){return t.bounds.x+5})).attr("y",(function(t){return t.bounds.y+10})).raise(),n.attr("x",(t=>t.x)).attr("y",(t=>t.y)).each((function(t){var e=0;Om.select(this).selectAll("tspan").attr("x",t.x).attr("dy",(function(){return 1===(e+=1)?"0em":"1em"}))})).raise(),i.attr("x",(function(t){return t.bounds.x})).attr("y",(function(t){return t.bounds.y})).attr("width",(function(t){return t.bounds.width()})).attr("height",(function(t){return t.bounds.height()})).lower(),o.attr("x",(function(t){return t.bounds.x+t.bounds.width()/2})).attr("y",(function(t){return t.bounds.y+12})).attr("text-anchor","middle").raise();let s=this.container.selectAll(".link-group");s.select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0,o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}})),s.select("text.linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t/2).x}return((t.source?.x??t.source?.bounds?.cx()??0)+(t.target?.x??t.target?.bounds?.cx()??0))/2})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(e){let t=e.getTotalLength();return e.getPointAtLength(t/2).y}return((t.source?.y??t.source?.bounds?.cy()??0)+(t.target?.y??t.target?.bounds?.cy()??0))/2})).raise()}routeEdges(){try{this.ensureNodeBounds(),"function"==typeof this.colaLayout?.prepareEdgeRouting&&this.colaLayout.prepareEdgeRouting(e.VIEWBOX_PADDING/e.EDGE_ROUTE_MARGIN_DIVISOR),this.buildEdgeRoutingCaches(),this.routeLinkPaths(),this.updateLinkLabelsAfterRouting(),this.fitViewportToContent()}catch(t){console.error("Error in edge routing:",t),this.showError(`Edge routing failed: ${t.message}`)}}ensureNodeBounds(t=!1){if(this.currentLayout?.nodes&&Sm?.Rectangle)for(let e of this.currentLayout.nodes){if(!t&&e.bounds&&"function"==typeof e.bounds.rayIntersection){let t=e.bounds.cx(),r=e.bounds.cy(),n=1;if(Math.abs(t-(e.x||0)){t.id?.startsWith("_alignment_")&&this.edgeRoutingCache.alignmentEdges.add(t.id)})),this.currentLayout.links.forEach((t=>{if(this.isAlignmentEdge(t))return;let e=t.source.id,r=t.target.id,n=this.getNodePairKey(e,r);this.edgeRoutingCache.edgesBetweenNodes.has(n)||this.edgeRoutingCache.edgesBetweenNodes.set(n,[]),this.edgeRoutingCache.edgesBetweenNodes.get(n).push(t)})))}getNodePairKey(t,e){return t{let e=t.bounds||t.innerBounds||this.createFallbackBounds(t);t.routerNode={name:t.name,bounds:e}})),e.forEach((e=>{e.bounds||console.warn("Grid routing group missing bounds; routing may be degraded.",e),e.routerNode={bounds:e.bounds?.inflate(-n)??e.bounds,children:(typeof e.groups<"u"?e.groups.map((e=>t.length+e.id)):[]).concat(typeof e.leaves<"u"?e.leaves.map((t=>t.index)):[])}}));let i=t.concat(e).map(((t,e)=>t.routerNode?(t.routerNode.id=e,t.routerNode):null)).filter(Boolean);return new Sm.GridRouter(i,{getChildren:t=>t.children,getBounds:t=>t.bounds},r-n)}gridify(t,e,r){if(this.isGridifyingInProgress)console.warn("[gridify] Already in progress, skipping re-entrant call");else{this.isGridifyingInProgress=!0;try{this.gridifyInternal(t,e,r)}catch(t){console.log("Error routing edges in GridRouter"),console.error(t);try{this.fallbackGridRouting(this.currentLayout?.links??[])}catch(t){console.error("Fallback grid routing also failed:",t)}let e=document.getElementById("runtime_messages");if(e){let t=document.createElement("div");t.className="alert alert-danger alert-dismissible fade show",t.setAttribute("role","alert"),t.innerHTML="Runtime (WebCola) error when gridifying edges. You may have to click and drag these nodes slightly to un-stick layout.",e.querySelectorAll(".alert").forEach((e=>{e.innerHTML===t.innerHTML&&e.remove()})),e.appendChild(t)}}finally{this.isGridifyingInProgress=!1}}}gridifyInternal(t,e,r){let n=this.currentLayout?.nodes??[],i=this.currentLayout?.groups??[],o=this.currentLayout?.links??[];if(0===n.length)return void console.warn("No nodes available for GridRouter; skipping gridify.");if(0===o.length)return void console.warn("No edges to route in GridRouter");console.log("[gridify] Node positions BEFORE ensureNodeBounds:"),n.slice(0,3).forEach((t=>{console.log(` ${t.id}: x=${t.x?.toFixed(2)}, y=${t.y?.toFixed(2)}, bounds.cx=${t.bounds?.cx?.()?.toFixed(2)}, bounds.x=${t.bounds?.x?.toFixed(2)}`)})),this.ensureNodeBounds(!0);let s=n.filter((t=>!Number.isFinite(t.x)||!Number.isFinite(t.y)));if(s.length>0)return console.warn("[gridify] Found nodes with invalid positions, falling back to default routing:",s.map((t=>({id:t.id,x:t.x,y:t.y})))),void this.fallbackGridRouting(o);console.log("[gridify] Node positions AFTER ensureNodeBounds:"),n.slice(0,3).forEach((t=>{console.log(` ${t.id}: x=${t.x?.toFixed(2)}, y=${t.y?.toFixed(2)}, bounds.cx=${t.bounds?.cx?.()?.toFixed(2)}, bounds.x=${t.bounds?.x?.toFixed(2)}`)}));let a=this.route(n,i,e,r),l=[],u=o.filter((t=>t?.source?.routerNode&&t?.target?.routerNode&&!(t?.source?.id===t?.target?.id))),c=o.filter((t=>t?.source?.id===t?.target?.id));console.log("[gridify] Total edges:",o.length,"Routable:",u.length,"Self-loops:",c.length),u.length+c.length!==o.length&&o.filter((t=>!(t?.source?.routerNode&&t?.target?.routerNode||t?.source?.id===t?.target?.id))).forEach((t=>{console.warn("[gridify] Unroutable edge:",t.id,"source routerNode:",!!t?.source?.routerNode,"target routerNode:",!!t?.target?.routerNode,"source:",t?.source?.id,"x:",t?.source?.x,"y:",t?.source?.y,"target:",t?.target?.id,"x:",t?.target?.x,"y:",t?.target?.y)})),l=a.routeEdges(u,t,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}));let h=new Map;u.forEach(((t,e)=>{let r=l[e];t?.id&&r&&h.set(t.id,this.adjustGridRouteForEdge(t,r))})),console.log("[gridify] Routes generated:",h.size,"out of",u.length),this.container.selectAll(".link-group").data(o,(t=>t.id??t)).select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=h.get(t.id);if(!e){let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0;console.log("[gridify] Fallback path for edge:",t.id,"from",t.source?.id,"(",e,",",r,")","to",t.target?.id,"(",n,",",i,")");let o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}}let r=Sm.GridRouter.getRoutePath(e,5,3,7);return this.adjustGridRouteForArrowPositioning(t,r.routepath,e)||r.routepath})),this.gridUpdateLinkLabels(o,h),this.fitViewportToContent(),this.dispatchEvent(new Event("relationsAvailable"))}fallbackGridRouting(t){this.container.selectAll(".link-group").data(t,(t=>t.id??t)).select("path").attr("d",(t=>{if(t.source?.id===t.target?.id){let e=this.createSelfLoopRoute(t);return this.lineFunction(e)}let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0,n=t.target?.x??t.target?.bounds?.cx()??0,i=t.target?.y??t.target?.bounds?.cy()??0,o=n-e,s=i-r;if(Math.abs(o)>Math.abs(s)){let t=e+o/2;return this.gridLineFunction([{x:e,y:r},{x:t,y:r},{x:t,y:i},{x:n,y:i}])}{let t=r+s/2;return this.gridLineFunction([{x:e,y:r},{x:e,y:t},{x:n,y:t},{x:n,y:i}])}})),this.fitViewportToContent()}gridUpdateLinkLabels(t,e){this.container.selectAll(".link-group").filter((t=>!this.isAlignmentEdge(t))).select("text.linklabel").attr("x",(t=>{let r=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(r)try{let t=r.getTotalLength();return r.getPointAtLength(t/2).x}catch{}return this.getGridRouteMidpoint(t,e)?.x??t.source?.x??t.source?.bounds?.cx()??0})).attr("y",(t=>{let r=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(r)try{let t=r.getTotalLength();return r.getPointAtLength(t/2).y}catch{}return this.getGridRouteMidpoint(t,e)?.y??t.source?.y??t.source?.bounds?.cy()??0})).attr("text-anchor","middle").attr("dominant-baseline","middle")}getGridRouteMidpoint(t,e){let r=e.get(t.id);if(!r){let e=t.source?.x??t.source?.bounds?.cx()??0,r=t.source?.y??t.source?.bounds?.cy()??0;return{x:(e+(t.target?.x??t.target?.bounds?.cx()??0))/2,y:(r+(t.target?.y??t.target?.bounds?.cy()??0))/2}}let n=[];if(r.forEach((t=>{0===n.length&&t.length>0&&n.push(t[0]),t.length>1&&n.push(t[1])})),n.length<2)return null;let i=0,o=[];for(let t=0;t=s){let r=s-a,i=e>0?r/e:0;return{x:n[t].x+i*(n[t+1].x-n[t].x),y:n[t].y+i*(n[t+1].y-n[t].y)}}a+=e}let l=Math.floor(n.length/2);return n[l]}adjustGridRouteForEdge(t,e){if(!t?.id?.startsWith("_g_"))return e;let r=this.gridRouteToPoints(e);if(r.length<2)return e;let n=this.routeGroupEdge(t,r);return this.pointsToGridRoute(n)}adjustGridRouteForArrowPositioning(t,e,r){if(!e||!t.source||!t.target)return null;try{let e=this.gridRouteToPoints(r);if(e.length<2)return null;let n=t.source,i=t.target,o=n.bounds||{x:n.x-(n.width||0)/2,y:n.y-(n.height||0)/2,width:()=>n.width||0,height:()=>n.height||0},s=i.bounds||{x:i.x-(i.width||0)/2,y:i.y-(i.height||0)/2,width:()=>i.width||0,height:()=>i.height||0},a=this.getTouchDirection(o,s,5);if("none"!==a){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computePerpendicularRoute(o,s,a),n=[t,...r,e];return this.gridLineFunction(n)}let l=e.length>1?e[1]:e[0],u=this.getRectangleIntersection(o.x+o.width()/2,o.y+o.height()/2,l.x,l.y,o);u&&(e[0]=u);let c=e.length>1?e[e.length-2]:e[e.length-1],h=this.getRectangleIntersection(s.x+s.width()/2,s.y+s.height()/2,c.x,c.y,s);return h&&(e[e.length-1]=h),this.gridLineFunction(e)}catch(t){return console.warn("Error adjusting grid route for arrow positioning:",t),null}}getTouchDirection(t,e,r){let n=t.x,i=t.x+t.width(),o=t.y,s=t.y+t.height(),a=e.x,l=e.x+e.width(),u=e.y,c=e.y+e.height(),h=Math.max(0,Math.max(a-i,n-l)),d=Math.max(0,Math.max(u-s,o-c));return h<=r&&!(sl&&(l=i,a=t)}return a}normalizeNodeBounds(t){let e=t.bounds||{x:t.x-(t.width||50)/2,y:t.y-(t.height||30)/2,width:()=>t.width||50,height:()=>t.height||30};return{x:"number"==typeof e.x||void 0!==e.X?e.x:t.x-(t.width||50)/2,y:"number"==typeof e.y?e.y:t.y-(t.height||30)/2,width:()=>"function"==typeof e.width?e.width():void 0!==e.X?e.X-e.x:t.width||50,height:()=>"function"==typeof e.height?e.height():void 0!==e.Y?e.Y-e.y:t.height||30}}lineIntersectsRect(t,e,r){let n=r.x,i=r.x+r.width(),o=r.y,s=r.y+r.height(),a=Math.min(t.x,e.x),l=Math.max(t.x,e.x),u=Math.min(t.y,e.y),c=Math.max(t.y,e.y);if(li||cs)return!1;let h=t.x>=n&&t.x<=i&&t.y>=o&&t.y<=s,d=e.x>=n&&e.x<=i&&e.y>=o&&e.y<=s;if(h||d)return!0;let p=e.x-t.x,f=e.y-t.y,g=(e,r,n)=>{if(0===f)return!1;let i=(e-t.y)/f;if(i<0||i>1)return!1;let o=t.x+i*p;return o>=r&&o<=n},m=(e,r,n)=>{if(0===p)return!1;let i=(e-t.x)/p;if(i<0||i>1)return!1;let o=t.y+i*f;return o>=r&&o<=n};return g(o,n,i)||g(s,n,i)||m(n,o,s)||m(i,o,s)}findBlockingNodes(t,e,r,n){if(!this.currentLayout?.nodes)return[];let i=this.normalizeNodeBounds(t),o=this.normalizeNodeBounds(e),s={x:i.x+i.width()/2,y:i.y+i.height()/2},a={x:o.x+o.width()/2,y:o.y+o.height()/2},l=[];for(let t of this.currentLayout.nodes){if(t.id===r||t.id===n)continue;let e=this.normalizeNodeBounds(t);if(this.lineIntersectsRect(s,a,e)){let r={x:e.x+e.width()/2,y:e.y+e.height()/2},n=Math.sqrt(Math.pow(r.x-s.x,2)+Math.pow(r.y-s.y,2));l.push({node:t,bounds:e,distance:n})}}return l.sort(((t,e)=>t.distance-e.distance)),l.map((t=>({node:t.node,bounds:t.bounds})))}computeRouteAroundBlockingNodes(t,e,r){let n=Math.min(t.x,e.x),i=Math.max(t.x+t.width(),e.x+e.width()),o=Math.min(t.y,e.y),s=Math.max(t.y+t.height(),e.y+e.height());for(let{bounds:t}of r)n=Math.min(n,t.x),i=Math.max(i,t.x+t.width()),o=Math.min(o,t.y),s=Math.max(s,t.y+t.height());let a=t.x+t.width()/2,l=t.y+t.height()/2,u=e.x+e.width()/2,c=e.y+e.height()/2,h=Math.abs(u-a);if(Math.abs(c-l)>h){if(a<=u){let r=n-15;return{sourcePoint:{x:t.x,y:l},targetPoint:{x:e.x,y:c},middlePoints:[{x:r,y:l},{x:r,y:c}]}}{let r=i+15;return{sourcePoint:{x:t.x+t.width(),y:l},targetPoint:{x:e.x+e.width(),y:c},middlePoints:[{x:r,y:l},{x:r,y:c}]}}}if(l<=c){let r=o-15;return{sourcePoint:{x:a,y:t.y},targetPoint:{x:u,y:e.y},middlePoints:[{x:a,y:r},{x:u,y:r}]}}{let r=s+15;return{sourcePoint:{x:a,y:t.y+t.height()},targetPoint:{x:u,y:e.y+e.height()},middlePoints:[{x:a,y:r},{x:u,y:r}]}}}getNearTouchPerpendicularRoute(t){if(!t.source||!t.target||t.source.id===t.target.id)return null;let e=t.source,r=t.target,n=this.normalizeNodeBounds(e),i=this.normalizeNodeBounds(r),o=this.getTouchDirection(n,i,5);if("none"!==o){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computePerpendicularRoute(n,i,o);return[t,...r,e]}let s=this.findBlockingNodes(e,r,e.id,r.id);if(s.length>0){let{sourcePoint:t,targetPoint:e,middlePoints:r}=this.computeRouteAroundBlockingNodes(n,i,s);return[t,...r,e]}return null}gridRouteToPoints(t){let e=[];return t.forEach(((t,r)=>{0===r&&e.push({x:t[0].x,y:t[0].y}),e.push({x:t[1].x,y:t[1].y})})),e}pointsToGridRoute(t){let e=[];for(let r=0;rd)return null;let p=h>0?h:d;return{x:t+p*u,y:e+p*c}}routeLinkPaths(){this.container.selectAll(".link-group path").attr("d",(t=>{try{return this.routeSingleEdge(t)}catch(e){return console.error(`Error routing edge ${t.id} from ${t.source.id} to ${t.target.id}:`,e),this.showRuntimeAlert(t.source.id,t.target.id),this.lineFunction([{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}])}}))}routeSingleEdge(t){if(this.isAlignmentEdge(t))return this.lineFunction([{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}]);let e,r=[{x:t.source.x||0,y:t.source.y||0},{x:t.target.x||0,y:t.target.y||0}];if("function"==typeof this.colaLayout?.routeEdge)try{if(e=this.colaLayout.routeEdge(t),!e||!Array.isArray(e)||e.length<2||!e[0]||!e[1]||void 0===e[0].x||void 0===e[0].y)throw new Error(`WebCola failed to route edge ${t.id} from ${t.source.id} to ${t.target.id}`)}catch(e){return console.log("Error routing edge",t.id,`from ${t.source.id} to ${t.target.id}`),console.error(e),this.lineFunction(r)}else e=r;e=t.source.id===t.target.id?this.createSelfLoopRoute(t):t.id?.startsWith("_g_")?this.routeGroupEdge(t,e):this.handleMultipleEdgeRouting(t,e);let n=this.getNearTouchPerpendicularRoute(t);return n?this.lineFunction(n):this.lineFunction(e)}createSelfLoopRoute(t){let r=t.source,n=r.bounds;if(!n)return[{x:r.x,y:r.y},{x:r.x+20,y:r.y-20},{x:r.x,y:r.y}];let i=n.X-n.x,o=n.Y-n.y,s={x:n.x+i/2,y:n.y},a={x:n.X,y:n.y+o/2},l=1+(t.selfLoopIndex||0)*e.SELF_LOOP_CURVATURE_SCALE;return[s,{x:n.X+i/2*l,y:n.y-o/2*l},a]}routeGroupEdge(t,e){let{groupOnIndex:r,addToGroupIndex:n}=this.getGroupOnAndAddToGroupIndices(t.id),i=r>=n;if(rt.keyNode===r));if(i){let t=this.closestPointOnRect(i.bounds,e[0]);e[e.length-1]=t}else console.log("Target group not found",n,this.getNodeIndex(t.target),t.id)}else if(i){let r=this.getNodeIndex(t.source),n=this.getNodeIndex(t.target),i=this.getContainingGroups(this.currentLayout?.groups||[],t.source),o=i.find((t=>t.keyNode===n));if(o){let t=o.bounds?.inflate(-1),r=this.closestPointOnRect(t||o.bounds,e[e.length-1]);e[0]=r}else console.log("Source group not found",i,r,n,t.id)}else console.log("This is a group edge, but neither source nor target is a group.",t);return e.length>2&&e.splice(1,e.length-2),e}handleMultipleEdgeRouting(t,e){let r=this.getAllEdgesBetweenNodes(t.source.id,t.target.id);if(r.length<=1)return e;if(2===e.length){let t={x:(e[0].x+e[1].x)/2,y:(e[0].y+e[1].y)/2};e.splice(1,0,t)}let n=e[1].x-e[0].x,i=e[1].y-e[0].y,o=Math.atan2(i,n),s=this.getRouteLength(e),a=r.findIndex((e=>e.id===t.id));if(-1!==a){e=this.applyEdgeOffsetWithIndex(t,e,r,o,a,s);let n=this.calculateCurvatureWithIndex(r,t.id,a),i=this.clampCurvature(n);e=this.applyCurvatureToRoute(e,i,o,s)}return e}getAllEdgesBetweenNodes(t,e){if(!this.currentLayout?.links)return[];let r=this.getNodePairKey(t,e);return this.edgeRoutingCache.edgesBetweenNodes.has(r)?this.edgeRoutingCache.edgesBetweenNodes.get(r):this.currentLayout.links.filter((r=>!this.isAlignmentEdge(r)&&(r.source.id===t&&r.target.id===e||r.source.id===e&&r.target.id===t)))}calculateCurvature(t,r,n,i){if(i.startsWith("_alignment_"))return 0;let o=t.length,s=t.findIndex((t=>t.id===i));return o<=1?0:(s%2==0?1:-1)*(Math.floor(s/2)+1)*e.CURVATURE_BASE_MULTIPLIER*o}calculateCurvatureWithIndex(t,r,n){let i=t.length;return i<=1?0:(n%2==0?1:-1)*(Math.floor(n/2)+1)*e.CURVATURE_BASE_MULTIPLIER*i}applyEdgeOffset(t,e,r,n){let i=r.findIndex((e=>e.id===t.id)),o=this.getRouteLength(e);return this.applyEdgeOffsetWithIndex(t,e,r,n,i,o)}applyEdgeOffsetWithIndex(t,r,n,i,o,s){let a=(o%2==0?1:-1)*(Math.floor(o/2)+1)*e.MIN_EDGE_DISTANCE,l=this.clampOffset(a,s),u=this.getDominantDirection(i);return"right"===u||"left"===u?(r[0].y+=l,r[r.length-1].y+=l):("up"===u||"down"===u)&&(r[0].x+=l,r[r.length-1].x+=l),t.source.innerBounds&&(r[0]=this.adjustPointToRectanglePerimeter(r[0],t.source.innerBounds)),t.target.innerBounds&&(r[r.length-1]=this.adjustPointToRectanglePerimeter(r[r.length-1],t.target.innerBounds)),r}clampOffset(t,r){let n=Math.max(e.MIN_EDGE_DISTANCE,r*e.MAX_EDGE_OFFSET_RATIO);return Math.max(-n,Math.min(n,t))}getRouteLength(t){return t.length<2?0:t.slice(1).reduce(((e,r,n)=>{let i=t[n],o=r.x-i.x,s=r.y-i.y;return e+Math.sqrt(o*o+s*s)}),0)}clampCurvature(t){return Math.max(-e.MAX_EDGE_CURVATURE_RATIO,Math.min(e.MAX_EDGE_CURVATURE_RATIO,t))}applyCurvatureToRoute(t,e,r,n){return 0===e||t.forEach(((i,o)=>{if(o>0&&o=-Math.PI/4&&t<=Math.PI/4?"right":t>Math.PI/4&&t<3*Math.PI/4?"up":t>=3*Math.PI/4||t<=-3*Math.PI/4?"left":t>-3*Math.PI/4&&t<-Math.PI/4?"down":null}closestPointOnRect(t,e){if(!t)return e;let{x:r,y:n,X:i,Y:o}=t;return{x:Math.max(r,Math.min(e.x,i)),y:Math.max(n,Math.min(e.y,o))}}getStableEdgeAnchor(t,e){if(!t)return e;let r,n,i,o;if("function"==typeof t.cx)r=t.cx(),n=t.cy(),i=t.width()/2,o=t.height()/2;else{if(void 0===t.x||void 0===t.X)return e;r=(t.x+t.X)/2,n=(t.y+t.Y)/2,i=(t.X-t.x)/2,o=(t.Y-t.y)/2}let s=e.x-r,a=e.y-n;return Math.abs(s)/i>Math.abs(a)/o?s>0?{x:r+i,y:n}:{x:r-i,y:n}:a>0?{x:r,y:n+o}:{x:r,y:n-o}}getStableEdgePath(t,e){let r,n;return r=e.bounds&&"function"==typeof e.bounds.cx?{x:e.bounds.cx(),y:e.bounds.cy()}:e.bounds?{x:(e.bounds.x+e.bounds.X)/2,y:(e.bounds.y+e.bounds.Y)/2}:{x:e.x||0,y:e.y||0},n=t.bounds&&"function"==typeof t.bounds.cx?{x:t.bounds.cx(),y:t.bounds.cy()}:t.bounds?{x:(t.bounds.x+t.bounds.X)/2,y:(t.bounds.y+t.bounds.Y)/2}:{x:t.x||0,y:t.y||0},[t.bounds||t.innerBounds?this.getStableEdgeAnchor(t.bounds||t.innerBounds,r):n,e.bounds||e.innerBounds?this.getStableEdgeAnchor(e.bounds||e.innerBounds,n):r]}adjustPointToRectanglePerimeter(t,e){return e?this.closestPointOnRect(e,t):t}updateLinkLabelsAfterRouting(){this.container.selectAll(".link-group .linklabel").attr("x",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(!e)return 0;let r=e.getTotalLength();return e.getPointAtLength(r/2).x})).attr("y",(t=>{let e=this.shadowRoot?.querySelector(`path[data-link-id="${t.id}"]`);if(!e)return 0;let r=e.getTotalLength();return e.getPointAtLength(r/2).y})).attr("text-anchor","middle").each(((t,e,r)=>{this.handleLabelOverlap(r[e])})).raise()}handleLabelOverlap(t){let e=[];this.container.selectAll(".linklabel").each((function(){this!==t&&function(t,e){function r(t){return t&&"object"==typeof t&&"getBBox"in t}let n=r(t)?t.getBBox():{x:0,y:0,width:0,height:0},i=r(e)?e.getBBox():{x:0,y:0,width:0,height:0};return!(i.x>n.x+n.width||i.x+i.widthn.y+n.height||i.y+i.height0&&this.minimizeOverlap(t,e)}minimizeOverlap(t,e){}fitViewportToContent(t=!1){let r=this.svg?.node();if(!r||!this.zoomBehavior||this.userHasManuallyZoomed&&!this.isInitialRender&&!t)return;let n=this.calculateContentBounds();if(!n)return;let i=r.clientWidth||r.parentElement?.clientWidth||800,o=r.clientHeight||r.parentElement?.clientHeight||600,s=4*e.VIEWBOX_PADDING,a=(i-2*s)/n.width,l=(o-2*s)/n.height,u=Math.min(a,l,1),[c,h]=this.zoomBehavior.scaleExtent(),d=Math.max(c,Math.min(h,u)),p=i/2-(n.x+n.width/2)*d,f=o/2-(n.y+n.height/2)*d,g=Om.zoomIdentity.translate(p,f).scale(d);this.isInitialRender?(this.svg.call(this.zoomBehavior.transform,g),this.isInitialRender=!1):this.svg.transition().duration(300).ease(Om.easeCubicOut).call(this.zoomBehavior.transform,g),this.updateZoomControlStates()}resetViewToFitContent(){this.userHasManuallyZoomed=!1,this.fitViewportToContent(!0)}calculateContentBounds(){try{if(!this.currentLayout||!this.container)return null;let t=1/0,e=1/0,r=-1/0,n=-1/0,i=this.currentLayout.nodes;i&&i.length>0&&(i.forEach(((i,o)=>{if("number"==typeof i.x&&"number"==typeof i.y){let o=i.width||0,s=i.height||0,a=i.x,l=i.x+o,u=i.y,c=i.y+s;t=Math.min(t,a),r=Math.max(r,l),e=Math.min(e,u),n=Math.max(n,c)}})),i.reduce(((t,e)=>"number"==typeof e.x&&"number"==typeof e.y&&e.y+(e.height||0)>(t?t.y+(t.height||0):-1/0)?e:t),null));let o=this.container.selectAll(".link-group");o.empty()||o.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}}));let s=this.container.selectAll(".node, .error-node");s.empty()||s.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}}));let a=this.container.selectAll("text");if(!a.empty()){let i=0;a.each((function(){try{let o=this.getBBox();if(o.width>0&&o.height>0){i++;let s=5,a=o.y-s,l=o.y+o.height+s;t=Math.min(t,o.x-s),r=Math.max(r,o.x+o.width+s),e=Math.min(e,a),n=Math.max(n,l)}}catch{}}))}let l=this.container.selectAll(".group");return l.empty()||l.each((function(){try{let i=this.getBBox();i.width>0&&i.height>0&&(t=Math.min(t,i.x),r=Math.max(r,i.x+i.width),e=Math.min(e,i.y),n=Math.max(n,i.y+i.height))}catch{}})),t===1/0||e===1/0||r===-1/0||n===-1/0?(console.warn("Could not calculate content bounds - no valid elements found"),null):{x:t,y:e,width:r-t,height:n-e}}catch(t){return console.error("Error calculating content bounds:",t),null}}dispatchRelationsAvailableEvent(){let t=this.getAllRelations(),e=new CustomEvent("relations-available",{detail:{relations:t,count:t.length,timestamp:Date.now(),graphId:this.id||"unknown"},bubbles:!0,cancelable:!0});this.dispatchEvent(e)}getAllRelations(){if(!this.currentLayout?.links)return[];let t=new Set(this.currentLayout.links.filter((t=>!this.isAlignmentEdge(t))).map((t=>t.relName)).filter(Boolean));return Array.from(t)}highlightRelation(t){return!!this.currentLayout?.links&&(this.svgLinkGroups.filter((e=>e.relName===t&&!this.isAlignmentEdge(e))).selectAll("path").classed("highlighted",!0),!0)}clearHighlightRelation(t){return!!this.currentLayout?.links&&(this.svgLinkGroups.filter((e=>e.relName===t&&!this.isAlignmentEdge(e))).selectAll("path").classed("highlighted",!1),!0)}highlightNodes(t){if(!this.currentLayout?.nodes||!this.svgNodes||!t||0===t.length)return!1;let e=new Set(t),r=!1;return this.svgNodes.each(((t,n,i)=>{e.has(t.id)&&(Om.select(i[n]).classed("highlighted",!0),r=!0)})),r}highlightNodePairs(t,e={}){if(!this.currentLayout?.nodes||!this.svgNodes||!t||0===t.length)return!1;let{showBadges:r=!1}=e,n=new Set,i=new Set;t.forEach(((t,e)=>{if(!Array.isArray(t))return void console.warn(`highlightNodePairs: Pair at index ${e} is not an array, skipping`);if(2!==t.length)return void console.warn(`highlightNodePairs: Pair at index ${e} has ${t.length} elements (expected 2), skipping`);let[r,o]=t;r&&n.add(r),o&&i.add(o)}));let o=!1;return this.svgNodes.each(((t,e,s)=>{let a=Om.select(s[e]);n.has(t.id)&&(a.classed("highlighted-first",!0),o=!0,r&&this.addHighlightBadge(a,t,"1","#007aff")),i.has(t.id)&&(a.classed("highlighted-second",!0),o=!0,r&&(n.has(t.id)?this.addHighlightBadge(a,t,"1,2","#9B59B6"):this.addHighlightBadge(a,t,"2","#ff3b30")))})),o}clearNodeHighlights(){return!!this.svgNodes&&(this.svgNodes.classed("highlighted",!1).classed("highlighted-first",!1).classed("highlighted-second",!1).selectAll(".highlight-badge, .highlight-badge-bg").remove(),!0)}addHighlightBadge(t,e,r,n){t.selectAll(".highlight-badge, .highlight-badge-bg").remove();let i=(e.width||0)/2-8-4,o=-(e.height||0)/2+8+4;t.append("circle").attr("class","highlight-badge-bg").attr("cx",i).attr("cy",o).attr("r",8).attr("fill",n),t.append("text").attr("class","highlight-badge").attr("x",i).attr("y",o).attr("dy","0.35em").text(r)}showRuntimeAlert(t,e){console.warn(`Runtime (WebCola) error when laying out an edge from ${t} to ${e}. You may have to click and drag these nodes slightly to un-stick layout.`)}getCSS(){return'\n :host {\n display: block;\n width: 100%;\n height: 100%;\n font-family: system-ui, -apple-system, sans-serif;\n }\n \n #svg-container {\n position: relative; /* Make this the positioning context for zoom controls */\n width: 100%;\n height: 100%;\n border: 1px solid #ccc;\n overflow: hidden;\n }\n \n /* Make SVG fill the container completely */\n svg {\n width: 100%; /* Fill container width */\n height: 100%; /* Fill container height */\n display: block; /* Remove inline spacing */\n cursor: grab;\n }\n \n svg:active {\n cursor: grabbing;\n }\n \n .node rect {\n cursor: move;\n }\n\n .error-node rect, .error-group {\n stroke-width: 2px;\n stroke-dasharray: 5 5;\n animation: dash 1s linear infinite;\n }\n\n /* Enhanced visibility for small error nodes */\n .small-error-node rect {\n stroke-width: 4px !important; /* Thicker stroke for visibility */\n stroke-dasharray: 8 4 !important; /* Larger dash pattern */\n animation: dash 1s linear infinite, pulse-bg 2s ease-in-out infinite !important;\n fill: rgba(225, 112, 46, 0.46) !important; /* Light reddish background */\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: -10;\n }\n }\n\n /* Pulsing background animation for small error nodes */\n @keyframes pulse-bg {\n 0%, 100% { \n fill-opacity: 0.15; \n }\n 50% { \n fill-opacity: 0.55; \n }\n }\n \n .link {\n stroke-width: 1px;\n fill: none;\n marker-end: url(#end-arrow);\n }\n \n .inferredLink {\n stroke-width: 1.5px;\n fill: none;\n marker-end: url(#end-arrow);\n }\n\n\n .alignmentLink {\n stroke: transparent !important; /* make the stroke invisible */\n stroke-width: 0 !important; /* ensure no visible thickness */\n stroke-opacity: 0 !important; /* defensive */\n fill: none !important;\n pointer-events: none !important; /* don\'t block mouse events */\n }\n\n\n .link.highlighted {\n stroke: black; /* Change this to your desired highlight color */\n stroke-width: 3px; /* Change this to your desired highlight width */\n }\n\n .inferredLink.highlighted {\n stroke:#666666; /* Change this to your desired highlight color */\n stroke-width: 3px; /* Change this to your desired highlight width */\n }\n\n /* Node highlighting styles */\n .node.highlighted rect {\n stroke: #ff9500;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(255, 149, 0, 0.6));\n }\n\n .node.highlighted-first rect {\n stroke: #007aff;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(0, 122, 255, 0.6));\n }\n\n .node.highlighted-second rect {\n stroke: #ff3b30;\n stroke-width: 3px;\n filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.6));\n }\n\n /* Add a badge indicator for first/second in binary selectors */\n .highlight-badge {\n font-size: 10px;\n font-weight: bold;\n fill: white;\n text-anchor: middle;\n pointer-events: none;\n }\n\n .highlight-badge-bg {\n pointer-events: none;\n }\n \n .group {\n fill: rgba(200, 200, 200, 0.3);\n stroke: #666;\n stroke-width: 1px;\n }\n \n .label {\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 10px;\n pointer-events: none;\n }\n\n .linklabel {\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 12px;\n font-weight: 500;\n fill: #1a1a1a;\n pointer-events: none;\n font-family: system-ui, -apple-system, sans-serif;\n stroke: white;\n stroke-width: 3px;\n stroke-linejoin: round;\n paint-order: stroke fill;\n }\n \n .mostSpecificTypeLabel {\n font-size: 8px;\n font-weight: bold;\n pointer-events: none;\n }\n \n #loading, #error {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n }\n\n /* Input mode styles */\n svg.input-mode {\n cursor: crosshair !important;\n }\n\n svg.input-mode .node rect {\n cursor: crosshair !important;\n }\n\n svg.input-mode:active {\n cursor: crosshair !important;\n }\n\n .temporary-edge {\n pointer-events: none;\n z-index: 1000;\n }\n\n svg.input-mode .link {\n cursor: pointer;\n }\n\n svg.input-mode .link:hover {\n opacity: 0.8;\n }\n\n /* Error icon positioning - bottom area to avoid header overlap */\n #error-icon {\n margin: 5px;\n padding: 8px 12px;\n font-size: 16px;\n position: absolute;\n bottom: 10px; /* Position at bottom instead of top */\n left: 10px;\n z-index: 1000;\n cursor: help;\n background-color: rgba(220, 53, 69, 0.95);\n color: white;\n border-radius: 6px;\n border: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 6px;\n visibility: hidden; /* Use visibility instead of display */\n }\n \n #error-icon.visible {\n visibility: visible;\n }\n\n #error-icon::before {\n content: "⚠️";\n font-size: 18px;\n }\n\n /* Graph toolbar styling */\n #graph-toolbar {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n background: rgba(255, 255, 255, 0.95);\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 6px;\n margin-bottom: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n backdrop-filter: blur(4px);\n }\n\n /* Zoom controls styling */\n #zoom-controls {\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n }\n\n #zoom-controls button {\n width: 24px;\n height: 24px;\n border: 1px solid #d1d5db;\n background: #f9fafb;\n color: #374151;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n user-select: none;\n line-height: 1;\n }\n\n #zoom-controls button:hover {\n background: #f3f4f6;\n border-color: #9ca3af;\n color: #111827;\n }\n\n #zoom-controls button:active {\n background: #e5e7eb;\n border-color: #6b7280;\n transform: translateY(0.5px);\n }\n\n #zoom-controls button:disabled {\n background: #f9fafb;\n border-color: #e5e7eb;\n color: #9ca3af;\n cursor: not-allowed;\n }\n\n #zoom-controls button:disabled:hover {\n background: #f9fafb;\n border-color: #e5e7eb;\n color: #9ca3af;\n transform: none;\n }\n\n /* Routing control styling */\n #routing-control {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 16px;\n padding-left: 16px;\n border-left: 1px solid #e5e7eb;\n }\n\n #routing-control label {\n font-size: 12px;\n font-weight: 500;\n color: #6b7280;\n user-select: none;\n }\n\n #routing-mode {\n padding: 4px 8px;\n border: 1px solid #d1d5db;\n background: #f9fafb;\n color: #374151;\n border-radius: 4px;\n font-size: 12px;\n cursor: pointer;\n transition: all 0.15s ease;\n outline: none;\n }\n\n #routing-mode:hover {\n background: #f3f4f6;\n border-color: #9ca3af;\n }\n\n #routing-mode:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);\n }\n\n /* Modal Overlay and Dialog */\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n font-family: system-ui, -apple-system, sans-serif;\n }\n\n .modal-dialog {\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.3);\n padding: 24px;\n max-width: 500px;\n width: 90%;\n max-height: 90vh;\n overflow-y: auto;\n }\n\n .modal-header {\n margin-bottom: 16px;\n }\n\n .modal-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #333;\n }\n\n .modal-body {\n margin-bottom: 20px;\n }\n\n .modal-message {\n margin: 0 0 16px 0;\n font-size: 14px;\n color: #555;\n line-height: 1.5;\n }\n\n .modal-input {\n width: 100%;\n padding: 8px 12px;\n border: 2px solid #ddd;\n border-radius: 4px;\n font-size: 14px;\n box-sizing: border-box;\n }\n\n .modal-input:focus {\n outline: none;\n border-color: #007acc;\n }\n\n .modal-footer {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n }\n\n .modal-button {\n padding: 8px 16px;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: background-color 0.2s;\n }\n\n .modal-button.primary {\n background: #007acc;\n color: white;\n }\n\n .modal-button.primary:hover {\n background: #005fa3;\n }\n\n .modal-button.secondary {\n background: #f8f9fa;\n color: #666;\n border: 1px solid #ddd;\n }\n\n .modal-button.secondary:hover {\n background: #e9ecef;\n }\n '}calculateNewPosition(t,e){let r=t.getTotalLength(),n=r/2,i=n+0;i>=r&&(i=n);let o=t.getPointAtLength(i);return"x"===e?o.x:o.y}showLoading(){let t=this.shadowRoot.querySelector("#loading"),e=this.shadowRoot.querySelector("#error");t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",t.style.zIndex="1000",e.style.display="none"}updateLoadingProgress(t){let e=this.shadowRoot.querySelector("#loading-progress");e&&(e.textContent=t)}hideLoading(){this.shadowRoot.querySelector("#loading").style.display="none"}showError(t){let e=this.shadowRoot.querySelector("#loading"),r=this.shadowRoot.querySelector("#error");e.style.display="none",r.style.display="block",r.textContent=t}showErrorIcon(){this.shadowRoot.querySelector("#error-icon").classList.add("visible")}hideErrorIcon(){this.shadowRoot.querySelector("#error-icon").classList.remove("visible")}showConfirmDialog(t){return new Promise((e=>{let r=document.createElement("div");r.className="modal-overlay",r.innerHTML=`\n \n `,r.addEventListener("click",(t=>{let n=t.target;n.classList.contains("modal-overlay")||"cancel"===n.dataset.action?(this.shadowRoot.removeChild(r),e(!1)):"confirm"===n.dataset.action&&(this.shadowRoot.removeChild(r),e(!0))}));let n=t=>{"Escape"===t.key&&(this.shadowRoot.removeChild(r),document.removeEventListener("keydown",n),e(!1))};document.addEventListener("keydown",n),this.shadowRoot.appendChild(r),r.querySelector('[data-action="confirm"]')?.focus()}))}showPromptDialog(t,e=""){return new Promise((r=>{let n=document.createElement("div");n.className="modal-overlay",n.innerHTML=`\n \n `;let i=n.querySelector(".modal-input");n.addEventListener("click",(t=>{let e=t.target;if(e.classList.contains("modal-overlay"))this.shadowRoot.removeChild(n),r(null);else if("cancel"===e.dataset.action)this.shadowRoot.removeChild(n),r(null);else if("ok"===e.dataset.action){let t=i.value;this.shadowRoot.removeChild(n),r(t)}}));let o=t=>{if("Enter"===t.key){let t=i.value;this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(t)}else"Escape"===t.key&&(this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(null))};document.addEventListener("keydown",o),this.shadowRoot.appendChild(n),i.focus(),i.select()}))}showEdgeEditDialog(t,e=""){return new Promise((r=>{let n=document.createElement("div");n.className="modal-overlay",n.innerHTML=`\n \n `;let i=n.querySelector(".modal-input");n.addEventListener("click",(t=>{let e=t.target;if(e.classList.contains("modal-overlay"))this.shadowRoot.removeChild(n),r(null);else if("cancel"===e.dataset.action)this.shadowRoot.removeChild(n),r(null);else if("delete"===e.dataset.action)this.shadowRoot.removeChild(n),r("DELETE");else if("ok"===e.dataset.action){let t=i.value;this.shadowRoot.removeChild(n),r(t)}}));let o=t=>{if("Enter"===t.key){let t=i.value;this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(t)}else"Escape"===t.key&&(this.shadowRoot.removeChild(n),document.removeEventListener("keydown",o),r(null))};document.addEventListener("keydown",o),this.shadowRoot.appendChild(n),i.focus(),i.select()}))}disconnectedCallback(){this.dispose()}dispose(){this.detachInputModeListeners(),this.deactivateInputMode(),this.svg&&(this.svg.on(".zoom",null),this.svg.selectAll("*").remove()),this.container&&this.container.selectAll("*").remove(),this.svgNodes&&(this.svgNodes.on(".drag",null),this.svgNodes.on(".cnd",null)),this.colaLayout&&("function"==typeof this.colaLayout.stop&&this.colaLayout.stop(),this.colaLayout.on("tick",null),this.colaLayout.on("end",null)),this.currentLayout=null,this.colaLayout=null,this.svgNodes=null,this.svgLinkGroups=null,this.svgGroups=null,this.svgGroupLabels=null,this.zoomBehavior=null,this.storedTransform=null,this.dragStartPositions.clear(),this.cleanupEdgeCreation(),this.textMeasurementCanvas&&(this.textMeasurementCanvas=null)}getMemoryStats(){return{nodeCount:this.currentLayout?.nodes?.length||0,edgeCount:this.currentLayout?.links?.length||0,groupCount:this.currentLayout?.groups?.length||0,constraintCount:this.currentLayout?.constraints?.length||0,hasActiveLayout:!!this.colaLayout}}},Nm.DEFAULT_SVG_WIDTH=800,Nm.DEFAULT_SVG_HEIGHT=600,Nm.SMALL_IMG_SCALE_FACTOR=.3,Nm.NODE_BORDER_RADIUS=3,Nm.NODE_STROKE_WIDTH=1.5,Nm.DEFAULT_FONT_SIZE=10,Nm.MIN_FONT_SIZE=6,Nm.MAX_FONT_SIZE=16,Nm.TEXT_PADDING=8,Nm.LINE_HEIGHT_RATIO=1.2,Nm.DISCONNECTED_NODE_PREFIX="_d_",Nm.GROUP_BORDER_RADIUS=8,Nm.GROUP_FILL_OPACITY=.25,Nm.GROUP_LABEL_PADDING=20,Nm.DEFAULT_GROUP_COMPACTNESS=1e-5,Nm.EDGE_ROUTE_MARGIN_DIVISOR=3,Nm.CURVATURE_BASE_MULTIPLIER=.15,Nm.MIN_EDGE_DISTANCE=10,Nm.MAX_EDGE_OFFSET_RATIO=.35,Nm.MAX_EDGE_CURVATURE_RATIO=.6,Nm.SELF_LOOP_CURVATURE_SCALE=.2,Nm.VIEWBOX_PADDING=10,Nm.INITIAL_UNCONSTRAINED_ITERATIONS=10,Nm.INITIAL_USER_CONSTRAINT_ITERATIONS=50,Nm.INITIAL_ALL_CONSTRAINTS_ITERATIONS=200,Nm.GRID_SNAP_ITERATIONS=1,Am=Nm,typeof customElements<"u"&&typeof HTMLElement<"u"&&customElements.define("webcola-cnd-graph",Am)}));t.JSONDataInstance=void 0,t.DataInstanceNormalizer=void 0;var Cm=d((()=>{wm=g(gn()),t.JSONDataInstance=class e{constructor(e,r={}){this.atoms=[],this.relations=[],this.types=[],this.errors=[],this.eventListeners=new Map;try{let n="string"==typeof e?JSON.parse(e):e;if(!n||"object"!=typeof n)throw new Error("Invalid data: expected object with atoms and relations");if(!Array.isArray(n.atoms))throw new Error("Invalid data: atoms must be an array");if(!Array.isArray(n.relations))throw new Error("Invalid data: relations must be an array");let i=t.DataInstanceNormalizer.normalize(n,r);this.atoms=i.atoms,this.relations=i.relations,this.types=i.types,this.errors=i.errors}catch(t){throw new Error(`Failed to create JSONDataInstance: ${t instanceof Error?t.message:String(t)}`)}}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}isAtomBuiltin(t){return!1}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID '${t}' not found`);let r=this.types.find((t=>t.id===e.type));if(!r)throw new Error(`Type '${e.type}' not found for atom '${t}'`);return r}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}getTopLevelTypeId(t){let e=this.types.find((e=>e.id===t));return e&&e.types.length>0?e.types[e.types.length-1]:t}typeIsOfType(t,e){let r=this.types.find((e=>e.id===t));return r?r.types.includes(e):t===e}applyProjections(t){if(0===t.length)return this.clone();let r={};for(let e of t){let t=this.atoms.find((t=>t.id===e));if(!t)throw new Error(`Cannot project over atom '${e}': atom not found`);let n=this.getTopLevelTypeId(t.type);if(r[n])throw new Error(`Cannot project over '${e}' and '${r[n]}'. Both are of type '${n}'`);r[n]=e}let n=Object.keys(r),i=Object.values(r),o=new Set(i),s=this.types.map((t=>{let e=n.some((e=>this.typeIsOfType(t.id,e)));return{...t,atoms:e?[]:t.atoms.filter((t=>!o.has(t.id)))}})),a=this.relations.map((t=>{if(!t.types.some((t=>n.some((e=>this.typeIsOfType(t,e))))))return t;let e=[];t.types.forEach(((t,r)=>{n.some((e=>this.typeIsOfType(t,e)))&&e.push(r)}));let i=t.tuples.filter((i=>e.every((e=>{let o=i.atoms[e],s=t.types[e],a=n.find((t=>this.typeIsOfType(s,t)));return!a||o===r[a]})))).map((t=>({atoms:t.atoms.filter(((t,r)=>!e.includes(r))),types:t.types.filter(((t,r)=>!e.includes(r)))}))).filter((t=>t.atoms.length>0)),o=t.types.filter(((t,r)=>!e.includes(r)));return{...t,types:o,tuples:i}})).filter((t=>t.tuples.length>0||t.types.length>0)),l=this.atoms.filter((t=>{let e=this.getTopLevelTypeId(t.type);return!n.includes(e)}));return new e({atoms:l,relations:a,types:s})}generateGraph(t=!1,e=!1){let r=new wm.Graph({directed:!0,multigraph:!0});if(this.atoms.forEach((t=>{r.setNode(t.id,{id:t.id,label:t.label,type:t.type,isBuiltin:this.isAtomBuiltin(t)})})),this.relations.forEach((t=>{t.tuples.forEach(((e,n)=>{if(e.atoms.length>=2){let i=e.atoms[0],o=e.atoms[e.atoms.length-1],s=e.atoms.slice(1,-1),a=t.name;if(s.length>0){let e=s.map((t=>{let e=this.atoms.find((e=>e.id===t));return e?e.label:t}));a=`${t.name}[${e.join(", ")}]`}let l=`${t.id}_${n}`;r.setEdge(i,o,a,l)}else if(1===e.atoms.length){let i=e.atoms[0],o=`${t.id}_${n}`;r.setEdge(i,i,t.name,o)}}))})),t||e){let n=[];r.nodes().forEach((i=>{let o=r.inEdges(i)||[],s=r.outEdges(i)||[];if(0===o.length&&0===s.length){let o=r.node(i)?.isBuiltin||!1;(t||o&&e)&&n.push(i)}})),n.forEach((t=>{r.removeNode(t)}))}return r}addAtom(t){if(this.atoms.some((e=>e.id===t.id)))throw new Error(`Atom with ID '${t.id}' already exists`);this.atoms.push(t);let e=this.types.find((e=>e.id===t.type));e||(e={id:t.type,types:[t.type],atoms:[],isBuiltin:!1},this.types.push(e)),e.atoms.push(t),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){for(let t of e.atoms)if(!this.atoms.some((e=>e.id===t)))throw new Error(`Cannot add tuple: referenced atom '${t}' does not exist`);let r=this.relations.find((e=>e.id===t||e.name===t));if(r){let t=new Set(r.types);for(let n of e.types)t.has(n)||r.types.push(n)}else r={id:t,name:t,types:[...e.types],tuples:[]},this.relations.push(r);r.tuples.push(e),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeAtom(t){let e=this.atoms.findIndex((e=>e.id===t));if(-1===e)throw new Error(`Cannot remove atom: atom with ID '${t}' not found`);let r=this.atoms[e];this.atoms.splice(e,1);let n=this.types.find((t=>t.id===r.type));n&&(n.atoms=n.atoms.filter((e=>e.id!==t)));for(let e of this.relations)e.tuples=e.tuples.filter((e=>!e.atoms.includes(t)));this.emitEvent({type:"atomRemoved",data:{atomId:t}})}removeRelationTuple(t,e){let r=this.relations.find((e=>e.id===t||e.name===t));if(!r)throw new Error(`Cannot remove tuple: relation '${t}' not found`);let n=r.tuples.length;if(r.tuples=r.tuples.filter((t=>!((t,e)=>t.atoms.length===e.atoms.length&&t.atoms.every(((t,r)=>t===e.atoms[r])))(t,e))),r.tuples.length===n)throw new Error(`Tuple not found in relation '${t}'`);this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}reify(){return{atoms:[...this.atoms],relations:this.relations.map((t=>({...t,tuples:[...t.tuples]}))),types:this.types.map((t=>({...t,atoms:[...t.atoms]})))}}addFromDataInstance(t,e){if(!t)return!1;let r=new Map;return t.getAtoms().forEach((t=>{let n=this.isAtomBuiltin(t);if(e&&n){let e=this.atoms.find((e=>e.type===t.type&&e.label===t.label));if(e)return void r.set(t.id,e.id)}let i=`atom_${this.atoms.length+1}`;r.set(t.id,i);let o={...t,id:i};this.addAtom(o)})),t.getRelations().forEach((t=>{let e=t.tuples.map((t=>({atoms:t.atoms.map((t=>r.get(t)||t)),types:t.types}))),n=this.relations.find((e=>e.id===t.id||e.name===t.name));if(n){let t=new Set(n.tuples.map((t=>JSON.stringify(t))));e.forEach((e=>{let r=JSON.stringify(e);t.has(r)||(n.tuples.push(e),t.add(r))}))}else this.relations.push({...t,tuples:e})})),t.getTypes().forEach((t=>{let e=this.types.find((e=>e.id===t.id));if(e){let n=new Set(e.atoms.map((t=>t.id)));t.atoms.forEach((t=>{let i=r.get(t.id)||t.id;n.has(i)||(e.atoms.push({...t,id:i}),n.add(i))}))}else this.types.push({...t,atoms:t.atoms.map((t=>({...t,id:r.get(t.id)||t.id})))})})),!0}getErrors(){return[...this.errors]}isValid(){return 0===this.errors.length}getStatistics(){return{atomCount:this.atoms.length,relationCount:this.relations.length,typeCount:this.types.length,tupleCount:this.relations.reduce(((t,e)=>t+e.tuples.length),0),errorCount:this.errors.length,hasBuiltinTypes:this.types.some((t=>t.isBuiltin))}}clone(){return new e(this.reify())}},t.DataInstanceNormalizer=class t{static mergeRelations(t){let e=new Map;for(let r of t){let t=e.get(r.name);if(t){let e=new Set(t.tuples.map((t=>JSON.stringify(t))));for(let n of r.tuples){let r=JSON.stringify(n);e.has(r)||(t.tuples.push(n),e.add(r))}let n=new Set(t.types);for(let e of r.types)n.has(e)||(t.types.push(e),n.add(e))}else e.set(r.name,{id:r.id||r.name,name:r.name,types:[...r.types],tuples:[...r.tuples]})}return Array.from(e.values())}static inferTypes(e){let r=new Map;for(let n of e)r.has(n.type)||r.set(n.type,{id:n.type,types:[n.type],atoms:[],isBuiltin:t.isBuiltinType(n.type)}),r.get(n.type).atoms.push(n);return Array.from(r.values())}static isBuiltinType(t){return new Set(["String","Int","Bool","seq/Int","univ","none","Entity","Object","Node","Edge","Atom"]).has(t)}static deduplicateAtoms(t){let e=new Map,r=new Set;for(let n of t)e.has(n.id)?r.add(n.id):e.set(n.id,n);return r.size>0&&console.warn(`Found duplicate atoms with IDs: ${Array.from(r).join(", ")}`),Array.from(e.values())}static validateReferences(t,e){let r=new Set(t.map((t=>t.id))),n=[];for(let t of e)for(let e=0;e0){let t=n.length;n=this.deduplicateAtoms(n),n.length0){let t=i.length;i=this.mergeRelations(i),i.length0&&(o=this.inferTypes(n),s.push(`Inferred ${o.length} types from atoms`)),r.validateReferences){let t=this.validateReferences(n,i);s.push(...t.errors)}return{atoms:n,relations:i,types:o,errors:s}}}})),Lm={};f(Lm,{StructuredInputGraph:()=>t.StructuredInputGraph}),t.StructuredInputGraph=void 0;var Im=d((()=>{Rm(),Cm(),An(),Zf(),Ia(),t.StructuredInputGraph=class extends Am{constructor(e){super(!0),this.evaluator=null,this.layoutInstance=null,this.cndSpecString="",this.controlsContainer=null,this.customTypes=new Set,this.relationAtomPositions=["",""],this.currentConstraintError=null,this.dataInstanceEventHandlers={atomAdded:null,atomRemoved:null,relationTupleAdded:null,relationTupleRemoved:null};let r=e||new t.JSONDataInstance({atoms:[],relations:[]});console.log("StructuredInputGraph initialized with data instance:",r),this.setDataInstance(r),this.initializeStructuredInput(),this.addEventListener("edge-creation-requested",this.handleEdgeCreationRequest.bind(this)),this.addEventListener("edge-modification-requested",this.handleEdgeModificationRequest.bind(this)),this.addEventListener("edge-reconnection-requested",this.handleEdgeReconnectionRequest.bind(this))}static get observedAttributes(){return["cnd-spec","data-instance","show-export"]}attributeChangedCallback(t,e,r){if(e!==r)switch(t){case"cnd-spec":this.parseCnDSpec(r);break;case"data-instance":this.updateDataInstance(r);break;case"show-export":this.updateExportVisibility("true"===r)}}initializeStructuredInput(){requestAnimationFrame((()=>{this.createControlsInterface()}))}createControlsInterface(){if(!this.shadowRoot)return;this.controlsContainer=document.createElement("div"),this.controlsContainer.className="structured-input-controls",this.controlsContainer.innerHTML=this.getControlsHTML();let t=document.createElement("style");t.textContent=this.getControlsCSS(),this.shadowRoot.appendChild(t),this.shadowRoot.appendChild(this.controlsContainer),this.bindControlEvents()}getControlsHTML(){return'\n
\n
\n

Data Editor

\n \n
\n
\n
\n
\n

Atoms

\n \n
\n
\n
\n
\n \n \n or\n \n
\n
\n \n \n ID will be auto-generated\n
\n \n
\n
\n
\n \n
\n
\n

Relations

\n \n
\n
\n
\n
\n \n \n
\n
\n \n
\n
\n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n

Delete

\n \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n \n
\n
\n \n
\n
\n

Export

\n \n
\n
\n \n \n
\n
\n \n
\n
\n

Spec Info

\n \n
\n
\n
\n
No spec loaded
\n
\n
\n
\n
\n
\n
\n '}getControlsCSS(){return"\n .structured-input-controls {\n position: absolute;\n top: 12px;\n right: 12px;\n width: 320px;\n background: #ffffff;\n border: 1px solid #d0d7de;\n border-radius: 6px;\n box-shadow: 0 4px 12px rgba(0,0,0,0.1);\n z-index: 1000;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;\n overflow: hidden;\n }\n\n .panel-header {\n background: #0078d4;\n color: white;\n padding: 10px 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid rgba(255,255,255,0.1);\n }\n\n .panel-header h3 {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n }\n\n .toggle-panel, .section-toggle {\n background: rgba(255,255,255,0.2);\n border: none;\n color: white;\n cursor: pointer;\n font-size: 12px;\n padding: 4px 8px;\n border-radius: 3px;\n transition: background 0.2s ease;\n }\n\n .toggle-panel:hover, .section-toggle:hover {\n background: rgba(255,255,255,0.3);\n }\n\n .panel-content {\n padding: 12px;\n max-height: 600px;\n overflow-y: auto;\n overflow-x: hidden;\n }\n\n .panel-content::-webkit-scrollbar {\n width: 8px;\n }\n\n .panel-content::-webkit-scrollbar-track {\n background: #f5f5f5;\n }\n\n .panel-content::-webkit-scrollbar-thumb {\n background: #c1c1c1;\n border-radius: 4px;\n }\n\n .panel-content::-webkit-scrollbar-thumb:hover {\n background: #a8a8a8;\n }\n\n .panel-content.collapsed {\n display: none;\n }\n\n .section-card {\n background: #fafbfc;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n padding: 0;\n margin-bottom: 10px;\n }\n\n .section-card:last-child {\n margin-bottom: 0;\n }\n\n .section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 10px;\n background: #f6f8fa;\n border-bottom: 1px solid #d0d7de;\n cursor: pointer;\n user-select: none;\n }\n\n .section-header:hover {\n background: #eef2f5;\n }\n\n .section-toggle {\n background: transparent;\n color: #57606a;\n font-size: 10px;\n padding: 2px 6px;\n }\n\n .section-toggle:hover {\n background: rgba(0,0,0,0.05);\n }\n\n .section-content {\n padding: 12px;\n }\n\n .section-content.collapsed {\n display: none;\n }\n\n h4 {\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n color: #24292e;\n }\n\n .atom-form, .relation-form {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .form-group {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .form-label {\n font-size: 11px;\n font-weight: 600;\n color: #57606a;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n }\n\n .label-divider {\n text-align: center;\n color: #8b949e;\n font-size: 10px;\n font-weight: 500;\n margin: 2px 0;\n }\n\n .form-control {\n padding: 6px 8px;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n font-size: 12px;\n background: white;\n transition: border-color 0.15s ease;\n }\n\n .form-control:focus {\n outline: none;\n border-color: #0078d4;\n box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);\n }\n\n .custom-type-input {\n resize: vertical;\n min-height: 60px;\n font-family: 'SF Mono', Monaco, 'Consolas', 'Courier New', monospace;\n font-size: 11px;\n line-height: 1.4;\n }\n\n .form-hint {\n font-size: 10px;\n color: #8b949e;\n font-style: italic;\n }\n\n .btn-primary, .btn-secondary, .btn-danger, .btn-danger-outline {\n padding: 7px 12px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\n transition: background-color 0.15s ease;\n width: 100%;\n }\n\n .btn-primary {\n background: #0078d4;\n color: white;\n }\n\n .btn-primary:hover:not(:disabled) {\n background: #106ebe;\n }\n\n .btn-secondary {\n background: #6c757d;\n color: white;\n }\n\n .btn-secondary:hover {\n background: #5a6268;\n }\n\n .btn-danger {\n background: #dc3545;\n color: white;\n }\n\n .btn-danger:hover:not(:disabled) {\n background: #c82333;\n }\n\n .btn-danger-outline {\n background: white;\n color: #dc3545;\n border: 1px solid #dc3545;\n }\n\n .btn-danger-outline:hover {\n background: #dc3545;\n color: white;\n }\n\n .btn-primary:disabled, .btn-danger:disabled {\n background: #e9ecef;\n color: #adb5bd;\n cursor: not-allowed;\n }\n\n .btn-sm {\n padding: 5px 10px;\n font-size: 11px;\n border-radius: 3px;\n border: 1px solid #d0d7de;\n background: white;\n cursor: pointer;\n font-weight: 400;\n transition: background-color 0.15s ease;\n }\n\n .btn-sm:hover:not(:disabled) {\n background: #f6f8fa;\n border-color: #0078d4;\n }\n\n .atom-selector {\n margin-top: 8px;\n }\n\n .atom-checkboxes {\n max-height: 120px;\n overflow-y: auto;\n border: 1px solid #d0d7de;\n border-radius: 6px;\n padding: 8px;\n background: white;\n }\n\n .atom-checkbox-item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 0;\n font-size: 12px;\n }\n\n .atom-checkbox-item input[type=\"checkbox\"] {\n margin: 0;\n width: 16px;\n height: 16px;\n }\n\n .relation-atoms {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .atom-positions {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 8px;\n background: white;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n }\n\n .atom-position {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .atom-position label {\n font-size: 10px;\n font-weight: 600;\n color: #57606a;\n }\n\n .atom-position select {\n padding: 5px 8px;\n border: 1px solid #d0d7de;\n border-radius: 3px;\n font-size: 11px;\n background: white;\n }\n\n .arity-controls {\n display: flex;\n gap: 6px;\n }\n\n .arity-display {\n font-weight: 700;\n color: #0078d4;\n }\n\n .deletion-controls {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .bulk-delete {\n border-top: 1px solid #d0d7de;\n padding-top: 10px;\n margin-top: 4px;\n }\n\n .export-output {\n width: 100%;\n height: 100px;\n margin-top: 8px;\n padding: 8px;\n border: 1px solid #d0d7de;\n border-radius: 4px;\n font-family: 'SF Mono', Monaco, 'Consolas', 'Courier New', monospace;\n font-size: 10px;\n line-height: 1.4;\n resize: vertical;\n background: #f6f8fa;\n color: #24292e;\n }\n\n .export-output:focus {\n outline: none;\n border-color: #0078d4;\n box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);\n }\n\n .spec-status {\n font-size: 11px;\n padding: 6px 8px;\n border-radius: 3px;\n background: #f6f8fa;\n border: 1px solid #d0d7de;\n font-weight: 500;\n }\n\n .spec-status.loaded {\n background: #d4edda;\n border-color: #c3e6cb;\n color: #155724;\n }\n\n .spec-status.error {\n background: #f8d7da;\n border-color: #f5c6cb;\n color: #721c24;\n }\n\n .type-list {\n margin-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n\n .type-item {\n background: #e7f3ff;\n color: #0969da;\n padding: 3px 8px;\n border-radius: 3px;\n font-size: 10px;\n font-weight: 500;\n border: 1px solid #b6d7f0;\n }\n "}bindControlEvents(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".toggle-panel"),e=this.controlsContainer.querySelector(".panel-content");t?.addEventListener("click",(()=>{let r=e.classList.contains("collapsed");e.classList.toggle("collapsed"),t.textContent=r?"▲":"▼"})),this.controlsContainer.querySelectorAll(".section-header").forEach((t=>{let e=t.querySelector(".section-toggle"),r=t.closest(".section-card")?.querySelector(".section-content");e&&r&&(t.addEventListener("click",(t=>{if(t.target===e)return;let n=r.classList.contains("collapsed");r.classList.toggle("collapsed"),e.textContent=n?"▲":"▼"})),e.addEventListener("click",(t=>{t.stopPropagation();let n=r.classList.contains("collapsed");r.classList.toggle("collapsed"),e.textContent=n?"▲":"▼"})))}));let r=this.controlsContainer.querySelector(".atom-type-select"),n=this.controlsContainer.querySelector(".custom-type-input"),i=this.controlsContainer.querySelector(".atom-label-input"),o=this.controlsContainer.querySelector(".add-atom-btn"),s=()=>{let t=r.value,e=n.value.trim()||t;o.disabled=!e||!i.value.trim()};r?.addEventListener("change",(()=>{r.value&&"Other..."!==r.value&&(n.value=""),s()})),n?.addEventListener("input",(()=>{n.value.trim()&&(r.value=""),s()})),i?.addEventListener("input",s),o?.addEventListener("click",(async()=>{let t=n.value.trim(),e=t||r.value;if(t){this.customTypes.add(t);let e=Array.from(r.options).find((t=>"Other..."===t.value));if(e&&r.removeChild(e),!Array.from(r.options).find((e=>e.value===t))){let e=document.createElement("option");e.value=t,e.textContent=t,r.appendChild(e)}e&&r.appendChild(e),r.value="",n.value=""}else if(!e)return;await this.addAtomFromForm(e,i.value.trim()),i.value="",s(),this.updateDeletionSelects(),this.updateAtomPositions()}));let a=this.controlsContainer.querySelector(".relation-type-input"),l=this.controlsContainer.querySelector(".add-relation-btn"),u=this.controlsContainer.querySelector(".add-position-btn"),c=this.controlsContainer.querySelector(".remove-position-btn"),h=()=>{let t=this.relationAtomPositions.filter((t=>""!==t.trim())).length>=2,e=a.value.trim();l.disabled=!t||!e};a?.addEventListener("input",h),this.updateAtomPositions(),u?.addEventListener("click",(()=>{this.relationAtomPositions.push(""),this.updateAtomPositions(),h()})),c?.addEventListener("click",(()=>{this.relationAtomPositions.length>2&&(this.relationAtomPositions.pop(),this.updateAtomPositions(),h())})),l?.addEventListener("click",(async()=>{await this.addRelationFromForm(),a.value="",this.relationAtomPositions=["",""],this.updateAtomPositions(),h(),this.updateDeletionSelects()}));let d=this.controlsContainer.querySelector(".atom-delete-select"),p=this.controlsContainer.querySelector(".relation-delete-select"),f=this.controlsContainer.querySelector(".delete-atom-btn"),g=this.controlsContainer.querySelector(".delete-relation-btn"),m=this.controlsContainer.querySelector(".clear-all-btn"),y=()=>{f.disabled=!d.value,g.disabled=!p.value};d?.addEventListener("change",y),p?.addEventListener("change",y),f?.addEventListener("click",(async()=>{await this.deleteAtom(d.value),this.updateDeletionSelects(),this.updateAtomPositions(),y()})),g?.addEventListener("click",(async()=>{await this.deleteRelation(p.value),this.updateDeletionSelects(),y()})),m?.addEventListener("click",(async()=>{await this.clearAllItems(),this.updateDeletionSelects(),this.updateAtomPositions(),y()})),this.controlsContainer.querySelector(".export-json-btn")?.addEventListener("click",(()=>{this.exportDataAsJSON()})),this.updateDeletionSelects()}async handleEdgeCreationRequest(t){console.log("🔗 Handling edge creation request:",t.detail);let{relationId:e,sourceNodeId:r,targetNodeId:n,tuple:i}=t.detail;try{this.dataInstance.addRelationTuple(e,i),console.log(`✅ Added relation to data instance: ${e}(${r}, ${n})`),await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge creation request:",t)}}async handleEdgeModificationRequest(t){console.log("🔗 Handling edge modification request:",t.detail);let{oldRelationId:e,newRelationId:r,sourceNodeId:n,targetNodeId:i,tuple:o}=t.detail;try{if(r&&""!==r.trim()){if(e.trim()===r.trim())return void console.log("⏭️ Same relation name, no data changes needed");if(e&&e.trim())try{this.dataInstance.removeRelationTuple(e,o),console.log(`🗑️ Removed from ${e}`)}catch(t){let r=t instanceof Error?t.message:String(t);console.log(`⚠️ Could not remove from ${e}: ${r}`)}this.dataInstance.addRelationTuple(r,o),console.log(`➕ Added to ${r}`)}else console.log("🗑️ Deleting edge (empty new relation name)"),e&&e.trim()&&(this.dataInstance.removeRelationTuple(e,o),console.log(`✅ Removed relation tuple from ${e}`));await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge modification request:",t)}}async handleEdgeReconnectionRequest(t){console.log("🔄 Handling edge reconnection request:",t.detail);let{relationId:e,oldTuple:r,newTuple:n,oldSourceNodeId:i,oldTargetNodeId:o,newSourceNodeId:s,newTargetNodeId:a}=t.detail;try{if(e&&e.trim())try{this.dataInstance.removeRelationTuple(e,r),console.log(`🗑️ Removed old tuple from ${e}: ${i} -> ${o}`)}catch(t){let r=t instanceof Error?t.message:String(t);console.log(`⚠️ Could not remove old tuple from ${e}: ${r}`)}this.dataInstance.addRelationTuple(e,n),console.log(`➕ Added new tuple to ${e}: ${s} -> ${a}`),await this.enforceConstraintsAndRegenerate()}catch(t){console.error("❌ Failed to handle edge reconnection request:",t)}}async parseCnDSpec(t){try{console.log("🔄 Parsing CnD spec and initializing pipeline..."),this.cndSpecString=t,await this.initializeCnDPipeline(t),this.updateTypeSelector(),this.updateSpecInfo(),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("spec-loaded",{detail:{spec:this.cndSpecString}})),console.log("✅ CnD spec parsed and pipeline initialized")}catch(t){console.error("❌ Failed to parse CnD spec:",t),this.updateSpecInfo("error",t instanceof Error?t.message:"Parse error")}}async initializeCnDPipeline(e){if(!e.trim())return console.log("📝 Empty spec - clearing pipeline"),this.evaluator=null,void(this.layoutInstance=null);try{console.log("🔧 Initializing CnD pipeline with spec...");let r=Sa(e);console.log("📋 Layout spec parsed successfully"),this.evaluator=new t.SGraphQueryEvaluator,this.evaluator.initialize({sourceData:this.dataInstance}),console.log("🔍 SGraphQueryEvaluator initialized with data instance"),this.layoutInstance=new t.LayoutInstance(r,this.evaluator,0,!0),console.log("📐 LayoutInstance created"),console.log("✅ CnD pipeline initialized successfully (evaluator + layout instance)")}catch(t){throw console.error("❌ Failed to initialize CnD pipeline:",t),this.evaluator=null,this.layoutInstance=null,t}}async enforceConstraintsAndRegenerate(){console.log("🔄 enforceConstraintsAndRegenerate() called");try{if(!this.layoutInstance)return void console.log("⚠️ Cannot enforce constraints - no layout instance available");console.log("📊 Current data instance state:",{atoms:this.dataInstance.getAtoms().length,relations:this.dataInstance.getRelations().length}),this.evaluator&&(console.log("🔄 Re-initializing evaluator with updated data instance..."),this.evaluator.initialize({sourceData:this.dataInstance}),console.log("✅ Evaluator re-initialized")),console.log("🔧 Generating layout with constraint enforcement...");let t={},e=this.layoutInstance.generateLayout(this.dataInstance,t);e.error?(console.warn("⚠️ Constraint validation error detected:",e.error),this.currentConstraintError=e.error,this.dispatchEvent(new CustomEvent("constraint-error",{detail:{error:e.error,layout:e.layout},bubbles:!0})),console.log("📤 Dispatched constraint-error event with UNSAT core information")):(console.log("✅ Layout generated successfully - all constraints satisfied"),null!==this.currentConstraintError&&(console.log("🧹 Clearing previous constraint error - constraints now satisfied"),this.currentConstraintError=null,this.dispatchEvent(new CustomEvent("constraints-satisfied",{detail:{layout:e.layout},bubbles:!0})),console.log("📤 Dispatched constraints-satisfied event"))),console.log("🎨 Rendering layout..."),await this.renderLayout(e.layout),console.log("✅ Constraints enforced and layout regenerated successfully")}catch(t){console.error("❌ Failed to enforce constraints and regenerate layout:",t),this.dispatchEvent(new CustomEvent("layout-generation-error",{detail:{error:t},bubbles:!0}))}}refreshTypesFromDataInstance(){this.updateTypeSelector()}getAvailableAtomTypes(){let t=new Set;return this.dataInstance&&this.dataInstance.getAtoms().forEach((e=>{e.type&&t.add(e.type)})),0===t.size&&(t.add("Entity"),t.add("Person"),t.add("Object")),Array.from(t)}updateDataInstance(t){try{console.log("Data instance updated:",t)}catch(t){console.error("Failed to update data instance:",t)}}updateExportVisibility(t){let e=this.controlsContainer?.querySelector(".export-section");e&&(e.style.display=t?"block":"none")}updateTypeSelector(){let t=this.controlsContainer?.querySelector(".atom-type-select");if(!t)return;for(;t.children.length>1;)t.removeChild(t.lastChild);this.getAvailableAtomTypes().forEach((e=>{let r=document.createElement("option");r.value=e,r.textContent=e,t.appendChild(r)})),this.customTypes.forEach((e=>{if(!Array.from(t.options).find((t=>t.value===e))){let r=document.createElement("option");r.value=e,r.textContent=e,t.appendChild(r)}}));let e=document.createElement("option");e.value="Other...",e.textContent="Other...",t.appendChild(e)}updateSpecInfo(t="loaded",e){let r=this.controlsContainer?.querySelector(".spec-status"),n=this.controlsContainer?.querySelector(".type-list");if(!r||!n)return;if(r.className=`spec-status ${t}`,"error"===t)return r.textContent=e||"Error loading spec",void(n.innerHTML="");let i=this.getAvailableAtomTypes();r.textContent=`Loaded: ${i.length} atom types available`,n.innerHTML=i.map((t=>`${t}`)).join("")}generateAtomId(t){if(!this.dataInstance)return`${t}-1`;let e=this.dataInstance.getAtoms(),r=new Set(e.map((t=>t.id))),n=1,i=`${t}-${n}`;for(;r.has(i);)n++,i=`${t}-${n}`;return i}async addAtomFromForm(t,e){if(t&&e)try{console.log(`🔵 Adding atom: ${e} (${t})`);let r={id:this.generateAtomId(t),type:t,label:e};this.dataInstance.addAtom(r),console.log(`✅ Atom added to data instance: ${r.label} (${r.id}:${r.type})`),this.refreshTypesFromDataInstance(),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("atom-added",{detail:{atom:r}})),console.log(`🎉 Atom addition completed: ${r.label} (${r.id}:${r.type})`)}catch(t){console.error("❌ Failed to add atom:",t)}}updateAtomPositions(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".atom-positions"),e=this.controlsContainer.querySelector(".arity-display"),r=this.controlsContainer.querySelector(".remove-position-btn");if(!t)return;e&&(e.textContent=this.relationAtomPositions.length.toString()),r&&(r.disabled=this.relationAtomPositions.length<=2),t.innerHTML="";let n=this.dataInstance.getAtoms();0!==n.length?this.relationAtomPositions.forEach(((e,r)=>{let i=document.createElement("div");i.className="atom-position";let o=document.createElement("label");o.textContent=`Position ${r+1}:`;let s=document.createElement("select");s.dataset.position=r.toString();let a=document.createElement("option");a.value="",a.textContent="Select Atom",s.appendChild(a),n.forEach((t=>{let r=document.createElement("option");r.value=t.id,r.textContent=`${t.label} (${t.type})`,t.id===e&&(r.selected=!0),s.appendChild(r)})),s.addEventListener("change",(()=>{this.relationAtomPositions[r]=s.value,this.updateRelationButtonState()})),i.appendChild(o),i.appendChild(s),t.appendChild(i)})):t.innerHTML='
No atoms available
'}updateRelationButtonState(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".relation-type-input"),e=this.controlsContainer.querySelector(".add-relation-btn"),r=this.relationAtomPositions.filter((t=>""!==t.trim())).length>=2,n=t?.value.trim();e&&(e.disabled=!r||!n)}async addRelationFromForm(){if(this.controlsContainer)try{let t=this.controlsContainer.querySelector(".relation-type-input").value.trim();if(!t)return;let e=this.relationAtomPositions.filter((t=>""!==t.trim()));if(e.length<2)return void console.warn("Need at least 2 atoms for a relation");console.log(`🔗 Adding relation: ${t}(${e.join(", ")})`);let r=this.dataInstance.getAtoms(),n=e.map((t=>r.find((e=>e.id===t))?.type||"untyped")),i={atoms:e,types:n};this.dataInstance.addRelationTuple(t,i),console.log(`✅ Relation added to data instance: ${t}(${e.join(", ")})`),await this.enforceConstraintsAndRegenerate(),this.dispatchEvent(new CustomEvent("relation-added",{detail:{relationType:t,tuple:i}})),console.log(`🎉 Relation addition completed: ${t}(${e.join(", ")})`)}catch(t){console.error("❌ Failed to add relation:",t)}}exportDataAsJSON(){try{console.log("📤 Exporting data instance using reify()...");let t=this.dataInstance.reify(),e="string"==typeof t?t:JSON.stringify(t,null,2),r=this.controlsContainer?.querySelector(".export-output");r&&(r.value=e),this.dispatchEvent(new CustomEvent("data-exported",{detail:{data:e,format:"string"==typeof t?"text":"json",reified:t}})),console.log("✅ Data exported using reify()")}catch(t){console.error("❌ Failed to export data:",t)}}handleDataChangeUIUpdate(t=!1){this.refreshTypesFromDataInstance(),this.updateDeletionSelects(),t&&this.updateAtomPositions()}async handleDataDeletionWithValidation(t=!1){this.handleDataChangeUIUpdate(t),await this.enforceConstraintsAndRegenerate()}setDataInstance(t){console.log("🔄 Setting new data instance"),this.dataInstance&&(this.dataInstanceEventHandlers.atomAdded&&this.dataInstance.removeEventListener("atomAdded",this.dataInstanceEventHandlers.atomAdded),this.dataInstanceEventHandlers.atomRemoved&&this.dataInstance.removeEventListener("atomRemoved",this.dataInstanceEventHandlers.atomRemoved),this.dataInstanceEventHandlers.relationTupleAdded&&this.dataInstance.removeEventListener("relationTupleAdded",this.dataInstanceEventHandlers.relationTupleAdded),this.dataInstanceEventHandlers.relationTupleRemoved&&this.dataInstance.removeEventListener("relationTupleRemoved",this.dataInstanceEventHandlers.relationTupleRemoved)),this.dataInstance=t,this.refreshTypesFromDataInstance(),this.dataInstanceEventHandlers.atomAdded=async()=>{console.log("📍 Atom added to instance - updating UI and re-validating constraints"),this.handleDataChangeUIUpdate(!0),await this.enforceConstraintsAndRegenerate()},this.dataInstanceEventHandlers.relationTupleAdded=async()=>{console.log("🔗 Relation added to instance - updating UI and re-validating constraints"),this.handleDataChangeUIUpdate(!1),await this.enforceConstraintsAndRegenerate()},this.dataInstanceEventHandlers.atomRemoved=async()=>{console.log("🗑️ Atom removed from instance - updating UI and re-validating constraints"),await this.handleDataDeletionWithValidation(!0)},this.dataInstanceEventHandlers.relationTupleRemoved=async()=>{console.log("🗑️ Relation tuple removed from instance - updating UI and re-validating constraints"),await this.handleDataDeletionWithValidation(!1)},t.addEventListener("atomAdded",this.dataInstanceEventHandlers.atomAdded),t.addEventListener("relationTupleAdded",this.dataInstanceEventHandlers.relationTupleAdded),t.addEventListener("atomRemoved",this.dataInstanceEventHandlers.atomRemoved),t.addEventListener("relationTupleRemoved",this.dataInstanceEventHandlers.relationTupleRemoved),this.updateDeletionSelects(),this.updateAtomPositions(),console.log("✅ Data instance set successfully")}updateDeletionSelects(){if(!this.controlsContainer)return;let t=this.controlsContainer.querySelector(".atom-delete-select"),e=this.controlsContainer.querySelector(".relation-delete-select");if(t){for(;t.children.length>1;)t.removeChild(t.lastChild);this.dataInstance.getAtoms().forEach((e=>{let r=document.createElement("option");r.value=e.id,r.textContent=`${e.label} (${e.type})`,t.appendChild(r)}))}if(e){for(;e.children.length>1;)e.removeChild(e.lastChild);let t=this.dataInstance.getRelations(),r=0;t.forEach((t=>{t.tuples.forEach((n=>{let i=document.createElement("option");i.value=r.toString();let o=n.atoms.map((t=>{let e=this.dataInstance.getAtoms().find((e=>e.id===t));return e?e.label:t})),s=t.id||t.name||"relation";i.textContent=`${s}: ${o.join(" → ")}`,e.appendChild(i),r++}))}))}}async deleteAtom(t){if(t)try{console.log(`🗑️ Deleting atom: ${t}`);let e=this.dataInstance.getAtoms().find((e=>e.id===t));if(!e)return void console.warn(`⚠️ Atom ${t} not found`);this.dataInstance.removeAtom(t),console.log(`✅ Atom removed from data instance: ${e.label} (${e.id})`),console.log(`🎉 Atom deletion completed: ${e.label} (${e.id})`),this.dispatchEvent(new CustomEvent("atom-deleted",{detail:{atom:e}}))}catch(t){console.error("❌ Failed to delete atom:",t)}}async deleteRelation(t){if(t)try{let e=parseInt(t,10);console.log(`🗑️ Deleting relation tuple at index: ${e}`);let r=this.dataInstance.getRelations(),n=0,i=null,o=null;for(let t of r){for(let r of t.tuples){if(n===e){i=t,o=r;break}n++}if(i)break}if(!i||!o)return void console.warn(`⚠️ Relation tuple at index ${e} not found`);let s=i.id||i.name;console.log(`🗑️ Found tuple in relation "${s}": ${o.atoms.join(" → ")}`),this.dataInstance.removeRelationTuple(s,o),console.log(`✅ Relation tuple removed from data instance: ${s}: ${o.atoms.join(" → ")}`),console.log(`🎉 Relation tuple deletion completed: ${s}: ${o.atoms.join(" → ")}`),this.dispatchEvent(new CustomEvent("relation-tuple-deleted",{detail:{relationId:s,tuple:o}}))}catch(t){console.error("❌ Failed to delete relation tuple:",t)}}async clearAllItems(){try{console.log("🧹 Clearing all atoms and relations...");let e=new t.JSONDataInstance({atoms:[],relations:[],types:[]});this.setDataInstance(e),console.log("✅ All items cleared from data instance"),await this.enforceConstraintsAndRegenerate(),console.log("🎉 Clear all completed"),this.dispatchEvent(new CustomEvent("all-items-cleared",{detail:{}}))}catch(t){console.error("❌ Failed to clear all items:",t)}}getDataInstance(){return this.dataInstance}getCurrentConstraintError(){return this.currentConstraintError}hasConstraintErrors(){return null!==this.currentConstraintError}async setCnDSpec(t){this.setAttribute("cnd-spec",t),await this.parseCnDSpec(t)}getAvailableTypes(){return this.getAvailableAtomTypes()}}})),km=p(((t,e)=>{(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,l=1/0,u=9007199254740991,c=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],p="[object Arguments]",f="[object Array]",g="[object Boolean]",m="[object Date]",y="[object Error]",_="[object Function]",v="[object GeneratorFunction]",x="[object Map]",b="[object Number]",T="[object Object]",E="[object Promise]",O="[object RegExp]",S="[object Set]",N="[object String]",A="[object Symbol]",w="[object WeakMap]",R="[object ArrayBuffer]",C="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",P="[object Int32Array]",M="[object Uint8Array]",j="[object Uint8ClampedArray]",K="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(B.source),z=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(Z.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",Ot="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nt="["+vt+"]",At="["+St+"]",wt="["+xt+"]",Rt="\\d+",Ct="["+bt+"]",Lt="["+Tt+"]",It="[^"+vt+St+Rt+bt+Tt+Et+"]",kt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+vt+"]",Pt="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+Et+"]",Kt="(?:"+Lt+"|"+It+")",Ut="(?:"+jt+"|"+It+")",Ft="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+wt+"|"+kt+")?",Bt="["+Ot+"]?",qt=Bt+Ht+"(?:\\u200d(?:"+[Dt,Pt,Mt].join("|")+")"+Bt+Ht+")*",Gt="(?:"+[Ct,Pt,Mt].join("|")+")"+qt,zt="(?:"+[Dt+wt+"?",wt,Pt,Mt,Nt].join("|")+")",Vt=RegExp("['’]","g"),Yt=RegExp(wt,"g"),Wt=RegExp(kt+"(?="+kt+")|"+zt+qt,"g"),Xt=RegExp([jt+"?"+Lt+"+"+Ft+"(?="+[At,jt,"$"].join("|")+")",Ut+"+"+$t+"(?="+[At,jt+Kt,"$"].join("|")+")",jt+"?"+Kt+"+"+Ft,jt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt,Gt].join("|"),"g"),Qt=RegExp("[\\u200d"+vt+xt+Ot+"]"),Jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],te=-1,ee={};ee[L]=ee[I]=ee[k]=ee[D]=ee[P]=ee[M]=ee[j]=ee[K]=ee[U]=!0,ee[p]=ee[f]=ee[R]=ee[g]=ee[C]=ee[m]=ee[y]=ee[_]=ee[x]=ee[b]=ee[T]=ee[O]=ee[S]=ee[N]=ee[w]=!1;var re={};re[p]=re[f]=re[R]=re[C]=re[g]=re[m]=re[L]=re[I]=re[k]=re[D]=re[P]=re[x]=re[b]=re[T]=re[O]=re[S]=re[N]=re[A]=re[M]=re[j]=re[K]=re[U]=!0,re[y]=re[_]=re[w]=!1;var ne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ie=parseFloat,oe=parseInt,se="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ae="object"==typeof self&&self&&self.Object===Object&&self,le=se||ae||Function("return this")(),ue="object"==typeof t&&t&&!t.nodeType&&t,ce=ue&&"object"==typeof e&&e&&!e.nodeType&&e,he=ce&&ce.exports===ue,de=he&&se.process,pe=function(){try{return ce&&ce.require&&ce.require("util").types||de&&de.binding&&de.binding("util")}catch{}}(),fe=pe&&pe.isArrayBuffer,ge=pe&&pe.isDate,me=pe&&pe.isMap,ye=pe&&pe.isRegExp,_e=pe&&pe.isSet,ve=pe&&pe.isTypedArray;function xe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function be(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i-1}function Ae(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Xe(t,e){for(var r=t.length;r--&&Me(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Je=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ze=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function tr(t){return"\\"+ne[t]}function er(t){return Qt.test(t)}function rr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function nr(t,e){return function(r){return t(e(r))}}function ir(t,e){for(var r=-1,n=t.length,i=0,s=[];++r",""":'"',"'":"'"}),cr=function t(e){var rt,vt=(e=null==e?le:cr.defaults(le.Object(),e,cr.pick(le,Zt))).Array,xt=e.Date,bt=e.Error,Tt=e.Function,Et=e.Math,Ot=e.Object,St=e.RegExp,Nt=e.String,At=e.TypeError,wt=vt.prototype,Rt=Tt.prototype,Ct=Ot.prototype,Lt=e["__core-js_shared__"],It=Rt.toString,kt=Ct.hasOwnProperty,Dt=0,Pt=(rt=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+rt:"",Mt=Ct.toString,jt=It.call(Ot),Kt=le._,Ut=St("^"+It.call(kt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=he?e.Buffer:r,$t=e.Symbol,Ht=e.Uint8Array,Bt=Ft?Ft.allocUnsafe:r,qt=nr(Ot.getPrototypeOf,Ot),Gt=Ot.create,zt=Ct.propertyIsEnumerable,Wt=wt.splice,Qt=$t?$t.isConcatSpreadable:r,ne=$t?$t.iterator:r,se=$t?$t.toStringTag:r,ae=function(){try{var t=lo(Ot,"defineProperty");return t({},"",{}),t}catch{}}(),ue=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=xt&&xt.now!==le.Date.now&&xt.now,de=e.setTimeout!==le.setTimeout&&e.setTimeout,pe=Et.ceil,ke=Et.floor,$e=Ot.getOwnPropertySymbols,hr=Ft?Ft.isBuffer:r,dr=e.isFinite,pr=wt.join,fr=nr(Ot.keys,Ot),gr=Et.max,mr=Et.min,yr=xt.now,_r=e.parseInt,vr=Et.random,xr=wt.reverse,br=lo(e,"DataView"),Tr=lo(e,"Map"),Er=lo(e,"Promise"),Or=lo(e,"Set"),Sr=lo(e,"WeakMap"),Nr=lo(Ot,"create"),Ar=Sr&&new Sr,wr={},Rr=Ko(br),Cr=Ko(Tr),Lr=Ko(Er),Ir=Ko(Or),kr=Ko(Sr),Dr=$t?$t.prototype:r,Pr=Dr?Dr.valueOf:r,Mr=Dr?Dr.toString:r;function jr(t){if(ea(t)&&!qs(t)&&!(t instanceof $r)){if(t instanceof Fr)return t;if(kt.call(t,"__wrapped__"))return Uo(t)}return new Fr(t)}var Kr=function(){function t(){}return function(e){if(!ta(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Ur(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,n,i,o,s){var a,l=1&e,u=2&e,c=4&e;if(n&&(a=o?n(t,i,o,s):n(t)),a!==r)return a;if(!ta(t))return t;var h=qs(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&kt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Ni(t,a)}else{var d=ho(t),f=d==_||d==v;if(Ys(t))return xi(t,l);if(d==T||d==p||f&&!o){if(a=u||f?{}:fo(t),!l)return u?function(t,e){return Ai(t,co(t),e)}(t,function(t,e){return t&&Ai(e,Ia(e),t)}(a,t)):function(t,e){return Ai(t,uo(t),e)}(t,en(a,t))}else{if(!re[d])return o?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case R:return bi(t);case g:case m:return new n(+t);case C:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case I:case k:case D:case P:case M:case j:case K:case U:return Ti(t,r);case x:return new n;case b:case N:return new n(t);case O:return function(t){var e=new t.constructor(t.source,ct.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new n;case A:return function(t){return Pr?Ot(Pr.call(t)):{}}(t)}}(t,d,l)}}s||(s=new zr);var y=s.get(t);if(y)return y;s.set(t,a),sa(t)?t.forEach((function(r){a.add(sn(r,e,n,r,t,s))})):ra(t)&&t.forEach((function(r,i){a.set(i,sn(r,e,n,i,t,s))}));var E=h?r:(c?u?eo:to:u?Ia:La)(t);return Te(E||t,(function(r,i){E&&(r=t[i=r]),Jr(a,i,sn(r,e,n,i,t,s))})),a}function an(t,e,n){var i=n.length;if(null==t)return!i;for(t=Ot(t);i--;){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a))return!1}return!0}function ln(t,e,i){if("function"!=typeof t)throw new At(n);return Ro((function(){t.apply(r,i)}),e)}function un(t,e,r,n){var i=-1,o=Ne,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=we(e,ze(r))),n?(o=Ae,s=!1):e.length>=200&&(o=Ye,s=!1,e=new Gr(e));t:for(;++i-1},Br.prototype.set=function(t,e){var r=this.__data__,n=Zr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Tr||Br),string:new Hr}},qr.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},qr.prototype.get=function(t){return so(this,t).get(t)},qr.prototype.has=function(t){return so(this,t).has(t)},qr.prototype.set=function(t,e){var r=so(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,i),this},Gr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.clear=function(){this.__data__=new Br,this.size=0},zr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},zr.prototype.get=function(t){return this.__data__.get(t)},zr.prototype.has=function(t){return this.__data__.has(t)},zr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!Tr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(t,e),this.size=r.size,this};var cn=Ci(_n),hn=Ci(vn,!0);function dn(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function pn(t,e,n){for(var i=-1,o=t.length;++i0&&r(a)?e>1?gn(a,e-1,r,n,i):Re(i,a):n||(i[i.length]=a)}return i}var mn=Li(),yn=Li(!0);function _n(t,e){return t&&mn(t,e,La)}function vn(t,e){return t&&yn(t,e,La)}function xn(t,e){return Se(e,(function(e){return Qs(t[e])}))}function bn(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&ne}function Sn(t,e){return null!=t&&kt.call(t,e)}function Nn(t,e){return null!=t&&e in Ot(t)}function An(t,e,n){for(var i=n?Ae:Ne,o=t[0].length,s=t.length,a=s,l=vt(s),u=1/0,c=[];a--;){var h=t[a];a&&e&&(h=we(h,ze(e))),u=mr(h.length,u),l[a]=!n&&(e||o>=120&&h.length>=120)?new Gr(a&&h):r}h=t[0];var d=-1,p=l[0];t:for(;++d=a?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Mn(t,(function(t,r,i){return{criteria:we(e,(function(e){return e(t)})),index:++n,value:t}})))}function Hn(t,e,r){for(var n=-1,i=e.length,o={};++n-1;)a!==t&&Wt.call(a,l,1),Wt.call(t,l,1);return t}function qn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Wt.call(t,i,1):li(t,i)}}return t}function Gn(t,e){return t+ke(vr()*(e-t+1))}function zn(t,e){var r="";if(!t||e<1||e>u)return r;do{e%2&&(r+=t),(e=ke(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return Co(Oo(t,e,nl),t+"")}function Yn(t){return Yr(Fa(t))}function Wn(t,e){var r=Fa(t);return ko(r,on(e,0,r.length))}function Xn(t,e,n,i){if(!ta(t))return t;for(var o=-1,s=(e=mi(e,t)).length,a=s-1,l=t;null!=l&&++oi?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=vt(i);++n>>1,s=t[o];null!==s&&!la(s)&&(r?s<=e:s=200){var u=e?null:zi(t);if(u)return or(u);s=!1,i=Ye,l=new Gr}else l=e?[]:a;t:for(;++n=i?t:ti(t,e,n)}var vi=ue||function(t){return le.clearTimeout(t)};function xi(t,e){if(e)return t.slice();var r=t.length,n=Bt?Bt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Ti(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,s=la(t),a=e!==r,l=null===e,u=e==e,c=la(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&t1?n[o-1]:r,a=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,a&&yo(n[0],n[1],a)&&(s=o<3?r:s,o=1),e=Ot(e);++i-1?o[s?e[a]:a]:r}}function Mi(t){return Zi((function(e){var i=e.length,o=i,s=Fr.prototype.thru;for(t&&e.reverse();o--;){var a=e[o];if("function"!=typeof a)throw new At(n);if(s&&!l&&"wrapper"==no(a))var l=new Fr([],!0)}for(o=l?o:i;++o1&&_.reverse(),d&&cl))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var d=-1,p=!0,f=2&n?new Gr:r;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Te(d,(function(r){var n="_."+r[0];e&r[1]&&!Ne(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(ot):[]}(n),r)))}function Io(t){var e=0,n=0;return function(){var i=yr(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function ko(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,os(t,n)}));function ds(t){var e=jr(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var fs=Zi((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $r&&mo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:r}),new Fr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)})),gs=wi((function(t,e,r){kt.call(t,r)?++t[r]:rn(t,r,1)})),ms=Pi(Bo),ys=Pi(qo);function _s(t,e){return(qs(t)?Te:cn)(t,oo(e,3))}function vs(t,e){return(qs(t)?Ee:hn)(t,oo(e,3))}var xs=wi((function(t,e,r){kt.call(t,r)?t[r].push(e):rn(t,r,[e])})),bs=Vn((function(t,e,r){var n=-1,i="function"==typeof e,o=zs(t)?vt(t.length):[];return cn(t,(function(t){o[++n]=i?xe(e,t,r):wn(t,e,r)})),o})),Ts=wi((function(t,e,r){rn(t,r,e)}));function Es(t,e){return(qs(t)?we:Mn)(t,oo(e,3))}var Os=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ss=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yo(t,e[0],e[1])?e=[]:r>2&&yo(e[0],e[1],e[2])&&(e=[e[0]]),$n(t,gn(e,1),[])})),Ns=ce||function(){return le.Date.now()};function As(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Yi(t,a,r,r,r,r,e)}function ws(t,e){var i;if("function"!=typeof e)throw new At(n);return t=fa(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Rs=Vn((function(t,e,r){var n=1;if(r.length){var i=ir(r,io(Rs));n|=s}return Yi(t,n,e,r,i)})),Cs=Vn((function(t,e,r){var n=3;if(r.length){var i=ir(r,io(Cs));n|=s}return Yi(e,n,t,r,i)}));function Ls(t,e,i){var o,s,a,l,u,c,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new At(n);function g(e){var n=o,i=s;return o=s=r,h=e,l=t.apply(i,n)}function m(t){return h=t,u=Ro(_,e),d?g(t):l}function y(t){var n=t-c;return c===r||n>=e||n<0||p&&t-h>=a}function _(){var t=Ns();if(y(t))return v(t);u=Ro(_,function(t){var r=e-(t-c);return p?mr(r,a-(t-h)):r}(t))}function v(t){return u=r,f&&o?g(t):(o=s=r,l)}function x(){var t=Ns(),n=y(t);if(o=arguments,s=this,c=t,n){if(u===r)return m(c);if(p)return vi(u),u=Ro(_,e),g(c)}return u===r&&(u=Ro(_,e)),l}return e=ma(e)||0,ta(i)&&(d=!!i.leading,a=(p="maxWait"in i)?gr(ma(i.maxWait)||0,e):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){u!==r&&vi(u),h=0,o=c=s=u=r},x.flush=function(){return u===r?l:v(Ns())},x}var Is=Vn((function(t,e){return ln(t,1,e)})),ks=Vn((function(t,e,r){return ln(t,ma(e)||0,r)}));function Ds(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ds.Cache||qr),r}function Ps(t){if("function"!=typeof t)throw new At(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ds.Cache=qr;var Ms=yi((function(t,e){var r=(e=1==e.length&&qs(e[0])?we(e[0],ze(oo())):we(gn(e,1),ze(oo()))).length;return Vn((function(n){for(var i=-1,o=mr(n.length,r);++i=e})),Bs=Rn(function(){return arguments}())?Rn:function(t){return ea(t)&&kt.call(t,"callee")&&!zt.call(t,"callee")},qs=vt.isArray,Gs=fe?ze(fe):function(t){return ea(t)&&En(t)==R};function zs(t){return null!=t&&Zs(t.length)&&!Qs(t)}function Vs(t){return ea(t)&&zs(t)}var Ys=hr||ml,Ws=ge?ze(ge):function(t){return ea(t)&&En(t)==m};function Xs(t){if(!ea(t))return!1;var e=En(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Qs(t){if(!ta(t))return!1;var e=En(t);return e==_||e==v||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==fa(t)}function Zs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var ra=me?ze(me):function(t){return ea(t)&&ho(t)==x};function na(t){return"number"==typeof t||ea(t)&&En(t)==b}function ia(t){if(!ea(t)||En(t)!=T)return!1;var e=qt(t);if(null===e)return!0;var r=kt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==jt}var oa=ye?ze(ye):function(t){return ea(t)&&En(t)==O},sa=_e?ze(_e):function(t){return ea(t)&&ho(t)==S};function aa(t){return"string"==typeof t||!qs(t)&&ea(t)&&En(t)==N}function la(t){return"symbol"==typeof t||ea(t)&&En(t)==A}var ua=ve?ze(ve):function(t){return ea(t)&&Zs(t.length)&&!!ee[En(t)]},ca=Bi(Pn),ha=Bi((function(t,e){return t<=e}));function da(t){if(!t)return[];if(zs(t))return aa(t)?ar(t):Ni(t);if(ne&&t[ne])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[ne]());var e=ho(t);return(e==x?rr:e==S?or:Fa)(t)}function pa(t){return t?(t=ma(t))===l||t===-l?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fa(t){var e=pa(t),r=e%1;return e==e?r?e-r:e:0}function ga(t){return t?on(fa(t),0,h):0}function ma(t){if("number"==typeof t)return t;if(la(t))return c;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var r=dt.test(t);return r||ft.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?c:+t}function ya(t){return Ai(t,Ia(t))}function _a(t){return null==t?"":si(t)}var va=Ri((function(t,e){if(bo(e)||zs(e))Ai(e,La(e),t);else for(var r in e)kt.call(e,r)&&Jr(t,r,e[r])})),xa=Ri((function(t,e){Ai(e,Ia(e),t)})),ba=Ri((function(t,e,r,n){Ai(e,Ia(e),t,n)})),Ta=Ri((function(t,e,r,n){Ai(e,La(e),t,n)})),Ea=Zi(nn),Oa=Vn((function(t,e){t=Ot(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&yo(e[0],e[1],o)&&(i=1);++n1),e})),Ai(t,eo(t),r),n&&(r=sn(r,7,Qi));for(var i=e.length;i--;)li(r,e[i]);return r})),Ma=Zi((function(t,e){return null==t?{}:function(t,e){return Hn(t,e,(function(e,r){return Aa(t,r)}))}(t,e)}));function ja(t,e){if(null==t)return{};var r=we(eo(t),(function(t){return[t]}));return e=oo(e),Hn(t,r,(function(t,r){return e(t,r[0])}))}var Ka=Vi(La),Ua=Vi(Ia);function Fa(t){return null==t?[]:Ve(t,La(t))}var $a=ki((function(t,e,r){return e=e.toLowerCase(),t+(r?Ha(e):e)}));function Ha(t){return Xa(_a(t).toLowerCase())}function Ba(t){return(t=_a(t))&&t.replace(mt,Je).replace(Yt,"")}var qa=ki((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ga=ki((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),za=Ii("toLowerCase"),Va=ki((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ya=ki((function(t,e,r){return t+(r?" ":"")+Xa(e)})),Wa=ki((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xa=Ii("toUpperCase");function Qa(t,e,n){return t=_a(t),(e=n?r:e)===r?function(t){return Jt.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(st)||[]}(t):t.match(e)||[]}var Ja=Vn((function(t,e){try{return xe(t,r,e)}catch(t){return Xs(t)?t:new bt(t)}})),Za=Zi((function(t,e){return Te(e,(function(e){e=jo(e),rn(t,e,Rs(t[e],t))})),t}));function tl(t){return function(){return t}}var el=Mi(),rl=Mi(!0);function nl(t){return t}function il(t){return kn("function"==typeof t?t:sn(t,1))}var ol=Vn((function(t,e){return function(r){return wn(r,t,e)}})),sl=Vn((function(t,e){return function(r){return wn(t,r,e)}}));function al(t,e,r){var n=La(e),i=xn(e,n);null==r&&(!ta(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=xn(e,La(e)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Qs(t);return Te(i,(function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=Ni(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Re([this.value()],arguments))})})),t}function ll(){}var ul=Fi(we),cl=Fi(Oe),hl=Fi(Ie);function dl(t){return _o(t)?Fe(jo(t)):function(t){return function(e){return bn(e,t)}}(t)}var pl=Hi(),fl=Hi(!0);function gl(){return[]}function ml(){return!1}var yl=Ui((function(t,e){return t+e}),0),_l=Gi("ceil"),vl=Ui((function(t,e){return t/e}),1),xl=Gi("floor"),bl=Ui((function(t,e){return t*e}),1),Tl=Gi("round"),El=Ui((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new At(n);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=As,jr.assign=va,jr.assignIn=xa,jr.assignInWith=ba,jr.assignWith=Ta,jr.at=Ea,jr.before=ws,jr.bind=Rs,jr.bindAll=Za,jr.bindKey=Cs,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},jr.chain=ds,jr.chunk=function(t,e,n){e=(n?yo(t,e,n):e===r)?1:gr(fa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=vt(pe(i/e));oo?0:o+n),(i=i===r||i>o?o:fa(i))<0&&(i+=o),i=n>i?0:ga(i);n>>0)?(t=_a(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=si(e))&&er(t)?_i(ar(t),0,n):t.split(e,n):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new At(n);return e=null==e?0:gr(fa(e),0),Vn((function(r){var n=r[e],i=_i(r,0,e);return n&&Re(i,n),xe(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},jr.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===r?1:fa(e))<0?0:e):[]},jr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ti(t,(e=i-(e=n||e===r?1:fa(e)))<0?0:e,i):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new At(n);return ta(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ls(t,e,{leading:i,maxWait:e,trailing:o})},jr.thru=ps,jr.toArray=da,jr.toPairs=Ka,jr.toPairsIn=Ua,jr.toPath=function(t){return qs(t)?we(t,jo):la(t)?[t]:Ni(Mo(_a(t)))},jr.toPlainObject=ya,jr.transform=function(t,e,r){var n=qs(t),i=n||Ys(t)||ua(t);if(e=oo(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:ta(t)&&Qs(o)?Kr(qt(t)):{}}return(i?Te:_n)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return As(t,1)},jr.union=es,jr.unionBy=rs,jr.unionWith=ns,jr.uniq=function(t){return t&&t.length?ai(t):[]},jr.uniqBy=function(t,e){return t&&t.length?ai(t,oo(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?ai(t,r,e):[]},jr.unset=function(t,e){return null==t||li(t,e)},jr.unzip=is,jr.unzipWith=os,jr.update=function(t,e,r){return null==t?t:ui(t,e,gi(r))},jr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ui(t,e,gi(n),i)},jr.values=Fa,jr.valuesIn=function(t){return null==t?[]:Ve(t,Ia(t))},jr.without=ss,jr.words=Qa,jr.wrap=function(t,e){return js(gi(e),t)},jr.xor=as,jr.xorBy=ls,jr.xorWith=us,jr.zip=cs,jr.zipObject=function(t,e){return pi(t||[],e||[],Jr)},jr.zipObjectDeep=function(t,e){return pi(t||[],e||[],Xn)},jr.zipWith=hs,jr.entries=Ka,jr.entriesIn=Ua,jr.extend=xa,jr.extendWith=ba,al(jr,jr),jr.add=yl,jr.attempt=Ja,jr.camelCase=$a,jr.capitalize=Ha,jr.ceil=_l,jr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ma(n))==n?n:0),e!==r&&(e=(e=ma(e))==e?e:0),on(ma(t),e,n)},jr.clone=function(t){return sn(t,4)},jr.cloneDeep=function(t){return sn(t,5)},jr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:r)},jr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:r)},jr.conformsTo=function(t,e){return null==e||an(t,e,La(e))},jr.deburr=Ba,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=vl,jr.endsWith=function(t,e,n){t=_a(t),e=si(e);var i=t.length,o=n=n===r?i:on(fa(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},jr.eq=Fs,jr.escape=function(t){return(t=_a(t))&&z.test(t)?t.replace(q,Ze):t},jr.escapeRegExp=function(t){return(t=_a(t))&&tt.test(t)?t.replace(Z,"\\$&"):t},jr.every=function(t,e,n){var i=qs(t)?Oe:dn;return n&&yo(t,e,n)&&(e=r),i(t,oo(e,3))},jr.find=ms,jr.findIndex=Bo,jr.findKey=function(t,e){return De(t,oo(e,3),_n)},jr.findLast=ys,jr.findLastIndex=qo,jr.findLastKey=function(t,e){return De(t,oo(e,3),vn)},jr.floor=xl,jr.forEach=_s,jr.forEachRight=vs,jr.forIn=function(t,e){return null==t?t:mn(t,oo(e,3),Ia)},jr.forInRight=function(t,e){return null==t?t:yn(t,oo(e,3),Ia)},jr.forOwn=function(t,e){return t&&_n(t,oo(e,3))},jr.forOwnRight=function(t,e){return t&&vn(t,oo(e,3))},jr.get=Na,jr.gt=$s,jr.gte=Hs,jr.has=function(t,e){return null!=t&&po(t,e,Sn)},jr.hasIn=Aa,jr.head=zo,jr.identity=nl,jr.includes=function(t,e,r,n){t=zs(t)?t:Fa(t),r=r&&!n?fa(r):0;var i=t.length;return r<0&&(r=gr(i+r,0)),aa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Me(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:fa(r);return i<0&&(i=gr(n+i,0)),Me(t,e,i)},jr.inRange=function(t,e,n){return e=pa(e),n===r?(n=e,e=0):n=pa(n),function(t,e,r){return t>=mr(e,r)&&t=-u&&t<=u},jr.isSet=sa,jr.isString=aa,jr.isSymbol=la,jr.isTypedArray=ua,jr.isUndefined=function(t){return t===r},jr.isWeakMap=function(t){return ea(t)&&ho(t)==w},jr.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==En(t)},jr.join=function(t,e){return null==t?"":pr.call(t,e)},jr.kebabCase=qa,jr.last=Xo,jr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=fa(n))<0?gr(i+o,0):mr(o,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Pe(t,Ke,o,!0)},jr.lowerCase=Ga,jr.lowerFirst=za,jr.lt=ca,jr.lte=ha,jr.max=function(t){return t&&t.length?pn(t,nl,On):r},jr.maxBy=function(t,e){return t&&t.length?pn(t,oo(e,2),On):r},jr.mean=function(t){return Ue(t,nl)},jr.meanBy=function(t,e){return Ue(t,oo(e,2))},jr.min=function(t){return t&&t.length?pn(t,nl,Pn):r},jr.minBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Pn):r},jr.stubArray=gl,jr.stubFalse=ml,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=bl,jr.nth=function(t,e){return t&&t.length?Fn(t,fa(e)):r},jr.noConflict=function(){return le._===this&&(le._=Kt),this},jr.noop=ll,jr.now=Ns,jr.pad=function(t,e,r){t=_a(t);var n=(e=fa(e))?sr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return $i(ke(i),r)+t+$i(pe(i),r)},jr.padEnd=function(t,e,r){t=_a(t);var n=(e=fa(e))?sr(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var o=vr();return mr(t+o*(e-t+ie("1e-"+((o+"").length-1))),e)}return Gn(t,e)},jr.reduce=function(t,e,r){var n=qs(t)?Ce:He,i=arguments.length<3;return n(t,oo(e,4),r,i,cn)},jr.reduceRight=function(t,e,r){var n=qs(t)?Le:He,i=arguments.length<3;return n(t,oo(e,4),r,i,hn)},jr.repeat=function(t,e,n){return e=(n?yo(t,e,n):e===r)?1:fa(e),zn(_a(t),e)},jr.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,n){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=r);++iu)return[];var r=h,n=mr(t,h);e=oo(e),t-=h;for(var i=qe(n,e);++r=s)return t;var l=n-sr(i);if(l<1)return i;var u=a?_i(a,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(a&&(l+=u.length-l),oa(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=St(o.source,_a(ct.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===r?l:d)}}else if(t.indexOf(si(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},jr.unescape=function(t){return(t=_a(t))&&G.test(t)?t.replace(B,ur):t},jr.uniqueId=function(t){var e=++Dt;return _a(t)+e},jr.upperCase=Wa,jr.upperFirst=Xa,jr.each=_s,jr.eachRight=vs,jr.first=zo,al(jr,function(){var t={};return _n(jr,(function(e,r){kt.call(jr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),jr.VERSION="4.17.23",Te(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),Te(["drop","take"],(function(t,e){$r.prototype[t]=function(n){n=n===r?1:gr(fa(n),0);var i=this.__filtered__&&!e?new $r(this):this.clone();return i.__filtered__?i.__takeCount__=mr(n,i.__takeCount__):i.__views__.push({size:mr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},$r.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Te(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;$r.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Te(["head","last"],(function(t,e){var r="take"+(e?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),Te(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(nl)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new $r(this):this.map((function(r){return wn(r,t,e)}))})),$r.prototype.reject=function(t){return this.filter(Ps(oo(t)))},$r.prototype.slice=function(t,e){t=fa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $r(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=fa(e))<0?n.dropRight(-e):n.take(e-t)),n)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(h)},_n($r.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=jr[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,l=e instanceof $r,u=a[0],c=l||qs(e),h=function(t){var e=o.apply(jr,Re([t],a));return i&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=l&&!p;if(!s&&c){e=g?e:new $r(this);var m=t.apply(e,a);return m.__actions__.push({func:ps,args:[h],thisArg:r}),new Fr(m,d)}return f&&g?t.apply(this,a):(m=this.thru(h),f?i?m.value()[0]:m.value():m)})})),Te(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(qs(i)?i:[],t)}return this[r]((function(r){return e.apply(qs(r)?r:[],t)}))}})),_n($r.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";kt.call(wr,n)||(wr[n]=[]),wr[n].push({name:e,func:r})}})),wr[ji(r,2).name]=[{name:"wrapper",func:r}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=qs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,n=this;n instanceof Ur;){var i=Uo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var e=t;return this.__actions__.length&&(e=new $r(this)),(e=e.reverse()).__actions__.push({func:ps,args:[ts],thisArg:r}),new Fr(e,this.__chain__)}return this.thru(ts)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,ne&&(jr.prototype[ne]=function(){return this}),jr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(le._=cr,define((function(){return cr}))):ce?((ce.exports=cr)._=cr,ue._=cr):le._=cr}).call(t)})),Dm=p(((t,e)=>{var r;if(h)try{r=km()}catch{}r||(r=window._),e.exports=r})),Pm=p(((t,e)=>{e.exports=function(){function t(t,e,r,n,i,o){this.message=t,this.expected=e,this.found=r,this.offset=n,this.line=i,this.column=o,this.name="SyntaxError"}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(t,Error),{SyntaxError:t,parse:function(e){var r,n=arguments.length>1?arguments[1]:{},i={},o={start:_e,graphStmt:ve},s=_e,a=i,l=null,u="{",c={type:"literal",value:"{",description:'"{"'},h="}",d={type:"literal",value:"}",description:'"}"'},p=function(t,e,r,n){return{type:e,id:r,strict:null!==t,stmts:n}},f=";",g={type:"literal",value:";",description:'";"'},m=function(t,e){for(var r=[t],n=0;n",description:'"->"'},U=function(t,e){var r=[t];if(e)for(var n=0;nt&&(ce=0,he={line:1,column:1,seenCR:!1}),function(t,r,n){var i,o;for(i=r;ide&&(de=ue,pe=[]),pe.push(t))}function ye(r,n,i){var o=ge(i),s=ie.description?1:0}));e1?n.slice(0,-1).join(", ")+" or "+n[t.length-1]:n[0])+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+e(t)})).replace(/[\u0180-\u0FFF]/g,(function(t){return"\\u0"+e(t)})).replace(/[\u1080-\uFFFF]/g,(function(t){return"\\u"+e(t)}))}(e)+'"':"end of input")+" found."}(n,s),n,s,i,o.line,o.column)}function _e(){var t,e;if(t=[],(e=ve())!==i)for(;e!==i;)t.push(e),e=ve();else t=a;return t}function ve(){var t,r,n,o,s,f,g,m,y,_,v,x,b,T;for(t=ue,r=[],n=ze();n!==i;)r.push(n),n=ze();if(r!==i)if(n=ue,(o=He())!==i&&(s=ze())!==i?n=o=[o,s]:(ue=n,n=a),n===i&&(n=l),n!==i)if((o=Be())!==i){for(s=[],f=ze();f!==i;)s.push(f),f=ze();if(s!==i)if((f=Me())===i&&(f=l),f!==i){for(g=[],m=ze();m!==i;)g.push(m),m=ze();if(g!==i)if(123===e.charCodeAt(ue)?(m=u,ue++):(m=i,0===fe&&me(c)),m!==i){for(y=[],_=ze();_!==i;)y.push(_),_=ze();if(y!==i)if((_=xe())===i&&(_=l),_!==i){for(v=[],x=ze();x!==i;)v.push(x),x=ze();if(v!==i)if(125===e.charCodeAt(ue)?(x=h,ue++):(x=i,0===fe&&me(d)),x!==i){for(b=[],T=ze();T!==i;)b.push(T),T=ze();b!==i?t=r=p(n,o,f,_):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a;else ue=t,t=a;return t}function xe(){var t,r,n,o,s,u,c,h,d,p;if(t=ue,(r=be())!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if(59===e.charCodeAt(ue)?(o=f,ue++):(o=i,0===fe&&me(g)),o===i&&(o=l),o!==i){for(s=[],u=ue,c=[],h=ze();h!==i;)c.push(h),h=ze();if(c!==i)if((h=be())!==i){for(d=[],p=ze();p!==i;)d.push(p),p=ze();d!==i?(59===e.charCodeAt(ue)?(p=f,ue++):(p=i,0===fe&&me(g)),p===i&&(p=l),p!==i?u=c=[c,h,d,p]:(ue=u,u=a)):(ue=u,u=a)}else ue=u,u=a;else ue=u,u=a;for(;u!==i;){for(s.push(u),u=ue,c=[],h=ze();h!==i;)c.push(h),h=ze();if(c!==i)if((h=be())!==i){for(d=[],p=ze();p!==i;)d.push(p),p=ze();d!==i?(59===e.charCodeAt(ue)?(p=f,ue++):(p=i,0===fe&&me(g)),p===i&&(p=l),p!==i?u=c=[c,h,d,p]:(ue=u,u=a)):(ue=u,u=a)}else ue=u,u=a;else ue=u,u=a}s!==i?t=r=m(r,s):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function be(){var t;return(t=Te())===i&&(t=Se())===i&&(t=Ne())===i&&(t=Ee())===i&&(t=Oe()),t}function Te(){var t,e,r,n;if(t=ue,(e=Ue())===i&&(e=je())===i&&(e=Ke()),e!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i&&(n=Ae())!==i?t=e=y(e,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ee(){var t,r,n,o,s,l;if(t=ue,(r=Me())!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if(61===e.charCodeAt(ue)?(o=_,ue++):(o=i,0===fe&&me(v)),o!==i){for(s=[],l=ze();l!==i;)s.push(l),l=ze();s!==i&&(l=Me())!==i?t=r=x(r,l):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Oe(){var t,e,r,n;if(t=ue,(e=ke())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i?((n=Ae())===i&&(n=l),n!==i?t=e=b(e,n):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return t}function Se(){var t,e,r,n,o,s;if(t=ue,(e=Ie())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();if(r!==i)if((n=Ce())!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();o!==i?((s=Ae())===i&&(s=l),s!==i?t=e=T(e,n,s):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Ne(){var t,r,n,o,s,p,f,g;if(t=ue,r=ue,(n=$e())!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i){if(s=ue,(p=Me())!==i){for(f=[],g=ze();g!==i;)f.push(g),g=ze();f!==i?s=p=[p,f]:(ue=s,s=a)}else ue=s,s=a;s===i&&(s=l),s!==i?r=n=[n,o,s]:(ue=r,r=a)}else ue=r,r=a}else ue=r,r=a;if(r===i&&(r=l),r!==i)if(123===e.charCodeAt(ue)?(n=u,ue++):(n=i,0===fe&&me(c)),n!==i){for(o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i)if((s=xe())===i&&(s=l),s!==i){for(p=[],f=ze();f!==i;)p.push(f),f=ze();p!==i?(125===e.charCodeAt(ue)?(f=h,ue++):(f=i,0===fe&&me(d)),f!==i?t=r=E(r,s):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;else ue=t,t=a;return t}function Ae(){var t,e,r,n,o,s;if(t=ue,(e=we())!==i){for(r=[],n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();for(o!==i&&(s=we())!==i?n=o=[o,s]:(ue=n,n=a);n!==i;){for(r.push(n),n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();o!==i&&(s=we())!==i?n=o=[o,s]:(ue=n,n=a)}r!==i?t=e=O(e,r):(ue=t,t=a)}else ue=t,t=a;return t}function we(){var t,r,n,o,s,u;if(t=ue,91===e.charCodeAt(ue)?(r=S,ue++):(r=i,0===fe&&me(N)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Re())===i&&(o=l),o!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();s!==i?(93===e.charCodeAt(ue)?(u=A,ue++):(u=i,0===fe&&me(w)),u!==i?t=r=R(o):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Re(){var t,r,n,o,s,u,c,h;if(t=ue,(r=Le())!==i){for(n=[],o=ue,s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i)if(44===e.charCodeAt(ue)?(u=C,ue++):(u=i,0===fe&&me(L)),u===i&&(u=l),u!==i){for(c=[],h=ze();h!==i;)c.push(h),h=ze();c!==i&&(h=Le())!==i?o=s=[s,u,c,h]:(ue=o,o=a)}else ue=o,o=a;else ue=o,o=a;for(;o!==i;){for(n.push(o),o=ue,s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i)if(44===e.charCodeAt(ue)?(u=C,ue++):(u=i,0===fe&&me(L)),u===i&&(u=l),u!==i){for(c=[],h=ze();h!==i;)c.push(h),h=ze();c!==i&&(h=Le())!==i?o=s=[s,u,c,h]:(ue=o,o=a)}else ue=o,o=a;else ue=o,o=a}n!==i?t=r=I(r,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ce(){var t,r,n,o,s,u;if(t=ue,r=ue,e.substr(ue,2)===k?(n=k,ue+=2):(n=i,0===fe&&me(D)),n!==i&&(o=(o=P())?a:M)!==i?r=n=[n,o]:(ue=r,r=a),r===i&&(r=ue,e.substr(ue,2)===j?(n=j,ue+=2):(n=i,0===fe&&me(K)),n!==i&&(o=(o=P())?M:a)!==i?r=n=[n,o]:(ue=r,r=a)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Ie())!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();s!==i?((u=Ce())===i&&(u=l),u!==i?t=r=U(o,u):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Le(){var t,r,n,o,s,u,c;if(t=ue,(r=Me())!==i){for(n=ue,o=[],s=ze();s!==i;)o.push(s),s=ze();if(o!==i)if(61===e.charCodeAt(ue)?(s=_,ue++):(s=i,0===fe&&me(v)),s!==i){for(u=[],c=ze();c!==i;)u.push(c),c=ze();u!==i&&(c=Me())!==i?n=o=[o,s,u,c]:(ue=n,n=a)}else ue=n,n=a;else ue=n,n=a;n===i&&(n=l),n!==i?t=r=F(r,n):(ue=t,t=a)}else ue=t,t=a;return t}function Ie(){var t,e;return(t=Ne())===i&&(t=ue,(e=ke())!==i&&(e=$(e)),t=e),t}function ke(){var t,e,r,n;if(t=ue,(e=Me())!==i){for(r=[],n=ze();n!==i;)r.push(n),n=ze();r!==i?((n=De())===i&&(n=l),n!==i?t=e=H(e):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return t}function De(){var t,r,n,o,s,u,c,h,d;if(t=ue,58===e.charCodeAt(ue)?(r=B,ue++):(r=i,0===fe&&me(q)),r!==i){for(n=[],o=ze();o!==i;)n.push(o),o=ze();if(n!==i)if((o=Me())!==i){for(s=[],u=ze();u!==i;)s.push(u),u=ze();if(s!==i){if(u=ue,58===e.charCodeAt(ue)?(c=B,ue++):(c=i,0===fe&&me(q)),c!==i){for(h=[],d=ze();d!==i;)h.push(d),d=ze();h!==i&&(d=Pe())!==i?u=c=[c,h,d]:(ue=u,u=a)}else ue=u,u=a;u===i&&(u=l),u!==i?t=r=[r,n,o,s,u]:(ue=t,t=a)}else ue=t,t=a}else ue=t,t=a;else ue=t,t=a}else ue=t,t=a;return t}function Pe(){var t;return e.substr(ue,2)===G?(t=G,ue+=2):(t=i,0===fe&&me(z)),t===i&&(e.substr(ue,2)===V?(t=V,ue+=2):(t=i,0===fe&&me(Y)),t===i&&(e.substr(ue,2)===W?(t=W,ue+=2):(t=i,0===fe&&me(X)),t===i&&(e.substr(ue,2)===Q?(t=Q,ue+=2):(t=i,0===fe&&me(J)),t===i&&(110===e.charCodeAt(ue)?(t=Z,ue++):(t=i,0===fe&&me(tt)),t===i&&(101===e.charCodeAt(ue)?(t=et,ue++):(t=i,0===fe&&me(rt)),t===i&&(115===e.charCodeAt(ue)?(t=nt,ue++):(t=i,0===fe&&me(it)),t===i&&(119===e.charCodeAt(ue)?(t=ot,ue++):(t=i,0===fe&&me(st)),t===i&&(99===e.charCodeAt(ue)?(t=at,ue++):(t=i,0===fe&&me(lt)),t===i&&(95===e.charCodeAt(ue)?(t=ut,ue++):(t=i,0===fe&&me(ct))))))))))),t}function Me(){var t,r,n,o,s,u,c;if(fe++,t=ue,dt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(pt)),r!==i){for(n=[],ft.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(gt));o!==i;)n.push(o),ft.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(gt));n!==i?t=r=mt(r,n):(ue=t,t=a)}else ue=t,t=a;if(t===i){if(t=ue,45===e.charCodeAt(ue)?(r=yt,ue++):(r=i,0===fe&&me(_t)),r===i&&(r=l),r!==i)if(46===e.charCodeAt(ue)?(n=vt,ue++):(n=i,0===fe&&me(xt)),n!==i){if(o=[],bt.test(e.charAt(ue))?(s=e.charAt(ue),ue++):(s=i,0===fe&&me(Tt)),s!==i)for(;s!==i;)o.push(s),bt.test(e.charAt(ue))?(s=e.charAt(ue),ue++):(s=i,0===fe&&me(Tt));else o=a;o!==i?t=r=Et(r,n,o):(ue=t,t=a)}else ue=t,t=a;else ue=t,t=a;if(t===i){if(t=ue,45===e.charCodeAt(ue)?(r=yt,ue++):(r=i,0===fe&&me(_t)),r===i&&(r=l),r!==i){if(n=[],bt.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(Tt)),o!==i)for(;o!==i;)n.push(o),bt.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(Tt));else n=a;if(n!==i){if(o=ue,46===e.charCodeAt(ue)?(s=vt,ue++):(s=i,0===fe&&me(xt)),s!==i){for(u=[],bt.test(e.charAt(ue))?(c=e.charAt(ue),ue++):(c=i,0===fe&&me(Tt));c!==i;)u.push(c),bt.test(e.charAt(ue))?(c=e.charAt(ue),ue++):(c=i,0===fe&&me(Tt));u!==i?o=s=[s,u]:(ue=o,o=a)}else ue=o,o=a;o===i&&(o=l),o!==i?t=r=Ot(r,n,o):(ue=t,t=a)}else ue=t,t=a}else ue=t,t=a;if(t===i)if(t=ue,34===e.charCodeAt(ue)?(r=St,ue++):(r=i,0===fe&&me(Nt)),r!==i){for(n=[],o=ue,e.substr(ue,2)===At?(s=At,ue+=2):(s=i,0===fe&&me(wt)),s!==i&&(s=Rt()),(o=s)===i&&(o=ue,92===e.charCodeAt(ue)?(s=Ct,ue++):(s=i,0===fe&&me(Lt)),s!==i?(It.test(e.charAt(ue))?(u=e.charAt(ue),ue++):(u=i,0===fe&&me(kt)),u!==i?o=s=Dt(u):(ue=o,o=a)):(ue=o,o=a),o===i&&(It.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(kt))));o!==i;)n.push(o),o=ue,e.substr(ue,2)===At?(s=At,ue+=2):(s=i,0===fe&&me(wt)),s!==i&&(s=Rt()),(o=s)===i&&(o=ue,92===e.charCodeAt(ue)?(s=Ct,ue++):(s=i,0===fe&&me(Lt)),s!==i?(It.test(e.charAt(ue))?(u=e.charAt(ue),ue++):(u=i,0===fe&&me(kt)),u!==i?o=s=Dt(u):(ue=o,o=a)):(ue=o,o=a),o===i&&(It.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(kt))));n!==i?(34===e.charCodeAt(ue)?(o=St,ue++):(o=i,0===fe&&me(Nt)),o!==i?t=r=Pt(n):(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a}}return fe--,t===i&&(r=i,0===fe&&me(ht)),t}function je(){var t;return e.substr(ue,4).toLowerCase()===Mt?(t=e.substr(ue,4),ue+=4):(t=i,0===fe&&me(jt)),t!==i&&(t=Kt(t)),t}function Ke(){var t;return e.substr(ue,4).toLowerCase()===Ut?(t=e.substr(ue,4),ue+=4):(t=i,0===fe&&me(Ft)),t!==i&&(t=Kt(t)),t}function Ue(){var t;return e.substr(ue,5).toLowerCase()===$t?(t=e.substr(ue,5),ue+=5):(t=i,0===fe&&me(Ht)),t!==i&&(t=Kt(t)),t}function Fe(){var t;return e.substr(ue,7).toLowerCase()===Bt?(t=e.substr(ue,7),ue+=7):(t=i,0===fe&&me(qt)),t!==i&&(t=Kt(t)),t}function $e(){var t;return e.substr(ue,8).toLowerCase()===Gt?(t=e.substr(ue,8),ue+=8):(t=i,0===fe&&me(zt)),t!==i&&(t=Kt(t)),t}function He(){var t;return e.substr(ue,6).toLowerCase()===Vt?(t=e.substr(ue,6),ue+=6):(t=i,0===fe&&me(Yt)),t!==i&&(t=Kt(t)),t}function Be(){var t,e;return(t=Ue())===i&&(t=ue,(e=Fe())!==i&&(e=Wt(e)),t=e),t}function qe(){var t,r;if(fe++,t=[],Qt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(Jt)),r!==i)for(;r!==i;)t.push(r),Qt.test(e.charAt(ue))?(r=e.charAt(ue),ue++):(r=i,0===fe&&me(Jt));else t=a;return fe--,t===i&&(r=i,0===fe&&me(Xt)),t}function Ge(){var t,r,n,o,s,l;if(fe++,t=ue,e.substr(ue,2)===te?(r=te,ue+=2):(r=i,0===fe&&me(ee)),r!==i){for(n=[],re.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(ne));o!==i;)n.push(o),re.test(e.charAt(ue))?(o=e.charAt(ue),ue++):(o=i,0===fe&&me(ne));n!==i?t=r=[r,n]:(ue=t,t=a)}else ue=t,t=a;if(t===i)if(t=ue,e.substr(ue,2)===ie?(r=ie,ue+=2):(r=i,0===fe&&me(oe)),r!==i){for(n=[],o=ue,s=ue,fe++,e.substr(ue,2)===se?(l=se,ue+=2):(l=i,0===fe&&me(ae)),fe--,l===i?s=M:(ue=s,s=a),s!==i?(e.length>ue?(l=e.charAt(ue),ue++):(l=i,0===fe&&me(le)),l!==i?o=s=[s,l]:(ue=o,o=a)):(ue=o,o=a);o!==i;)n.push(o),o=ue,s=ue,fe++,e.substr(ue,2)===se?(l=se,ue+=2):(l=i,0===fe&&me(ae)),fe--,l===i?s=M:(ue=s,s=a),s!==i?(e.length>ue?(l=e.charAt(ue),ue++):(l=i,0===fe&&me(le)),l!==i?o=s=[s,l]:(ue=o,o=a)):(ue=o,o=a);n!==i?(e.substr(ue,2)===se?(o=se,ue+=2):(o=i,0===fe&&me(ae)),o!==i?t=r=[r,n,o]:(ue=t,t=a)):(ue=t,t=a)}else ue=t,t=a;return fe--,t===i&&(r=i,0===fe&&me(Zt)),t}function ze(){var t;return(t=qe())===i&&(t=Ge()),t}var Ve,Ye=Dm();if((r=s())!==i&&ue===e.length)return r;throw r!==i&&ue{var r;if(h)try{r=gn()}catch{}r||(r=window.graphlib),e.exports=r})),jm=p(((t,e)=>{var r=Dm(),n=Mm().Graph;function i(t,e,n,s){switch(e.type){case"node":!function(t,e,n,i){var s=e.id,a=e.attrs;o(t,s,n,i),r.merge(t.node(s),a)}(t,e,n,s);break;case"edge":!function(t,e,n,o){var s,a,l=e.attrs;r.each(e.elems,(function(e){switch(i(t,e,n,o),e.type){case"node":a=[e.id];break;case"subgraph":a=function(t){var e,n={},i=[],o=i.push.bind(i);for(o(t);i.length;)switch(e=i.pop(),e.type){case"node":n[e.id]=!0;break;case"edge":r.each(e.elems,o);break;case"subgraph":r.each(e.stmts,o)}return r.keys(n)}(e)}r.each(s,(function(e){r.each(a,(function(i){var o;t.hasEdge(e,i)&&t.isMultigraph()&&(o=r.uniqueId("edge")),t.hasEdge(e,i,o)||t.setEdge(e,i,r.clone(r.last(n).edge),o),r.merge(t.edge(e,i,o),l)}))})),s=a}))}(t,e,n,s);break;case"subgraph":!function(t,e,n,s){var a=e.id;void 0===a&&(a=function(t){var e;do{e=r.uniqueId("sg")}while(t.hasNode(e));return e}(t)),n.push(r.clone(r.last(n))),o(t,a,n,s),r.each(e.stmts,(function(e){i(t,e,n,a)})),t.children(a).length||t.removeNode(a),n.pop()}(t,e,n,s);break;case"attr":!function(t,e,n){r.merge(r.last(n)[e.attrType],e.attrs)}(0,e,n);break;case"inlineAttr":!function(t,e,n,i){r.merge(i?t.node(i):t.graph(),e.attrs)}(t,e,0,s)}}function o(t,e,n,i){t.hasNode(e)||(t.setNode(e,r.clone(r.last(n).node)),t.setParent(e,i))}e.exports=function(t){var e="graph"!==t.type,o=!t.strict,s=[{node:{},edge:{}}],a=t.id,l=new n({directed:e,multigraph:o,compound:!0});return l.setGraph(null===a?{}:{id:a}),r.each(t.stmts,(function(t){i(l,t,s)})),l}})),Km=p(((t,e)=>{var r=Pm(),n=jm();e.exports=function(t){var e=r.parse(t,{startRule:"graphStmt"});return n(e)}})),Um=p(((t,e)=>{var r=Dm(),n=Pm(),i=jm();e.exports=function(t){var e=n.parse(t);return r.map(e,i)}})),Fm=p(((t,e)=>{var r=Dm();e.exports=function(t){var e=t.isDirected()?"->":"--",n=new a;t.isMultigraph()||n.write("strict "),n.writeLine((t.isDirected()?"digraph":"graph")+" {"),n.indent();var l=t.graph();return r.isObject(l)&&r.each(l,(function(t,e){n.writeLine(s(e)+"="+s(t)+";")})),i(t,void 0,n),t.edges().forEach((function(r){!function(t,e,r,n){var i=e.v,a=e.w,l=t.edge(e);n.write(s(i)+" "+r+" "+s(a)),o(l,n),n.writeLine()}(t,r,e,n)})),n.unindent(),n.writeLine("}"),n.toString()};var n=/^[a-zA-Z\200-\377_][a-zA-Z\200-\377_0-9]*$/;function i(t,e,n){var a=t.isCompound()?t.children(e):t.nodes();r.each(a,(function(e){t.isCompound()&&t.children(e).length?(n.writeLine("subgraph "+s(e)+" {"),n.indent(),r.isObject(t.node(e))&&r.map(t.node(e),(function(t,e){n.writeLine(s(e)+"="+s(t)+";")})),i(t,e,n),n.unindent(),n.writeLine("}")):function(t,e,r){r.write(s(e)),o(t.node(e),r),r.writeLine()}(t,e,n)}))}function o(t,e){if(r.isObject(t)){var n=r.map(t,(function(t,e){return s(e)+"="+s(t)}));n.length&&e.write(" ["+n.join(",")+"]")}}function s(t){return"number"==typeof t||t.toString().match(n)?t:'"'+t.toString().replace(/"/g,'\\"')+'"'}function a(){this._indent="",this._content="",this._shouldIndent=!0}a.prototype.INDENT=" ",a.prototype.indent=function(){this._indent+=this.INDENT},a.prototype.unindent=function(){this._indent=this._indent.slice(this.INDENT.length)},a.prototype.writeLine=function(t){this.write((t||"")+"\n"),this._shouldIndent=!0},a.prototype.write=function(t){this._shouldIndent&&(this._shouldIndent=!1,this._content+=this._indent),this._content+=t},a.prototype.toString=function(){return this._content}})),$m=p(((t,e)=>{e.exports="0.6.4"})),Hm=p(((t,e)=>{var r=Km(),n=Um(),i=Fm(),o=$m();e.exports={graphlib:Mm(),read:r,readMany:n,write:i,version:o,type:"dot",buffer:!1}})),Bm=p((t=>{var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function m(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||p}function y(){}function _(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var v=_.prototype=new y;v.constructor=_,f(v,m.prototype),v.isPureReactComponent=!0;var x=Array.isArray,b={H:null,A:null,T:null,S:null,V:null},T=Object.prototype.hasOwnProperty;function E(t,r,n,i,o,s){return n=s.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:s}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var S=/\/+/g;function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function A(){}function w(t,n,i,o,s){var a=typeof t;("undefined"===a||"boolean"===a)&&(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"bigint":case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case e:case r:l=!0;break;case h:return w((l=t._init)(t._payload),n,i,o,s)}}if(l)return s=s(t),l=""===o?"."+N(t,0):o,x(s)?(i="",null!=l&&(i=l.replace(S,"$&/")+"/"),w(s,n,i,"",(function(t){return t}))):null!=s&&(O(s)&&(s=function(t,e){return E(t.type,e,void 0,0,0,t.props)}(s,i+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(S,"$&/")+"/")+l)),n.push(s)),1;l=0;var u=""===o?".":o+":";if(x(t))for(var c=0;c{e.exports=Bm()})),Gm=p((t=>{var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,r,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==r.key&&(i=""+r.key),"key"in r)for(var o in n={},r)"key"!==o&&(n[o]=r[o]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==r?r:null,props:n}}t.Fragment=r,t.jsx=n,t.jsxs=n})),zm=p(((t,e)=>{e.exports=Gm()})),Vm=p(((t,e)=>{!function(r,n){"object"==typeof t&&typeof e<"u"?n(t):"function"==typeof define&&define.amd?define(["exports"],n):n(r.d3=r.d3||{})}(t,(function(t){function e(t,e){return te?1:t>=e?0:NaN}function r(t){return 1===t.length&&(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[o],r)<0?n=o+1:i=o}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;t(e[o],r)>0?i=o:n=o+1}return n}};var r}function n(t,e){return[t,e]}function i(t){return null===t?NaN:+t}function o(t,e){var r,n,o=t.length,s=0,a=-1,l=0,u=0;if(null==e)for(;++a1)return u/(s-1)}function s(t,e){var r=o(t,e);return r&&Math.sqrt(r)}function a(t,e){var r,n,i,o=t.length,s=-1;if(null==e){for(;++s=r)for(n=i=r;++sr&&(n=r),i=r)for(n=i=r;++sr&&(n=r),i0)return[t];if((n=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(i=Math.ceil(e-t+1));++a=0?(o>=Pu?10:o>=Mu?5:o>=ju?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pu?10:o>=Mu?5:o>=ju?2:1)}function p(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Pu?i*=10:o>=Mu?i*=5:o>=ju&&(i*=2),e=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,s=Math.floor(o),a=+r(t[s],s,t);return a+(+r(t[s+1],s+1,t)-a)*(o-s)}}function m(t){for(var e,r,n,i=t.length,o=-1,s=0;++o=0;)for(e=(n=t[i]).length;--e>=0;)r[--s]=n[e];return r}function y(t,e){var r,n,i=t.length,o=-1;if(null==e){for(;++o=r)for(n=r;++or&&(n=r)}else for(;++o=r)for(n=r;++or&&(n=r);return n}function _(t){if(!(i=t.length))return[];for(var e=-1,r=y(t,v),n=new Array(r);++e=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),zu.hasOwnProperty(e)?{space:zu[e],local:t}:t}function R(t){var e=w(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Gu&&e.documentElement.namespaceURI===Gu?e.createElement(t):e.createElementNS(r,t)}})(e)}function C(){}function L(t){return null==t?C:function(){return this.querySelector(t)}}function I(){return[]}function k(t){return null==t?I:function(){return this.querySelectorAll(t)}}function D(t){return new Array(t.length)}function P(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function M(t,e,r,n,i,o){for(var s,a=0,l=e.length,u=o.length;ae?1:t>=e?0:NaN}function U(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function F(t,e){return t.style.getPropertyValue(e)||U(t).getComputedStyle(t,null).getPropertyValue(e)}function $(t){return t.trim().split(/^|\s+/)}function H(t){return t.classList||new B(t)}function B(t){this._node=t,this._names=$(t.getAttribute("class")||"")}function q(t,e){for(var r=H(t),n=-1,i=e.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=oc.exec(t))?Rt(parseInt(e[1],16)):(e=sc.exec(t))?new kt(e[1],e[2],e[3],1):(e=ac.exec(t))?new kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=lc.exec(t))?Ct(e[1],e[2],e[3],e[4]):(e=uc.exec(t))?Ct(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,1):(e=hc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,e[4]):dc.hasOwnProperty(t)?Rt(dc[t]):"transparent"===t?new kt(NaN,NaN,NaN,0):null}function Rt(t){return new kt(t>>16&255,t>>8&255,255&t,1)}function Ct(t,e,r,n){return n<=0&&(t=e=r=NaN),new kt(t,e,r,n)}function Lt(t){return t instanceof At||(t=wt(t)),t?new kt((t=t.rgb()).r,t.g,t.b,t.opacity):new kt}function It(t,e,r,n){return 1===arguments.length?Lt(t):new kt(t,e,r,n??1)}function kt(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Dt(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Mt(t,e,r,n)}function Pt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof Mt)return new Mt(t.h,t.s,t.l,t.opacity);if(t instanceof At||(t=wt(t)),!t)return new Mt;if(t instanceof Mt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=NaN,a=o-i,l=(o+i)/2;return a?(s=e===o?(r-n)/a+6*(r0&&l<1?0:s,new Mt(s,a,l,t.opacity)}(t):new Mt(t,e,r,n??1)}function Mt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function jt(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Kt(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof zt){var e=t.h*pc;return new Ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof kt||(t=Lt(t));var r=qt(t.r),n=qt(t.g),i=qt(t.b),o=$t((.4124564*r+.3575761*n+.1804375*i)/gc),s=$t((.2126729*r+.7151522*n+.072175*i)/mc);return new Ft(116*s-16,500*(o-s),200*(s-$t((.0193339*r+.119192*n+.9503041*i)/yc)),t.opacity)}function Ut(t,e,r,n){return 1===arguments.length?Kt(t):new Ft(t,e,r,n??1)}function Ft(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function $t(t){return t>bc?Math.pow(t,1/3):t/xc+_c}function Ht(t){return t>vc?t*t*t:xc*(t-_c)}function Bt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof zt)return new zt(t.h,t.c,t.l,t.opacity);t instanceof Ft||(t=Kt(t));var e=Math.atan2(t.b,t.a)*fc;return new zt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new zt(t,e,r,n??1)}function zt(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function Vt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof Yt)return new Yt(t.h,t.s,t.l,t.opacity);t instanceof kt||(t=Lt(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(Ac*n+Sc*e-Nc*r)/(Ac+Sc-Nc),o=n-i,s=(Oc*(r-i)-Tc*o)/Ec,a=Math.sqrt(s*s+o*o)/(Oc*i*(1-i)),l=a?Math.atan2(s,o)*fc-120:NaN;return new Yt(l<0?l+360:l,a,i,t.opacity)}(t):new Yt(t,e,r,n??1)}function Yt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Wt(t,e,r,n,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*r+(1+3*t+3*o-3*s)*n+s*i)/6}function Xt(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],o=t[n+1],s=n>0?t[n-1]:2*i-o,a=n180||r<-180?r-360*Math.round(r/360):r):Jt(isNaN(t)?e:t)}function ee(t,e){var r=e-t;return r?Zt(t,r):Jt(isNaN(t)?e:t)}function re(t){return function(e){var r,n,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(r=0;rs&&(i=e.slice(s,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,u.push({i:a,x:oe(r,n)})),s=Kc.lastIndex;return s180?l+=360:l-a>180&&(a+=360),h.push({i:u.push(i(u)+"rotate(",null,n)-2,x:oe(a,l)})):l&&u.push(i(u)+"rotate("+l+n),function(t,e,r,o){t!==e?o.push({i:r.push(i(r)+"skewX(",null,n)-2,x:oe(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}(o.skewX,s.skewX,c,h),function(t,e,r,n,o,s){if(t!==r||e!==n){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:oe(t,r)},{i:a-2,x:oe(e,n)})}else 1===r&&1===n||o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,c,h),o=s=null,function(t){for(var e,r=-1,n=h.length;++r=0&&e._call.call(null,t),e=e._next;--Zc}function Te(){ih=(nh=sh.now())+oh,Zc=th=0;try{be()}finally{Zc=0,function(){for(var t,e,r=Ic,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ic=e);kc=t,Oe(n)}(),ih=0}}function Ee(){var t=sh.now(),e=t-nh;e>rh&&(oh-=e,nh=t)}function Oe(t){Zc||(th&&(th=clearTimeout(th)),t-ih>24?(t<1/0&&(th=setTimeout(Te,t-sh.now()-oh)),eh&&(eh=clearInterval(eh))):(eh||(nh=sh.now(),eh=setInterval(Ee,rh)),Zc=1,ah(Te)))}function Se(t,e,r){var n=new ve;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n}function Ne(t,e,r,n,i,o){var s=t.__transition;if(s){if(r in s)return}else t.__transition={};!function(t,e,r){function n(l){var u,c,h,d;if(r.state!==hh)return o();for(u in a)if((d=a[u]).name===r.name){if(d.state===ph)return Se(n);d.state===fh?(d.state=mh,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete a[u]):+uch)throw new Error("too late; already scheduled");return r}function we(t,e){var r=Re(t,e);if(r.state>dh)throw new Error("too late; already started");return r}function Re(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ce(t,e){var r,n,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(r=o[i]).name===e?(n=r.state>dh&&r.stateMath.abs(t[1]-M[1])?b=!0:x=!0),M=t,v=!0,Ge(),o()}function o(){var t;switch(y=M[0]-P[0],_=M[1]-P[1],O){case Gh:case qh:S&&(y=Math.max(C-a,Math.min(I-p,y)),u=a+y,f=p+y),N&&(_=Math.max(L-h,Math.min(k-g,_)),d=h+_,m=g+_);break;case zh:S<0?(y=Math.max(C-a,Math.min(I-a,y)),u=a+y,f=p):S>0&&(y=Math.max(C-p,Math.min(I-p,y)),u=a,f=p+y),N<0?(_=Math.max(L-h,Math.min(k-h,_)),d=h+_,m=g):N>0&&(_=Math.max(L-g,Math.min(k-g,_)),d=h,m=g+_);break;case Vh:S&&(u=Math.max(C,Math.min(I,a-y*S)),f=Math.max(C,Math.min(I,p+y*S))),N&&(d=Math.max(L,Math.min(k,h-_*N)),m=Math.max(L,Math.min(k,g+_*N)))}f0&&(a=u-y),N<0?g=m-_:N>0&&(h=d-_),O=Gh,U.attr("cursor",Qh.selection),o());break;default:return}Ge()}),!0).on("keyup.brush",(function(){switch(t.event.keyCode){case 16:D&&(x=b=D=!1,o());break;case 18:O===Vh&&(S<0?p=f:S>0&&(a=u),N<0?g=m:N>0&&(h=d),O=zh,o());break;case 32:O===Gh&&(t.event.altKey?(S&&(p=f-y*S,a=u+y*S),N&&(g=m-_*N,h=d+_*N),O=Vh):(S<0?p=f:S>0&&(a=u),N<0?g=m:N>0&&(h=d),O=zh),U.attr("cursor",Qh[E]),o());break;default:return}Ge()}),!0).on("mousemove.brush",r,!0).on("mouseup.brush",s,!0);yt(t.event.view)}qe(),Ce(T),n.call(T),j.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=u.apply(this,arguments),t.dim=e,t}var l,u=Ye,c=Ve,h=S(r,"start","brush","end"),d=6;return r.move=function(t,r){t.selection?t.on("start.brush",(function(){i(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){i(this,arguments).end()})).tween("brush",(function(){function t(t){s.selection=1===t&&Xe(u)?null:c(t),n.call(o),a.brush()}var o=this,s=o.__brush,a=i(o,arguments),l=s.selection,u=e.input("function"==typeof r?r.apply(this,arguments):r,s.extent),c=le(l,u);return l&&u?t:t(1)})):t.each((function(){var t=arguments,o=this.__brush,s=e.input("function"==typeof r?r.apply(this,t):r,o.extent),a=i(this,t).beforestart();Ce(this),o.selection=null==s||Xe(s)?null:s,n.call(this),a.start().brush().end()}))},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){it(new function(t,e,r){this.target=t,this.type=e,this.selection=r}(r,t,e.output(this.state.selection)),h.apply,h,[t,this.that,this.args])}},r.extent=function(t){return arguments.length?(u="function"==typeof t?t:Be([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),r):u},r.filter=function(t){return arguments.length?(c="function"==typeof t?t:Be(!!t),r):c},r.handleSize=function(t){return arguments.length?(d=+t,r):d},r.on=function(){var t=h.on.apply(h,arguments);return t===h?r:t},r}function Je(t){return function(){return t}}function Ze(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tr(){return new Ze}function er(t){return t.source}function rr(t){return t.target}function nr(t){return t.radius}function ir(t){return t.startAngle}function or(t){return t.endAngle}function sr(){}function ar(t,e){var r=new sr;if(t instanceof sr)t.each((function(t,e){r.set(e,t)}));else if(Array.isArray(t)){var n,i=-1,o=t.length;if(null==e)for(;++i=s?u=!0:(r=t.charCodeAt(a++))===md?c=!0:r===yd&&(c=!0,t.charCodeAt(a)===md&&++a),t.slice(n+1,e-1).replace(/""/g,'"')}for(;a=(o=(g+y)/2))?g=o:y=o,(c=r>=(s=(m+_)/2))?m=s:_=s,i=p,!(p=p[h=c<<1|u]))return i[h]=f,t;if(a=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===a&&r===l)return f.next=p,i?i[h]=f:t._root=f,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+y)/2))?g=o:y=o,(c=r>=(s=(m+_)/2))?m=s:_=s}while((h=c<<1|u)==(d=(l>=s)<<1|a>=o));return i[d]=p,i[h]=f,t}function vr(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function xr(t){return t[0]}function br(t){return t[1]}function Tr(t,e,r){var n=new Er(e??xr,r??br,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function Er(t,e,r,n,i,o){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=o,this._root=void 0}function Or(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}function Sr(t){return t.x+t.vx}function Nr(t){return t.y+t.vy}function Ar(t){return t.index}function wr(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function Rr(t){return t.x}function Cr(t){return t.y}function Lr(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Ir(t){return(t=Lr(Math.abs(t)))?t[1]:NaN}function kr(t,e){var r=Lr(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}function Dr(t){return new Pr(t)}function Pr(t){if(!(e=Id.exec(t)))throw new Error("invalid format: "+t);var e,r=e[1]||" ",n=e[2]||">",i=e[3]||"-",o=e[4]||"",s=!!e[5],a=e[6]&&+e[6],l=!!e[7],u=e[8]&&+e[8].slice(1),c=e[9]||"";"n"===c?(l=!0,c="g"):Ld[c]||(c=""),(s||"0"===r&&"="===n)&&(s=!0,r="0",n="="),this.fill=r,this.align=n,this.sign=i,this.symbol=o,this.zero=s,this.width=a,this.comma=l,this.precision=u,this.type=c}function Mr(t){return t}function jr(t){function e(t){function e(t){var e,o,l,c=m,x=y;if("c"===g)x=_(t)+x,t="";else{var b=(t=+t)<0;if(t=_(Math.abs(t),f),b&&0==+t&&(b=!1),c=(b?"("===u?u:"-":"-"===u||"("===u?"":u)+c,x=("s"===g?Dd[8+Rd/3]:"")+x+(b&&"("===u?")":""),v)for(e=-1,o=t.length;++e(l=t.charCodeAt(e))||l>57){x=(46===l?s+t.slice(e+1):t.slice(e))+x,t=t.slice(0,e);break}}p&&!h&&(t=i(t,1/0));var T=c.length+t.length+x.length,E=T>1)+c+t+x+E.slice(T);break;default:t=E+c+t+x}return a(t)}var r=(t=Dr(t)).fill,n=t.align,u=t.sign,c=t.symbol,h=t.zero,d=t.width,p=t.comma,f=t.precision,g=t.type,m="$"===c?o[0]:"#"===c&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(g)?l:"",_=Ld[g],v=!g||/[defgprs%]/.test(g);return f=null==f?g?6:12:/[gprs]/.test(g)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),e.toString=function(){return t+""},e}var r,n,i=t.grouping&&t.thousands?(r=t.grouping,n=t.thousands,function(t,e){for(var i=t.length,o=[],s=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>e&&(a=Math.max(1,e-l)),o.push(t.substring(i-=a,i+a)),!((l+=a+1)>e));)a=r[s=(s+1)%r.length];return o.reverse().join(n)}):Mr,o=t.currency,s=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Mr,l=t.percent||"%";return{format:e,formatPrefix:function(t,r){var n=e(((t=Dr(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Ir(r)/3))),o=Math.pow(10,-i),s=Dd[8+i/3];return function(t){return n(o*t)+s}}}}function Kr(e){return kd=jr(e),t.format=kd.format,t.formatPrefix=kd.formatPrefix,kd}function Ur(t){return Math.max(0,-Ir(Math.abs(t)))}function Fr(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ir(e)/3)))-Ir(Math.abs(t)))}function $r(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ir(e)-Ir(t))+1}function Hr(){return new Br}function Br(){this.reset()}function qr(t,e,r){var n=t.s=e+r,i=n-e,o=n-i;t.t=e-o+(r-i)}function Gr(t){return t>1?0:t<-1?fp:Math.acos(t)}function zr(t){return t>1?gp:t<-1?-gp:Math.asin(t)}function Vr(t){return(t=wp(t/2))*t}function Yr(){}function Wr(t,e){t&&kp.hasOwnProperty(t.type)&&kp[t.type](t,e)}function Xr(t,e,r){var n,i=-1,o=t.length-r;for(e.lineStart();++i=0?1:-1,i=n*r,o=Ep(e),s=wp(e),a=Ud*s,l=Kd*o+a*Ep(i),u=a*n*wp(i);Dp.add(Tp(u,l)),jd=t,Kd=o,Ud=s}function nn(t){return[Tp(t[1],t[0]),zr(t[2])]}function on(t){var e=t[0],r=t[1],n=Ep(r);return[n*Ep(e),n*wp(e),wp(r)]}function sn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function an(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ln(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function un(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function cn(t){var e=Cp(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function hn(t,e){Yd.push(Wd=[Fd=t,Hd=t]),e<$d&&($d=e),e>Bd&&(Bd=e)}function dn(t,e){var r=on([t*vp,e*vp]);if(Vd){var n=an(Vd,r),i=an([n[1],-n[0],0],n);cn(i),i=nn(i);var o,s=t-qd,a=s>0?1:-1,l=i[0]*_p*a,u=xp(s)>180;u^(a*qdBd&&(Bd=o):u^(a*qd<(l=(l+360)%360-180)&&lBd&&(Bd=e)),u?t_n(Fd,Hd)&&(Hd=t):_n(t,Hd)>_n(Fd,Hd)&&(Fd=t):Hd>=Fd?(tHd&&(Hd=t)):t>qd?_n(Fd,t)>_n(Fd,Hd)&&(Hd=t):_n(t,Hd)>_n(Fd,Hd)&&(Fd=t)}else Yd.push(Wd=[Fd=t,Hd=t]);e<$d&&($d=e),e>Bd&&(Bd=e),Vd=r,qd=t}function pn(){Kp.point=dn}function fn(){Wd[0]=Fd,Wd[1]=Hd,Kp.point=hn,Vd=null}function gn(t,e){if(Vd){var r=t-qd;jp.add(xp(r)>180?r+(r>0?360:-360):r)}else Gd=t,zd=e;Mp.point(t,e),dn(t,e)}function mn(){Mp.lineStart()}function yn(){gn(Gd,zd),Mp.lineEnd(),xp(jp)>pp&&(Fd=-(Hd=180)),Wd[0]=Fd,Wd[1]=Hd,Vd=null}function _n(t,e){return(e-=t)<0?e+360:e}function vn(t,e){return t[0]-e[0]}function xn(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:efp?t-yp:t<-fp?t+yp:t,e]}function Dn(t,e,r){return(t%=yp)?e||r?In(Mn(t),jn(e,r)):Mn(t):e||r?jn(e,r):kn}function Pn(t){return function(e,r){return[(e+=t)>fp?e-yp:e<-fp?e+yp:e,r]}}function Mn(t){var e=Pn(t);return e.invert=Pn(-t),e}function jn(t,e){function r(t,e){var r=Ep(e),a=Ep(t)*r,l=wp(t)*r,u=wp(e),c=u*n+a*i;return[Tp(l*o-c*s,a*n-u*i),zr(c*o+l*s)]}var n=Ep(t),i=wp(t),o=Ep(e),s=wp(e);return r.invert=function(t,e){var r=Ep(e),a=Ep(t)*r,l=wp(t)*r,u=wp(e),c=u*o-l*s;return[Tp(l*o+u*s,a*n+c*i),zr(c*n-a*i)]},r}function Kn(t){function e(e){return(e=t(e[0]*vp,e[1]*vp))[0]*=_p,e[1]*=_p,e}return t=Dn(t[0]*vp,t[1]*vp,t.length>2?t[2]*vp:0),e.invert=function(e){return(e=t.invert(e[0]*vp,e[1]*vp))[0]*=_p,e[1]*=_p,e},e}function Un(t,e,r,n,i,o){if(r){var s=Ep(e),a=wp(e),l=n*r;null==i?(i=e+n*yp,o=e-l/2):(i=Fn(s,i),o=Fn(s,o),(n>0?io)&&(i+=n*yp));for(var u,c=i;n>0?c>o:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function Hn(t,e){return xp(t[0]-e[0])=0;--o)i.point((c=u[o])[0],c[1]);else n(d.x,d.p.x,-1,i);d=d.p}u=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function Gn(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n=0?1:-1,O=E*T,S=O>fp,N=f*x;if(Qp.add(Tp(N*E*wp(O),g*b+N*Ep(O))),o+=S?T+E*yp:T,S^d>=r^_>=r){var A=an(on(h),on(y));cn(A);var w=an(i,A);cn(w);var R=(S^T>=0?-1:1)*zr(w[2]);(n>R||n===R&&(A[0]||A[1]))&&(s+=S^T>=0?1:-1)}}return(o<-pp||o0){for(v||(i.polygonStart(),v=!0),i.lineStart(),t=0;t1&&2&o&&s.push(s.pop().concat(s.shift())),p.push(s.filter(Yn))}var d,p,f,g=e(i),y=$n(),_=e(y),v=!1,x={point:o,lineStart:a,lineEnd:l,polygonStart:function(){x.point=u,x.lineStart=c,x.lineEnd=h,p=[],d=[]},polygonEnd:function(){x.point=o,x.lineStart=a,x.lineEnd=l,p=m(p);var t=zn(d,n);p.length?(v||(i.polygonStart(),v=!0),qn(p,Wn,t,r,i)):t&&(v||(i.polygonStart(),v=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),v&&(i.polygonEnd(),v=!1),p=d=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return x}}function Yn(t){return t.length>1}function Wn(t,e){return((t=t.x)[0]<0?t[1]-gp-pp:gp-t[1])-((e=e.x)[0]<0?e[1]-gp-pp:gp-e[1])}function Xn(t){function e(t,e){return Ep(t)*Ep(e)>i}function r(t,e,r){var n=[1,0,0],o=an(on(t),on(e)),s=sn(o,o),a=o[0],l=s-a*a;if(!l)return!r&&t;var u=i*s/l,c=-i*a/l,h=an(n,o),d=un(n,u);ln(d,un(o,c));var p=h,f=sn(d,p),g=sn(p,p),m=f*f-g*(sn(d,d)-1);if(!(m<0)){var y=Cp(m),_=un(p,(-f-y)/g);if(ln(_,d),_=nn(_),!r)return _;var v,x=t[0],b=e[0],T=t[1],E=e[1];b0^_[1]<(xp(_[0]-x)fp^(x<=_[0]&&_[0]<=b)){var N=un(p,(-f+y)/g);return ln(N,d),[_,nn(N)]}}}function n(e,r){var n=s?t:fp-t,i=0;return e<-n?i|=1:e>n&&(i|=2),r<-n?i|=4:r>n&&(i|=8),i}var i=Ep(t),o=6*vp,s=i>0,a=xp(i)>pp;return Vn(e,(function(t){var i,o,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,d){var p,f=[h,d],g=e(h,d),m=s?g?0:n(h,d):g?n(h+(h<0?fp:-fp),d):0;if(!i&&(u=l=g)&&t.lineStart(),g!==l&&(!(p=r(i,f))||Hn(i,p)||Hn(f,p))&&(f[0]+=pp,f[1]+=pp,g=e(f[0],f[1])),g!==l)c=0,g?(t.lineStart(),p=r(f,i),t.point(p[0],p[1])):(p=r(i,f),t.point(p[0],p[1]),t.lineEnd()),i=p;else if(a&&i&&s^g){var y;m&o||!(y=r(f,i,!0))||(c=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||i&&Hn(i,f)||t.point(f[0],f[1]),i=f,l=g,o=m},lineEnd:function(){l&&t.lineEnd(),i=null},clean:function(){return c|(u&&l)<<1}}}),(function(e,r,n,i){Un(i,t,o,n,e,r)}),s?[0,-t]:[-fp,t-fp])}function Qn(t,e,r,n){function i(i,o){return t<=i&&i<=r&&e<=o&&o<=n}function o(i,o,a,u){var c=0,h=0;if(null==i||(c=s(i,a))!==(h=s(o,a))||l(i,o)<0^a>0)do{u.point(0===c||3===c?t:r,c>1?n:e)}while((c=(c+a+4)%4)!==h);else u.point(o[0],o[1])}function s(n,i){return xp(n[0]-t)0?0:3:xp(n[0]-r)0?2:1:xp(n[1]-e)0?1:0:i>0?3:2}function a(t,e){return l(t.x,e.x)}function l(t,e){var r=s(t,1),n=s(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(s){function l(t,e){i(t,e)&&T.point(t,e)}function u(o,s){var a=i(o,s);if(h&&d.push([o,s]),x)p=o,f=s,g=a,x=!1,a&&(T.lineStart(),T.point(o,s));else if(a&&v)T.point(o,s);else{var l=[y=Math.max(tf,Math.min(Zp,y)),_=Math.max(tf,Math.min(Zp,_))],u=[o=Math.max(tf,Math.min(Zp,o)),s=Math.max(tf,Math.min(Zp,s))];!function(t,e,r,n,i,o){var s,a=t[0],l=t[1],u=0,c=1,h=e[0]-a,d=e[1]-l;if(s=r-a,h||!(s>0)){if(s/=h,h<0){if(s0){if(s>c)return;s>u&&(u=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>c)return;s>u&&(u=s)}else if(h>0){if(s0)){if(s/=d,d<0){if(s0){if(s>c)return;s>u&&(u=s)}if(s=o-l,d||!(s<0)){if(s/=d,d<0){if(s>c)return;s>u&&(u=s)}else if(d>0){if(s0&&(t[0]=a+u*h,t[1]=l+u*d),c<1&&(e[0]=a+c*h,e[1]=l+c*d),!0}}}}}(l,u,t,e,r,n)?a&&(T.lineStart(),T.point(o,s),b=!1):(v||(T.lineStart(),T.point(l[0],l[1])),T.point(u[0],u[1]),a||T.lineEnd(),b=!1)}y=o,_=s,v=a}var c,h,d,p,f,g,y,_,v,x,b,T=s,E=$n(),O={point:l,lineStart:function(){O.point=u,h&&h.push(d=[]),x=!0,v=!1,y=_=NaN},lineEnd:function(){c&&(u(p,f),g&&v&&E.rejoin(),c.push(E.result())),O.point=l,v&&T.lineEnd()},polygonStart:function(){T=E,c=[],h=[],b=!0},polygonEnd:function(){var e=function(){for(var e=0,r=0,i=h.length;rn&&(d-o)*(n-s)>(p-s)*(t-o)&&++e:p<=n&&(d-o)*(n-s)<(p-s)*(t-o)&&--e;return e}(),r=b&&e,i=(c=m(c)).length;(r||i)&&(s.polygonStart(),r&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&qn(c,a,e,o,s),s.polygonEnd()),T=s,c=h=d=null}};return O}}function Jn(){rf.point=rf.lineEnd=Yr}function Zn(t,e){Fp=t*=vp,$p=wp(e*=vp),Hp=Ep(e),rf.point=ti}function ti(t,e){t*=vp;var r=wp(e*=vp),n=Ep(e),i=xp(t-Fp),o=Ep(i),s=n*wp(i),a=Hp*r-$p*n*o,l=$p*r+Hp*n*o;ef.add(Tp(Cp(s*s+a*a),l)),Fp=t,$p=r,Hp=n}function ei(t){return ef.reset(),Jr(t,rf),+ef}function ri(t,e){return nf[0]=t,nf[1]=e,ei(of)}function ni(t,e){return!(!t||!af.hasOwnProperty(t.type))&&af[t.type](t,e)}function ii(t,e){return 0===ri(t,e)}function oi(t,e){var r=ri(t[0],t[1]);return ri(t[0],e)+ri(e,t[1])<=r+pp}function si(t,e){return!!zn(t.map(ai),li(e))}function ai(t){return(t=t.map(li)).pop(),t}function li(t){return[t[0]*vp,t[1]*vp]}function ui(t,e,r){var n=c(t,e-pp,r).concat(e);return function(t){return n.map((function(e){return[t,e]}))}}function ci(t,e,r){var n=c(t,e-pp,r).concat(e);return function(t){return n.map((function(e){return[e,t]}))}}function hi(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return c(Op(o/y)*y,i,y).map(p).concat(c(Op(u/_)*_,l,_).map(f)).concat(c(Op(n/g)*g,r,g).filter((function(t){return xp(t%y)>pp})).map(h)).concat(c(Op(a/m)*m,s,m).filter((function(t){return xp(t%_)>pp})).map(d))}var r,n,i,o,s,a,l,u,h,d,p,f,g=10,m=g,y=90,_=360,v=2.5;return t.lines=function(){return e().map((function(t){return{type:"LineString",coordinates:t}}))},t.outline=function(){return{type:"Polygon",coordinates:[p(o).concat(f(l).slice(1),p(i).reverse().slice(1),f(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],u=+e[0][1],l=+e[1][1],o>i&&(e=o,o=i,i=e),u>l&&(e=u,u=l,l=e),t.precision(v)):[[o,u],[i,l]]},t.extentMinor=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],a=+e[0][1],s=+e[1][1],n>r&&(e=n,n=r,r=e),a>s&&(e=a,a=s,s=e),t.precision(v)):[[n,a],[r,s]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(y=+e[0],_=+e[1],t):[y,_]},t.stepMinor=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.precision=function(e){return arguments.length?(v=+e,h=ui(a,s,90),d=ci(n,r,v),p=ui(u,l,90),f=ci(o,i,v),t):v},t.extentMajor([[-180,-90+pp],[180,90-pp]]).extentMinor([[-180,-80-pp],[180,80+pp]])}function di(t){return t}function pi(){cf.point=fi}function fi(t,e){cf.point=gi,Bp=Gp=t,qp=zp=e}function gi(t,e){uf.add(zp*t-Gp*e),Gp=t,zp=e}function mi(){gi(Bp,qp)}function yi(t,e){mf+=t,yf+=e,++_f}function _i(){Sf.point=vi}function vi(t,e){Sf.point=xi,yi(Wp=t,Xp=e)}function xi(t,e){var r=t-Wp,n=e-Xp,i=Cp(r*r+n*n);vf+=i*(Wp+t)/2,xf+=i*(Xp+e)/2,bf+=i,yi(Wp=t,Xp=e)}function bi(){Sf.point=yi}function Ti(){Sf.point=Oi}function Ei(){Si(Vp,Yp)}function Oi(t,e){Sf.point=Si,yi(Vp=Wp=t,Yp=Xp=e)}function Si(t,e){var r=t-Wp,n=e-Xp,i=Cp(r*r+n*n);vf+=i*(Wp+t)/2,xf+=i*(Xp+e)/2,bf+=i,Tf+=(i=Xp*t-Wp*e)*(Wp+t),Ef+=i*(Xp+e),Of+=3*i,yi(Wp=t,Xp=e)}function Ni(t){this._context=t}function Ai(t,e){If.point=wi,Af=Rf=t,wf=Cf=e}function wi(t,e){Rf-=t,Cf-=e,Lf.add(Cp(Rf*Rf+Cf*Cf)),Rf=t,Cf=e}function Ri(){this._string=[]}function Ci(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Li(t){return function(e){var r=new Ii;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ii(){}function ki(t,e,r){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),Jr(r,t.stream(gf)),e(gf.result()),null!=n&&t.clipExtent(n),t}function Di(t,e,r){return ki(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),s=+e[0][0]+(n-o*(r[1][0]+r[0][0]))/2,a=+e[0][1]+(i-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,a])}),r)}function Pi(t,e,r){return Di(t,[[0,0],e],r)}function Mi(t,e,r){return ki(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),o=(n-i*(r[1][0]+r[0][0]))/2,s=-i*r[0][1];t.scale(150*i).translate([o,s])}),r)}function ji(t,e,r){return ki(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),o=-i*r[0][0],s=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([o,s])}),r)}function Ki(t,e){return+e?function(t,e){function r(n,i,o,s,a,l,u,c,h,d,p,f,g,m){var y=u-n,_=c-i,v=y*y+_*_;if(v>4*e&&g--){var x=s+d,b=a+p,T=l+f,E=Cp(x*x+b*b+T*T),O=zr(T/=E),S=xp(xp(T)-1)e||xp((y*R+_*C)/v-.5)>.3||s*d+a*p+l*f2?t[2]%360*vp:0,n()):[x*_p,b*_p,T*_p]},e.precision=function(t){return arguments.length?(w=Ki(r,A=t*t),i()):Cp(A)},e.fitExtent=function(t,r){return Di(e,t,r)},e.fitSize=function(t,r){return Pi(e,t,r)},e.fitWidth=function(t,r){return Mi(e,t,r)},e.fitHeight=function(t,r){return ji(e,t,r)},function(){return o=t.apply(this,arguments),e.invert=o.invert&&function(t){return(t=u.invert((t[0]-s)/g,(a-t[1])/g))&&[t[0]*_p,t[1]*_p]},n()}}function $i(t){var e=0,r=fp/3,n=Fi(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*vp,r=t[1]*vp):[e*_p,r*_p]},i}function Hi(t,e){function r(t,e){var r=Cp(o-2*i*wp(e))/i;return[r*wp(t*=i),s-r*Ep(t)]}var n=wp(t),i=(n+wp(e))/2;if(xp(i)0?e<-gp+pp&&(e=-gp+pp):e>gp-pp&&(e=gp-pp);var r=o/Ap(Wi(e),i);return[r*wp(i*t),o-r*Ep(i*t)]}var n=Ep(t),i=t===e?wp(t):Np(n/Ep(e))/Np(Wi(e)/Wi(t)),o=n*Ap(Wi(t),i)/i;return i?(r.invert=function(t,e){var r=o-e,n=Rp(i)*Cp(t*t+r*r);return[Tp(t,xp(r))/i*Rp(r),2*bp(Ap(o/n,1/i))-gp]},r):Vi}function Qi(t,e){return[t,e]}function Ji(t,e){function r(t,e){var r=o-e,n=i*t;return[r*wp(n),o-r*Ep(n)]}var n=Ep(t),i=t===e?wp(t):(n-Ep(e))/(e-t),o=n/i+t;return xp(i)=0;)e+=r[n].value;else e=1;t.value=e}function uo(t,e){var r,n,i,o,s,a=new fo(t),l=+t.value&&(a.value=t.value),u=[a];for(null==e&&(e=co);r=u.pop();)if(l&&(r.value=+r.data.value),(i=e(r.data))&&(s=i.length))for(r.children=new Array(s),o=s-1;o>=0;--o)u.push(n=r.children[o]=new fo(i[o])),n.parent=r,n.depth=r.depth+1;return a.eachBefore(po)}function co(t){return t.children}function ho(t){t.data=t.data.data}function po(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function fo(t){this.data=t,this.depth=this.height=0,this.parent=null}function go(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(Kf.call(t))).length,o=[];n0&&r*r>n*n+i*i}function _o(t,e){for(var r=0;rr*r+n*n}function Eo(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,o=(e.y*r.r+r.y*e.r)/n;return i*i+o*o}function Oo(t){this._=t,this.next=null,this.previous=null}function So(t){if(!(i=t.length))return 0;var e,r,n,i,o,s,a,l,u,c,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i>2))return e.r+r.r;bo(r,e,n=t[2]),e=new Oo(e),r=new Oo(r),n=new Oo(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(a=3;ad&&(d=a),m=c*c*g,(p=Math.max(d/m,m/h))>f){c-=a;break}f=p}y.push(s={value:c,dice:l1&&Go(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Yo(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Wo(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active=0;)if((r=t._tasks[n])&&(t._tasks[n]=null,r.abort))try{r.abort()}catch{}t._active=NaN,Qo(t)}function Qo(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function Jo(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Yo(t)}function Zo(){return Math.random()}function ts(t,e){function r(t){var e,r,i,s=u.status;if(!s&&((i=(r=u).responseType)&&"text"!==i?r.response:r.responseText)||s>=200&&s<300||304===s){if(o)try{e=o.call(n,u)}catch(r){return void a.call("error",n,r)}else e=u;a.call("load",n,e)}else a.call("error",n,t)}var n,i,o,s,a=S("beforesend","progress","load","error"),l=ar(),u=new XMLHttpRequest,c=null,h=null,d=0;if(typeof XDomainRequest>"u"||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=u.ontimeout=r:u.onreadystatechange=function(t){u.readyState>3&&r(t)},u.onprogress=function(t){a.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l.get(t):(null==e?l.remove(t):l.set(t,e+""),n)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",n):i},responseType:function(t){return arguments.length?(s=t,n):s},timeout:function(t){return arguments.length?(d=+t,n):d},user:function(t){return arguments.length<1?c:(c=null==t?null:t+"",n)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",n)},response:function(t){return o=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,r,o){return u.open(e,t,!0,c,h),null==i||l.has("accept")||l.set("accept",i+",*/*"),u.setRequestHeader&&l.each((function(t,e){u.setRequestHeader(e,t)})),null!=i&&u.overrideMimeType&&u.overrideMimeType(i),null!=s&&(u.responseType=s),d>0&&(u.timeout=d),null==o&&"function"==typeof r&&(o=r,r=null),null!=o&&1===o.length&&(p=o,o=function(t,e){p(null==t?e:null)}),null!=o&&n.on("error",o).on("load",(function(t){o(null,t)})),a.call("beforesend",n,u),u.send(r??null),n;var p},abort:function(){return u.abort(),n},on:function(){var t=a.on.apply(a,arguments);return t===a?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function es(t,e){return function(r,n){var i=ts(r).mimeType(t).response(e);if(null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return i.get(n)}return i}}function rs(t,e){return function(r,n,i){arguments.length<3&&(i=n,n=null);var o=ts(r).mimeType(t);return o.row=function(t){return arguments.length?o.response((r=e,i=n=t,function(t){return r(t.responseText,i)})):n;var r,i},o.row(n),i?o.get(i):o}}function ns(t){function e(e){var o=e+"",s=r.get(o);if(!s){if(i!==ag)return i;r.set(o,s=n.push(e))}return t[(s-1)%t.length]}var r=ar(),n=[],i=ag;return t=null==t?[]:sg.call(t),e.domain=function(t){if(!arguments.length)return n.slice();n=[],r=ar();for(var i,o,s=-1,a=t.length;++s2?cs:us,o=s=null,n}function n(e){return(o||(o=i(a,l,c?(r=t,function(t,e){var n=r(t=+t,e=+e);return function(r){return r<=t?0:r>=e?1:n(r)}}):t,u)))(+e);var r}var i,o,s,a=lg,l=lg,u=le,c=!1;return n.invert=function(t){return(s||(s=i(l,a,ls,c?(r=e,function(t,e){var n=r(t=+t,e=+e);return function(r){return r<=0?t:r>=1?e:n(r)}}):e)))(+t);var r},n.domain=function(t){return arguments.length?(a=og.call(t,as),r()):a.slice()},n.range=function(t){return arguments.length?(l=sg.call(t),r()):l.slice()},n.rangeRound=function(t){return l=sg.call(t),u=ue,r()},n.clamp=function(t){return arguments.length?(c=!!t,r()):c},n.interpolate=function(t){return arguments.length?(u=t,r()):u},r()}function ps(e){var r=e.domain;return e.ticks=function(t){var e=r();return h(e[0],e[e.length-1],t??10)},e.tickFormat=function(e,n){return function(e,r,n){var i,o=e[0],s=e[e.length-1],a=p(o,s,r??10);switch((n=Dr(n??",f")).type){case"s":var l=Math.max(Math.abs(o),Math.abs(s));return null!=n.precision||isNaN(i=Fr(a,l))||(n.precision=i),t.formatPrefix(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=$r(a,Math.max(Math.abs(o),Math.abs(s))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Ur(a))||(n.precision=i-2*("%"===n.type))}return t.format(n)}(r(),e,n)},e.nice=function(t){null==t&&(t=10);var n,i=r(),o=0,s=i.length-1,a=i[o],l=i[s];return l0?n=d(a=Math.floor(a/n)*n,l=Math.ceil(l/n)*n,t):n<0&&(n=d(a=Math.ceil(a*n)/n,l=Math.floor(l*n)/n,t)),n>0?(i[o]=Math.floor(a/n)*n,i[s]=Math.ceil(l/n)*n,r(i)):n<0&&(i[o]=Math.ceil(a*n)/n,i[s]=Math.floor(l*n)/n,r(i)),e},e}function fs(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],s=t[i];return s0))return a;do{a.push(s=new Date(+r)),e(r,o),t(r)}while(s=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}))},r&&(i.count=function(e,n){return ug.setTime(+e),cg.setTime(+n),t(ug),t(cg),Math.floor(r(ug,cg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?function(e){return n(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Os(t){return Es((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*pg)/fg}))}function Ss(t){return Es((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/fg}))}function Ns(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function As(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ws(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Rs(t){function e(t,e){return function(r){var n,i,o,s=[],a=-1,l=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++a53)return null;"w"in s||(s.w=1),"Z"in s?(i=(o=(i=As(ws(s.y))).getUTCDay())>4||0===o?Yg.ceil(i):Yg(i),i=Gg.offset(i,7*(s.V-1)),s.y=i.getUTCFullYear(),s.m=i.getUTCMonth(),s.d=i.getUTCDate()+(s.w+6)%7):(i=(o=(i=e(ws(s.y))).getDay())>4||0===o?Og.ceil(i):Og(i),i=bg.offset(i,7*(s.V-1)),s.y=i.getFullYear(),s.m=i.getMonth(),s.d=i.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),o="Z"in s?As(ws(s.y)).getUTCDay():e(ws(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(o+5)%7:s.w+7*s.U-(o+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,As(s)):e(s)}}function n(t,e,r,n){for(var i,o,s=0,a=e.length,l=r.length;s=l)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=O[i in dm?e.charAt(s++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}var i=t.dateTime,o=t.date,s=t.time,a=t.periods,l=t.days,u=t.shortDays,c=t.months,h=t.shortMonths,d=Is(a),p=ks(a),f=Is(l),g=ks(l),m=Is(u),y=ks(u),_=Is(c),v=ks(c),x=Is(h),b=ks(h),T={a:function(t){return u[t.getDay()]},A:function(t){return l[t.getDay()]},b:function(t){return h[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Zs,e:Zs,f:ia,H:ta,I:ea,j:ra,L:na,m:oa,M:sa,p:function(t){return a[+(t.getHours()>=12)]},Q:Da,s:Pa,S:aa,u:la,U:ua,V:ca,w:ha,W:da,x:null,X:null,y:pa,Y:fa,Z:ga,"%":ka},E={a:function(t){return u[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return h[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:ma,e:ma,f:ba,H:ya,I:_a,j:va,L:xa,m:Ta,M:Ea,p:function(t){return a[+(t.getUTCHours()>=12)]},Q:Da,s:Pa,S:Oa,u:Sa,U:Na,V:Aa,w:wa,W:Ra,x:null,X:null,y:Ca,Y:La,Z:Ia,"%":ka},O={a:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.w=y[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=g[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=x.exec(e.slice(r));return n?(t.m=b[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=_.exec(e.slice(r));return n?(t.m=v[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return n(t,i,e,r)},d:Bs,e:Bs,f:Ws,H:Gs,I:Gs,j:qs,L:Ys,m:Hs,M:zs,p:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.p=p[n[0].toLowerCase()],r+n[0].length):-1},Q:Qs,s:Js,S:Vs,u:Ps,U:Ms,V:js,w:Ds,W:Ks,x:function(t,e,r){return n(t,o,e,r)},X:function(t,e,r){return n(t,s,e,r)},y:Fs,Y:Us,Z:$s,"%":Xs};return T.x=e(o,T),T.X=e(s,T),T.c=e(i,T),E.x=e(o,E),E.X=e(s,E),E.c=e(i,E),{format:function(t){var r=e(t+="",T);return r.toString=function(){return t},r},parse:function(t){var e=r(t+="",Ns);return e.toString=function(){return t},e},utcFormat:function(t){var r=e(t+="",E);return r.toString=function(){return t},r},utcParse:function(t){var e=r(t,As);return e.toString=function(){return t},e}}}function Cs(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o68?1900:2e3),r+n[0].length):-1}function $s(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Hs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Bs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function qs(t,e,r){var n=pm.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Gs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function zs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Vs(t,e,r){var n=pm.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ys(t,e,r){var n=pm.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Ws(t,e,r){var n=pm.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Xs(t,e,r){var n=fm.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Qs(t,e,r){var n=pm.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Js(t,e,r){var n=pm.exec(e.slice(r));return n?(t.Q=1e3*+n[0],r+n[0].length):-1}function Zs(t,e){return Cs(t.getDate(),e,2)}function ta(t,e){return Cs(t.getHours(),e,2)}function ea(t,e){return Cs(t.getHours()%12||12,e,2)}function ra(t,e){return Cs(1+bg.count(Ug(t),t),e,3)}function na(t,e){return Cs(t.getMilliseconds(),e,3)}function ia(t,e){return na(t,e)+"000"}function oa(t,e){return Cs(t.getMonth()+1,e,2)}function sa(t,e){return Cs(t.getMinutes(),e,2)}function aa(t,e){return Cs(t.getSeconds(),e,2)}function la(t){var e=t.getDay();return 0===e?7:e}function ua(t,e){return Cs(Eg.count(Ug(t),t),e,2)}function ca(t,e){var r=t.getDay();return t=r>=4||0===r?Ag(t):Ag.ceil(t),Cs(Ag.count(Ug(t),t)+(4===Ug(t).getDay()),e,2)}function ha(t){return t.getDay()}function da(t,e){return Cs(Og.count(Ug(t),t),e,2)}function pa(t,e){return Cs(t.getFullYear()%100,e,2)}function fa(t,e){return Cs(t.getFullYear()%1e4,e,4)}function ga(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Cs(e/60|0,"0",2)+Cs(e%60,"0",2)}function ma(t,e){return Cs(t.getUTCDate(),e,2)}function ya(t,e){return Cs(t.getUTCHours(),e,2)}function _a(t,e){return Cs(t.getUTCHours()%12||12,e,2)}function va(t,e){return Cs(1+Gg.count(um(t),t),e,3)}function xa(t,e){return Cs(t.getUTCMilliseconds(),e,3)}function ba(t,e){return xa(t,e)+"000"}function Ta(t,e){return Cs(t.getUTCMonth()+1,e,2)}function Ea(t,e){return Cs(t.getUTCMinutes(),e,2)}function Oa(t,e){return Cs(t.getUTCSeconds(),e,2)}function Sa(t){var e=t.getUTCDay();return 0===e?7:e}function Na(t,e){return Cs(Vg.count(um(t),t),e,2)}function Aa(t,e){var r=t.getUTCDay();return t=r>=4||0===r?Qg(t):Qg.ceil(t),Cs(Qg.count(um(t),t)+(4===um(t).getUTCDay()),e,2)}function wa(t){return t.getUTCDay()}function Ra(t,e){return Cs(Yg.count(um(t),t),e,2)}function Ca(t,e){return Cs(t.getUTCFullYear()%100,e,2)}function La(t,e){return Cs(t.getUTCFullYear()%1e4,e,4)}function Ia(){return"+0000"}function ka(){return"%"}function Da(t){return+t}function Pa(t){return Math.floor(+t/1e3)}function Ma(e){return cm=Rs(e),t.timeFormat=cm.format,t.timeParse=cm.parse,t.utcFormat=cm.utcFormat,t.utcParse=cm.utcParse,cm}function ja(t){return new Date(t)}function Ka(t){return t instanceof Date?+t:+new Date(+t)}function Ua(t,e,n,i,o,s,a,l,u){function c(r){return(a(r)=1?Vm:t<=-1?-Vm:Math.asin(t)}function qa(t){return t.innerRadius}function Ga(t){return t.outerRadius}function za(t){return t.startAngle}function Va(t){return t.endAngle}function Ya(t){return t&&t.padAngle}function Wa(t,e,r,n,i,o,s){var a=t-r,l=e-n,u=(s?o:-o)/qm(a*a+l*l),c=u*l,h=-u*a,d=t+c,p=e+h,f=r+c,g=n+h,m=(d+f)/2,y=(p+g)/2,_=f-d,v=g-p,x=_*_+v*v,b=i-o,T=d*g-f*p,E=(v<0?-1:1)*qm($m(0,b*b*x-T*T)),O=(T*v-_*E)/x,S=(-T*_-v*E)/x,N=(T*v+_*E)/x,A=(-T*_+v*E)/x,w=O-m,R=S-y,C=N-m,L=A-y;return w*w+R*R>C*C+L*L&&(O=N,S=A),{cx:O,cy:S,x01:-c,y01:-h,x11:O*(i/b-1),y11:S*(i/b-1)}}function Xa(t){this._context=t}function Qa(t){return new Xa(t)}function Ja(t){return t[0]}function Za(t){return t[1]}function tl(){function t(t){var a,l,u,c=t.length,h=!1;for(null==i&&(s=o(u=tr())),a=0;a<=c;++a)!(a=c;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[e]=+r(d,e,t),y[e]=+i(d,e,t),u.point(n?+n(d,e,t):m[e],o?+o(d,e,t):y[e]))}if(p)return u=null,p+""||null}function e(){return tl().defined(s).curve(l).context(a)}var r=Ja,n=null,i=Ha(0),o=Za,s=Ha(!0),a=null,l=Qa,u=null;return t.x=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),n=null,t):r},t.x0=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),t):r},t.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Ha(+e),t):n},t.y=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),o=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),t):i},t.y1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:Ha(+e),t):o},t.lineX0=t.lineY0=function(){return e().x(r).y(i)},t.lineY1=function(){return e().x(r).y(o)},t.lineX1=function(){return e().x(n).y(i)},t.defined=function(e){return arguments.length?(s="function"==typeof e?e:Ha(!!e),t):s},t.curve=function(e){return arguments.length?(l=e,null!=a&&(u=l(a)),t):l},t.context=function(e){return arguments.length?(null==e?a=u=null:u=l(a=e),t):a},t}function rl(t,e){return et?1:e>=t?0:NaN}function nl(t){return t}function il(t){this._curve=t}function ol(t){function e(e){return new il(t(e))}return e._curve=t,e}function sl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(ol(t)):e()._curve},t}function al(){return sl(tl().curve(Wm))}function ll(){var t=el().curve(Wm),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return sl(r())},delete t.lineX0,t.lineEndAngle=function(){return sl(n())},delete t.lineX1,t.lineInnerRadius=function(){return sl(i())},delete t.lineY0,t.lineOuterRadius=function(){return sl(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(ol(t)):e()._curve},t}function ul(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function cl(t){return t.source}function hl(t){return t.target}function dl(t){function e(){var e,a=Xm.call(arguments),l=r.apply(this,a),u=n.apply(this,a);if(s||(s=e=tr()),t(s,+i.apply(this,(a[0]=l,a)),+o.apply(this,a),+i.apply(this,(a[0]=u,a)),+o.apply(this,a)),e)return s=null,e+""||null}var r=cl,n=hl,i=Ja,o=Za,s=null;return e.source=function(t){return arguments.length?(r=t,e):r},e.target=function(t){return arguments.length?(n=t,e):n},e.x=function(t){return arguments.length?(i="function"==typeof t?t:Ha(+t),e):i},e.y=function(t){return arguments.length?(o="function"==typeof t?t:Ha(+t),e):o},e.context=function(t){return arguments.length?(s=t??null,e):s},e}function pl(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function fl(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function gl(t,e,r,n,i){var o=ul(e,r),s=ul(e,r=(r+i)/2),a=ul(n,r),l=ul(n,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(s[0],s[1],a[0],a[1],l[0],l[1])}function ml(){}function yl(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function _l(t){this._context=t}function vl(t){this._context=t}function xl(t){this._context=t}function bl(t,e){this._basis=new _l(t),this._beta=e}function Tl(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function El(t,e){this._context=t,this._k=(1-e)/6}function Ol(t,e){this._context=t,this._k=(1-e)/6}function Sl(t,e){this._context=t,this._k=(1-e)/6}function Nl(t,e,r){var n=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Gm){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Gm){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(n,i,o,s,t._x2,t._y2)}function Al(t,e){this._context=t,this._alpha=e}function wl(t,e){this._context=t,this._alpha=e}function Rl(t,e){this._context=t,this._alpha=e}function Cl(t){this._context=t}function Ll(t){return t<0?-1:1}function Il(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),a=(o*i+s*n)/(n+i);return(Ll(o)+Ll(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function kl(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Dl(t,e,r){var n=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-n)/3;t._context.bezierCurveTo(n+a,i+a*e,o-a,s-a*r,o,s)}function Pl(t){this._context=t}function Ml(t){this._context=new jl(t)}function jl(t){this._context=t}function Kl(t){this._context=t}function Ul(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e1)for(var r,n,i,o=1,s=t[e[0]],a=s.length;o=0;)r[e]=e;return r}function Bl(t,e){return t[e]}function ql(t){var e=t.map(Gl);return Hl(t).sort((function(t,r){return e[t]-e[r]}))}function Gl(t){for(var e,r=0,n=-1,i=t.length;++n0)){if(o/=d,d<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=n-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o0)){if(o/=p,p<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=i-u,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>c&&(c=o)}else if(p>0){if(o0||h<1)||(c>0&&(t[0]=[l+c*d,u+c*p]),h<1&&(t[1]=[l+h*d,u+h*p]),!0)}}}}}function iu(t,e,r,n,i){var o=t[1];if(o)return!0;var s,a,l=t[0],u=t.left,c=t.right,h=u[0],d=u[1],p=c[0],f=c[1],g=(h+p)/2,m=(d+f)/2;if(f===d){if(g=n)return;if(h>p){if(l){if(l[1]>=i)return}else l=[g,r];o=[g,i]}else{if(l){if(l[1]1)if(h>p){if(l){if(l[1]>=i)return}else l=[(r-a)/s,r];o=[(i-a)/s,i]}else{if(l){if(l[1]=n)return}else l=[e,s*e+a];o=[n,s*n+a]}else{if(l){if(l[0]=-1e-12)){var p=l*l+u*u,f=c*c+h*h,g=(h*p-u*f)/d,m=(l*f-c*p)/d,y=Ny.pop()||new function(){Xl(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=t,y.site=i,y.x=g+s,y.y=(y.cy=m+a)+Math.sqrt(g*g+m*m),t.circle=y;for(var _=null,v=Oy._;v;)if(y.ywy)a=a.L;else{if(!((i=o-function(t,e){var r=t.N;if(r)return fu(r,e);var n=t.site;return n[1]===e?n[0]:1/0}(a,s))>wy)){n>-wy?(e=a.P,r=a):i>-wy?(e=a,r=a.N):e=r=a;break}if(!a.R){e=a;break}a=a.R}var l;Ey[(l=t).index]={site:l,halfedges:[]};var u=cu(t);if(Ty.insert(e,u),e||r){if(e===r)return uu(e),r=cu(e.site),Ty.insert(u,r),u.edge=r.edge=tu(e.site,u.site),lu(e),void lu(r);if(r){uu(e),uu(r);var c=e.site,h=c[0],d=c[1],p=t[0]-h,f=t[1]-d,g=r.site,m=g[0]-h,y=g[1]-d,_=2*(p*y-f*m),v=p*p+f*f,x=m*m+y*y,b=[(y*v-f*x)/_+h,(p*x-m*v)/_+d];ru(r.edge,c,g,b),u.edge=tu(c,t,null,b),r.edge=tu(t,g,null,b),lu(e),lu(r)}else u.edge=tu(e.site,u.site)}}function fu(t,e){var r=t.site,n=r[0],i=r[1],o=i-e;if(!o)return n;var s=t.P;if(!s)return-1/0;var a=(r=s.site)[0],l=r[1],u=l-e;if(!u)return a;var c=a-n,h=1/o-1/u,d=c/u;return h?(-d+Math.sqrt(d*d-2*h*(c*c/(-2*u)-l+u/2+i-o/2)))/h+n:(n+a)/2}function gu(t,e,r){return(t[0]-r[0])*(e[1]-t[1])-(t[0]-e[0])*(r[1]-t[1])}function mu(t,e){return e[1]-t[1]||e[0]-t[0]}function yu(t,e){var r,n,i,o=t.sort(mu).pop();for(Sy=[],Ey=new Array(t.length),Ty=new Wl,Oy=new Wl;;)if(i=by,o&&(!i||o[1]wy||Math.abs(i[0][1]-i[1][1])>wy)||delete Sy[o]})(s,a,l,u),function(t,e,r,n){var i,o,s,a,l,u,c,h,d,p,f,g,m=Ey.length,y=!0;for(i=0;iwy||Math.abs(g-d)>wy)&&(l.splice(a,0,Sy.push(eu(s,p,Math.abs(f-t)wy?[t,Math.abs(h-t)wy?[Math.abs(d-n)wy?[r,Math.abs(h-r)wy?[Math.abs(d-e)n?(n+i)/2:Math.min(0,n)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var Ru=r(e),Cu=Ru.right,Lu=Ru.left,Iu=Array.prototype,ku=Iu.slice,Du=Iu.map,Pu=Math.sqrt(50),Mu=Math.sqrt(10),ju=Math.sqrt(2),Ku=Array.prototype.slice,Uu=1,Fu=2,$u=3,Hu=4,Bu=1e-6,qu={value:function(){}};N.prototype=S.prototype={constructor:N,on:function(t,e){var r,n,i=this._,o=(n=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s0)for(var r,n,i=new Array(r),o=0;o=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ju={};t.event=null,typeof document<"u"&&("onmouseenter"in document.documentElement||(Ju={mouseenter:"mouseover",mouseleave:"mouseout"}));var Zu=[null];st.prototype=at.prototype={constructor:st,select:function(t){"function"!=typeof t&&(t=L(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=b&&(b=x+1);!(v=y[b])&&++b=0;)(n=i[o])&&(s&&s!==n.nextSibling&&s.parentNode.insertBefore(n,s),s=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=K);for(var r=this._groups,n=r.length,i=new Array(n),o=0;o1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,r??"")):F(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=$(t+"");if(arguments.length<2){for(var n=H(this.node()),i=-1,o=r.length;++i=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}})),s=o.length;if(!(arguments.length<2)){for(a=e?nt:rt,null==r&&(r=!1),n=0;n=240?t-240:t+120,i,n),jt(t,i,n),jt(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var pc=Math.PI/180,fc=180/Math.PI,gc=.95047,mc=1,yc=1.08883,_c=4/29,vc=6/29,xc=3*vc*vc,bc=vc*vc*vc;St(Ft,Ut,Nt(At,{brighter:function(t){return new Ft(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Ft(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return t=mc*Ht(t),new kt(Bt(3.2404542*(e=gc*Ht(e))-1.5371385*t-.4985314*(r=yc*Ht(r))),Bt(-.969266*e+1.8760108*t+.041556*r),Bt(.0556434*e-.2040259*t+1.0572252*r),this.opacity)}})),St(zt,Gt,Nt(At,{brighter:function(t){return new zt(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new zt(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return Kt(this).rgb()}}));var Tc=-.29227,Ec=-.90649,Oc=1.97294,Sc=Oc*Ec,Nc=1.78277*Oc,Ac=1.78277*Tc- -.14861*Ec;St(Yt,Vt,Nt(At,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*pc,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new kt(255*(e+r*(-.14861*n+1.78277*i)),255*(e+r*(Tc*n+Ec*i)),255*(e+r*(Oc*n)),this.opacity)}}));var wc,Rc,Cc,Lc,Ic,kc,Dc=function t(e){function r(t,e){var r=n((t=It(t)).r,(e=It(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=ee(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}var n=function(t){return 1==(t=+t)?ee:function(e,r){return r-e?(n=e,i=r,o=t,n=Math.pow(n,o),i=Math.pow(i,o)-n,o=1/o,function(t){return Math.pow(n+t*i,o)}):Jt(isNaN(e)?r:e);var n,i,o}}(e);return r.gamma=t,r}(1),Pc=re(Xt),Mc=re(Qt),jc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kc=new RegExp(jc.source,"g"),Uc=180/Math.PI,Fc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},$c=he((function(t){return"none"===t?Fc:(wc||(wc=document.createElement("DIV"),Rc=document.documentElement,Cc=document.defaultView),wc.style.transform=t,t=Cc.getComputedStyle(Rc.appendChild(wc),null).getPropertyValue("transform"),Rc.removeChild(wc),ce(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Hc=he((function(t){return null==t?Fc:(Lc||(Lc=document.createElementNS("http://www.w3.org/2000/svg","g")),Lc.setAttribute("transform",t),(t=Lc.transform.baseVal.consolidate())?ce((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fc)}),", ",")",")"),Bc=Math.SQRT2,qc=2,Gc=4,zc=1e-12,Vc=fe(te),Yc=fe(ee),Wc=ge(te),Xc=ge(ee),Qc=me(te),Jc=me(ee),Zc=0,th=0,eh=0,rh=1e3,nh=0,ih=0,oh=0,sh="object"==typeof performance&&performance.now?performance:Date,ah="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};ve.prototype=xe.prototype={constructor:ve,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?ye():+r)+(null==e?0:+e),this._next||kc===this||(kc?kc._next=this:Ic=this,kc=this),this._call=t,this._time=r,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};var lh=S("start","end","interrupt"),uh=[],ch=0,hh=1,dh=2,ph=3,fh=4,gh=5,mh=6,yh=at.prototype.constructor,_h=0,vh=at.prototype;ke.prototype=De.prototype={constructor:ke,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=L(t));for(var n=this._groups,i=n.length,o=new Array(i),s=0;s=0&&(t=t.slice(0,e)),!t||"start"===t}))?Ae:we,function(){var t=a(this,r),e=t.on;e!==o&&(s=(o=e).copy()).on(n,i),t.on=s}))},attr:function(t,e){var r=w(t),n="transform"===r?Hc:Ie;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,i,o;return function(){var s,a=r(this);if(null!=a)return(s=this.getAttributeNS(t.space,t.local))===a?null:s===n&&a===i?o:o=e(n=s,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,e,r){var n,i,o;return function(){var s,a=r(this);if(null!=a)return(s=this.getAttribute(t))===a?null:s===n&&a===i?o:o=e(n=s,i=a);this.removeAttribute(t)}})(r,n,Le(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===n?i:i=e(n=o,r)}}:function(t,e,r){var n,i;return function(){var o=this.getAttribute(t);return o===r?null:o===n?i:i=e(n=o,r)}})(r,n,e+""))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var n=w(t);return this.tween(r,(n.local?function(t,e){function r(){var r=this,n=e.apply(r,arguments);return n&&function(e){r.setAttributeNS(t.space,t.local,n(e))}}return r._value=e,r}:function(t,e){function r(){var r=this,n=e.apply(r,arguments);return n&&function(e){r.setAttribute(t,n(e))}}return r._value=e,r})(n,e))},style:function(t,e,r){var n,i,o,s,a,l="transform"==(t+="")?$c:Ie;return null==e?this.styleTween(t,(n=t,i=l,function(){var t=F(this,n),e=(this.style.removeProperty(n),F(this,n));return t===e?null:t===o&&e===s?a:a=i(o=t,s=e)})).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,r){var n,i,o;return function(){var s=F(this,t),a=r(this);return null==a&&(this.style.removeProperty(t),a=F(this,t)),s===a?null:s===n&&a===i?o:o=e(n=s,i=a)}}(t,l,Le(this,"style."+t,e)):function(t,e,r){var n,i;return function(){var o=F(this,t);return o===r?null:o===n?i:i=e(n=o,r)}}(t,l,e+""),r)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,function(t,e,r){function n(){var n=this,i=e.apply(n,arguments);return i&&function(e){n.style.setProperty(t,i(e),r)}}return n._value=e,n}(t,e,r??""))},text:function(t){return this.tween("text","function"==typeof t?(e=Le(this,"text",t),function(){var t=e(this);this.textContent=t??""}):function(t){return function(){this.textContent=t}}(null==t?"":t+""));var e},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=Re(this.node(),r).tween,o=0,s=i.length;o1e-6)if(Math.abs(c*a-l*u)>1e-6&&i){var d=r-o,p=n-s,f=a*a+l*l,g=d*d+p*p,m=Math.sqrt(f),y=Math.sqrt(h),_=i*Math.tan((ud-Math.acos((f+h-g)/(2*m*y)))/2),v=_/y,x=_/m;Math.abs(v-1)>1e-6&&(this._+="L"+(t+v*u)+","+(e+v*c)),this._+="A"+i+","+i+",0,0,"+ +(c*d>u*p)+","+(this._x1=t+x*a)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,n,i,o){t=+t,e=+e;var s=(r=+r)*Math.cos(n),a=r*Math.sin(n),l=t+s,u=e+a,c=1^o,h=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%cd+cd),h>hd?this._+="A"+r+","+r+",0,1,"+c+","+(t-s)+","+(e-a)+"A"+r+","+r+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>1e-6&&(this._+="A"+r+","+r+",0,"+ +(h>=ud)+","+c+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},sr.prototype=ar.prototype={constructor:sr,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var dd=ar.prototype;dr.prototype=pr.prototype={constructor:dr,has:dd.has,add:function(t){return this["$"+(t+="")]=t,this},remove:dd.remove,clear:dd.clear,values:dd.keys,size:dd.size,empty:dd.empty,each:dd.each};var pd={},fd={},gd=34,md=10,yd=13,_d=gr(","),vd=_d.parse,xd=_d.parseRows,bd=_d.format,Td=_d.formatRows,Ed=gr("\t"),Od=Ed.parse,Sd=Ed.parseRows,Nd=Ed.format,Ad=Ed.formatRows,wd=Tr.prototype=Er.prototype;wd.copy=function(){var t,e,r=new Er(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=Or(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=Or(e));return r},wd.add=function(t){var e=+this._x.call(null,t),r=+this._y.call(null,t);return _r(this.cover(e,r),e,r,t)},wd.addAll=function(t){var e,r,n,i,o=t.length,s=new Array(o),a=new Array(o),l=1/0,u=1/0,c=-1/0,h=-1/0;for(r=0;rc&&(c=n),ih&&(h=i));for(ct||t>i||n>e||e>o))return this;var s,a,l=i-r,u=this._root;switch(a=(e<(n+o)/2)<<1|t<(r+i)/2){case 0:do{(s=new Array(4))[a]=u,u=s}while(o=n+(l*=2),t>(i=r+l)||e>o);break;case 1:do{(s=new Array(4))[a]=u,u=s}while(o=n+(l*=2),(r=i-l)>t||e>o);break;case 2:do{(s=new Array(4))[a]=u,u=s}while(n=o-(l*=2),t>(i=r+l)||n>e);break;case 3:do{(s=new Array(4))[a]=u,u=s}while(n=o-(l*=2),(r=i-l)>t||n>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=i,this._y1=o,this},wd.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},wd.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},wd.find=function(t,e,r){var n,i,o,s,a,l,u,c=this._x0,h=this._y0,d=this._x1,p=this._y1,f=[],g=this._root;for(g&&f.push(new vr(g,c,h,d,p)),null==r?r=1/0:(c=t-r,h=e-r,d=t+r,p=e+r,r*=r);l=f.pop();)if(!(!(g=l.node)||(i=l.x0)>d||(o=l.y0)>p||(s=l.x1)=y)<<1|t>=m)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-u],f[f.length-1-u]=l)}else{var _=t-+this._x.call(null,g.data),v=e-+this._y.call(null,g.data),x=_*_+v*v;if(x=(a=(f+m)/2))?f=a:m=a,(c=s>=(l=(g+y)/2))?g=l:y=l,e=p,!(p=p[h=c<<1|u]))return this;if(!p.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,d=h)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[h]=i:delete e[h],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[d]=p:this._root=p),this):(this._root=i,this)},wd.removeAll=function(t){for(var e=0,r=t.length;e0&&(o=0)}return o>0?t.slice(0,o)+t.slice(r+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return kr(100*t,e)},r:kr,s:function(t,e){var r=Lr(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Rd=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Lr(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Id=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Dr.prototype=Pr.prototype,Pr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var kd,Dd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Kr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Br.prototype={constructor:Br,reset:function(){this.s=this.t=0},add:function(t){qr(dp,t,this.t),qr(this,dp.s,this.s),this.s?this.t+=dp.t:this.s=dp.t},valueOf:function(){return this.s}};var Pd,Md,jd,Kd,Ud,Fd,$d,Hd,Bd,qd,Gd,zd,Vd,Yd,Wd,Xd,Qd,Jd,Zd,tp,ep,rp,np,ip,op,sp,ap,lp,up,cp,hp,dp=new Br,pp=1e-6,fp=Math.PI,gp=fp/2,mp=fp/4,yp=2*fp,_p=180/fp,vp=fp/180,xp=Math.abs,bp=Math.atan,Tp=Math.atan2,Ep=Math.cos,Op=Math.ceil,Sp=Math.exp,Np=Math.log,Ap=Math.pow,wp=Math.sin,Rp=Math.sign||function(t){return t>0?1:t<0?-1:0},Cp=Math.sqrt,Lp=Math.tan,Ip={Feature:function(t,e){Wr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++npp?Bd=90:jp<-pp&&($d=-90),Wd[0]=Fd,Wd[1]=Hd}},Up={sphere:Yr,point:bn,lineStart:En,lineEnd:Nn,polygonStart:function(){Up.lineStart=An,Up.lineEnd=wn},polygonEnd:function(){Up.lineStart=En,Up.lineEnd=Nn}};kn.invert=kn;var Fp,$p,Hp,Bp,qp,Gp,zp,Vp,Yp,Wp,Xp,Qp=Hr(),Jp=Vn((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a,l,u,c,h,d,p,f=o>0?fp:-fp,g=xp(o-r);xp(g-fp)0?gp:-gp),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(f,n),t.point(o,n),e=0):i!==f&&g>=fp&&(xp(r-i)pp?bp((wp(l)*(d=Ep(c))*wp(u)-wp(c)*(h=Ep(l))*wp(a))/(h*d*p)):(l+c)/2,t.point(i,n),t.lineEnd(),t.lineStart(),t.point(f,n),e=0),t.point(r=o,n=s),i=f},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*gp,n.point(-fp,i),n.point(0,i),n.point(fp,i),n.point(fp,0),n.point(fp,-i),n.point(0,-i),n.point(-fp,-i),n.point(-fp,0),n.point(-fp,i);else if(xp(t[0]-e[0])>pp){var o=t[0]pf&&(pf=t),eff&&(ff=e)},lineStart:Yr,lineEnd:Yr,polygonStart:Yr,polygonEnd:Yr,result:function(){var t=[[hf,df],[pf,ff]];return pf=ff=-(df=hf=1/0),t}},mf=0,yf=0,_f=0,vf=0,xf=0,bf=0,Tf=0,Ef=0,Of=0,Sf={point:yi,lineStart:_i,lineEnd:bi,polygonStart:function(){Sf.lineStart=Ti,Sf.lineEnd=Ei},polygonEnd:function(){Sf.point=yi,Sf.lineStart=_i,Sf.lineEnd=bi},result:function(){var t=Of?[Tf/Of,Ef/Of]:bf?[vf/bf,xf/bf]:_f?[mf/_f,yf/_f]:[NaN,NaN];return mf=yf=_f=vf=xf=bf=Tf=Ef=Of=0,t}};Ni.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,yp)}},result:Yr};var Nf,Af,wf,Rf,Cf,Lf=Hr(),If={point:Yr,lineStart:function(){If.point=Ai},lineEnd:function(){Nf&&wi(Af,wf),If.point=Yr},polygonStart:function(){Nf=!0},polygonEnd:function(){Nf=null},result:function(){var t=+Lf;return Lf.reset(),t}};Ri.prototype={_radius:4.5,_circle:Ci(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Ci(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ii.prototype={constructor:Ii,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var kf=16,Df=Ep(30*vp),Pf=Li({point:function(t,e){this.stream.point(t*vp,e*vp)}}),Mf=Gi((function(t){return Cp(2/(1+t))}));Mf.invert=zi((function(t){return 2*zr(t/2)}));var jf=Gi((function(t){return(t=Gr(t))&&t/wp(t)}));jf.invert=zi((function(t){return t})),Vi.invert=function(t,e){return[t,2*bp(Sp(e))-gp]},Qi.invert=Qi,Zi.invert=zi(bp),eo.invert=function(t,e){var r,n=e,i=25;do{var o=n*n,s=o*o;n-=r=(n*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(xp(r)>pp&&--i>0);return[t/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]},ro.invert=zi(zr),no.invert=zi((function(t){return 2*bp(t)})),io.invert=function(t,e){return[-e,2*bp(Sp(t))-gp]},fo.prototype=uo.prototype={constructor:fo,count:function(){return this.eachAfter(lo)},each:function(t){var e,r,n,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),r=o.children)for(n=0,i=r.length;n=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&&e.push({source:r.parent,target:r})})),e},copy:function(){return uo(this).eachBefore(ho)}};var Kf=Array.prototype.slice,Uf={depth:-1},Ff={};Ho.prototype=Object.create(fo.prototype);var $f=(1+Math.sqrt(5))/2,Hf=function t(e){function r(t,r,n,i,o){qo(e,t,r,n,i,o)}return r.ratio=function(e){return t((e=+e)>1?e:1)},r}($f),Bf=function t(e){function r(t,r,n,i,o){if((s=t._squarify)&&s.ratio===e)for(var s,a,l,u,c,h=-1,d=s.length,p=t.value;++h1?e:1)},r}($f),qf=[].slice,Gf={};Yo.prototype=Jo.prototype={constructor:Yo,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=qf.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),Wo(this),this},abort:function(){return null==this._error&&Xo(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,r){t.apply(null,[e].concat(r))},Qo(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Qo(this),this}};var zf=function t(e){function r(t,r){return t=null==t?0:+t,r=null==r?1:+r,1===arguments.length?(r=t,t=0):r-=t,function(){return e()*r+t}}return r.source=t,r}(Zo),Vf=function t(e){function r(t,r){var n,i;return t=null==t?0:+t,r=null==r?1:+r,function(){var o;if(null!=n)o=n,n=null;else do{n=2*e()-1,o=2*e()-1,i=n*n+o*o}while(!i||i>1);return t+r*o*Math.sqrt(-2*Math.log(i)/i)}}return r.source=t,r}(Zo),Yf=function t(e){function r(){var t=Vf.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(Zo),Wf=function t(e){function r(t){return function(){for(var r=0,n=0;n0?t>1?Es((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):hg:null};var dg=hg.range,pg=6e4,fg=6048e5,gg=Es((function(t){t.setTime(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),mg=gg.range,yg=Es((function(t){t.setTime(Math.floor(t/pg)*pg)}),(function(t,e){t.setTime(+t+e*pg)}),(function(t,e){return(e-t)/pg}),(function(t){return t.getMinutes()})),_g=yg.range,vg=Es((function(t){var e=t.getTimezoneOffset()*pg%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),xg=vg.range,bg=Es((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*pg)/864e5}),(function(t){return t.getDate()-1})),Tg=bg.range,Eg=Os(0),Og=Os(1),Sg=Os(2),Ng=Os(3),Ag=Os(4),wg=Os(5),Rg=Os(6),Cg=Eg.range,Lg=Og.range,Ig=Sg.range,kg=Ng.range,Dg=Ag.range,Pg=wg.range,Mg=Rg.range,jg=Es((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Kg=jg.range,Ug=Es((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ug.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Es((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var Fg=Ug.range,$g=Es((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*pg)}),(function(t,e){return(e-t)/pg}),(function(t){return t.getUTCMinutes()})),Hg=$g.range,Bg=Es((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),qg=Bg.range,Gg=Es((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),zg=Gg.range,Vg=Ss(0),Yg=Ss(1),Wg=Ss(2),Xg=Ss(3),Qg=Ss(4),Jg=Ss(5),Zg=Ss(6),tm=Vg.range,em=Yg.range,rm=Wg.range,nm=Xg.range,im=Qg.range,om=Jg.range,sm=Zg.range,am=Es((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),lm=am.range,um=Es((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));um.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Es((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var cm,hm=um.range,dm={"-":"",_:" ",0:"0"},pm=/^\s*\d+/,fm=/^%/,gm=/[\\^$*+?|[\]().{}]/g;Ma({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var mm="%Y-%m-%dT%H:%M:%S.%LZ",ym=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(mm),_m=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(mm),vm=1e3,xm=60*vm,bm=60*xm,Tm=24*bm,Em=7*Tm,Om=30*Tm,Sm=365*Tm,Nm=Fa("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Am=Fa("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),wm=Fa("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Rm=Fa("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Cm=Jc(Vt(300,.5,0),Vt(-240,.5,1)),Lm=Jc(Vt(-100,.75,.35),Vt(80,1.5,.8)),Im=Jc(Vt(260,.75,.35),Vt(80,1.5,.8)),km=Vt(),Dm=$a(Fa("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Pm=$a(Fa("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Mm=$a(Fa("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),jm=$a(Fa("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Km=Math.abs,Um=Math.atan2,Fm=Math.cos,$m=Math.max,Hm=Math.min,Bm=Math.sin,qm=Math.sqrt,Gm=1e-12,zm=Math.PI,Vm=zm/2,Ym=2*zm;Xa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Wm=ol(Qa);il.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Xm=Array.prototype.slice,Qm={draw:function(t,e){var r=Math.sqrt(e/zm);t.moveTo(r,0),t.arc(0,0,r,0,Ym)}},Jm={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Zm=Math.sqrt(1/3),ty=2*Zm,ey={draw:function(t,e){var r=Math.sqrt(e/ty),n=r*Zm;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},ry=Math.sin(zm/10)/Math.sin(7*zm/10),ny=Math.sin(Ym/10)*ry,iy=-Math.cos(Ym/10)*ry,oy={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=ny*r,i=iy*r;t.moveTo(0,-r),t.lineTo(n,i);for(var o=1;o<5;++o){var s=Ym*o/5,a=Math.cos(s),l=Math.sin(s);t.lineTo(l*r,-a*r),t.lineTo(a*n-l*i,l*n+a*i)}t.closePath()}},sy={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},ay=Math.sqrt(3),ly={draw:function(t,e){var r=-Math.sqrt(e/(3*ay));t.moveTo(0,2*r),t.lineTo(-ay*r,-r),t.lineTo(ay*r,-r),t.closePath()}},uy=Math.sqrt(3)/2,cy=1/Math.sqrt(12),hy=3*(cy/2+1),dy={draw:function(t,e){var r=Math.sqrt(e/hy),n=r/2,i=r*cy,o=n,s=r*cy+r,a=-o,l=s;t.moveTo(n,i),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(-.5*n-uy*i,uy*n+-.5*i),t.lineTo(-.5*o-uy*s,uy*o+-.5*s),t.lineTo(-.5*a-uy*l,uy*a+-.5*l),t.lineTo(-.5*n+uy*i,-.5*i-uy*n),t.lineTo(-.5*o+uy*s,-.5*s-uy*o),t.lineTo(-.5*a+uy*l,-.5*l-uy*a),t.closePath()}},py=[Qm,Jm,ey,sy,oy,ly,dy];_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:yl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],o=e[0],s=t[r]-i,a=e[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*s),this._beta*e[l]+(1-this._beta)*(o+n*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var fy=function t(e){function r(t){return 1===e?new _l(t):new bl(t,e)}return r.beta=function(e){return t(+e)},r}(.85);El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gy=function t(e){function r(t){return new El(t,e)}return r.tension=function(e){return t(+e)},r}(0);Ol.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var my=function t(e){function r(t){return new Ol(t,e)}return r.tension=function(e){return t(+e)},r}(0);Sl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var yy=function t(e){function r(t){return new Sl(t,e)}return r.tension=function(e){return t(+e)},r}(0);Al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _y=function t(e){function r(t){return e?new Al(t,e):new El(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);wl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vy=function t(e){function r(t){return e?new wl(t,e):new Ol(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);Rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Nl(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xy=function t(e){function r(t){return e?new Rl(t,e):new Sl(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);Cl.prototype={areaStart:ml,areaEnd:ml,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dl(this,this._t0,kl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Dl(this,kl(this,r=Il(this,t,e)),r);break;default:Dl(this,this._t0,r=Il(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Ml.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)},jl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Kl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Ul(t),i=Ul(e),o=0,s=1;s=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},Wl.prototype={constructor:Wl,insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Zl(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(Ql(this,r),r=(t=r).U),r.C=!1,n.C=!0,Jl(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(Jl(this,r),r=(t=r).U),r.C=!1,n.C=!0,Ql(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,o=t.L,s=t.R;if(r=o?s?Zl(s):o:s,i?i.L===t?i.L=r:i.R=r:this._=r,o&&s?(n=r.C,r.C=t.C,r.L=o,o.U=r,r!==s?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=s,s.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Ql(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Jl(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Ql(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Jl(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Ql(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Jl(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var by,Ty,Ey,Oy,Sy,Ny=[],Ay=[],wy=1e-6;yu.prototype={constructor:yu,polygons:function(){var t=this.edges;return this.cells.map((function(e){var r=e.halfedges.map((function(r){return su(e,t[r])}));return r.data=e.site.data,r}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(r,n){if(o=(i=r.halfedges).length)for(var i,o,s,a=r.site,l=-1,u=e[i[o-1]],c=u.left===a?u.right:u.left;++l=a)return null;var l=t-i.site[0],u=e-i.site[1],c=l*l+u*u;do{i=o.cells[n=s],s=null,i.halfedges.forEach((function(r){var n=o.edges[r],a=n.left;if(a!==i.site&&a||(a=n.right)){var l=t-a[0],u=e-a[1],h=l*l+u*u;ht?1:e>=t?0:NaN},t.deviation=s,t.extent=a,t.histogram=function(){function t(t){var i,o,s=t.length,a=new Array(s);for(i=0;ih;)d.pop(),--f;var g,m=new Array(f+1);for(i=0;i<=f;++i)(g=m[i]=[]).x0=i>0?d[i-1]:u,g.x1=i=r)for(n=r;++on&&(n=r)}else for(;++o=r)for(n=r;++on&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,o=n,s=-1,a=0;if(null==e)for(;++s=o.length)return null!=r&&e.sort(r),null!=n?n(e):e;for(var l,u,c,h=-1,d=e.length,p=o[i++],f=ar(),g=s();++ho.length)return t;var i,a=s[r-1];return null!=n&&r>=o.length?i=t.entries():(i=[],t.each((function(t,n){i.push({key:n,values:e(t,r)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}var r,n,i,o=[],s=[];return i={object:function(e){return t(e,0,lr,ur)},map:function(e){return t(e,0,cr,hr)},entries:function(r){return e(t(r,0,cr,hr),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return s[o.length-1]=t,i},sortValues:function(t){return r=t,i},rollup:function(t){return n=t,i}}},t.set=pr,t.map=ar,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.color=wt,t.rgb=It,t.hsl=Pt,t.lab=Ut,t.hcl=Gt,t.cubehelix=Vt,t.dispatch=S,t.drag=function(){function e(t){t.on("mousedown.drag",r).filter(m).on("touchstart.drag",o).on("touchmove.drag",s).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function r(){if(!d&&p.apply(this,arguments)){var e=l("mouse",f.apply(this,arguments),pt,this,arguments);e&&(lt(t.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",i,!0),yt(t.event.view),gt(),h=!1,u=t.event.clientX,c=t.event.clientY,e("start"))}}function n(){if(mt(),!h){var e=t.event.clientX-u,r=t.event.clientY-c;h=e*e+r*r>x}y.mouse("drag")}function i(){lt(t.event.view).on("mousemove.drag mouseup.drag",null),_t(t.event.view,h),mt(),y.mouse("end")}function o(){if(p.apply(this,arguments)){var e,r,n=t.event.changedTouches,i=f.apply(this,arguments),o=n.length;for(e=0;el+p||iu+p||on.index){var f=l-a.x-a.vx,g=u-a.y-a.vy,m=f*f+g*g;mt.r&&(t.r=t[e].r)}function n(){if(i){var e,r,n=i.length;for(o=new Array(n),e=0;e=c)){(t.data!==o||t.next)&&(0===i&&(p+=(i=yr())*i),0===l&&(p+=(l=yr())*l),p1?(null==e?h.remove(t):h.set(t,i(e)),o):h.get(t)},find:function(e,r,n){var i,o,s,a,l,u=0,c=t.length;for(null==n?n=1/0:n*=n,u=0;u1?(p.on(t,e),o):p.on(t)}}},t.forceX=function(t){function e(t){for(var e,r=0,s=n.length;r_n(n[0],n[1])&&(n[1]=i[1]),_n(i[0],n[1])>_n(n[0],n[1])&&(n[0]=i[0])):o.push(n=i);for(s=-1/0,e=0,n=o[r=o.length-1];e<=r;n=i,++e)i=o[e],(a=_n(n[1],i[0]))>s&&(s=a,Fd=i[0],Hd=n[1])}return Yd=Wd=null,Fd===1/0||$d===1/0?[[NaN,NaN],[NaN,NaN]]:[[Fd,$d],[Hd,Bd]]},t.geoCentroid=function(t){Xd=Qd=Jd=Zd=tp=ep=rp=np=ip=op=sp=0,Jr(t,Up);var e=ip,r=op,n=sp,i=e*e+r*r+n*n;return i<1e-12&&(e=ep,r=rp,n=np,Qd=.12&&i<.234&&n>=-.425&&n<-.214?u:i>=.166&&i<.234&&n>=-.214&&n<-.115?c:l).invert(t)},t.stream=function(t){return r&&n===t?r:(e=[l.stream(n=t),u.stream(t),c.stream(t)],i=e.length,r={point:function(t,r){for(var n=-1;++n2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=io,t.geoRotation=Kn,t.geoStream=Jr,t.geoTransform=function(t){return{stream:Li(t)}},t.cluster=function(){function t(t){var o,s=0;t.eachAfter((function(t){var r,n=t.children;n?(t.x=(r=n).reduce(so,0)/r.length,t.y=function(t){return 1+t.reduce(ao,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)}));var a=function(t){for(var e;e=t.children;)t=e[0];return t}(t),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(t),u=a.x-e(a,l)/2,c=l.x+e(l,a)/2;return t.eachAfter(i?function(e){e.x=(e.x-t.x)*r,e.y=(t.y-e.y)*n}:function(e){e.x=(e.x-u)/(c-u)*r,e.y=(1-(t.y?e.y/t.y:1))*n})}var e=oo,r=1,n=1,i=!1;return t.separation=function(r){return arguments.length?(e=r,t):e},t.size=function(e){return arguments.length?(i=!1,r=+e[0],n=+e[1],t):i?null:[r,n]},t.nodeSize=function(e){return arguments.length?(i=!0,r=+e[0],n=+e[1],t):i?[r,n]:null},t},t.hierarchy=uo,t.pack=function(){function t(t){return t.x=r/2,t.y=n/2,e?t.eachBefore(Co(e)).eachAfter(Lo(i,.5)).eachBefore(Io(1)):t.eachBefore(Co(Ro)).eachAfter(Lo(Ao,1)).eachAfter(Lo(i,t.r/Math.min(r,n))).eachBefore(Io(Math.min(r,n)/(2*t.r))),t}var e=null,r=1,n=1,i=Ao;return t.radius=function(r){return arguments.length?(e=null==(n=r)?null:No(n),t):e;var n},t.size=function(e){return arguments.length?(r=+e[0],n=+e[1],t):[r,n]},t.padding=function(e){return arguments.length?(i="function"==typeof e?e:wo(+e),t):i},t},t.packSiblings=function(t){return So(t),t},t.packEnclose=go,t.partition=function(){function t(t){var o,s,a=t.height+1;return t.x0=t.y0=n,t.x1=e,t.y1=r/a,t.eachBefore((o=r,s=a,function(t){t.children&&Do(t,t.x0,o*(t.depth+1)/s,t.x1,o*(t.depth+2)/s);var e=t.x0,r=t.y0,i=t.x1-n,a=t.y1-n;i0)throw new Error("cycle");return o}var e=Po,r=Mo;return t.id=function(r){return arguments.length?(e=No(r),t):e},t.parentId=function(e){return arguments.length?(r=No(e),t):r},t},t.tree=function(){function t(t){var l=function(t){for(var e,r,n,i,o,s=new Ho(t,0),a=[s];e=a.pop();)if(n=e._.children)for(e.children=new Array(o=n.length),i=o-1;i>=0;--i)a.push(r=e.children[i]=new Ho(n[i],i)),r.parent=e;return(s.parent=new Ho(null,0)).children=[s],s}(t);if(l.eachAfter(e),l.parent.m=-l.z,l.eachBefore(r),a)t.eachBefore(n);else{var u=t,c=t,h=t;t.eachBefore((function(t){t.xc.x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:i(u,c)/2,p=d-u.x,f=o/(c.x+d+p),g=s/(h.depth||1);t.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return t}function e(t){var e=t.children,r=t.parent.children,n=t.i?r[t.i-1]:null;if(e){!function(t){for(var e,r=0,n=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var o=(e[0].z+e[e.length-1].z)/2;n?(t.z=n.z+i(t._,n._),t.m=t.z-o):t.z=o}else n&&(t.z=n.z+i(t._,n._));t.parent.A=function(t,e,r){if(e){for(var n,o=t,s=t,a=e,l=o.parent.children[0],u=o.m,c=s.m,h=a.m,d=l.m;a=Uo(a),o=Ko(o),a&&o;)l=Ko(l),(s=Uo(s)).a=t,(n=a.z+h-o.z-u+i(a._,o._))>0&&(Fo($o(a,t,r),t,n),u+=n,c+=n),h+=a.m,u+=o.m,d+=l.m,c+=s.m;a&&!Uo(s)&&(s.t=a,s.m+=h-c),o&&!Ko(l)&&(l.t=o,l.m+=u-d,r=t)}return r}(t,n,t.parent.A||r[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function n(t){t.x*=o,t.y=t.depth*s}var i=jo,o=1,s=1,a=null;return t.separation=function(e){return arguments.length?(i=e,t):i},t.size=function(e){return arguments.length?(a=!1,o=+e[0],s=+e[1],t):a?null:[o,s]},t.nodeSize=function(e){return arguments.length?(a=!0,o=+e[0],s=+e[1],t):a?[o,s]:null},t},t.treemap=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(e),s=[0],n&&t.eachBefore(ko),t}function e(t){var e=s[t.depth],n=t.x0+e,i=t.y0+e,o=t.x1-e,d=t.y1-e;o=r-1){var c=a[e];return c.x0=i,c.y0=o,c.x1=s,void(c.y1=l)}for(var h=u[e],d=n/2+h,p=e+1,f=r-1;p>>1;u[g]l-o){var _=(i*y+s*m)/n;t(e,p,m,i,o,_,l),t(p,r,y,_,o,s,l)}else{var v=(o*y+l*m)/n;t(e,p,m,i,o,s,v),t(p,r,y,i,v,s,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=Do,t.treemapSlice=Bo,t.treemapSliceDice=function(t,e,r,n,i){(1&t.depth?Bo:Do)(t,e,r,n,i)},t.treemapSquarify=Hf,t.treemapResquarify=Bf,t.interpolate=le,t.interpolateArray=ne,t.interpolateBasis=Xt,t.interpolateBasisClosed=Qt,t.interpolateDate=ie,t.interpolateNumber=oe,t.interpolateObject=se,t.interpolateRound=ue,t.interpolateString=ae,t.interpolateTransformCss=$c,t.interpolateTransformSvg=Hc,t.interpolateZoom=pe,t.interpolateRgb=Dc,t.interpolateRgbBasis=Pc,t.interpolateRgbBasisClosed=Mc,t.interpolateHsl=Vc,t.interpolateHslLong=Yc,t.interpolateLab=function(t,e){var r=ee((t=Ut(t)).l,(e=Ut(e)).l),n=ee(t.a,e.a),i=ee(t.b,e.b),o=ee(t.opacity,e.opacity);return function(e){return t.l=r(e),t.a=n(e),t.b=i(e),t.opacity=o(e),t+""}},t.interpolateHcl=Wc,t.interpolateHclLong=Xc,t.interpolateCubehelix=Qc,t.interpolateCubehelixLong=Jc,t.quantize=function(t,e){for(var r=new Array(e),n=0;n=0;--e)u.push(t[n[o[e]][2]]);for(e=+a;ea!=u>a&&s<(l-r)*(a-n)/(u-n)+r&&(c=!c),l=r,u=n;return c},t.polygonLength=function(t){for(var e,r,n=-1,i=t.length,o=t[i-1],s=o[0],a=o[1],l=0;++n0){for(;pl)break;m.push(d)}}else for(;p=1;--c)if(!((d=u*c)l)break;m.push(d)}}else m=h(p,f,Math.min(f-p,g)).map(a);return e?m.reverse():m},n.tickFormat=function(e,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=t.format(r)),e===1/0)return r;null==e&&(e=10);var i=Math.max(1,o*e/n.ticks().length);return function(t){var e=t/a(Math.round(s(t)));return e*o0?s[e-1]:i[0],e=o?[s[o-1],i]:[s[e-1],s[e]]},e.copy=function(){return t().domain([n,i]).range(a)},ps(e)},t.scaleThreshold=function t(){function e(t){if(t<=t)return n[Cu(r,t,0,i)]}var r=[.5],n=[0,1],i=1;return e.domain=function(t){return arguments.length?(r=sg.call(t),i=Math.min(r.length,n.length-1),e):r.slice()},e.range=function(t){return arguments.length?(n=sg.call(t),i=Math.min(r.length,n.length-1),e):n.slice()},e.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},e.copy=function(){return t().domain(r).range(n)},e},t.scaleTime=function(){return Ua(Ug,jg,Eg,bg,vg,yg,gg,hg,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},t.scaleUtc=function(){return Ua(um,am,Vg,Gg,Bg,$g,gg,hg,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},t.schemeCategory10=Nm,t.schemeCategory20b=Am,t.schemeCategory20c=wm,t.schemeCategory20=Rm,t.interpolateCubehelixDefault=Cm,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return km.h=360*t-100,km.s=1.5-1.5*e,km.l=.8-.9*e,km+""},t.interpolateWarm=Lm,t.interpolateCool=Im,t.interpolateViridis=Dm,t.interpolateMagma=Pm,t.interpolateInferno=Mm,t.interpolatePlasma=jm,t.scaleSequential=function t(e){function r(t){var r=(t-n)/(i-n);return e(o?Math.max(0,Math.min(1,r)):r)}var n=0,i=1,o=!1;return r.domain=function(t){return arguments.length?(n=+t[0],i=+t[1],r):[n,i]},r.clamp=function(t){return arguments.length?(o=!!t,r):o},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(e).domain([n,i]).clamp(o)},ps(r)},t.create=function(t){return lt(R(t).call(document.documentElement))},t.creator=R,t.local=ut,t.matcher=Xu,t.mouse=pt,t.namespace=w,t.namespaces=zu,t.clientPoint=dt,t.select=lt,t.selectAll=function(t){return"string"==typeof t?new st([document.querySelectorAll(t)],[document.documentElement]):new st([t??[]],Zu)},t.selection=at,t.selector=L,t.selectorAll=k,t.style=F,t.touch=ft,t.touches=function(t,e){null==e&&(e=ht().touches);for(var r=0,n=e?e.length:0,i=new Array(n);rb;if(l||(l=t=tr()),xGm)if(E>Ym-Gm)l.moveTo(x*Fm(b),x*Bm(b)),l.arc(0,0,x,b,T,!O),v>Gm&&(l.moveTo(v*Fm(T),v*Bm(T)),l.arc(0,0,v,T,b,O));else{var S,N,A=b,w=T,R=b,C=T,L=E,I=E,k=a.apply(this,arguments)/2,D=k>Gm&&(i?+i.apply(this,arguments):qm(v*v+x*x)),P=Hm(Km(x-v)/2,+n.apply(this,arguments)),M=P,j=P;if(D>Gm){var K=Ba(D/v*Bm(k)),U=Ba(D/x*Bm(k));(L-=2*K)>Gm?(R+=K*=O?1:-1,C-=K):(L=0,R=C=(b+T)/2),(I-=2*U)>Gm?(A+=U*=O?1:-1,w-=U):(I=0,A=w=(b+T)/2)}var F=x*Fm(A),$=x*Bm(A),H=v*Fm(C),B=v*Bm(C);if(P>Gm){var q=x*Fm(w),G=x*Bm(w),z=v*Fm(R),V=v*Bm(R);if(EGm?[(c=F)+(_=((m=H-(d=q))*((h=$)-(p=G))-(y=B-p)*(c-d))/(y*(f=z-c)-m*(g=V-h)))*f,h+_*g]:[H,B],W=F-Y[0],X=$-Y[1],Q=q-Y[0],J=G-Y[1],Z=1/Bm(function(t){return t>1?0:t<-1?zm:Math.acos(t)}((W*Q+X*J)/(qm(W*W+X*X)*qm(Q*Q+J*J)))/2),tt=qm(Y[0]*Y[0]+Y[1]*Y[1]);M=Hm(P,(v-tt)/(Z-1)),j=Hm(P,(x-tt)/(Z+1))}}I>Gm?j>Gm?(S=Wa(z,V,F,$,x,j,O),N=Wa(q,G,H,B,x,j,O),l.moveTo(S.cx+S.x01,S.cy+S.y01),jGm&&L>Gm?M>Gm?(S=Wa(H,B,q,G,v,-M,O),N=Wa(F,$,z,V,v,-M,O),l.lineTo(S.cx+S.x01,S.cy+S.y01),M0&&(p+=h);for(null!=r?f.sort((function(t,e){return r(g[t],g[e])})):null!=n&&f.sort((function(e,r){return n(t[e],t[r])})),a=0,u=p?(y-d*v)/p:0;a0?h*u:0)+v,g[l]={data:t[l],index:a,value:h,startAngle:m,endAngle:c,padAngle:_};return g}var e=nl,r=rl,n=null,i=Ha(0),o=Ha(Ym),s=Ha(0);return t.value=function(r){return arguments.length?(e="function"==typeof r?r:Ha(+r),t):e},t.sortValues=function(e){return arguments.length?(r=e,n=null,t):r},t.sort=function(e){return arguments.length?(n=e,r=null,t):n},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ha(+e),t):i},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ha(+e),t):o},t.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Ha(+e),t):s},t},t.areaRadial=ll,t.radialArea=ll,t.lineRadial=al,t.radialLine=al,t.pointRadial=ul,t.linkHorizontal=function(){return dl(pl)},t.linkVertical=function(){return dl(fl)},t.linkRadial=function(){var t=dl(gl);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.symbol=function(){function t(){var t;if(n||(n=t=tr()),e.apply(this,arguments).draw(n,+r.apply(this,arguments)),t)return n=null,t+""||null}var e=Ha(Qm),r=Ha(64),n=null;return t.type=function(r){return arguments.length?(e="function"==typeof r?r:Ha(r),t):e},t.size=function(e){return arguments.length?(r="function"==typeof e?e:Ha(+e),t):r},t.context=function(e){return arguments.length?(n=e??null,t):n},t},t.symbols=py,t.symbolCircle=Qm,t.symbolCross=Jm,t.symbolDiamond=ey,t.symbolSquare=sy,t.symbolStar=oy,t.symbolTriangle=ly,t.symbolWye=dy,t.curveBasisClosed=function(t){return new vl(t)},t.curveBasisOpen=function(t){return new xl(t)},t.curveBasis=function(t){return new _l(t)},t.curveBundle=fy,t.curveCardinalClosed=my,t.curveCardinalOpen=yy,t.curveCardinal=gy,t.curveCatmullRomClosed=vy,t.curveCatmullRomOpen=xy,t.curveCatmullRom=_y,t.curveLinearClosed=function(t){return new Cl(t)},t.curveLinear=Qa,t.curveMonotoneX=function(t){return new Pl(t)},t.curveMonotoneY=function(t){return new Ml(t)},t.curveNatural=function(t){return new Kl(t)},t.curveStep=function(t){return new Fl(t,.5)},t.curveStepAfter=function(t){return new Fl(t,1)},t.curveStepBefore=function(t){return new Fl(t,0)},t.stack=function(){function t(t){var o,s,a=e.apply(this,arguments),l=t.length,u=a.length,c=new Array(u);for(o=0;o0){for(var r,n,i,o=0,s=t[0].length;o1)for(var r,n,i,o,s,a,l=0,u=t[e[0]].length;l=0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=s,n[0]=s+=i):n[0]=o},t.stackOffsetNone=$l,t.stackOffsetSilhouette=function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,s=1;shh&&r.name===e)return new ke([[t]],Bh,e,+n);return null},t.interrupt=Ce,t.voronoi=function(){function t(t){return new yu(t.map((function(n,i){var o=[Math.round(e(n,i,t)/wy)*wy,Math.round(r(n,i,t)/wy)*wy];return o.index=i,o.data=n,o})),n)}var e=Vl,r=Yl,n=null;return t.polygons=function(e){return t(e).polygons()},t.links=function(e){return t(e).links()},t.triangles=function(e){return t(e).triangles()},t.x=function(r){return arguments.length?(e="function"==typeof r?r:zl(+r),t):e},t.y=function(e){return arguments.length?(r="function"==typeof e?e:zl(+e),t):r},t.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],t):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},t.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],t):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},t},t.zoom=function(){function e(t){t.property("__zoom",Su).on("wheel.zoom",l).on("mousedown.zoom",u).on("dblclick.zoom",c).filter(x).on("touchstart.zoom",h).on("touchmove.zoom",d).on("touchend.zoom touchcancel.zoom",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function r(t,e){return(e=Math.max(b[0],Math.min(b[1],e)))===t.k?t:new vu(e,t.x,t.y)}function n(t,e,r){var n=e[0]-r[0]*t.k,i=e[1]-r[1]*t.k;return n===t.x&&i===t.y?t:new vu(t.k,n,i)}function i(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,e,r){t.on("start.zoom",(function(){s(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){s(this,arguments).end()})).tween("zoom",(function(){var t=arguments,n=s(this,t),o=y.apply(this,t),a=r||i(o),l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof e?e.apply(this,t):e,h=O(u.invert(a).concat(l/u.k),c.invert(a).concat(l/c.k));return function(t){if(1===t)t=c;else{var e=h(t),r=l/e[2];t=new vu(r,a[0]-e[0]*r,a[1]-e[1]*r)}n.zoom(null,t)}}))}function s(t,e){for(var r,n=0,i=N.length;nC}e.zoom("mouse",_(n(e.that.__zoom,e.mouse[0]=pt(e.that),e.mouse[1]),e.extent,T))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),_t(t.event.view,e.moved),Tu(),e.end()}),!0),i=pt(this),o=t.event.clientX,a=t.event.clientY;yt(t.event.view),bu(),e.mouse=[i,this.__zoom.invert(i)],Ce(this),e.start()}}function c(){if(m.apply(this,arguments)){var i=this.__zoom,s=pt(this),a=i.invert(s),l=i.k*(t.event.shiftKey?.5:2),u=_(n(r(i,l),s,a),y.apply(this,arguments),T);Tu(),E>0?lt(this).transition().duration(E).call(o,u,s):lt(this).call(e.transform,u)}}function h(){if(m.apply(this,arguments)){var e,r,n,i,o=s(this,arguments),a=t.event.changedTouches,l=a.length;for(bu(),r=0;r{!function(r){"object"==typeof t&&typeof e<"u"?e.exports=r():"function"==typeof define&&define.amd?define([],r):(typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:this).cola=r()}((function(){return function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var l="function"==typeof h&&h;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};e[s][0].call(c.exports,(function(t){return i(e[s][1][t]||t)}),c,c.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof h&&h,s=0;sa;){var l=e[a][s];l>0&&l1e-9)break;var p=this.offsetDir();for(n=0;n1&&f>g||!isFinite(g)){for(n=0;n1&&(m=1);var y=g*g,_=2*m*(f-g)/(y*f),v=h*f,x=2*-m/(y*v);for(isFinite(_)||console.log(_),n=0;n0?N-(R+1)*T:N-(R-1)*T;-b0;)for(var i=e;i-- >0;)r(n,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var r=this;this.computeDerivatives(t);var n=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,n),this.project){this.matrixApply((function(n,i){return r.e[n][i]=t[n][i]-e[n][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,r=!1;!r&&t-- >0;){var n=this.rungeKutta();r=Math.abs(e/n-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();r.PseudoRandom=o},{}],8:[function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=t("./rectangle"),s=function(){};r.Point=s;var a=function(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n};r.LineSegment=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);function u(t,e,r){return(e.x-t.x)*(r.y-t.y)-(r.x-t.x)*(e.y-t.y)}function c(t,e,r){return u(t,e,r)>0}function h(t,e,r){return u(t,e,r)<0}function d(t,e){var r=e.slice(0);return r.push(e[0]),{rtan:p(t,r),ltan:f(t,r)}}function p(t,e){var r,n,i,o,s=e.length-1;if(h(t,e[1],e[0])&&!c(t,e[s-1],e[0]))return 0;for(r=0,n=s;;){if(n-r==1)return c(t,e[r],e[n])?r:n;if((o=h(t,e[(i=Math.floor((r+n)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[r+1],e[r])?o||c(t,e[r],e[i])?n=i:r=i:o&&h(t,e[r],e[i])?n=i:r=i}}function f(t,e){var r,n,i,o,s=e.length-1;if(c(t,e[s-1],e[0])&&!h(t,e[1],e[0]))return 0;for(r=0,n=s;;){if(n-r==1)return h(t,e[r],e[n])?r:n;if(o=h(t,e[(i=Math.floor((r+n)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;h(t,e[r+1],e[r])?o?h(t,e[r],e[i])?n=i:r=i:n=i:o?r=i:c(t,e[r],e[i])?n=i:r=i}}function g(t,e,r,n,i,o){var s,a;a=n(t[s=r(e[0],t)],e);for(var l=!1;!l;){for(l=!0;s===t.length-1&&(s=0),!i(e[a],t[s],t[s+1]);)++s;for(;0===a&&(a=e.length-1),!o(t[s],e[a],e[a-1]);)--a,l=!1}return{t1:s,t2:a}}function m(t,e){return g(t,e,p,f,c,h)}r.PolyPoint=l,r.isLeft=u,r.ConvexHull=function(t){var e,r=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),n=t.length,i=r[0].x;for(e=1;e=0&&r[e].x===c;e--);for(a=e+1,e=o;++e<=a;)if(!(u(r[0],r[a],r[e])>=0&&e1&&!(u(s[s.length-2],s[s.length-1],r[e])>0);)s.length-=1;0!=e&&s.push(r[e])}l!=a&&s.push(r[l]);var h=s.length;for(e=a;--e>=o;)if(!(u(r[l],r[o],r[e])>=0&&e>o)){for(;s.length>h&&!(u(s[s.length-2],s[s.length-1],r[e])>0);)s.length-=1;0!=e&&s.push(r[e])}}return s},r.clockwiseRadialSweep=function(t,e,r){e.slice(0).sort((function(e,r){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(r.y-t.y,r.x-t.x)})).forEach(r)},r.tangent_PolyPolyC=g,r.LRtangent_PolyPolyC=function(t,e){var r=m(e,t);return{t1:r.t2,t2:r.t1}},r.RLtangent_PolyPolyC=m,r.LLtangent_PolyPolyC=function(t,e){return g(t,e,f,f,h,h)},r.RRtangent_PolyPolyC=function(t,e){return g(t,e,p,p,c,c)};var y=function(t,e){this.t1=t,this.t2=e};r.BiTangent=y;var _=function(){};r.BiTangents=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);r.TVGPoint=v;var x=function(t,e,r,n){this.id=t,this.polyid=e,this.polyvertid=r,this.p=n,n.vv=this};r.VisibilityVertex=x;var b=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();r.VisibilityEdge=b;var T=function(){function t(t,e){if(this.P=t,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var r=t.length,n=0;n0&&this.E.push(new b(i[o-1].vv,a))}i.length>1&&this.E.push(new b(i[0].vv,i[i.length-1].vv))}for(n=0;n0)return!0;return!1},t}();function E(t,e){for(var r=[],n=1,i=e.length;n=0&&g>=0&&m<0&&v>=0&&x>=0&&b<0?i.ll=new y(o,s):f<=0&&g<=0&&m>0&&v<=0&&x<=0&&b>0?i.rr=new y(o,s):f<=0&&g>0&&m<=0&&v>=0&&x<0&&b>=0?i.rl=new y(o,s):f>=0&&g<0&&m>=0&&v<=0&&x>0&&b<=0&&(i.lr=new y(o,s))}return i}function S(t,e){return!t.every((function(t){return!function(t,e){for(var r=1,n=e.length;r0)return!0}return!1}},{"./rectangle":17}],9:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./rectangle"),i=t("./vpsc"),o=t("./shortestpaths"),s=function(t,e,r){this.id=t,this.rect=e,this.children=r,this.leaf=typeof r>"u"||0===r.length};r.NodeWrapper=s;var a=function(t,e,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=r,this.node=n,this.line=i};r.Vert=a;var l=function(){function t(e,r){this.s=e,this.t=r;var n=t.findMatch(e,r),i=r.slice(0).reverse(),o=t.findMatch(e,i);n.length>=o.length?(this.length=n.length,this.si=n.si,this.ti=n.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=r.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var r=t.length,n=e.length,i={length:0,si:-1,ti:-1},o=new Array(r),s=0;si.length&&(i.length=l,i.si=s-l+1,i.ti=a-l+1)}else o[s][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();r.LongestCommonSubsequence=l;var u=function(){function t(t,e,r){var i=this;void 0===r&&(r=12),this.originalnodes=t,this.groupPadding=r,this.leaves=null,this.nodes=t.map((function(t,r){return new s(r,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){typeof t.parent>"u"&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=n.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),l=this.midPoints(this.rows.map((function(t){return t.pos}))),u=o[0],c=o[o.length-1],h=l[0],d=l[l.length-1],p=this.rows.map((function(t){return{x1:u,x2:c,y1:t.pos,y2:t.pos}})).concat(l.map((function(t){return{x1:u,x2:c,y1:t,y2:t}}))),f=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:d}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:d}}))),g=p.concat(f);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],p.forEach((function(t){return f.forEach((function(e){var r=new a(i.verts.length,e.x1,t.y1);t.verts.push(r),e.verts.push(r),i.verts.push(r);for(var n=i.backToFront.length;n-- >0;){var o=i.backToFront[n],s=o.rect,l=Math.abs(r.x-s.cx()),u=Math.abs(r.y-s.cy());if(l0&&i=n&&console.warn("[GridRouter.getGridLines] Hit max iterations limit, possible infinite loop prevented"),e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root&&e<1e3;)if(e++,typeof(t=t.parent)>"u"||null===t){console.warn("[GridRouter.getDepth] Encountered node with undefined parent");break}return e},t.prototype.midPoints=function(t){if(!t||0===t.length)return[0];if(1===t.length)return[t[0]-10,t[0]+10];var e=t[1]-t[0];(!Number.isFinite(e)||0===e)&&(e=20);for(var r=[t[0]-e/2],n=1;n"u"||null===t){console.warn("[GridRouter.findLineage] Encountered node with undefined parent");break}e.push(t),r++}while(t!==this.root&&r<1e3);return e.reverse()},t.prototype.findAncestorPathBetween=function(t,e){for(var r=this.findLineage(t),n=this.findLineage(e),i=0;r[i]===n[i]&&i.1)&&(u={pos:h[0][e],segments:[]},l.push(u)),u.segments.push(h)}return l},t.nudgeSegs=function(t,e,r,n,o,s){var a=n.length;if(!(a<=1)){for(var l=n.map((function(e){return new i.Variable(e[0][t])})),u=[],c=0;c=0&&u.push(new i.Constraint(l[m],l[y],s))}new i.Solver(l,u).solve(),l.forEach((function(e,i){var o=n[i],s=e.position();o[0][t]=o[1][t]=s;var a=r[o.edgeid];o.i>0&&(a[o.i-1][1][t]=s),o.iMath.PI||i<-Math.PI)&&(i=n-r),i},t.isLeft=function(t,e,r){return(e.x-t.x)*(r.y-t.y)-(e.y-t.y)*(r.x-t.x)<=0},t.getOrder=function(t){for(var e={},r=0;r"u"&&(e[n.l]={}),e[n.l][n.r]=!0}return function(t,r){return typeof e[t]<"u"&&e[t][r]}},t.orderEdges=function(e){for(var r=[],n=0;n=u.length||h.ti+h.length>=c.length)){r.push({l:n,r:i});continue}h.si+h.length>=u.length||h.ti+h.length>=c.length?(o=u[h.si+1],a=u[h.si-1],s=c[h.ti-1]):(o=u[h.si+h.length-2],s=u[h.si+h.length],a=c[h.ti+h.length]),t.isLeft(o,s,a)?r.push({l:i,r:n}):r.push({l:n,r:i})}}return t.getOrder(r)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var r=[],n=e(t[0]),i=1;i1&&c>1?1e3:0})).reverse().map((function(t){return r.verts[t]}));return this.nodes[i.id]&&this.nodes[i.id].ports&&this.nodes[i.id].ports.length>0&&c.push(this.nodes[i.id].ports[0]),c.filter((function(t,e){return!!t&&!(e0&&t.node===i&&c[e-1]&&c[e-1].node===i)}))},t.getRoutePath=function(e,r,n,i){var o,s,a,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var u=0;u0?c-=d/Math.abs(d)*r:h-=p/Math.abs(p)*r,l.routepath+="L "+c+" "+h+" ";var f=e[u+1],g=f[0].x,m=f[0].y;d=f[1].x-g,p=f[1].y-m;var y,_,v=t.angleBetween2Lines(o,f)<0?1:0;Math.abs(d)>0?(y=g+d/Math.abs(d)*r,_=m):(y=g,_=m+p/Math.abs(p)*r);var x=Math.abs(y-c),b=Math.abs(_-h);l.routepath+="A "+x+" "+b+" 0 0 "+v+" "+y+" "+_+" "}else{var T=[c,h];Math.abs(d)>0?(s=[c-=d/Math.abs(d)*i,h+n],a=[c,h-n]):(s=[c+n,h-=p/Math.abs(p)*i],a=[c-n,h]),l.routepath+="L "+c+" "+h+" ",i>0&&(l.arrowpath="M "+T[0]+" "+T[1]+" L "+s[0]+" "+s[1]+" L "+a[0]+" "+a[1])}}else c=(o=e[0])[1].x,h=o[1].y,d=c-o[0].x,p=h-o[0].y,T=[c,h],Math.abs(d)>0?(s=[c-=d/Math.abs(d)*i,h+n],a=[c,h-n]):(s=[c+n,h-=p/Math.abs(p)*i],a=[c-n,h]),l.routepath+="L "+c+" "+h+" ",i>0&&(l.arrowpath="M "+T[0]+" "+T[1]+" L "+s[0]+" "+s[1]+" L "+a[0]+" "+a[1]);return l},t}();r.GridRouter=u},{"./rectangle":17,"./shortestpaths":18,"./vpsc":19}],10:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=10,i=(1+Math.sqrt(5))/2,o=1e-4;r.applyPacking=function(t,e,r,s,a,l){void 0===a&&(a=1),void 0===l&&(l=!0);var u=e,c=r,h=(a=typeof a<"u"?a:1,s=typeof s<"u"?s:0,0),d=0,p=0,f=0,g=[];function m(t,e){g=[],h=0,d=0,f=0;for(var r=0;r=t.height&&g[i].x+g[i].width+t.width+n-e<=o){r=g[i];break}g.push(t),void 0!==r?(t.x=r.x+r.width+n,t.y=r.bottom,t.space_left=t.height,t.bottom=t.y,r.space_left-=t.height+n,r.bottom+=t.height+n):(t.y=f,f+=t.height+n,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-d>-1e-4&&(d=t.y+t.height-0),t.x+t.width-h>-1e-4&&(h=t.x+t.width-0)}0!=t.length&&(t.forEach((function(t){!function(t){var e=Number.MAX_VALUE,r=Number.MAX_VALUE,n=0,i=0;t.array.forEach((function(t){var o=typeof t.width<"u"?t.width:s,a=typeof t.height<"u"?t.height:s;o/=2,a/=2,n=Math.max(t.x+o,n),e=Math.min(t.x-o,e),i=Math.max(t.y+a,i),r=Math.min(t.y-a,r)})),t.width=n-e,t.height=i-r}(t)})),function(t,e){var r=Number.POSITIVE_INFINITY,s=0;t.sort((function(t,e){return e.height-t.height}));for(var a=y=p=t.reduce((function(t,e){return t.widthp||g>o;){if(1!=d){var y=l-(l-a)/i;c=m(t,y)}if(0!=d){var _=a+(l-a)/i;h=m(t,_)}if(f=Math.abs(y-_),g=Math.abs(c-h),ch?(a=y,y=_,c=h,d=1):(l=_,_=y,h=c,d=0),u++>100)break}m(t,s)}(t),l&&t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var r=e.x-t.width/2,n=e.y-t.height/2,i=t.x-r+u/2-h/2,o=t.y-n+c/2-d/2;t.array.forEach((function(t){t.x+=i,t.y+=o}))})))},r.separateGraphs=function(t,e){for(var r={},n={},i=[],o=0,s=0;s"u"||typeof t.py>"u")&&(t.px=t.x,t.py=t.y);var i=[t.px,t.py];this._descent.locks.add(e,i)}var o=this._descent.rungeKutta();return 0===o?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=o),this._lastStress=o,this.updateNodePositions(),this.trigger({type:n.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,e=this._descent.x[0],r=this._descent.x[1],n=this._nodes.length;n--;)(t=this._nodes[n]).x=e[n],t.y=r[n]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var r=0;r"u"&&(t.padding=1),typeof t.leaves<"u"&&t.leaves.forEach((function(r,n){"number"==typeof r&&((t.leaves[n]=e._nodes[r]).parent=t)})),typeof t.groups<"u"&&t.groups.forEach((function(r,n){"number"==typeof r&&((t.groups[n]=e._groups[r]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return typeof t.parent>"u"})),this._rootGroup.groups=this._groups.filter((function(t){return typeof t.parent>"u"})),this):this._groups},t.prototype.powerGraphGroups=function(t){var e=o.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(e.groups),t(e),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,e){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof e?function(){return e}:e},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:n.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var r=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return s.symmetricDiffLinkLengths(r._links,r.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var r=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return s.jaccardLinkLengths(r._links,r.linkAccessor,e)},this},t.prototype.start=function(e,r,n,i,o,c){var h=this;void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=!0),void 0===c&&(c=!0);var d=this.nodes().length,p=d+2*this._groups.length;this._links.length;var f,g=this._canvasSize[0],m=this._canvasSize[1],y=new Array(p),_=new Array(p),v=null,x=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,typeof t.x>"u"&&(t.x=g/2,t.y=m/2),y[e]=t.x,_[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new u.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),v=a.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var r=t.getSourceIndex(e),n=t.getTargetIndex(e);v[r][n]=v[n][r]=e.weight||1})));var b=a.Descent.createSquareMatrix(p,(function(t,e){return f[t][e]}));if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var T=d;this._groups.forEach((function(t){(function(t,e,r,n){v[t][e]=v[e][t]=r,b[t][e]=b[e][t]=.1})(T,T+1,h._groupCompactness),typeof t.bounds>"u"?(y[T]=g/2,_[T++]=m/2,y[T]=g/2,_[T++]=m/2):(y[T]=t.bounds.x,_[T++]=t.bounds.y,y[T]=t.bounds.X,_[T++]=t.bounds.Y)}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(s.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new a.Descent([y,_],b),this._descent.locks.clear(),T=0;T0&&(this._descent.project=new l.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(r),this.separateOverlappingComponents(g,m,c),this.avoidOverlaps(x),x&&(this._nodes.forEach((function(t,e){t.x=y[e],t.y=_[e]})),this._descent.project=new l.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){y[e]=t.x,_[e]=t.y}))),this._descent.G=v,this._descent.run(n),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var N=a.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?v[t][e]:0}));this._descent.G=N,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,c),o?this.resume():this},t.prototype.initialLayout=function(e,r,n){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),s=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){s.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){typeof t.leaves<"u"&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),typeof t.groups<"u"&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(s).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){r[t.index]=s[t.index].x,n[t.index]=s[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,r){var n=this;if(void 0===r&&(r=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var s=h.separateGraphs(this._nodes,this._links);h.applyPacking(s,t,e,this._defaultNodeSize,1,r),this._nodes.forEach((function(t,e){n._descent.x[0][e]=t.x,n._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new c.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,r){void 0===e&&(e=5);var n=[],i=new c.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},s={x:t.target.x,y:t.target.y},a=i.addPoint(o,t.source.index),h=i.addPoint(s,t.target.index);i.addEdgeIfVisible(o,s,t.source.index,t.target.index),typeof r<"u"&&r(i);var d=new u.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(a.id,h.id);if(1===d.length||d.length===i.V.length){var p=l.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);n=[p.sourceIntersection,p.arrowStart]}else{for(var f=d.length-2,g=i.V[d[f]].p,m=i.V[d[0]].p,y=(n=[t.source.innerBounds.rayIntersection(g.x,g.y)],f);y>=0;--y)n.push(i.V[d[y]].p);n.push(l.makeEdgeTo(m,t.target.innerBounds,e))}return n},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){d(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,r){typeof e.leaves<"u"&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-r.x,e._dragGroupOffsetY=e.y-r.y})),typeof e.groups<"u"&&e.groups.forEach((function(e){return t.storeOffset(e,r)}))},t.dragOrigin=function(t){return d(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,r){d(e)?(typeof e.leaves<"u"&&e.leaves.forEach((function(t){e.bounds.setXCentre(r.x),e.bounds.setYCentre(r.y),t.px=t._dragGroupOffsetX+r.x,t.py=t._dragGroupOffsetY+r.y})),typeof e.groups<"u"&&e.groups.forEach((function(e){return t.drag(e,r)}))):(e.px=r.x,e.py=r.y)},t.dragEnd=function(e){d(e)?(typeof e.leaves<"u"&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),typeof e.groups<"u"&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}();r.Layout=p},{"./descent":7,"./geom":8,"./handledisconnected":10,"./linklengths":13,"./powergraph":14,"./rectangle":17,"./shortestpaths":18}],12:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./shortestpaths"),i=t("./descent"),o=t("./rectangle"),s=t("./linklengths"),a=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,r){var n=r[e.target]-r[e.source];return t+n*n}),0))},t}();r.Link3D=a;r.Node3D=function(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),this.x=t,this.y=e,this.z=r};var l=function(){function t(e,r,n){var i=this;void 0===n&&(n=1),this.nodes=e,this.links=r,this.idealLinkLength=n,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o"u"&&(e[s]=Math.random())}i.result[0][r]=e.x,i.result[1][r]=e.y,i.result[2][r]=e.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var e=this;void 0===t&&(t=100);var r=this.nodes.length,a=new u;this.useJaccardLinkLengths&&s.jaccardLinkLengths(this.links,a,1.5),this.links.forEach((function(t){return t.length*=e.idealLinkLength}));var l=new n.Calculator(r,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),c=i.Descent.createSquareMatrix(r,(function(t,e){return l[t][e]})),h=i.Descent.createSquareMatrix(r,(function(){return 2}));this.links.forEach((function(t){var e=t.source,r=t.target;return h[e][r]=h[r][e]=1})),this.descent=new i.Descent(this.result,c),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var d=0;d"u"&&(r[t]={}),r[t][e]={}};return t.forEach((function(t){var r=e.getSourceIndex(t),i=e.getTargetIndex(t);n(r,i),n(i,r)})),r}(t,n);t.forEach((function(t){var o=i[n.getSourceIndex(t)],s=i[n.getTargetIndex(t)];n.setLength(t,1+e*r(o,s))}))}function s(t,e,r){var n=[],i=0,o=[],s=[];function a(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,r=t.out;e"u"?(a(n),t.lowlink=Math.min(t.lowlink,n.lowlink)):n.onStack&&(t.lowlink=Math.min(t.lowlink,n.index))}if(t.lowlink===t.index){for(var l=[];o.length&&((n=o.pop()).onStack=!1,l.push(n),n!==t););s.push(l.map((function(t){return t.id})))}}for(var l=0;l"u"&&a(m)}return s}Object.defineProperty(r,"__esModule",{value:!0}),r.symmetricDiffLinkLengths=function(t,e,r){void 0===r&&(r=1),o(t,r,(function(t,e){return Math.sqrt(n(t,e)-i(t,e))}),e)},r.jaccardLinkLengths=function(t,e,r){void 0===r&&(r=1),o(t,r,(function(t,e){return Math.min(Object.keys(t).length,Object.keys(e).length)<1.1?0:i(t,e)/n(t,e)}),e)},r.generateDirectedEdgeConstraints=function(t,e,r,n){var i=s(t,e,n),o={};i.forEach((function(t,e){return t.forEach((function(t){return o[t]=e}))}));var a=[];return e.forEach((function(t){var e=n.getSourceIndex(t),i=n.getTargetIndex(t);o[e]!==o[i]&&a.push({axis:r,left:e,right:i,gap:n.getMinSeparation(t)})})),a},r.stronglyConnectedComponents=s},{}],14:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(t,e,r){this.source=t,this.target=e,this.type=r};r.PowerEdge=n;var i=function(){function t(t,e,r,n){var i=this;if(this.linkAccessor=r,this.modules=new Array(t),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new a);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var r=t.incoming.intersection(e.incoming),n=t.outgoing.intersection(e.outgoing);return this.R-r.count()-n.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return o(this.roots[0],{},r),this.allEdges().forEach((function(i){var o=e.modules[i.source],s=e.modules[i.target];t.push(new n(typeof o.gid>"u"?i.source:r[o.gid],typeof s.gid>"u"?i.target:r[s.gid],i.type))})),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,r){e.forAll((function(e){e.getEdges(r),t.getEdges(e.children,r)}))},t}();function o(t,e,r){t.forAll((function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var n=e;if(t.gid=r.length,!t.isIsland()||t.isPredefined()){if(n={id:t.gid},t.isPredefined())for(var i in t.definition)n[i]=t.definition[i];e.groups||(e.groups=[]),e.groups.push(t.gid),r.push(n)}o(t.children,n,r)}}))}r.Configuration=i;var s=function(){function t(t,e,r,n,i){void 0===e&&(e=new l),void 0===r&&(r=new l),void 0===n&&(n=new a),this.id=t,this.outgoing=e,this.incoming=r,this.children=n,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(r,i){r.forAll((function(r){t.push(new n(e.id,r.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return typeof this.definition<"u"},t}();r.Module=s;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var r=new t;return r.table=function(t,e){var r={};for(var n in t)n in e&&(r[n]=t[n]);return r}(this.table,e.table),r},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();r.ModuleSet=a;var l=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(r){!e&&r.id==t&&(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var r=this.sets[t];r.remove(e),0===r.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,r){return e.forAll(t)}))},t.prototype.intersection=function(e){var r=new t;return this.forAll((function(t,n){if(n in e.sets){var i=t.intersection(e.sets[n]),o=i.count();o>0&&(r.sets[n]=i,r.n+=o)}})),r},t}();r.LinkSets=l,r.getGroups=function(t,e,r,n){for(var o=t.length,s=new i(o,e,r,n);s.greedyMerge(););var a=[],l=s.getGroupHierarchy(a);return a.forEach((function(e){var r=function(r){var n=e[r];"number"==typeof n&&(e[r]=t[n])};r("source"),r("target")})),{groups:l,powerEdges:a}}},{}],15:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",r=!1,n=0;n0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var r=this._comparator(t,e.data);if(0===r)return e.data;e=e.get_child(r>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,r){return e(r,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new s(this)},t.prototype.each=function(t){for(var e,r=this.iterator();null!==(e=r.next());)t(e)},t.prototype.reach=function(t){for(var e,r=this.iterator();null!==(e=r.prev());)t(e)},t.prototype._bound=function(t,e){for(var r=this._root,n=this.iterator();null!==r;){var i=this._comparator(t,r.data);if(0===i)return n._cursor=r,n;n._ancestors.push(r),r=r.get_child(i>0)}for(var o=n._ancestors.length-1;o>=0;--o)if(e(t,(r=n._ancestors[o]).data)>0)return n._cursor=r,n._ancestors.length=o,n;return n._ancestors.length=0,n},t}();r.TreeBase=o;var s=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var e;do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var e;do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();r.Iterator=s;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}(),l=function(t){function e(e){var r=t.call(this)||this;return r._root=null,r._comparator=e,r.size=0,r}return i(e,t),e.prototype.insert=function(t){var r=!1;if(null===this._root)this._root=new a(t),r=!0,this.size++;else{var n=new a(void 0),i=!1,o=!1,s=null,l=n,u=null,c=this._root;for(l.right=this._root;;){if(null===c?(c=new a(t),u.set_child(i,c),r=!0,this.size++):e.is_red(c.left)&&e.is_red(c.right)&&(c.red=!0,c.left.red=!1,c.right.red=!1),e.is_red(c)&&e.is_red(u)){var h=l.right===s;c===u.get_child(o)?l.set_child(h,e.single_rotate(s,!o)):l.set_child(h,e.double_rotate(s,!o))}var d=this._comparator(c.data,t);if(0===d)break;o=i,i=d<0,null!==s&&(l=s),s=u,u=c,c=c.get_child(i)}this._root=n.right}return this._root.red=!1,r},e.prototype.remove=function(t){if(null===this._root)return!1;var r=new a(void 0),n=r;n.right=this._root;for(var i=null,o=null,s=null,l=!0;null!==n.get_child(l);){var u=l;o=i,i=n,n=n.get_child(l);var c=this._comparator(t,n.data);if(l=c>0,0===c&&(s=n),!e.is_red(n)&&!e.is_red(n.get_child(l)))if(e.is_red(n.get_child(!l))){var h=e.single_rotate(n,l);i.set_child(u,h),i=h}else if(!e.is_red(n.get_child(!l))){var d=i.get_child(!u);if(null!==d)if(e.is_red(d.get_child(!u))||e.is_red(d.get_child(u))){var p=o.right===i;e.is_red(d.get_child(u))?o.set_child(p,e.double_rotate(i,u)):e.is_red(d.get_child(!u))&&o.set_child(p,e.single_rotate(i,u));var f=o.get_child(p);f.red=!0,n.red=!0,f.left.red=!1,f.right.red=!1}else i.red=!1,d.red=!0,n.red=!0}}return null!==s&&(s.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this.size--),this._root=r.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var r=t.get_child(!e);return t.set_child(!e,r.get_child(e)),r.set_child(e,t),t.red=!0,r.red=!1,r},e.double_rotate=function(t,r){return t.set_child(!r,e.single_rotate(t.get_child(!r),!r)),e.single_rotate(t,r)},e}(o);r.RBTree=l},{}],17:[function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=t("./vpsc"),s=t("./rbtree");function a(t){return t.bounds=typeof t.leaves<"u"?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),l.empty()):l.empty(),typeof t.groups<"u"&&(t.bounds=t.groups.reduce((function(t,e){return a(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}r.computeGroupBounds=a;var l=function(){function t(t,e,r,n){this.x=t,this.X=e,this.y=r,this.Y=n}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),r=t.cx();return e<=r&&t.x0?r[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,e,r,n,i,o,s,a){var l=r-t,u=s-i,c=n-e,h=a-o,d=h*l-u*c;if(0==d)return null;var p=t-i,f=e-o,g=(u*f-h*p)/d,m=(l*f-c*p)/d;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*l,y:e+g*c}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();r.Rectangle=l,r.makeEdgeBetween=function(t,e,r){var n=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-n.x,s=i.y-n.y,a=Math.sqrt(o*o+s*s),l=a-r;return{sourceIntersection:n,targetIntersection:i,arrowStart:{x:n.x+l*o/a,y:n.y+l*s/a}}},r.makeEdgeTo=function(t,e,r){var n=e.rayIntersection(t.x,t.y);n||(n={x:e.cx(),y:e.cy()});var i=n.x-t.x,o=n.y-t.y,s=Math.sqrt(i*i+o*o);return{x:n.x-r*i/s,y:n.y-r*o/s}};var u=function(t,e,r){this.v=t,this.r=e,this.pos=r,this.prev=d(),this.next=d()},c=function(t,e,r){this.isOpen=t,this.v=e,this.pos=r};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[r].insert(i),i[n].insert(t))};r("next","prev"),r("prev","next")}};function g(t,e,r,n){void 0===n&&(n=!1);var i=t.padding,o=typeof t.groups<"u"?t.groups.length:0,s=typeof t.leaves<"u"?t.leaves.length:0,a=o?t.groups.reduce((function(t,n){return t.concat(g(n,e,r,!0))}),[]):[],l=(n?2:0)+s+o,u=new Array(l),c=new Array(l),h=0,d=function(t,e){c[h]=t,u[h++]=e};if(n){var p=t.bounds,f=e.getCentre(p),y=e.getSize(p)/2,_=e.getOpen(p),v=e.getClose(p),x=f-y+i/2,b=f+y-i/2;t.minVar.desiredPosition=x,d(e.makeRect(_,v,x,i),t.minVar),t.maxVar.desiredPosition=b,d(e.makeRect(_,v,b,i),t.maxVar)}s&&t.leaves.forEach((function(t){return d(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var r=t.bounds;d(e.makeRect(e.getOpen(r),e.getClose(r),e.getCentre(r),e.getSize(r)),t.minVar)}));var T=m(c,u,e,r);return o&&(u.forEach((function(t){t.cOut=[],t.cIn=[]})),T.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var r=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=r})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=r}))}))),a.concat(T)}function m(t,e,r,n){var i,s=t.length,a=2*s;console.assert(e.length>=s);var l=new Array(a);for(i=0;it[r]&&(t[r]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,r=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var n="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){var i=e.nodes[t.node].variable;n.push(new o.Constraint(r,i,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,r=function(t){return typeof t.type>"u"||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&r(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&r(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,r,n){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,r[o]=n(i)):i.variable.weight=1;var s=(i.width||0)/2,a=(i.height||0)/2,u=t[o],c=e[o];i.bounds=new l(u-s,u+s,c-a,c+a)}))},t.prototype.xProject=function(t,e,r){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(t,e,t,r,(function(t){return t.px}),this.xConstraints,v,(function(t){return t.bounds.setXCentre(r[t.variable.index]=t.variable.position())}),(function(t){var e=r[t.minVar.index]=t.minVar.position(),n=r[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=n+i}))},t.prototype.yProject=function(t,e,r){!this.rootGroup&&!this.yConstraints||this.project(t,e,e,r,(function(t){return t.py}),this.yConstraints,x,(function(t){return t.bounds.setYCentre(r[t.variable.index]=t.variable.position())}),(function(t){var e=r[t.minVar.index]=t.minVar.position(),n=r[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=n+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,r,n){return t.xProject(e,r,n)},function(e,r,n){return t.yProject(e,r,n)}]},t.prototype.project=function(t,e,r,n,i,o,s,l,u){this.setupVariablesAndBounds(t,e,n,i),this.rootGroup&&this.avoidOverlaps&&(a(this.rootGroup),o=o.concat(s(this.rootGroup))),this.solve(this.variables,o,r,n),this.nodes.forEach(l),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(u),a(this.rootGroup))},t.prototype.solve=function(t,e,r,n){var i=new o.Solver(t,e);i.setStartingPositions(r),i.setDesiredPositions(n),i.solve()},t}();r.Projection=T},{"./rbtree":16,"./vpsc":19}],18:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./pqueue"),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},s=function(t,e,r){this.node=t,this.prev=e,this.d=r},a=function(){function t(t,e,r,n,s){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new o(a);for(a=this.es.length;a--;){var l=this.es[a],u=r(l),c=n(l),h=s(l);this.neighbours[u].neighbours.push(new i(c,h)),this.neighbours[c].neighbours.push(new i(u,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;e=u&&console.warn("[Calculator.PathFromNodeToNodeWithPrevCost] Hit max iterations limit, possible infinite loop prevented");for(var y=[],_=this.n+100,v=0;a.prev&&v<_;)v++,a=a.prev,y.push(a.node.id);return y},t.prototype.dijkstraNeighbours=function(t,e){void 0===e&&(e=-1);for(var r=new n.PriorityQueue((function(t,e){return t.d<=e.d})),i=this.neighbours.length,o=new Array(i);i--;){var s=this.neighbours[i];s.d=i===t?0:Number.POSITIVE_INFINITY,s.q=r.push(s)}for(;!r.empty();){var a=r.pop();if(o[a.id]=a.d,a.id===e){for(var l=[],u=a;typeof u.prev<"u";)l.push(u.prev.id),u=u.prev;return l}for(i=a.neighbours.length;i--;){var c=a.neighbours[i],h=(u=this.neighbours[c.id],a.d+c.distance);a.d!==Number.MAX_VALUE&&u.d>h&&(u.d=h,u.prev=a,r.reduceKey(u.q,u,(function(t,e){return t.q=e})))}}return o},t}();r.Calculator=a},{"./pqueue":15}],19:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,r=t.offset/t.scale,n=t.weight;this.AB+=n*e*r,this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();r.PositionStats=n;var i=function(){function t(t,e,r,n){void 0===n&&(n=!1),this.left=t,this.right=e,this.gap=r,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=r,this.equality=n}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();r.Constraint=i;var o=function(){function t(t,e,r){void 0===e&&(e=1),void 0===r&&(r=1),this.desiredPosition=t,this.weight=e,this.scale=r,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var r=function(r,n){return r.active&&t!==n&&e(r,n)};this.cOut.forEach((function(t){return r(t,t.right)})),this.cIn.forEach((function(t){return r(t,t.left)}))},t}();r.Variable=o;var s=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();r.Solver=l,r.removeOverlapInOneDimension=function(t,e,r){for(var n=t.map((function(t){return new o(t.desiredCenter)})),s=[],a=t.length,u=0;ul_,getAtomSkolems:()=>a_,getRelationSTIndexes:()=>s_});var Xm={};function Qm(t,e){return{_:"tuple",types:t,atoms:Array.from(e.querySelectorAll("atom")).map(((e,r)=>Uy(t[r],e).id))}}function Jm(t,e){return Array.from(e).map((e=>Qm(t,e)))}function Zm(t){return t.tuples}function ty(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label found for field element");let n=function(t,e){let r=e.querySelectorAll("type");return Array.from(r).map((e=>{let r=e.getAttribute("ID");if(!r)throw new Error("Type element must have an ID attribute");let n=t[r];if(!n)throw new Error(`Type element with ID ${r} not found`);return n}))}(t,e);if(0===n.length)throw new Error("No types found for field element");let i=e.getAttribute("parentID");return{_:"relation",id:`${(i?t[i]:void 0)??n[0]}<:${r}`,name:r,types:n,tuples:Jm(n,e.querySelectorAll("tuple"))}}function ey(t,e){return Array.from(e).map((e=>ty(t,e)))}function ry(t){return void 0!==t}function ny(t,e){let r={};for(let n of t)r[e(n)]=n;return r}function iy(t){let e=(new globalThis.DOMParser).parseFromString(t,"application/xml"),r=Array.from(e.querySelectorAll("instance"));if(!r.length)throw new Error(`No Alloy instance in XML: ${t}`);let n=e.querySelector("visualizer"),i=null===n?void 0:sy(n,"script");return{instances:r.map((t=>Ky(t))),bitwidth:oy(r[0],"bitwidth"),command:sy(r[0],"command"),loopBack:oy(r[0],"backloop")??oy(r[0],"loop"),maxSeq:oy(r[0],"maxseq"),maxTrace:oy(r[0],"maxtrace"),minTrace:oy(r[0],"mintrace"),traceLength:oy(r[0],"tracelength"),visualizerConfig:{script:ay(i)}}}function oy(t,e){let r=t.getAttribute(e);return r?+r:void 0}function sy(t,e){let r=t.getAttribute(e);return r?`${r}`:void 0}function ay(t){return t?.replaceAll(""",'"').replaceAll('\\"','"').replaceAll(">",">").replaceAll("<","<")}function ly(t){return t.querySelectorAll("type").length>0}function uy(t,e){let r={},n=e.querySelectorAll("sig");for(let t of n)if(!ly(t)){let e=t.getAttribute("ID"),n=t.getAttribute("parentID"),i=t.getAttribute("label");if(!e)throw new Error("No ID found for sig element");if(!i)throw new Error("No label found for sig element");n&&(r[e]=n)}let i=(e,n)=>r[e]?i(r[e],[...n,t[e]]):n,o={};for(let e in t)o[t[e]]=i(e,[]);return o}function cy(t){let e={},r=t.querySelectorAll("sig");for(let t of r){let r=t.getAttribute("ID"),n=t.getAttribute("label");if(!r)throw new Error("No ID found for sig element");if(!n)throw new Error("No label found for sig element");e[r]=n}return e}function hy(t,e){let r=e.find((t=>"Int"===t.id));if(!r)throw new Error("Could not find Int type");r.atoms=By(t)}function dy(t){return t.types[t.types.length-1]}function py(t){return t.atoms}function fy(t){return void 0!==t.meta&&!0===t.meta.abstract}function gy(t){return void 0!==t.meta&&!0===t.meta.builtin}function my(t){return void 0!==t.meta&&!0===t.meta.enum}function yy(t){return void 0!==t.meta&&!0===t.meta.meta}function _y(t){return void 0!==t.meta&&!0===t.meta.one}function vy(t){return void 0!==t.meta&&!0===t.meta.private}function xy(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label attribute in sig element");let n=t[r];if(!n)throw console.log(t),new Error(`No type hierarchy for ${r}`);let i=function(t){let e={};return"yes"===t.getAttribute("abstract")&&(e.abstract=!0),"yes"===t.getAttribute("builtin")&&(e.builtin=!0),"yes"===t.getAttribute("enum")&&(e.enum=!0),"yes"===t.getAttribute("meta")&&(e.meta=!0),"yes"===t.getAttribute("one")&&(e.one=!0),"yes"===t.getAttribute("private")&&(e.private=!0),0===Object.keys(e).length?void 0:e}(e),o={_:"type",id:r,types:n,atoms:Fy(r,e.querySelectorAll("atom")),meta:void 0};return ry(i)&&(o.meta=i),o}function by(t,e){return Array.from(e).filter((t=>!ly(t))).map((e=>xy(t,e)))}function Ty(t,e,r){return"string"==typeof e&&(e=My(t,e)),"string"!=typeof r&&(r=r.id),e.types.includes(r)}function Ey(t,e){let r=Oy(t).find((t=>t.id===e));if(!r)throw new Error(`Could not find atom with id ${e}`);return r}function Oy(t){return jy(t).map(py).reduce(((t,e)=>t.concat(e)),[])}function Sy(t,e){let r=Ey(t,e),n={...t.types},i={...t.relations},o={...t.skolems},s=n[r.type];if(s)return s.atoms=s.atoms.filter((t=>t.id!==e)),0===s.atoms.length&&delete n[s.id],Object.values(i).forEach((t=>{t.tuples=t.tuples.filter((t=>!t.atoms.includes(e)))})),Object.values(o).forEach((t=>{t.tuples=t.tuples.filter((t=>!t.atoms.includes(e)))})),{types:n,relations:i,skolems:o};throw new Error(`Could not find type for atom ${e}`)}function Ny(t,e){let r={...t.types},n=r[e.type];if(n)n.atoms.push(e);else{let t={_:"type",id:e.type,types:[e.type,"univ"],atoms:[e]};r[t.id]=t}return{...t,types:r}}function Ay(t,e,r){let n=Cy(t,e),i={...t.relations},o={...t.skolems};return n.tuples=n.tuples.filter((t=>t!==r)),0===n.tuples.length?delete i[n.id]:i[n.id]=n,Object.values(o).forEach((t=>{t.tuples=t.tuples.filter((t=>t!==r)),0===t.tuples.length?delete o[t.id]:o[t.id]=t})),{...t,relations:i,skolems:o}}function wy(t,e,r){let n=t.relations[e],i={...t.relations},o={...t.skolems};return n?(n.tuples.push(r),i[n.id]=n):(n={id:e,name:e,tuples:[r],types:r.types,_:"relation"},i[e]=n),{...t,relations:i,skolems:o}}function Ry(t,e){return Oy(t).filter((r=>Hy(t,r,e)))}function Cy(t,e){let r=t.relations[e];if(!r)throw new Error(`Could not find relation ${e}`);return r}function Ly(t){return Object.values(t.relations)}function Iy(t){return Object.values(t.skolems)}function ky(t){let e=Iy(t),r=Ly(t);return e.concat(r)}function Dy(t,e){let r=[];for(let n of Object.values(t.skolems))for(let t of n.tuples)if(t.atoms.includes(e)){r.push(n.name);break}return r}function Py(t){return Ly(t).map(Zm).reduce(((t,e)=>t.concat(e)),[])}function My(t,e){let r=t.types[e];if(!r)throw new Error(`Could not find type with id ${e}`);return r}function jy(t){return Object.values(t.types)}function Ky(t){let e=t.getAttribute("bitwidth");if(!e)throw new Error("No bitwidth found in instance");let r=cy(t),n=by(uy(r,t),t.querySelectorAll("sig")),i=ey(r,t.querySelectorAll("field")),o=ey(r,t.querySelectorAll("skolem"));return hy(parseInt(e),n),{types:ny(n,(t=>t.id)),relations:ny(i,(t=>t.id)),skolems:ny(o,(t=>t.id))}}function Uy(t,e){let r=e.getAttribute("label");if(!r)throw new Error("No label attribute in atom element");return{_:"atom",id:r,type:t}}function Fy(t,e){return Array.from(e).map((e=>Uy(t,e)))}function $y(t,e){return"string"==typeof e&&(e=Ey(t,e)),qy(t,e).types.map((e=>My(t,e))).some(gy)}function Hy(t,e,r){return"string"==typeof e&&(e=Ey(t,e)),"string"!=typeof r&&(r=r.id),qy(t,e).types.includes(r)}function By(t){let e=[],r=Math.pow(2,t);for(let t=-r/2;tNy,addInstanceRelationTuple:()=>wy,applyProjections:()=>Xy,atomFromElement:()=>Uy,atomIsBuiltin:()=>$y,atomIsOfType:()=>Hy,atomsFromElements:()=>Fy,buildIntAtoms:()=>By,findAndPopulateIntType:()=>hy,getAtomType:()=>qy,getInstanceAtom:()=>Ey,getInstanceAtoms:()=>Oy,getInstanceAtomsOfType:()=>Ry,getInstanceRelation:()=>Cy,getInstanceRelations:()=>Ly,getInstanceRelationsAndSkolems:()=>ky,getInstanceSkolems:()=>Iy,getInstanceTuples:()=>Py,getInstanceType:()=>My,getInstanceTypes:()=>jy,getProjectableTypes:()=>Qy,getRelationTuples:()=>Zm,getSkolemNamesForAtom:()=>Dy,getTopLevelTypeId:()=>dy,getTraceLength:()=>Yy,getTraceLoopback:()=>Wy,getTypeAtoms:()=>py,getTypeId:()=>Gy,instanceFromElement:()=>Ky,isAbstract:()=>fy,isAlloyDatum:()=>zy,isAlloyDatumTrace:()=>Vy,isBuiltin:()=>gy,isDefined:()=>ry,isEnum:()=>my,isMeta:()=>yy,isOne:()=>_y,isPrivate:()=>vy,keyBy:()=>ny,parseAlloyXML:()=>iy,relationFromElement:()=>ty,relationsFromElements:()=>ey,removeInstanceAtom:()=>Sy,removeInstanceRelationTuple:()=>Ay,sigElementIsSet:()=>ly,tupleFromElement:()=>Qm,tuplesFromElements:()=>Jm,typeFromElement:()=>xy,typeHierarchiesFromElement:()=>uy,typeIsOfType:()=>Ty,typeNamesFromElement:()=>cy,typesFromElements:()=>by});var zy=t=>Array.isArray(t.instances),Vy=t=>void 0!==t.loopBack,Yy=t=>t.traceLength,Wy=t=>t.loopBack;function Xy(t,e){let r={};return e.forEach((e=>{let n=dy(qy(t,e));if(r[n])throw new Error(`Cannot project ${e} and ${r[n]}. Both are of type ${n}`);r[n]=e})),{types:Jy(t,r),relations:Zy(t,r),skolems:t.skolems}}function Qy(t){return[...new Set(jy(t).map(dy))].filter((t=>void 0!==t))}function Jy(t,e){let r={},n=Object.keys(e);for(let e in t.types){let i=t.types[e],o=n.some((e=>Ty(t,i,e)));r[e]={_:"type",id:i.id,types:i.types,atoms:o?[]:i.atoms,meta:i.meta}}return r}function Zy(t,e){let r={},n=Object.keys(e),i=Object.values(e);for(let e in t.relations){let o=t.relations[e],s=o.types.some((e=>n.some((r=>Ty(t,e,r))))),a=s?t_(t,o.types,n):[];r[e]={_:"relation",id:o.id,name:o.name,types:s?r_(o.types,a):o.types,tuples:s?e_(o.tuples,a,i):o.tuples},s||(r[e]=o)}return r}function t_(t,e,r){let n=[];return e.forEach(((e,i)=>{r.some((r=>Ty(t,e,r)))&&n.push(i)})),n}function e_(t,e,r){return t.filter((t=>t.atoms.some((t=>r.includes(t))))).map((t=>({_:"tuple",types:r_(t.types,e),atoms:r_(t.atoms,e)}))).filter((t=>t.atoms.length>1))}function r_(t,e){let r=[];for(let n=0;n")}`}var o_=g(gn());function s_(t,e){return e<2?[0,0]:[0,e-1]}function a_(t,e){return Dy(t,e)}function l_(t,e,r){let n=new o_.Graph({directed:!0,multigraph:!0}),{nodeIds:i,edgeIds:o}=function(t,e,r){let n=new Set,i=new Set;return Ly(t).forEach((e=>{Zm(e).forEach((r=>{let o=r.atoms.map((e=>Ey(t,e))),[s,a]=function(t,e){return[e[0],e[e.length-1]]}(0,o);s&&a&&(n.add(n_(s)),n.add(n_(a)),i.add(i_(e,r)))}))})),Oy(t).forEach((i=>{let o=n_(i);n.has(o)||e||(!$y(t,i)||!r)&&n.add(o)})),{nodeIds:n,edgeIds:i}}(t,e,r);return Oy(t).forEach((t=>{let e=n_(t);i.has(e)&&n.setNode(e,e)})),Ly(t).forEach((e=>{Zm(e).forEach((r=>{let i=i_(e,r),s=r.atoms,[a,l]=s_(e.id,s.length),u=a?s[a]:s[0],c=l?s[l]:s[s.length-1];if(u&&c&&o.has(i)){let r=s.slice(1,-1).join(","),o=r.length>0?`[${r}]`:"",a=e.name+o,l=n_(Ey(t,u)),h=n_(Ey(t,c));n.setEdge(l,h,a,i)}}))})),n}var u_={};f(u_,{ForgeEvaluator:()=>__,ForgeEvaluatorResult:()=>y_,SGQEvaluatorResult:()=>n,SGraphQueryEvaluator:()=>t.SGraphQueryEvaluator,SQLEvaluator:()=>S_,SQLEvaluatorResult:()=>E_,WrappedEvalResult:()=>x_,WrappedForgeEvaluator:()=>v_});var c_=g(En()),h_=g(On());function d_(t){let e=t.meta&&t.meta?.builtin?{builtin:t.meta.builtin}:void 0;return{_:t._,id:t.id,types:t.types,atoms:t.atoms,meta:e}}function p_(t){return{_:t._,id:t.id,name:t.name,types:t.types,tuples:t.tuples.map((t=>function(t){return{_:t._,types:t.types,atoms:t.atoms}}(t)))}}function f_(t){return{instances:t.instances.map((t=>function(t){let e=t.relations,r=t.skolems,n=t.types,i={};for(let t in e)i[t]=p_(e[t]);let o={"seq/Int":d_(n["seq/Int"]),Int:d_(n.Int),univ:d_(n.univ)};for(let t in n)"seq/Int"!==t&&"Int"!==t&&"univ"!==t&&(o[t]=d_(n[t]));return{types:o,relations:i,skolems:r}}(t))),bitwidth:t.bitwidth||0}}function g_(t){return void 0!==t.error}function m_(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}var y_=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=g_(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:(this.isSingletonResult,this.result)}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>m_(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>m_(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>m_(t)))))}},__=class t{constructor(){this.sourceCode="",this.initialized=!1,this.evaluatorCache=new Map}initialize(e){this.context=e;try{let r="string"==typeof e.sourceData?e.sourceData:JSON.stringify(e.sourceData);iy(r);let n=function(t){return{parsed:f_(iy(t)),data:t}}(r);this.sourceCode=e.sourceCode||t.getSourceCodeFromDatum(r),this.evaluator=new h_.ForgeExprEvaluatorUtil(n,this.sourceCode),this.initialized=!0,this.evaluatorCache.clear()}catch(t){throw this.initialized=!1,new Error(`Failed to initialize ForgeEvaluator: ${t instanceof Error?t.message:String(t)}`)}}isReady(){return this.initialized&&void 0!==this.evaluator}evaluate(t,e){if(!this.isReady())throw new Error("ForgeEvaluator is not properly initialized");this.sourceCode||(console.log("No source code available for evaluation, proceeding without it"),this.sourceCode="");try{let r=e?.instanceIndex??0,n=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(n))return this.evaluatorCache.get(n);console.log("Evaluator",this.evaluator);let i=this.evaluator.evaluateExpression(t,r);if(g_(i))throw new Error(i.error.message);console.log(`Evaluated expression: ${t} at ${e} with result:`,i);let o=new y_(i,t);return this.evaluatorCache.set(n,o),o}catch(e){let r=e instanceof Error?e.message:String(e),n={error:new Error(`Error evaluating Forge expression: ${t}. ${r}`)};return new y_(n,t)}}validateExpression(t){if(!this.isReady())return!1;try{return!(!t||0===t.trim().length||t.includes("INVALID_SYNTAX"))}catch{return!1}}dispose(){this.evaluatorCache.clear(),this.context=void 0,this.evaluator=void 0,this.sourceCode="",this.initialized=!1}static getSourceCodeFromDatum(t){try{let e=(new c_.DOMParser).parseFromString(t,"application/xml").getElementsByTagName("source")[0];if(!e)return console.warn("No element found in XML"),"";let r=e.getAttribute("content")||"";return r||console.warn("No content attribute found in element"),r}catch(t){return console.error("Error extracting source code from datum:",t),""}}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,hasAlloyDatum:!1}}},v_=__,x_=y_;An();var b_=g(wn());function T_(t){if("string"==typeof t)return t;if("number"==typeof t)return t.toString();if("boolean"==typeof t)return t?"true":"false";throw new Error("Invalid SingleValue type")}var E_=class{constructor(t,e){this.isErrorResult=!1,this.isSingletonResult=!1,this.result=t,this.expr=e,this.isErrorResult=this.checkIsError(t),this.isSingletonResult=function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}(t)}checkIsError(t){return"object"==typeof t&&null!==t&&"error"in t&&"object"==typeof t.error}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return!this.isErrorResult&&Array.isArray(this.result)&&0===this.result.length}getRawResult(){return this.result}prettyPrint(){if("string"==typeof this.result)return this.result;if("number"==typeof this.result)return this.result.toString();if("boolean"==typeof this.result)return this.result?"true":"false";if(this.isErrorResult)return`Error: ${this.result.error.message}`;{let t=[],e=this.result;for(let r=0;r");t.push(n)}return t.join(" , ")}}singleResult(){if(!this.isSingletonResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead: ${t}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${t}`)}let t=this.result.filter((t=>t.length>0));if(0===t.length)return[];t=t.filter((t=>1===t.length));let e=t.flat().map((t=>T_(t)));return Array.from(new Set(e))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead: ${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>[t[0],t[t.length-1]])).map((t=>t.map((t=>T_(t)))))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2+. Instead: ${t}`)}let t=this.result.filter((t=>t.length>1));return 0===t.length?[]:t.map((t=>t.map((t=>T_(t)))))}},O_=class t{constructor(){this.ready=!1,this.tableSchemas=[],this.evaluatorCache=new Map,this.MAX_CACHE_SIZE=1e3,this.db=new b_.default.Database}initialize(t){if(this.context=t,!t.sourceData||!function(t){return void 0!==t.getAtoms&&void 0!==t.getRelations&&void 0!==t.getTypes&&void 0!==t.applyProjections&&void 0!==t.generateGraph}(t.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let e=t.sourceData;this.clearTables(),this.evaluatorCache.clear(),this.tableSchemas=[],this.createTablesFromDataInstance(e),this.ready=!0}clearTables(){try{this.db.exec(`DROP TABLE IF EXISTS ${t.ATOMS_TABLE}`),this.db.exec(`DROP TABLE IF EXISTS ${t.ATOM_TYPES_TABLE}`),this.db.exec(`DROP TABLE IF EXISTS ${t.TYPES_TABLE}`);for(let t of this.tableSchemas)this.db.exec(`DROP TABLE IF EXISTS ${this.sanitizeTableName(t.name)}`)}catch{}}sanitizeTableName(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),["select","selected","from","where","join","table","index","order","group","by","having","union","insert","update","delete","create","drop","alter","int","string","boolean","source","target","key","value","count","read","top","path","deleted","work","offset"].includes(e.toLowerCase())&&(e="rel_"+e),e}sanitizeColumnName(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),["select","from","where","join","table","index","order","group","by","having","union","insert","update","delete","create","drop","alter","int","string","boolean","source","target","key","value","count","read","top","path","deleted","work","offset"].includes(e.toLowerCase())&&(e="col_"+e),e}createTablesFromDataInstance(e){this.db.exec(`CREATE TABLE ${t.ATOMS_TABLE} (id STRING, type STRING, label STRING)`),this.tableSchemas.push({name:t.ATOMS_TABLE,columns:["id","type","label"],description:"All atoms in the instance (type = most specific type)"}),this.db.exec(`CREATE TABLE ${t.ATOM_TYPES_TABLE} (atom_id STRING, type STRING)`),this.tableSchemas.push({name:t.ATOM_TYPES_TABLE,columns:["atom_id","type"],description:"Junction table: all types for each atom (includes inherited types)"});let r=[...e.getAtoms()];for(let n of r){this.db.exec(`INSERT INTO ${t.ATOMS_TABLE} VALUES (?, ?, ?)`,[n.id,n.type,n.label]);try{let r=e.getAtomType(n.id);if(r&&r.types)for(let e of r.types)this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,e]);else this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,n.type])}catch{this.db.exec(`INSERT INTO ${t.ATOM_TYPES_TABLE} VALUES (?, ?)`,[n.id,n.type])}}this.db.exec(`CREATE TABLE ${t.TYPES_TABLE} (id STRING, isBuiltin BOOLEAN, hierarchy STRING)`),this.tableSchemas.push({name:t.TYPES_TABLE,columns:["id","isBuiltin","hierarchy"],description:"All types in the instance"});let n=e.getTypes();for(let e of n)this.db.exec(`INSERT INTO ${t.TYPES_TABLE} VALUES (?, ?, ?)`,[e.id,e.isBuiltin,JSON.stringify(e.types)]);let i=e.getRelations();for(let t of i)this.createRelationTable(t)}createRelationTable(t){let e,r=this.sanitizeTableName(t.name),n=t.types.length;e=1===n?["atom"]:2===n?["src","tgt"]:Array.from({length:n},((t,e)=>`elem_${e}`)),e=e.map((t=>this.sanitizeColumnName(t)));let i=e.map((t=>`${t} STRING`)).join(", ");this.db.exec(`CREATE TABLE ${r} (${i})`),this.tableSchemas.push({name:r,columns:e,description:`Relation: ${t.name} (arity ${n})`});let o=e.map((()=>"?")).join(", ");for(let e of t.tuples)this.db.exec(`INSERT INTO ${r} VALUES (${o})`,e.atoms)}isReady(){return this.ready}getTableSchemas(){return[...this.tableSchemas]}evaluate(t,e){if(!this.isReady())throw new Error("Evaluator not initialized");let r=e?.instanceIndex??0,n=JSON.stringify({expression:t,instanceIndex:r});if(this.evaluatorCache.has(n)){let t=this.evaluatorCache.get(n);return this.evaluatorCache.delete(n),this.evaluatorCache.set(n,t),t}try{let e=this.db.exec(t),r=this.convertResult(e),i=new E_(r,t);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let t=this.evaluatorCache.keys().next().value;void 0!==t&&this.evaluatorCache.delete(t)}return this.evaluatorCache.set(n,i),i}catch(e){let r={error:{message:`SQL Error: ${e instanceof Error?e.message:String(e)}`,code:"SQL_ERROR"}};return new E_(r,t)}}convertResult(t){return null==t?[]:"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:Array.isArray(t)?0===t.length?[]:"object"==typeof t[0]&&null!==t[0]?t.map((t=>Object.values(t).map((t=>"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:String(t))))):t:"object"==typeof t?[Object.values(t).map((t=>"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:String(t)))]:[]}dispose(){this.clearTables(),this.evaluatorCache.clear(),this.tableSchemas=[],this.ready=!1}getMemoryStats(){return{cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,tableCount:this.tableSchemas.length}}};O_.ATOMS_TABLE="_atoms",O_.ATOM_TYPES_TABLE="_atom_types",O_.TYPES_TABLE="_types";var S_=O_,N_={};function A_(e,r,n,i={}){let o="string"==typeof e?Sa(e):e;return new t.LayoutInstance(o,n).generateLayout(r,i)}f(N_,{AlignConstraint:()=>wa,AlignmentEdgeStrategy:()=>Vf,ColorPicker:()=>Hp,ConstraintValidator:()=>Gf,CyclicOrientationConstraint:()=>La,DisjunctiveConstraint:()=>jn,GroupByField:()=>Ca,GroupBySelector:()=>Ra,ImplicitConstraint:()=>Mn,LayoutInstance:()=>t.LayoutInstance,RelativeOrientationConstraint:()=>Aa,getBundledIconNames:()=>Ma,getIconPackPrefixes:()=>ja,isAlignmentConstraint:()=>Ln,isBoundingBoxConstraint:()=>In,isBundledIcon:()=>Ka,isDisjunctiveConstraint:()=>Pn,isGroupBoundaryConstraint:()=>kn,isGroupOverlapError:()=>Ff,isInstanceLayout:()=>Dn,isLeftConstraint:()=>Cn,isPositionalConstraintError:()=>Uf,isTopConstraint:()=>Rn,orientationConstraintToString:()=>Bf,parseLayoutSpec:()=>Sa,resolveIconPath:()=>Pa,setupLayout:()=>A_,usesIconPack:()=>Ua}),Kn(),Ia(),Zf(),ff(),Xf(),za(),Zf(),Ia();var w_={};f(w_,{StructuredInputGraph:()=>t.StructuredInputGraph,WebColaCnDGraph:()=>Am,WebColaTranslator:()=>t.WebColaTranslator}),Tm(),Rm(),Im(),Cm();var R_=class t{constructor(t){this.alloyInstance=t,this.eventListeners=new Map}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}getAtomType(t){let e=qy(this.alloyInstance,t);return{id:e.id,types:e.types,atoms:e.atoms.map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,label:t.id,type:t.type,labels:e.length>0?{skolems:e}:void 0}})),isBuiltin:gy(e)}}getTypes(){return jy(this.alloyInstance).map((t=>({id:t.id,types:t.types,atoms:t.atoms.map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,type:t.type,label:t.id,labels:e.length>0?{skolems:e}:void 0}})),isBuiltin:gy(t)})))}getAtoms(){return Oy(this.alloyInstance).map((t=>{let e=Dy(this.alloyInstance,t.id);return{id:t.id,type:t.type,label:t.id,labels:e.length>0?{skolems:e}:void 0}}))}getRelations(){return Ly(this.alloyInstance).map((t=>({id:t.id,name:t.name,types:t.types,tuples:t.tuples.map((t=>({atoms:t.atoms,types:t.types})))})))}applyProjections(e){let r=Xy(this.alloyInstance,e);return new t(r)}generateGraph(t,e){return l_(this.alloyInstance,t,e)}getAlloyInstance(){return this.alloyInstance}reify(){let t="",e=this.alloyInstance.types,r={};for(let t in e){let n=e[t].atoms;r[t]=n.map((t=>`\`${t.id}`))}let n=this.alloyInstance.relations,i={};for(let t in n){let e=n[t],r=e.tuples.map((t=>`(${t.atoms.map((t=>`\`${t}`)).join("->")})`));i[e.name]=r}for(let e in r){let n=r[e];n.length>0&&(t+=`${e} = ${n.join("+")}\n`)}for(let e in i){let r=i[e];r.length>0?t+=`${e} = ${r.join("+")}\n`:t+=`no ${e}\n`}return`inst builtinstance {\n${t}\n}`}removeAtom(t){this.alloyInstance=Sy(this.alloyInstance,t),this.emitEvent({type:"atomRemoved",data:{atomId:t}})}addAtom(t){let e={_:"atom",id:t.id,type:t.type};this.alloyInstance=Ny(this.alloyInstance,e),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){let r={_:"tuple",atoms:e.atoms,types:e.types};this.alloyInstance=wy(this.alloyInstance,t,r),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeRelationTuple(t,e){let r={atoms:e.atoms,types:e.types};this.alloyInstance=Ay(this.alloyInstance,t,r),this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}addFromDataInstance(t,e){if(!function(t){return t instanceof R_}(t))return!1;let r=t.getAlloyInstance(),n=new Map;return Oy(r).forEach((t=>{let r=this.getAtomType(t.id).isBuiltin;if(e&&r){let e=this.getAtoms().find((e=>e.type===t.type&&e.label===t.id));if(e)return void n.set(t.id,e.id)}let i=`atom_${this.getAtoms().length+1}`;n.set(t.id,i),this.addAtom({id:i,type:t.type,label:t.id})})),Ly(r).forEach((t=>{t.tuples.forEach((e=>{let r={atoms:e.atoms.map((t=>n.get(t)||t)),types:e.types};this.addRelationTuple(t.id,r)}))})),jy(r).forEach((t=>{this.getTypes().find((e=>e.id===t.id))||(this.alloyInstance.types[t.id]={_:"type",id:t.id,types:t.types,atoms:t.atoms.map((t=>({_:"atom",id:n.get(t.id)||t.id,type:t.type}))),meta:{builtin:!1,abstract:!1,enum:!1,one:!1,private:!1}})})),!0}},C_=g(Hm()),L_=g(gn()),I_=g(gn()),k_=class t{constructor(t,e={},r){this.atoms=new Map,this.relations=new Map,this.types=new Map,this.objectToAtomId=new WeakMap,this.atomCounter=0,this.typeLabelCounters=new Map,this.originalObjects=new Map,this.eventListeners=new Map,this.externalEvaluator=null,this.options={stringsIdempotent:e.stringsIdempotent??!0,numbersIdempotent:e.numbersIdempotent??!0,booleansIdempotent:e.booleansIdempotent??!0,showFunctions:e.showFunctions??!1},this.externalEvaluator=r||null,this.initializeBuiltinTypes(),t&&this.parseObjectIteratively(t)}setExternalEvaluator(t){this.externalEvaluator=t}getExternalEvaluator(){return this.externalEvaluator}getOptions(){return{...this.options}}cacheConstructorPattern(e,r){if(0===r.length)return;let n=t.globalConstructorCache.get(e),i=++t.instantiationCounter;(!n||i>n.instantiation)&&t.globalConstructorCache.set(e,{pattern:[...r],instantiation:i})}getCachedConstructorPattern(e){let r=t.globalConstructorCache.get(e);return r?r.pattern:null}static getGlobalConstructorCache(){let e=new Map;for(let[r,n]of t.globalConstructorCache)e.set(r,[...n.pattern]);return e}static getGlobalConstructorCacheWithPriority(){return new Map(t.globalConstructorCache)}static clearGlobalConstructorCache(){t.globalConstructorCache.clear()}static async fromExpression(e,r={},n){let i=await t.evaluateExpression(e,n);if(!i.success)throw new Error(`Failed to evaluate Pyret expression: ${t.formatError(i.exn)}`);if(t.isPrimitive(i.result)){let e=new t(null,r,n),o="string"==typeof i.result?"String":"number"==typeof i.result?"Number":"Boolean",s={id:`result_${i.result}`,label:String(i.result),type:o};return e.addAtom(s),e}return new t(i.result,r,n)}static async evaluateExpression(e,r){try{let n=await r.run(e),i=t.findKeyAtAnyLevel(n,"exn");if(void 0!==i)return{success:!1,exn:i};let o=t.findKeyAtAnyLevel(n,"answer");return void 0!==o?{success:!0,result:o}:t.isPrimitive(n)?{success:!0,result:n}:{success:!1,exn:"Unable to find answer or exn in evaluation result"}}catch(t){return{success:!1,exn:t instanceof Error?t.message:"Unknown evaluation error"}}}static findKeyAtAnyLevel(e,r){if(e&&"object"==typeof e){if(r in e)return e[r];for(let n of Object.values(e))if(n&&"object"==typeof n){let e=t.findKeyAtAnyLevel(n,r);if(void 0!==e)return e}}}static isPrimitive(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}static formatError(t){if(!t)return"Unknown error";if("string"==typeof t)return t;if("object"==typeof t&&null!==t){let e=t;if(e.message)return e.message;if(e.toString&&"function"==typeof e.toString)return e.toString()}return String(t)}tryReconstructFromRelations(t,e){let r=new Map;if(this.relations.forEach((e=>{e.tuples.forEach((n=>{if(n.atoms.length>=2&&n.atoms[0]===t.id){let t=e.name;r.has(t)||r.set(t,[]),r.get(t).push(...n.atoms.slice(1))}}))})),0===r.size)return t.type;let n=this.getCachedConstructorPattern(t.type);if(n){let i=[];for(let t of n){let n=r.get(t)||[];for(let t of n)i.push(this.reifyAtom(t,e))}if(i.length>0)return`${t.type}(${i.join(", ")})`}let i=Array.from(this.atoms.values()).filter((e=>e.type===t.type));for(let n of i){let i=this.originalObjects.get(n.id);if(i&&i.dict){let n=Object.keys(i.dict);this.cacheConstructorPattern(t.type,n);let o=[];for(let t of n){let n=r.get(t)||[];for(let t of n)o.push(this.reifyAtom(t,e))}if(o.length>0)return`${t.type}(${o.join(", ")})`;break}}console.error(`[PyretDataInstance] Could not determine constructor pattern for type '${t.type}'. Falling back to sorted field order.`);let o=Array.from(r.keys()).sort(),s=[];for(let t of o){let n=r.get(t)||[];for(let t of n)s.push(this.reifyAtom(t,e))}return s.length>0?`${t.type}(${s.join(", ")})`:t.type}hasExternalEvaluator(){return null!==this.externalEvaluator}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}addAtom(t){this.atoms.set(t.id,t),this.ensureTypeExists(t.type);let e=this.types.get(t.type);e&&!e.atoms.some((e=>e.id===t.id))&&e.atoms.push(t),this.emitEvent({type:"atomAdded",data:{atom:t}})}removeAtom(t){let e=this.atoms.get(t);this.atoms.delete(t),this.types.forEach((e=>{e.atoms=e.atoms.filter((e=>e.id!==t))})),this.relations.forEach((e=>{e.tuples=e.tuples.filter((e=>!e.atoms.includes(t)))})),e&&this.emitEvent({type:"atomRemoved",data:{atomId:t}})}removeRelationTuple(t,e){let r=this.relations.get(t);if(r){let n=r.tuples.length;r.tuples=r.tuples.filter((t=>!t.atoms.every(((t,r)=>t===e.atoms[r])))),r.tuples.length{e.tuples.forEach((e=>{for(let r=1;r!t.has(e.id)));return 0===e.length?"# No root atoms found":e.length>1?`[list-set: ${e.map((t=>this.reifyAtom(t.id,new Set))).join(", ")}]`:""+this.reifyAtom(e[0].id,new Set)}reifyAtom(t,e){if(e.has(t))return`/* cycle: ${t} */`;let r=this.atoms.get(t);if(!r)return`/* missing atom: ${t} */`;if(e.add(t),this.isBuiltinType(r.type)){let n=this.reifyPrimitive(r);return e.delete(t),n}let n=this.originalObjects.get(t);if(!n||!n.dict)return e.delete(t),this.tryReconstructFromRelations(r,e);let i=Object.keys(n.dict);if(this.cacheConstructorPattern(r.type,i),i.every((t=>/^\d+$/.test(t)))&&i.length>0){let r=i.sort(((t,e)=>parseInt(t,10)-parseInt(e,10))).map((r=>this.getRelationTargets(t,r).map((t=>this.reifyAtom(t,e))))).flat();return e.delete(t),`[list: ${r.join(", ")}]`}let o=[];for(let r of i){let n=this.getRelationTargets(t,r);for(let t of n)o.push(this.reifyAtom(t,e))}return e.delete(t),0===o.length?r.type:`${r.type}(${o.join(", ")})`}reifyPrimitive(t){return"String"===t.type?`"${t.label.replace(/"/g,'\\"')}"`:t.label}parseObjectIteratively(t){let e=[{obj:t}];for(;e.length>0;){let{obj:t,parentInfo:r}=e.shift();if(this.objectToAtomId.has(t)){if(r){let e=this.objectToAtomId.get(t);this.addRelationTuple(r.relationName,{atoms:[r.parentId,e],types:["PyretObject","PyretObject"]})}continue}let n=this.createAtomFromObject(t);if(this.originalObjects.set(n,t),t.dict&&"object"==typeof t.dict){let e=this.extractType(t),r=Object.keys(t.dict);this.cacheConstructorPattern(e,r)}r&&this.addRelationTuple(r.relationName,{atoms:[r.parentId,n],types:["PyretObject","PyretObject"]}),t.dict&&"object"==typeof t.dict&&(this.isPyretTable(t)?this.processTableSemantics(n,t):Object.entries(t.dict).forEach((([t,r])=>{if(this.options.showFunctions||!r||"object"!=typeof r||!("meth"in r)||!("full_meth"in r))if(this.isAtomicValue(r)){let e=this.createAtomFromPrimitive(r);this.addRelationTuple(t,{atoms:[n,e],types:["PyretObject","PyretObject"]})}else Array.isArray(r)?this.processArrayField(n,t,r,e):this.isPyretObject(r)&&e.push({obj:r,parentInfo:{parentId:n,relationName:t}})})))}}processArrayField(t,e,r,n){r.forEach(((r,i)=>{if(this.isAtomicValue(r)){let n=this.createAtomFromPrimitive(r);this.addRelationTuple(e,{atoms:[t,n],types:["PyretObject","PyretObject"]})}else if(Array.isArray(r)){let o=this.generateAtomId("Array"),s={id:o,type:"Array",label:`Array[${i}]`};this.atoms.set(o,s),this.ensureTypeExists("Array"),this.addRelationTuple(e,{atoms:[t,o],types:["PyretObject","PyretObject"]}),this.processArrayField(o,"element",r,n)}else this.isPyretObject(r)&&n.push({obj:r,parentInfo:{parentId:t,relationName:e}})}))}isPyretTable(t){return!(!t.dict||"object"!=typeof t.dict||t.brands&&"object"==typeof t.brands&&!Object.keys(t.brands).some((t=>t.includes("brandtable"))))&&"_header-raw-array"in t.dict&&"_rows-raw-array"in t.dict}processTableSemantics(t,e){let r=e.dict,n=r["_header-raw-array"],i=r["_rows-raw-array"];if(!Array.isArray(n)||!Array.isArray(i))return;let o=n.filter((t=>"string"==typeof t));0!==o.length&&i.forEach((t=>{if(!Array.isArray(t))return;let e=[];t.forEach((t=>{if(this.isAtomicValue(t)){let r=this.createAtomFromPrimitive(t);e.push(r)}})),e.length===o.length&&e.length>0&&this.addRelationTuple("row",{atoms:e,types:e.map((()=>"String"))})}))}createAtomFromObject(t){let e=this.extractType(t),r=this.generateAtomId(e),n={id:r,type:e,label:this.extractLabel(t)};return this.atoms.set(r,n),this.objectToAtomId.set(t,r),this.ensureTypeExists(e),r}createAtomFromPrimitive(t){let e;e=this.isRationalNumber(t)?this.rationalToDecimal(t):t;let r=this.mapPrimitiveType(e),n=String(e);if("String"===r&&this.options.stringsIdempotent||"Number"===r&&this.options.numbersIdempotent||"Boolean"===r&&this.options.booleansIdempotent){let t=Array.from(this.atoms.values()).find((t=>t.label===n&&t.type===r));if(t)return t.id}let i=this.generateAtomId(r),o={id:i,type:r,label:n};return this.atoms.set(i,o),this.ensureTypeExists(r),i}mapPrimitiveType(t){switch(typeof t){case"number":return"Number";case"string":return"String";case"boolean":return"Boolean";default:return"Value"}}extractMostSpecificBrand(t){let e,r,n=-1;for(let i of Object.keys(t)){let t=/^\$brand([a-zA-Z_]+)(\d+)$/.exec(i);if(t){let[,r,i]=t,o=parseInt(i,10);o>n&&(n=o,e=r)}else{let t=/^\$brand_?([a-zA-Z_]+)$/.exec(i);if(t){let[,e]=t;(!r||e>r)&&(r=e)}}}return e||r}extractType(t){if(t.$name&&"string"==typeof t.$name)return t.$name;if(t.brands&&"object"==typeof t.brands){let e=this.extractMostSpecificBrand(t.brands);if(e)return e}return"PyretObject"}extractLabel(t){if(t.$name&&"string"==typeof t.$name)return t.$name;let e=this.extractType(t),r=(this.typeLabelCounters.get(e)??0)+1;return this.typeLabelCounters.set(e,r),`${e}$${r}`}addRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=e.atoms.slice(1,-1),o=this.atoms.get(r),s=this.atoms.get(n);if(!o||!s)return void console.warn(`Cannot create relation ${t}: missing atoms ${r} or ${n}`);let a=this.relations.get(t),l=t+(i.length>0?`[${i.join(", ")}]`:"");a||(a={id:t,name:l,types:[o.type,s.type],tuples:[]},this.relations.set(t,a)),a.tuples.some((t=>t.atoms[0]===r&&t.atoms[1]===n))||(a.tuples.push(e),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}}))}ensureTypeExists(t){if(!this.types.has(t)){let e={id:t,types:[t,"PyretObject"],atoms:[],isBuiltin:this.isBuiltinType(t)};this.types.set(t,e)}}initializeBuiltinTypes(){["Number","String","Boolean","PyretObject"].forEach((t=>{let e={id:t,types:"PyretObject"===t?["PyretObject"]:[t,"PyretObject"],atoms:[],isBuiltin:!0};this.types.set(t,e)}))}isBuiltinType(t){return["Number","String","Boolean","PyretObject"].includes(t)}isRationalNumber(t){return"object"==typeof t&&null!==t&&"n"in t&&"d"in t&&"number"==typeof t.n&&"number"==typeof t.d}rationalToDecimal(t){return t.n/t.d}isAtomicValue(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||this.isRationalNumber(t)}isPyretObject(t){return"object"==typeof t&&null!==t&&("dict"in t||"brands"in t||"$name"in t)}generateAtomId(t){return`${t?t.toLowerCase().substring(0,3):"atom"}_${++this.atomCounter}`}getAtoms(){return Array.from(this.atoms.values())}getRelations(){let t=this.relations.values();return Array.from(t)}getTypes(){return this.types.forEach((t=>{t.atoms=this.getAtoms().filter((e=>e.type===t.id))})),Array.from(this.types.values())}getAtomType(t){let e=this.atoms.get(t);if(!e)throw new Error(`Atom with id '${t}' not found`);return this.types.get(e.type)||(this.ensureTypeExists(e.type),this.types.get(e.type))}generateGraph(t=!1,e=!1){let r=new I_.Graph({directed:!0,multigraph:!0});if(this.getAtoms().forEach((t=>{r.setNode(t.id,{label:t.label})})),this.getRelations().forEach((t=>{t.tuples.forEach((e=>{if(e.atoms.length>=2){let n=e.atoms[0],i=e.atoms[e.atoms.length-1],o=e.atoms.slice(1,-1),s=t.name;if(o.length>0){let e=o.map((t=>{let e=this.atoms.get(t);return e?e.label:t}));s=`${t.name}[${e.join(", ")}]`}let a=function(t,e){return`${t.id}:${e.atoms.join("->")}`}(t,e);r.setEdge(n,i,s,a)}}))})),t||e){let n=[];r.nodes().forEach((i=>{let o=r.inEdges(i)||[],s=r.outEdges(i)||[];if(0===o.length&&0===s.length&&this.atoms.get(i)){let r=this.getAtomType(i).isBuiltin;(t||r&&e)&&n.push(i)}})),n.forEach((t=>r.removeNode(t)))}return r}applyProjections(e){if(0===e.length)return this;let r=Object.create(t.prototype);return r.atoms=new Map([...this.atoms].filter((([t])=>e.includes(t)))),r.relations=new Map,r.types=new Map,r.atomCounter=r.atoms.size,this.relations.forEach(((t,n)=>{let i=t.tuples.filter((t=>t.atoms.every((t=>e.includes(t)))));i.length>0&&r.relations.set(n,{...t,tuples:i})})),this.types.forEach(((t,n)=>{let i=t.atoms.filter((t=>e.includes(t.id)));i.length>0&&r.types.set(n,{...t,atoms:i})})),r}getRelationTargets(t,e){let r=[];return this.relations.forEach((n=>{n.name===e&&n.tuples.forEach((e=>{e.atoms[0]===t&&e.atoms.length>=2&&r.push(e.atoms[1])}))})),r}addFromDataInstance(e,r){if(!(e instanceof t))return!1;let n=e,i=new Map;return n.getAtoms().forEach((t=>{let e=this.isBuiltinType(t.type);if(r&&e&&("String"===t.type&&this.options.stringsIdempotent||"Number"===t.type&&this.options.numbersIdempotent||"Boolean"===t.type&&this.options.booleansIdempotent)){let e=Array.from(this.atoms.values()).find((e=>e.type===t.type&&e.label===t.label));if(e)return void i.set(t.id,e.id)}let o=this.generateAtomId(t.type);i.set(t.id,o);let s={...t,id:o};this.addAtom(s);let a=n.originalObjects.get(t.id);a&&this.originalObjects.set(o,a)})),n.getTypes().forEach((t=>{if(this.types.has(t.id)){let e=this.types.get(t.id),r=t.atoms.map((t=>({...t,id:i.get(t.id)||t.id})));e.atoms.push(...r)}else this.types.set(t.id,{...t,atoms:t.atoms.map((t=>({...t,id:i.get(t.id)||t.id})))})})),n.getRelations().forEach((t=>{let e=t.tuples.map((t=>({atoms:t.atoms.map((t=>i.get(t)||t)),types:t.types}))),r=this.relations.get(t.id);r?r.tuples.push(...e):this.relations.set(t.id,{...t,tuples:e})})),!0}};k_.globalConstructorCache=new Map,k_.instantiationCounter=0;var D_=k_,P_=g(gn()),M_=class t{constructor(t,e){if(this.datum=t,e)this.atoms=e.atoms,this.relations=e.relations,this.types=e.types,this.builtinTypes=e.builtinTypes;else{let e=this.normalizeDatum(t);this.atoms=e.atoms,this.relations=e.relations,this.types=e.types,this.builtinTypes=e.builtinTypes}}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID '${t}' not found in TLA+ datum.`);let r=this.types.find((t=>t.id===e.type));if(!r)throw new Error(`Type '${e.type}' not found for atom '${t}'.`);return r}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}applyProjections(e){let r=new Set(e),n=this.atoms.filter((t=>r.has(t.id))),i=this.relations.map((t=>{let e=t.tuples.filter((t=>t.atoms.every((t=>r.has(t)))));return 0===e.length?null:{...t,tuples:e}})).filter((t=>null!==t)),o=this.rebuildTypes(n);return new t(this.datum,{atoms:n,relations:i,types:o,builtinTypes:new Set(this.builtinTypes)})}generateGraph(t=!1,e=!1){let r=new P_.Graph({directed:!0,multigraph:!0});if(this.atoms.forEach((t=>{r.setNode(t.id,{id:t.id,label:t.label,type:t.type,isBuiltin:this.isAtomBuiltin(t)})})),this.relations.forEach((t=>{t.tuples.forEach(((e,n)=>{if(e.atoms.length>=2){let i=e.atoms[0],o=e.atoms[e.atoms.length-1],s=`${t.id}_${n}`;r.setEdge(i,o,t.name,s)}else if(1===e.atoms.length){let i=e.atoms[0],o=`${t.id}_${n}`;r.setEdge(i,i,t.name,o)}}))})),t||e){let n=new Set;r.edges().forEach((t=>{n.add(t.v),n.add(t.w)})),r.nodes().forEach((i=>{let o=r.node(i)?.isBuiltin??!1,s=t&&!n.has(i),a=e&&o&&!n.has(i);(s||a)&&r.removeNode(i)}))}return r}normalizeDatum(t){let e=[],r=new Map,n=new Map,i=new Set,o=(t,e,r)=>{n.has(t)||n.set(t,[]),n.get(t).push(r),e&&i.add(t)},s="State";t.states.forEach(((t,n)=>{let i=`state_${n}`,a={id:i,type:s,label:t.name??`State ${n+1}`};e.push(a),o(s,!0,a),Object.entries(t.variables??{}).forEach((([t,n])=>{let a=this.normalizeValue(n),l=this.inferType(a),u={id:`${i}.${t}`,type:l,label:`${t} = ${this.describeValue(a.value)}`};e.push(u),o(l,this.isBuiltinType(l),u);let c={atoms:[i,u.id],types:[s,l]};r.has(t)||r.set(t,{name:t,types:[s,l],tuples:[]}),r.get(t).tuples.push(c)}))}));let a=Array.from(r.entries()).map((([t,e])=>({id:t,name:e.name,types:e.types,tuples:e.tuples}))),l=[];for(let e=0;e=0&&t.loop0&&a.push({id:"Next",name:"Next",types:[s,s],tuples:l});let u=Array.from(n.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:i.has(t)})));return{atoms:e,relations:a,types:u,builtinTypes:i}}rebuildTypes(t){let e=new Map;return t.forEach((t=>{e.has(t.type)||e.set(t.type,[]),e.get(t.type).push(t)})),Array.from(e.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:this.builtinTypes.has(t)})))}normalizeValue(t){return t&&"object"==typeof t&&"value"in t?t:{value:t}}inferType(t){if(t.type&&t.type.trim().length>0)return t.type.trim();let e=t.value;if(Array.isArray(e))return"Seq";switch(typeof e){case"number":return Number.isInteger(e)?"Int":"Real";case"boolean":return"Bool";case"string":return"String";case"object":return null===e?"Null":"Record";default:return"Unknown"}}describeValue(t){if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t||null===t)return String(t);try{return JSON.stringify(t)}catch{return String(t)}}isBuiltinType(t){return["State","Int","Real","Bool","String"].includes(t)}isAtomBuiltin(t){return this.builtinTypes.has(t.type)}};Zf(),Ia(),An();var j_=g(Sn());An();var K_=class extends Error{constructor(t){super(t),this.name="SelectorSynthesisError"}},U_=g(qm()),F_=g(zm());function $_(t,e){let r=t.getAtoms(),n=new Set(r.map((t=>t.id))),i=1,o=`${e}-${i}`;for(;n.has(o);)i++,o=`${e}-${i}`;return o}var H_=g(qm()),B_=class{canHandle(t){let e=t.trim();return e.startsWith("remove ")&&e.length>7}getPriority(){return 200}getCommandPatterns(){return["remove ID","remove Label:Type","remove source.relation=target","remove relation","remove Atom.REL","remove edge_id"]}execute(t,e){let r=t.trim().substring(7);try{return r.includes(".")&&r.includes("=")?this.handleRemoveRelationTuple(r,e):r.includes(".")&&!r.includes("=")?this.handleRemoveAtomRelation(r,e):r.includes(":")&&!r.includes("->")?this.handleRemoveAtomByLabelType(r,e):this.looksLikeEdgeId(r,e)?this.handleRemoveEdgeById(r,e):/^[^\s:->().]+$/.test(r)?e.getAtoms().find((t=>t.id===r))?this.handleRemoveAtomById(r,e):e.getRelations().find((t=>t.name===r))?this.handleRemoveRelation(r,e):{success:!1,message:`Atom or relation not found: ${r}`}:{success:!1,message:`Invalid remove syntax: ${r}`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to remove"}}}handleRemoveAtomById(t,e){let r=e.getAtoms().find((e=>e.id===t));return r?(e.removeAtom(r.id),{success:!0,message:`[${r.id}] Removed atom: ${r.label}:${r.type}`,action:"remove"}):{success:!1,message:`Atom not found with ID: ${t}`}}handleRemoveAtomByLabelType(t,e){let[r,n]=t.split(":"),i=e.getAtoms().find((t=>t.label===r.trim()&&t.type===n.trim()));return i?(e.removeAtom(i.id),{success:!0,message:`[${i.id}] Removed atom: ${i.label}:${i.type}`,action:"remove"}):{success:!1,message:`Atom not found: ${t}`}}handleRemoveRelationTuple(t,e){let r=t.match(/^([^.]+)\.([^=]+)=(.+)$/);if(!r)return{success:!1,message:`Invalid relation format: ${t}`};let n=r[1].trim(),i=r[2].trim(),o=r[3].trim(),s=e.getRelations().find((t=>t.name===i));if(!s)return{success:!1,message:`Relation '${i}' not found`};let a=s.tuples.find((t=>2===t.atoms.length&&t.atoms[0]===n&&t.atoms[1]===o));return a?(e.removeRelationTuple(i,a),{success:!0,message:`[${n}.${i}=${o}] Removed tuple: ${i}(${n}, ${o})`,action:"remove"}):{success:!1,message:`Tuple not found: ${n}.${i}=${o}`}}handleRemoveRelation(t,e){let r=e.getRelations().find((e=>e.name===t));if(!r)return{success:!1,message:`Relation '${t}' not found`};let n=r.tuples.length;return r.tuples.slice().forEach((r=>{e.removeRelationTuple(t,r)})),{success:!0,message:`[${t}] Removed relation '${t}' (${n} tuples)`,action:"remove"}}handleRemoveAtomRelation(t,e){let r=t.match(/^([^.]+)\.([^.]+)$/);if(!r)return{success:!1,message:`Invalid atom.relation syntax: ${t}`};let[,n,i]=r;if(!e.getAtoms().find((t=>t.id===n)))return{success:!1,message:`Atom '${n}' not found`};let o=e.getRelations().find((t=>t.name===i));if(!o)return{success:!1,message:`Relation '${i}' not found`};o.tuples.length;let s=o.tuples.filter((t=>t.atoms[0]===n));return 0===s.length?{success:!1,message:`No ${i} relations found for atom '${n}'`}:(s.forEach((t=>{e.removeRelationTuple(i,t)})),{success:!0,message:`[${n}.${i}] Removed ${s.length} ${i} relations from '${n}'`,action:"remove"})}looksLikeEdgeId(t,e){return t.includes(":")&&t.includes("->")}handleRemoveEdgeById(t,e){let r=t.indexOf(":");if(-1===r)return{success:!1,message:`Invalid edge ID format: ${t}. Expected format: relationName:atom1->atom2`};let n=t.substring(0,r),i=t.substring(r+1).split("->"),o=e.getRelations().find((t=>t.name===n));if(!o)return{success:!1,message:`Relation '${n}' not found`};let s=o.tuples.find((t=>t.atoms.length===i.length&&t.atoms.every(((t,e)=>t===i[e]))));return s?(e.removeRelationTuple(n,s),{success:!0,message:`[${t}] Removed edge: ${n}(${i.join(", ")})`,action:"remove"}):{success:!1,message:`Edge '${t}' not found`}}getHelp(){return["Remove Commands (sugar syntax):"," remove ID - Remove atom by ID"," remove Label:Type - Remove atom by label and type"," remove source.relation=target - Remove specific relation tuple"," remove Atom.REL - Remove all REL relations from Atom"," remove edge_id - Remove specific edge by ID"," remove relation - Remove entire relation","","Examples:",' remove alice - Remove atom with ID "alice"'," remove Alice:Person - Remove Alice:Person atom"," remove alice.friend=bob - Remove friend(alice, bob) tuple"," remove alice.friend - Remove all friend relations from alice"," remove friend:alice->bob - Remove edge by ID"," remove friend - Remove entire friend relation"]}},q_=class{canHandle(t){let e=t.trim();return!(e.startsWith("remove ")||e.startsWith("add ")||["help","info","status","list","clear","reify"].includes(e.toLowerCase())||e.startsWith("[list:")||e.includes(".")&&e.includes("=")||e.includes("(")&&e.includes(")")||!(/^[^:]+:.+$/.test(e)&&!e.includes("->")||/^[^=]+=.+:.+$/.test(e)&&!e.includes("->")))}getPriority(){return 100}getCommandPatterns(){return["Label:Type","id=Label:Type"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^(?:([^=]+)=)?([^:]+):(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: add Label:Type or add id=Label:Type"};let[,n,i,o]=r,s=i.trim(),a=o.trim();if(!s||!a)return{success:!1,message:"Label and type cannot be empty"};let l,u=n?.trim()||this.generateAtomId(s,e),c={id:u,label:s,type:a};return e.addAtom(c),n?.trim(),l=`[${u}] Added atom: ${s}:${a}`,{success:!0,message:l,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add atom"}}}generateAtomId(t,e){let r=new Set(e.getAtoms().map((t=>t.id)));if(!r.has(t))return t;let n=1,i=`${t}$${n}`;for(;r.has(i);)n++,i=`${t}$${n}`;return i}getHelp(){return["Atom Commands (sugar syntax):"," Label:Type - Add atom with generated ID"," id=Label:Type - Add atom with explicit ID","","Examples:"," Alice:Person - Creates [Alice] Alice:Person"," p1=Alice:Person - Creates [p1] Alice:Person","","Note: IDs are shown in [brackets] for easy referencing","All syntax is sugar that gets desugared to internal operations"]}},G_=class{canHandle(t){let e=t.trim();return!e.startsWith("remove ")&&!e.startsWith("add ")&&!(!e.includes(".")||!e.includes("="))&&/^[^.]+\.[^=]+=.+$/.test(e)}getPriority(){return 115}getCommandPatterns(){return["source.relation=target"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^([^.]+)\.([^=]+)=(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: source.relation=target"};let n=r[1].trim(),i=r[2].trim(),o=r[3].trim();if(!n||!i||!o)return{success:!1,message:"Source, relation, and target cannot be empty"};let s=e.getAtoms(),a=new Set(s.map((t=>t.id)));if(!a.has(n))return{success:!1,message:`Source atom '${n}' does not exist`};if(!a.has(o))return{success:!1,message:`Target atom '${o}' does not exist`};let l=s.find((t=>t.id===n)),u=s.find((t=>t.id===o)),c={atoms:[n,o],types:[l.type,u.type]};return e.addRelationTuple(i,c),{success:!0,message:`[${n}.${i}=${o}] Added relation: ${i}(${n}, ${o})`,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add relation"}}}getHelp(){return["Dot Notation Relation Commands (sugar syntax):"," source.relation=target - Add binary relation","","Examples:"," alice.friend=bob - Creates friend(alice, bob)"," alice.knows=charlie - Creates knows(alice, charlie)","","Note: Atoms must exist before creating relations","All syntax is sugar that gets desugared to internal operations"]}},z_=class{canHandle(t){let e=t.trim().toLowerCase();return["help","info","status","list","clear","reify","list-ids","list-edges"].includes(e)}getPriority(){return 50}getCommandPatterns(){return["help","info","status","list","list-ids","list-edges","clear","reify"]}execute(t,e){switch(t.trim().toLowerCase()){case"help":return{success:!0,message:this.getGeneralHelp(),action:"help"};case"info":case"status":return this.getStatus(e);case"list":return this.listContents(e);case"list-ids":return this.listAtomIds(e);case"list-edges":return this.listEdgeIds(e);case"clear":return this.clearInstance(e);case"reify":return this.reifyInstance(e);default:return{success:!1,message:"Unknown info command"}}}listAtomIds(t){let e=t.getAtoms();if(0===e.length)return{success:!0,message:"No atoms found in instance.",action:"info"};let r="Internal Atom IDs:\n\n",n=e.reduce(((t,e)=>(t[e.type]||(t[e.type]=[]),t[e.type].push(e),t)),{});return Object.entries(n).forEach((([t,e])=>{r+=`${t}:\n`,e.forEach((t=>{r+=` ID: ${t.id} Label: ${t.label}\n`})),r+="\n"})),r+=`Total: ${e.length} atoms`,{success:!0,message:r,action:"info"}}listEdgeIds(t){let e=t.getRelations();if(0===e.length)return{success:!0,message:"No relations/edges found in instance.",action:"info"};let r="Internal Edge IDs:\n\n",n=0;return e.forEach((t=>{t.tuples.length>0&&(r+=`Relation: ${t.name}\n`,t.tuples.forEach(((e,i)=>{let o=`${t.name}:${e.atoms.join("->")}`;r+=` Edge ID: ${o}\n`,r+=` Tuple: (${e.atoms.join(", ")})\n`,n++})),r+="\n")})),r+=`Total: ${n} edges across ${e.length} relations`,{success:!0,message:r,action:"info"}}getStatus(t){let e=t.getAtoms(),r=t.getRelations(),n=r.reduce(((t,e)=>t+e.tuples.length),0),i=e.reduce(((t,e)=>(t[e.type]=(t[e.type]||0)+1,t)),{}),o=r.reduce(((t,e)=>(t[e.name]=e.tuples.length,t)),{}),s="Instance Status:\n";return s+=` Atoms: ${e.length}\n`,s+=` Relations: ${r.length}\n`,s+=` Tuples: ${n}\n\n`,Object.keys(i).length>0&&(s+="Types:\n",Object.entries(i).forEach((([t,e])=>{s+=` ${t}: ${e}\n`})),s+="\n"),Object.keys(o).length>0&&(s+="Relations:\n",Object.entries(o).forEach((([t,e])=>{s+=` ${t}: ${e} tuples\n`}))),{success:!0,message:s,action:"info"}}listContents(t){let e=t.getAtoms(),r=t.getRelations(),n="Instance Contents:\n\n";return e.length>0&&(n+="Atoms:\n",e.forEach((t=>{n+=` [${t.id}] ${t.label}:${t.type}\n`})),n+="\n"),r.length>0&&(n+="Relations:\n",r.forEach((t=>{n+=` ${t.name}:\n`,t.tuples.forEach((t=>{n+=` (${t.atoms.join(", ")})\n`}))}))),0===e.length&&0===r.length&&(n+="Empty instance - no atoms or relations defined."),{success:!0,message:n,action:"info"}}clearInstance(t){try{let e=t.getAtoms().map((t=>t.id));return e.forEach((e=>t.removeAtom(e))),{success:!0,message:`Cleared instance (removed ${e.length} atoms)`,action:"remove"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to clear instance"}}}reifyInstance(t){try{if(t instanceof D_)return{success:!0,message:`Pyret Constructor Notation:\n\n${t.reify()}`,action:"info"};{let e=t.getAtoms(),r=t.getRelations(),n="Data Instance Structure:\n\n";return e.length>0&&(n+="Atoms:\n",e.forEach((t=>{n+=` [${t.id}] ${t.label}:${t.type}\n`})),n+="\n"),r.length>0&&(n+="Relations:\n",r.forEach((t=>{n+=` ${t.name}:\n`,t.tuples.forEach((t=>{n+=` (${t.atoms.join(", ")})\n`}))}))),{success:!0,message:n,action:"info"}}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to reify instance"}}}getGeneralHelp(){return'REPL Interface Help:\n\nAvailable commands across all terminals:\n help - Show this help\n info - Show instance status \n status - Same as info\n list - List all atoms and relations\n list-ids - List internal atom IDs grouped by type\n list-edges - List internal edge IDs for all relations\n clear - Clear entire instance\n reify - Generate Pyret constructor notation (or generic representation)\n\nTerminal-specific commands vary by terminal type.\nClick the "?" button in each terminal header for specific help.'}getHelp(){return["Utility Commands:"," help - Show general help"," info - Show instance status"," status - Same as info"," list - List all contents"," list-ids - List internal atom IDs"," list-edges - List internal edge IDs"," clear - Clear entire instance"," reify - Generate Pyret constructor notation"]}},V_=g(zm()),Y_=[{id:"unified",title:"",description:"Supports atoms, relations, and extensions in one terminal",parsers:[new B_,new class{canHandle(t){let e=t.trim();return!e.startsWith("add ")&&!e.startsWith("remove ")&&!(!e.startsWith("[list:")||!e.includes("]:"))}getPriority(){return 120}getCommandPatterns(){return["[list: item1,item2,item3]:type","[list: 1,2,3,4]:numbers"]}execute(t,e){let r=t.trim();return this.handleAdd(r,e)}handleAdd(t,e){try{let r=t.match(/^\[list:\s*([^\]]+)\]:(.+)$/);if(!r)return{success:!1,message:"Invalid syntax. Use: add [list: item1,item2,item3]:type"};let[,n,i]=r,o=n.split(",").map((t=>t.trim())).filter((t=>t)),s=i.trim();if(0===o.length)return{success:!1,message:"List cannot be empty"};let a="String",l=e.getAtoms(),u=new Set(l.map((t=>t.id)));if(o.every((t=>/^\d+$/.test(t))))a="Number";else if(o.every((t=>/^".*"$/.test(t)))){a="String";for(let t=0;tu.has(t)))&&(a=l.find((t=>t.id===o[0]))?.type||"Entity");let c=[];for(let t=0;t0?o.length:0;return{success:!0,message:`Added Pyret list: ${h} with ${o.length} items (${p} atoms, ${f} relations)`,action:"add"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to add Pyret list"}}}generateListId(t,e){let r=new Set(t.getAtoms().map((t=>t.id))),n=1,i=`${e}-${n}`;for(;r.has(i);)n++,i=`${e}-${n}`;return i}addListRelations(t,e,r){if(0===r.length)return;let n="empty";for(let i=r.length-1;i>=0;i--){let o=r[i],s=`${e}-link-${i+1}`,a={id:s,label:`link(${o}, ${n})`,type:"link"};t.addAtom(a);let l={atoms:[o,n],types:["Item","link"]};try{t.addRelationTuple("link",l)}catch{}n=s}let i={atoms:[e,n],types:["List","link"]};try{t.addRelationTuple("link",i)}catch{}}getHelp(){return["Pyret List Commands (sugar syntax):"," [list: item1,item2,item3]:list_type - Add list with items"," [list: 1,2,3,4]:numbers - Add number list","","This automatically creates:"," - Individual atoms for each item (if they don't exist)"," - A list atom containing all items"," - first/rest relations for list structure","","Examples:"," [list: 1,2,3,4]:numberList - Creates numberList-1 as list ID"," [list: alice,bob,charlie]:personList - Creates personList-1 as list ID"," [list: red,green,blue]:colors - Creates colors-1 as list ID","","Note: All syntax is sugar that gets desugared to internal operations.","The list type name is used as-is to generate unique list IDs (type-1, type-2, etc.)"]}},new class{constructor(){this.atomParser=new q_,this.dotRelationParser=new G_}canHandle(t){let e=t.trim();if(this.isCommaSeperatedAtoms(e))return!0;if(e.includes(";")){let t=e.split(";").map((t=>t.trim())).filter((t=>t));return t.length>=2&&t.some((t=>this.atomParser.canHandle(t)||this.dotRelationParser.canHandle(t)))}return!1}isCommaSeperatedAtoms(t){return!1}getPriority(){return 115}getCommandPatterns(){return["Alice:Person; bob=Bob:Person; alice.friend=bob"]}execute(t,e){let r=t.trim();try{return r.includes(";")?this.handleSemicolonSeperatedCommands(r,e):{success:!1,message:"Unable to parse batch command"}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Failed to execute batch command"}}}handleSemicolonSeperatedCommands(t,e){let r=t.split(";").map((t=>t.trim())).filter((t=>t)),n=[],i=[],o=0,s=0,a=0;for(let t of r)try{let r=null;this.atomParser.canHandle(t)?r=this.atomParser.execute(t,e):this.dotRelationParser.canHandle(t)&&(r=this.dotRelationParser.execute(t,e)),r?r.success?(n.push(r.message),o++,"add"===r.action&&s++,"remove"===r.action&&a++):i.push(`"${t}": ${r.message}`):i.push(`"${t}": No parser can handle this command`)}catch(e){i.push(`"${t}": ${e instanceof Error?e.message:"Unknown error"}`)}let l=[];return s>0&&l.push(`${s} added`),a>0&&l.push(`${a} removed`),o===r.length?{success:!0,message:`Batch command completed (${l.join(", ")}):\n${n.join("\n")}`,action:s>0?"add":a>0?"remove":"info"}:o>0?{success:!0,message:`Batch command partially completed (${o}/${r.length} commands):\n\nSuccessful:\n${n.join("\n")}\n\nErrors:\n${i.join("\n")}`,action:s>0?"add":a>0?"remove":"info"}:{success:!1,message:`Batch command failed:\n${i.join("\n")}`}}getHelp(){return["Batch Commands (sugar syntax):"," command1; command2; command3 - Execute multiple sugar commands","","Examples:"," Alice:Person; bob=Bob:Person; alice.friend=bob"," 1:Number; 2:Number; 3:Number","","Note: Semicolon-separated commands support any mix of atom/relation sugar syntax"]}},new G_,new q_,new z_].sort(((t,e)=>e.getPriority()-t.getPriority())),placeholder:""}],W_=({instance:t,onChange:e,onCndSpecExtracted:r,disabled:n=!1,className:i="",terminals:o=Y_})=>{let[s,a]=(0,H_.useState)((()=>{let t={};return o.forEach((e=>{t[e.id]={input:"",output:[],isExecuting:!1}})),t})),[l,u]=(0,H_.useState)({nodes:!1,edges:!1}),c=(0,H_.useRef)({}),h=t.getAtoms(),d=t.getRelations();d.reduce(((t,e)=>t+e.tuples.length),0);let p=(0,H_.useCallback)((t=>{let e=c.current[t];e&&(e.scrollTop=e.scrollHeight)}),[]),f=(0,H_.useCallback)(((t,e)=>{a((r=>({...r,[t]:{...r[t],output:[...r[t].output,{...e,id:`${Date.now()}-${Math.random()}`,timestamp:new Date}]}}))),setTimeout((()=>p(t)),0)}),[p]),g=(0,H_.useCallback)((()=>{e&&e(t)}),[t,e]),m=(0,H_.useCallback)((t=>{u((e=>({...e,[t]:!e[t]})))}),[]),y=(0,H_.useCallback)((async(e,n)=>{let i=o.find((t=>t.id===e));if(!i)return;let s=n.trim();if(!s)return;a((t=>({...t,[e]:{...t[e],isExecuting:!0}}))),f(e,{type:"command",message:s});let l=null;for(let e of i.parsers)if(e.canHandle(s))try{let r=e.execute(s,t);l=await Promise.resolve(r);break}catch(t){l={success:!1,message:t instanceof Error?t.message:"Execution failed"};break}l||(l={success:!1,message:`Unknown command: ${s}\n\nAvailable patterns:\n ${i.parsers.flatMap((t=>t.getCommandPatterns())).slice(0,8).join("\n ")}\n\nType 'help' for detailed information.`}),(!l.success||"help"===l.action||"info"===l.action)&&f(e,{type:l.success?"help"===l.action?"help":"info"===l.action?"info":"success":"error",message:l.message}),a((t=>({...t,[e]:{...t[e],input:"",isExecuting:!1}}))),l.success&&("add"===l.action||"remove"===l.action)&&g(),l.success&&l.extractedCndSpec&&r&&r(l.extractedCndSpec)}),[o,t,f,g,r]),_=(0,H_.useCallback)(((t,e)=>{a((r=>({...r,[t]:{...r[t],input:e}})))}),[]),v=(0,H_.useCallback)((async t=>{let e=s[t];if(!e||e.isExecuting)return;let r=e.input.split("\n").map((t=>t.trim())).filter((t=>t));for(let e of r)await y(t,e)}),[s,y]),x=(0,H_.useCallback)(((t,e)=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),v(e))}),[v]);(0,H_.useCallback)((t=>{a((e=>({...e,[t]:{...e[t],output:[]}})))}),[]);let b=(0,H_.useCallback)((t=>{let e=o.find((e=>e.id===t));if(!e)return;let r=`${e.title} Help:\n\n`;e.parsers.forEach((t=>{let e=t.getHelp();r+=e.join("\n")+"\n\n"})),f(t,{type:"help",message:r.trim()})}),[o,f]),T=(0,H_.useCallback)((()=>{try{let e=t.getAtoms().map((t=>t.id));e.forEach((e=>t.removeAtom(e))),o.forEach((t=>{f(t.id,{type:"success",message:`Instance cleared (removed ${e.length} atoms)`})})),g()}catch(t){o.forEach((e=>{f(e.id,{type:"error",message:t instanceof Error?t.message:"Failed to clear instance"})}))}}),[t,o,f,g]);return(0,V_.jsxs)("div",{className:`repl-interface ${i}`,children:[(0,V_.jsxs)("div",{className:"repl-interface__main",children:[(0,V_.jsx)("div",{className:"repl-interface__header",children:(0,V_.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,V_.jsx)("button",{onClick:()=>m("nodes"),style:{background:l.nodes?"#4ec9b0":"#2d2d30",color:l.nodes?"#1e1e1e":"#cccccc",border:"1px solid #3c3c3c",padding:"3px 6px",borderRadius:"3px",cursor:"pointer",fontSize:"0.75rem"},children:h.length}),(0,V_.jsx)("button",{onClick:()=>m("edges"),style:{background:l.edges?"#4ec9b0":"#2d2d30",color:l.edges?"#1e1e1e":"#cccccc",border:"1px solid #3c3c3c",padding:"3px 6px",borderRadius:"3px",cursor:"pointer",fontSize:"0.75rem"},children:d.length})]})}),(0,V_.jsx)("div",{className:"repl-interface__terminals",children:o.map((t=>{let e=s[t.id];return e?(0,V_.jsxs)("div",{className:"repl-terminal",children:[(0,V_.jsx)("div",{className:"repl-terminal__output",ref:e=>{c.current[t.id]=e},children:e.output.map((t=>(0,V_.jsx)("div",{className:`repl-output-line ${t.type}`,children:t.message.split("\n").map(((t,e)=>(0,V_.jsx)("div",{children:t},e)))},t.id)))}),(0,V_.jsxs)("div",{className:"repl-terminal__input",children:[(0,V_.jsx)("textarea",{value:e.input,onChange:e=>_(t.id,e.target.value),onKeyDown:e=>x(e,t.id),placeholder:t.placeholder,disabled:n||e.isExecuting,rows:2}),(0,V_.jsxs)("div",{className:"repl-terminal__controls",children:[(0,V_.jsx)("button",{className:"repl-interface__action-button danger",onClick:T,disabled:n,title:"Clear all data",style:{marginRight:"4px",fontSize:"10px",padding:"2px 6px"},children:"Clear"}),(0,V_.jsx)("button",{className:"repl-interface__action-button",onClick:()=>b("unified"),disabled:n,title:"Show help",style:{marginRight:"4px",fontSize:"10px",padding:"2px 6px"},children:"?"}),(0,V_.jsx)("button",{className:"repl-terminal__execute",onClick:()=>v(t.id),disabled:n||e.isExecuting||!e.input.trim(),title:"Execute commands (Ctrl+Enter)",children:e.isExecuting?"...":"▶"})]})]})]},t.id):null}))})]}),(l.nodes||l.edges)&&(0,V_.jsxs)("div",{className:"repl-interface__drawers",children:[l.nodes&&(0,V_.jsxs)("div",{className:"repl-interface__drawer",children:[(0,V_.jsxs)("div",{className:"repl-interface__drawer-header",onClick:()=>m("nodes"),children:[(0,V_.jsxs)("span",{children:["Atoms (",h.length,")"]}),(0,V_.jsx)("span",{className:"repl-interface__drawer-toggle",children:"▼"})]}),(0,V_.jsx)("div",{className:"repl-interface__drawer-content",children:0===h.length?(0,V_.jsx)("div",{className:"repl-interface__drawer-empty",children:"No atoms"}):h.map((t=>(0,V_.jsx)("div",{className:"repl-interface__drawer-item",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsxs)("div",{className:"repl-interface__drawer-item-header",children:[t.label,":",t.type]})})},t.id)))})]}),l.edges&&(0,V_.jsxs)("div",{className:"repl-interface__drawer",children:[(0,V_.jsxs)("div",{className:"repl-interface__drawer-header",onClick:()=>m("edges"),children:[(0,V_.jsxs)("span",{children:["Relations (",d.length,")"]}),(0,V_.jsx)("span",{className:"repl-interface__drawer-toggle",children:"▼"})]}),(0,V_.jsx)("div",{className:"repl-interface__drawer-content",children:0===d.length?(0,V_.jsx)("div",{className:"repl-interface__drawer-empty",children:"No relations"}):d.map((t=>(0,V_.jsxs)("div",{style:{marginBottom:"6px"},children:[(0,V_.jsx)("div",{className:"repl-interface__drawer-item",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsxs)("div",{className:"repl-interface__drawer-item-header",children:[t.name," (",t.tuples.length,")"]})})}),t.tuples.slice(0,3).map(((t,e)=>(0,V_.jsx)("div",{className:"repl-interface__drawer-item",style:{marginLeft:"8px",fontSize:"0.7rem"},children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-content",children:(0,V_.jsx)("div",{className:"repl-interface__drawer-item-detail",children:t.atoms.join(" → ")})})},e))),t.tuples.length>3&&(0,V_.jsxs)("div",{style:{marginLeft:"8px",fontSize:"0.7rem",color:"#6a737d"},children:["... and ",t.tuples.length-3," more"]})]},t.name)))})]})]})]})},X_=g(qm()),Q_=class{constructor(t){this.evaluator=t||null}setEvaluator(t){this.evaluator=t}findKeyAtAnyLevel(t,e){if(t&&"object"==typeof t){if(e in t)return t[e];for(let r of Object.values(t))if(r&&"object"==typeof r){let t=this.findKeyAtAnyLevel(r,e);if(void 0!==t)return t}}}isPrimitive(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}async evaluateExpression(t){if(!this.evaluator)throw new Error("No external Pyret evaluator available");try{let e=await this.evaluator.run(t),r=this.findKeyAtAnyLevel(e,"exn");if(void 0!==r)return{success:!1,exn:r};let n=this.findKeyAtAnyLevel(e,"answer");return void 0!==n?{success:!0,result:n}:this.isPrimitive(e)?{success:!0,result:e}:{success:!1,exn:"Unable to find answer or exn in evaluation result"}}catch(t){return{success:!1,exn:t instanceof Error?t.message:"Unknown evaluation error"}}}canHandle(t){let e=t.trim();return!("reify"!==e.toLowerCase()&&!/^['"`].*['"`]$/.test(e)&&!/^\d+(\.\d+)?$/.test(e)&&(!this.evaluator||e.startsWith("remove ")||["help","info","status","list","clear"].includes(e.toLowerCase())||/^[^:]+:.+$/.test(e)&&!e.includes("(")&&!e.includes("[")&&!e.includes("table:")&&!e.includes("row:")||e.includes(".")&&e.includes("=")&&!e.includes("(")||!(e.includes("(")&&e.includes(")")||e.includes("[")&&e.includes("]")||e.includes("table:")||e.includes("row:"))))}getPriority(){return 90}getCommandPatterns(){return["reify","[list: 1, 2, 3, 4]",'edge("id", "label", weight)']}execute(t,e){let r=t.trim();return"reify"===r.toLowerCase()?this.reifyInstance(e).then((t=>({success:!0,message:t.length>0?t.join("\n"):"No data to reify",action:"info"}))):this.evaluator?this.evaluateExpression(r).then((async t=>t.success?await this.addPyretResultToInstance(t.result,e,r):{success:!1,message:`Evaluation failed: ${this.formatError(t.exn)}`})).catch((t=>({success:!1,message:`Unexpected error during evaluation: ${this.formatError(t)}`}))):Promise.resolve({success:!1,message:"No external Pyret evaluator available. Cannot evaluate Pyret expressions.\n\nTo enable this feature, ensure window.__internalRepl is available."})}async reifyInstance(t){if(!this.evaluator)return["// No external Pyret evaluator available for reification"];let e=[];try{let r=t.getAtoms();for(let t of r)t.type?e.push(`${t.label}:${t.type}`):e.push(t.label);let n=t.getRelations();for(let t of n)for(let r of t.tuples)if(2===r.atoms.length)e.push(`${r.atoms[0]}.${t.name}=${r.atoms[1]}`);else{let n=r.atoms.map((t=>`"${t}"`)).join(", ");e.push(`${t.name}(${n})`)}return e}catch(t){return["// Error during reification:",`// ${t instanceof Error?t.message:"Unknown error"}`]}}async extractCndSpec(t,e){try{if(!this.evaluator)return;let t=`(${e})._cndspec()`,r=await this.evaluateExpression(t);if(r.success&&r.result&&"string"==typeof r.result)return r.result}catch(t){console.error("Error extracting CnD spec:",this.formatError(t))}}async addPyretResultToInstance(t,e,r){try{let n=await this.extractCndSpec(t,r);if(!this.evaluator)throw new Error("No external Pyret evaluator available");let i=await D_.fromExpression(r,{},this.evaluator);return 0===i.getAtoms().length?{success:!1,message:"Pyret expression did not produce any data structures",extractedCndSpec:n}:e.addFromDataInstance?.(i,!0)?{success:!0,message:`Evaluated Pyret expression: ${r}\nAdded ${i.getAtoms().length} atoms and ${i.getRelations().reduce(((t,e)=>t+e.tuples.length),0)} relation tuples`+(n?"\nExtracted CnD specification from result":""),action:"add",extractedCndSpec:n}:this.fallbackAddToInstance(i,e,r,n)}catch(t){return{success:!1,message:`Failed to convert Pyret result to data instance: ${this.formatError(t)}`}}}fallbackAddToInstance(t,e,r,n){let i=0,o=0;for(let r of t.getAtoms())try{let t=r.id,n=new Set(e.getAtoms().map((t=>t.id))),o=1;for(;n.has(t);)t=`${r.id}_${o}`,o++;let s={...r,id:t};e.addAtom(s),i++}catch(t){console.warn("Failed to add atom:",t)}for(let r of t.getRelations())for(let t of r.tuples)try{e.addRelationTuple(r.name,t),o++}catch(t){console.warn("Failed to add relation tuple:",t)}return{success:!0,message:`Evaluated Pyret expression: ${r}\nAdded ${i} atoms and ${o} relation tuples`+(n?"\nExtracted CnD specification from result":""),action:"add",extractedCndSpec:n}}formatError(t){if(!t)return"Unknown error";if("string"==typeof t)return t;if("object"==typeof t&&null!==t){let e=t;if(e.message)return e.message;if(e.toString&&"function"==typeof e.toString)return e.toString()}return String(t)}getHelp(){let t=["Pyret Expression Commands (requires external evaluator):"," reify - Convert current data instance back to Pyret expressions",' edge("id", "label", weight) - Add edge data structure'," [list: 1, 2, 3, 4] - Add Pyret list"," tree(left, right) - Add tree data structure"," table: col1, col2 row: val1, val2 end - Add table data structure","","This parser can evaluate arbitrary Pyret expressions and convert","the results into atoms and relations in the data instance."];return this.evaluator?[...t,"","✓ External Pyret evaluator is available.","You can use any valid Pyret expression."]:[...t,"","⚠️ External Pyret evaluator not available.","This parser requires window.__internalRepl or similar.",'The "reify" command works without external evaluator.']}},J_=g(zm()),Z_=g(qm()),tv=g(qm()),ev=g(qm()),rv=g(qm()),nv="Forge expression yielding tuples (arity ≥ 2); constraint applies from first to last element.",iv="Forge expression yielding singletons.",ov=g(zm()),sv=({value:t,name:e,onChange:r,required:n=!1,placeholder:i,className:o="",rows:s=1})=>(0,ov.jsx)("textarea",{name:e,className:`form-control selector-input code-input ${o}`,value:t,onChange:r,required:n,placeholder:i,rows:s}),av=g(zm()),lv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})};return(0,av.jsxs)(av.Fragment,{children:[(0,av.jsxs)("div",{className:"input-group",children:[(0,av.jsx)("div",{className:"input-group-prepend",children:(0,av.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,av.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,av.jsxs)("div",{className:"input-group",children:[(0,av.jsx)("div",{className:"input-group-prepend",children:(0,av.jsx)("span",{className:"input-group-text",children:"Direction"})}),(0,av.jsxs)("select",{name:"direction",onChange:e,value:t.constraintData.params.direction||"horizontal",children:[(0,av.jsx)("option",{value:"horizontal",children:"Horizontal"}),(0,av.jsx)("option",{value:"vertical",children:"Vertical"})]})]})]})},uv=g(zm()),cv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,uv.jsxs)(uv.Fragment,{children:[(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,uv.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:t.directiveData.params.field||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},required:!0})]}),(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,uv.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,uv.jsxs)("div",{className:"input-group",children:[(0,uv.jsx)("div",{className:"input-group-prepend",children:(0,uv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,uv.jsx)(sv,{name:"filter",value:t.directiveData.params.filter||"",onChange:e,placeholder:"Optional: filter which values to show (e.g., rel & (univ -> True))"})]})]})},hv=g(zm()),dv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n}})};return(0,hv.jsxs)(hv.Fragment,{children:[(0,hv.jsxs)("div",{className:"input-group",children:[(0,hv.jsx)("div",{className:"input-group-prepend",children:(0,hv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,hv.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,required:!0})]}),(0,hv.jsxs)("div",{className:"input-group",children:[(0,hv.jsx)("div",{className:"input-group-prepend",children:(0,hv.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,hv.jsx)("input",{type:"color",name:"value",className:"form-control",value:t.directiveData.params.value||"#000000",onChange:e,required:!0})]})]})},pv=g(zm()),fv=({directiveData:t,onUpdate:e})=>{let r=t.params.field||"",n=t.params.value||"#000000",i=t.params.selector||"",o=t.params.filter||"",s=t.params.style||"",a=t.params.weight,l=t.params.showLabel,u=t.params.hidden,c=r=>{let{name:n,value:i}=r.target;e({params:{...t.params,[n]:i||void 0}})};return(0,pv.jsxs)(pv.Fragment,{children:[(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,pv.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:r,onChange:r=>e({params:{...t.params,field:r.target.value}}),required:!0})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,pv.jsx)(sv,{name:"selector",value:i,onChange:c,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,pv.jsx)(sv,{name:"filter",value:o,onChange:c,placeholder:"Optional: filter which tuples to style (e.g., rel & (univ -> True))"})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,pv.jsx)("input",{type:"color",name:"value",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,value:r.target.value}}),required:!0})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Style"})}),(0,pv.jsxs)("select",{name:"style",className:"form-control",value:s,onChange:r=>e({params:{...t.params,style:r.target.value||void 0}}),children:[(0,pv.jsx)("option",{value:"",children:"Default"}),(0,pv.jsx)("option",{value:"solid",children:"Solid"}),(0,pv.jsx)("option",{value:"dashed",children:"Dashed"}),(0,pv.jsx)("option",{value:"dotted",children:"Dotted"})]})]}),(0,pv.jsxs)("div",{className:"input-group",children:[(0,pv.jsx)("div",{className:"input-group-prepend",children:(0,pv.jsx)("span",{className:"input-group-text",children:"Weight"})}),(0,pv.jsx)("input",{type:"number",name:"weight",className:"form-control",min:"0",step:"0.5",value:a??"",placeholder:"Default",onChange:r=>{let n=r.target.value,i=""===n?void 0:Number(n);e({params:{...t.params,weight:i}})}})]}),(0,pv.jsx)("div",{className:"input-group",children:(0,pv.jsxs)("div",{className:"form-check",children:[(0,pv.jsx)("input",{type:"checkbox",name:"showLabel",className:"form-check-input",id:"showLabel-checkbox",checked:!1!==l,onChange:r=>e({params:{...t.params,showLabel:!!r.target.checked&&void 0}})}),(0,pv.jsx)("label",{className:"form-check-label",htmlFor:"showLabel-checkbox",children:"Show Edge Label"})]})}),(0,pv.jsx)("div",{className:"input-group",children:(0,pv.jsxs)("div",{className:"form-check",children:[(0,pv.jsx)("input",{type:"checkbox",name:"hidden",className:"form-check-input",id:"hidden-checkbox",checked:!0===u,onChange:r=>e({params:{...t.params,hidden:!!r.target.checked||void 0}})}),(0,pv.jsx)("label",{className:"form-check-label",htmlFor:"hidden-checkbox",children:"Hide Edge"})]})})]})},gv=g(zm()),mv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})};return(0,gv.jsxs)(gv.Fragment,{children:[(0,gv.jsxs)("div",{className:"input-group",children:[(0,gv.jsx)("div",{className:"input-group-prepend",children:(0,gv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,gv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,gv.jsxs)("div",{className:"input-group",children:[(0,gv.jsx)("div",{className:"input-group-prepend",children:(0,gv.jsx)("span",{className:"input-group-text",children:"Direction"})}),(0,gv.jsxs)("select",{name:"direction",onChange:e,value:t.constraintData.params.direction||"clockwise",children:[(0,gv.jsx)("option",{value:"clockwise",children:"Clockwise"}),(0,gv.jsx)("option",{value:"counterclockwise",children:"Counterclockwise"})]})]})]})},yv=g(zm()),_v=({directiveData:t,onUpdate:e})=>{let r=t.params?.flag||"";return(0,yv.jsx)("div",{className:"input-group",children:(0,yv.jsxs)("select",{name:"flag",className:"form-control",value:r,onChange:r=>e({params:{...t.params,flag:r.target.value}}),children:[(0,yv.jsx)("option",{value:"",children:"Select flag..."}),(0,yv.jsx)("option",{value:"hideDisconnectedBuiltIns",children:"Hide disconnected built ins."}),(0,yv.jsx)("option",{value:"hideDisconnected",children:"Hide all disconnected."})]})})},vv=g(zm()),xv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:"number"===e.target.type?Number(n):n}})};return(0,vv.jsxs)(vv.Fragment,{children:[(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,vv.jsx)("input",{type:"text",name:"field",className:"form-control",onChange:e,required:!0})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text",children:"Selector"})}),(0,vv.jsx)("input",{type:"text",name:"selector",className:"form-control code-input",defaultValue:t.constraintData.params.selector||"",placeholder:"Optional: target specific atoms (e.g., Person)",onChange:e})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text infolabel",title:"Which 0-indexed element of the field to use as the group key.",children:"Group On"})}),(0,vv.jsx)("input",{type:"number",name:"groupOn",className:"form-control",onChange:e,required:!0})]}),(0,vv.jsxs)("div",{className:"input-group",children:[(0,vv.jsx)("div",{className:"input-group-prepend",children:(0,vv.jsx)("span",{className:"input-group-text infolabel",title:"Which 0-indexed element of the field are group members.",children:"Add to Group"})}),(0,vv.jsx)("input",{type:"number",name:"addToGroup",className:"form-control",onChange:e,required:!0})]})]})},bv=g(zm()),Tv=t=>{let e=e=>{let{name:r,value:n,type:i,checked:o}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:"checkbox"===i?o:n}})};return(0,bv.jsxs)(bv.Fragment,{children:[(0,bv.jsxs)("div",{className:"input-group",children:[(0,bv.jsx)("div",{className:"input-group-prepend",children:(0,bv.jsx)("span",{className:"input-group-text infolabel",title:`${iv} or ${nv}`,children:"Selector"})}),(0,bv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e,required:!0})]}),(0,bv.jsxs)("div",{className:"input-group",children:[(0,bv.jsx)("div",{className:"input-group-prepend",children:(0,bv.jsx)("span",{className:"input-group-text",children:"Group Name"})}),(0,bv.jsx)("input",{type:"text",name:"name",className:"form-control",value:t.constraintData.params.name||"",onChange:e,placeholder:"Enter group name",required:!0})]}),(0,bv.jsxs)("label",{className:"inline-checkbox",children:[(0,bv.jsx)("input",{type:"checkbox",name:"addEdge",checked:t.constraintData.params.addEdge||!1,onChange:e}),(0,bv.jsx)("span",{children:"Add edge between groups"})]})]})},Ev=g(zm()),Ov=({directiveData:t,onUpdate:e})=>{let r=t.params.selector||"",n=t.params.name||"",i=t.params.color||"#000000",o=t.params.style||"",s=t.params.weight;return(0,Ev.jsxs)(Ev.Fragment,{children:[(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,Ev.jsx)(sv,{name:"selector",value:r,onChange:r=>{e({params:{...t.params,selector:r.target.value}})},required:!0})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Edge Name"})}),(0,Ev.jsx)("input",{type:"text",name:"name",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,name:r.target.value}}),required:!0})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Color"})}),(0,Ev.jsx)("input",{type:"color",name:"color",className:"form-control",defaultValue:i,onChange:r=>e({params:{...t.params,color:r.target.value}})})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Style"})}),(0,Ev.jsxs)("select",{name:"style",className:"form-control",value:o,onChange:r=>e({params:{...t.params,style:r.target.value||void 0}}),children:[(0,Ev.jsx)("option",{value:"",children:"Default"}),(0,Ev.jsx)("option",{value:"solid",children:"Solid"}),(0,Ev.jsx)("option",{value:"dashed",children:"Dashed"}),(0,Ev.jsx)("option",{value:"dotted",children:"Dotted"})]})]}),(0,Ev.jsxs)("div",{className:"input-group",children:[(0,Ev.jsx)("div",{className:"input-group-prepend",children:(0,Ev.jsx)("span",{className:"input-group-text",children:"Weight"})}),(0,Ev.jsx)("input",{type:"number",name:"weight",className:"form-control",min:"0",step:"0.5",value:s??"",placeholder:"Default",onChange:r=>{let n=r.target.value,i=""===n?void 0:Number(n);e({params:{...t.params,weight:i}})}})]})]})},Sv=g(zm()),Nv=t=>{let e=t.directiveData||t.constraintData;if(!e)throw new Error("HideAtomSelector requires either directiveData or constraintData");return(0,Sv.jsxs)("div",{className:"input-group",children:[(0,Sv.jsx)("div",{className:"input-group-prepend",children:(0,Sv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Sv.jsx)(sv,{name:"selector",value:e.params.selector||"",onChange:r=>{let{name:n,value:i}=r.target;t.onUpdate({params:{...e.params,[n]:i}})},required:!0})]})},Av=g(zm()),wv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,Av.jsxs)(Av.Fragment,{children:[(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text",children:"Field"})}),(0,Av.jsx)("input",{type:"text",name:"field",className:"form-control",defaultValue:t.directiveData.params.field||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},required:!0})]}),(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Av.jsx)(sv,{name:"selector",value:t.directiveData.params.selector||"",onChange:e,placeholder:"Optional: target specific source atoms (e.g., Person)"})]}),(0,Av.jsxs)("div",{className:"input-group",children:[(0,Av.jsx)("div",{className:"input-group-prepend",children:(0,Av.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Filter"})}),(0,Av.jsx)(sv,{name:"filter",value:t.directiveData.params.filter||"",onChange:e,placeholder:"Optional: filter which tuples to hide (e.g., rel & (univ -> False))"})]})]})},Rv=g(zm()),Cv=({directiveData:t,onUpdate:e})=>{let r=t.params.selector||"",n=t.params.path||"",i=t.params.showLabels||!1;return(0,Rv.jsxs)(Rv.Fragment,{children:[(0,Rv.jsxs)("div",{className:"input-group",children:[(0,Rv.jsx)("div",{className:"input-group-prepend",children:(0,Rv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,Rv.jsx)(sv,{name:"selector",value:r,onChange:r=>{e({params:{...t.params,selector:r.target.value}})},required:!0})]}),(0,Rv.jsxs)("div",{className:"input-group",children:[(0,Rv.jsx)("div",{className:"input-group-prepend",children:(0,Rv.jsx)("span",{className:"input-group-text",children:"Path"})}),(0,Rv.jsx)("input",{type:"text",name:"path",className:"form-control",defaultValue:n,onChange:r=>e({params:{...t.params,path:r.target.value}}),placeholder:"/path/to/icon.png",required:!0})]}),(0,Rv.jsxs)("label",{className:"inline-checkbox",children:[(0,Rv.jsx)("input",{type:"checkbox",name:"showLabels",defaultChecked:i,onChange:r=>e({params:{...t.params,showLabels:r.target.checked}})}),(0,Rv.jsx)("span",{children:"Show Labels"})]})]})},Lv=g(qm()),Iv=g(zm()),kv=[{value:"left",label:"Left",group:"relative"},{value:"right",label:"Right",group:"relative"},{value:"above",label:"Above",group:"relative"},{value:"below",label:"Below",group:"relative"},{value:"directlyLeft",label:"Directly Left",group:"direct"},{value:"directlyRight",label:"Directly Right",group:"direct"},{value:"directlyAbove",label:"Directly Above",group:"direct"},{value:"directlyBelow",label:"Directly Below",group:"direct"}],Dv=t=>{let e=(0,Lv.useCallback)((e=>{let r=t.constraintData.params.directions||[],n=r.includes(e)?r.filter((t=>t!==e)):[...r,e];t.onUpdate({params:{...t.constraintData.params,directions:n}})}),[t.constraintData.params,t.onUpdate]),r=t.constraintData.params.directions||[];return(0,Iv.jsxs)(Iv.Fragment,{children:[(0,Iv.jsxs)("div",{className:"input-group",children:[(0,Iv.jsx)("div",{className:"input-group-prepend",children:(0,Iv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Selector"})}),(0,Iv.jsx)(sv,{name:"selector",value:t.constraintData.params.selector||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.constraintData.params,[r]:n}})},required:!0})]}),(0,Iv.jsxs)("div",{className:"direction-selector",children:[(0,Iv.jsx)("label",{className:"direction-selector__label",children:"Directions"}),(0,Iv.jsx)("div",{className:"direction-selector__grid",children:kv.map((t=>(0,Iv.jsxs)("label",{className:"direction-selector__option "+(r.includes(t.value)?"direction-selector__option--selected":""),title:`Toggle ${t.label}`,children:[(0,Iv.jsx)("input",{type:"checkbox",checked:r.includes(t.value),onChange:()=>e(t.value),className:"direction-selector__checkbox"}),(0,Iv.jsx)("span",{className:"direction-selector__text",children:t.label})]},t.value)))})]})]})},Pv=g(zm()),Mv=t=>(0,Pv.jsxs)("div",{className:"input-group",children:[(0,Pv.jsx)("div",{className:"input-group-prepend",children:(0,Pv.jsx)("span",{className:"input-group-text",children:"Sig"})}),(0,Pv.jsx)("input",{type:"text",className:"form-control",name:"sig",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n}})},required:!0})]}),jv=g(zm()),Kv=({directiveData:t,constraintData:e,onUpdate:r})=>{let n=t||e;if(!n)throw new Error("SizeSelector requires either directiveData or constraintData");let i=n.params.selector||"",o="number"==typeof n.params.width?n.params.width:100,s="number"==typeof n.params.height?n.params.height:60;return(0,jv.jsxs)(jv.Fragment,{children:[(0,jv.jsxs)("div",{className:"input-group",children:[(0,jv.jsx)("div",{className:"input-group-prepend",children:(0,jv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"Selector"})}),(0,jv.jsx)(sv,{name:"selector",value:i,onChange:t=>{r({params:{...n.params,selector:t.target.value}})},required:!0})]}),(0,jv.jsxs)("div",{className:"input-group",children:[(0,jv.jsx)("label",{children:(0,jv.jsx)("span",{className:"input-group-text",children:"Width"})}),(0,jv.jsx)("input",{type:"number",name:"width",className:"form-control",defaultValue:o,onChange:t=>r({params:{...n.params,width:Number(t.target.value)}}),required:!0}),(0,jv.jsx)("label",{children:(0,jv.jsx)("span",{className:"input-group-text",children:"Height"})}),(0,jv.jsx)("input",{type:"number",name:"height",className:"form-control",defaultValue:s,onChange:t=>r({params:{...n.params,height:Number(t.target.value)}}),required:!0})]})]})},Uv=g(zm()),Fv=t=>{let e=e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})};return(0,Uv.jsxs)(Uv.Fragment,{children:[(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text infolabel",title:iv,children:"To Tag"})}),(0,Uv.jsx)(sv,{name:"toTag",value:t.directiveData.params.toTag||"",onChange:e,placeholder:"Atoms to receive this tag (e.g., Person)"})]}),(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text",children:"Name"})}),(0,Uv.jsx)("input",{type:"text",name:"name",className:"form-control",defaultValue:t.directiveData.params.name||"",onChange:e=>{let{name:r,value:n}=e.target;t.onUpdate({params:{...t.directiveData.params,[r]:n||void 0}})},placeholder:"Attribute name to display",required:!0})]}),(0,Uv.jsxs)("div",{className:"input-group",children:[(0,Uv.jsx)("div",{className:"input-group-prepend",children:(0,Uv.jsx)("span",{className:"input-group-text infolabel",title:nv,children:"Value"})}),(0,Uv.jsx)(sv,{name:"value",value:t.directiveData.params.value||"",onChange:e,placeholder:"N-ary selector for tag values (e.g., age, score)"})]})]})},$v=g(qm());Ta(),Ia();var Hv="#000000";function Bv(t){return!t||"object"!=typeof t||Array.isArray(t)?{}:t}function qv(t,e){let r={...t};for(let[t,n]of Object.entries(e))(void 0===r[t]||null===r[t])&&(r[t]=n);return r}function Gv(t,e){let r=Bv(e);switch(t){case"size":return qv(r,{width:100,height:60});case"align":return qv(r,{direction:"horizontal"});case"cyclic":return qv(r,{direction:"clockwise"});case"groupselector":return qv(r,{addEdge:!1});default:return{...r}}}function zv(t,e){let r=Bv(e);switch(t){case"size":return qv(r,{width:100,height:60});case"atomColor":case"edgeColor":return qv(r,{value:Hv});case"inferredEdge":return qv(r,{color:Hv});case"icon":return qv(r,{showLabels:!1});default:return{...r}}}var Vv=g(zm());function Yv(t,e){function r(t){return"cyclic"===t?"cyclic":"orientation"===t?"orientation":"align"===t?"align":"groupfield"===t||"groupselector"===t?"group":"size"===t?"size":"hideAtom"===t?"hideAtom":"unknown"}let n=[];if(t.length>0){n.push("constraints:");for(let e of t){e.comment&&n.push(` # ${e.comment}`);let t={[r(e.type)]:Gv(e.type,e.params)},i=ba.dump([t],{flowLevel:2}).trim();n.push(" "+i)}}if(e.length>0){n.length>0&&n.push(""),n.push("directives:");for(let t of e){t.comment&&n.push(` # ${t.comment}`);let e=zv(t.type,t.params);if("flag"===t.type){let r=e.flag||"";n.push(` - ${t.type}: ${r}`)}else{let r={[t.type]:e},i=ba.dump([r],{flowLevel:2}).trim();n.push(" "+i)}}}return n.join("\n")+(n.length>0?"\n":"")}var Wv=["orientation","cyclic","group","align","size","hideAtom"],Xv=["atomColor","edgeColor","size","icon","projection","attribute","hideField","inferredEdge","hideAtom","flag","tag"],Qv=["constraints","directives"];function Jv(t){let e,r={isValid:!0,error:null,warnings:[]};if(!t||!t.trim())return r;try{e=ba.load(t)}catch(t){if(t instanceof ba.YAMLException){let e=void 0!==t.mark?.line?t.mark.line+1:void 0,n=void 0!==t.mark?.column?t.mark.column+1:void 0,i=e&&n?` (line ${e}, column ${n})`:"";r.isValid=!1,r.error=`YAML syntax error${i}: ${t.reason||t.message}`}else r.isValid=!1,r.error=`Invalid YAML: ${t.message}`;return r}if(e&&"object"==typeof e){let t=Object.keys(e);for(let e of t)Qv.includes(e)||r.warnings.push(`Unrecognized top-level key: "${e}". Expected: ${Qv.join(", ")}`);if(Array.isArray(e.constraints))for(let t=0;t{let[e,r]=(0,$v.useState)(null),n=(0,$v.useCallback)((()=>{let e=Jv(t.yamlValue);r(e.error)}),[t.yamlValue]);return(0,$v.useEffect)((()=>{let e=Jv(t.yamlValue);r(e.error)}),[]),(0,Vv.jsx)("div",{className:"cnd-layout-interface__code-view",role:"region","aria-label":"YAML Code Editor",children:(0,Vv.jsxs)("div",{className:"code-view-card",children:[e&&(0,Vv.jsx)("div",{className:"alert alert-danger py-2 mb-2",role:"alert",children:(0,Vv.jsxs)("small",{children:[(0,Vv.jsx)("strong",{children:"❌ "}),e]})}),(0,Vv.jsx)("textarea",{id:"webcola-cnd",className:"form-control code-view-textarea",value:t.yamlValue,onChange:t.handleTextareaChange,onBlur:n,disabled:t.disabled,rows:16,spellCheck:!1,"aria-label":"CND Layout Specification YAML","aria-invalid":e?"true":"false",placeholder:""})]})})},tx=g(qm()),ex=(t=1e3)=>{let[e,r]=(0,tx.useState)(!0);return(0,tx.useEffect)((()=>{let e=setTimeout((()=>{r(!1)}),t);return()=>clearTimeout(e)}),[t]),{isHighlighted:e}},rx=g(zm()),nx=(t,e,r)=>{let n=r;switch(t){case"cyclic":return(0,rx.jsx)(mv,{constraintData:e,onUpdate:r});case"orientation":default:return(0,rx.jsx)(Dv,{constraintData:e,onUpdate:r});case"align":return(0,rx.jsx)(lv,{constraintData:e,onUpdate:r});case"groupfield":return(0,rx.jsx)(xv,{constraintData:e,onUpdate:r});case"groupselector":return(0,rx.jsx)(Tv,{constraintData:e,onUpdate:r});case"size":return(0,rx.jsx)(Kv,{constraintData:e,onUpdate:n});case"hideAtom":return(0,rx.jsx)(Nv,{constraintData:e,onUpdate:n})}},ix=t=>{let{isHighlighted:e}=ex(1e3),[r,n]=(0,rv.useState)(!1),i=t.constraintData.collapsed??!1,o=(0,rv.useCallback)((()=>{t.onUpdate({collapsed:!i})}),[i,t.onUpdate]),s=(0,rv.useCallback)((e=>{t.onUpdate({comment:e.target.value})}),[t.onUpdate]),a=(0,rv.useCallback)((e=>{let r=e.target.value;t.onUpdate({type:r,params:{}})}),[t.onUpdate]),l=[t.className?t.className:"",e?"highlight":"","noCodeCard",i?"noCodeCard--collapsed":""].filter(Boolean).join(" ");return(0,rx.jsxs)("div",{className:l,...t.dragHandleProps,children:[(0,rx.jsxs)("div",{className:"cardHeader",children:[(0,rx.jsx)("button",{className:"collapseButton",title:i?"Expand":"Collapse","aria-label":i?"Expand constraint":"Collapse constraint","aria-expanded":!i,type:"button",onClick:o,children:(0,rx.jsx)("span",{"aria-hidden":"true",children:i?"▶":"▼"})}),t.dragHandleProps&&(0,rx.jsx)("span",{className:"dragHandle",title:"Drag to reorder","aria-label":"Drag handle",children:"⋮⋮"}),(0,rx.jsx)("button",{className:"closeButton",title:"Remove constraint","aria-label":"Remove constraint",type:"button",onClick:t.onRemove,children:(0,rx.jsx)("span",{"aria-hidden":"true",children:"×"})})]}),(0,rx.jsxs)("div",{className:"input-group",children:[(0,rx.jsx)("div",{className:"input-group-prepend",children:(0,rx.jsx)("span",{className:"input-group-text",title:"Choose constraint type",children:"Constraint"})}),(0,rx.jsxs)("select",{onChange:a,value:t.constraintData.type,children:[(0,rx.jsx)("option",{value:"orientation",title:"Specify the relative positioning of elements.",children:"Orientation"}),(0,rx.jsx)("option",{value:"cyclic",title:"Arrange elements along the perimeter of a circle.",children:"Cyclic"}),(0,rx.jsx)("option",{value:"align",title:"Ensure elements are aligned horizontally or vertically.",children:"Align"}),(0,rx.jsx)("option",{value:"groupfield",title:"Group elements based on a field.",children:"Group by field"}),(0,rx.jsx)("option",{value:"groupselector",title:"Group elements based on a selector.",children:"Group by selector"}),(0,rx.jsx)("option",{value:"size",title:"Set the width and height of elements matching the selector.",children:"Size"}),(0,rx.jsx)("option",{value:"hideAtom",title:"Hide elements matching the selector from the visualization.",children:"Hide Atom"})]})]}),!i&&(0,rx.jsxs)(rx.Fragment,{children:[(0,rx.jsx)("div",{className:"params",children:nx(t.constraintData.type,t.constraintData,t.onUpdate)}),(0,rx.jsx)("div",{className:"commentSection",children:r||t.constraintData.comment?(0,rx.jsx)("input",{type:"text",className:"commentInput",placeholder:"Add a note...",value:t.constraintData.comment||"",onChange:s,onFocus:()=>n(!0),onBlur:()=>n(!1)}):(0,rx.jsx)("button",{type:"button",className:"addCommentButton",onClick:()=>n(!0),children:"+ Add note"})})]}),i&&t.constraintData.comment&&(0,rx.jsxs)("div",{className:"collapsedComment",title:t.constraintData.comment,children:["💬 ",t.constraintData.comment.length>30?t.constraintData.comment.slice(0,30)+"...":t.constraintData.comment]})]})},ox=g(qm()),sx=g(zm()),ax=(t,e,r)=>{let n=r;switch(t){case"attribute":return(0,sx.jsx)(cv,{directiveData:e,onUpdate:r});case"hideField":return(0,sx.jsx)(wv,{directiveData:e,onUpdate:r});case"hideAtom":return(0,sx.jsx)(Nv,{directiveData:e,onUpdate:n});case"icon":return(0,sx.jsx)(Cv,{directiveData:e,onUpdate:r});case"atomColor":return(0,sx.jsx)(dv,{directiveData:e,onUpdate:r});case"edgeColor":return(0,sx.jsx)(fv,{directiveData:e,onUpdate:r});case"size":return(0,sx.jsx)(Kv,{directiveData:e,onUpdate:n});case"projection":return(0,sx.jsx)(Mv,{directiveData:e,onUpdate:r});case"flag":default:return(0,sx.jsx)(_v,{directiveData:e,onUpdate:r});case"inferredEdge":return(0,sx.jsx)(Ov,{directiveData:e,onUpdate:r});case"tag":return(0,sx.jsx)(Fv,{directiveData:e,onUpdate:r})}},lx=t=>{let{isHighlighted:e}=ex(1e3),[r,n]=(0,ox.useState)(!1),i=t.directiveData.collapsed??!1,o=(0,ox.useCallback)((()=>{t.onUpdate({collapsed:!i})}),[i,t.onUpdate]),s=(0,ox.useCallback)((e=>{t.onUpdate({comment:e.target.value})}),[t.onUpdate]),a=(0,ox.useCallback)((e=>{let r=e.target.value;t.onUpdate({type:r,params:{}})}),[t.onUpdate]),l=[e&&"highlight","noCodeCard",i?"noCodeCard--collapsed":""].filter(Boolean).join(" ");return(0,sx.jsxs)("div",{className:l,...t.dragHandleProps,children:[(0,sx.jsxs)("div",{className:"cardHeader",children:[(0,sx.jsx)("button",{className:"collapseButton",title:i?"Expand":"Collapse","aria-label":i?"Expand directive":"Collapse directive","aria-expanded":!i,type:"button",onClick:o,children:(0,sx.jsx)("span",{"aria-hidden":"true",children:i?"▶":"▼"})}),t.dragHandleProps&&(0,sx.jsx)("span",{className:"dragHandle",title:"Drag to reorder","aria-label":"Drag handle",children:"⋮⋮"}),(0,sx.jsx)("button",{className:"closeButton",title:"Remove directive","aria-label":"Remove directive",type:"button",onClick:t.onRemove,children:(0,sx.jsx)("span",{"aria-hidden":"true",children:"×"})})]}),(0,sx.jsxs)("div",{className:"input-group",children:[(0,sx.jsx)("div",{className:"input-group-prepend",children:(0,sx.jsx)("span",{className:"input-group-text",children:"Directive"})}),(0,sx.jsxs)("select",{onChange:a,value:t.directiveData.type,children:[(0,sx.jsx)("option",{value:"flag",children:"Visibility Flag"}),(0,sx.jsx)("option",{value:"hideAtom",children:"Hide Atom"}),(0,sx.jsx)("option",{value:"attribute",children:"Attribute"}),(0,sx.jsx)("option",{value:"tag",children:"Tag"}),(0,sx.jsx)("option",{value:"hideField",children:"Hide Field"}),(0,sx.jsx)("option",{value:"icon",children:"Icon"}),(0,sx.jsx)("option",{value:"atomColor",children:"Color (Atom)"}),(0,sx.jsx)("option",{value:"edgeColor",children:"Edge Style"}),(0,sx.jsx)("option",{value:"size",children:"Size"}),(0,sx.jsx)("option",{value:"projection",children:"Projection"}),(0,sx.jsx)("option",{value:"inferredEdge",children:"Inferred Edge"})]})]}),!i&&(0,sx.jsxs)(sx.Fragment,{children:[(0,sx.jsx)("div",{className:"params",children:ax(t.directiveData.type,t.directiveData,t.onUpdate)}),(0,sx.jsx)("div",{className:"commentSection",children:r||t.directiveData.comment?(0,sx.jsx)("input",{type:"text",className:"commentInput",placeholder:"Add a note...",value:t.directiveData.comment||"",onChange:s,onFocus:()=>n(!0),onBlur:()=>n(!1)}):(0,sx.jsx)("button",{type:"button",className:"addCommentButton",onClick:()=>n(!0),children:"+ Add note"})})]}),i&&t.directiveData.comment&&(0,sx.jsxs)("div",{className:"collapsedComment",title:t.directiveData.comment,children:["💬 ",t.directiveData.comment.length>30?t.directiveData.comment.slice(0,30)+"...":t.directiveData.comment]})]})};Ta();var ux=g(zm());function cx(){return typeof window<"u"&&window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():(console.error("Web Crypto API not available, falling back to Math.random for ID generation"),`${Date.now().toString(36)}-${Math.random().toString(36).substring(2,15)}-${Math.random().toString(36).substring(2,15)}`)}function hx(t){let e=[],r=[],n=ba.load(t),i=n?.constraints,o=n?.directives,s=(t,e)=>{let r=new Map,n=t.split("\n"),i=!1,o="",s=-1;for(let t of n){let n=t.trim();if(n!==`${e}:`){if(i&&/^[a-zA-Z]/.test(n)&&n.endsWith(":")&&!n.startsWith("-"))i=!1;else if(i)if(n.startsWith("#")){let t=n.slice(1).trim();o=o?o+" "+t:t}else n.startsWith("-")&&(s++,o&&(r.set(s,o),o=""))}else i=!0}return r},a=s(t,"constraints"),l=s(t,"directives");if(i){if(!Array.isArray(i))throw new Error("Invalid YAML: 'constraints' should be an array");e=i.map(((t,e)=>{let r=function(t){let e=Object.keys(t)[0],r=t[e];if("cyclic"===e||"orientation"===e||"align"===e||"size"===e||"hideAtom"===e)return e;if("group"===e){if(r.selector)return"groupselector";if(r.field)return"groupfield"}return"unknown"}(t);if("unknown"===r)throw new Error(`Unsupported constraint type in YAML: ${JSON.stringify(t)}`);let n=Gv(r,t[Object.keys(t)[0]]);return{id:cx(),type:r,params:n,comment:a.get(e)}}))}if(o){if(!Array.isArray(o))throw new Error("Invalid YAML: 'directives' should be an array");r=o.map(((t,e)=>{let r=Object.keys(t)[0],n=t[r];"string"==typeof n&&(n={flag:n}),(!n||"object"!=typeof n)&&(n={});let i=zv(r,n);return{id:cx(),type:r,params:i,comment:l.get(e)}}))}return{constraints:e,directives:r}}var dx=({yamlValue:t,constraints:e,setConstraints:r,directives:n,setDirectives:i,disabled:o=!1})=>{let[s,a]=(0,ev.useState)(null),[l,u]=(0,ev.useState)(null),c=(0,ev.useCallback)(((t,e)=>{r((r=>r.map((r=>{if(r.id===t){let t=void 0!==e.params?{...r.params,...e.params}:r.params,n={...r,...e,params:t};return{...n,params:Gv(n.type,n.params)}}return r}))))}),[r]),h=(0,ev.useCallback)((t=>{r((e=>e.map((e=>({...e,collapsed:t})))))}),[r]),d=(0,ev.useCallback)(((t,e)=>{a(e),t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e),t.target.classList.add("dragging")}),[]),p=(0,ev.useCallback)((t=>{a(null),t.target.classList.remove("dragging")}),[]),f=(0,ev.useCallback)((t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"}),[]),g=(0,ev.useCallback)(((t,e)=>{t.preventDefault(),s&&s!==e&&r((t=>{let r=t.findIndex((t=>t.id===s)),n=t.findIndex((t=>t.id===e));if(-1===r||-1===n)return t;let i=[...t],[o]=i.splice(r,1);return i.splice(n,0,o),i}))}),[s,r]),m=(0,ev.useCallback)(((t,e)=>{i((r=>r.map((r=>{if(r.id!==t)return r;let n=void 0!==e.params?{...r.params,...e.params}:r.params,i={...r,...e,params:n};return{...i,params:zv(i.type,i.params)}}))))}),[i]),y=(0,ev.useCallback)((t=>{i((e=>e.map((e=>({...e,collapsed:t})))))}),[i]),_=(0,ev.useCallback)(((t,e)=>{u(e),t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e),t.target.classList.add("dragging")}),[]),v=(0,ev.useCallback)((t=>{u(null),t.target.classList.remove("dragging")}),[]),x=(0,ev.useCallback)((t=>{t.preventDefault(),t.dataTransfer.dropEffect="move"}),[]),b=(0,ev.useCallback)(((t,e)=>{t.preventDefault(),l&&l!==e&&i((t=>{let r=t.findIndex((t=>t.id===l)),n=t.findIndex((t=>t.id===e));if(-1===r||-1===n)return t;let i=[...t],[o]=i.splice(r,1);return i.splice(n,0,o),i}))}),[l,i]);return(0,ev.useEffect)((()=>{if(console.log(t),t)try{(t=>{let{constraints:e,directives:n}=hx(t);r((t=>e)),i((t=>n))})(t)}catch(t){console.error("Failed to load YAML into Structured Builder:",t)}}),[t]),(0,ux.jsxs)("section",{id:"noCodeViewContainer","aria-label":"Structured Builder Container",children:[(0,ux.jsxs)("div",{children:[(0,ux.jsxs)("div",{className:"sectionHeader",children:[(0,ux.jsxs)("h5",{children:["Constraints ",(0,ux.jsx)("button",{type:"button",onClick:()=>{let t={id:cx(),type:"orientation",params:{}};r((e=>[t,...e]))},title:"Click to add a new constraint","aria-label":"Click to add a new constraint",disabled:o,children:"+"})]}),e.length>0&&(0,ux.jsxs)("div",{className:"collapseAllButtons",children:[(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>h(!0),title:"Collapse all constraints",children:"Collapse All"}),(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>h(!1),title:"Expand all constraints",children:"Expand All"})]})]}),(0,ux.jsx)("section",{className:"cardContainer",id:"constraintContainer","aria-label":"Constraints List",children:e.map((t=>(0,ux.jsx)(ix,{constraintData:t,onUpdate:e=>c(t.id,e),onRemove:()=>{r((e=>e.filter((e=>e.id!==t.id))))},dragHandleProps:{draggable:!0,onDragStart:e=>d(e,t.id),onDragEnd:p,onDragOver:f,onDrop:e=>g(e,t.id)}},t.id)))})]}),(0,ux.jsx)("hr",{}),(0,ux.jsxs)("div",{children:[(0,ux.jsxs)("div",{className:"sectionHeader",children:[(0,ux.jsxs)("h5",{children:["Directives ",(0,ux.jsx)("button",{type:"button",onClick:()=>{let t={id:cx(),type:"flag",params:{}};i((e=>[t,...e]))},title:"Click to add a new directive","aria-label":"Click to add a new directive",disabled:o,children:"+"})]}),n.length>0&&(0,ux.jsxs)("div",{className:"collapseAllButtons",children:[(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>y(!0),title:"Collapse all directives",children:"Collapse All"}),(0,ux.jsx)("button",{type:"button",className:"collapseAllButton",onClick:()=>y(!1),title:"Expand all directives",children:"Expand All"})]})]}),(0,ux.jsx)("section",{className:"cardContainer",id:"directiveContainer","aria-label":"Directives List",children:n.map((t=>(0,ux.jsx)(lx,{directiveData:t,onUpdate:e=>m(t.id,e),onRemove:()=>{i((e=>e.filter((e=>e.id!==t.id))))},dragHandleProps:{draggable:!0,onDragStart:e=>_(e,t.id),onDragEnd:v,onDragOver:x,onDrop:e=>b(e,t.id)}},t.id)))})]})]})},px=g(zm()),fx=({yamlValue:t,onChange:e,isNoCodeView:r,onViewChange:n,constraints:i,setConstraints:o,directives:s,setDirectives:a,className:l="",disabled:u=!1,"aria-label":c="CND Layout Specification Interface"})=>{let[h,d]=(0,tv.useState)(null),[p,f]=(0,tv.useState)(null),g=(0,tv.useRef)(!1),m=(0,tv.useRef)(""),y=(0,tv.useCallback)((()=>({yaml:r?Yv(i,s):t,constraints:JSON.parse(JSON.stringify(i)),directives:JSON.parse(JSON.stringify(s))})),[r,t,i,s]);(0,tv.useCallback)((()=>{if(g.current)return;let t=y(),e=JSON.stringify(t);e!==m.current&&(d({yaml:m.current?JSON.parse(m.current).yaml:"",constraints:m.current?JSON.parse(m.current).constraints:[],directives:m.current?JSON.parse(m.current).directives:[]}),f(null),m.current=e)}),[y]);let _=(0,tv.useRef)(null);(0,tv.useEffect)((()=>g.current?(g.current=!1,void(m.current=JSON.stringify(y()))):(_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{let t=y(),e=JSON.stringify(t);if(m.current&&e!==m.current){let t=JSON.parse(m.current);d(t),f(null)}m.current=e}),500),()=>{_.current&&clearTimeout(_.current)})),[t,i,s,y]),(0,tv.useEffect)((()=>{m.current||(m.current=JSON.stringify(y()))}),[]);let v=(0,tv.useCallback)((()=>{!h||u||(g.current=!0,f(y()),e(h.yaml),o((()=>h.constraints)),a((()=>h.directives)),d(null))}),[h,u,y,e,o,a]),x=(0,tv.useCallback)((()=>{!p||u||(g.current=!0,d(y()),e(p.yaml),o((()=>p.constraints)),a((()=>p.directives)),f(null))}),[p,u,y,e,o,a]),b=(0,tv.useCallback)((r=>{if(!u){if(r.target.checked)try{let e=hx(t);o((()=>e.constraints)),a((()=>e.directives))}catch(t){console.warn("Failed to parse YAML when switching to Structured Builder:",t)}else{let t=Yv(i,s);e(t)}n(r.target.checked)}}),[u,n,e,i,s,t,o,a]),T=(0,tv.useCallback)((t=>{u||e(t.target.value)}),[u,e]),E=["cnd-layout-interface","container-fluid",u&&"cnd-layout-interface--disabled",l].filter(Boolean).join(" "),O=["cnd-layout-interface__toggle-label","small",!r&&"text-primary fw-semibold"].filter(Boolean).join(" "),S=["cnd-layout-interface__toggle-label","small",r&&"text-primary fw-semibold"].filter(Boolean).join(" ");return(0,px.jsxs)("section",{id:"cnd-layout-interface-container",className:E,"aria-label":c,children:[(0,px.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-3 pb-2 border-bottom",children:[(0,px.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[(0,px.jsx)("span",{className:O,children:"Code View"}),(0,px.jsxs)("label",{className:"cnd-layout-interface__toggle",htmlFor:"cnd-layout-toggle",children:[(0,px.jsx)("input",{id:"cnd-layout-toggle",type:"checkbox",checked:r,onChange:b,disabled:u,className:"cnd-layout-interface__toggle-input","aria-describedby":"cnd-layout-toggle-description",role:"switch"}),(0,px.jsx)("span",{className:"cnd-layout-interface__toggle-slider"})]}),(0,px.jsx)("span",{className:S,children:"Structured Builder"})]}),(0,px.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,px.jsx)("button",{type:"button",className:"cnd-layout-interface__undo-btn",onClick:v,disabled:u||!h,"aria-label":"Undo last change",title:"Undo",children:"↶"}),(0,px.jsx)("button",{type:"button",className:"cnd-layout-interface__redo-btn",onClick:x,disabled:u||!p,"aria-label":"Redo last change",title:"Redo",children:"↷"})]})]}),(0,px.jsx)("div",{id:"cnd-layout-toggle-description",className:"visually-hidden",children:"Toggle between Code View (text editor) and Structured Builder (low-code visual editor) for CND layout specification"}),(0,px.jsx)("div",{className:"cnd-layout-interface__content",children:r?(0,px.jsx)(dx,{yamlValue:t,constraints:i,setConstraints:o,directives:s,setDirectives:a}):(0,px.jsx)(Zv,{constraints:i,directives:s,yamlValue:t,handleTextareaChange:T,disabled:u})})]})},gx=g(zm()),mx=g(zm());typeof window<"u"&&Promise.resolve().then((()=>(Rm(),Em))).then((({WebColaCnDGraph:t})=>{Promise.all([Promise.resolve().then((()=>g(Vm()))),Promise.resolve().then((()=>g(Ym())))]).then((([e,r])=>{window.d3=e,window.cola=r,typeof customElements<"u"&&!customElements.get("webcola-cnd-graph")&&customElements.define("webcola-cnd-graph",t),Promise.resolve().then((()=>(Im(),Lm))).then((({StructuredInputGraph:t})=>{typeof customElements<"u"&&!customElements.get("structured-input-graph")&&customElements.define("structured-input-graph",t)})).catch(console.error)})).catch(console.error)})).catch(console.error);var yx=class{constructor(t={}){this.config={debug:!1,version:"1.0.0",...t}}init(){this.config.debug}getConfig(){return{...this.config}}updateConfig(t){this.config={...this.config,...t}}};return t.AlloyDataInstance=R_,t.AlloyGraph=Wm,t.AlloyInstance=Xm,t.CndCore=yx,t.DotDataInstance=class{constructor(t){this.eventListeners=new Map,this.graph=C_.default.read(t),this.graph.edges().forEach((t=>{let e=this.graph.edge(t);e&&e.label&&(this.graph.removeEdge(t),this.addEdge(t.v,t.w,e.label))}))}addEventListener(t,e){this.eventListeners.has(t)||this.eventListeners.set(t,new Set),this.eventListeners.get(t).add(e)}removeEventListener(t,e){let r=this.eventListeners.get(t);r&&r.delete(e)}emitEvent(t){let e=this.eventListeners.get(t.type);e&&e.forEach((e=>{try{e(t)}catch(t){console.error("Error in data instance event listener:",t)}}))}addEdge(t,e,r){let n=`${t}-${e}-${r}`;this.graph.setEdge(t,e,r,n)}reify(){return C_.default.write(this.graph)}getAtoms(){let t=[];return this.graph.nodes().forEach((e=>{let r=this.graph.node(e);r&&r.label&&t.push({id:e,type:r.type||"unknown",label:r.label})})),t}getAtomType(t){let e=this.graph.node(t);if(!e)throw new Error(`Atom with id ${t} not found`);let r=e.type||"unknown";return{id:r,types:[r],atoms:this.getAtoms().filter((t=>t.type===r)),isBuiltin:!1}}getTypes(){let t=this.getAtoms(),e={};return t.forEach((t=>{let r=t.type||"unknown";e[r]||(e[r]={id:r,types:[r],atoms:[],isBuiltin:!1}),e[r].atoms.push(t)})),Object.values(e)}applyProjections(t){return console.log("applyProjections is not implemented for DotDataInstance"),this}generateGraph(t,e){return this.graph.nodes().forEach((r=>{let n=this.graph.outEdges(r)||[],i=this.graph.inEdges(r)||[];if(0===n.length&&0===i.length){let n=this.getAtomType(r).isBuiltin;(t||n&&e)&&this.graph.removeNode(r)}})),this.graph}getRelations(){let t=new Map;this.graph.edges().forEach((e=>{let r=e.v,n=e.w,i=this.graph.edge(e)||"",o={atoms:[r,n],types:[this.getAtomType(r).id,this.getAtomType(n).id]};t.has(i)||t.set(i,{label:i,tuples:[],types:o.types}),t.get(i).tuples.push(o)}));let e=[];return t.forEach(((t,r)=>{e.push({id:r,name:r,types:t.types,tuples:t.tuples})})),e}addAtom(t){if(this.graph.hasNode(t.id))throw new Error(`Atom with id ${t.id} already exists`);this.graph.setNode(t.id,{type:t.type,label:t.label}),this.emitEvent({type:"atomAdded",data:{atom:t}})}addRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=`${t}:${e.atoms.join("-")}`;if(this.graph.hasEdge(r,n,i))throw new Error(`Relation tuple ${t} with atoms ${e.atoms.join(", ")} already exists`);this.addEdge(r,n,t),this.emitEvent({type:"relationTupleAdded",data:{relationId:t,tuple:e}})}removeRelationTuple(t,e){let r=e.atoms[0],n=e.atoms[e.atoms.length-1],i=`${t}:${e.atoms.join("-")}`;if(!this.graph.hasEdge(r,n,i))throw new Error(`Relation tuple ${t} with atoms ${e.atoms.join(", ")} does not exist`);this.graph.removeEdge(r,n,i),this.emitEvent({type:"relationTupleRemoved",data:{relationId:t,tuple:e}})}removeAtom(t){if(!this.graph.hasNode(t))throw new Error(`Atom with id ${t} does not exist`);this.graph.removeNode(t),this.emitEvent({type:"atomRemoved",data:{atomId:t}})}addFromDataInstance(t,e){throw new Error("Method not implemented. DotDataInstance does not support adding from another data instance.")}},t.Evaluators=u_,t.ForgeEvaluator=__,t.InstanceBuilder=({instance:t,onChange:e,disabled:r=!1,className:n=""})=>{let[i,o]=(0,U_.useState)({id:"",label:"",type:"Entity"}),s=$_(t,i.type.trim()||"Entity"),[a,l]=(0,U_.useState)({name:"",atomIds:["",""]}),[u,c]=(0,U_.useState)(""),h=t.getAtoms(),d=t.getRelations(),p=(0,U_.useCallback)((()=>{e&&e(t)}),[t,e]),f=(0,U_.useCallback)((e=>{if(e.preventDefault(),!i.label.trim())return void c("Atom label is required");let r=i.type.trim()||"Entity",n=i.id.trim()||$_(t,r);if(n)if(t.getAtoms().some((t=>t.id===n)))c("Atom ID already exists");else try{let e={id:n,label:i.label.trim(),type:r};t.addAtom(e),o({id:"",label:"",type:"Entity"}),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to add atom")}else c("Atom ID could not be generated")}),[i,t,p]),g=(0,U_.useCallback)((e=>{try{t.removeAtom(e),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to remove atom")}}),[t,p]),m=(0,U_.useCallback)((()=>{l((t=>({...t,atomIds:[...t.atomIds,""]})))}),[]),y=(0,U_.useCallback)((()=>{l((t=>({...t,atomIds:t.atomIds.length>2?t.atomIds.slice(0,-1):t.atomIds})))}),[]),_=(0,U_.useCallback)(((t,e)=>{l((r=>({...r,atomIds:r.atomIds.map(((r,n)=>n===t?e:r))})))}),[]),v=(0,U_.useCallback)((e=>{if(e.preventDefault(),!a.name.trim())return void c("Relation name is required");let r=a.atomIds.map((t=>t.trim())).filter((t=>""!==t));if(r.length<2)c("At least 2 atoms are required for a relation");else if(r.length===a.atomIds.length)try{let e={atoms:r,types:r.map((()=>"unknown"))};t.addRelationTuple(a.name.trim(),e),l({name:"",atomIds:["",""]}),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to add relation")}else c("All atom positions must be selected")}),[a,t,p]),x=(0,U_.useCallback)(((e,r)=>{try{t.removeRelationTuple(e,r),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to remove relation")}}),[t,p]),b=(0,U_.useCallback)((()=>{try{t.getAtoms().map((t=>t.id)).forEach((e=>t.removeAtom(e))),t.getRelations().map((t=>t.id)).forEach((e=>{let r=t.getRelations().find((t=>t.id===e));r&&r.tuples.forEach((r=>t.removeRelationTuple(e,r)))})),c(""),p()}catch(t){c(t instanceof Error?t.message:"Failed to clear instance")}}),[t,p]),[T,E]=(0,U_.useState)(null),O=(0,U_.useCallback)((()=>{if(console.log("Instance in handleReify:",t),console.log("typeof instance.reify:",typeof t.reify),"function"==typeof t.reify)try{let e=t.reify();E(e)}catch(t){E("Re-ify failed: "+(t instanceof Error?t.message:String(t)))}else E("Re-ify not supported on this instance.")}),[t]),S=(0,U_.useCallback)((t=>2===t.atoms.length?`${t.atoms[0]} → ${t.atoms[1]}`:`(${t.atoms.join(", ")})`),[]);return(0,F_.jsxs)("div",{className:`instance-builder ${n}`,children:[(0,F_.jsxs)("div",{className:"instance-builder__header",children:[(0,F_.jsx)("h2",{children:"Instance Builder"}),(0,F_.jsxs)("div",{className:"instance-builder__stats",children:[(0,F_.jsxs)("span",{children:[h.length," atoms"]}),(0,F_.jsxs)("span",{children:[d.reduce(((t,e)=>t+e.tuples.length),0)," relations"]})]})]}),u&&(0,F_.jsxs)("div",{className:"instance-builder__error",children:[u,(0,F_.jsx)("button",{type:"button",onClick:()=>c(""),"aria-label":"Clear error",children:"×"})]}),(0,F_.jsxs)("div",{className:"instance-builder__content",children:[(0,F_.jsxs)("section",{className:"instance-builder__section",children:[(0,F_.jsx)("h3",{children:"Atoms"}),(0,F_.jsxs)("form",{onSubmit:f,className:"instance-builder__form",children:[(0,F_.jsxs)("div",{className:"form-row",children:[(0,F_.jsx)("input",{type:"text",placeholder:`ID (suggested: ${s})`,value:i.id,onChange:t=>o((e=>({...e,id:t.target.value}))),disabled:r,"aria-label":"Atom ID"}),(0,F_.jsx)("input",{type:"text",placeholder:"Label",value:i.label,onChange:t=>o((e=>({...e,label:t.target.value}))),disabled:r,required:!0}),(0,F_.jsx)("input",{type:"text",placeholder:"Type",value:i.type,onChange:t=>o((e=>({...e,type:t.target.value}))),disabled:r}),(0,F_.jsx)("button",{type:"submit",disabled:r,children:"Add Atom"})]}),""===i.id&&(0,F_.jsxs)("div",{style:{fontSize:"0.85em",color:"#888",marginTop:2},children:["Suggested ID: ",(0,F_.jsx)("code",{children:s})]})]}),(0,F_.jsx)("div",{className:"instance-builder__list",children:0===h.length?(0,F_.jsx)("p",{className:"empty-state",children:"No atoms yet. Add one above."}):h.map((t=>(0,F_.jsxs)("div",{className:"list-item",children:[(0,F_.jsxs)("div",{className:"item-info",children:[(0,F_.jsx)("strong",{children:t.id}),(0,F_.jsx)("span",{className:"item-label",children:t.label}),(0,F_.jsx)("span",{className:"item-type",children:t.type})]}),(0,F_.jsx)("button",{type:"button",onClick:()=>g(t.id),disabled:r,className:"remove-button","aria-label":`Remove atom ${t.id}`,children:"Remove"})]},t.id)))})]}),(0,F_.jsxs)("section",{className:"instance-builder__section",children:[(0,F_.jsx)("h3",{children:"Relations (N-ary Support)"}),(0,F_.jsxs)("form",{onSubmit:v,className:"instance-builder__form",children:[(0,F_.jsx)("div",{className:"form-row",children:(0,F_.jsx)("input",{type:"text",placeholder:"Relation Name",value:a.name,onChange:t=>l((e=>({...e,name:t.target.value}))),disabled:r,required:!0})}),(0,F_.jsxs)("div",{className:"relation-atoms",children:[(0,F_.jsxs)("div",{style:{fontSize:"0.9em",color:"#666",marginBottom:8},children:["Atoms (arity: ",a.atomIds.length,"):"]}),a.atomIds.map(((t,e)=>(0,F_.jsxs)("div",{className:"atom-selector",children:[(0,F_.jsxs)("label",{style:{fontSize:"0.85em",color:"#666"},children:["Position ",e+1,":"]}),(0,F_.jsxs)("select",{value:t,onChange:t=>_(e,t.target.value),disabled:r,required:!0,children:[(0,F_.jsx)("option",{value:"",children:"Select Atom"}),h.map((t=>(0,F_.jsxs)("option",{value:t.id,children:[t.id," (",t.label,")"]},t.id)))]})]},e))),(0,F_.jsxs)("div",{className:"arity-controls",style:{marginTop:8},children:[(0,F_.jsx)("button",{type:"button",onClick:m,disabled:r,style:{marginRight:8},children:"+ Add Position"}),a.atomIds.length>2&&(0,F_.jsx)("button",{type:"button",onClick:y,disabled:r,children:"- Remove Position"})]})]}),(0,F_.jsx)("div",{className:"form-row",style:{marginTop:12},children:(0,F_.jsx)("button",{type:"submit",disabled:r||a.atomIds.some((t=>!t.trim())),children:"Add Relation"})})]}),(0,F_.jsx)("div",{className:"instance-builder__list",children:0===d.length?(0,F_.jsx)("p",{className:"empty-state",children:"No relations yet. Add one above."}):d.map((t=>(0,F_.jsxs)("div",{className:"relation-group",children:[(0,F_.jsx)("h4",{children:t.name}),t.tuples.map(((e,n)=>(0,F_.jsxs)("div",{className:"list-item",children:[(0,F_.jsxs)("div",{className:"item-info",children:[(0,F_.jsx)("span",{children:S(e)}),(0,F_.jsxs)("span",{className:"item-type",style:{fontSize:"0.8em",color:"#666"},children:["arity: ",e.atoms.length]})]}),(0,F_.jsx)("button",{type:"button",onClick:()=>x(t.id,e),disabled:r,className:"remove-button","aria-label":`Remove relation ${t.name} tuple`,children:"Remove"})]},n)))]},t.id)))})]}),(0,F_.jsxs)("section",{className:"instance-builder__actions",children:[(0,F_.jsx)("button",{type:"button",onClick:b,disabled:r,className:"clear-button",children:"Clear All"}),(0,F_.jsx)("button",{type:"button",onClick:O,disabled:r,className:"reify-button",style:{marginLeft:8},children:"Re-ify"})]}),null!==T&&(0,F_.jsxs)("section",{className:"instance-builder__reify-result",style:{marginTop:12,background:"#f8f8f8",border:"1px solid #eee",borderRadius:4,padding:10},children:[(0,F_.jsx)("strong",{children:"Re-ify Result:"}),(0,F_.jsx)("pre",{style:{whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},children:"string"==typeof T?T:JSON.stringify(T,null,2)})]})]})]})},t.Layout=N_,t.ProjectionControls=({projectionData:t,onProjectionChange:e,className:r="",disabled:n=!1})=>t&&0!==t.length?(0,mx.jsxs)("div",{className:`projection-controls ${r}`,role:"region","aria-label":"Projection Controls",children:[(0,mx.jsxs)("div",{className:"projection-controls__header",children:[(0,mx.jsx)("h3",{className:"projection-controls__title",children:"Projections"}),(0,mx.jsx)("p",{className:"projection-controls__description",children:"Select which atom to project for each type"})]}),(0,mx.jsx)("div",{className:"projection-controls__list",children:t.map((t=>(0,mx.jsxs)("div",{className:"projection-controls__item",children:[(0,mx.jsx)("label",{htmlFor:`projection-${t.type}`,className:"projection-controls__label",children:t.type}),(0,mx.jsx)("select",{id:`projection-${t.type}`,className:"projection-controls__select",value:t.projectedAtom,onChange:r=>e(t.type,r.target.value),disabled:n||0===t.atoms.length,"aria-label":`Select atom to project for ${t.type}`,children:0===t.atoms.length?(0,mx.jsx)("option",{value:"",children:"No atoms available"}):t.atoms.map((t=>(0,mx.jsx)("option",{value:t,children:t},t)))})]},t.type)))})]}):null,t.PyretDataInstance=D_,t.PyretExpressionParser=Q_,t.PyretReplInterface=({initialInstance:t,onChange:e,onCndSpecExtracted:r,externalEvaluator:n,...i})=>{let[o,s]=(0,X_.useState)((()=>t||new D_({dict:{},brands:{}}))),a=(0,X_.useMemo)((()=>{let t=new Q_(n),e=new class{constructor(t){this.evaluator=t||null}setEvaluator(t){this.evaluator=t}canHandle(t){let e=t.trim();if(!e.includes("=")||e.startsWith("remove ")||["help","info","status","list","clear","reify"].includes(e.toLowerCase()))return!1;if(e.includes(".")&&e.includes("=")&&e.indexOf(".")t.id===n))?{success:!1,message:`ID '${n}' is already in use. Use a different ID or remove the existing atom first.`}:this.isPrimitiveExpression(i)?this.handlePrimitiveAssignment(n,i,e):this.evaluator?await this.handleComplexAssignment(n,i,e):{success:!1,message:"No external Pyret evaluator available. Cannot evaluate complex expressions.\n\nTo enable this feature, ensure window.__internalRepl is available."}}catch(t){return{success:!1,message:`Failed to assign '${n}': ${t instanceof Error?t.message:"Unknown error"}`}}}isValidId(t){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(t)&&!["add","remove","help","info","list","clear","reify"].includes(t.toLowerCase())}looksLikePyretExpression(t){let e=t.trim();return!!this.isPrimitiveExpression(e)||e.includes("(")&&e.includes(")")||e.includes("[")&&e.includes("]")||e.includes("table:")||e.includes("row:")}isPrimitiveExpression(t){let e=t.trim();return/^\d+(\.\d+)?$/.test(e)||/^['"`].*['"`]$/.test(e)||"true"===e||"false"===e}handlePrimitiveAssignment(t,e,r){let n,i,o=e.trim();if(/^\d+(\.\d+)?$/.test(o))n=o.includes(".")?parseFloat(o):parseInt(o),i="Number";else if(/^['"`](.*)['"`]$/.test(o))n=o.slice(1,-1),i="String";else{if("true"!==o&&"false"!==o)return{success:!1,message:`Cannot parse primitive value: ${e}`};n="true"===o,i="Boolean"}let s={id:t,label:String(n),type:i};return r.addAtom(s),{success:!0,message:`[${t}] Assigned ${t} = ${n} (${i})`,action:"add"}}async handleComplexAssignment(t,e,r){if(!this.evaluator)throw new Error("External evaluator not available");try{let n=await this.evaluator.run(e);if(!this.evaluator.runtime.isSuccessResult(n))return{success:!1,message:`Failed to evaluate expression '${e}': ${this.formatError(n.exn)}`};let i=await D_.fromExpression(e,!1,this.evaluator);if(0===i.getAtoms().length)return{success:!1,message:`Expression '${e}' did not produce any data structures`};let o=i.getAtoms(),s=o[0],a={id:t,label:s.label,type:s.type};return r.addAtom(a),(o.length>1||i.getRelations().length>0)&&await this.mergeInstanceWithIdMapping(i,r,s.id,t),{success:!0,message:`[${t}] Assigned ${t} = ${e}\nAdded ${o.length} atoms and ${i.getRelations().reduce(((t,e)=>t+e.tuples.length),0)} relation tuples`,action:"add"}}catch(t){return{success:!1,message:`Failed to evaluate and assign '${e}': ${t instanceof Error?t.message:"Unknown error"}`}}}async mergeInstanceWithIdMapping(t,e,r,n){let i=new Map;i.set(r,n);for(let n of t.getAtoms()){if(n.id===r)continue;let t=n.id,o=new Set(e.getAtoms().map((t=>t.id))),s=1;for(;o.has(t);)t=`${n.id}_${s}`,s++;i.set(n.id,t);let a={id:t,label:n.label,type:n.type};e.addAtom(a)}for(let r of t.getRelations())for(let t of r.tuples){let n=t.atoms.map((t=>i.get(t)||t));e.addRelationTuple(r.name,{atoms:n})}}formatError(t){return String(t&&"object"==typeof t&&"message"in t?t.message:t)}getHelp(){let t=["ID Allocation Commands (Pyret-style):"," id = expression - Assign specific ID to expression result","","Primitive Examples:",' x = 1 - Assign ID "x" to number 1',' name = "Alice" - Assign ID "name" to string "Alice"',' flag = true - Assign ID "flag" to boolean true'];return this.evaluator?t.push("","Complex Examples (with external evaluator):",' node = Black(1, 2) - Assign ID "node" to constructor result',' mylist = [list: 1, 2, 3] - Assign ID "mylist" to list',' tree = node(1, empty, empty) - Assign ID "tree" to tree structure'):t.push("","Note: Complex expressions require external Pyret evaluator"," Only primitive values (numbers, strings, booleans) are supported"),t}}(n);return[{id:"unified",title:n?"Full Pyret REPL":"Enhanced REPL",description:n?"Supports ID allocation (x=1), expression evaluation, and enhanced remove commands":"Supports ID allocation (x=1), enhanced remove commands, and basic operations",parsers:[new B_,new G_,e,new q_,t,new z_].filter((t=>!(t instanceof Q_&&!n))).sort(((t,e)=>e.getPriority()-t.getPriority())),placeholder:'x = 1\nalice = "Alice"\nremove alice.friend\nlist-ids'}]}),[n]);return(0,X_.useEffect)((()=>{t&&t!==o&&s(t)}),[t]),(0,J_.jsx)(W_,{instance:o,onChange:t=>{t instanceof D_&&(s(t),e?.(t))},onCndSpecExtracted:r,terminals:a,...i})},t.RacketGDataInstance=class{constructor(t){this.atoms=t.atoms.map((t=>({id:String(t.id),label:t.label,type:t.type})));let e=new Map;this.atoms.forEach((t=>{e.has(t.type)||e.set(t.type,[]),e.get(t.type).push(t)})),this.types=Array.from(e.entries()).map((([t,e])=>({id:t,types:[t],atoms:e,isBuiltin:!1})));let r=new Map;t.relations.forEach((t=>{let e=String(t.src),n=String(t.dst),i=this.atoms.find((t=>t.id===e)),o=this.atoms.find((t=>t.id===n));if(!i||!o)throw new Error(`Relation references non-existent atoms: ${t.src} or ${t.dst}`);r.has(t.label)||r.set(t.label,{label:t.label,tuples:[],types:[i.type,o.type]}),r.get(t.label).tuples.push(function(t){return{atoms:t.map((t=>t.id)),types:t.map((t=>t.type))}}([i,o]))})),this.relations=Array.from(r.entries()).map((([t,{tuples:e,types:r}])=>({id:t,name:t,types:r,tuples:e})))}getAtomType(t){let e=this.atoms.find((e=>e.id===t));if(!e)throw new Error(`Atom with ID ${t} not found`);return this.types.find((t=>t.id===e.type))||{id:e.type,types:[e.type],atoms:[e],isBuiltin:!1}}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}applyProjections(t){return this}generateGraph(t,e){let r=new L_.Graph({directed:!0,multigraph:!0,compound:!0});return this.atoms.forEach((t=>{let e=t.id;r.setNode(e,{label:t.label})})),this.relations.forEach((t=>{t.tuples.forEach((e=>{let n=function(t,e){return`${t.id}:${e.atoms.join("->")}`}(t,e),i=e.atoms,o=i.length-1,s=i[0],a=i[o];if(s&&a){let e=i.slice(1,-1).join(","),o=e.length>0?`[${e}]`:"",l=t.name+o,u=s,c=a;r.setEdge(u,c,l,n)}}))})),r.nodes().forEach((n=>{let i=r.outEdges(n)||[],o=r.inEdges(n)||[];if(0===i.length&&0===o.length){let i=this.getAtomType(n).isBuiltin;(t||i&&e)&&r.removeNode(n)}})),r}},t.ReplInterface=W_,t.ReplWithVisualization=({instance:t,onChange:e,initialCndSpec:r="",showLayoutInterface:n=!0,style:i,replHeight:o="300px",visualizationHeight:s="400px"})=>{let[a,l]=(0,Z_.useState)(t),[u,c]=(0,Z_.useState)(r);(0,Z_.useEffect)((()=>{l(t)}),[t]);let h={display:"flex",flexDirection:"column",height:"100%",backgroundColor:"#f8f9fa",border:"1px solid #dee2e6",borderRadius:"8px",overflow:"hidden",...i},d={padding:"16px",borderBottom:"1px solid #dee2e6"},p={margin:"0 0 12px 0",fontSize:"14px",fontWeight:"bold",color:"#495057"};return(0,gx.jsxs)("div",{style:h,children:[(0,gx.jsxs)("div",{style:{...d,height:o,minHeight:"250px"},children:[(0,gx.jsx)("h3",{style:p,children:"Command Interface"}),(0,gx.jsx)("div",{style:{height:`calc(${o} - 40px)`},children:(0,gx.jsx)(W_,{instance:a,onChange:t=>{l(t),e?.(t)}})})]}),n&&(0,gx.jsxs)("div",{style:{...d,height:"200px",minHeight:"150px"},children:[(0,gx.jsx)("h3",{style:p,children:"Layout Specification"}),(0,gx.jsx)("div",{style:{height:"calc(200px - 40px)"},children:(0,gx.jsx)(fx,{instance:a,value:u,onChange:t=>{c(t)}})})]}),(0,gx.jsxs)("div",{style:{...d,height:s,minHeight:"300px",borderBottom:"none",flex:1},children:[(0,gx.jsx)("h3",{style:p,children:"Visualization"}),(0,gx.jsx)("div",{style:{height:`calc(${s} - 40px)`,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#6c757d"},children:(0,gx.jsxs)("div",{style:{textAlign:"center"},children:[(0,gx.jsx)("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"📊"}),(0,gx.jsx)("div",{children:"Visualization area ready for webcola-cnd-graph integration"}),(0,gx.jsxs)("div",{style:{marginTop:"8px",fontSize:"12px"},children:["Current data: ",a.getAtoms().length," atoms, ",a.getRelations().length," relations"]}),u&&(0,gx.jsxs)("div",{style:{marginTop:"8px",fontSize:"12px",color:"#28a745"},children:["CND spec: ",u.length," characters"]})]})})]})]})},t.SQLEvaluator=S_,t.SelectorSynthesisError=K_,t.TlaDataInstance=M_,t.Translators=w_,t.WrappedForgeEvaluator=v_,t.createAlignmentConstraint=function(t,e){return`align ${e}(${t})`},t.createCndCore=t=>new yx(t),t.createColorDirective=function(t,e){return`color ${e}(${t})`},t.createEmptyAlloyDataInstance=function(){return new R_({types:{univ:{_:"type",id:"univ",types:[],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}},Int:{_:"type",id:"Int",types:["Int","univ"],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}},"seq/Int":{_:"type",id:"seq/Int",types:["seq/Int","univ"],atoms:[],meta:{builtin:!0,abstract:!1,enum:!1,one:!1,private:!1}}},relations:{},skolems:{}})},t.createOrientationConstraint=function(t,e){return e.map((e=>`${e}(${t})`)).join("\n")},t.createTlaDataInstance=function(t){return new M_(t)},t.generateAlloySchema=function(t,e={}){let{includeBuiltInTypes:r=!1,includeTypeHierarchy:n=!0,includeArityHints:i=!1}=e,o=t.getTypes(),s=t.getRelations(),a=r?o:o.filter((t=>!t.isBuiltin)),l=new Map(o.map((t=>[t.id,t]))),u=new Set(a.map((t=>t.id))),c=t=>{let e=t.id.indexOf("<:");if(e<=0)return;let r=t.id.slice(0,e),n=`${r}<:${t.name}`;return t.id===n?r:void 0},h=new Map,d=[];for(let t of s){if(0===t.types.length){d.push(t);continue}let e=c(t)??t.types[0],r=(e?l.get(e):void 0)?.isBuiltin??!1,n=e===t.types[0];void 0!==e&&n&&!r&&u.has(e)?(h.has(e)||h.set(e,[]),h.get(e).push(t)):d.push(t)}let p=[];for(let t of a){let e=t.types.length>1?t.types.slice(1):[],r=n&&e.length>0?` extends ${e[0]}`:"";p.push(`sig ${t.id}${r} {`);let o=h.get(t.id)||[];for(let t of o){if(0===t.types.length)continue;let e="";i&&(e="set ");let r=t.types.slice(1),n=r.length>0?r.join(" -> "):"univ";p.push(` ${t.name}: ${e}${n}`)}p.push("}"),p.push("")}if(d.length>0){p.length>0&&p.push(""),p.push("// Top-level relations");for(let t of d){let e="";i&&(e="set ");let r=t.types.length>0?t.types.join(" -> "):"univ -> univ";p.push(`rel ${t.name}: ${e}${r}`)}}return p.join("\n").trim()},t.generateSQLSchema=function(t,e={}){let{includeBuiltInTypes:r=!1,includeTypeHierarchy:n=!0}=e,i=t.getTypes(),o=t.getRelations(),s=r?i:i.filter((t=>!t.isBuiltin)),a=[];for(let t of s){if(a.push(`CREATE TABLE ${t.id} (`),a.push(" id VARCHAR PRIMARY KEY"),n&&t.types.length>1){let e=t.types[1];a.push(` -- extends ${e}`)}a.push(");"),a.push("")}for(let t of o)if(0!==t.types.length&&(r||!t.types.every((t=>{let e=i.find((e=>e.id===t));return e&&e.isBuiltin})))){a.push(`CREATE TABLE ${t.name} (`);for(let e=0;et.id===r))?` REFERENCES ${r}(id)`:"";a.push(` ${n}_${r} VARCHAR${i}${e!t.isBuiltin)),s=[];s.push("Types:");for(let t of o){let e=t.atoms.length,r=t.isBuiltin?" (built-in)":"",n=t.types.length>1?` extends ${t.types.slice(1).join(", ")}`:"";s.push(`- ${t.id}${n} (${e} atom${1!==e?"s":""})${r}`)}s.push(""),s.push("Relations:");for(let t of i){if(!r&&t.types.every((t=>{let e=n.find((e=>e.id===t));return e&&e.isBuiltin})))continue;let e=t.tuples.length,i=t.types.length>0?t.types.join(" -> "):"untyped";s.push(`- ${t.name}: ${i} (${e} tuple${1!==e?"s":""})`)}return s.join("\n")},t.isSynthesisSupported=function(e){return e instanceof t.SGraphQueryEvaluator},t.isTlaDataInstance=function(t){return t instanceof M_},t.parseLayoutSpec=Sa,t.setupLayout=A_,t.synthesizeAtomSelector=function(t,e=3){let r=t.map((t=>({atoms:new Set(t.atoms),datum:t.dataInstance})));return(0,j_.synthesizeSelector)(r,e)},t.synthesizeAtomSelectorWithExplanation=function(t,e=3){let r=t.map((t=>({atoms:new Set(t.atoms),datum:t.dataInstance})));return(0,j_.synthesizeSelectorWithWhy)(r,e)},t.synthesizeBinarySelector=function(t,e=3){let r=t.map((t=>({pairs:new Set(t.pairs),datum:t.dataInstance})));return(0,j_.synthesizeBinaryRelation)(r,e)},t.synthesizeBinarySelectorWithExplanation=function(t,e=3){let r=t.map((t=>({pairs:new Set(t.pairs),datum:t.dataInstance})));return(0,j_.synthesizeBinaryRelationWithWhy)(r,e)},t.version="1.0.0",t}({}); \ No newline at end of file diff --git a/forge/sterling/build/version.json b/forge/sterling/build/version.json index ffe0f2c2..ee4b9b93 100644 --- a/forge/sterling/build/version.json +++ b/forge/sterling/build/version.json @@ -1,7 +1,7 @@ { "name": "Sterling Layout", - "version": "2.3.0", + "version": "2.3.1", "build": "forge", - "timestamp": "2026-02-05T00:08:47Z", + "timestamp": "2026-02-06T18:03:28Z", "tag": "" } diff --git a/forge/sterling/update-sterling.sh b/forge/sterling/update-sterling.sh index a9d7a767..a65756c7 100755 --- a/forge/sterling/update-sterling.sh +++ b/forge/sterling/update-sterling.sh @@ -2,7 +2,7 @@ set -euo pipefail DEFAULT_REPO="sidprasad/sterling-ts" -DEFAULT_TAG="v2.3.0" +DEFAULT_TAG="latest" DEFAULT_ASSET="sterling-forge.zip" usage() { @@ -16,6 +16,23 @@ Environment overrides: USAGE } +get_latest_tag() { + local repo_name="$1" + local api_url="https://api.github.com/repos/${repo_name}/releases/latest" + local response="" + + if command -v curl >/dev/null 2>&1; then + response="$(curl -fsSL "$api_url")" + elif command -v wget >/dev/null 2>&1; then + response="$(wget -qO- "$api_url")" + else + echo "Missing required tool: curl or wget" >&2 + exit 1 + fi + + echo "$response" | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1 +} + repo="${STERLING_REPO:-$DEFAULT_REPO}" tag="${STERLING_TAG:-$DEFAULT_TAG}" asset="${STERLING_ASSET:-$DEFAULT_ASSET}" @@ -64,11 +81,20 @@ while [[ $# -gt 0 ]]; do done if [[ -z "$url" ]]; then - if [[ -z "$tag" || -z "$repo" || -z "$asset" ]]; then - echo "Missing tag/repo/asset values." >&2 + if [[ -z "$repo" || -z "$asset" ]]; then + echo "Missing repo/asset values." >&2 usage exit 1 fi + + if [[ -z "$tag" || "$tag" == "latest" ]]; then + tag="$(get_latest_tag "$repo")" + if [[ -z "$tag" ]]; then + echo "Unable to resolve latest release tag." >&2 + exit 1 + fi + fi + url="https://github.com/${repo}/releases/download/${tag}/${asset}" fi