mdast2docx 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3ZZBJC3M.mjs +1 -0
- package/dist/chunk-7LR5HC5O.mjs +4 -0
- package/dist/chunk-7W4N3GRD.mjs +75 -0
- package/dist/{chunk-KPLOM3EF.mjs → chunk-GM6UUFDK.mjs} +2 -2
- package/dist/chunk-XIRSNIMN.mjs +1 -0
- package/dist/chunk-Z5DPYROV.mjs +31 -0
- package/dist/chunk-ZKNVKZAF.mjs +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/multipart-parser-WKN2UV32.mjs +2 -0
- package/dist/plugins/image.d.ts +19 -11
- package/dist/plugins/image.js +1 -1
- package/dist/plugins/image.mjs +1 -1
- package/dist/plugins/index.js +75 -1
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/list.js +1 -1
- package/dist/plugins/list.mjs +1 -1
- package/dist/plugins/math.d.ts +6 -0
- package/dist/plugins/math.js +75 -1
- package/dist/plugins/math.mjs +1 -1
- package/dist/plugins/node-image.d.ts +27 -0
- package/dist/plugins/node-image.js +35 -0
- package/dist/plugins/node-image.mjs +1 -0
- package/dist/plugins/node.d.ts +1 -0
- package/dist/plugins/node.js +35 -0
- package/dist/plugins/node.mjs +1 -0
- package/dist/plugins/table.mjs +1 -1
- package/dist/section.js +1 -1
- package/dist/section.mjs +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +6 -2
- package/dist/chunk-RFHTB4AU.mjs +0 -1
- package/dist/chunk-XY2A2A66.mjs +0 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import{a as Ko}from"./chunk-ZKNVKZAF.mjs";import{b as bt,c as qt}from"./chunk-3ZZBJC3M.mjs";var Yn=bt((Mu,oa)=>{"use strict";oa.exports=function(f){return f!=null&&f.constructor!=null&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f)}});var da=bt((Eu,ha)=>{"use strict";var yn=Object.prototype.hasOwnProperty,ma=Object.prototype.toString,fa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,la=function(f){return typeof Array.isArray=="function"?Array.isArray(f):ma.call(f)==="[object Array]"},ca=function(f){if(!f||ma.call(f)!=="[object Object]")return!1;var m=yn.call(f,"constructor"),b=f.constructor&&f.constructor.prototype&&yn.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!b)return!1;var r;for(r in f);return typeof r=="undefined"||yn.call(f,r)},ga=function(f,m){fa&&m.name==="__proto__"?fa(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},pa=function(f,m){if(m==="__proto__")if(yn.call(f,m)){if(ua)return ua(f,m).value}else return;return f[m]};ha.exports=function i(){var f,m,b,r,a,e,y=arguments[0],$=1,S=arguments.length,F=!1;for(typeof y=="boolean"&&(F=y,y=arguments[1]||{},$=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});$<S;++$)if(f=arguments[$],f!=null)for(m in f)b=pa(y,m),r=pa(f,m),y!==r&&(F&&r&&(ca(r)||(a=la(r)))?(a?(a=!1,e=b&&la(b)?b:[]):e=b&&ca(b)?b:{},ga(y,{name:m,newValue:i(F,e,r)})):typeof r!="undefined"&&ga(y,{name:m,newValue:r}));return y}});var zt=bt((bn,Ja)=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default={END_WORD:"$",END_WORD_REPLACER:"9a219a89-91cd-42e2-abd5-eb113af08ca8",PERMS_MIN_LEN:2};Ja.exports=bn.default});var gi=bt((An,Ka)=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.default=hf;var pf=zt(),tn=mf(pf);function mf(i){return i&&i.__esModule?i:{default:i}}function hf(i,f,m,b){var r=f===tn.default.END_WORD,a=m===b.length-1;return r&&!a?(i[tn.default.END_WORD]=1,i[tn.default.END_WORD_REPLACER]={},i=i[tn.default.END_WORD_REPLACER]):(i[f]=i[f]||{},i=i[f]),a&&(i[tn.default.END_WORD]=1),i}Ka.exports=An.default});var Qa=bt((xn,Za)=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};xn.default=bf;var vf=gi(),yf=$f(vf);function $f(i){return i&&i.__esModule?i:{default:i}}function bf(i){if(!Array.isArray(i))throw"Expected parameter Array, received "+(typeof i=="undefined"?"undefined":df(i));var f=i.reduce(function(m,b){return b.toLowerCase().split("").reduce(yf.default,m),m},{});return f}Za.exports=xn.default});var pi=bt((kn,es)=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.default={objectCopy:function(f){return typeof f=="undefined"?{}:JSON.parse(JSON.stringify(f))},stringify:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return typeof f=="undefined"?"":JSON.stringify(f,null,m)}};es.exports=kn.default});var ts=bt((wn,rs)=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=kf;var Af=pi(),mc=xf(Af);function xf(i){return i&&i.__esModule?i:{default:i}}function kf(i,f){var m=f.toLowerCase().split(""),b=m.every(function(r,a){return i[r]?i=i[r]:!1});return{prefixFound:b,prefixNode:i}}rs.exports=wn.default});var as=bt((Cn,is)=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=ns;var wf=zt(),mi=Cf(wf);function Cf(i){return i&&i.__esModule?i:{default:i}}var Mf=function(f,m){for(var b=0;b<m.length&&!(f<m[b]);)b+=1;return m.splice(b,0,f),m};function ns(i,f,m){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],r=f;for(var a in i){var e=a;a===mi.default.END_WORD&&typeof i[a]=="number"?(m?Mf(r,b):b.push(r),r=""):a===mi.default.END_WORD_REPLACER&&(e=mi.default.END_WORD),ns(i[a],f+e,m,b)}return b}is.exports=Cn.default});var fs=bt((Mn,os)=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=ss;var Ef=zt(),Pf=If(Ef);function If(i){return i&&i.__esModule?i:{default:i}}function ss(i,f){var m=f,b=Object.keys(i),r=b[Math.floor(Math.random()*b.length)];return r===Pf.default.END_WORD?m:ss(i[r],f+r)}os.exports=Mn.default});var ls=bt((En,us)=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});var _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};En.default=Ff;var Sf=zt(),Rf=Of(Sf);function Of(i){return i&&i.__esModule?i:{default:i}}function Ff(i,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{type:"anagram"};if(typeof i!="string")throw"Permutations expects string letters, received "+(typeof i=="undefined"?"undefined":_f(i));var b=[],r=function a(e,y){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",S=e.length===0,F=b.indexOf($)!==-1,K=y[Rf.default.END_WORD]===1;S&&K&&!F&&b.push($);for(var ne=0,d=e.length;ne<d;ne++){var p=e[ne];if(m.type==="sub-anagram"&&K&&b.indexOf($)===-1&&b.push($),y[p]){var _=e.substring(0,ne)+e.substring(ne+1,d);a(_,y[p],$+p,b)}}return b.sort()};return r(i,f)}us.exports=En.default});var di=bt((In,gs)=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});var Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};In.default=function(i){if(!Array.isArray(i))throw"Expected parameter Array, received "+(typeof i=="undefined"?"undefined":Et(i));var f=(0,Bf.default)([].concat(Hf(i)));return{tree:function(){return f},dump:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Xf.default.stringify(f,b)},addWord:function(b){if(typeof b!="string"||b==="")throw"Expected parameter string, received "+(typeof b=="undefined"?"undefined":Et(b));var r=function(){return Lf.default.apply(void 0,arguments)},a=b.toLowerCase().split("");return a.reduce(r,f),this},removeWord:function(b){if(typeof b!="string"||b==="")throw"Expected parameter string, received "+(typeof b=="undefined"?"undefined":Et(b));var r=(0,nn.default)(f,b),a=r.prefixFound,e=r.prefixNode;return a&&delete e[hi.default.END_WORD],this},isPrefix:function(b){if(typeof b!="string")throw"Expected string prefix, received "+(typeof b=="undefined"?"undefined":Et(b));var r=(0,nn.default)(f,b),a=r.prefixFound;return a},getPrefix:function(b){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof b!="string")throw"Expected string prefix, received "+(typeof b=="undefined"?"undefined":Et(b));if(typeof r!="boolean")throw"Expected sort parameter as boolean, received "+(typeof r=="undefined"?"undefined":Et(r));if(!this.isPrefix(b))return[];var a=b.length?(0,nn.default)(f,b).prefixNode:f;return(0,Gf.default)(a,b,r)},getRandomWordWithPrefix:function(b){if(typeof b!="string")throw"Expected string prefix, received "+(typeof b=="undefined"?"undefined":Et(b));if(!this.isPrefix(b))return"";var r=(0,nn.default)(f,b),a=r.prefixNode;return(0,Wf.default)(a,b)},countPrefix:function(b){var r=this.getPrefix(b);return r.length},getWords:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.getPrefix("",b)},hasWord:function(b){if(typeof b!="string")throw"Expected string word, received "+(typeof b=="undefined"?"undefined":Et(b));var r=(0,nn.default)(f,b),a=r.prefixFound,e=r.prefixNode;return a?e[hi.default.END_WORD]===1:!1},getAnagrams:function(b){if(typeof b!="string")throw"Anagrams expected string letters, received "+(typeof b=="undefined"?"undefined":Et(b));if(b.length<Pn)throw"getAnagrams expects at least "+Pn+" letters";return(0,cs.default)(b,f,{type:"anagram"})},getSubAnagrams:function(b){if(typeof b!="string")throw"Expected string letters, received "+(typeof b=="undefined"?"undefined":Et(b));if(b.length<Pn)throw"getSubAnagrams expects at least "+Pn+" letters";return(0,cs.default)(b,f,{type:"sub-anagram"})}}};var Df=Qa(),Bf=Lt(Df),Tf=gi(),Lf=Lt(Tf),Nf=ts(),nn=Lt(Nf),jf=as(),Gf=Lt(jf),qf=fs(),Wf=Lt(qf),zf=pi(),Xf=Lt(zf),Vf=zt(),hi=Lt(Vf),Uf=ls(),cs=Lt(Uf);function Lt(i){return i&&i.__esModule?i:{default:i}}function Hf(i){if(Array.isArray(i)){for(var f=0,m=Array(i.length);f<i.length;f++)m[f]=i[f];return m}else return Array.from(i)}var Pn=hi.default.PERMS_MIN_LEN;gs.exports=In.default});function Hn(i){if(i)throw i}var Ea=qt(Yn(),1),ai=qt(da(),1);function Yt(i){if(typeof i!="object"||i===null)return!1;let f=Object.getPrototypeOf(i);return(f===null||f===Object.prototype||Object.getPrototypeOf(f)===null)&&!(Symbol.toStringTag in i)&&!(Symbol.iterator in i)}function Jn(){let i=[],f={run:m,use:b};return f;function m(...r){let a=-1,e=r.pop();if(typeof e!="function")throw new TypeError("Expected function as last argument, not "+e);y(null,...r);function y($,...S){let F=i[++a],K=-1;if($){e($);return}for(;++K<r.length;)(S[K]===null||S[K]===void 0)&&(S[K]=r[K]);r=S,F?va(F,y)(...S):e(null,...S)}}function b(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return i.push(r),f}}function va(i,f){let m;return b;function b(...e){let y=i.length>e.length,$;y&&e.push(r);try{$=i.apply(this,e)}catch(S){let F=S;if(y&&m)throw F;return r(F)}y||($&&$.then&&typeof $.then=="function"?$.then(a,r):$ instanceof Error?r($):a($))}function r(e,...y){m||(m=!0,f(e,...y))}function a(e){r(null,e)}}var ka=qt(Yn(),1);function Zn(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?ya(i.position):"start"in i||"end"in i?ya(i):"line"in i||"column"in i?Kn(i):""}function Kn(i){return $a(i&&i.line)+":"+$a(i&&i.column)}function ya(i){return Kn(i&&i.start)+"-"+Kn(i&&i.end)}function $a(i){return i&&typeof i=="number"?i:1}var et=class extends Error{constructor(f,m,b){let r=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof m=="string"&&(b=m,m=void 0),typeof b=="string"){let e=b.indexOf(":");e===-1?r[1]=b:(r[0]=b.slice(0,e),r[1]=b.slice(e+1))}m&&("type"in m||"position"in m?m.position&&(a=m.position):"start"in m||"end"in m?a=m:("line"in m||"column"in m)&&(a.start=m)),this.name=Zn(m)||"1:1",this.message=typeof f=="object"?f.message:f,this.stack="",typeof f=="object"&&f.stack&&(this.stack=f.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}};et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.fatal=null;et.prototype.column=null;et.prototype.line=null;et.prototype.source=null;et.prototype.ruleId=null;et.prototype.position=null;import{default as At}from"path";import{default as ba}from"process";import{fileURLToPath as Aa}from"url";function $n(i){return i!==null&&typeof i=="object"&&i.href&&i.origin}var Qn=["history","path","basename","stem","extname","dirname"],Jt=class{constructor(f){let m;f?typeof f=="string"||Zo(f)?m={value:f}:$n(f)?m={path:f}:m=f:m={},this.data={},this.messages=[],this.history=[],this.cwd=ba.cwd(),this.value,this.stored,this.result,this.map;let b=-1;for(;++b<Qn.length;){let a=Qn[b];a in m&&m[a]!==void 0&&m[a]!==null&&(this[a]=a==="history"?[...m[a]]:m[a])}let r;for(r in m)Qn.includes(r)||(this[r]=m[r])}get path(){return this.history[this.history.length-1]}set path(f){$n(f)&&(f=Aa(f)),ri(f,"path"),this.path!==f&&this.history.push(f)}get dirname(){return typeof this.path=="string"?At.dirname(this.path):void 0}set dirname(f){xa(this.basename,"dirname"),this.path=At.join(f||"",this.basename)}get basename(){return typeof this.path=="string"?At.basename(this.path):void 0}set basename(f){ri(f,"basename"),ei(f,"basename"),this.path=At.join(this.dirname||"",f)}get extname(){return typeof this.path=="string"?At.extname(this.path):void 0}set extname(f){if(ei(f,"extname"),xa(this.dirname,"extname"),f){if(f.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(f.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=At.join(this.dirname,this.stem+(f||""))}get stem(){return typeof this.path=="string"?At.basename(this.path,this.extname):void 0}set stem(f){ri(f,"stem"),ei(f,"stem"),this.path=At.join(this.dirname||"",f+(this.extname||""))}toString(f){return(this.value||"").toString(f||void 0)}message(f,m,b){let r=new et(f,m,b);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(f,m,b){let r=this.message(f,m,b);return r.fatal=null,r}fail(f,m,b){let r=this.message(f,m,b);throw r.fatal=!0,r}};function ei(i,f){if(i&&i.includes(At.sep))throw new Error("`"+f+"` cannot be a path: did not expect `"+At.sep+"`")}function ri(i,f){if(!i)throw new Error("`"+f+"` cannot be empty")}function xa(i,f){if(!i)throw new Error("Setting `"+f+"` requires `path` to be set too")}function Zo(i){return(0,ka.default)(i)}var Zt=Ia().freeze(),Pa={}.hasOwnProperty;function Ia(){let i=Jn(),f=[],m={},b,r=-1;return a.data=e,a.Parser=void 0,a.Compiler=void 0,a.freeze=y,a.attachers=f,a.use=$,a.parse=S,a.stringify=F,a.run=K,a.runSync=ne,a.process=d,a.processSync=p,a;function a(){let _=Ia(),se=-1;for(;++se<f.length;)_.use(...f[se]);return _.data((0,ai.default)(!0,{},m)),_}function e(_,se){return typeof _=="string"?arguments.length===2?(ii("data",b),m[_]=se,a):Pa.call(m,_)&&m[_]||null:_?(ii("data",b),m=_,a):m}function y(){if(b)return a;for(;++r<f.length;){let[_,...se]=f[r];if(se[0]===!1)continue;se[0]===!0&&(se[0]=void 0);let Se=_.call(a,...se);typeof Se=="function"&&i.use(Se)}return b=!0,r=Number.POSITIVE_INFINITY,a}function $(_,...se){let Se;if(ii("use",b),_!=null)if(typeof _=="function")qe(_,...se);else if(typeof _=="object")Array.isArray(_)?ze(_):ie(_);else throw new TypeError("Expected usable value, not `"+_+"`");return Se&&(m.settings=Object.assign(m.settings||{},Se)),a;function Ue(_e){if(typeof _e=="function")qe(_e);else if(typeof _e=="object")if(Array.isArray(_e)){let[Te,...er]=_e;qe(Te,...er)}else ie(_e);else throw new TypeError("Expected usable value, not `"+_e+"`")}function ie(_e){ze(_e.plugins),_e.settings&&(Se=Object.assign(Se||{},_e.settings))}function ze(_e){let Te=-1;if(_e!=null)if(Array.isArray(_e))for(;++Te<_e.length;){let er=_e[Te];Ue(er)}else throw new TypeError("Expected a list of plugins, not `"+_e+"`")}function qe(_e,Te){let er=-1,mr;for(;++er<f.length;)if(f[er][0]===_e){mr=f[er];break}mr?(Yt(mr[1])&&Yt(Te)&&(Te=(0,ai.default)(!0,mr[1],Te)),mr[1]=Te):f.push([...arguments])}}function S(_){a.freeze();let se=Kt(_),Se=a.Parser;return ti("parse",Se),wa(Se,"parse")?new Se(String(se),se).parse():Se(String(se),se)}function F(_,se){a.freeze();let Se=Kt(se),Ue=a.Compiler;return ni("stringify",Ue),Ca(_),wa(Ue,"compile")?new Ue(_,Se).compile():Ue(_,Se)}function K(_,se,Se){if(Ca(_),a.freeze(),!Se&&typeof se=="function"&&(Se=se,se=void 0),!Se)return new Promise(Ue);Ue(null,Se);function Ue(ie,ze){i.run(_,Kt(se),qe);function qe(_e,Te,er){Te=Te||_,_e?ze(_e):ie?ie(Te):Se(null,Te,er)}}}function ne(_,se){let Se,Ue;return a.run(_,se,ie),Ma("runSync","run",Ue),Se;function ie(ze,qe){Hn(ze),Se=qe,Ue=!0}}function d(_,se){if(a.freeze(),ti("process",a.Parser),ni("process",a.Compiler),!se)return new Promise(Se);Se(null,se);function Se(Ue,ie){let ze=Kt(_);a.run(a.parse(ze),ze,(_e,Te,er)=>{if(_e||!Te||!er)qe(_e);else{let mr=a.stringify(Te,er);mr==null||(rf(mr)?er.value=mr:er.result=mr),qe(_e,er)}});function qe(_e,Te){_e||!Te?ie(_e):Ue?Ue(Te):se(null,Te)}}}function p(_){let se;a.freeze(),ti("processSync",a.Parser),ni("processSync",a.Compiler);let Se=Kt(_);return a.process(Se,Ue),Ma("processSync","process",se),Se;function Ue(ie){se=!0,Hn(ie)}}}function wa(i,f){return typeof i=="function"&&i.prototype&&(Qo(i.prototype)||f in i.prototype)}function Qo(i){let f;for(f in i)if(Pa.call(i,f))return!0;return!1}function ti(i,f){if(typeof f!="function")throw new TypeError("Cannot `"+i+"` without `Parser`")}function ni(i,f){if(typeof f!="function")throw new TypeError("Cannot `"+i+"` without `Compiler`")}function ii(i,f){if(f)throw new Error("Cannot call `"+i+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ca(i){if(!Yt(i)||typeof i.type!="string")throw new TypeError("Expected node, got `"+i+"`")}function Ma(i,f,m){if(!m)throw new Error("`"+i+"` finished async. Use `"+f+"` instead")}function Kt(i){return ef(i)?i:new Jt(i)}function ef(i){return!!(i&&typeof i=="object"&&"message"in i&&"messages"in i)}function rf(i){return typeof i=="string"||(0,Ea.default)(i)}var _a={author:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},address:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},curraddr:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},email:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},title:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}},urladdr:{signature:"o m",renderInfo:{breakAround:!0,inParMode:!0}}},Sa={};var Ra={cref:{signature:"s m"},Cref:{signature:"s m"},crefrange:{signature:"s m m"},Crefrange:{signature:"s m m"},cpageref:{signature:"s m"},Cpageref:{signature:"s m"},ref:{signature:"m"},pageref:{signature:"m"},namecref:{signature:"m"},nameCref:{signature:"m"},lcnamecref:{signature:"m"},namecrefs:{signature:"m"},nameCrefs:{signature:"m"},lcnamecrefs:{signature:"m"},labelcref:{signature:"m"},labelcpageref:{signature:"m"},crefalias:{signature:"m m"},crefname:{signature:"m m m"},crefdefaultlabelformat:{signature:"m"},crefrangeconjunction:{signature:"m"}},Oa={};var Fa={"*":{openMark:"",closeMark:""},"{":{openMark:"{",closeMark:"}"},"[":{openMark:"[",closeMark:"]"},"(":{openMark:"(",closeMark:")"},"<":{openMark:"<",closeMark:">"}},tf=new Set(Object.values(Fa).map(i=>i.closeMark).filter(i=>i));function nf(i){let f=[];for(let m of i.split("")){if(tf.has(m))continue;let b=Fa[m];if(b==null)throw new Error(`Unknown open/close mark type "${m}"`);f.push(b)}return f}function jr(i,f){var r,a;if(i==null)return{type:"argument",content:[],openMark:"",closeMark:""};if(typeof i=="string"&&(i=af(i)),!Array.isArray(i)&&i.type==="argument")return i;let m=(r=f==null?void 0:f.openMark)!=null?r:"{",b=(a=f==null?void 0:f.closeMark)!=null?a:"}";if(f!=null&&f.braces){let e=nf(f.braces);e[0]&&(m=e[0].openMark,b=e[0].closeMark)}return Array.isArray(i)||(i=[i]),{type:"argument",content:i,openMark:m,closeMark:b}}function af(i){return typeof i=="string"?{type:"string",content:i}:i}var Qt=Symbol("linebreak"),Wt="\\";function nt(i){if(typeof i=="string")return[i];if(Array.isArray(i))return[].concat(...i.map(b=>nt(b)));let f,m;switch(i.type){case"root":return nt(i.content);case"argument":return[i.openMark,...nt(i.content),i.closeMark];case"comment":let b=i.suffixParbreak?"":Qt,r="";return i.sameline&&i.leadingWhitespace&&(r=" "),i.sameline?[r,"%",...nt(i.content),b]:[Qt,"%",...nt(i.content),b];case"environment":case"mathenv":case"verbatim":let a=nt(i.env),e=[Wt+"begin{",...a,"}"],y=[Wt+"end{",...a,"}"];return f=i.args==null?[]:nt(i.args),[...e,...f,...nt(i.content),...y];case"displaymath":return[Wt+"[",...nt(i.content),Wt+"]"];case"group":return["{",...nt(i.content),"}"];case"inlinemath":return["$",...nt(i.content),"$"];case"macro":return f=i.args==null?[]:nt(i.args),m=i.escapeToken==null?Wt:i.escapeToken,[m,...nt(i.content),...f];case"parbreak":return[Qt,Qt];case"string":return[i.content];case"verb":return[Wt,i.env,i.escape,...nt(i.content),i.escape];case"whitespace":return[" "];default:return console.warn("Cannot find render for node ",i,`(of type ${typeof i})`),[""+i]}}function lt(i,f){let m=f!=null?f.asArray:!1,b=nt(i);return m?b:b.map(r=>r===Qt?`
|
|
2
|
+
`:r).join("")}function sf(i){let f=Array.isArray(i)?i.length>0?typeof i[0]=="string"?Object.fromEntries(i.map(m=>{if(typeof m!="string")throw new Error("Wrong branch of map function");return[m,{}]})):Object.fromEntries(i.map(m=>{if(typeof m=="string")throw new Error("Wrong branch of map function");return m.escapeToken!=null?[m.content,{escapeToken:m.escapeToken}]:[m.content,{}]})):{}:i;return function(b){if(b==null||b.type!=="macro")return!1;let r=f[b.content];return r?typeof r=="object"&&"escapeToken"in r?r.escapeToken==null||r.escapeToken===b.escapeToken:!0:!1}}function of(i){let f=Array.isArray(i)?Object.fromEntries(i.map(m=>[m,{}])):i;return function(b){if(!xe.anyEnvironment(b))return!1;let r=lt(b.env);return!!f[r]}}var xe={macro(i,f){return i==null?!1:i.type==="macro"&&(f==null||i.content===f)},anyMacro(i){return xe.macro(i)},environment(i,f){return i==null?!1:(i.type==="environment"||i.type==="mathenv")&&(f==null||lt(i.env)===f)},anyEnvironment(i){return xe.environment(i)},comment(i){return i==null?!1:i.type==="comment"},parbreak(i){return i==null?!1:i.type==="parbreak"},whitespace(i){return i==null?!1:i.type==="whitespace"},whitespaceLike(i){return i==null?!1:i.type==="whitespace"||i.type==="whitespace"&&i.leadingWhitespace===!0},string(i,f){return i==null?!1:i.type==="string"&&(f==null||i.content===f)},anyString(i){return xe.string(i)},group(i){return i==null?!1:i.type==="group"},argument(i){return i==null?!1:i.type==="argument"},blankArgument(i){return xe.argument(i)?i.openMark===""&&i.closeMark===""&&i.content.length===0:!1},math(i){return i==null?!1:i.type==="displaymath"||i.type==="inlinemath"},createMacroMatcher:sf,createEnvironmentMatcher:of},{anyEnvironment:gl,anyMacro:pl,anyString:ml,argument:hl,blankArgument:dl,comment:vl,environment:yl,group:$l,macro:bl,math:Al,parbreak:xl,string:kl,whitespace:wl}=xe;function ff(i){let f={enter:[],leave:[]};if(Array.isArray(i))return f;if(xe.math(i))return{enter:["content"],leave:[]};let m=i._renderInfo||{};if(m.inMathMode==null)return f;if(xe.macro(i)){if(m.inMathMode===!0)return{enter:["args"],leave:[]};if(m.inMathMode===!1)return{enter:[],leave:["args"]}}return xe.environment(i)?m.inMathMode===!0?{enter:["content"],leave:[]}:{enter:[],leave:["content"]}:f}var oi=Symbol("continue"),fi=Symbol("skip"),en=Symbol("exit"),uf={inMathMode:!1,hasMathModeAncestor:!1};function ft(i,f,m){let{startingContext:b=uf,test:r=()=>!0,includeArrays:a=!1}=m||{},e,y;typeof f=="function"?e=f:f&&typeof f=="object"&&(e=f.enter,y=f.leave),$(i,{key:void 0,index:void 0,parents:[],containingArray:void 0,context:{...b}});function $(S,{key:F,index:K,parents:ne,context:d,containingArray:p}){let _=a?r(S,{key:F,index:K,parents:ne,context:d,containingArray:p}):!Array.isArray(S)&&r(S,{key:F,index:K,parents:ne,context:d,containingArray:p}),se=e&&_?si(e(S,{key:F,index:K,parents:ne,context:d,containingArray:p})):[oi];if(se[0]===en)return se;if(se[0]===fi)return y&&_?si(y(S,{key:F,index:K,parents:ne,context:d,containingArray:p})):se;if(Array.isArray(S))for(let Se=0;Se>-1&&Se<S.length;Se++){let Ue=S[Se],ie=$(Ue,{key:F,index:Se,parents:ne,context:d,containingArray:S});if(ie[0]===en)return ie;typeof ie[1]=="number"&&(Se=ie[1]-1)}else{let Se=["content","args"];switch(S.type){case"macro":Se=["args"];break;case"comment":case"string":case"verb":case"verbatim":Se=[];break}let Ue=ff(S);for(let ie of Se){let ze=S[ie],qe=[S].concat(ne);if(ze==null)continue;let _e={...d};Ue.enter.includes(ie)?(_e.inMathMode=!0,_e.hasMathModeAncestor=!0):Ue.leave.includes(ie)&&(_e.inMathMode=!1);let Te=$(ze,{key:ie,index:void 0,parents:qe,context:_e,containingArray:void 0});if(Te[0]===en)return Te}}return y&&_?si(y(S,{key:F,index:K,parents:ne,context:d,containingArray:p})):se}}function si(i){return i==null?[oi]:Array.isArray(i)?i:typeof i=="number"?[oi,i]:[i]}function Gt(i,f){return f!=null&&(i._renderInfo={...i._renderInfo||{},...f}),i}function Mt(i){if(!Array.isArray(i))return console.warn("Trying to trim a non-array ast",i),i;let{trimmedStart:f}=ui(i),{trimmedEnd:m}=rn(i);return{trimmedStart:f,trimmedEnd:m}}function ui(i){let{start:f}=Da(i);i.splice(0,f);for(let m of i){if(!xe.comment(m))break;(m.leadingWhitespace||m.sameline)&&(m.leadingWhitespace=!1),f>0&&m.sameline&&(m.sameline=!1)}return{trimmedStart:f}}function rn(i){let{end:f}=Da(i);i.splice(i.length-f,f);for(let m=i.length-1;m>=0;m--){let b=i[m];if(!xe.comment(b))break;delete b.suffixParbreak,xe.comment(b)&&b.leadingWhitespace&&!b.sameline&&(b.leadingWhitespace=!1)}return{trimmedEnd:f}}function Da(i){let f=0,m=0;for(let b of i)if(xe.whitespace(b)||xe.parbreak(b))f++;else break;if(f===i.length)return{start:f,end:0};for(let b=i.length-1;b>=0;b--){let r=i[b];if(xe.whitespace(r)||xe.parbreak(r))m++;else break}return{start:f,end:m}}var Ba=function(){return f=>{ft(f,m=>{if(!(xe.math(m)||xe.anyEnvironment(m)))return;let b=m.content[0];if(xe.comment(b)&&b.sameline){b.suffixParbreak=!1,rn(m.content);let{trimmedStart:r}=ui(m.content.slice(1));m.content.splice(1,r)}else Mt(m.content)})}},Ta=function(){return f=>{Mt(f.content)}};function La(i,f=()=>!1,m){if(!Array.isArray(i))throw new Error(`Can only split an Array, not ${i}`);let{onlySplitOnFirstOccurrence:b=!1}=m||{},r=[];for(let y=0;y<i.length&&!(f(i[y])&&(r.push(y),b));y++);if(r.length===0)return{segments:[i],separators:[]};let a=r.map(y=>i[y]),e=r.map((y,$)=>{let S=$===0?0:r[$-1]+1;return i.slice(S,y)});return e.push(i.slice(r[r.length-1]+1,i.length)),{segments:e,separators:a}}function Na(i,f){if(typeof f=="string"&&(f=[f]),!Array.isArray(f))throw new Error("Type coercion failed");let m=xe.createMacroMatcher(f),{segments:b,separators:r}=La(i,m);return{segments:b,macros:r}}function ja(i,f){for(let m=i.length-1;m>=0;m--){let b=i[m];if(!(xe.whitespace(b)||xe.comment(b)||f&&xe.parbreak(b)))return m}}function rt(i,f="item"){let{segments:m,macros:b}=Na(i,f);for(let e=0;e<m.length;e++){let y=m[e];e===0?rn(y):Mt(y),y.length>0&&e>0&&y.unshift({type:"whitespace"})}let r=new WeakSet,a=b.flatMap((e,y)=>{var $;let S=m[y+1],F=lf(S);return e.args=e.args||[],e.args.push(jr(S,{openMark:"",closeMark:""})),Gt(e,{inParMode:!0}),(y>0||(($=m[0])==null?void 0:$.length)>0)&&r.add(e),[e,...F]});a=a.flatMap(e=>r.has(e)?[{type:"parbreak"},e]:e),a.unshift(...m[0]);for(let e=0;e<a.length-1;e++){let y=a[e],$=a[e+1];if(xe.parbreak($)&&(xe.comment(y)&&(y.suffixParbreak=!0),xe.macro(y)&&y.args&&y.args[y.args.length-1].closeMark==="")){let S=y.args[y.args.length-1].content,F=S[S.length-1];xe.comment(F)&&(F.suffixParbreak=!0)}}return a}function lf(i){let f=ja(i,!0);return f===i.length-1||f==null&&i.length===0?[]:(f==null&&(f=-1),i.splice(f+1))}var Ga={answerline:{signature:"o"},fillin:{signature:"o o"},fullwidth:{signature:"m"},fillwidthlines:{signature:"m"},fillwidthdottedlines:{signature:"m"},fillwidthgrid:{signature:"m"},makeemptybox:{signature:"m"},CorrectChoiceEmphasis:{signature:"m",renderInfo:{breakAround:!0}},SolutionEmphasis:{signature:"m",renderInfo:{breakAround:!0}},uplevel:{signature:"m",renderInfo:{breakAround:!0}},checkboxchar:{signature:"m",renderInfo:{breakAround:!0}},checkedchar:{signature:"m",renderInfo:{breakAround:!0}},pointname:{signature:"m",renderInfo:{breakAround:!0}},marginpointname:{signature:"m",renderInfo:{breakAround:!0}},extrawidth:{signature:"m",renderInfo:{breakAround:!0}},pointformat:{signature:"m",renderInfo:{breakAround:!0}},bonuspointformat:{signature:"m",renderInfo:{breakAround:!0}},totalformat:{signature:"m",renderInfo:{breakAround:!0}},qformat:{signature:"m",renderInfo:{breakAround:!0}},titledquestion:{signature:"m o",renderInfo:{breakAround:!0}},pointpoints:{signature:"m m",renderInfo:{breakAround:!0}},bonuspointpoints:{signature:"m m",renderInfo:{breakAround:!0}}},qa={choices:{signature:"o",processContent:i=>rt(i,"choice")},checkboxes:{signature:"o",processContent:i=>rt(i,"choice")},oneparchoices:{signature:"o",processContent:i=>rt(i,"choice")},oneparcheckboxes:{signature:"o",processContent:i=>rt(i,"choice")},parts:{signature:"o",processContent:i=>rt(i,"part")},subparts:{signature:"o",processContent:i=>rt(i,"subpart")},subsubparts:{signature:"o",processContent:i=>rt(i,"subsubpart")},questions:{signature:"o",processContent:i=>rt(i,"question")}};var Wa={geometry:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}}},za={};var Xa={hypersetup:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},href:{signature:"o m m"},url:{signature:"m"},nolinkurl:{signature:"m"},hyperbaseurl:{signature:"m"},hyperimage:{signature:"m m"},hyperdef:{signature:"m m m"},hyperref:{signature:"o m"},hyperlink:{signature:"m m"},hypertarget:{signature:"m m"},autoref:{signature:"s m"},pageref:{signature:"s m"},autopageref:{signature:"s m"},pdfstringdef:{signature:"m m"},pdfbookmark:{signature:"o m m"},currentpdfbookmark:{signature:"m m"},subpdfbookmark:{signature:"m m"},belowpdfbookmark:{signature:"m m"},texorpdfstring:{signature:"m m"},thispdfpagelabel:{signature:"m"},hypercalcbp:{signature:"m"}},Va={};var Ua={"\\":{signature:"!s !o",renderInfo:{breakAfter:!0}},_:{signature:"m",escapeToken:""},"^":{signature:"m",escapeToken:""},newcommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred","name","numArgs","default","body"]}},renewcommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred","name","numArgs","default","body"]}},providecommand:{signature:"s +m o +o +m",renderInfo:{breakAround:!0}},newcounter:{signature:"m o",renderInfo:{breakAround:!0}},usecounter:{signature:"m"},setcounter:{signature:"m m",renderInfo:{breakAround:!0}},addtocounter:{signature:"m m",renderInfo:{breakAround:!0}},stepcounter:{signature:"m",renderInfo:{breakAround:!0}},refstepcounter:{signature:"m",renderInfo:{breakAround:!0}},newlength:{signature:"m",renderInfo:{breakAround:!0}},addtolength:{signature:"m m",renderInfo:{breakAround:!0}},settodepth:{signature:"m m",renderInfo:{breakAround:!0}},settoheight:{signature:"m m",renderInfo:{breakAround:!0}},settowidth:{signature:"m m",renderInfo:{breakAround:!0}},stretch:{signature:"m"},hspace:{signature:"s m"},vspace:{signature:"s m",renderInfo:{breakAround:!0}},vfill:{renderInfo:{breakAround:!0}},indent:{renderInfo:{breakAround:!0}},phantom:{signature:"m"},vphantom:{signature:"m"},hphantom:{signature:"m"},noindent:{renderInfo:{breakAround:!0}},smallskip:{renderInfo:{breakAround:!0}},medskip:{renderInfo:{breakAround:!0}},bigskip:{renderInfo:{breakAround:!0}},smallbreak:{renderInfo:{breakAround:!0}},medbreak:{renderInfo:{breakAround:!0}},bigbreak:{renderInfo:{breakAround:!0}},newline:{renderInfo:{breakAround:!0}},linebreak:{signature:"o",renderInfo:{breakAround:!0}},nolinebreak:{signature:"o",renderInfo:{breakAround:!0}},clearpage:{renderInfo:{breakAround:!0}},cleardoublepage:{renderInfo:{breakAround:!0}},newpage:{renderInfo:{breakAround:!0}},enlargethispage:{signature:"s",renderInfo:{breakAround:!0}},pagebreak:{signature:"o",renderInfo:{breakAround:!0}},nopagebreak:{signature:"o",renderInfo:{breakAround:!0}},newsavebox:{signature:"m",renderInfo:{breakAround:!0}},sbox:{signature:"m m",renderInfo:{breakAround:!0}},savebox:{signature:"m o o m",renderInfo:{breakAround:!0}},mbox:{signature:"m"},makebox:{signature:"d() o o m",renderInfo:{breakAround:!0}},fbox:{signature:"m"},framebox:{signature:"o o m",renderInfo:{breakAround:!0}},frame:{signature:"m",renderInfo:{breakAround:!0}},parbox:{signature:"o o o m m",renderInfo:{breakAround:!0}},raisebox:{signature:"m o o m"},marginpar:{signature:"o m",renderInfo:{breakAround:!0}},colorbox:{signature:"o m m",renderInfo:{breakAround:!0}},fcolorbox:{signature:"o m m",renderInfo:{breakAround:!0}},rotatebox:{signature:"o m m"},scalebox:{signature:"m o m"},reflectbox:{signature:"m"},resizebox:{signature:"s m m m"},newenvironment:{signature:"s m o o m m",renderInfo:{breakAround:!0}},renewenvironment:{signature:"s m o o m m",renderInfo:{breakAround:!0}},newtheorem:{signature:"s m o m o",renderInfo:{breakAround:!0}},newfont:{signature:"m m",renderInfo:{breakAround:!0}},alph:{signature:"m"},Alph:{signature:"m"},arabic:{signature:"m"},roman:{signature:"m"},Roman:{signature:"m"},fnsymbol:{signature:"m"},documentclass:{signature:"o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},usepackage:{signature:"o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},item:{signature:"o",renderInfo:{hangingIndent:!0,namedArguments:["label"]}},value:{signature:"m"},centering:{renderInfo:{breakAround:!0}},input:{signature:"m",renderInfo:{breakAround:!0}},include:{signature:"m",renderInfo:{breakAround:!0}},includeonly:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},discretionary:{signature:"m m m"},hyphenation:{signature:"m"},footnote:{signature:"o m",renderInfo:{inParMode:!0}},footnotemark:{signature:"o"},footnotetext:{signature:"o m",renderInfo:{inParMode:!0}},caption:{signature:"o m",renderInfo:{inParMode:!0,breakAround:!0}},sqrt:{signature:"o m",renderInfo:{inMathMode:!0}},frac:{signature:"m m",renderInfo:{inMathMode:!0}},stackrel:{signature:"m m"},ensuremath:{signature:"m",renderInfo:{inMathMode:!0}},abstract:{signature:"m",renderInfo:{breakAround:!0,inParMode:!0}},maketitle:{renderInfo:{breakAround:!0}},doublespacing:{renderInfo:{breakAround:!0}},singlespacing:{renderInfo:{breakAround:!0}},date:{signature:"o m",renderInfo:{breakAround:!0}},thanks:{signature:"m",renderInfo:{breakAround:!0,inParMode:!0}},pagenumbering:{signature:"m",renderInfo:{breakAround:!0}},pagestyle:{signature:"m",renderInfo:{breakAround:!0}},thispagestyle:{signature:"m",renderInfo:{breakAround:!0}},definecolor:{signature:"m m m",renderInfo:{breakAround:!0}},pagecolor:{signature:"o m",renderInfo:{breakAround:!0}},nopagecolor:{renderInfo:{breakAround:!0}},multicolumn:{signature:"m m m"},includegraphics:{signature:"s o o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},rule:{signature:"o m m"},part:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},chapter:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},section:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subsection:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subsubsection:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},paragraph:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},subparagraph:{signature:"s o m",renderInfo:{breakAround:!0,inParMode:!0,namedArguments:["starred","tocTitle","title"]}},appendix:{renderInfo:{breakAround:!0,inParMode:!0}},frontmatter:{renderInfo:{breakAround:!0,inParMode:!0}},mainmatter:{renderInfo:{breakAround:!0,inParMode:!0}},backmatter:{renderInfo:{breakAround:!0,inParMode:!0}},bibitem:{signature:"o m",renderInfo:{hangingIndent:!0}},cite:{signature:"o m"},textrm:{signature:"m",renderInfo:{inParMode:!0}},textit:{signature:"m",renderInfo:{inParMode:!0}},textmd:{signature:"m",renderInfo:{inParMode:!0}},textbf:{signature:"m",renderInfo:{inParMode:!0}},textup:{signature:"m",renderInfo:{inParMode:!0}},textsl:{signature:"m",renderInfo:{inParMode:!0}},textsf:{signature:"m",renderInfo:{inParMode:!0}},textsc:{signature:"m",renderInfo:{inParMode:!0}},texttt:{signature:"m",renderInfo:{inParMode:!0}},underline:{signature:"m",renderInfo:{inParMode:!0}},emph:{signature:"m",renderInfo:{inParMode:!0}},textnormal:{signature:"m",renderInfo:{inParMode:!0}},uppercase:{signature:"m",renderInfo:{inParMode:!0}},mathbf:{signature:"m"},mathsf:{signature:"m"},mathtt:{signature:"m"},mathit:{signature:"m"},mathnormal:{signature:"m"},mathcal:{signature:"m"},mathrm:{signature:"m"},setlength:{signature:"m m",renderInfo:{breakAround:!0}},ref:{signature:"s m"},label:{signature:"o m"},printbibliography:{renderInfo:{breakAround:!0}},addtocontents:{signature:"m m",renderInfo:{breakAround:!0}},addcontentsline:{signature:"m m m",renderInfo:{breakAround:!0}},contentsline:{signature:"m m m",renderInfo:{breakAround:!0}},bibliography:{signature:"m",renderInfo:{breakAround:!0}},bibliographystyle:{signature:"m",renderInfo:{breakAround:!0}}},Ha={document:{processContent:i=>(Mt(i),i)},array:{signature:"o m",renderInfo:{alignContent:!0}},description:{signature:"o",processContent:rt},enumerate:{signature:"o",processContent:rt,renderInfo:{pgfkeysArgs:!0}},itemize:{signature:"o",processContent:rt},trivlist:{signature:"o",processContent:rt},list:{signature:"m m",processContent:rt},figure:{signature:"o"},"figure*":{signature:"o"},filecontents:{signature:"o m"},"filecontents*":{signature:"o m"},minipage:{signature:"o o o m"},picture:{signature:"r() d()"},tabbing:{renderInfo:{alignContent:!0}},table:{signature:"o"},tabular:{signature:"o m",renderInfo:{alignContent:!0}},"tabular*":{signature:"m o m",renderInfo:{alignContent:!0}},thebibliography:{signature:"m",processContent:i=>rt(i,"bibitem")},math:{renderInfo:{inMathMode:!0}}};var cf=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
3
|
+
--> `+F+`
|
|
4
|
+
`+ne+` |
|
|
5
|
+
`+S.line+" | "+d+`
|
|
6
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
7
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={document:Xi,math:Bo},S=Xi,F="%",K=".",ne="verb*",d="verb",p="[",_="]",se="lstinline",Se="mintinline",Ue="mint",ie="minted",ze="verbatim*",qe="verbatim",_e="filecontents*",Te="filecontents",er="comment",mr="lstlisting",Mr="(",Sr=")",wr="begin",ge="end",Cr="equation*",ir="equation",$e="align*",sr="align",dr="alignat*",Rr="alignat",ur="gather*",pe="gather",Ce="multline*",L="multline",Er="flalign*",br="flalign",Ar="split",Ze="math",Fr="displaymath",Gr="\\",zr="{",Lr="}",qr="$",vr="&",Xr="\r",Nr=`
|
|
8
|
+
`,V=`\r
|
|
9
|
+
`,ae="#",ce="^",Ge="_",or="\0",ee=/^[^ \t\n\r]/,Dr=/^[ \t]/,Pr=/^[a-zA-Z]/,z=/^[0-9]/,j=/^[.,;:\-*\/()!?=+<>[\]`'"~]/,D=Br("document"),cr=Br("math"),Y=Br("token"),Re=Oo(),Je=Br("parbreak"),Be=Br("math token"),oe=Br("nonchar token"),Wr=Ke("%",!1),gr=Br("whitespace"),Yr=Br("number"),yr=Ke(".",!1),E=Br("special macro"),C=Ke("verb*",!1),R=Ke("verb",!1),H=Ke("[",!1),Q=Ke("]",!1),Oe=Ut([" "," ",`
|
|
10
|
+
`,"\r"],!0,!1),rr=Br("verbatim listings"),Xe=Ke("lstinline",!1),Qe=Br("verbatim minted"),tr=Ke("mintinline",!1),fr=Ke("mint",!1),Ye=Br("verbatim minted environment"),pr=Ke("minted",!1),B=Br("verbatim environment"),Z=Ke("verbatim*",!1),ke=Ke("verbatim",!1),je=Ke("filecontents*",!1),de=Ke("filecontents",!1),hr=Ke("comment",!1),He=Ke("lstlisting",!1),A=Br("macro"),q=Br("group"),G=Br("environment"),De=Br("math environment"),We=Ke("(",!1),we=Ke(")",!1),Ir=Ke("begin",!1),x=Ke("end",!1),s=Ke("equation*",!1),N=Ke("equation",!1),Le=Ke("align*",!1),lr=Ke("align",!1),te=Ke("alignat*",!1),Zr=Ke("alignat",!1),Vr=Ke("gather*",!1),dt=Ke("gather",!1),It=Ke("multline*",!1),Nt=Ke("multline",!1),_r=Ke("flalign*",!1),_t=Ke("flalign",!1),vt=Ke("split",!1),Me=Ke("math",!1),yt=Ke("displaymath",!1),xt=Br("escape"),it=Ke("\\",!1),tt=Ke("{",!1),l=Ke("}",!1),I=Ke("$",!1),O=Ke("&",!1),ve=Br("newline"),le=Ke("\r",!1),ye=Ke(`
|
|
11
|
+
`,!1),v=Ke(`\r
|
|
12
|
+
`,!1),T=Ke("#",!1),re=Ke("^",!1),me=Ke("_",!1),Fe=Ke("\0",!1),$r=Ut([" "," "],!1,!1),Or=Br("letter"),Hr=Ut([["a","z"],["A","Z"]],!1,!1),fn=Br("digit"),On=Ut([["0","9"]],!1,!1),Fn=Br("punctuation"),St=Ut([".",",",";",":","-","*","/","(",")","!","?","=","+","<",">","[","]","`","'",'"',"~"],!1,!1),Dn=Br("full comment"),Bn=Br("comment"),un=function(n){return nr("root",{content:n.flatMap(o=>o)})},Vt=function(n){return n},ln=function(n){return nr("inlinemath",{content:n.flatMap(o=>o)})},Rt=function(n){return nr("string",{content:n})},Tn=function(n){return nr("string",{content:n})},Ot=function(){return nr("parbreak")},cn=function(n){return n},gn=function(n){return n},Ft=function(){return nr("macro",{content:"^",escapeToken:""})},jt=function(){return nr("macro",{content:"_",escapeToken:""})},g=function(n){return nr("string",{content:n})},M=function(){return nr("whitespace")},W=function(n,o){return n.join("")+"."+o.join("")},J=function(n){return"."+n.join("")},Ae=function(n){return n.join("")+"."},Ie=function(n){return nr("string",{content:n})},xr=function(n,o,h){return h==o},Qr=function(n,o,h){return h},Dt=function(n,o,h,c){return c==o},Bt=function(n,o,h){return nr("verb",{env:n,escape:o,content:h.join("")})},Ci=function(n){return n},Ks=function(n){return nr("displaymath",{content:n.flatMap(o=>o)})},Mi=function(n){return n},Zs=function(n){return nr("inlinemath",{content:n.flatMap(o=>o)})},Ei=function(n){return n},Qs=function(n){return nr("displaymath",{content:n.flatMap(o=>o)})},Pi=function(n){return n.type==="string"&&n.content==="]"},Ii=function(n){return n},eo=function(n){return[nr("string",{content:"["}),...n,nr("string",{content:"]"})]},_i=function(n){return n},ro=function(n){return nr("group",{content:nr("string",{content:n.join("")})})},Si=function(n,o){return o==n},Ri=function(n,o){return o},to=function(n,o,h){return h==n},no=function(n,o){return[nr("string",{content:n}),nr("string",{content:o.join("")}),nr("string",{content:n})]},io=function(n,o,h){return[nr("macro",{content:n}),...o||[],...[].concat(h)]},ao=function(n,o,h,c){return[nr("macro",{content:n}),...o||[],h,...[].concat(c)]},Oi=function(n,o,h,c){return vn({content:[n]},c)},so=function(n,o,h,c){let w=[...o||[],h,{type:"string",content:c}];return nr("environment",{env:n,content:w})},Fi=function(n,o){return vn({content:[n]},o)},Di=function(n,o){return o},oo=function(n,o){return nr("verbatim",{env:n,content:o})},fo=function(n){return n.join("")},uo=function(n){return n},lo=function(n){return nr("macro",{content:n})},Bi=function(n){return n},co=function(n){return nr("group",{content:n.flatMap(o=>o)})},go=function(n){return Ro().slice(1,-1)},Ti=function(n,o,h){return vn(n,h)},Li=function(n,o,h){return h},po=function(n,o,h){return h=h.flatMap(c=>c),nr("environment",{env:n,content:o?[o,...h]:h})},Ni=function(n,o,h){return vn({content:[n]},h)},ji=function(n,o,h){return h},mo=function(n,o,h){return h=h.flatMap(c=>c),nr("mathenv",{env:n,content:o?[o,...h]:h})},ho=function(n){return nr("string",{content:n})},vo=function(){return nr("string",{content:"\\"})},yo=function(n){return nr("string",{content:n})},$o=function(n){return nr("string",{content:n})},bo=function(n){return nr("string",{content:n})},Ao=function(n){return nr("string",{content:n})},xo=function(n){return nr("string",{content:n})},ko=function(n){return nr("string",{content:n})},wo=function(n){return nr("string",{content:n})},Co=function(){return" "},Mo=function(n){return nr("string",{content:n})},Eo=function(n,o){return nr("comment",{...o,sameline:!1,leadingWhitespace:n.length>0})},Po=function(n,o){return nr("comment",{...o,sameline:!0,leadingWhitespace:n.length>0})},Gi=function(n){return n},Io=function(n){return{content:n.join(""),suffixParbreak:!0}},qi=function(n){return n},_o=function(n){return{content:n.join("")}},So=function(){var n=Wi();return n.start.column===1},t=0,be=0,pn=[{line:1,column:1}],kt=0,Ln=[],P=0,he={},mn;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Ro(){return r.substring(be,t)}function Wi(){return Nn(be,t)}function Ke(n,o){return{type:"literal",text:n,ignoreCase:o}}function Ut(n,o,h){return{type:"class",parts:n,inverted:o,ignoreCase:h}}function Oo(){return{type:"any"}}function Fo(){return{type:"end"}}function Br(n){return{type:"other",description:n}}function zi(n){var o=pn[n],h;if(o)return o;for(h=n-1;!pn[h];)h--;for(o=pn[h],o={line:o.line,column:o.column};h<n;)r.charCodeAt(h)===10?(o.line++,o.column=1):o.column++,h++;return pn[n]=o,o}function Nn(n,o,h){var c=zi(n),w=zi(o),k={source:y,start:{offset:n,line:c.line,column:c.column},end:{offset:o,line:w.line,column:w.column}};return k}function ue(n){t<kt||(t>kt&&(kt=t,Ln=[]),Ln.push(n))}function Do(n,o,h){return new f(f.buildMessage(n,o),n,o,h)}function Xi(){var n,o,h,c=t*52+0,w=he[c];if(w)return t=w.nextPos,w.result;for(P++,n=t,o=[],h=wt();h!==e;)o.push(h),h=wt();return be=n,o=un(o),n=o,P--,o=e,P===0&&ue(D),he[c]={nextPos:t,result:n},n}function Bo(){var n,o,h=t*52+1,c=he[h];if(c)return t=c.nextPos,c.result;for(P++,n=[],o=ct();o!==e;)n.push(o),o=ct();return P--,o=e,P===0&&ue(cr),he[h]={nextPos:t,result:n},n}function wt(){var n,o,h,c,w,k,U=t*52+2,X=he[U];if(X)return t=X.nextPos,X.result;if(P++,n=Hi(),n===e&&(n=Zi(),n===e&&(n=ta(),n===e&&(n=$t(),n===e)))){if(n=t,o=st(),o!==e){if(h=[],c=t,w=t,P++,k=st(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Vt(k)):(t=c,c=e)):(t=c,c=e),c!==e)for(;c!==e;)h.push(c),c=t,w=t,P++,k=st(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Vt(k)):(t=c,c=e)):(t=c,c=e);else h=e;h!==e?(c=st(),c!==e?(be=n,n=ln(h)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;if(n===e&&(n=Wn(),n===e&&(n=Vi(),n===e&&(n=zn(),n===e&&(n=Xn(),n===e&&(n=To(),n===e&&(n=Jr(),n===e&&(n=ra(),n===e)))))))){if(n=t,o=t,h=[],c=t,w=t,P++,k=Ui(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(w=[w,k],c=w):(t=c,c=e)):(t=c,c=e),c!==e)for(;c!==e;)h.push(c),c=t,w=t,P++,k=Ui(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(w=[w,k],c=w):(t=c,c=e)):(t=c,c=e);else h=e;h!==e?o=r.substring(o,t):o=h,o!==e&&(be=n,o=Rt(o)),n=o,n===e&&(n=Ct(),n===e&&(n=at(),n===e&&(n=st(),n===e&&(n=t,r.length>t?(o=r.charAt(t),t++):(o=e,P===0&&ue(Re)),o!==e&&(be=n,o=Tn(o)),n=o))))}}return P--,n===e&&(o=e,P===0&&ue(Y)),he[U]={nextPos:t,result:n},n}function Vi(){var n,o,h,c,w,k,U,X,Pe=t*52+3,fe=he[Pe];if(fe)return t=fe.nextPos,fe.result;for(P++,n=t,o=t,h=[],c=kr();c!==e;)h.push(c),c=kr();if(c=Kr(),c!==e){for(w=[],k=t,U=[],X=kr();X!==e;)U.push(X),X=kr();if(X=Kr(),X!==e?(U=[U,X],k=U):(t=k,k=e),k!==e)for(;k!==e;){for(w.push(k),k=t,U=[],X=kr();X!==e;)U.push(X),X=kr();X=Kr(),X!==e?(U=[U,X],k=U):(t=k,k=e)}else w=e;if(w!==e){for(k=[],U=kr();U!==e;)k.push(U),U=kr();U=t,P++,X=Ht(),P--,X===e?U=void 0:(t=U,U=e),U!==e?(h=[h,c,w,k,U],o=h):(t=o,o=e)}else t=o,o=e}else t=o,o=e;if(o===e){for(o=t,h=[],c=kr();c!==e;)h.push(c),c=kr();if(c=Kr(),c!==e){for(w=[],k=t,U=[],X=kr();X!==e;)U.push(X),X=kr();if(X=Kr(),X!==e?(U=[U,X],k=U):(t=k,k=e),k!==e)for(;k!==e;){for(w.push(k),k=t,U=[],X=kr();X!==e;)U.push(X),X=kr();X=Kr(),X!==e?(U=[U,X],k=U):(t=k,k=e)}else w=e;w!==e?(h=[h,c,w],o=h):(t=o,o=e)}else t=o,o=e}return o!==e&&(be=n,o=Ot()),n=o,P--,n===e&&(o=e,P===0&&ue(Je)),he[Pe]={nextPos:t,result:n},n}function ct(){var n,o,h,c,w,k=t*52+4,U=he[k];if(U)return t=U.nextPos,U.result;if(P++,n=Hi(),n===e&&(n=Zi(),n===e&&(n=ta(),n===e))){for(n=t,o=[],h=Jr();h!==e;)o.push(h),h=Jr();if(h=$t(),h!==e){for(c=[],w=Jr();w!==e;)c.push(w),w=Jr();be=n,n=cn(h)}else t=n,n=e;if(n===e){for(n=t,o=[],h=Jr();h!==e;)o.push(h),h=Jr();if(h=Wn(),h!==e){for(c=[],w=Jr();w!==e;)c.push(w),w=Jr();be=n,n=gn(h)}else t=n,n=e;if(n===e&&(n=zn(),n===e)){for(n=t,o=[],h=Jr();h!==e;)o.push(h),h=Jr();if(h=Vo(),h!==e){for(c=[],w=Jr();w!==e;)c.push(w),w=Jr();be=n,n=Ft()}else t=n,n=e;if(n===e){for(n=t,o=[],h=Jr();h!==e;)o.push(h),h=Jr();if(h=Uo(),h!==e){for(c=[],w=Jr();w!==e;)c.push(w),w=Jr();be=n,n=jt()}else t=n,n=e;n===e&&(n=Xn(),n===e&&(n=Jr(),n===e&&(n=t,r.length>t?(o=r.charAt(t),t++):(o=e,P===0&&ue(Re)),o!==e&&(be=n,o=g(o)),n=o)))}}}}return P--,n===e&&(o=e,P===0&&ue(Be)),he[k]={nextPos:t,result:n},n}function Ui(){var n,o=t*52+5,h=he[o];return h?(t=h.nextPos,h.result):(P++,n=pt(),n===e&&(r.charCodeAt(t)===37?(n=F,t++):(n=e,P===0&&ue(Wr)),n===e&&(n=Ct(),n===e&&(n=at(),n===e&&(n=st(),n===e&&(n=Wn(),n===e&&(n=Kr(),n===e&&(n=zn(),n===e&&(n=Xn(),n===e&&(n=kr(),n===e&&(n=ra(),n===e&&(n=ia()))))))))))),P--,n===e&&P===0&&ue(oe),he[o]={nextPos:t,result:n},n)}function Jr(){var n,o,h,c,w,k,U,X,Pe=t*52+6,fe=he[Pe];if(fe)return t=fe.nextPos,fe.result;if(P++,n=t,o=t,h=Kr(),h!==e){for(c=[],w=kr();w!==e;)c.push(w),w=kr();h=[h,c],o=h}else t=o,o=e;if(o===e){if(o=t,h=[],c=kr(),c!==e)for(;c!==e;)h.push(c),c=kr();else h=e;if(h!==e)if(c=Kr(),c!==e)if(w=t,P++,k=Ht(),P--,k===e?w=void 0:(t=w,w=e),w!==e){for(k=[],U=kr();U!==e;)k.push(U),U=kr();U=t,P++,X=Kr(),P--,X===e?U=void 0:(t=U,U=e),U!==e?(h=[h,c,w,k,U],o=h):(t=o,o=e)}else t=o,o=e;else t=o,o=e;else t=o,o=e;if(o===e)if(o=[],h=kr(),h!==e)for(;h!==e;)o.push(h),h=kr();else o=e}return o!==e&&(be=n,o=M()),n=o,P--,n===e&&(o=e,P===0&&ue(gr)),he[Pe]={nextPos:t,result:n},n}function To(){var n,o,h,c,w,k,U=t*52+7,X=he[U];if(X)return t=X.nextPos,X.result;if(P++,n=t,o=t,h=[],c=Tt(),c!==e)for(;c!==e;)h.push(c),c=Tt();else h=e;if(h!==e)if(r.charCodeAt(t)===46?(c=K,t++):(c=e,P===0&&ue(yr)),c!==e){if(w=[],k=Tt(),k!==e)for(;k!==e;)w.push(k),k=Tt();else w=e;w!==e?(be=o,o=W(h,w)):(t=o,o=e)}else t=o,o=e;else t=o,o=e;if(o===e){if(o=t,r.charCodeAt(t)===46?(h=K,t++):(h=e,P===0&&ue(yr)),h!==e){if(c=[],w=Tt(),w!==e)for(;w!==e;)c.push(w),w=Tt();else c=e;c!==e?(be=o,o=J(c)):(t=o,o=e)}else t=o,o=e;if(o===e){if(o=t,h=[],c=Tt(),c!==e)for(;c!==e;)h.push(c),c=Tt();else h=e;h!==e?(r.charCodeAt(t)===46?(c=K,t++):(c=e,P===0&&ue(yr)),c!==e?(be=o,o=Ae(h)):(t=o,o=e)):(t=o,o=e)}}return o!==e&&(be=n,o=Ie(o)),n=o,P--,n===e&&(o=e,P===0&&ue(Yr)),he[U]={nextPos:t,result:n},n}function Hi(){var n,o,h,c,w,k,U,X,Pe,fe,Ne=t*52+8,Ve=he[Ne];if(Ve)return t=Ve.nextPos,Ve.result;if(P++,n=t,o=pt(),o!==e)if(r.substr(t,5)===ne?(h=ne,t+=5):(h=e,P===0&&ue(C)),h===e&&(r.substr(t,4)===d?(h=d,t+=4):(h=e,P===0&&ue(R))),h!==e)if(r.length>t?(c=r.charAt(t),t++):(c=e,P===0&&ue(Re)),c!==e){for(w=[],k=t,U=t,P++,X=t,r.length>t?(Pe=r.charAt(t),t++):(Pe=e,P===0&&ue(Re)),Pe!==e?(be=t,fe=xr(h,c,Pe),fe?fe=void 0:fe=e,fe!==e?(Pe=[Pe,fe],X=Pe):(t=X,X=e)):(t=X,X=e),P--,X===e?U=void 0:(t=U,U=e),U!==e?(r.length>t?(X=r.charAt(t),t++):(X=e,P===0&&ue(Re)),X!==e?(be=k,k=Qr(h,c,X)):(t=k,k=e)):(t=k,k=e);k!==e;)w.push(k),k=t,U=t,P++,X=t,r.length>t?(Pe=r.charAt(t),t++):(Pe=e,P===0&&ue(Re)),Pe!==e?(be=t,fe=xr(h,c,Pe),fe?fe=void 0:fe=e,fe!==e?(Pe=[Pe,fe],X=Pe):(t=X,X=e)):(t=X,X=e),P--,X===e?U=void 0:(t=U,U=e),U!==e?(r.length>t?(X=r.charAt(t),t++):(X=e,P===0&&ue(Re)),X!==e?(be=k,k=Qr(h,c,X)):(t=k,k=e)):(t=k,k=e);k=t,r.length>t?(U=r.charAt(t),t++):(U=e,P===0&&ue(Re)),U!==e?(be=t,X=Dt(h,c,w,U),X?X=void 0:X=e,X!==e?(U=[U,X],k=U):(t=k,k=e)):(t=k,k=e),k!==e?(be=n,n=Bt(h,c,w)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;else t=n,n=e;if(n===e&&(n=Lo(),n===e&&(n=No(),n===e&&(n=jo(),n===e&&(n=Go(),n===e))))){if(n=t,o=zo(),o!==e){for(h=[],c=t,w=t,P++,k=Gn(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Ci(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=Gn(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Ci(k)):(t=c,c=e)):(t=c,c=e);c=Gn(),c!==e?(be=n,n=Ks(h)):(t=n,n=e)}else t=n,n=e;if(n===e){if(n=t,o=Xo(),o!==e){for(h=[],c=t,w=t,P++,k=qn(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Mi(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=qn(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=ct(),k!==e?(be=c,c=Mi(k)):(t=c,c=e)):(t=c,c=e);c=qn(),c!==e?(be=n,n=Zs(h)):(t=n,n=e)}else t=n,n=e;if(n===e){if(n=t,o=st(),o!==e)if(h=st(),h!==e){for(c=[],w=t,k=t,P++,U=t,X=st(),X!==e?(Pe=st(),Pe!==e?(X=[X,Pe],U=X):(t=U,U=e)):(t=U,U=e),P--,U===e?k=void 0:(t=k,k=e),k!==e?(U=ct(),U!==e?(be=w,w=Ei(U)):(t=w,w=e)):(t=w,w=e);w!==e;)c.push(w),w=t,k=t,P++,U=t,X=st(),X!==e?(Pe=st(),Pe!==e?(X=[X,Pe],U=X):(t=U,U=e)):(t=U,U=e),P--,U===e?k=void 0:(t=k,k=e),k!==e?(U=ct(),U!==e?(be=w,w=Ei(U)):(t=w,w=e)):(t=w,w=e);w=st(),w!==e?(k=st(),k!==e?(be=n,n=Qs(c)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;n===e&&(n=Wo(),n===e&&(n=qo()))}}}return P--,n===e&&(o=e,P===0&&ue(E)),he[Ne]={nextPos:t,result:n},n}function jn(){var n,o,h,c,w,k,U,X,Pe=t*52+9,fe=he[Pe];if(fe)return t=fe.nextPos,fe.result;if(n=t,r.charCodeAt(t)===91?(o=p,t++):(o=e,P===0&&ue(H)),o!==e){for(h=[],c=t,w=t,P++,k=t,U=wt(),U!==e?(be=t,X=Pi(U),X?X=void 0:X=e,X!==e?(U=[U,X],k=U):(t=k,k=e)):(t=k,k=e),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=wt(),k!==e?(be=c,c=Ii(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=t,U=wt(),U!==e?(be=t,X=Pi(U),X?X=void 0:X=e,X!==e?(U=[U,X],k=U):(t=k,k=e)):(t=k,k=e),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=wt(),k!==e?(be=c,c=Ii(k)):(t=c,c=e)):(t=c,c=e);r.charCodeAt(t)===93?(c=_,t++):(c=e,P===0&&ue(Q)),c!==e?(be=n,n=eo(h)):(t=n,n=e)}else t=n,n=e;return he[Pe]={nextPos:t,result:n},n}function Yi(){var n,o,h,c,w,k,U=t*52+10,X=he[U];if(X)return t=X.nextPos,X.result;if(n=t,o=Ct(),o!==e){for(h=[],c=t,w=t,P++,k=at(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=_i(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=at(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=_i(k)):(t=c,c=e)):(t=c,c=e);c=at(),c!==e?(be=n,n=ro(h)):(t=n,n=e)}else t=n,n=e;return he[U]={nextPos:t,result:n},n}function Ji(){var n,o,h,c,w,k,U,X,Pe=t*52+11,fe=he[Pe];if(fe)return t=fe.nextPos,fe.result;if(n=t,ee.test(r.charAt(t))?(o=r.charAt(t),t++):(o=e,P===0&&ue(Oe)),o!==e){for(h=[],c=t,w=t,P++,k=t,r.length>t?(U=r.charAt(t),t++):(U=e,P===0&&ue(Re)),U!==e?(be=t,X=Si(o,U),X?X=void 0:X=e,X!==e?(U=[U,X],k=U):(t=k,k=e)):(t=k,k=e),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=Ri(o,k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=t,r.length>t?(U=r.charAt(t),t++):(U=e,P===0&&ue(Re)),U!==e?(be=t,X=Si(o,U),X?X=void 0:X=e,X!==e?(U=[U,X],k=U):(t=k,k=e)):(t=k,k=e),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=Ri(o,k)):(t=c,c=e)):(t=c,c=e);c=t,r.length>t?(w=r.charAt(t),t++):(w=e,P===0&&ue(Re)),w!==e?(be=t,k=to(o,h,w),k?k=void 0:k=e,k!==e?(w=[w,k],c=w):(t=c,c=e)):(t=c,c=e),c!==e?(be=n,n=no(o,h)):(t=n,n=e)}else t=n,n=e;return he[Pe]={nextPos:t,result:n},n}function Lo(){var n,o,h,c,w,k=t*52+12,U=he[k];return U?(t=U.nextPos,U.result):(P++,n=t,o=pt(),o!==e?(r.substr(t,9)===se?(h=se,t+=9):(h=e,P===0&&ue(Xe)),h!==e?(c=jn(),c===e&&(c=null),w=Yi(),w===e&&(w=Ji()),w!==e?(be=n,n=io(h,c,w)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e),P--,n===e&&(o=e,P===0&&ue(rr)),he[k]={nextPos:t,result:n},n)}function No(){var n,o,h,c,w,k,U=t*52+13,X=he[U];return X?(t=X.nextPos,X.result):(P++,n=t,o=pt(),o!==e?(r.substr(t,10)===Se?(h=Se,t+=10):(h=e,P===0&&ue(tr)),h===e&&(r.substr(t,4)===Ue?(h=Ue,t+=4):(h=e,P===0&&ue(fr))),h!==e?(c=jn(),c===e&&(c=null),w=$t(),w!==e?(k=Yi(),k===e&&(k=Ji()),k!==e?(be=n,n=ao(h,c,w,k)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e),P--,n===e&&(o=e,P===0&&ue(Qe)),he[U]={nextPos:t,result:n},n)}function jo(){var n,o,h,c,w,k,U,X,Pe,fe,Ne,Ve,ar,ot,Ur,sa=t*52+14,Un=he[sa];if(Un)return t=Un.nextPos,Un.result;if(P++,n=t,o=dn(),o!==e)if(h=Ct(),h!==e)if(r.substr(t,6)===ie?(c=ie,t+=6):(c=e,P===0&&ue(pr)),c!==e)if(w=at(),w!==e)if(k=jn(),k===e&&(k=null),U=$t(),U!==e){for(X=t,Pe=[],fe=t,Ne=t,P++,Ve=t,ar=gt(),ar!==e?(ot=$t(),ot!==e?(be=t,Ur=Oi(c,k,U,ot),Ur?Ur=void 0:Ur=e,Ur!==e?(ar=[ar,ot,Ur],Ve=ar):(t=Ve,Ve=e)):(t=Ve,Ve=e)):(t=Ve,Ve=e),P--,Ve===e?Ne=void 0:(t=Ne,Ne=e),Ne!==e?(r.length>t?(Ve=r.charAt(t),t++):(Ve=e,P===0&&ue(Re)),Ve!==e?(Ne=[Ne,Ve],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e);fe!==e;)Pe.push(fe),fe=t,Ne=t,P++,Ve=t,ar=gt(),ar!==e?(ot=$t(),ot!==e?(be=t,Ur=Oi(c,k,U,ot),Ur?Ur=void 0:Ur=e,Ur!==e?(ar=[ar,ot,Ur],Ve=ar):(t=Ve,Ve=e)):(t=Ve,Ve=e)):(t=Ve,Ve=e),P--,Ve===e?Ne=void 0:(t=Ne,Ne=e),Ne!==e?(r.length>t?(Ve=r.charAt(t),t++):(Ve=e,P===0&&ue(Re)),Ve!==e?(Ne=[Ne,Ve],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e);X=r.substring(X,t),Pe=gt(),Pe!==e?(fe=Ct(),fe!==e?(r.substr(t,6)===ie?(Ne=ie,t+=6):(Ne=e,P===0&&ue(pr)),Ne!==e?(Ve=at(),Ve!==e?(be=n,n=so(c,k,U,X)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;else t=n,n=e;else t=n,n=e;else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(Ye)),he[sa]={nextPos:t,result:n},n}function Go(){var n,o,h,c,w,k,U,X,Pe,fe,Ne,Ve,ar,ot=t*52+15,Ur=he[ot];if(Ur)return t=Ur.nextPos,Ur.result;if(P++,n=t,o=dn(),o!==e)if(h=Ct(),h!==e)if(c=Ki(),c!==e)if(w=at(),w!==e){for(k=t,U=[],X=t,Pe=t,P++,fe=t,Ne=gt(),Ne!==e?(Ve=$t(),Ve!==e?(be=t,ar=Fi(c,Ve),ar?ar=void 0:ar=e,ar!==e?(Ne=[Ne,Ve,ar],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e)):(t=fe,fe=e),P--,fe===e?Pe=void 0:(t=Pe,Pe=e),Pe!==e?(r.length>t?(fe=r.charAt(t),t++):(fe=e,P===0&&ue(Re)),fe!==e?(be=X,X=Di(c,fe)):(t=X,X=e)):(t=X,X=e);X!==e;)U.push(X),X=t,Pe=t,P++,fe=t,Ne=gt(),Ne!==e?(Ve=$t(),Ve!==e?(be=t,ar=Fi(c,Ve),ar?ar=void 0:ar=e,ar!==e?(Ne=[Ne,Ve,ar],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e)):(t=fe,fe=e),P--,fe===e?Pe=void 0:(t=Pe,Pe=e),Pe!==e?(r.length>t?(fe=r.charAt(t),t++):(fe=e,P===0&&ue(Re)),fe!==e?(be=X,X=Di(c,fe)):(t=X,X=e)):(t=X,X=e);k=r.substring(k,t),U=gt(),U!==e?(X=Ct(),X!==e?(Pe=Ki(),Pe!==e?(fe=at(),fe!==e?(be=n,n=oo(c,k)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;else t=n,n=e;else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(B)),he[ot]={nextPos:t,result:n},n}function Ki(){var n,o=t*52+16,h=he[o];return h?(t=h.nextPos,h.result):(r.substr(t,9)===ze?(n=ze,t+=9):(n=e,P===0&&ue(Z)),n===e&&(r.substr(t,8)===qe?(n=qe,t+=8):(n=e,P===0&&ue(ke)),n===e&&(r.substr(t,13)===_e?(n=_e,t+=13):(n=e,P===0&&ue(je)),n===e&&(r.substr(t,12)===Te?(n=Te,t+=12):(n=e,P===0&&ue(de)),n===e&&(r.substr(t,7)===er?(n=er,t+=7):(n=e,P===0&&ue(hr)),n===e&&(r.substr(t,10)===mr?(n=mr,t+=10):(n=e,P===0&&ue(He))))))),he[o]={nextPos:t,result:n},n)}function Zi(){var n,o,h,c,w,k=t*52+17,U=he[k];if(U)return t=U.nextPos,U.result;if(P++,n=t,o=t,h=pt(),h!==e){if(c=[],w=ea(),w!==e)for(;w!==e;)c.push(w),w=ea();else c=e;c!==e?(be=o,o=fo(c)):(t=o,o=e)}else t=o,o=e;return o===e&&(o=t,h=pt(),h!==e?(r.length>t?(c=r.charAt(t),t++):(c=e,P===0&&ue(Re)),c!==e?(be=o,o=uo(c)):(t=o,o=e)):(t=o,o=e)),o!==e&&(be=n,o=lo(o)),n=o,P--,n===e&&(o=e,P===0&&ue(A)),he[k]={nextPos:t,result:n},n}function $t(){var n,o,h,c,w,k,U=t*52+18,X=he[U];if(X)return t=X.nextPos,X.result;if(P++,n=t,o=Ct(),o!==e){for(h=[],c=t,w=t,P++,k=at(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=wt(),k!==e?(be=c,c=Bi(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=at(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(k=wt(),k!==e?(be=c,c=Bi(k)):(t=c,c=e)):(t=c,c=e);c=at(),c!==e?(be=n,n=co(h)):(t=n,n=e)}else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(q)),he[U]={nextPos:t,result:n},n}function hn(){var n,o,h=t*52+19,c=he[h];return c?(t=c.nextPos,c.result):(n=t,o=$t(),o!==e&&(be=n,o=go()),n=o,he[h]={nextPos:t,result:n},n)}function qo(){var n,o,h,c,w,k,U,X,Pe,fe,Ne,Ve=t*52+20,ar=he[Ve];if(ar)return t=ar.nextPos,ar.result;if(P++,n=t,o=dn(),o!==e)if(h=hn(),h!==e){for(c=Vn(),c===e&&(c=null),w=[],k=t,U=t,P++,X=t,Pe=gt(),Pe!==e?(fe=hn(),fe!==e?(be=t,Ne=Ti(h,c,fe),Ne?Ne=void 0:Ne=e,Ne!==e?(Pe=[Pe,fe,Ne],X=Pe):(t=X,X=e)):(t=X,X=e)):(t=X,X=e),P--,X===e?U=void 0:(t=U,U=e),U!==e?(X=wt(),X!==e?(be=k,k=Li(h,c,X)):(t=k,k=e)):(t=k,k=e);k!==e;)w.push(k),k=t,U=t,P++,X=t,Pe=gt(),Pe!==e?(fe=hn(),fe!==e?(be=t,Ne=Ti(h,c,fe),Ne?Ne=void 0:Ne=e,Ne!==e?(Pe=[Pe,fe,Ne],X=Pe):(t=X,X=e)):(t=X,X=e)):(t=X,X=e),P--,X===e?U=void 0:(t=U,U=e),U!==e?(X=wt(),X!==e?(be=k,k=Li(h,c,X)):(t=k,k=e)):(t=k,k=e);k=gt(),k!==e?(U=hn(),U!==e?(be=n,n=po(h,c,w)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(G)),he[Ve]={nextPos:t,result:n},n}function Wo(){var n,o,h,c,w,k,U,X,Pe,fe,Ne,Ve,ar,ot=t*52+21,Ur=he[ot];if(Ur)return t=Ur.nextPos,Ur.result;if(P++,n=t,o=dn(),o!==e)if(h=Ct(),h!==e)if(c=Qi(),c!==e)if(w=at(),w!==e){for(k=Vn(),k===e&&(k=null),U=[],X=t,Pe=t,P++,fe=t,Ne=gt(),Ne!==e?(Ve=$t(),Ve!==e?(be=t,ar=Ni(c,k,Ve),ar?ar=void 0:ar=e,ar!==e?(Ne=[Ne,Ve,ar],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e)):(t=fe,fe=e),P--,fe===e?Pe=void 0:(t=Pe,Pe=e),Pe!==e?(fe=ct(),fe!==e?(be=X,X=ji(c,k,fe)):(t=X,X=e)):(t=X,X=e);X!==e;)U.push(X),X=t,Pe=t,P++,fe=t,Ne=gt(),Ne!==e?(Ve=$t(),Ve!==e?(be=t,ar=Ni(c,k,Ve),ar?ar=void 0:ar=e,ar!==e?(Ne=[Ne,Ve,ar],fe=Ne):(t=fe,fe=e)):(t=fe,fe=e)):(t=fe,fe=e),P--,fe===e?Pe=void 0:(t=Pe,Pe=e),Pe!==e?(fe=ct(),fe!==e?(be=X,X=ji(c,k,fe)):(t=X,X=e)):(t=X,X=e);X=gt(),X!==e?(Pe=Ct(),Pe!==e?(fe=Qi(),fe!==e?(Ne=at(),Ne!==e?(be=n,n=mo(c,k,U)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)):(t=n,n=e)}else t=n,n=e;else t=n,n=e;else t=n,n=e;else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(De)),he[ot]={nextPos:t,result:n},n}function zo(){var n,o,h,c=t*52+23,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.charCodeAt(t)===91?(h=p,t++):(h=e,P===0&&ue(H)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function Gn(){var n,o,h,c=t*52+24,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.charCodeAt(t)===93?(h=_,t++):(h=e,P===0&&ue(Q)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function Xo(){var n,o,h,c=t*52+25,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.charCodeAt(t)===40?(h=Mr,t++):(h=e,P===0&&ue(We)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function qn(){var n,o,h,c=t*52+26,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.charCodeAt(t)===41?(h=Sr,t++):(h=e,P===0&&ue(we)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function dn(){var n,o,h,c=t*52+27,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.substr(t,5)===wr?(h=wr,t+=5):(h=e,P===0&&ue(Ir)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function gt(){var n,o,h,c=t*52+28,w=he[c];return w?(t=w.nextPos,w.result):(n=t,o=pt(),o!==e?(r.substr(t,3)===ge?(h=ge,t+=3):(h=e,P===0&&ue(x)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),he[c]={nextPos:t,result:n},n)}function Qi(){var n,o,h=t*52+29,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.substr(t,9)===Cr?(o=Cr,t+=9):(o=e,P===0&&ue(s)),o===e&&(r.substr(t,8)===ir?(o=ir,t+=8):(o=e,P===0&&ue(N)),o===e&&(r.substr(t,6)===$e?(o=$e,t+=6):(o=e,P===0&&ue(Le)),o===e&&(r.substr(t,5)===sr?(o=sr,t+=5):(o=e,P===0&&ue(lr)),o===e&&(r.substr(t,8)===dr?(o=dr,t+=8):(o=e,P===0&&ue(te)),o===e&&(r.substr(t,7)===Rr?(o=Rr,t+=7):(o=e,P===0&&ue(Zr)),o===e&&(r.substr(t,7)===ur?(o=ur,t+=7):(o=e,P===0&&ue(Vr)),o===e&&(r.substr(t,6)===pe?(o=pe,t+=6):(o=e,P===0&&ue(dt)),o===e&&(r.substr(t,9)===Ce?(o=Ce,t+=9):(o=e,P===0&&ue(It)),o===e&&(r.substr(t,8)===L?(o=L,t+=8):(o=e,P===0&&ue(Nt)),o===e&&(r.substr(t,8)===Er?(o=Er,t+=8):(o=e,P===0&&ue(_r)),o===e&&(r.substr(t,7)===br?(o=br,t+=7):(o=e,P===0&&ue(_t)),o===e&&(r.substr(t,5)===Ar?(o=Ar,t+=5):(o=e,P===0&&ue(vt)),o===e&&(r.substr(t,4)===Ze?(o=Ze,t+=4):(o=e,P===0&&ue(Me)),o===e&&(r.substr(t,11)===Fr?(o=Fr,t+=11):(o=e,P===0&&ue(yt)))))))))))))))),o!==e&&(be=n,o=ho(o)),n=o,he[h]={nextPos:t,result:n},n)}function pt(){var n,o,h=t*52+30,c=he[h];return c?(t=c.nextPos,c.result):(P++,n=t,r.charCodeAt(t)===92?(o=Gr,t++):(o=e,P===0&&ue(it)),o!==e&&(be=n,o=vo()),n=o,P--,n===e&&(o=e,P===0&&ue(xt)),he[h]={nextPos:t,result:n},n)}function Ct(){var n,o,h=t*52+31,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===123?(o=zr,t++):(o=e,P===0&&ue(tt)),o!==e&&(be=n,o=yo(o)),n=o,he[h]={nextPos:t,result:n},n)}function at(){var n,o,h=t*52+32,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===125?(o=Lr,t++):(o=e,P===0&&ue(l)),o!==e&&(be=n,o=$o(o)),n=o,he[h]={nextPos:t,result:n},n)}function st(){var n,o,h=t*52+33,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===36?(o=qr,t++):(o=e,P===0&&ue(I)),o!==e&&(be=n,o=bo(o)),n=o,he[h]={nextPos:t,result:n},n)}function Wn(){var n,o,h=t*52+34,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===38?(o=vr,t++):(o=e,P===0&&ue(O)),o!==e&&(be=n,o=Ao(o)),n=o,he[h]={nextPos:t,result:n},n)}function Kr(){var n,o,h,c=t*52+35,w=he[c];return w?(t=w.nextPos,w.result):(P++,n=t,o=t,P++,r.charCodeAt(t)===13?(h=Xr,t++):(h=e,P===0&&ue(le)),P--,h===e?o=void 0:(t=o,o=e),o!==e?(r.charCodeAt(t)===10?(h=Nr,t++):(h=e,P===0&&ue(ye)),h!==e?(o=[o,h],n=o):(t=n,n=e)):(t=n,n=e),n===e&&(r.charCodeAt(t)===13?(n=Xr,t++):(n=e,P===0&&ue(le)),n===e&&(r.substr(t,2)===V?(n=V,t+=2):(n=e,P===0&&ue(v)))),P--,n===e&&(o=e,P===0&&ue(ve)),he[c]={nextPos:t,result:n},n)}function zn(){var n,o,h=t*52+36,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===35?(o=ae,t++):(o=e,P===0&&ue(T)),o!==e&&(be=n,o=xo(o)),n=o,he[h]={nextPos:t,result:n},n)}function Vo(){var n,o,h=t*52+37,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===94?(o=ce,t++):(o=e,P===0&&ue(re)),o!==e&&(be=n,o=ko(o)),n=o,he[h]={nextPos:t,result:n},n)}function Uo(){var n,o,h=t*52+38,c=he[h];return c?(t=c.nextPos,c.result):(n=t,r.charCodeAt(t)===95?(o=Ge,t++):(o=e,P===0&&ue(me)),o!==e&&(be=n,o=wo(o)),n=o,he[h]={nextPos:t,result:n},n)}function Xn(){var n,o=t*52+39,h=he[o];return h?(t=h.nextPos,h.result):(r.charCodeAt(t)===0?(n=or,t++):(n=e,P===0&&ue(Fe)),he[o]={nextPos:t,result:n},n)}function kr(){var n,o,h,c=t*52+40,w=he[c];if(w)return t=w.nextPos,w.result;if(P++,n=t,o=[],Dr.test(r.charAt(t))?(h=r.charAt(t),t++):(h=e,P===0&&ue($r)),h!==e)for(;h!==e;)o.push(h),Dr.test(r.charAt(t))?(h=r.charAt(t),t++):(h=e,P===0&&ue($r));else o=e;return o!==e&&(be=n,o=Co()),n=o,P--,n===e&&(o=e,P===0&&ue(gr)),he[c]={nextPos:t,result:n},n}function ea(){var n,o=t*52+41,h=he[o];return h?(t=h.nextPos,h.result):(P++,Pr.test(r.charAt(t))?(n=r.charAt(t),t++):(n=e,P===0&&ue(Hr)),P--,n===e&&P===0&&ue(Or),he[o]={nextPos:t,result:n},n)}function Tt(){var n,o=t*52+42,h=he[o];return h?(t=h.nextPos,h.result):(P++,z.test(r.charAt(t))?(n=r.charAt(t),t++):(n=e,P===0&&ue(On)),P--,n===e&&P===0&&ue(fn),he[o]={nextPos:t,result:n},n)}function ra(){var n,o,h=t*52+43,c=he[h];return c?(t=c.nextPos,c.result):(P++,n=t,j.test(r.charAt(t))?(o=r.charAt(t),t++):(o=e,P===0&&ue(St)),o!==e&&(be=n,o=Mo(o)),n=o,P--,n===e&&(o=e,P===0&&ue(Fn)),he[h]={nextPos:t,result:n},n)}function Ht(){var n,o=t*52+44,h=he[o];return h?(t=h.nextPos,h.result):(r.charCodeAt(t)===37?(n=F,t++):(n=e,P===0&&ue(Wr)),he[o]={nextPos:t,result:n},n)}function ta(){var n,o=t*52+45,h=he[o];return h?(t=h.nextPos,h.result):(P++,n=Ho(),n===e&&(n=Vn()),P--,n===e&&P===0&&ue(Dn),he[o]={nextPos:t,result:n},n)}function Ho(){var n,o,h,c,w=t*52+46,k=he[w];if(k)return t=k.nextPos,k.result;for(n=t,o=t,h=[],c=kr();c!==e;)h.push(c),c=kr();return c=Kr(),c!==e?(h=[h,c],o=h):(t=o,o=e),o===e&&(o=null),h=Yo(),h!==e?(c=na(),c!==e?(be=n,n=Eo(h,c)):(t=n,n=e)):(t=n,n=e),he[w]={nextPos:t,result:n},n}function Vn(){var n,o,h,c=t*52+47,w=he[c];if(w)return t=w.nextPos,w.result;for(n=t,o=[],h=kr();h!==e;)o.push(h),h=kr();return h=na(),h!==e?(be=n,n=Po(o,h)):(t=n,n=e),he[c]={nextPos:t,result:n},n}function na(){var n,o,h,c,w,k,U,X,Pe=t*52+48,fe=he[Pe];if(fe)return t=fe.nextPos,fe.result;if(P++,n=t,o=Ht(),o!==e){for(h=[],c=t,w=t,P++,k=Kr(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=Gi(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=Kr(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=Gi(k)):(t=c,c=e)):(t=c,c=e);c=t,P++,w=Vi(),P--,w!==e?(t=c,c=void 0):c=e,c!==e?(be=n,n=Io(h)):(t=n,n=e)}else t=n,n=e;if(n===e)if(n=t,o=Ht(),o!==e){for(h=[],c=t,w=t,P++,k=Kr(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=qi(k)):(t=c,c=e)):(t=c,c=e);c!==e;)h.push(c),c=t,w=t,P++,k=Kr(),P--,k===e?w=void 0:(t=w,w=e),w!==e?(r.length>t?(k=r.charAt(t),t++):(k=e,P===0&&ue(Re)),k!==e?(be=c,c=qi(k)):(t=c,c=e)):(t=c,c=e);if(c=t,w=Kr(),w!==e){for(k=[],U=kr();U!==e;)k.push(U),U=kr();U=t,P++,X=Ht(),P--,X===e?U=void 0:(t=U,U=e),U!==e?(w=[w,k,U],c=w):(t=c,c=e)}else t=c,c=e;c===e&&(c=Kr(),c===e&&(c=ia())),c!==e?(be=n,n=_o(h)):(t=n,n=e)}else t=n,n=e;return P--,n===e&&(o=e,P===0&&ue(Bn)),he[Pe]={nextPos:t,result:n},n}function Yo(){var n,o,h,c,w,k=t*52+49,U=he[k];if(U)return t=U.nextPos,U.result;if(n=t,o=t,h=Jo(),h!==e){for(c=[],w=kr();w!==e;)c.push(w),w=kr();h=[h,c],o=h}else t=o,o=e;return o!==e?n=r.substring(n,t):n=o,he[k]={nextPos:t,result:n},n}function Jo(){var n,o=t*52+50,h=he[o];return h?(t=h.nextPos,h.result):(be=t,n=So(),n?n=void 0:n=e,he[o]={nextPos:t,result:n},n)}function ia(){var n,o,h=t*52+51,c=he[h];return c?(t=c.nextPos,c.result):(n=t,P++,r.length>t?(o=r.charAt(t),t++):(o=e,P===0&&ue(Re)),P--,o===e?n=void 0:(t=n,n=e),he[h]={nextPos:t,result:n},n)}function aa(n){return typeof n=="string"?n:typeof n.content=="string"?n.content:n&&n.type==="whitespace"?" ":n}function vn(n,o){let h=typeof n=="string"?n:n.content.map(aa).join(""),c=typeof o=="string"?o:o.content.map(aa).join("");return h===c}function nr(n,o={}){return{type:n,...o,position:Wi()}}if(mn=S(),mn!==e&&t===r.length)return mn;throw mn!==e&&t<r.length&&ue(Fo()),Do(Ln,kt<r.length?r.charAt(kt):null,kt<r.length?Nn(kt,kt+1):Nn(kt,kt))}return{SyntaxError:f,parse:b}}(),tc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
13
|
+
--> `+F+`
|
|
14
|
+
`+ne+` |
|
|
15
|
+
`+S.line+" | "+d+`
|
|
16
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
17
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:Fr},S=Fr,F=Ce(),K=function(){return[]},ne=function(z){return{cells:[],colSeps:[],...z}},d=function(z,j,D){return{...z,rowSep:j,trailingComment:D}},p=function(z,j){return{...z,rowSep:null,trailingComment:j}},_=function(z){return z},se=function(z){return{cells:[],colSeps:[],rowSep:null,trailingComment:z}},Se=function(z){return z},Ue=function(z,j){return{colSep:z,cell:j}},ie=function(z){return{colSep:z}},ze=function(z,j){return Pr(z,j)},qe=function(z){return Pr(null,z)},_e=function(z){return a.isSameLineComment(z)},Te=function(z){return z},er=function(z){return a.isOwnLineComment(z)},mr=function(z){return z},Mr=function(z){return a.isWhitespace(z)},Sr=function(z){return z},wr=function(z){return a.isRowSep(z)},ge=function(z){return z},Cr=function(z){return a.isColSep(z)},ir=function(z){return z},$e=0,sr=[{line:1,column:1}],dr=0,Rr=[],ur=0,pe;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Ce(){return{type:"any"}}function L(){return{type:"end"}}function Er(z){var j=sr[z],D;if(j)return j;for(D=z-1;!sr[D];)D--;for(j=sr[D],j={line:j.line,column:j.column};D<z;)r.charCodeAt(D)===10?(j.line++,j.column=1):j.column++,D++;return sr[z]=j,j}function br(z,j,D){var cr=Er(z),Y=Er(j),Re={source:y,start:{offset:z,line:cr.line,column:cr.column},end:{offset:j,line:Y.line,column:Y.column}};return Re}function Ar(z){$e<dr||($e>dr&&(dr=$e,Rr=[]),Rr.push(z))}function Ze(z,j,D){return new f(f.buildMessage(z,j),z,j,D)}function Fr(){var z,j;if(z=[],j=qr(),j===e&&(j=Gr(),j===e&&(j=zr())),j!==e)for(;j!==e;)z.push(j),j=qr(),j===e&&(j=Gr(),j===e&&(j=zr()));else z=e;return z===e&&(z=$e,j=Dr(),j!==e&&(j=K()),z=j),z}function Gr(){var z,j,D,cr;return z=$e,j=$e,D=V(),D===e&&(D=null),D=ne(D),j=D,D=or(),D!==e?(cr=Lr(),cr===e&&(cr=null),z=d(j,D,cr)):($e=z,z=e),z}function zr(){var z,j,D;return z=$e,j=V(),j!==e?(D=Lr(),D===e&&(D=null),z=p(j,D)):($e=z,z=e),z}function Lr(){var z,j,D;for(z=$e,j=[],D=Ge();D!==e;)j.push(D),D=Ge();return D=ae(),D!==e?z=_(D):($e=z,z=e),z}function qr(){var z,j,D;for(z=$e,j=[],D=Ge();D!==e;)j.push(D),D=Ge();return D=ce(),D!==e?z=se(D):($e=z,z=e),z}function vr(){var z,j,D;return z=$e,j=$e,ur++,D=or(),D===e&&(D=ee(),D===e&&(D=Lr(),D===e&&(D=ce()))),ur--,D===e?j=void 0:($e=j,j=e),j!==e?(r.length>$e?(D=r.charAt($e),$e++):(D=e,ur===0&&Ar(F)),D!==e?z=Se(D):($e=z,z=e)):($e=z,z=e),z}function Xr(){var z,j,D;if(z=$e,j=[],D=vr(),D!==e)for(;D!==e;)j.push(D),D=vr();else j=e;return j!==e?z=r.substring(z,$e):z=j,z}function Nr(){var z,j,D;return z=$e,j=ee(),j!==e?(D=Xr(),D!==e?z=Ue(j,D):($e=z,z=e)):($e=z,z=e),z===e&&(z=$e,j=ee(),j!==e&&(j=ie(j)),z=j),z}function V(){var z,j,D,cr;if(z=$e,j=Xr(),j!==e){for(D=[],cr=Nr();cr!==e;)D.push(cr),cr=Nr();z=ze(j,D)}else $e=z,z=e;if(z===e){if(z=$e,j=[],D=Nr(),D!==e)for(;D!==e;)j.push(D),D=Nr();else j=e;j!==e&&(j=qe(j)),z=j}return z}function ae(){var z,j,D;return z=$e,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),j!==e?(D=_e(j),D?D=void 0:D=e,D!==e?z=Te(j):($e=z,z=e)):($e=z,z=e),z}function ce(){var z,j,D;return z=$e,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),j!==e?(D=er(j),D?D=void 0:D=e,D!==e?z=mr(j):($e=z,z=e)):($e=z,z=e),z}function Ge(){var z,j,D;return z=$e,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),j!==e?(D=Mr(j),D?D=void 0:D=e,D!==e?z=Sr(j):($e=z,z=e)):($e=z,z=e),z}function or(){var z,j,D;return z=$e,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),j!==e?(D=wr(j),D?D=void 0:D=e,D!==e?z=ge(j):($e=z,z=e)):($e=z,z=e),z}function ee(){var z,j,D;return z=$e,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),j!==e?(D=Cr(j),D?D=void 0:D=e,D!==e?z=ir(j):($e=z,z=e)):($e=z,z=e),z}function Dr(){var z,j;return z=$e,ur++,r.length>$e?(j=r.charAt($e),$e++):(j=e,ur===0&&Ar(F)),ur--,j===e?z=void 0:($e=z,z=e),z}function Pr(z,j){let D=[z||[]],cr=[];for(let Y of j)D.push(Y.cell||[]),cr.push(Y.colSep);return{cells:D,colSeps:cr}}if(!a.isWhitespace)try{Object.assign(a,createMatchers(["\\","hline","cr"],["&"]))}catch(z){console.warn("Error when initializing parser",z)}if(pe=S(),pe!==e&&$e===r.length)return pe;throw pe!==e&&$e<r.length&&Ar(L()),Ze(Rr,dr<r.length?r.charAt(dr):null,dr<r.length?br(dr,dr+1):br(dr,dr))}return{SyntaxError:f,parse:b}}(),gf=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
18
|
+
--> `+F+`
|
|
19
|
+
`+ne+` |
|
|
20
|
+
`+S.line+" | "+d+`
|
|
21
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
22
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={args_spec_list:x},S=x,F="v",K="b",ne="!",d="D",p="d",_="s",se="O",Se="o",Ue="e",ie="E",ze="t",qe="R",_e="r",Te="u",er="m",mr="{",Mr="}",Sr=" ",wr=`
|
|
23
|
+
`,ge="\r",Cr="\\",ir=/^[{ ]/,$e=/^[a-zA-Z]/,sr=/^[{}]/,dr=He("+",!1),Rr=He("v",!1),ur=q(),pe=He("b",!1),Ce=He("!",!1),L=He("D",!1),Er=He("d",!1),br=He("s",!1),Ar=He("O",!1),Ze=He("o",!1),Fr=He("e",!1),Gr=He("E",!1),zr=He("t",!1),Lr=He("R",!1),qr=He("r",!1),vr=He("u",!1),Xr=A(["{"," "],!1,!1),Nr=He("m",!1),V=He("{",!1),ae=He("}",!1),ce=He(" ",!1),Ge=He(`
|
|
24
|
+
`,!1),or=He("\r",!1),ee=He("\\",!1),Dr=A([["a","z"],["A","Z"]],!1,!1),Pr=A(["{","}"],!1,!1),z=function(v){return v},j=function(v){return v},D=function(v){return v},cr=function(v){return le("verbatim",{openBrace:v,closeBrace:v})},Y=function(){return le("body")},Re=function(v,T){return v?{...T,noLeadingWhitespace:!0}:T},Je=function(v,T){return le("optional",{...v,defaultArg:T})},Be=function(v){return le("optional",v)},oe=function(){return le("optionalStar")},Wr=function(v){return le("optional",{defaultArg:v})},gr=function(){return le("optional")},Yr=function(v){return le("embellishment",{embellishmentTokens:v})},yr=function(v,T){return le("embellishment",{embellishmentTokens:v,defaultArg:T})},E=function(v){return le("optionalToken",{token:v})},C=function(v,T){return le("mandatory",{...v,defaultArg:T})},R=function(v){return le("mandatory",v)},H=function(v){return le("until",{stopTokens:v})},Q=function(v){return[v]},Oe=function(v){return v.content},rr=function(){return le("mandatory")},Xe=function(v,T){return{openBrace:v,closeBrace:T}},Qe=function(v){return v.content.map(ye).join("")},tr=function(v){return[v]},fr=function(v){return v.filter(T=>!T.match(/^\s*$/))},Ye=function(v){return{type:"group",content:v}},pr=function(){return""},B=0,Z=[{line:1,column:1}],ke=0,je=[],de=0,hr;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function He(v,T){return{type:"literal",text:v,ignoreCase:T}}function A(v,T,re){return{type:"class",parts:v,inverted:T,ignoreCase:re}}function q(){return{type:"any"}}function G(){return{type:"end"}}function De(v){var T=Z[v],re;if(T)return T;for(re=v-1;!Z[re];)re--;for(T=Z[re],T={line:T.line,column:T.column};re<v;)r.charCodeAt(re)===10?(T.line++,T.column=1):T.column++,re++;return Z[v]=T,T}function We(v,T,re){var me=De(v),Fe=De(T),$r={source:y,start:{offset:v,line:me.line,column:me.column},end:{offset:T,line:Fe.line,column:Fe.column}};return $r}function we(v){B<ke||(B>ke&&(ke=B,je=[]),je.push(v))}function Ir(v,T,re){return new f(f.buildMessage(v,T),v,T,re)}function x(){var v,T,re,me;for(v=B,T=[],re=B,tt(),me=s(),me!==e?re=z(me):(B=re,re=e);re!==e;)T.push(re),re=B,tt(),me=s(),me!==e?re=z(me):(B=re,re=e);return re=tt(),v=j(T),v}function s(){var v,T;return v=B,r.charCodeAt(B)===43?B++:de===0&&we(dr),T=lr(),T===e&&(T=vt(),T===e&&(T=N(),T===e&&(T=Nt(),T===e&&(T=Le(),T===e&&(T=_r()))))),T!==e?v=D(T):(B=v,v=e),v}function N(){var v,T,re;return v=B,r.charCodeAt(B)===118?(T=F,B++):(T=e,de===0&&we(Rr)),T!==e?(r.length>B?(re=r.charAt(B),B++):(re=e,de===0&&we(ur)),re!==e?v=cr(re):(B=v,v=e)):(B=v,v=e),v}function Le(){var v,T;return v=B,r.charCodeAt(B)===98?(T=K,B++):(T=e,de===0&&we(pe)),T!==e&&(T=Y()),v=T,v}function lr(){var v,T,re;return v=B,r.charCodeAt(B)===33?(T=ne,B++):(T=e,de===0&&we(Ce)),T===e&&(T=null),re=Zr(),re===e&&(re=Vr(),re===e&&(re=te(),re===e&&(re=dt(),re===e&&(re=It())))),re!==e?v=Re(T,re):(B=v,v=e),v}function te(){var v,T,re,me;return v=B,r.charCodeAt(B)===68?(T=d,B++):(T=e,de===0&&we(L)),T!==e?(re=Me(),me=yt(),me!==e?v=Je(re,me):(B=v,v=e)):(B=v,v=e),v===e&&(v=B,r.charCodeAt(B)===100?(T=p,B++):(T=e,de===0&&we(Er)),T!==e?(re=Me(),v=Be(re)):(B=v,v=e)),v}function Zr(){var v,T;return v=B,r.charCodeAt(B)===115?(T=_,B++):(T=e,de===0&&we(br)),T!==e&&(T=oe()),v=T,v}function Vr(){var v,T,re;return v=B,r.charCodeAt(B)===79?(T=se,B++):(T=e,de===0&&we(Ar)),T!==e?(tt(),re=yt(),re!==e?v=Wr(re):(B=v,v=e)):(B=v,v=e),v===e&&(v=B,r.charCodeAt(B)===111?(T=Se,B++):(T=e,de===0&&we(Ze)),T!==e&&(T=gr()),v=T),v}function dt(){var v,T,re,me;return v=B,r.charCodeAt(B)===101?(T=Ue,B++):(T=e,de===0&&we(Fr)),T!==e?(tt(),re=xt(),re!==e?v=Yr(re):(B=v,v=e)):(B=v,v=e),v===e&&(v=B,r.charCodeAt(B)===69?(T=ie,B++):(T=e,de===0&&we(Gr)),T!==e?(tt(),re=xt(),re!==e?(tt(),me=xt(),me!==e?v=yr(re,me):(B=v,v=e)):(B=v,v=e)):(B=v,v=e)),v}function It(){var v,T,re;return v=B,r.charCodeAt(B)===116?(T=ze,B++):(T=e,de===0&&we(zr)),T!==e?(r.length>B?(re=r.charAt(B),B++):(re=e,de===0&&we(ur)),re!==e?v=E(re):(B=v,v=e)):(B=v,v=e),v}function Nt(){var v,T,re,me;return v=B,r.charCodeAt(B)===82?(T=qe,B++):(T=e,de===0&&we(Lr)),T!==e?(re=Me(),me=yt(),me!==e?v=C(re,me):(B=v,v=e)):(B=v,v=e),v===e&&(v=B,r.charCodeAt(B)===114?(T=_e,B++):(T=e,de===0&&we(qr)),T!==e?(re=Me(),v=R(re)):(B=v,v=e)),v}function _r(){var v,T,re;return v=B,r.charCodeAt(B)===117?(T=Te,B++):(T=e,de===0&&we(vr)),T!==e?(re=_t(),re!==e?v=H(re):(B=v,v=e)):(B=v,v=e),v}function _t(){var v,T,re;return v=B,T=B,de++,ir.test(r.charAt(B))?(re=r.charAt(B),B++):(re=e,de===0&&we(Xr)),de--,re===e?T=void 0:(B=T,T=e),T!==e?(r.length>B?(re=r.charAt(B),B++):(re=e,de===0&&we(ur)),re!==e?v=Q(re):(B=v,v=e)):(B=v,v=e),v===e&&(v=B,T=it(),T!==e&&(T=Oe(T)),v=T),v}function vt(){var v,T;return v=B,r.charCodeAt(B)===109?(T=er,B++):(T=e,de===0&&we(Nr)),T!==e&&(T=rr()),v=T,v}function Me(){var v,T,re,me,Fe,$r;return v=B,T=B,re=B,me=B,de++,Fe=l(),de--,Fe===e?me=void 0:(B=me,me=e),me!==e?(Fe=I(),Fe===e&&(r.length>B?(Fe=r.charAt(B),B++):(Fe=e,de===0&&we(ur))),Fe!==e?(me=[me,Fe],re=me):(B=re,re=e)):(B=re,re=e),re===e&&(re=null),T=r.substring(T,B),re=B,me=B,Fe=B,de++,$r=l(),de--,$r===e?Fe=void 0:(B=Fe,Fe=e),Fe!==e?($r=I(),$r===e&&(r.length>B?($r=r.charAt(B),B++):($r=e,de===0&&we(ur))),$r!==e?(Fe=[Fe,$r],me=Fe):(B=me,me=e)):(B=me,me=e),me===e&&(me=null),re=r.substring(re,B),v=Xe(T,re),v}function yt(){var v,T;return v=O(),v===e&&(v=B,T=it(),T!==e&&(T=Qe(T)),v=T),v}function xt(){var v,T,re,me;if(v=B,T=O(),T!==e&&(T=tr(T)),v=T,v===e)if(v=B,r.charCodeAt(B)===123?(T=mr,B++):(T=e,de===0&&we(V)),T!==e){for(re=[],me=yt(),me===e&&(me=l());me!==e;)re.push(me),me=yt(),me===e&&(me=l());r.charCodeAt(B)===125?(me=Mr,B++):(me=e,de===0&&we(ae)),me!==e?v=fr(re):(B=v,v=e)}else B=v,v=e;return v}function it(){var v,T,re,me,Fe,$r,Or,Hr;if(v=B,r.charCodeAt(B)===123?(T=mr,B++):(T=e,de===0&&we(V)),T!==e){for(re=[],me=B,Fe=B,$r=B,de++,r.charCodeAt(B)===125?(Or=Mr,B++):(Or=e,de===0&&we(ae)),de--,Or===e?$r=void 0:(B=$r,$r=e),$r!==e?(Or=B,de++,Hr=it(),de--,Hr===e?Or=void 0:(B=Or,Or=e),Or!==e?(Hr=O(),Hr===e&&(Hr=l()),Hr!==e?($r=[$r,Or,Hr],Fe=$r):(B=Fe,Fe=e)):(B=Fe,Fe=e)):(B=Fe,Fe=e),Fe!==e?me=r.substring(me,B):me=Fe,me===e&&(me=it());me!==e;)re.push(me),me=B,Fe=B,$r=B,de++,r.charCodeAt(B)===125?(Or=Mr,B++):(Or=e,de===0&&we(ae)),de--,Or===e?$r=void 0:(B=$r,$r=e),$r!==e?(Or=B,de++,Hr=it(),de--,Hr===e?Or=void 0:(B=Or,Or=e),Or!==e?(Hr=O(),Hr===e&&(Hr=l()),Hr!==e?($r=[$r,Or,Hr],Fe=$r):(B=Fe,Fe=e)):(B=Fe,Fe=e)):(B=Fe,Fe=e),Fe!==e?me=r.substring(me,B):me=Fe,me===e&&(me=it());r.charCodeAt(B)===125?(me=Mr,B++):(me=e,de===0&&we(ae)),me!==e?v=Ye(re):(B=v,v=e)}else B=v,v=e;return v}function tt(){var v,T,re;for(v=B,T=[],re=l();re!==e;)T.push(re),re=l();return T=pr(),v=T,v}function l(){var v;return r.charCodeAt(B)===32?(v=Sr,B++):(v=e,de===0&&we(ce)),v===e&&(r.charCodeAt(B)===10?(v=wr,B++):(v=e,de===0&&we(Ge)),v===e&&(r.charCodeAt(B)===13?(v=ge,B++):(v=e,de===0&&we(or)))),v}function I(){var v,T,re,me,Fe;if(v=B,T=B,r.charCodeAt(B)===92?(re=Cr,B++):(re=e,de===0&&we(ee)),re!==e){if(me=[],$e.test(r.charAt(B))?(Fe=r.charAt(B),B++):(Fe=e,de===0&&we(Dr)),Fe!==e)for(;Fe!==e;)me.push(Fe),$e.test(r.charAt(B))?(Fe=r.charAt(B),B++):(Fe=e,de===0&&we(Dr));else me=e;me!==e?(re=[re,me],T=re):(B=T,T=e)}else B=T,T=e;return T!==e?v=r.substring(v,B):v=T,v===e&&(v=B,T=B,r.charCodeAt(B)===92?(re=Cr,B++):(re=e,de===0&&we(ee)),re!==e?(me=B,de++,$e.test(r.charAt(B))?(Fe=r.charAt(B),B++):(Fe=e,de===0&&we(Dr)),de--,Fe===e?me=void 0:(B=me,me=e),me!==e?(r.length>B?(Fe=r.charAt(B),B++):(Fe=e,de===0&&we(ur)),Fe!==e?(re=[re,me,Fe],T=re):(B=T,T=e)):(B=T,T=e)):(B=T,T=e),T!==e?v=r.substring(v,B):v=T),v}function O(){var v,T,re,me;return v=I(),v===e&&(v=B,T=B,de++,sr.test(r.charAt(B))?(re=r.charAt(B),B++):(re=e,de===0&&we(Pr)),de--,re===e?T=void 0:(B=T,T=e),T!==e?(re=B,de++,me=l(),de--,me===e?re=void 0:(B=re,re=e),re!==e?(r.length>B?(me=r.charAt(B),B++):(me=e,de===0&&we(ur)),me!==e?v=me:(B=v,v=e)):(B=v,v=e)):(B=v,v=e)),v}let ve={optional:{openBrace:"[",closeBrace:"]"},mandatory:{openBrace:"{",closeBrace:"}"}};function le(v,T){let re=ve[v]||{};return{type:v,...re,...T}}function ye(v){return typeof v!="object"||!v?v:v.type==="group"?`{${v.content.map(ye).join("")}}`:v}if(hr=S(),hr!==e&&B===r.length)return hr;throw hr!==e&&B<r.length&&we(G()),Ir(je,ke<r.length?r.charAt(ke):null,ke<r.length?We(ke,ke+1):We(ke,ke))}return{SyntaxError:f,parse:b}}(),nc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
25
|
+
--> `+F+`
|
|
26
|
+
`+ne+` |
|
|
27
|
+
`+S.line+" | "+d+`
|
|
28
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
29
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:Nr},S=Nr,F=Gr(),K=function(){return[]},ne=function(C,R){return{itemParts:[],...C,trailingComment:R,trailingComma:!0}},d=function(C,R){return{...C,trailingComment:R}},p=function(C,R){return E(C,R)},_=function(C){return E(null,C)},se=function(C){return{cell:C}},Se=function(){return{}},Ue=function(C){return C},ie=function(C){return C},ze=function(C,R){return{trailingComment:R,leadingParbreak:C.parbreak>0}},qe=function(C){return{whitespace:C.filter(R=>a.isWhitespace(R)).length,parbreak:C.filter(R=>a.isParbreak(R)).length}},_e=function(){return!a.allowParenGroups},Te=function(C){return a.isSameLineComment(C)},er=function(C){return C},mr=function(C){return a.isOwnLineComment(C)},Mr=function(C){return C},Sr=function(C){return a.isWhitespace(C)},wr=function(C){return C},ge=function(C){return a.isParbreak(C)},Cr=function(C){return C},ir=function(C){return a.isComma(C)},$e=function(C){return C},sr=function(C){return a.isEquals(C)},dr=function(C){return C},Rr=function(C){return a.isChar(C,"(")},ur=function(C){return C},pe=function(C){return a.isChar(C,")")},Ce=function(C){return C},L=0,Er=[{line:1,column:1}],br=0,Ar=[],Ze=0,Fr;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Gr(){return{type:"any"}}function zr(){return{type:"end"}}function Lr(C){var R=Er[C],H;if(R)return R;for(H=C-1;!Er[H];)H--;for(R=Er[H],R={line:R.line,column:R.column};H<C;)r.charCodeAt(H)===10?(R.line++,R.column=1):R.column++,H++;return Er[C]=R,R}function qr(C,R,H){var Q=Lr(C),Oe=Lr(R),rr={source:y,start:{offset:C,line:Q.line,column:Q.column},end:{offset:R,line:Oe.line,column:Oe.column}};return rr}function vr(C){L<br||(L>br&&(br=L,Ar=[]),Ar.push(C))}function Xr(C,R,H){return new f(f.buildMessage(C,R),C,R,H)}function Nr(){var C,R,H;if(C=[],R=Dr(),R===e&&(R=V(),R===e&&(R=ae())),R!==e)for(;R!==e;)C.push(R),R=Dr(),R===e&&(R=V(),R===e&&(R=ae()));else C=e;if(C===e){for(C=L,R=[],H=Je();H!==e;)R.push(H),H=Je();H=yr(),H!==e?C=K():(L=C,C=e)}return C}function V(){var C,R,H,Q,Oe,rr,Xe;if(C=L,D(),R=ce(),R===e&&(R=null),D(),H=oe(),H!==e){for(Q=[],Oe=Je();Oe!==e;)Q.push(Oe),Oe=Je();for(Oe=ee(),Oe===e&&(Oe=null),rr=[],Xe=Je();Xe!==e;)rr.push(Xe),Xe=Je();C=ne(R,Oe)}else L=C,C=e;return C}function ae(){var C,R,H;return C=L,D(),R=ce(),R!==e?(H=ee(),H===e&&(H=null),C=d(R,H)):(L=C,C=e),C}function ce(){var C,R,H,Q;if(C=L,R=or(),R!==e){for(H=[],Q=Ge();Q!==e;)H.push(Q),Q=Ge();C=p(R,H)}else L=C,C=e;if(C===e){if(C=L,R=[],H=Ge(),H!==e)for(;H!==e;)R.push(H),H=Ge();else R=e;R!==e&&(R=_(R)),C=R}return C}function Ge(){var C,R,H,Q,Oe;for(C=L,R=[],H=Be();H!==e;)R.push(H),H=Be();if(H=Wr(),H!==e){for(Q=[],Oe=Be();Oe!==e;)Q.push(Oe),Oe=Be();Oe=or(),Oe!==e?C=se(Oe):(L=C,C=e)}else L=C,C=e;if(C===e){for(C=L,R=[],H=Be();H!==e;)R.push(H),H=Be();H=Wr(),H!==e?C=Se():(L=C,C=e)}return C}function or(){var C,R,H,Q,Oe,rr,Xe,Qe,tr,fr;for(C=L,R=[],H=Je();H!==e;)R.push(H),H=Je();if(H=L,Q=[],Oe=z(),Oe===e)if(Oe=L,rr=Je(),rr===e&&(rr=Be()),rr!==e){for(Xe=L,Ze++,Qe=L,tr=[],fr=Je(),fr===e&&(fr=Be());fr!==e;)tr.push(fr),fr=Je(),fr===e&&(fr=Be());fr=z(),fr!==e?(tr=[tr,fr],Qe=tr):(L=Qe,Qe=e),Ze--,Qe!==e?(L=Xe,Xe=void 0):Xe=e,Xe!==e?(rr=[rr,Xe],Oe=rr):(L=Oe,Oe=e)}else L=Oe,Oe=e;if(Oe!==e){for(;Oe!==e;)if(Q.push(Oe),Oe=z(),Oe===e)if(Oe=L,rr=Je(),rr===e&&(rr=Be()),rr!==e){for(Xe=L,Ze++,Qe=L,tr=[],fr=Je(),fr===e&&(fr=Be());fr!==e;)tr.push(fr),fr=Je(),fr===e&&(fr=Be());fr=z(),fr!==e?(tr=[tr,fr],Qe=tr):(L=Qe,Qe=e),Ze--,Qe!==e?(L=Xe,Xe=void 0):Xe=e,Xe!==e?(rr=[rr,Xe],Oe=rr):(L=Oe,Oe=e)}else L=Oe,Oe=e}else Q=e;if(Q!==e?H=r.substring(H,L):H=Q,H!==e){for(Q=[],Oe=Je();Oe!==e;)Q.push(Oe),Oe=Je();C=Ue(H)}else L=C,C=e;return C}function ee(){var C,R,H;for(C=L,R=[],H=Je();H!==e;)R.push(H),H=Je();return H=Y(),H!==e?C=ie(H):(L=C,C=e),C}function Dr(){var C,R,H;return C=L,R=D(),H=Re(),H!==e?C=ze(R,H):(L=C,C=e),C}function Pr(){var C,R,H,Q;return C=L,R=L,H=L,Ze++,Q=j(),Ze--,Q===e?H=void 0:(L=H,H=e),H!==e?(r.length>L?(Q=r.charAt(L),L++):(Q=e,Ze===0&&vr(F)),Q!==e?(H=[H,Q],R=H):(L=R,R=e)):(L=R,R=e),R!==e?C=r.substring(C,L):C=R,C}function z(){var C,R,H,Q;return C=L,R=L,H=L,Ze++,Q=Je(),Q===e&&(Q=Be()),Ze--,Q===e?H=void 0:(L=H,H=e),H!==e?(Q=cr(),Q===e&&(Q=Pr()),Q!==e?(H=[H,Q],R=H):(L=R,R=e)):(L=R,R=e),R!==e?C=r.substring(C,L):C=R,C}function j(){var C;return C=oe(),C===e&&(C=Wr(),C===e&&(C=ee(),C===e&&(C=Re()))),C}function D(){var C,R,H;for(C=L,R=[],H=Je(),H===e&&(H=Be());H!==e;)R.push(H),H=Je(),H===e&&(H=Be());return R=qe(R),C=R,C}function cr(){var C,R,H,Q,Oe,rr,Xe,Qe,tr;if(C=L,R=_e(),R?R=e:R=void 0,R!==e){if(H=L,Q=L,Oe=gr(),Oe!==e){for(rr=[],Xe=L,Qe=L,Ze++,tr=Yr(),Ze--,tr===e?Qe=void 0:(L=Qe,Qe=e),Qe!==e?(r.length>L?(tr=r.charAt(L),L++):(tr=e,Ze===0&&vr(F)),tr!==e?(Qe=[Qe,tr],Xe=Qe):(L=Xe,Xe=e)):(L=Xe,Xe=e);Xe!==e;)rr.push(Xe),Xe=L,Qe=L,Ze++,tr=Yr(),Ze--,tr===e?Qe=void 0:(L=Qe,Qe=e),Qe!==e?(r.length>L?(tr=r.charAt(L),L++):(tr=e,Ze===0&&vr(F)),tr!==e?(Qe=[Qe,tr],Xe=Qe):(L=Xe,Xe=e)):(L=Xe,Xe=e);Xe=Yr(),Xe!==e?(Oe=[Oe,rr,Xe],Q=Oe):(L=Q,Q=e)}else L=Q,Q=e;Q!==e?H=r.substring(H,L):H=Q,H!==e?(R=[R,H],C=R):(L=C,C=e)}else L=C,C=e;return C}function Y(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=Te(R),H?H=void 0:H=e,H!==e?C=er(R):(L=C,C=e)):(L=C,C=e),C}function Re(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=mr(R),H?H=void 0:H=e,H!==e?C=Mr(R):(L=C,C=e)):(L=C,C=e),C}function Je(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=Sr(R),H?H=void 0:H=e,H!==e?C=wr(R):(L=C,C=e)):(L=C,C=e),C}function Be(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=ge(R),H?H=void 0:H=e,H!==e?C=Cr(R):(L=C,C=e)):(L=C,C=e),C}function oe(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=ir(R),H?H=void 0:H=e,H!==e?C=$e(R):(L=C,C=e)):(L=C,C=e),C}function Wr(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=sr(R),H?H=void 0:H=e,H!==e?C=dr(R):(L=C,C=e)):(L=C,C=e),C}function gr(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=Rr(R),H?H=void 0:H=e,H!==e?C=ur(R):(L=C,C=e)):(L=C,C=e),C}function Yr(){var C,R,H;return C=L,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),R!==e?(H=pe(R),H?H=void 0:H=e,H!==e?C=Ce(R):(L=C,C=e)):(L=C,C=e),C}function yr(){var C,R;return C=L,Ze++,r.length>L?(R=r.charAt(L),L++):(R=e,Ze===0&&vr(F)),Ze--,R===e?C=void 0:(L=C,C=e),C}function E(C,R){let H=[C||[]];for(let Q of R)H.push(Q.cell||[]);return{itemParts:H}}if(!a.isWhitespace)try{Object.assign(a,{isChar:(C,R)=>C.type==="string"&&C.content===R,isComma(C){return C.type==="string"&&C.content===","},isEquals(C){return C.type==="string"&&C.content==="="},isParbreak(C){return C.type==="parbreak"},isWhitespace(C){return C.type==="whitespace"},isSameLineComment:C=>C.type==="comment"&&C.sameline,isOwnLineComment:C=>C.type==="comment"&&!C.sameline,isComment:C=>C.type==="comment",allowParenGroups:!0})}catch(C){console.warn("Error when initializing parser",C)}if(Fr=S(),Fr!==e&&L===r.length)return Fr;throw Fr!==e&&L<r.length&&vr(zr()),Xr(Ar,br<r.length?r.charAt(br):null,br<r.length?qr(br,br+1):qr(br,br))}return{SyntaxError:f,parse:b}}(),ic=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
30
|
+
--> `+F+`
|
|
31
|
+
`+ne+` |
|
|
32
|
+
`+S.line+" | "+d+`
|
|
33
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
34
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:ir},S=ir,F=mr(),K=function(pe){return[].concat(...pe).filter(Ce=>!!Ce)},ne=function(){return[]},d=function(pe){return a.isHash(pe)},p=function(pe){return pe},_=function(pe){return a.isNumber(pe)},se=function(pe){return pe},Se=function(){return{type:"string",content:"#"}},Ue=function(pe){let Ce=a.splitNumber(pe);return[{type:"hash_number",number:Ce.number},Ce.rest]},ie=0,ze=[{line:1,column:1}],qe=0,_e=[],Te=0,er;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function mr(){return{type:"any"}}function Mr(){return{type:"end"}}function Sr(pe){var Ce=ze[pe],L;if(Ce)return Ce;for(L=pe-1;!ze[L];)L--;for(Ce=ze[L],Ce={line:Ce.line,column:Ce.column};L<pe;)r.charCodeAt(L)===10?(Ce.line++,Ce.column=1):Ce.column++,L++;return ze[pe]=Ce,Ce}function wr(pe,Ce,L){var Er=Sr(pe),br=Sr(Ce),Ar={source:y,start:{offset:pe,line:Er.line,column:Er.column},end:{offset:Ce,line:br.line,column:br.column}};return Ar}function ge(pe){ie<qe||(ie>qe&&(qe=ie,_e=[]),_e.push(pe))}function Cr(pe,Ce,L){return new f(f.buildMessage(pe,Ce),pe,Ce,L)}function ir(){var pe,Ce,L;if(pe=ie,Ce=[],L=dr(),L===e&&(L=Rr(),L===e&&(r.length>ie?(L=r.charAt(ie),ie++):(L=e,Te===0&&ge(F)))),L!==e)for(;L!==e;)Ce.push(L),L=dr(),L===e&&(L=Rr(),L===e&&(r.length>ie?(L=r.charAt(ie),ie++):(L=e,Te===0&&ge(F))));else Ce=e;return Ce!==e&&(Ce=K(Ce)),pe=Ce,pe===e&&(pe=ie,Ce=ur(),Ce!==e&&(Ce=ne()),pe=Ce),pe}function $e(){var pe,Ce,L;return pe=ie,r.length>ie?(Ce=r.charAt(ie),ie++):(Ce=e,Te===0&&ge(F)),Ce!==e?(L=d(Ce),L?L=void 0:L=e,L!==e?pe=p(Ce):(ie=pe,pe=e)):(ie=pe,pe=e),pe}function sr(){var pe,Ce,L;return pe=ie,r.length>ie?(Ce=r.charAt(ie),ie++):(Ce=e,Te===0&&ge(F)),Ce!==e?(L=_(Ce),L?L=void 0:L=e,L!==e?pe=se(Ce):(ie=pe,pe=e)):(ie=pe,pe=e),pe}function dr(){var pe,Ce,L;return pe=ie,Ce=$e(),Ce!==e?(L=$e(),L!==e?pe=Se():(ie=pe,pe=e)):(ie=pe,pe=e),pe}function Rr(){var pe,Ce,L;return pe=ie,Ce=$e(),Ce!==e?(L=sr(),L!==e?pe=Ue(L):(ie=pe,pe=e)):(ie=pe,pe=e),pe}function ur(){var pe,Ce;return pe=ie,Te++,r.length>ie?(Ce=r.charAt(ie),ie++):(Ce=e,Te===0&&ge(F)),Te--,Ce===e?pe=void 0:(ie=pe,pe=e),pe}if(!a.isHash)try{Object.assign(a,{isHash:pe=>pe.type==="string"&&pe.content==="#",isNumber:pe=>pe.type==="string"&&0<+pe.content.charAt(0),splitNumber:pe=>{let Ce=+pe.content.charAt(0);return pe.content.length>1?{number:Ce,rest:{type:"string",content:pe.content.slice(1)}}:{number:Ce}}})}catch(pe){console.warn("Error when initializing parser",pe)}if(er=S(),er!==e&&ie===r.length)return er;throw er!==e&&ie<r.length&&ge(Mr()),Cr(_e,qe<r.length?r.charAt(qe):null,qe<r.length?wr(qe,qe+1):wr(qe,qe))}return{SyntaxError:f,parse:b}}(),ac=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
35
|
+
--> `+F+`
|
|
36
|
+
`+ne+` |
|
|
37
|
+
`+S.line+" | "+d+`
|
|
38
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
39
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:br},S=br,F=Rr(),K=function(V){return[].concat(...V).filter(ae=>!!ae)},ne=function(){return[]},d=function(V){return a.isRecognized(V)},p=function(V){return a.isRecognized(V)},_=function(V,ae){let ce=a.split(ae);return a.isRecognized([V,ce[0]])},se=function(V,ae){let ce=a.split(ae);return[a.isRecognized([V,ce[0]]),ce[1]]},Se=function(V,ae){return a.isRecognized([V,ae])},Ue=function(V,ae){return a.isRecognized([V,ae])},ie=function(V){return a.isRecognized(V)},ze=function(V){return a.isRecognized(V)},qe=function(V){return a.isRecognized([V])},_e=function(V){return a.isRecognized([V])},Te=function(V){return a.isMacro(V)},er=function(V){return V},mr=function(V){return a.isWhitespace(V)},Mr=function(V){return V},Sr=function(V){return a.isSplitable(V)},wr=function(V){return V},ge=0,Cr=[{line:1,column:1}],ir=0,$e=[],sr=0,dr;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Rr(){return{type:"any"}}function ur(){return{type:"end"}}function pe(V){var ae=Cr[V],ce;if(ae)return ae;for(ce=V-1;!Cr[ce];)ce--;for(ae=Cr[ce],ae={line:ae.line,column:ae.column};ce<V;)r.charCodeAt(ce)===10?(ae.line++,ae.column=1):ae.column++,ce++;return Cr[V]=ae,ae}function Ce(V,ae,ce){var Ge=pe(V),or=pe(ae),ee={source:y,start:{offset:V,line:Ge.line,column:Ge.column},end:{offset:ae,line:or.line,column:or.column}};return ee}function L(V){ge<ir||(ge>ir&&(ir=ge,$e=[]),$e.push(V))}function Er(V,ae,ce){return new f(f.buildMessage(V,ae),V,ae,ce)}function br(){var V,ae,ce;if(V=ge,ae=[],ce=Ar(),ce===e&&(ce=Ze(),ce===e&&(ce=Lr(),ce===e&&(r.length>ge?(ce=r.charAt(ge),ge++):(ce=e,sr===0&&L(F))))),ce!==e)for(;ce!==e;)ae.push(ce),ce=Ar(),ce===e&&(ce=Ze(),ce===e&&(ce=Lr(),ce===e&&(r.length>ge?(ce=r.charAt(ge),ge++):(ce=e,sr===0&&L(F)))));else ae=e;return ae!==e&&(ae=K(ae)),V=ae,V===e&&(V=ge,ae=Nr(),ae!==e&&(ae=ne()),V=ae),V}function Ar(){var V,ae,ce,Ge,or;return V=ge,ae=ge,r.length>ge?(ce=r.charAt(ge),ge++):(ce=e,sr===0&&L(F)),ce!==e?(r.length>ge?(Ge=r.charAt(ge),ge++):(Ge=e,sr===0&&L(F)),Ge!==e?(r.length>ge?(or=r.charAt(ge),ge++):(or=e,sr===0&&L(F)),or!==e?(ce=[ce,Ge,or],ae=ce):(ge=ae,ae=e)):(ge=ae,ae=e)):(ge=ae,ae=e),ae!==e?(ce=d(ae),ce?ce=void 0:ce=e,ce!==e?V=p(ae):(ge=V,V=e)):(ge=V,V=e),V}function Ze(){var V;return V=Gr(),V===e&&(V=Fr(),V===e&&(V=zr())),V}function Fr(){var V,ae,ce,Ge,or;if(V=ge,ae=qr(),ae!==e){for(ce=[],Ge=vr();Ge!==e;)ce.push(Ge),Ge=vr();Ge=Xr(),Ge!==e?(or=_(ae,Ge),or?or=void 0:or=e,or!==e?V=se(ae,Ge):(ge=V,V=e)):(ge=V,V=e)}else ge=V,V=e;return V}function Gr(){var V,ae,ce,Ge,or;if(V=ge,ae=qr(),ae!==e){for(ce=[],Ge=vr();Ge!==e;)ce.push(Ge),Ge=vr();r.length>ge?(Ge=r.charAt(ge),ge++):(Ge=e,sr===0&&L(F)),Ge!==e?(or=Se(ae,Ge),or?or=void 0:or=e,or!==e?V=Ue(ae,Ge):(ge=V,V=e)):(ge=V,V=e)}else ge=V,V=e;return V}function zr(){var V,ae,ce,Ge;return V=ge,ae=ge,r.length>ge?(ce=r.charAt(ge),ge++):(ce=e,sr===0&&L(F)),ce!==e?(r.length>ge?(Ge=r.charAt(ge),ge++):(Ge=e,sr===0&&L(F)),Ge!==e?(ce=[ce,Ge],ae=ce):(ge=ae,ae=e)):(ge=ae,ae=e),ae!==e?(ce=ie(ae),ce?ce=void 0:ce=e,ce!==e?V=ze(ae):(ge=V,V=e)):(ge=V,V=e),V}function Lr(){var V,ae,ce;return V=ge,r.length>ge?(ae=r.charAt(ge),ge++):(ae=e,sr===0&&L(F)),ae!==e?(ce=qe(ae),ce?ce=void 0:ce=e,ce!==e?V=_e(ae):(ge=V,V=e)):(ge=V,V=e),V}function qr(){var V,ae,ce;return V=ge,r.length>ge?(ae=r.charAt(ge),ge++):(ae=e,sr===0&&L(F)),ae!==e?(ce=Te(ae),ce?ce=void 0:ce=e,ce!==e?V=er(ae):(ge=V,V=e)):(ge=V,V=e),V}function vr(){var V,ae,ce;return V=ge,r.length>ge?(ae=r.charAt(ge),ge++):(ae=e,sr===0&&L(F)),ae!==e?(ce=mr(ae),ce?ce=void 0:ce=e,ce!==e?V=Mr(ae):(ge=V,V=e)):(ge=V,V=e),V}function Xr(){var V,ae,ce;return V=ge,r.length>ge?(ae=r.charAt(ge),ge++):(ae=e,sr===0&&L(F)),ae!==e?(ce=Sr(ae),ce?ce=void 0:ce=e,ce!==e?V=wr(ae):(ge=V,V=e)):(ge=V,V=e),V}function Nr(){var V,ae;return V=ge,sr++,r.length>ge?(ae=r.charAt(ge),ge++):(ae=e,sr===0&&L(F)),sr--,ae===e?V=void 0:(ge=V,V=e),V}if(!a.isWhitespace)try{Object.assign(a,{isMacro:V=>V.type==="macro",isWhitespace:V=>V.type==="whitespace",isRecognized:V=>V.length==2&&V[0].content==="^"&&V[1].content==="o"?{type:"string",content:"\xF4"}:null,isSplitable:V=>V.type==="string"&&V.content.length>1,split:V=>[{type:"string",content:V.content.charAt(0)},{type:"string",content:V.content.slice(1)}]})}catch(V){console.warn("Error when initializing parser",V)}if(dr=S(),dr!==e&&ge===r.length)return dr;throw dr!==e&&ge<r.length&&L(ur()),Er($e,ir<r.length?r.charAt(ir):null,ir<r.length?Ce(ir,ir+1):Ce(ir,ir))}return{SyntaxError:f,parse:b}}(),sc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
40
|
+
--> `+F+`
|
|
41
|
+
`+ne+` |
|
|
42
|
+
`+S.line+" | "+d+`
|
|
43
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
44
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={start:xt},S=xt,F=";",K=",",ne=":",d="/",p=">",_="!",se=".",Se="!![",Ue="]",ie="!!",ze="+",qe="-",_e=/^[a-zA-Z0-9]/,Te=/^[0-9]/,er=/^[ \t\n\r]/,mr=/^[0-9a-fA-F]/,Mr=It(),Sr=Vr(";",!1),wr=Vr(",",!1),ge=_r("model list"),Cr=Vr(":",!1),ir=Vr("/",!1),$e=_r("model"),sr=_r("color spec list"),dr=_r("color spec"),Rr=_r("color"),ur=_r("function expression"),pe=Vr(">",!1),Ce=_r("function"),L=_r("extended expression"),Er=_r("core model"),br=_r("expr"),Ar=Vr("!",!1),Ze=_r("mix expr"),Fr=_r("name"),Gr=Vr(".",!1),zr=dt([["a","z"],["A","Z"],["0","9"]],!1,!1),Lr=_r("postfix"),qr=Vr("!![",!1),vr=Vr("]",!1),Xr=Vr("!!",!1),Nr=_r("prefix"),V=_r("plus"),ae=Vr("+",!1),ce=_r("minus"),Ge=Vr("-",!1),or=_r("num"),ee=dt([["0","9"]],!1,!1),Dr=_r("positive float"),Pr=_r("divisor"),z=_r("int"),j=dt([" "," ",`
|
|
45
|
+
`,"\r"],!1,!1),D=dt([["0","9"],["a","f"],["A","F"]],!1,!1),cr=function(g){return g},Y=function(g){return g},Re=function(g){return g},Je=function(g){return g},Be=function(g){return g},oe=function(g){return{type:"invalid_spec",content:g}},Wr=function(g,M){return M},gr=function(g,M){return{type:"color_set",content:[g].concat(M)}},Yr=function(g,M){return{type:"color_set_item",name:g,spec_list:M}},yr=function(g,M){return{type:"model_list",contents:M,core_model:g}},E=function(g){return{type:"model_list",contents:g,core_model:null}},C=function(g,M){return M},R=function(g,M){return[g].concat(M)},H=function(g,M){return M},Q=function(g,M){return{type:"spec_list",content:[g].concat(M)}},Oe=function(g){return{type:"hex_spec",content:[g]}},rr=function(g,M){return M},Xe=function(g,M){return M},Qe=function(g,M){return{type:"num_spec",content:M?[g].concat(M):[g]}},tr=function(g,M){return{type:"color",color:g,functions:M}},fr=function(g,M){return M},Ye=function(g,M){return{type:"function",name:g,args:M}},pr=function(g,M,W,J){return{type:"extended_expr",core_model:g,div:M,expressions:[W].concat(J)}},B=function(g,M,W){return{type:"extended_expr",core_model:g,div:null,expressions:[M].concat(W)}},Z=function(g,M){return{type:"weighted_expr",color:g,weight:M}},ke=function(g){return g},je=function(g,M,W,J){return{type:"expr",prefix:g,name:M,mix_expr:W,postfix:J}},de=function(g,M){return{type:"complete_mix",mix_percent:g,name:M}},hr=function(g){return{type:"partial_mix",mix_percent:g}},He=function(g,M){return g.concat(M||[])},A=function(g){return{type:"postfix",num:g}},q=function(g){return{type:"postfix",plusses:g}},G=function(g){return parseInt(g,10)},De=function(g){return parseFloat(g)},We=function(g){return g},we=function(g){return-g},Ir=function(g,M){return g?-M:M},x=function(g){return g.toUpperCase()},s=0,N=[{line:1,column:1}],Le=0,lr=[],te=0,Zr;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Vr(g,M){return{type:"literal",text:g,ignoreCase:M}}function dt(g,M,W){return{type:"class",parts:g,inverted:M,ignoreCase:W}}function It(){return{type:"any"}}function Nt(){return{type:"end"}}function _r(g){return{type:"other",description:g}}function _t(g){var M=N[g],W;if(M)return M;for(W=g-1;!N[W];)W--;for(M=N[W],M={line:M.line,column:M.column};W<g;)r.charCodeAt(W)===10?(M.line++,M.column=1):M.column++,W++;return N[g]=M,M}function vt(g,M,W){var J=_t(g),Ae=_t(M),Ie={source:y,start:{offset:g,line:J.line,column:J.column},end:{offset:M,line:Ae.line,column:Ae.column}};return Ie}function Me(g){s<Le||(s>Le&&(Le=s,lr=[]),lr.push(g))}function yt(g,M,W){return new f(f.buildMessage(g,M),g,M,W)}function xt(){var g,M,W,J;if(g=s,M=le(),M!==e?(W=jt(),W!==e?g=cr(M):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,M=ve(),M!==e?(W=jt(),W!==e?g=Y(M):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,M=ye(),M!==e?(W=jt(),W!==e?g=Re(M):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,M=l(),M!==e?(W=jt(),W!==e?g=Je(M):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,M=it(),M!==e?(W=jt(),W!==e?g=Be(M):(s=g,g=e)):(s=g,g=e),g===e))))){for(g=s,M=s,W=[],r.length>s?(J=r.charAt(s),s++):(J=e,te===0&&Me(Mr));J!==e;)W.push(J),r.length>s?(J=r.charAt(s),s++):(J=e,te===0&&Me(Mr));M=r.substring(M,s),M=oe(M),g=M}return g}function it(){var g,M,W,J,Ae,Ie;if(g=s,M=tt(),M!==e){for(W=[],J=s,r.charCodeAt(s)===59?(Ae=F,s++):(Ae=e,te===0&&Me(Sr)),Ae!==e?(Ie=tt(),Ie!==e?J=Wr(M,Ie):(s=J,J=e)):(s=J,J=e);J!==e;)W.push(J),J=s,r.charCodeAt(s)===59?(Ae=F,s++):(Ae=e,te===0&&Me(Sr)),Ae!==e?(Ie=tt(),Ie!==e?J=Wr(M,Ie):(s=J,J=e)):(s=J,J=e);g=gr(M,W)}else s=g,g=e;return g}function tt(){var g,M,W,J;return g=s,M=St(),M!==e?(r.charCodeAt(s)===44?(W=K,s++):(W=e,te===0&&Me(wr)),W!==e?(J=ve(),J!==e?g=Yr(M,J):(s=g,g=e)):(s=g,g=e)):(s=g,g=e),g}function l(){var g,M,W,J;return te++,g=s,M=Or(),M!==e?(r.charCodeAt(s)===58?(W=ne,s++):(W=e,te===0&&Me(Cr)),W!==e?(J=I(),J!==e?g=yr(M,J):(s=g,g=e)):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,M=I(),M!==e&&(M=E(M)),g=M),te--,g===e&&(M=e,te===0&&Me(ge)),g}function I(){var g,M,W,J,Ae,Ie;if(g=s,M=O(),M!==e){for(W=[],J=s,r.charCodeAt(s)===47?(Ae=d,s++):(Ae=e,te===0&&Me(ir)),Ae!==e?(Ie=O(),Ie!==e?J=C(M,Ie):(s=J,J=e)):(s=J,J=e);J!==e;)W.push(J),J=s,r.charCodeAt(s)===47?(Ae=d,s++):(Ae=e,te===0&&Me(ir)),Ae!==e?(Ie=O(),Ie!==e?J=C(M,Ie):(s=J,J=e)):(s=J,J=e);g=R(M,W)}else s=g,g=e;return g}function O(){var g;return te++,g=Or(),te--,g===e&&te===0&&Me($e),g}function ve(){var g,M,W,J,Ae,Ie;if(te++,g=s,M=le(),M!==e){for(W=[],J=s,r.charCodeAt(s)===47?(Ae=d,s++):(Ae=e,te===0&&Me(ir)),Ae!==e?(Ie=le(),Ie!==e?J=H(M,Ie):(s=J,J=e)):(s=J,J=e);J!==e;)W.push(J),J=s,r.charCodeAt(s)===47?(Ae=d,s++):(Ae=e,te===0&&Me(ir)),Ae!==e?(Ie=le(),Ie!==e?J=H(M,Ie):(s=J,J=e)):(s=J,J=e);g=Q(M,W)}else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(sr)),g}function le(){var g,M,W,J,Ae,Ie,xr,Qr,Dt;if(te++,g=s,M=s,W=s,J=Ft(),J!==e?(Ae=Ft(),Ae!==e?(Ie=Ft(),Ie!==e?(xr=Ft(),xr!==e?(Qr=Ft(),Qr!==e?(Dt=Ft(),Dt!==e?(J=[J,Ae,Ie,xr,Qr,Dt],W=J):(s=W,W=e)):(s=W,W=e)):(s=W,W=e)):(s=W,W=e)):(s=W,W=e)):(s=W,W=e),W!==e?M=r.substring(M,s):M=W,M!==e&&(M=Oe(M)),g=M,g===e)if(g=s,M=Ot(),M!==e){if(W=[],J=s,r.charCodeAt(s)===44?(Ae=K,s++):(Ae=e,te===0&&Me(wr)),Ae!==e?(Ie=Ot(),Ie!==e?J=rr(M,Ie):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)W.push(J),J=s,r.charCodeAt(s)===44?(Ae=K,s++):(Ae=e,te===0&&Me(wr)),Ae!==e?(Ie=Ot(),Ie!==e?J=rr(M,Ie):(s=J,J=e)):(s=J,J=e);else W=e;if(W===e)if(W=[],J=s,Ae=gn(),Ae!==e?(Ie=Ot(),Ie!==e?J=Xe(M,Ie):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)W.push(J),J=s,Ae=gn(),Ae!==e?(Ie=Ot(),Ie!==e?J=Xe(M,Ie):(s=J,J=e)):(s=J,J=e);else W=e;W===e&&(W=null),g=Qe(M,W)}else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(dr)),g}function ye(){var g,M,W,J;if(te++,g=s,M=v(),M!==e){for(W=[],J=T();J!==e;)W.push(J),J=T();g=tr(M,W)}else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(Rr)),g}function v(){var g;return g=me(),g===e&&(g=Hr(),g===e&&(g=St())),g}function T(){var g,M,W,J,Ae,Ie,xr;if(te++,g=s,r.charCodeAt(s)===62?(M=p,s++):(M=e,te===0&&Me(pe)),M!==e)if(W=re(),W!==e){for(J=[],Ae=s,r.charCodeAt(s)===44?(Ie=K,s++):(Ie=e,te===0&&Me(wr)),Ie!==e?(xr=cn(),xr!==e?Ae=fr(W,xr):(s=Ae,Ae=e)):(s=Ae,Ae=e);Ae!==e;)J.push(Ae),Ae=s,r.charCodeAt(s)===44?(Ie=K,s++):(Ie=e,te===0&&Me(wr)),Ie!==e?(xr=cn(),xr!==e?Ae=fr(W,xr):(s=Ae,Ae=e)):(s=Ae,Ae=e);g=Ye(W,J)}else s=g,g=e;else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(ur)),g}function re(){var g;return te++,g=St(),te--,g===e&&te===0&&Me(Ce),g}function me(){var g,M,W,J,Ae,Ie,xr,Qr;if(te++,g=s,M=Or(),M!==e)if(r.charCodeAt(s)===44?(W=K,s++):(W=e,te===0&&Me(wr)),W!==e)if(J=Tn(),J!==e)if(r.charCodeAt(s)===58?(Ae=ne,s++):(Ae=e,te===0&&Me(Cr)),Ae!==e)if(Ie=Fe(),Ie!==e){for(xr=[],Qr=$r();Qr!==e;)xr.push(Qr),Qr=$r();g=pr(M,J,Ie,xr)}else s=g,g=e;else s=g,g=e;else s=g,g=e;else s=g,g=e;else s=g,g=e;if(g===e)if(g=s,M=Or(),M!==e)if(r.charCodeAt(s)===58?(W=ne,s++):(W=e,te===0&&Me(Cr)),W!==e)if(J=Fe(),J!==e){for(Ae=[],Ie=$r();Ie!==e;)Ae.push(Ie),Ie=$r();g=B(M,J,Ae)}else s=g,g=e;else s=g,g=e;else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(L)),g}function Fe(){var g,M,W,J;return g=s,M=Hr(),M!==e?(r.charCodeAt(s)===44?(W=K,s++):(W=e,te===0&&Me(wr)),W!==e?(J=Ot(),J!==e?g=Z(M,J):(s=g,g=e)):(s=g,g=e)):(s=g,g=e),g}function $r(){var g,M,W;return g=s,r.charCodeAt(s)===59?(M=F,s++):(M=e,te===0&&Me(Sr)),M!==e?(W=Fe(),W!==e?g=ke(W):(s=g,g=e)):(s=g,g=e),g}function Or(){var g;return te++,g=St(),te--,g===e&&te===0&&Me(Er),g}function Hr(){var g,M,W,J,Ae;return te++,g=s,M=Bn(),W=St(),W!==e?(J=Fn(),Ae=Dn(),Ae===e&&(Ae=null),g=je(M,W,J,Ae)):(s=g,g=e),te--,g===e&&(M=e,te===0&&Me(br)),g}function fn(){var g,M,W,J,Ae;return g=s,r.charCodeAt(s)===33?(M=_,s++):(M=e,te===0&&Me(Ar)),M!==e?(W=Rt(),W!==e?(r.charCodeAt(s)===33?(J=_,s++):(J=e,te===0&&Me(Ar)),J!==e?(Ae=St(),Ae!==e?g=de(W,Ae):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)):(s=g,g=e),g}function On(){var g,M,W;return g=s,r.charCodeAt(s)===33?(M=_,s++):(M=e,te===0&&Me(Ar)),M!==e?(W=Rt(),W!==e?g=hr(W):(s=g,g=e)):(s=g,g=e),g}function Fn(){var g,M,W;for(te++,g=s,M=[],W=fn();W!==e;)M.push(W),W=fn();return W=On(),W===e&&(W=null),g=He(M,W),te--,M=e,te===0&&Me(Ze),g}function St(){var g,M,W;if(te++,r.charCodeAt(s)===46?(g=se,s++):(g=e,te===0&&Me(Gr)),g===e){if(g=s,M=[],_e.test(r.charAt(s))?(W=r.charAt(s),s++):(W=e,te===0&&Me(zr)),W!==e)for(;W!==e;)M.push(W),_e.test(r.charAt(s))?(W=r.charAt(s),s++):(W=e,te===0&&Me(zr));else M=e;M!==e?g=r.substring(g,s):g=M}return te--,g===e&&(M=e,te===0&&Me(Fr)),g}function Dn(){var g,M,W,J,Ae;if(te++,g=s,r.substr(s,3)===Se?(M=Se,s+=3):(M=e,te===0&&Me(qr)),M!==e?(W=ln(),W!==e?(r.charCodeAt(s)===93?(J=Ue,s++):(J=e,te===0&&Me(vr)),J!==e?g=A(W):(s=g,g=e)):(s=g,g=e)):(s=g,g=e),g===e)if(g=s,r.substr(s,2)===ie?(M=ie,s+=2):(M=e,te===0&&Me(Xr)),M!==e){if(W=s,J=[],Ae=un(),Ae!==e)for(;Ae!==e;)J.push(Ae),Ae=un();else J=e;J!==e?W=r.substring(W,s):W=J,W!==e?g=q(W):(s=g,g=e)}else s=g,g=e;return te--,g===e&&(M=e,te===0&&Me(Lr)),g}function Bn(){var g;return te++,g=Vt(),g===e&&(g=null),te--,te===0&&Me(Nr),g}function un(){var g,M,W;if(te++,g=s,M=[],r.charCodeAt(s)===43?(W=ze,s++):(W=e,te===0&&Me(ae)),W!==e)for(;W!==e;)M.push(W),r.charCodeAt(s)===43?(W=ze,s++):(W=e,te===0&&Me(ae));else M=e;return M!==e?g=r.substring(g,s):g=M,te--,g===e&&(M=e,te===0&&Me(V)),g}function Vt(){var g,M,W;if(te++,g=s,M=[],r.charCodeAt(s)===45?(W=qe,s++):(W=e,te===0&&Me(Ge)),W!==e)for(;W!==e;)M.push(W),r.charCodeAt(s)===45?(W=qe,s++):(W=e,te===0&&Me(Ge));else M=e;return M!==e?g=r.substring(g,s):g=M,te--,g===e&&(M=e,te===0&&Me(ce)),g}function ln(){var g,M,W,J;if(te++,g=s,M=s,W=[],Te.test(r.charAt(s))?(J=r.charAt(s),s++):(J=e,te===0&&Me(ee)),J!==e)for(;J!==e;)W.push(J),Te.test(r.charAt(s))?(J=r.charAt(s),s++):(J=e,te===0&&Me(ee));else W=e;return W!==e?M=r.substring(M,s):M=W,M!==e&&(M=G(M)),g=M,te--,g===e&&(M=e,te===0&&Me(or)),g}function Rt(){var g,M,W,J,Ae,Ie,xr,Qr,Dt,Bt;if(te++,g=s,M=s,W=s,J=s,Ae=[],Te.test(r.charAt(s))?(Ie=r.charAt(s),s++):(Ie=e,te===0&&Me(ee)),Ie!==e)for(;Ie!==e;)Ae.push(Ie),Te.test(r.charAt(s))?(Ie=r.charAt(s),s++):(Ie=e,te===0&&Me(ee));else Ae=e;if(Ae!==e?J=r.substring(J,s):J=Ae,J!==e){if(Ae=s,Ie=s,r.charCodeAt(s)===46?(xr=se,s++):(xr=e,te===0&&Me(Gr)),xr!==e){for(Qr=s,Dt=[],Te.test(r.charAt(s))?(Bt=r.charAt(s),s++):(Bt=e,te===0&&Me(ee));Bt!==e;)Dt.push(Bt),Te.test(r.charAt(s))?(Bt=r.charAt(s),s++):(Bt=e,te===0&&Me(ee));Qr=r.substring(Qr,s),xr=[xr,Qr],Ie=xr}else s=Ie,Ie=e;Ie===e&&(Ie=null),Ae=r.substring(Ae,s),J=[J,Ae],W=J}else s=W,W=e;if(W!==e?M=r.substring(M,s):M=W,M===e){if(M=s,W=s,r.charCodeAt(s)===46?(J=se,s++):(J=e,te===0&&Me(Gr)),J!==e){if(Ae=s,Ie=[],Te.test(r.charAt(s))?(xr=r.charAt(s),s++):(xr=e,te===0&&Me(ee)),xr!==e)for(;xr!==e;)Ie.push(xr),Te.test(r.charAt(s))?(xr=r.charAt(s),s++):(xr=e,te===0&&Me(ee));else Ie=e;Ie!==e?Ae=r.substring(Ae,s):Ae=Ie,Ae!==e?(J=[J,Ae],W=J):(s=W,W=e)}else s=W,W=e;W!==e?M=r.substring(M,s):M=W}return M!==e&&(M=De(M)),g=M,te--,g===e&&(M=e,te===0&&Me(Dr)),g}function Tn(){var g;return te++,g=Rt(),te--,g===e&&te===0&&Me(Pr),g}function Ot(){var g,M,W;return g=Rt(),g===e&&(g=s,r.charCodeAt(s)===43?(M=ze,s++):(M=e,te===0&&Me(ae)),M!==e?(W=Rt(),W!==e?g=We(W):(s=g,g=e)):(s=g,g=e),g===e&&(g=s,r.charCodeAt(s)===45?(M=qe,s++):(M=e,te===0&&Me(Ge)),M!==e?(W=Rt(),W!==e?g=we(W):(s=g,g=e)):(s=g,g=e))),g}function cn(){var g,M,W;return te++,g=s,M=Vt(),M===e&&(M=null),W=ln(),W!==e?g=Ir(M,W):(s=g,g=e),te--,g===e&&(M=e,te===0&&Me(z)),g}function gn(){var g,M;if(g=[],er.test(r.charAt(s))?(M=r.charAt(s),s++):(M=e,te===0&&Me(j)),M!==e)for(;M!==e;)g.push(M),er.test(r.charAt(s))?(M=r.charAt(s),s++):(M=e,te===0&&Me(j));else g=e;return g}function Ft(){var g,M;return g=s,mr.test(r.charAt(s))?(M=r.charAt(s),s++):(M=e,te===0&&Me(D)),M!==e&&(M=x(M)),g=M,g}function jt(){var g,M;return g=s,te++,r.length>s?(M=r.charAt(s),s++):(M=e,te===0&&Me(Mr)),te--,M===e?g=void 0:(s=g,g=e),g}if(Zr=S(),Zr!==e&&s===r.length)return Zr;throw Zr!==e&&s<r.length&&Me(Nt()),yt(lr,Le<r.length?r.charAt(Le):null,Le<r.length?vt(Le,Le+1):vt(Le,Le))}return{SyntaxError:f,parse:b}}(),oc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
46
|
+
--> `+F+`
|
|
47
|
+
`+ne+` |
|
|
48
|
+
`+S.line+" | "+d+`
|
|
49
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
50
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:Q},S=Q,F=yr("decl_start"),K=yr("decl_end"),ne=yr("vert"),d=gr(),p=yr("l"),_=yr("r"),se=yr("c"),Se=yr("p"),Ue=yr("m"),ie=yr("b"),ze=yr("w"),qe=yr("W"),_e=yr("X"),Te=yr("!"),er=yr("@"),mr=yr("<"),Mr=yr(">"),Sr=yr("group"),wr=yr("whitespace"),ge=function(x){return x},Cr=function(x){return x},ir=function(){return[]},$e=function(x,s,N,Le,lr){return{type:"column",pre_dividers:x,post_dividers:lr,before_start_code:s,before_end_code:Le,alignment:N}},sr=function(){return{type:"vert_divider"}},dr=function(x,s){return{type:"bang_divider",content:s[0].content}},Rr=function(x){return{type:"at_divider",content:x[0].content}},ur=function(x){return x},pe=function(x){return{type:"decl_code",code:x[0].content}},Ce=function(x){return{type:"decl_code",code:x[0].content}},L=function(){return{type:"alignment",alignment:"left"}},Er=function(){return{type:"alignment",alignment:"center"}},br=function(){return{type:"alignment",alignment:"right"}},Ar=function(){return{type:"alignment",alignment:"X"}},Ze=function(){return"top"},Fr=function(){return"default"},Gr=function(){return"bottom"},zr=function(x,s){return{type:"alignment",alignment:"parbox",baseline:x,size:s[0].content}},Lr=function(x,s){return{type:"alignment",alignment:"parbox",baseline:x[0].content,size:s[0].content}},qr=function(x){return a.matchChar(x,"|")},vr=function(x){return a.matchChar(x,"l")},Xr=function(x){return a.matchChar(x,"r")},Nr=function(x){return a.matchChar(x,"c")},V=function(x){return a.matchChar(x,"p")},ae=function(x){return a.matchChar(x,"m")},ce=function(x){return a.matchChar(x,"b")},Ge=function(x){return a.matchChar(x,"w")},or=function(x){return a.matchChar(x,"W")},ee=function(x){return a.matchChar(x,"X")},Dr=function(x){return a.matchChar(x,"!")},Pr=function(x){return a.matchChar(x,"@")},z=function(x){return a.matchChar(x,"<")},j=function(x){return a.matchChar(x,">")},D=function(x){return a.isGroup(x)},cr=function(x){return a.isWhitespace(x)},Y=0,Re=[{line:1,column:1}],Je=0,Be=[],oe=0,Wr;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function gr(){return{type:"any"}}function Yr(){return{type:"end"}}function yr(x){return{type:"other",description:x}}function E(x){var s=Re[x],N;if(s)return s;for(N=x-1;!Re[N];)N--;for(s=Re[N],s={line:s.line,column:s.column};N<x;)r.charCodeAt(N)===10?(s.line++,s.column=1):s.column++,N++;return Re[x]=s,s}function C(x,s,N){var Le=E(x),lr=E(s),te={source:y,start:{offset:x,line:Le.line,column:Le.column},end:{offset:s,line:lr.line,column:lr.column}};return te}function R(x){Y<Je||(Y>Je&&(Je=Y,Be=[]),Be.push(x))}function H(x,s,N){return new f(f.buildMessage(x,s),x,s,N)}function Q(){var x,s,N,Le,lr,te;if(x=Y,s=[],N=Y,Le=Oe(),Le!==e){for(lr=[],te=we();te!==e;)lr.push(te),te=we();N=ge(Le)}else Y=N,N=e;if(N!==e)for(;N!==e;)if(s.push(N),N=Y,Le=Oe(),Le!==e){for(lr=[],te=we();te!==e;)lr.push(te),te=we();N=ge(Le)}else Y=N,N=e;else s=e;return s!==e&&(s=Cr(s)),x=s,x===e&&(x=Y,s=Ir(),s!==e&&(s=ir()),x=s),x}function Oe(){var x,s,N,Le,lr,te,Zr;for(x=Y,s=[],N=rr();N!==e;)s.push(N),N=rr();if(N=Xe(),N===e&&(N=null),Le=tr(),Le!==e){for(lr=Qe(),lr===e&&(lr=null),te=[],Zr=rr();Zr!==e;)te.push(Zr),Zr=rr();x=$e(s,N,Le,lr,te)}else Y=x,x=e;return x}function rr(){var x,s,N,Le,lr;for(x=Y,s=[],N=we();N!==e;)s.push(N),N=we();if(N=Y,Le=fr(),Le!==e&&(Le=sr()),N=Le,N===e&&(N=Y,Le=A(),Le!==e?(lr=We(),lr!==e?N=dr(Le,lr):(Y=N,N=e)):(Y=N,N=e),N===e&&(N=Y,Le=q(),Le!==e?(lr=We(),lr!==e?N=Rr(lr):(Y=N,N=e)):(Y=N,N=e))),N!==e){for(Le=[],lr=we();lr!==e;)Le.push(lr),lr=we();x=ur(N)}else Y=x,x=e;return x}function Xe(){var x,s,N;return oe++,x=Y,s=De(),s!==e?(N=We(),N!==e?x=pe(N):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(F)),x}function Qe(){var x,s,N;return oe++,x=Y,s=G(),s!==e?(N=We(),N!==e?x=Ce(N):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(K)),x}function tr(){var x,s,N,Le,lr,te;if(x=Y,s=Ye(),s!==e&&(s=L()),x=s,x===e&&(x=Y,s=B(),s!==e&&(s=Er()),x=s,x===e&&(x=Y,s=pr(),s!==e&&(s=br()),x=s,x===e&&(x=Y,s=He(),s!==e&&(s=Ar()),x=s,x===e)))){if(x=Y,s=Y,N=Z(),N!==e&&(N=Ze()),s=N,s===e&&(s=Y,N=ke(),N!==e&&(N=Fr()),s=N,s===e&&(s=Y,N=je(),N!==e&&(N=Gr()),s=N)),s!==e){for(N=[],Le=we();Le!==e;)N.push(Le),Le=we();Le=We(),Le!==e?x=zr(s,Le):(Y=x,x=e)}else Y=x,x=e;if(x===e)if(x=Y,s=de(),s===e&&(s=hr()),s!==e){for(N=[],Le=we();Le!==e;)N.push(Le),Le=we();if(Le=We(),Le!==e){for(lr=[],te=we();te!==e;)lr.push(te),te=we();te=We(),te!==e?x=Lr(Le,te):(Y=x,x=e)}else Y=x,x=e}else Y=x,x=e}return x}function fr(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=qr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(ne)),x}function Ye(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=vr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(p)),x}function pr(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=Xr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(_)),x}function B(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=Nr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(se)),x}function Z(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=V(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(Se)),x}function ke(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=ae(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(Ue)),x}function je(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=ce(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(ie)),x}function de(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=Ge(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(ze)),x}function hr(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=or(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(qe)),x}function He(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=ee(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(_e)),x}function A(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=Dr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(Te)),x}function q(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=Pr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(er)),x}function G(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=z(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(mr)),x}function De(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=j(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(Mr)),x}function We(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=D(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(Sr)),x}function we(){var x,s,N;return oe++,x=Y,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),s!==e?(N=cr(s),N?N=void 0:N=e,N!==e?(s=[s,N],x=s):(Y=x,x=e)):(Y=x,x=e),oe--,x===e&&(s=e,oe===0&&R(wr)),x}function Ir(){var x,s;return x=Y,oe++,r.length>Y?(s=r.charAt(Y),Y++):(s=e,oe===0&&R(d)),oe--,s===e?x=void 0:(Y=x,x=e),x}if(!a.isHash)try{Object.assign(a,{matchChar:(x,s)=>x.type==="string"&&x.content===s,isGroup:x=>x.type==="group",isWhitespace:x=>x.type==="whitespace"})}catch(x){console.warn("Error when initializing parser",x)}if(Wr=S(),Wr!==e&&Y===r.length)return Wr;throw Wr!==e&&Y<r.length&&R(Yr()),H(Be,Je<r.length?r.charAt(Je):null,Je<r.length?C(Je,Je+1):C(Je,Je))}return{SyntaxError:f,parse:b}}(),fc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
51
|
+
--> `+F+`
|
|
52
|
+
`+ne+` |
|
|
53
|
+
`+S.line+" | "+d+`
|
|
54
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
55
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={body:gr},S=gr,F=Re("item"),K=cr(),ne=Re("equation"),d=Re("trailing comment"),p=Re("comment only line"),_=Re("non-var token"),se=Re("token"),Se=Re("same line comment"),Ue=Re("own line comment"),ie=Re(","),ze=Re("@"),qe=Re("variable token"),_e=Re("+/-"),Te=Re("="),er=function(A,q){return A.concat(q||[])},mr=function(){return[]},Mr=function(A,q,G,De){return{type:"item",op:A,variable:G,content:q.concat(G,De)}},Sr=function(A,q){return{type:"item",op:A,variable:null,content:q}},wr=function(A,q,G){return{...A,sep:[].concat(q),trailingComment:G}},ge=function(A,q){return{...A,trailingComment:q}},Cr=function(A,q){return{type:"line",equation:A,annotation:q,sep:null}},ir=function(A,q){return A?{type:"annotation",marker:A,content:q}:null},$e=function(A,q,G){return{type:"equation",left:A,right:G,equals:q}},sr=function(A){return A},dr=function(A){return{type:"line",trailingComment:A}},Rr=function(A,q){return[A].concat(q||[])},ur=function(A){return A},pe=function(A){return A},Ce=function(A){return A},L=function(A){return a.isSameLineComment(A)},Er=function(A){return A},br=function(A){return a.isOwnLineComment(A)},Ar=function(A){return A},Ze=function(A){return a.isWhitespace(A)},Fr=function(A){return A},Gr=function(A){return a.isSep(A)},zr=function(A){return A},Lr=function(A){return a.isAt(A)},qr=function(A){return A},vr=function(A){return a.isVar(A)},Xr=function(A){return A},Nr=function(A){return a.isOperation(A)},V=function(A){return A},ae=function(A){return a.isEquals(A)},ce=function(A){return A},Ge=function(A){return a.isSubscript(A)},or=function(A){return A},ee=0,Dr=[{line:1,column:1}],Pr=0,z=[],j=0,D;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function cr(){return{type:"any"}}function Y(){return{type:"end"}}function Re(A){return{type:"other",description:A}}function Je(A){var q=Dr[A],G;if(q)return q;for(G=A-1;!Dr[G];)G--;for(q=Dr[G],q={line:q.line,column:q.column};G<A;)r.charCodeAt(G)===10?(q.line++,q.column=1):q.column++,G++;return Dr[A]=q,q}function Be(A,q,G){var De=Je(A),We=Je(q),we={source:y,start:{offset:A,line:De.line,column:De.column},end:{offset:q,line:We.line,column:We.column}};return we}function oe(A){ee<Pr||(ee>Pr&&(Pr=ee,z=[]),z.push(A))}function Wr(A,q,G){return new f(f.buildMessage(A,q),A,q,G)}function gr(){var A,q,G;for(A=ee,q=[],G=Oe(),G===e&&(G=yr(),G===e&&(G=E()));G!==e;)q.push(G),G=Oe(),G===e&&(G=yr(),G===e&&(G=E()));return G=C(),G===e&&(G=He()),G!==e?A=er(q,G):(ee=A,A=e),A===e&&(A=ee,q=He(),q!==e&&(q=mr()),A=q),A}function Yr(){var A,q,G,De,We,we,Ir,x,s,N;for(j++,A=ee,q=je(),q===e&&(q=null),G=[],De=pr();De!==e;)G.push(De),De=pr();for(De=[],We=Xe();We!==e;)De.push(We),We=Xe();for(We=[],we=pr();we!==e;)We.push(we),we=pr();if(we=rr(),we!==e){for(Ir=[],x=pr();x!==e;)Ir.push(x),x=pr();for(x=[],s=tr();s!==e;)x.push(s),s=tr();for(s=[],N=pr();N!==e;)s.push(N),N=pr();A=Mr(q,De,we,x)}else ee=A,A=e;if(A===e){for(A=ee,q=je(),q===e&&(q=null),G=[],De=pr();De!==e;)G.push(De),De=pr();if(De=[],We=Xe(),We!==e)for(;We!==e;)De.push(We),We=Xe();else De=e;if(De!==e){for(We=[],we=pr();we!==e;)We.push(we),we=pr();A=Sr(q,De)}else ee=A,A=e}return j--,A===e&&(q=e,j===0&&oe(F)),A}function yr(){var A,q,G,De;return A=ee,q=C(),q!==e?(G=B(),G!==e?(De=Q(),De===e&&(De=null),A=wr(q,G,De)):(ee=A,A=e)):(ee=A,A=e),A}function E(){var A,q,G;return A=ee,q=C(),q!==e?(G=Q(),G!==e?A=ge(q,G):(ee=A,A=e)):(ee=A,A=e),A}function C(){var A,q,G,De;return A=ee,q=ee,j++,r.length>ee?(G=r.charAt(ee),ee++):(G=e,j===0&&oe(K)),j--,G!==e?(ee=q,q=void 0):q=e,q!==e?(G=H(),De=R(),De===e&&(De=null),A=Cr(G,De)):(ee=A,A=e),A}function R(){var A,q,G,De;if(A=ee,q=Z(),q!==e){for(G=[],De=Qe();De!==e;)G.push(De),De=Qe();A=ir(q,G)}else ee=A,A=e;return A}function H(){var A,q,G,De,We;for(j++,A=ee,q=[],G=Yr();G!==e;)q.push(G),G=Yr();for(G=de(),G===e&&(G=null),De=[],We=tr(),We===e&&(We=je());We!==e;)De.push(We),We=tr(),We===e&&(We=je());return A=$e(q,G,De),j--,q=e,j===0&&oe(ne),A}function Q(){var A,q,G;for(j++,A=ee,q=[],G=pr();G!==e;)q.push(G),G=pr();return G=fr(),G!==e?A=sr(G):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(d)),A}function Oe(){var A,q,G;for(j++,A=ee,q=[],G=pr();G!==e;)q.push(G),G=pr();return G=Ye(),G!==e?A=dr(G):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(p)),A}function rr(){var A,q,G,De;if(A=ee,q=ke(),q!==e){for(G=[],De=pr();De!==e;)G.push(De),De=pr();De=hr(),De===e&&(De=null),A=Rr(q,De)}else ee=A,A=e;return A}function Xe(){var A,q,G;return j++,A=ee,q=ee,j++,G=rr(),j--,G===e?q=void 0:(ee=q,q=e),q!==e?(G=tr(),G!==e?A=ur(G):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(_)),A}function Qe(){var A,q,G;return A=ee,q=ee,j++,G=B(),G===e&&(G=Q(),G===e&&(G=Ye())),j--,G===e?q=void 0:(ee=q,q=e),q!==e?(r.length>ee?(G=r.charAt(ee),ee++):(G=e,j===0&&oe(K)),G!==e?A=pe(G):(ee=A,A=e)):(ee=A,A=e),A}function tr(){var A,q,G;return j++,A=ee,q=ee,j++,G=B(),G===e&&(G=Z(),G===e&&(G=je(),G===e&&(G=de(),G===e&&(G=Q(),G===e&&(G=Ye()))))),j--,G===e?q=void 0:(ee=q,q=e),q!==e?(r.length>ee?(G=r.charAt(ee),ee++):(G=e,j===0&&oe(K)),G!==e?A=Ce(G):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(se)),A}function fr(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=L(q),G?G=void 0:G=e,G!==e?A=Er(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(Se)),A}function Ye(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=br(q),G?G=void 0:G=e,G!==e?A=Ar(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(Ue)),A}function pr(){var A,q,G;return A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=Ze(q),G?G=void 0:G=e,G!==e?A=Fr(q):(ee=A,A=e)):(ee=A,A=e),A}function B(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=Gr(q),G?G=void 0:G=e,G!==e?A=zr(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(ie)),A}function Z(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=Lr(q),G?G=void 0:G=e,G!==e?A=qr(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(ze)),A}function ke(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=vr(q),G?G=void 0:G=e,G!==e?A=Xr(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(qe)),A}function je(){var A,q,G,De,We;for(j++,A=ee,q=[],G=pr();G!==e;)q.push(G),G=pr();if(r.length>ee?(G=r.charAt(ee),ee++):(G=e,j===0&&oe(K)),G!==e){for(De=[],We=pr();We!==e;)De.push(We),We=pr();We=Nr(G),We?We=void 0:We=e,We!==e?A=V(G):(ee=A,A=e)}else ee=A,A=e;return j--,A===e&&(q=e,j===0&&oe(_e)),A}function de(){var A,q,G;return j++,A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=ae(q),G?G=void 0:G=e,G!==e?A=ce(q):(ee=A,A=e)):(ee=A,A=e),j--,A===e&&(q=e,j===0&&oe(Te)),A}function hr(){var A,q,G;return A=ee,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),q!==e?(G=Ge(q),G?G=void 0:G=e,G!==e?A=or(q):(ee=A,A=e)):(ee=A,A=e),A}function He(){var A,q;return A=ee,j++,r.length>ee?(q=r.charAt(ee),ee++):(q=e,j===0&&oe(K)),j--,q===e?A=void 0:(ee=A,A=e),A}if(!a.isWhitespace)try{Object.assign(a,{isSep:A=>A.type==="string"&&A.content===",",isVar:A=>A.type==="string"&&A.content.match(/[a-zA-Z]/),isOperation:A=>A.type==="string"&&A.content.match(/[+-]/),isEquals:A=>A.type==="string"&&A.content==="=",isAt:A=>A.type==="string"&&A.content==="@",isSubscript:A=>A.content==="_",isWhitespace:A=>A.type==="whitespace",isSameLineComment:A=>A.type==="comment"&&A.sameline,isOwnLineComment:A=>A.type==="comment"&&!A.sameline})}catch(A){console.warn("Error when initializing parser",A)}if(D=S(),D!==e&&ee===r.length)return D;throw D!==e&&ee<r.length&&oe(Y()),Wr(z,Pr<r.length?r.charAt(Pr):null,Pr<r.length?Be(Pr,Pr+1):Be(Pr,Pr))}return{SyntaxError:f,parse:b}}(),uc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
56
|
+
--> `+F+`
|
|
57
|
+
`+ne+` |
|
|
58
|
+
`+S.line+" | "+d+`
|
|
59
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
60
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={root:rr},S=rr,F="plus",K="minus",ne="pt",d="mm",p="cm",_="in",se="ex",Se="em",Ue="bp",ie="pc",ze="dd",qe="cc",_e="nd",Te="nc",er="sp",mr="filll",Mr="fill",Sr="fil",wr=".",ge="+",Cr="-",ir=/^[0-9]/,$e=yr(),sr=gr("plus",!1),dr=gr("minus",!1),Rr=gr("pt",!1),ur=gr("mm",!1),pe=gr("cm",!1),Ce=gr("in",!1),L=gr("ex",!1),Er=gr("em",!1),br=gr("bp",!1),Ar=gr("pc",!1),Ze=gr("dd",!1),Fr=gr("cc",!1),Gr=gr("nd",!1),zr=gr("nc",!1),Lr=gr("sp",!1),qr=gr("filll",!1),vr=gr("fill",!1),Xr=gr("fil",!1),Nr=C("number"),V=Yr([["0","9"]],!1,!1),ae=gr(".",!1),ce=gr("+",!1),Ge=gr("-",!1),or=function(Z,ke,je){return{type:"glue",fixed:Z,stretchable:ke,shrinkable:je,position:Wr()}},ee=function(Z){return Z},Dr=function(Z,ke){return{type:"dim",value:Z,unit:ke}},Pr=function(Z,ke){return{type:"dim",value:Z,unit:ke}},z=function(Z,ke){return{type:"dim",value:Z,unit:ke}},j=function(Z){return parseFloat(Z)},D=0,cr=0,Y=[{line:1,column:1}],Re=0,Je=[],Be=0,oe;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function Wr(){return H(cr,D)}function gr(Z,ke){return{type:"literal",text:Z,ignoreCase:ke}}function Yr(Z,ke,je){return{type:"class",parts:Z,inverted:ke,ignoreCase:je}}function yr(){return{type:"any"}}function E(){return{type:"end"}}function C(Z){return{type:"other",description:Z}}function R(Z){var ke=Y[Z],je;if(ke)return ke;for(je=Z-1;!Y[je];)je--;for(ke=Y[je],ke={line:ke.line,column:ke.column};je<Z;)r.charCodeAt(je)===10?(ke.line++,ke.column=1):ke.column++,je++;return Y[Z]=ke,ke}function H(Z,ke,je){var de=R(Z),hr=R(ke),He={source:y,start:{offset:Z,line:de.line,column:de.column},end:{offset:ke,line:hr.line,column:hr.column}};return He}function Q(Z){D<Re||(D>Re&&(Re=D,Je=[]),Je.push(Z))}function Oe(Z,ke,je){return new f(f.buildMessage(Z,ke),Z,ke,je)}function rr(){var Z,ke,je,de,hr;if(Z=D,ke=D,je=Xe(),je!==e?(de=Qe(),de===e&&(de=null),hr=tr(),hr===e&&(hr=null),cr=ke,ke=or(je,de,hr)):(D=ke,ke=e),ke!==e){for(je=[],r.length>D?(de=r.charAt(D),D++):(de=e,Be===0&&Q($e));de!==e;)je.push(de),r.length>D?(de=r.charAt(D),D++):(de=e,Be===0&&Q($e));cr=Z,Z=ee(ke)}else D=Z,Z=e;return Z}function Xe(){var Z,ke,je;return Z=D,ke=pr(),ke!==e?(je=fr(),je!==e?(cr=Z,Z=Dr(ke,je)):(D=Z,Z=e)):(D=Z,Z=e),Z}function Qe(){var Z,ke,je,de;return Z=D,r.substr(D,4)===F?(ke=F,D+=4):(ke=e,Be===0&&Q(sr)),ke!==e?(je=pr(),je!==e?(de=Ye(),de!==e?(cr=Z,Z=Pr(je,de)):(D=Z,Z=e)):(D=Z,Z=e)):(D=Z,Z=e),Z}function tr(){var Z,ke,je,de;return Z=D,r.substr(D,5)===K?(ke=K,D+=5):(ke=e,Be===0&&Q(dr)),ke!==e?(je=pr(),je!==e?(de=Ye(),de!==e?(cr=Z,Z=z(je,de)):(D=Z,Z=e)):(D=Z,Z=e)):(D=Z,Z=e),Z}function fr(){var Z;return r.substr(D,2)===ne?(Z=ne,D+=2):(Z=e,Be===0&&Q(Rr)),Z===e&&(r.substr(D,2)===d?(Z=d,D+=2):(Z=e,Be===0&&Q(ur)),Z===e&&(r.substr(D,2)===p?(Z=p,D+=2):(Z=e,Be===0&&Q(pe)),Z===e&&(r.substr(D,2)===_?(Z=_,D+=2):(Z=e,Be===0&&Q(Ce)),Z===e&&(r.substr(D,2)===se?(Z=se,D+=2):(Z=e,Be===0&&Q(L)),Z===e&&(r.substr(D,2)===Se?(Z=Se,D+=2):(Z=e,Be===0&&Q(Er)),Z===e&&(r.substr(D,2)===Ue?(Z=Ue,D+=2):(Z=e,Be===0&&Q(br)),Z===e&&(r.substr(D,2)===ie?(Z=ie,D+=2):(Z=e,Be===0&&Q(Ar)),Z===e&&(r.substr(D,2)===ze?(Z=ze,D+=2):(Z=e,Be===0&&Q(Ze)),Z===e&&(r.substr(D,2)===qe?(Z=qe,D+=2):(Z=e,Be===0&&Q(Fr)),Z===e&&(r.substr(D,2)===_e?(Z=_e,D+=2):(Z=e,Be===0&&Q(Gr)),Z===e&&(r.substr(D,2)===Te?(Z=Te,D+=2):(Z=e,Be===0&&Q(zr)),Z===e&&(r.substr(D,2)===er?(Z=er,D+=2):(Z=e,Be===0&&Q(Lr)))))))))))))),Z}function Ye(){var Z;return Z=fr(),Z===e&&(r.substr(D,5)===mr?(Z=mr,D+=5):(Z=e,Be===0&&Q(qr)),Z===e&&(r.substr(D,4)===Mr?(Z=Mr,D+=4):(Z=e,Be===0&&Q(vr)),Z===e&&(r.substr(D,3)===Sr?(Z=Sr,D+=3):(Z=e,Be===0&&Q(Xr))))),Z}function pr(){var Z,ke,je,de,hr,He,A,q,G;for(Be++,Z=D,ke=D,je=D,de=B(),de===e&&(de=null),hr=D,He=[],ir.test(r.charAt(D))?(A=r.charAt(D),D++):(A=e,Be===0&&Q(V));A!==e;)He.push(A),ir.test(r.charAt(D))?(A=r.charAt(D),D++):(A=e,Be===0&&Q(V));if(r.charCodeAt(D)===46?(A=wr,D++):(A=e,Be===0&&Q(ae)),A!==e){if(q=[],ir.test(r.charAt(D))?(G=r.charAt(D),D++):(G=e,Be===0&&Q(V)),G!==e)for(;G!==e;)q.push(G),ir.test(r.charAt(D))?(G=r.charAt(D),D++):(G=e,Be===0&&Q(V));else q=e;q!==e?(He=[He,A,q],hr=He):(D=hr,hr=e)}else D=hr,hr=e;if(hr===e)if(hr=[],ir.test(r.charAt(D))?(He=r.charAt(D),D++):(He=e,Be===0&&Q(V)),He!==e)for(;He!==e;)hr.push(He),ir.test(r.charAt(D))?(He=r.charAt(D),D++):(He=e,Be===0&&Q(V));else hr=e;return hr!==e?(de=[de,hr],je=de):(D=je,je=e),je!==e?ke=r.substring(ke,D):ke=je,ke!==e&&(cr=Z,ke=j(ke)),Z=ke,Be--,Z===e&&(ke=e,Be===0&&Q(Nr)),Z}function B(){var Z;return r.charCodeAt(D)===43?(Z=ge,D++):(Z=e,Be===0&&Q(ce)),Z===e&&(r.charCodeAt(D)===45?(Z=Cr,D++):(Z=e,Be===0&&Q(Ge))),Z}if(oe=S(),oe!==e&&D===r.length)return oe;throw oe!==e&&D<r.length&&Q(E()),Oe(Je,Re<r.length?r.charAt(Re):null,Re<r.length?H(Re,Re+1):H(Re,Re))}return{SyntaxError:f,parse:b}}(),lc=function(){function i(r,a){function e(){this.constructor=r}e.prototype=a.prototype,r.prototype=new e}function f(r,a,e,y){var $=Error.call(this,r);return Object.setPrototypeOf&&Object.setPrototypeOf($,f.prototype),$.expected=a,$.found=e,$.location=y,$.name="SyntaxError",$}i(f,Error);function m(r,a,e){return e=e||" ",r.length>a?r:(a-=r.length,e+=e.repeat(a),r+e.slice(0,a))}f.prototype.format=function(r){var a="Error: "+this.message;if(this.location){var e=null,y;for(y=0;y<r.length;y++)if(r[y].source===this.location.source){e=r[y].text.split(/\r\n|\n|\r/g);break}var $=this.location.start,S=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset($):$,F=this.location.source+":"+S.line+":"+S.column;if(e){var K=this.location.end,ne=m("",S.line.toString().length," "),d=e[$.line-1],p=$.line===K.line?K.column:d.length+1,_=p-$.column||1;a+=`
|
|
61
|
+
--> `+F+`
|
|
62
|
+
`+ne+` |
|
|
63
|
+
`+S.line+" | "+d+`
|
|
64
|
+
`+ne+" | "+m("",$.column-1," ")+m("",_,"^")}else a+=`
|
|
65
|
+
at `+F}return a},f.buildMessage=function(r,a){var e={literal:function(d){return'"'+$(d.text)+'"'},class:function(d){var p=d.parts.map(function(_){return Array.isArray(_)?S(_[0])+"-"+S(_[1]):S(_)});return"["+(d.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function y(d){return d.charCodeAt(0).toString(16).toUpperCase()}function $(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function S(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+y(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+y(p)})}function F(d){return e[d.type](d)}function K(d){var p=d.map(F),_,se;if(p.sort(),p.length>0){for(_=1,se=1;_<p.length;_++)p[_-1]!==p[_]&&(p[se]=p[_],se++);p.length=se}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function ne(d){return d?'"'+$(d)+'"':"end of input"}return"Expected "+K(r)+" but "+ne(a)+" found."};function b(r,a){a=a!==void 0?a:{};var e={},y=a.grammarSource,$={path_spec:B,foreach_body:je},S=B,F=rr(),K=Qe("comment"),ne=Qe("floating comment"),d=Qe("operation"),p=Qe("="),_=function(l){return l},se=function(l){return{type:"path_spec",content:l}},Se=function(l,I,O){return{op:I,comment:O}},Ue=function(l,I,O,ve){let le=[l,...I.map(v=>v.comment),O].filter(v=>v),ye=I.map(v=>v.op.content.content).join(" ");return{type:"animation",comments:le,attribute:ye,content:ve.content}},ie=function(l,I){return{...I,start:l,type:"foreach"}},ze=function(l,I,O,ve,le,ye,v,T){let re=[l,ve,le,v].filter(me=>me);return{type:"foreach_body",variables:I,options:O&&O.content,list:ye,command:T,comments:re}},qe=function(l,I,O,ve){let le=[l,O].filter(ye=>ye);return{type:"svg_operation",options:I&&I.content,content:ve,comments:le}},_e=function(l,I,O,ve,le,ye){return{coord:ye,comment:le}},Te=function(l,I,O,ve,le,ye){let v=[l,I,ve,le&&le.comment,ye].filter(T=>T);return{type:"curve_to",controls:le?[O,le.coord]:[O],comments:v}},er=function(){return{type:"line_to",command:"|-"}},mr=function(){return{type:"line_to",command:"-|"}},Mr=function(){return{type:"line_to",command:"--"}},Sr=function(l,I){return{type:"coordinate",content:I,prefix:l}},wr=function(l){return{type:"square_brace_group",content:l}},ge=function(l){return{type:"unknown",content:l}},Cr=function(l){return a.isComment(l)},ir=function(l){return l},$e=function(l){return a.isWhitespace(l)},sr=function(l){return l},dr=function(l){return l},Rr=function(l){return a.isOperation(l)},ur=function(l){return{type:"operation",content:l}},pe=function(l){return a.isChar(l,"=")},Ce=function(l){return l},L=function(l){return a.isChar(l,"[")},Er=function(l){return l},br=function(l){return a.isChar(l,"]")},Ar=function(l){return l},Ze=function(l){return a.isChar(l,"(")},Fr=function(l){return l},Gr=function(l){return a.isChar(l,")")},zr=function(l){return l},Lr=function(l){return a.isChar(l,"+")},qr=function(l){return l},vr=function(l){return a.isChar(l,"-")},Xr=function(l){return l},Nr=function(l){return a.isChar(l,"|")},V=function(l){return l},ae=function(l){return a.isChar(l,".")},ce=function(l){return l},Ge=function(l){return a.isChar(l,"controls")},or=function(l){return l},ee=function(l){return a.isChar(l,"and")},Dr=function(l){return l},Pr=function(l){return a.isChar(l,"svg")},z=function(l){return l},j=function(l){return a.isGroup(l)},D=function(l){return l},cr=function(l){return a.isAnyMacro(l)},Y=function(l){return l},Re=function(l){return a.isChar(l,"foreach")},Je=function(l){return l},Be=function(l){return a.isMacro(l,"foreach")},oe=function(l){return l},Wr=function(l){return a.isChar(l,"in")},gr=function(l){return l},Yr=function(l){return a.isChar(l,":")},yr=function(l){return l},E=0,C=[{line:1,column:1}],R=0,H=[],Q=0,Oe;if("startRule"in a){if(!(a.startRule in $))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');S=$[a.startRule]}function rr(){return{type:"any"}}function Xe(){return{type:"end"}}function Qe(l){return{type:"other",description:l}}function tr(l){var I=C[l],O;if(I)return I;for(O=l-1;!C[O];)O--;for(I=C[O],I={line:I.line,column:I.column};O<l;)r.charCodeAt(O)===10?(I.line++,I.column=1):I.column++,O++;return C[l]=I,I}function fr(l,I,O){var ve=tr(l),le=tr(I),ye={source:y,start:{offset:l,line:ve.line,column:ve.column},end:{offset:I,line:le.line,column:le.column}};return ye}function Ye(l){E<R||(E>R&&(R=E,H=[]),H.push(l))}function pr(l,I,O){return new f(f.buildMessage(l,I),l,I,O)}function B(){var l,I,O,ve,le,ye;if(l=E,I=[],O=E,ve=q(),ve===e&&(ve=A(),ve===e&&(ve=hr(),ve===e&&(ve=He(),ve===e&&(ve=de(),ve===e&&(ve=ke(),ve===e&&(ve=x(),ve===e&&(ve=We(),ve===e&&(ve=Z(),ve===e&&(ve=De()))))))))),ve!==e){for(le=[],ye=we();ye!==e;)le.push(ye),ye=we();O=_(ve)}else E=O,O=e;if(O!==e)for(;O!==e;)if(I.push(O),O=E,ve=q(),ve===e&&(ve=A(),ve===e&&(ve=hr(),ve===e&&(ve=He(),ve===e&&(ve=de(),ve===e&&(ve=ke(),ve===e&&(ve=x(),ve===e&&(ve=We(),ve===e&&(ve=Z(),ve===e&&(ve=De()))))))))),ve!==e){for(le=[],ye=we();ye!==e;)le.push(ye),ye=we();O=_(ve)}else E=O,O=e;else I=e;return I!==e&&(I=se(I)),l=I,l}function Z(){var l,I,O,ve,le,ye,v;if(l=E,I=tt(),I!==e){if(O=Ir(),ve=[],le=E,ye=x(),ye!==e?(v=Ir(),le=Se(O,ye,v)):(E=le,le=e),le!==e)for(;le!==e;)ve.push(le),le=E,ye=x(),ye!==e?(v=Ir(),le=Se(O,ye,v)):(E=le,le=e);else ve=e;ve!==e?(le=s(),le!==e?(ye=Ir(),v=vt(),v!==e?l=Ue(O,ve,ye,v):(E=l,l=e)):(E=l,l=e)):(E=l,l=e)}else E=l,l=e;return l}function ke(){var l,I,O;return l=E,I=yt(),I===e&&(I=xt()),I!==e?(O=je(),O!==e?l=ie(I,O):(E=l,l=e)):(E=l,l=e),l}function je(){var l,I,O,ve,le,ye,v,T,re,me;for(l=E,I=Ir(),O=E,ve=[],le=E,ye=E,Q++,v=it(),v===e&&(v=q()),Q--,v===e?ye=void 0:(E=ye,ye=e),ye!==e?(r.length>E?(v=r.charAt(E),E++):(v=e,Q===0&&Ye(F)),v!==e?(ye=[ye,v],le=ye):(E=le,le=e)):(E=le,le=e);le!==e;)ve.push(le),le=E,ye=E,Q++,v=it(),v===e&&(v=q()),Q--,v===e?ye=void 0:(E=ye,ye=e),ye!==e?(r.length>E?(v=r.charAt(E),E++):(v=e,Q===0&&Ye(F)),v!==e?(ye=[ye,v],le=ye):(E=le,le=e)):(E=le,le=e);return O=r.substring(O,E),ve=q(),ve===e&&(ve=null),le=Ir(),ye=it(),ye!==e?(v=Ir(),T=vt(),T===e&&(T=Me()),T!==e?(re=Ir(),me=ke(),me===e&&(me=vt(),me===e&&(me=Me())),me!==e?l=ze(I,O,ve,le,v,T,re,me):(E=l,l=e)):(E=l,l=e)):(E=l,l=e),l}function de(){var l,I,O,ve,le,ye;return l=E,I=_t(),I!==e?(O=Ir(),ve=q(),ve===e&&(ve=null),le=Ir(),ye=vt(),ye!==e?l=qe(O,ve,le,ye):(E=l,l=e)):(E=l,l=e),l}function hr(){var l,I,O,ve,le,ye,v,T,re,me,Fe;return l=E,I=G(),I!==e?(O=Ir(),ve=Nt(),ve!==e?(le=Ir(),ye=A(),ye!==e?(v=Ir(),T=E,re=_r(),re!==e?(me=Ir(),Fe=A(),Fe!==e?T=_e(O,le,ye,v,me,Fe):(E=T,T=e)):(E=T,T=e),T===e&&(T=null),re=Ir(),me=G(),me!==e?l=Te(O,le,ye,v,T,re):(E=l,l=e)):(E=l,l=e)):(E=l,l=e)):(E=l,l=e),l}function He(){var l,I,O;return l=E,I=dt(),I!==e?(O=Vr(),O!==e?l=er():(E=l,l=e)):(E=l,l=e),l===e&&(l=E,I=Vr(),I!==e?(O=dt(),O!==e?l=mr():(E=l,l=e)):(E=l,l=e),l===e&&(l=E,I=Vr(),I!==e?(O=Vr(),O!==e?l=Mr():(E=l,l=e)):(E=l,l=e))),l}function A(){var l,I,O,ve,le,ye,v,T;if(l=E,I=E,O=E,ve=Zr(),ve!==e?(le=Zr(),le===e&&(le=null),ve=[ve,le],O=ve):(E=O,O=e),O===e&&(O=null),I=r.substring(I,E),O=lr(),O!==e){for(ve=E,le=[],ye=E,v=E,Q++,T=te(),Q--,T===e?v=void 0:(E=v,v=e),v!==e?(r.length>E?(T=r.charAt(E),E++):(T=e,Q===0&&Ye(F)),T!==e?(v=[v,T],ye=v):(E=ye,ye=e)):(E=ye,ye=e);ye!==e;)le.push(ye),ye=E,v=E,Q++,T=te(),Q--,T===e?v=void 0:(E=v,v=e),v!==e?(r.length>E?(T=r.charAt(E),E++):(T=e,Q===0&&Ye(F)),T!==e?(v=[v,T],ye=v):(E=ye,ye=e)):(E=ye,ye=e);ve=r.substring(ve,E),le=te(),le!==e?l=Sr(I,ve):(E=l,l=e)}else E=l,l=e;return l}function q(){var l,I,O,ve,le,ye,v;if(l=E,I=N(),I!==e){for(O=E,ve=[],le=E,ye=E,Q++,v=Le(),Q--,v===e?ye=void 0:(E=ye,ye=e),ye!==e?(r.length>E?(v=r.charAt(E),E++):(v=e,Q===0&&Ye(F)),v!==e?(ye=[ye,v],le=ye):(E=le,le=e)):(E=le,le=e);le!==e;)ve.push(le),le=E,ye=E,Q++,v=Le(),Q--,v===e?ye=void 0:(E=ye,ye=e),ye!==e?(r.length>E?(v=r.charAt(E),E++):(v=e,Q===0&&Ye(F)),v!==e?(ye=[ye,v],le=ye):(E=le,le=e)):(E=le,le=e);O=r.substring(O,E),ve=Le(),ve!==e?l=wr(O):(E=l,l=e)}else E=l,l=e;return l}function G(){var l,I,O;return l=E,I=It(),I!==e?(O=It(),O!==e?(I=[I,O],l=I):(E=l,l=e)):(E=l,l=e),l}function De(){var l,I;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e&&(I=ge(I)),l=I,l}function We(){var l,I,O;return Q++,l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Cr(I),O?O=void 0:O=e,O!==e?l=ir(I):(E=l,l=e)):(E=l,l=e),Q--,l===e&&(I=e,Q===0&&Ye(K)),l}function we(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=$e(I),O?O=void 0:O=e,O!==e?l=sr(I):(E=l,l=e)):(E=l,l=e),l}function Ir(){var l,I,O,ve,le;for(Q++,l=E,I=[],O=we();O!==e;)I.push(O),O=we();for(O=We(),O===e&&(O=null),ve=[],le=we();le!==e;)ve.push(le),le=we();return l=dr(O),Q--,I=e,Q===0&&Ye(ne),l}function x(){var l,I,O;return Q++,l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Rr(I),O?O=void 0:O=e,O!==e?l=ur(I):(E=l,l=e)):(E=l,l=e),Q--,l===e&&(I=e,Q===0&&Ye(d)),l}function s(){var l,I,O;return Q++,l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=pe(I),O?O=void 0:O=e,O!==e?l=Ce(I):(E=l,l=e)):(E=l,l=e),Q--,l===e&&(I=e,Q===0&&Ye(p)),l}function N(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=L(I),O?O=void 0:O=e,O!==e?l=Er(I):(E=l,l=e)):(E=l,l=e),l}function Le(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=br(I),O?O=void 0:O=e,O!==e?l=Ar(I):(E=l,l=e)):(E=l,l=e),l}function lr(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Ze(I),O?O=void 0:O=e,O!==e?l=Fr(I):(E=l,l=e)):(E=l,l=e),l}function te(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Gr(I),O?O=void 0:O=e,O!==e?l=zr(I):(E=l,l=e)):(E=l,l=e),l}function Zr(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Lr(I),O?O=void 0:O=e,O!==e?l=qr(I):(E=l,l=e)):(E=l,l=e),l}function Vr(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=vr(I),O?O=void 0:O=e,O!==e?l=Xr(I):(E=l,l=e)):(E=l,l=e),l}function dt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Nr(I),O?O=void 0:O=e,O!==e?l=V(I):(E=l,l=e)):(E=l,l=e),l}function It(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=ae(I),O?O=void 0:O=e,O!==e?l=ce(I):(E=l,l=e)):(E=l,l=e),l}function Nt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Ge(I),O?O=void 0:O=e,O!==e?l=or(I):(E=l,l=e)):(E=l,l=e),l}function _r(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=ee(I),O?O=void 0:O=e,O!==e?l=Dr(I):(E=l,l=e)):(E=l,l=e),l}function _t(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Pr(I),O?O=void 0:O=e,O!==e?l=z(I):(E=l,l=e)):(E=l,l=e),l}function vt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=j(I),O?O=void 0:O=e,O!==e?l=D(I):(E=l,l=e)):(E=l,l=e),l}function Me(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=cr(I),O?O=void 0:O=e,O!==e?l=Y(I):(E=l,l=e)):(E=l,l=e),l}function yt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Re(I),O?O=void 0:O=e,O!==e?l=Je(I):(E=l,l=e)):(E=l,l=e),l}function xt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Be(I),O?O=void 0:O=e,O!==e?l=oe(I):(E=l,l=e)):(E=l,l=e),l}function it(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Wr(I),O?O=void 0:O=e,O!==e?l=gr(I):(E=l,l=e)):(E=l,l=e),l}function tt(){var l,I,O;return l=E,r.length>E?(I=r.charAt(E),E++):(I=e,Q===0&&Ye(F)),I!==e?(O=Yr(I),O?O=void 0:O=e,O!==e?l=yr(I):(E=l,l=e)):(E=l,l=e),l}if(!a.isWhitespace)try{Object.assign(a,{isChar:(l,I)=>l.type==="string"&&l.content===I,isOperation:l=>l.type==="string"&&l.content.match(/[a-zA-Z]/),isWhitespace:l=>l.type==="whitespace"||l.type==="parbreak",isSameLineComment:l=>l.type==="comment"&&l.sameline,isOwnLineComment:l=>l.type==="comment"&&!l.sameline,isComment:l=>l.type==="comment",isGroup:l=>l.type==="group",isMacro:(l,I)=>l.type==="macro"&&l.content===I,isAnyMacro:l=>l.type==="macro"})}catch(l){console.warn("Error when initializing parser",l)}if(Oe=S(),Oe!==e&&E===r.length)return Oe;throw Oe!==e&&E<r.length&&Ye(Xe()),pr(H,R<r.length?r.charAt(R):null,R<r.length?fr(R,R+1):fr(R,R))}return{SyntaxError:f,parse:b}}(),li=cf;var Ya=gf;var ci={};function mt(i=""){return ci[i]=ci[i]||Ya.parse(i),ci[i]}var Yf=qt(di(),1),Jf=qt(di(),1);function Xt(i,f,m){let{startIndex:b,onlySkipWhitespaceAndComments:r,allowSubstringMatches:a}=m||{};typeof f=="string"&&(f={type:"string",content:f});for(let e=b||0;e<i.length;e++){let y=i[e];if(y.type===f.type)switch(y.type){case"comment":case"displaymath":case"inlinemath":case"root":case"parbreak":case"whitespace":case"verb":case"verbatim":case"group":return e;case"macro":if(y.content===f.content)return e;break;case"environment":case"mathenv":if(lt(y.env)===lt(f.env))return e;break;case"string":if(y.content===f.content||a&&y.content.indexOf(f.content)>=0)return e;break}if(r&&!xe.whitespace(y)&&!xe.comment(y))return null}return null}function ut(i,f,m=0){if(typeof f=="string"||!f.type)throw new Error(`argSpec must be an already-parsed argument specification, not "${JSON.stringify(f)}"`);let b=null,r=m,a=f.noLeadingWhitespace?()=>{}:()=>{for(;r<i.length&&xe.whitespace(i[r]);)r++},e=f.openBrace||"",y=f.closeBrace||"",$=(f.type==="mandatory"||f.type==="optional")&&e==="{"&&y==="}";a();let S=i[r];if(S==null||xe.comment(S)||xe.parbreak(S))return{argument:b,nodesRemoved:0};switch(f.type){case"mandatory":if($){let ne=[S];xe.group(S)&&(ne=S.content),b=jr(ne,{openMark:e,closeMark:y}),r++;break}else{let ne=an(i,r,e,y);if(ne){b=jr(i.slice(ne[0]+1,ne[1]),{openMark:e,closeMark:y}),r=ne[1]+1;break}}case"optional":if($&&xe.group(S)){b=jr(S.content,{openMark:e,closeMark:y}),r++;break}let K=an(i,r,e,y);if(K){b=jr(i.slice(K[0]+1,K[1]),{openMark:e,closeMark:y}),r=K[1]+1;break}break;case"optionalStar":case"optionalToken":{let ne=an(i,r,f.type==="optionalStar"?"*":f.token);ne&&(b=jr(S,{openMark:"",closeMark:""}),r=ne[0]+1);break}case"until":{if(f.stopTokens.length>1){console.warn('"until" matches with multi-token stop conditions are not yet implemented');break}let ne=f.stopTokens[0],p=an(i,m,void 0,ne===" "?{type:"whitespace"}:ne);if(!p)break;b=jr(i.slice(m,p[1]),{openMark:"",closeMark:ne}),r=p[1],r<i.length&&r++;break}case"embellishment":{for(let ne of f.embellishmentTokens){let d=an(i,r,ne);if(!d)continue;let p=i[d[0]+1];b=jr(xe.group(p)?p.content:p,{openMark:ne,closeMark:""}),r=d[1]+1;break}break}default:console.warn(`Don't know how to find an argument of argspec type "${f.type}"`)}let F=b?r-m:0;return i.splice(m,F),{argument:b,nodesRemoved:F}}function _n(i,f){return Object.assign({},i,{content:f})}function an(i,f,m,b){let r=i[f],a=f,e=f;if(m){if(!xe.anyString(r)||!r.content.startsWith(m))return;if(a=f,r.content.length>m.length){let S=r.content;r.content=m,i.splice(a+1,0,_n(r,S.slice(m.length)))}e=a+1}if(!b){let $=i[e];if(!$)return;if(xe.anyString($)&&$.content.length>1){let S=$.content;$.content=S[0],i.splice(e+1,0,_n($,S.slice(1)))}return[a,e]}if(e=Xt(i,b,{startIndex:e,allowSubstringMatches:!0}),e===null)return;let y=i[e];if(xe.anyString(y)&&typeof b=="string"){let $=y.content,S=$.indexOf(b);if($.length>b.length){y.content=b;let F=$.slice(0,S),K=$.slice(S+b.length);F&&(i.splice(e,0,_n(y,F)),e++),K&&i.splice(e+1,0,_n(y,K))}}return[a,e]}function vi(i,f,m=0){if(typeof f=="function")return f(i,m);typeof f=="string"&&(f=mt(f));let b=[],r=0;for(let a of f)if(a.type==="embellishment"){let e=new Set(a.embellishmentTokens),y=Object.fromEntries(a.embellishmentTokens.map((F,K)=>{var ne;let d="defaultArg"in a?(ne=a.defaultArg)==null?void 0:ne[K]:void 0;return[F,ms(d)]})),{argument:$,nodesRemoved:S}=ut(i,ps(e),m);for(;$;){let F=$.openMark;e.delete(F),y[F]=$,r+=S;let K=ps(e);({argument:$,nodesRemoved:S}=ut(i,K,m))}b.push(...a.embellishmentTokens.map(F=>y[F]))}else{let{argument:e,nodesRemoved:y}=ut(i,a,m),$="defaultArg"in a?a.defaultArg:void 0;b.push(e||ms($)),r+=y}return{args:b,nodesRemoved:r}}function ps(i){return{type:"embellishment",embellishmentTokens:[...i]}}function ms(i){let f=jr([],{openMark:"",closeMark:""});return i!=null&&Gt(f,{defaultArg:i}),f}function sn(i,f){let m,b=xe.createMacroMatcher(f);function r(){for(;m>=0&&!b(i[m]);)m--}for(m=i.length-1;m>=0;){if(r(),m<0)return;let a=m,e=i[a],y=e.content,$=f[y];Gt(e,$.renderInfo);let S=$.argumentParser||$.signature;if(S==null){m--;continue}if(e.args!=null){m=a-1;continue}m++;let{args:F}=vi(i,S,m);e.args=F,m=a-1}}var Kf=mt("m")[0],Zf=mt("o")[0],yi={},Qf=(i,f)=>{let{argument:m,nodesRemoved:b}=ut(i,Zf,f),r=null,a=0,e=i[f];if(xe.group(e)){let y=ut(i,Kf,f);r=y.argument,a=y.nodesRemoved}else if(xe.string(e)&&e.content.length===1){let y=e.content;yi[y]=yi[y]||mt(`r${y}${y}`)[0];let $=ut(i,yi[y],f);r=$.argument,a=$.nodesRemoved}return{args:[m||jr(null),r||jr(null)],nodesRemoved:b+a}},hs={lstset:{signature:"m"},lstinline:{argumentParser:Qf},lstinputlisting:{signature:"o m"},lstdefinestyle:{signature:"m m"},lstnewenvironment:{signature:"m o o m m"},lstMakeShortInline:{signature:"o m"},lstDeleteShortInline:{signature:"m"},lstdefineformat:{signature:"m m"},lstdefinelanguage:{signature:"o m o m o"},lstalias:{signature:"o m o m"},lstloadlanguages:{signature:"m"}},ds={};var vs={see:{signature:"m m"},seealso:{signature:"m m"},seename:{signature:"m"},alsoname:{signature:"m"},index:{signature:"m"}},ys={};var $s={mathtoolsset:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},mathllap:{signature:"o m"},mathrlap:{signature:"o m"},mathclap:{signature:"o m"},clap:{signature:"m"},mathmbox:{signature:"m"},mathmakebox:{signature:"o o m"},cramped:{signature:"o m"},crampedllap:{signature:"o m"},crampedrlap:{signature:"o m"},crampedclap:{signature:"o m"},crampedsubstack:{signature:"o m"},smashoperator:{signature:"o m"},newtagform:{signature:"m o m m"},renewtagform:{signature:"m o m m"},usetagform:{signature:"m"},xleftrightarrow:{signature:"o m"},xLeftarrow:{signature:"o m"},xhookleftarrow:{signature:"o m"},xmapsto:{signature:"o m"},xRightarrow:{signature:"o m"},xLeftrightarrow:{signature:"o m"},xhookrightarrow:{signature:"o m"},underbracket:{signature:"o o m"},overbracket:{signature:"o o m"},underbrace:{signature:"m"},overbrace:{signature:"m"},shoveleft:{signature:"o m"},shoveright:{signature:"o m"},ArrowBetweenLines:{signature:"s o"},vdotswithin:{signature:"m"},shortdotswithin:{signature:"s m"},DeclarePairedDelimiter:{signature:"m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterX:{signature:"m o m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterXPP:{signature:"m o m m m m m",renderInfo:{breakAround:!0}},prescript:{signature:"m m m"},DeclareMathSizes:{signature:"m m m m"},newgathered:{signature:"m m m m"},renewgathered:{signature:"m m m m"},splitfrac:{signature:"m m"},splitdfrac:{signature:"m m"},xmathstrut:{signature:"o m"},newtheorem:{signature:"s m o m o",renderInfo:{breakAround:!0}},theoremstyle:{signature:"m",renderInfo:{breakAround:!0}},newtheoremstyle:{signature:"m m m m m m m m m",renderInfo:{breakAround:!0}},text:{signature:"m",renderInfo:{inMathMode:!1}},mathbb:{signature:"m"},mathscr:{signature:"m"},mathfrak:{signature:"m"},frak:{signature:"m"},Bdd:{signature:"m"},bold:{signature:"m"},operatorname:{signature:"s m"},DeclareMathOperator:{signature:"s m m",renderInfo:{breakAround:!0}}},bs={crampedsubarray:{signature:"m",renderInfo:{alignContent:!0,inMathMode:!0}},matrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},pmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},smallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},psmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},"matrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"pmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"smallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"psmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},multilined:{signature:"o o",renderInfo:{inMathMode:!0}},cases:{renderInfo:{alignContent:!0,inMathMode:!0}},"cases*":{renderInfo:{alignContent:!0,inMathMode:!0}},dcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"dcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},rcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"rcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},drcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"drcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},spreadlines:{signature:"m",renderInfo:{inMathMode:!0}},lgathered:{signature:"o",renderInfo:{inMathMode:!0}},rgathered:{signature:"o",renderInfo:{inMathMode:!0}},"align*":{renderInfo:{inMathMode:!0,alignContent:!0}},align:{renderInfo:{inMathMode:!0,alignContent:!0}},aligned:{renderInfo:{inMathMode:!0,alignContent:!0}},"alignat*":{renderInfo:{inMathMode:!0,alignContent:!0}},alignat:{renderInfo:{inMathMode:!0,alignContent:!0}},"equation*":{renderInfo:{inMathMode:!0}},equation:{renderInfo:{inMathMode:!0}},"gather*":{renderInfo:{inMathMode:!0}},gather:{renderInfo:{inMathMode:!0}},"multline*":{renderInfo:{inMathMode:!0}},multline:{renderInfo:{inMathMode:!0}},"flalign*":{renderInfo:{inMathMode:!0,alignContent:!0}},flalign:{renderInfo:{inMathMode:!0,alignContent:!0}},split:{renderInfo:{inMathMode:!0}},displaymath:{renderInfo:{inMathMode:!0}},theorem:{signature:"o"},lemma:{signature:"o"},definition:{signature:"o"},proposition:{signature:"o"},corollary:{signature:"o"},remark:{signature:"!o"},example:{signature:"!o"},proof:{signature:"o"}};var As=mt("m")[0],eu=mt("o")[0],$i={},bi=(i,f)=>{let{argument:m,nodesRemoved:b}=ut(i,eu,f),{argument:r,nodesRemoved:a}=ut(i,As,f),e=null,y=0,$=i[f];if(xe.group($)){let S=ut(i,As,f);e=S.argument,y=S.nodesRemoved}else if(xe.string($)&&$.content.length===1){let S=$.content;$i[S]=$i[S]||mt(`r${S}${S}`)[0];let F=ut(i,$i[S],f);e=F.argument,y=F.nodesRemoved}return{args:[m||jr(null),r||jr(null),e||jr(null)],nodesRemoved:b+a+y}},xs={mint:{argumentParser:bi},mintinline:{argumentParser:bi},inputminted:{argumentParser:bi},usemintedstyle:{signature:"m"},setminted:{signature:"o m"},setmintedinline:{signature:"o m"},newmint:{signature:"o m m"},newminted:{signature:"o m m"},newmintinline:{signature:"o m m"},newmintedfile:{signature:"o m m"}},ks={minted:{signature:"o m"}};var ws={NiceMatrixOptions:{signature:"m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}}},Cs={NiceTabular:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrixBlock:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArrayWithDelims:{signature:"m m o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}}};var Ms={systeme:{signature:"s o o m",renderInfo:{inMathMode:!0}},sysdelim:{signature:"m m"},syseqsep:{signature:"m"},sysalign:{signature:"m"},syssignspace:{signature:"m"},syseqspace:{signature:"m"},syslineskipcoeff:{signature:"m"},syseqivsign:{signature:"m"},sysaddeqsign:{signature:"m"},sysremoveeqsign:{signature:"m"},sysextracolonsign:{signature:"m"},syscodeextracol:{signature:"m"},sysautonum:{signature:"m"},syssubstitute:{signature:"m"}},Es={};(function(){typeof globalThis!="object"&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var Nc=typeof globalThis.structuredClone=="function"?globalThis.structuredClone:i=>JSON.parse(JSON.stringify(i));var ru=mt("o")[0];function Sn(){return jr([],{openMark:"",closeMark:""})}var Ps=(i,f)=>{let m=f,b=f,r=0,a=tu(i,b),e=Sn();if(a!==b){let ne=i.splice(b,a-b);Mt(ne),e=jr(ne,{openMark:" ",closeMark:" "})}r+=a-b;let{argument:y,nodesRemoved:$}=ut(i,ru,b);r+=$;let S=y||Sn();for(;xe.whitespace(i[b]);)b++;let F=i[b];if(!F)return{args:[e,S,Sn()],nodesRemoved:0};if(xe.group(F)){let ne=[e,S,jr(F.content)];return i.splice(m,b-m+1),{args:ne,nodesRemoved:b-m+1+r}}let K=Xt(i,";",{startIndex:b});if(K!=null){let ne=i.splice(m,K-m+1);return Mt(ne),{args:[e,S,jr(ne)],nodesRemoved:m-K+1+r}}return{args:[e,S,Sn()],nodesRemoved:0}};function tu(i,f){let m=Xt(i,":",{startIndex:f,allowSubstringMatches:!0,onlySkipWhitespaceAndComments:!0});if(!m)return f;let b=f,r=m+1;for(;r<i.length;r++){let a=i[r];if(xe.string(a,"["))break;if(xe.string(a,"=")){for(r++;xe.whitespace(i[r])||xe.comment(i[r]);)r++;if(!xe.group(i[r]))break;b=r+1;let e=Xt(i,":",{startIndex:b,allowSubstringMatches:!0,onlySkipWhitespaceAndComments:!0});if(e==null)break;r=e+1}}return b}var Is={pgfkeys:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},tikzoption:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},tikzstyle:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},usetikzlibrary:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},usepgfmodule:{signature:"m",renderInfo:{pgfkeysArgs:!0}},usepgflibrary:{signature:"m",renderInfo:{pgfkeysArgs:!0}},pgfplotsset:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},pgfplotstabletypeset:{signature:"o m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},tikz:{signature:"o o m",argumentParser:Ps,renderInfo:{namedArguments:["animation","options","command"]}}},_s={tikzpicture:{signature:"o",renderInfo:{pgfkeysArgs:!0,tikzEnvironment:!0},processContent:Pt},axis:{signature:"o",renderInfo:{pgfkeysArgs:!0,tikzEnvironment:!0},processContent:Pt},scope:{signature:"o",renderInfo:{pgfkeysArgs:!0,tikzEnvironment:!0},processContent:Pt},pgfonlayer:{signature:"m",renderInfo:{tikzEnvironment:!0},processContent:Pt},pgflowlevelscope:{signature:"m",renderInfo:{tikzEnvironment:!0},processContent:Pt},pgfviewboxscope:{signature:"m m m m m",renderInfo:{tikzEnvironment:!0},processContent:Pt},pgftransparencygroup:{signature:"o",renderInfo:{pgfkeysArgs:!0,tikzEnvironment:!0},processContent:Pt},behindforegroundpath:{signature:"m",processContent:Pt},pgfmetadecoration:{signature:"m",processContent:Pt},colormixin:{signature:"m",renderInfo:{pgfkeysArgs:!0}}};function Pt(i){return sn(i,nu),i}var nu={pgfextra:{signature:"m"},beginpgfgraphicnamed:{signature:"m"},pgfrealjobname:{signature:"m"},pgfplotstreampoint:{signature:"m"},pgfplotstreampointoutlier:{signature:"m"},pgfplotstreamspecial:{signature:"m"},pgfplotxyfile:{signature:"m"},pgfplotxyzfile:{signature:"m"},pgfplotfunction:{signature:"mmm"},pgfplotgnuplot:{signature:"o m"},pgfplothandlerrecord:{signature:"m"},pgfdeclareplothandler:{signature:"m m m"},pgfdeclarelayer:{signature:"m"},pgfsetlayers:{signature:"m",renderInfo:{pgfkeysArgs:!0}},pgfonlayer:{signature:"m"},startpgfonlayer:{signature:"m"},pgfdeclarehorizontalshading:{signature:"o m m m "},pgfdeclareradialshading:{signature:"o m m m"},pgfdeclarefunctionalshading:{signature:"o m m m m m"},pgfshadecolortorgb:{signature:"m m"},pgfshadecolortocmyk:{signature:"m m"},pgfshadecolortogray:{signature:"m m"},pgfuseshading:{signature:"m"},pgfshadepath:{signature:"m m"},pgfsetadditionalshadetransform:{signature:"m"},pgfsetstrokeopacity:{signature:"m"},pgfsetfillopacity:{signature:"m"},pgfsetblendmode:{signature:"m"},pgfdeclarefading:{signature:"m m"},pgfsetfading:{signature:"m m"},pgfsetfadingforcurrentpath:{signature:"m m"},pgfsetfadingforcurrentpathstroked:{signature:"m m"},pgfanimateattribute:{signature:"m m"},pgfsnapshot:{signature:"m"},pgfqpoint:{signature:"m m"},pgfqpointxy:{signature:"m m"},pgfqpointxyz:{signature:"m m m"},pgfqpointscale:{signature:"m m"},pgfpathqmoveto:{signature:"m m"},pgfpathqlineto:{signature:"m m"},pgfpathqcurveto:{signature:"m m m m m m"},pgfpathqcircle:{signature:"m"},pgfqbox:{signature:"m"},pgfqboxsynced:{signature:"m"},pgfaliasimage:{signature:"m m"},pgfuseimage:{signature:"m"},pgfimage:{signature:"o m",renderInfo:{pgfkeysArgs:!0}},pgfdeclaremask:{signature:"o m m",renderInfo:{pgfkeysArgs:!0}},pgfdeclarepatternformonly:{signature:"o m m m m m"},pgfdeclarepatterninherentlycolored:{signature:"o m m m m m"},pgfsetfillpattern:{signature:"m m"},pgftransformshift:{signature:"m"},pgftransformxshift:{signature:"m"},pgftransformyshift:{signature:"m"},pgftransformscale:{signature:"m"},pgftransformxscale:{signature:"m"},pgftransformyscale:{signature:"m"},pgftransformxslant:{signature:"m"},pgftransformyslant:{signature:"m"},pgftransformrotate:{signature:"m"},pgftransformtriangle:{signature:"m m m"},pgftransformcm:{signature:"m m m m m"},pgftransformarrow:{signature:"m m"},pgftransformlineattime:{signature:"m m m"},pgftransformcurveattime:{signature:"m m m m m"},pgftransformarcaxesattime:{signature:"m m m m m m"},pgfgettransform:{signature:"m"},pgfsettransform:{signature:"m"},pgfgettransformentries:{signature:"m m m m m m"},pgfsettransformentries:{signature:"m m m m m m"},pgfpointtransformed:{signature:"m"},pgflowlevel:{signature:"m"},pgflowlevelobj:{signature:"m m"},pgflowlevelscope:{signature:"m"},startpgflowlevelscope:{signature:"m"},pgfviewboxscope:{signature:"m m m m m"},startpgfviewboxscope:{signature:"m m m m m"},pgftransformnonlinear:{signature:"m"},pgfpointtransformednonlinear:{signature:"m"},pgfsetcurvilinearbeziercurve:{signature:"m m m m"},pgfcurvilineardistancetotime:{signature:"m"},pgfpointcurvilinearbezierorthogonal:{signature:"m m"},pgfpointcurvilinearbezierpolar:{signature:"m m"},pgfmatrix:{signature:"m m m m m m m"},pgfsetmatrixcolumnsep:{signature:"m"},pgfmatrixnextcell:{signature:"o"},pgfsetmatrixrowsep:{signature:"m"},pgfmatrixendrow:{signature:"o"},pgfnode:{signature:"m m m m m"},pgfmultipartnode:{signature:"m m m m"},pgfcoordinate:{signature:"m m"},pgfnodealias:{signature:"m m"},pgfnoderename:{signature:"m m"},pgfpositionnodelater:{signature:"m"},pgfpositionnodenow:{signature:"m"},pgfnodepostsetupcode:{signature:"m m"},pgfpointanchor:{signature:"m m"},pgfpointshapeborder:{signature:"m m"},pgfdeclareshape:{signature:"m m"},saveddimen:{signature:"m m"},savedmacro:{signature:" m"},anchor:{signature:"m m"},deferredanchor:{signature:"m m"},anchorborder:{signature:"m"},backgroundpath:{signature:"m"},foregroundpath:{signature:"m"},behindbackgroundpath:{signature:"m"},beforebackgroundpath:{signature:"m"},beforeforegroundpath:{signature:"m"},behindforegroundpath:{signature:"m"},pgfdeclarearrow:{signature:"m"},pgfarrowssettipend:{signature:"m"},pgfarrowssetbackend:{signature:"m"},pgfarrowssetlineend:{signature:"m"},pgfarrowssetvisualbackend:{signature:"m"},pgfarrowssetvisualtipend:{signature:"m"},pgfarrowshullpoint:{signature:"m m"},pgfarrowsupperhullpoint:{signature:"m m"},pgfarrowssave:{signature:"m"},pgfarrowssavethe:{signature:"m"},pgfarrowsaddtooptions:{signature:"m"},pgfarrowsaddtolateoptions:{signature:"m"},pgfarrowsaddtolengthscalelist:{signature:"m"},pgfarrowsaddtowidthscalelist:{signature:"m"},pgfarrowsthreeparameters:{signature:"m"},pgfarrowslinewidthdependent:{signature:"m m m"},pgfarrowslengthdependent:{signature:"m"},pgfusepath:{signature:"m"},pgfsetlinewidth:{signature:"m"},pgfsetmiterlimit:{signature:"m"},pgfsetdash:{signature:"m m"},pgfsetstrokecolor:{signature:"m"},pgfsetcolor:{signature:"m"},pgfsetinnerlinewidth:{signature:"m"},pgfsetinnerstrokecolor:{signature:"m"},pgfsetarrowsstart:{signature:"m"},pgfsetarrowsend:{signature:"m"},pgfsetarrows:{signature:"m"},pgfsetshortenstart:{signature:"m"},pgfsetshortenend:{signature:"m"},pgfsetfillcolor:{signature:"m"},pgfdeclaredecoration:{signature:"m m m"},state:{signature:"m o m"},pgfdecoratepath:{signature:"m m"},startpgfdecoration:{signature:"m"},pgfdecoration:{signature:"m"},pgfdecoratecurrentpath:{signature:"m"},pgfsetdecorationsegmenttransformation:{signature:"m"},pgfdeclaremetadecorate:{signature:"m m m"},pgfmetadecoration:{signature:"m"},startpgfmetadecoration:{signature:"m"},pgfpathmoveto:{signature:"m"},pgfpathlineto:{signature:"m"},pgfpathcurveto:{signature:"m m m"},pgfpathquadraticcurveto:{signature:"m m"},pgfpathcurvebetweentime:{signature:"m m m m m m"},pgfpathcurvebetweentimecontinue:{signature:"m m m m m m"},pgfpatharc:{signature:"m m m"},pgfpatharcaxes:{signature:"m m m m"},pgfpatharcto:{signature:"m m m m m m"},pgfpatharctoprecomputed:{signature:"m m m m m m m m"},pgfpathellipse:{signature:"m m m"},pgfpathcircle:{signature:"m m"},pgfpathrectangle:{signature:"m m"},pgfpathrectanglecorners:{signature:"m m"},pgfpathgrid:{signature:" o m m"},pgfpathparabola:{signature:"m m"},pgfpathsine:{signature:"m"},pgfpathcosine:{signature:"m"},pgfsetcornersarced:{signature:"m"},"pgf@protocolsizes":{signature:"m m"},pgfpoint:{signature:"m m"},pgfpointpolar:{signature:"m m m"},pgfpointxy:{signature:"m m"},pgfsetxvec:{signature:"m"},pgfsetyvec:{signature:"m"},pgfpointpolarxy:{signature:"m m"},pgfpointxyz:{signature:"m m m"},pgfsetzvec:{signature:"m"},pgfpointcylindrical:{signature:"m m m"},pgfpointspherical:{signature:"m m m"},pgfpointadd:{signature:"m m"},pgfpointscale:{signature:"m m"},pgfpointdiff:{signature:"m m"},pgfpointnormalised:{signature:"m"},pgfpointlineattime:{signature:"m m m"},pgfpointlineatdistance:{signature:"m m m"},pgfpointarcaxesattime:{signature:"m m m m m m"},pgfpointcurveattime:{signature:"m m m m m"},pgfpointborderrectangle:{signature:"m m"},pgfpointborderellipse:{signature:"m m"},pgfpointintersectionoflines:{signature:"m m m m"},pgfpointintersectionofcircles:{signature:"m m m m m"},pgfintersectionofpaths:{signature:"m m"},pgfpointintersectionsolution:{signature:"m"},pgfextractx:{signature:"m m"},pgfextracty:{signature:"m m"},pgfgetlastxy:{signature:"m m"},"pgf@process":{signature:"m"},pgfsetbaseline:{signature:"m"},pgfsetbaselinepointnow:{signature:"m"},pgfsetbaselinepointlater:{signature:"m"},pgftext:{signature:"o m",renderInfo:{pgfkeysArgs:!0}},pgfuseid:{signature:"m"},pgfusetype:{signature:"m"},pgfidrefnextuse:{signature:"m m"},pgfidrefprevuse:{signature:"m m"},pgfaliasid:{signature:"m m"},pgfgaliasid:{signature:"m m"},pgfifidreferenced:{signature:"m m m"},pgfrdfabout:{signature:"m"},pgfrdfcontent:{signature:"m"},pgfrdfdatatype:{signature:"m"},pgfrdfhref:{signature:"m"},pgfrdfprefix:{signature:"m"},pgfrdfproperty:{signature:"m"},pgfrdfrel:{signature:"m"},pgfrdfresource:{signature:"m"},pgfrdfrev:{signature:"m"},pgfrdfsrc:{signature:"m"},pgfrdftypeof:{signature:"m"},pgfrdfvocab:{signature:"m"},pgferror:{signature:"m"},pgfwarning:{signature:"m"},path:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},draw:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},fill:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},filldraw:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},pattern:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},shade:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},clip:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},useasboundingbox:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},node:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},coordinate:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},graph:{signature:"u;",renderInfo:{breakAround:!0,tikzPathCommand:!0}},scoped:{signature:"o o m",argumentParser:Ps,renderInfo:{namedArguments:["animation","options","command"],breakAround:!0}}};function iu(){return{isChar:xe.string,isTerminal:i=>xe.string(i,";"),isOperation:i=>xe.anyString(i)&&i.content.match(/[a-zA-Z]/),isWhitespace:i=>xe.whitespace(i)||xe.parbreak(i),isComment:xe.comment,isGroup:xe.group,isMacro:xe.macro,isAnyMacro:xe.anyMacro}}var eg=iu();var Ee=qt(Ko(),1);var Ss={substitutecolormodel:{signature:"m m",renderInfo:{breakAround:!0}},selectcolormodel:{signature:"m",renderInfo:{breakAround:!0}},definecolor:{signature:"o m m m",renderInfo:{breakAround:!0}},providecolor:{signature:"o m m m",renderInfo:{breakAround:!0}},colorlet:{signature:"o m o m",renderInfo:{breakAround:!0}},definecolorset:{signature:"o m m m",renderInfo:{breakAround:!0}},providecolorset:{signature:"o m m m m",renderInfo:{breakAround:!0}},preparecolor:{signature:"o m m m",renderInfo:{breakAround:!0}},preparecolorset:{signature:"o m m m m",renderInfo:{breakAround:!0}},DefineNamedColor:{signature:"m m m m",renderInfo:{breakAround:!0}},definecolors:{signature:"m",renderInfo:{breakAround:!0}},providecolors:{signature:"m",renderInfo:{breakAround:!0}},color:{signature:"o m",renderInfo:{breakAround:!0}},textcolor:{signature:"o m m",renderInfo:{inParMode:!0}},pagecolor:{signature:"o m"},colorbox:{signature:"o m m"},fcolorbox:{signature:"o m o m m"},boxframe:{signature:"o m"},testcolor:{signature:"o m"},blendcolors:{signature:"s m"},maskcolors:{signature:"o m"},definecolorseries:{signature:"m m m o m o m",renderInfo:{breakAround:!0}},resetcolorseries:{signature:"o m",renderInfo:{breakAround:!0}},rowcolors:{signature:"s o m m m"},extractcolorspec:{signature:"m m"},extractcolorspecs:{signature:"m m m"},convertcolorspec:{signature:"m m m m"}},Rs={testcolors:{signature:"o",renderInfo:{pgfkeysArgs:!0}}},u=([i,f,m])=>(0,Ee.default)([i*255,f*255,m*255],"rgb"),au={Apricot:(0,Ee.default)("#FBB982"),Aquamarine:(0,Ee.default)("#00B5BE"),Bittersweet:(0,Ee.default)("#C04F17"),Black:(0,Ee.default)("#221E1F"),Blue:(0,Ee.default)("#2D2F92"),BlueGreen:(0,Ee.default)("#00B3B8"),BlueViolet:(0,Ee.default)("#473992"),BrickRed:(0,Ee.default)("#B6321C"),Brown:(0,Ee.default)("#792500"),BurntOrange:(0,Ee.default)("#F7921D"),CadetBlue:(0,Ee.default)("#74729A"),CarnationPink:(0,Ee.default)("#F282B4"),Cerulean:(0,Ee.default)("#00A2E3"),CornflowerBlue:(0,Ee.default)("#41B0E4"),Cyan:(0,Ee.default)("#00AEEF"),Dandelion:(0,Ee.default)("#FDBC42"),DarkOrchid:(0,Ee.default)("#A4538A"),Emerald:(0,Ee.default)("#00A99D"),ForestGreen:(0,Ee.default)("#009B55"),Fuchsia:(0,Ee.default)("#8C368C"),Goldenrod:(0,Ee.default)("#FFDF42"),Gray:(0,Ee.default)("#949698"),Green:(0,Ee.default)("#00A64F"),GreenYellow:(0,Ee.default)("#DFE674"),JungleGreen:(0,Ee.default)("#00A99A"),Lavender:(0,Ee.default)("#F49EC4"),LimeGreen:(0,Ee.default)("#8DC73E"),Magenta:(0,Ee.default)("#EC008C"),Mahogany:(0,Ee.default)("#A9341F"),Maroon:(0,Ee.default)("#AF3235"),Melon:(0,Ee.default)("#F89E7B"),MidnightBlue:(0,Ee.default)("#006795"),Mulberry:(0,Ee.default)("#A93C93"),NavyBlue:(0,Ee.default)("#006EB8"),OliveGreen:(0,Ee.default)("#3C8031"),Orange:(0,Ee.default)("#F58137"),OrangeRed:(0,Ee.default)("#ED135A"),Orchid:(0,Ee.default)("#AF72B0"),Peach:(0,Ee.default)("#F7965A"),Periwinkle:(0,Ee.default)("#7977B8"),PineGreen:(0,Ee.default)("#008B72"),Plum:(0,Ee.default)("#92268F"),ProcessBlue:(0,Ee.default)("#00B0F0"),Purple:(0,Ee.default)("#99479B"),RawSienna:(0,Ee.default)("#974006"),Red:(0,Ee.default)("#ED1B23"),RedOrange:(0,Ee.default)("#F26035"),RedViolet:(0,Ee.default)("#A1246B"),Rhodamine:(0,Ee.default)("#EF559F"),RoyalBlue:(0,Ee.default)("#0071BC"),RoyalPurple:(0,Ee.default)("#613F99"),RubineRed:(0,Ee.default)("#ED017D"),Salmon:(0,Ee.default)("#F69289"),SeaGreen:(0,Ee.default)("#3FBC9D"),Sepia:(0,Ee.default)("#671800"),SkyBlue:(0,Ee.default)("#46C5DD"),SpringGreen:(0,Ee.default)("#C6DC67"),Tan:(0,Ee.default)("#DA9D76"),TealBlue:(0,Ee.default)("#00AEB3"),Thistle:(0,Ee.default)("#D883B7"),Turquoise:(0,Ee.default)("#00B4CE"),Violet:(0,Ee.default)("#58429B"),VioletRed:(0,Ee.default)("#EF58A0"),White:(0,Ee.default)("#FFFFFF"),WildStrawberry:(0,Ee.default)("#EE2967"),Yellow:(0,Ee.default)("#FFF200"),YellowGreen:(0,Ee.default)("#98CC70"),YellowOrange:(0,Ee.default)("#FAA21A")},su={AliceBlue:u([.94,.972,1]),AntiqueWhite:u([.98,.92,.844]),Aqua:u([0,1,1]),Aquamarine:u([.498,1,.83]),Azure:u([.94,1,1]),Beige:u([.96,.96,.864]),Bisque:u([1,.894,.77]),Black:u([0,0,0]),BlanchedAlmond:u([1,.92,.804]),Blue:u([0,0,1]),BlueViolet:u([.54,.17,.888]),Brown:u([.648,.165,.165]),BurlyWood:u([.87,.72,.53]),CadetBlue:u([.372,.62,.628]),Chartreuse:u([.498,1,0]),Chocolate:u([.824,.41,.116]),Coral:u([1,.498,.312]),CornflowerBlue:u([.392,.585,.93]),Cornsilk:u([1,.972,.864]),Crimson:u([.864,.08,.235]),Cyan:u([0,1,1]),DarkBlue:u([0,0,.545]),DarkCyan:u([0,.545,.545]),DarkGoldenrod:u([.72,.525,.044]),DarkGray:u([.664,.664,.664]),DarkGreen:u([0,.392,0]),DarkGrey:u([.664,.664,.664]),DarkKhaki:u([.74,.716,.42]),DarkMagenta:u([.545,0,.545]),DarkOliveGreen:u([.332,.42,.185]),DarkOrange:u([1,.55,0]),DarkOrchid:u([.6,.196,.8]),DarkRed:u([.545,0,0]),DarkSalmon:u([.912,.59,.48]),DarkSeaGreen:u([.56,.736,.56]),DarkSlateBlue:u([.284,.24,.545]),DarkSlateGray:u([.185,.31,.31]),DarkSlateGrey:u([.185,.31,.31]),DarkTurquoise:u([0,.808,.82]),DarkViolet:u([.58,0,.828]),DeepPink:u([1,.08,.576]),DeepSkyBlue:u([0,.75,1]),DimGray:u([.41,.41,.41]),DimGrey:u([.41,.41,.41]),DodgerBlue:u([.116,.565,1]),FireBrick:u([.698,.132,.132]),FloralWhite:u([1,.98,.94]),ForestGreen:u([.132,.545,.132]),Fuchsia:u([1,0,1]),Gainsboro:u([.864,.864,.864]),GhostWhite:u([.972,.972,1]),Gold:u([1,.844,0]),Goldenrod:u([.855,.648,.125]),Gray:u([.5,.5,.5]),Green:u([0,.5,0]),GreenYellow:u([.68,1,.185]),Grey:u([.5,.5,.5]),Honeydew:u([.94,1,.94]),HotPink:u([1,.41,.705]),IndianRed:u([.804,.36,.36]),Indigo:u([.294,0,.51]),Ivory:u([1,1,.94]),Khaki:u([.94,.9,.55]),Lavender:u([.9,.9,.98]),LavenderBlush:u([1,.94,.96]),LawnGreen:u([.488,.99,0]),LemonChiffon:u([1,.98,.804]),LightBlue:u([.68,.848,.9]),LightCoral:u([.94,.5,.5]),LightCyan:u([.88,1,1]),LightGoldenrod:u([.933,.867,.51]),LightGoldenrodYellow:u([.98,.98,.824]),LightGray:u([.828,.828,.828]),LightGreen:u([.565,.932,.565]),LightGrey:u([.828,.828,.828]),LightPink:u([1,.712,.756]),LightSalmon:u([1,.628,.48]),LightSeaGreen:u([.125,.698,.668]),LightSkyBlue:u([.53,.808,.98]),LightSlateBlue:u([.518,.44,1]),LightSlateGray:u([.468,.532,.6]),LightSlateGrey:u([.468,.532,.6]),LightSteelBlue:u([.69,.77,.87]),LightYellow:u([1,1,.88]),Lime:u([0,1,0]),LimeGreen:u([.196,.804,.196]),Linen:u([.98,.94,.9]),Magenta:u([1,0,1]),Maroon:u([.5,0,0]),MediumAquamarine:u([.4,.804,.668]),MediumBlue:u([0,0,.804]),MediumOrchid:u([.73,.332,.828]),MediumPurple:u([.576,.44,.86]),MediumSeaGreen:u([.235,.7,.444]),MediumSlateBlue:u([.484,.408,.932]),MediumSpringGreen:u([0,.98,.604]),MediumTurquoise:u([.284,.82,.8]),MediumVioletRed:u([.78,.084,.52]),MidnightBlue:u([.098,.098,.44]),MintCream:u([.96,1,.98]),MistyRose:u([1,.894,.884]),Moccasin:u([1,.894,.71]),NavajoWhite:u([1,.87,.68]),Navy:u([0,0,.5]),NavyBlue:u([0,0,.5]),OldLace:u([.992,.96,.9]),Olive:u([.5,.5,0]),OliveDrab:u([.42,.556,.136]),Orange:u([1,.648,0]),OrangeRed:u([1,.27,0]),Orchid:u([.855,.44,.84]),PaleGoldenrod:u([.932,.91,.668]),PaleGreen:u([.596,.985,.596]),PaleTurquoise:u([.688,.932,.932]),PaleVioletRed:u([.86,.44,.576]),PapayaWhip:u([1,.936,.835]),PeachPuff:u([1,.855,.725]),Peru:u([.804,.52,.248]),Pink:u([1,.752,.796]),Plum:u([.868,.628,.868]),PowderBlue:u([.69,.88,.9]),Purple:u([.5,0,.5]),Red:u([1,0,0]),RosyBrown:u([.736,.56,.56]),RoyalBlue:u([.255,.41,.884]),SaddleBrown:u([.545,.27,.075]),Salmon:u([.98,.5,.448]),SandyBrown:u([.956,.644,.376]),SeaGreen:u([.18,.545,.34]),Seashell:u([1,.96,.932]),Sienna:u([.628,.32,.176]),Silver:u([.752,.752,.752]),SkyBlue:u([.53,.808,.92]),SlateBlue:u([.415,.352,.804]),SlateGray:u([.44,.5,.565]),SlateGrey:u([.44,.5,.565]),Snow:u([1,.98,.98]),SpringGreen:u([0,1,.498]),SteelBlue:u([.275,.51,.705]),Tan:u([.824,.705,.55]),Teal:u([0,.5,.5]),Thistle:u([.848,.75,.848]),Tomato:u([1,.39,.28]),Turquoise:u([.25,.88,.815]),Violet:u([.932,.51,.932]),VioletRed:u([.816,.125,.565]),Wheat:u([.96,.87,.7]),White:u([1,1,1]),WhiteSmoke:u([.96,.96,.96]),Yellow:u([1,1,0]),YellowGreen:u([.604,.804,.196])},ou={AntiqueWhite1:u([1,.936,.86]),AntiqueWhite2:u([.932,.875,.8]),AntiqueWhite3:u([.804,.752,.69]),AntiqueWhite4:u([.545,.512,.47]),Aquamarine1:u([.498,1,.83]),Aquamarine2:u([.464,.932,.776]),Aquamarine3:u([.4,.804,.668]),Aquamarine4:u([.27,.545,.455]),Azure1:u([.94,1,1]),Azure2:u([.88,.932,.932]),Azure3:u([.756,.804,.804]),Azure4:u([.512,.545,.545]),Bisque1:u([1,.894,.77]),Bisque2:u([.932,.835,.716]),Bisque3:u([.804,.716,.62]),Bisque4:u([.545,.49,.42]),Blue1:u([0,0,1]),Blue2:u([0,0,.932]),Blue3:u([0,0,.804]),Blue4:u([0,0,.545]),Brown1:u([1,.25,.25]),Brown2:u([.932,.23,.23]),Brown3:u([.804,.2,.2]),Brown4:u([.545,.136,.136]),Burlywood1:u([1,.828,.608]),Burlywood2:u([.932,.772,.57]),Burlywood3:u([.804,.668,.49]),Burlywood4:u([.545,.45,.332]),CadetBlue1:u([.596,.96,1]),CadetBlue2:u([.556,.898,.932]),CadetBlue3:u([.48,.772,.804]),CadetBlue4:u([.325,.525,.545]),Chartreuse1:u([.498,1,0]),Chartreuse2:u([.464,.932,0]),Chartreuse3:u([.4,.804,0]),Chartreuse4:u([.27,.545,0]),Chocolate1:u([1,.498,.14]),Chocolate2:u([.932,.464,.13]),Chocolate3:u([.804,.4,.112]),Chocolate4:u([.545,.27,.075]),Coral1:u([1,.448,.336]),Coral2:u([.932,.415,.312]),Coral3:u([.804,.356,.27]),Coral4:u([.545,.244,.185]),Cornsilk1:u([1,.972,.864]),Cornsilk2:u([.932,.91,.804]),Cornsilk3:u([.804,.785,.694]),Cornsilk4:u([.545,.532,.47]),Cyan1:u([0,1,1]),Cyan2:u([0,.932,.932]),Cyan3:u([0,.804,.804]),Cyan4:u([0,.545,.545]),DarkGoldenrod1:u([1,.725,.06]),DarkGoldenrod2:u([.932,.68,.055]),DarkGoldenrod3:u([.804,.585,.048]),DarkGoldenrod4:u([.545,.396,.03]),DarkOliveGreen1:u([.792,1,.44]),DarkOliveGreen2:u([.736,.932,.408]),DarkOliveGreen3:u([.635,.804,.352]),DarkOliveGreen4:u([.43,.545,.24]),DarkOrange1:u([1,.498,0]),DarkOrange2:u([.932,.464,0]),DarkOrange3:u([.804,.4,0]),DarkOrange4:u([.545,.27,0]),DarkOrchid1:u([.75,.244,1]),DarkOrchid2:u([.698,.228,.932]),DarkOrchid3:u([.604,.196,.804]),DarkOrchid4:u([.408,.132,.545]),DarkSeaGreen1:u([.756,1,.756]),DarkSeaGreen2:u([.705,.932,.705]),DarkSeaGreen3:u([.608,.804,.608]),DarkSeaGreen4:u([.41,.545,.41]),DarkSlateGray1:u([.592,1,1]),DarkSlateGray2:u([.552,.932,.932]),DarkSlateGray3:u([.475,.804,.804]),DarkSlateGray4:u([.32,.545,.545]),DeepPink1:u([1,.08,.576]),DeepPink2:u([.932,.07,.536]),DeepPink3:u([.804,.064,.464]),DeepPink4:u([.545,.04,.312]),DeepSkyBlue1:u([0,.75,1]),DeepSkyBlue2:u([0,.698,.932]),DeepSkyBlue3:u([0,.604,.804]),DeepSkyBlue4:u([0,.408,.545]),DodgerBlue1:u([.116,.565,1]),DodgerBlue2:u([.11,.525,.932]),DodgerBlue3:u([.094,.455,.804]),DodgerBlue4:u([.064,.305,.545]),Firebrick1:u([1,.19,.19]),Firebrick2:u([.932,.172,.172]),Firebrick3:u([.804,.15,.15]),Firebrick4:u([.545,.1,.1]),Gold1:u([1,.844,0]),Gold2:u([.932,.79,0]),Gold3:u([.804,.68,0]),Gold4:u([.545,.46,0]),Goldenrod1:u([1,.756,.145]),Goldenrod2:u([.932,.705,.132]),Goldenrod3:u([.804,.608,.112]),Goldenrod4:u([.545,.41,.08]),Green1:u([0,1,0]),Green2:u([0,.932,0]),Green3:u([0,.804,0]),Green4:u([0,.545,0]),Honeydew1:u([.94,1,.94]),Honeydew2:u([.88,.932,.88]),Honeydew3:u([.756,.804,.756]),Honeydew4:u([.512,.545,.512]),HotPink1:u([1,.43,.705]),HotPink2:u([.932,.415,.655]),HotPink3:u([.804,.376,.565]),HotPink4:u([.545,.228,.385]),IndianRed1:u([1,.415,.415]),IndianRed2:u([.932,.39,.39]),IndianRed3:u([.804,.332,.332]),IndianRed4:u([.545,.228,.228]),Ivory1:u([1,1,.94]),Ivory2:u([.932,.932,.88]),Ivory3:u([.804,.804,.756]),Ivory4:u([.545,.545,.512]),Khaki1:u([1,.965,.56]),Khaki2:u([.932,.9,.52]),Khaki3:u([.804,.776,.45]),Khaki4:u([.545,.525,.305]),LavenderBlush1:u([1,.94,.96]),LavenderBlush2:u([.932,.88,.898]),LavenderBlush3:u([.804,.756,.772]),LavenderBlush4:u([.545,.512,.525]),LemonChiffon1:u([1,.98,.804]),LemonChiffon2:u([.932,.912,.75]),LemonChiffon3:u([.804,.79,.648]),LemonChiffon4:u([.545,.536,.44]),LightBlue1:u([.75,.936,1]),LightBlue2:u([.698,.875,.932]),LightBlue3:u([.604,.752,.804]),LightBlue4:u([.408,.512,.545]),LightCyan1:u([.88,1,1]),LightCyan2:u([.82,.932,.932]),LightCyan3:u([.705,.804,.804]),LightCyan4:u([.48,.545,.545]),LightGoldenrod1:u([1,.925,.545]),LightGoldenrod2:u([.932,.864,.51]),LightGoldenrod3:u([.804,.745,.44]),LightGoldenrod4:u([.545,.505,.298]),LightPink1:u([1,.684,.725]),LightPink2:u([.932,.635,.68]),LightPink3:u([.804,.55,.585]),LightPink4:u([.545,.372,.396]),LightSalmon1:u([1,.628,.48]),LightSalmon2:u([.932,.585,.448]),LightSalmon3:u([.804,.505,.385]),LightSalmon4:u([.545,.34,.26]),LightSkyBlue1:u([.69,.888,1]),LightSkyBlue2:u([.644,.828,.932]),LightSkyBlue3:u([.552,.712,.804]),LightSkyBlue4:u([.376,.484,.545]),LightSteelBlue1:u([.792,.884,1]),LightSteelBlue2:u([.736,.824,.932]),LightSteelBlue3:u([.635,.71,.804]),LightSteelBlue4:u([.43,.484,.545]),LightYellow1:u([1,1,.88]),LightYellow2:u([.932,.932,.82]),LightYellow3:u([.804,.804,.705]),LightYellow4:u([.545,.545,.48]),Magenta1:u([1,0,1]),Magenta2:u([.932,0,.932]),Magenta3:u([.804,0,.804]),Magenta4:u([.545,0,.545]),Maroon1:u([1,.204,.7]),Maroon2:u([.932,.19,.655]),Maroon3:u([.804,.16,.565]),Maroon4:u([.545,.11,.385]),MediumOrchid1:u([.88,.4,1]),MediumOrchid2:u([.82,.372,.932]),MediumOrchid3:u([.705,.32,.804]),MediumOrchid4:u([.48,.215,.545]),MediumPurple1:u([.67,.51,1]),MediumPurple2:u([.624,.475,.932]),MediumPurple3:u([.536,.408,.804]),MediumPurple4:u([.365,.28,.545]),MistyRose1:u([1,.894,.884]),MistyRose2:u([.932,.835,.824]),MistyRose3:u([.804,.716,.71]),MistyRose4:u([.545,.49,.484]),NavajoWhite1:u([1,.87,.68]),NavajoWhite2:u([.932,.81,.63]),NavajoWhite3:u([.804,.7,.545]),NavajoWhite4:u([.545,.475,.37]),OliveDrab1:u([.752,1,.244]),OliveDrab2:u([.7,.932,.228]),OliveDrab3:u([.604,.804,.196]),OliveDrab4:u([.41,.545,.132]),Orange1:u([1,.648,0]),Orange2:u([.932,.604,0]),Orange3:u([.804,.52,0]),Orange4:u([.545,.352,0]),OrangeRed1:u([1,.27,0]),OrangeRed2:u([.932,.25,0]),OrangeRed3:u([.804,.215,0]),OrangeRed4:u([.545,.145,0]),Orchid1:u([1,.512,.98]),Orchid2:u([.932,.48,.912]),Orchid3:u([.804,.41,.79]),Orchid4:u([.545,.28,.536]),PaleGreen1:u([.604,1,.604]),PaleGreen2:u([.565,.932,.565]),PaleGreen3:u([.488,.804,.488]),PaleGreen4:u([.33,.545,.33]),PaleTurquoise1:u([.732,1,1]),PaleTurquoise2:u([.684,.932,.932]),PaleTurquoise3:u([.59,.804,.804]),PaleTurquoise4:u([.4,.545,.545]),PaleVioletRed1:u([1,.51,.67]),PaleVioletRed2:u([.932,.475,.624]),PaleVioletRed3:u([.804,.408,.536]),PaleVioletRed4:u([.545,.28,.365]),PeachPuff1:u([1,.855,.725]),PeachPuff2:u([.932,.796,.68]),PeachPuff3:u([.804,.688,.585]),PeachPuff4:u([.545,.468,.396]),Pink1:u([1,.71,.772]),Pink2:u([.932,.664,.72]),Pink3:u([.804,.57,.62]),Pink4:u([.545,.39,.424]),Plum1:u([1,.732,1]),Plum2:u([.932,.684,.932]),Plum3:u([.804,.59,.804]),Plum4:u([.545,.4,.545]),Purple1:u([.608,.19,1]),Purple2:u([.57,.172,.932]),Purple3:u([.49,.15,.804]),Purple4:u([.332,.1,.545]),Red1:u([1,0,0]),Red2:u([.932,0,0]),Red3:u([.804,0,0]),Red4:u([.545,0,0]),RosyBrown1:u([1,.756,.756]),RosyBrown2:u([.932,.705,.705]),RosyBrown3:u([.804,.608,.608]),RosyBrown4:u([.545,.41,.41]),RoyalBlue1:u([.284,.464,1]),RoyalBlue2:u([.264,.43,.932]),RoyalBlue3:u([.228,.372,.804]),RoyalBlue4:u([.152,.25,.545]),Salmon1:u([1,.55,.41]),Salmon2:u([.932,.51,.385]),Salmon3:u([.804,.44,.33]),Salmon4:u([.545,.298,.224]),SeaGreen1:u([.33,1,.624]),SeaGreen2:u([.305,.932,.58]),SeaGreen3:u([.264,.804,.5]),SeaGreen4:u([.18,.545,.34]),Seashell1:u([1,.96,.932]),Seashell2:u([.932,.898,.87]),Seashell3:u([.804,.772,.75]),Seashell4:u([.545,.525,.51]),Sienna1:u([1,.51,.28]),Sienna2:u([.932,.475,.26]),Sienna3:u([.804,.408,.224]),Sienna4:u([.545,.28,.15]),SkyBlue1:u([.53,.808,1]),SkyBlue2:u([.494,.752,.932]),SkyBlue3:u([.424,.65,.804]),SkyBlue4:u([.29,.44,.545]),SlateBlue1:u([.512,.435,1]),SlateBlue2:u([.48,.404,.932]),SlateBlue3:u([.41,.35,.804]),SlateBlue4:u([.28,.235,.545]),SlateGray1:u([.776,.888,1]),SlateGray2:u([.725,.828,.932]),SlateGray3:u([.624,.712,.804]),SlateGray4:u([.424,.484,.545]),Snow1:u([1,.98,.98]),Snow2:u([.932,.912,.912]),Snow3:u([.804,.79,.79]),Snow4:u([.545,.536,.536]),SpringGreen1:u([0,1,.498]),SpringGreen2:u([0,.932,.464]),SpringGreen3:u([0,.804,.4]),SpringGreen4:u([0,.545,.27]),SteelBlue1:u([.39,.72,1]),SteelBlue2:u([.36,.675,.932]),SteelBlue3:u([.31,.58,.804]),SteelBlue4:u([.21,.392,.545]),Tan1:u([1,.648,.31]),Tan2:u([.932,.604,.288]),Tan3:u([.804,.52,.248]),Tan4:u([.545,.352,.17]),Thistle1:u([1,.884,1]),Thistle2:u([.932,.824,.932]),Thistle3:u([.804,.71,.804]),Thistle4:u([.545,.484,.545]),Tomato1:u([1,.39,.28]),Tomato2:u([.932,.36,.26]),Tomato3:u([.804,.31,.224]),Tomato4:u([.545,.21,.15]),Turquoise1:u([0,.96,1]),Turquoise2:u([0,.898,.932]),Turquoise3:u([0,.772,.804]),Turquoise4:u([0,.525,.545]),VioletRed1:u([1,.244,.59]),VioletRed2:u([.932,.228,.55]),VioletRed3:u([.804,.196,.47]),VioletRed4:u([.545,.132,.32]),Wheat1:u([1,.905,.73]),Wheat2:u([.932,.848,.684]),Wheat3:u([.804,.73,.59]),Wheat4:u([.545,.494,.4]),Yellow1:u([1,1,0]),Yellow2:u([.932,.932,0]),Yellow3:u([.804,.804,0]),Yellow4:u([.545,.545,0]),Gray0:u([.745,.745,.745]),Green0:u([0,1,0]),Grey0:u([.745,.745,.745]),Maroon0:u([.69,.19,.376]),Purple0:u([.628,.125,.94])};var Tr={rgb:([i,f,m])=>(0,Ee.default)([i*255,f*255,m*255],"rgb"),cmy:([i,f,m])=>Tr.rgb([1-i,1-f,1-m]),cmyk:([i,f,m,b])=>(0,Ee.default)([i*255,f*255,m*255,b*100],"cmyk"),hsb:([i,f,m])=>(0,Ee.default)([i*360,f*100,m*100],"hsv"),gray:([i])=>(0,Ee.default)([i*255,i*255,i*255],"rgb")},ig={wave:([i])=>{let m=[0,0,0];380<=i&&i<440&&(m=[(440-i)/60,0,1]),440<=i&&i<490&&(m=[0,(i-440)/50,1]),490<=i&&i<510&&(m=[0,1,(510-i)/20]),510<=i&&i<580&&(m=[(i-510)/70,1,0]),580<=i&&i<6450&&(m=[1,(645-i)/65,0]),645<=i&&i<=780&&(m=[1,0,0]);let b=1;380<=i&&420<i&&(b=.3+.7*(i-380)/40),700<i&&i<=780&&(b=.3+.7*(780-i)/80);let r=[Math.pow(m[0]*b,.8),Math.pow(m[1]*b,.8),Math.pow(m[2]*b,.8)];return(0,Ee.default)([r[0]*255,r[1]*255,r[2]*255],"rgb")},Hsb:([i,f,m])=>Tr.hsb([i/360,f,m]),HSB:([i,f,m])=>Tr.hsb([i/240,f/240,m/240]),HTML:([i])=>i.startsWith("#")?(0,Ee.default)(i):(0,Ee.default)(`#${i}`),RGB:([i,f,m])=>(0,Ee.default)([i,f,m],"rgb"),Gray:([i])=>Tr.gray([i/15]),...Tr};var ag={red:Tr.rgb([1,0,0]),green:Tr.rgb([0,1,0]),blue:Tr.rgb([0,0,1]),brown:Tr.rgb([.75,.5,.25]),lime:Tr.rgb([.75,1,0]),orange:Tr.rgb([1,.5,0]),pink:Tr.rgb([1,.75,.75]),purple:Tr.rgb([.75,0,.25]),teal:Tr.rgb([0,.5,.5]),violet:Tr.rgb([.5,0,.5]),cyan:Tr.rgb([0,1,1]),magenta:Tr.rgb([1,0,1]),yellow:Tr.rgb([1,1,0]),olive:Tr.rgb([.5,.5,0]),black:Tr.rgb([0,0,0]),darkgray:Tr.rgb([.25,.25,.25]),gray:Tr.rgb([.5,.5,.5]),lightgray:Tr.rgb([.75,.75,.75]),white:Tr.rgb([1,1,1]),...au,...su,...ou};var Os={NewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},NewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},RenewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},ProvideDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},DeclareDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},NewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RequirePackage:{signature:"o m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}},DeclareOption:{signature:"m m",renderInfo:{breakAround:!0}}},Fs={};var Ds={mode:{signature:"s d<> d{}",renderInfo:{breakAround:!0}},insertnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortdate:{signature:"o",renderInfo:{breakAround:!0}},insertshortinstitute:{signature:"o",renderInfo:{breakAround:!0}},insertshortpart:{signature:"o",renderInfo:{breakAround:!0}},insertshorttitle:{signature:"o",renderInfo:{breakAround:!0}},insertsubsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsubsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertverticalnavigation:{signature:"m",renderInfo:{breakAround:!0}},usebeamercolor:{signature:"s m",renderInfo:{breakAround:!0}},usebeamertemplate:{signature:"s m",renderInfo:{breakAround:!0}},setbeamercolor:{signature:"m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamersize:{signature:"m o o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamertemplate:{signature:"m o o d{}",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},newcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},renewcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},newenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},renewenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},resetcounteronoverlays:{signature:"m",renderInfo:{breakAround:!0}},resetcountonoverlays:{signature:"m",renderInfo:{breakAround:!0}},logo:{signature:"m",renderInfo:{breakAround:!0}},frametitle:{signature:"d<> o m",renderInfo:{breakAround:!0}},framesubtitle:{signature:"d<> m",renderInfo:{breakAround:!0}},pause:{signature:"o"},onslide:{signature:"t+ t* d<> d{}"},only:{signature:"d<> m d<>"},uncover:{signature:"d<> m"},visible:{signature:"d<> m"},invisible:{signature:"d<> m"},alt:{signature:"d<> m m d<>"},temporal:{signature:"r<> m m m"},item:{signature:"d<> o d<>",renderInfo:{hangingIndent:!0,namedArguments:[null,"label",null]}},label:{signature:"d<> o m"},action:{signature:"d<> m"},beamerdefaultoverlayspecification:{signature:"m"},titlegraphic:{signature:"m",renderInfo:{breakAround:!0}},subject:{signature:"m",renderInfo:{breakAround:!0}},keywords:{signature:"m",renderInfo:{breakAround:!0}},lecture:{signature:"o m m",renderInfo:{breakAround:!0}},partpage:{renderInfo:{breakAround:!0}},sectionpage:{renderInfo:{breakAround:!0}},subsectionpage:{renderInfo:{breakAround:!0}},AtBeginLecture:{signature:"m",renderInfo:{breakAround:!0}},AtBeginPart:{signature:"m",renderInfo:{breakAround:!0}},tableofcontents:{signature:"o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},againframe:{signature:"d<> o o m",renderInfo:{breakAround:!0}},framezoom:{signature:"r<> r<> o r() r()",renderInfo:{breakAround:!0}},column:{signature:"d<> o m",renderInfo:{breakAround:!0}},animate:{signature:"r<>",renderInfo:{breakAround:!0}},animatevalue:{signature:"r<> m m m",renderInfo:{breakAround:!0}},sound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinksound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinkmute:{signature:"m",renderInfo:{breakAround:!0}},section:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsubsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},part:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},bibitem:{signature:"s d<> o m",renderInfo:{hangingIndent:!0,namedArguments:["starred",null,"tocTitle","title"]}}},Bs={frame:{signature:"!d<> !o !o !d{} !d{}"},block:{signature:"!d<> !d{} !d<>"},alertblock:{signature:"!d<> !d{} !d<>"},exampleblock:{signature:"!d<> !d{} !d<>"},onlyenv:{signature:"!d<>"},altenv:{signature:"!d<> m m m m !d<>"},overlayarea:{signature:"m m"},overprint:{signature:"o"},actionenv:{signature:"!d<>"},columns:{signature:"d<> o"},column:{signature:"d<> o m"}};var Ts={columnbreak:{renderInfo:{breakAround:!0}}},Ls={multicols:{signature:"m o o"},"multicols*":{signature:"m o o"}};var Ns={amsart:_a,cleveref:Ra,exam:Ga,geometry:Wa,hyperref:Xa,latex2e:Ua,listings:hs,makeidx:vs,mathtools:$s,minted:xs,nicematrix:ws,systeme:Ms,tikz:Is,xcolor:Ss,xparse:Os,beamer:Ds,multicol:Ts},js={amsart:Sa,cleveref:Oa,exam:qa,geometry:za,hyperref:Va,latex2e:Ha,listings:ds,makeidx:ys,mathtools:bs,minted:ks,nicematrix:Cs,systeme:Es,tikz:_s,xcolor:Rs,xparse:Fs,beamer:Bs,multicol:Ls};function Ai(i,f){if(f.signature&&i.args==null){let{args:m}=vi(i.content,f.signature);i.args=m}Gt(i,f.renderInfo),typeof f.processContent=="function"&&(i.content=f.processContent(i.content))}function Gs(i,f,m){let b=[],r={start:void 0,end:i.length};for(let a=0;a<i.length;a++){let e=i[a];f(e)&&(r.start=a),m(e)&&(r.end=a+1,b.push(r),r={start:void 0,end:i.length})}return r.start!=null&&b.push(r),b}function fu(i){let f=[...i];f.sort((y,$)=>y.start-$.start);let m=new Set(f.flatMap(y=>[y.start,y.end])),b=Array.from(m);b.sort((y,$)=>y-$);let r=[],a=[],e=0;for(let y=0;y<b.length-1;y++){let $=b[y],S=b[y+1],F={start:$,end:S},K=new Set,ne=!1;for(let d=e;d<f.length;d++){let p=f[d];if(p.end>=F.start&&(ne=!0),!ne&&p.end<F.start){e=d+1;continue}if(p.start>S)break;p.start<=F.start&&p.end>=F.end&&(ne=!0,K.add(p))}K.size>0&&(r.push(F),a.push(K))}return{regions:r,regionsContainedIn:a}}function uu(i,f){let m=[],b=[0,i.length],r={};for(let[a,e]of Object.entries(f))b.push(...e.flatMap(y=>(r[""+[y.start,y.end]]=a,[y.start,y.end])));b.sort((a,e)=>a-e);for(let a=0;a<b.length-1;a++){let e=b[a],y=b[a+1];if(e===y)continue;let $=r[""+[e,y]];m.push([$||null,i.slice(e,y)])}return m}function lu(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function cu(i){let f=`^(${["\\p{L}"].concat(Array.from(i).map(lu)).join("|")})*`;return new RegExp(f,"u")}function gu(i,f){for(let m=0;m<i.length;m++){let b=i[m],r=i[m+1];if(xe.anyMacro(b)&&xe.anyString(r)&&(f.has(b.content.charAt(b.content.length-1))||f.has(r.content.charAt(0))))return!0}return!1}function xi(i,f){typeof f=="string"&&(f=new Set(f.split("")));let m=f;for(let r of m)if(r.length>1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${r}\`.`);let b=!1;return ft(i,r=>{if(gu(r,m))return b=!0,en},{includeArrays:!0,test:Array.isArray}),b}function pu(i,f){var m,b,r;let a=cu(f),e=0;for(;e<i.length;){let y=i[e],$=i[e+1];if(xe.anyMacro(y)&&(y.escapeToken==null||y.escapeToken==="\\")&&xe.anyString($)&&(f.has(y.content.charAt(y.content.length-1))||f.has($.content.charAt(0)))){let S=$.content.match(a),F=S?S[0]:"";F.length>0?F.length===$.content.length?(y.content+=$.content,i.splice(e+1,1),y.position&&((m=$.position)!=null&&m.end)&&(y.position.end=$.position.end)):(y.content+=F,$.content=$.content.slice(F.length),(b=y.position)!=null&&b.end&&(y.position.end.offset+=F.length,y.position.end.column+=F.length),(r=$.position)!=null&&r.start&&($.position.start.offset+=F.length,$.position.start.column+=F.length)):e++}else++e}}function on(i,f){typeof f=="string"&&(f=new Set(f.split("")));let m=f;for(let b of m)if(b.length>1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${b}\`.`);ft(i,b=>{pu(b,m)},{includeArrays:!0,test:Array.isArray})}var qs={start:xe.createMacroMatcher(["ExplSyntaxOn"]),end:xe.createMacroMatcher(["ExplSyntaxOff"])},Ws={start:xe.createMacroMatcher(["makeatletter"]),end:xe.createMacroMatcher(["makeatother"])};function mu(i){let f=Gs(i,qs.start,qs.end),m=Gs(i,Ws.start,Ws.end),b=new Map([...f.map(e=>[e,"expl"]),...m.map(e=>[e,"atLetter"])]),r=fu([...f,...m]),a={explOnly:[],atLetterOnly:[],both:[]};for(let e=0;e<r.regions.length;e++){let y=r.regions[e],$=r.regionsContainedIn[e];if($.size===2){a.both.push(y);continue}for(let S of $.values())b.get(S)==="expl"&&a.explOnly.push(y),b.get(S)==="atLetter"&&a.atLetterOnly.push(y)}return a.explOnly=a.explOnly.filter(e=>e.end-e.start>1),a.atLetterOnly=a.atLetterOnly.filter(e=>e.end-e.start>1),a.both=a.both.filter(e=>e.end-e.start>1),a}var hu=new Set(["@"]),du=new Set(["_",":"]),vu=new Set(["_",":","@"]);function zs(i){ft(i,{leave:f=>{let m=mu(f);if(m.both.length+m.atLetterOnly.length+m.explOnly.length===0)return;let r=uu(f,m),a=[];for(let[e,y]of r)switch(e){case null:a.push(...y);continue;case"atLetterOnly":on(y,hu),a.push(...y);continue;case"explOnly":on(y,du),a.push(...y);continue;case"both":on(y,vu),a.push(...y);continue;default:throw new Error(`Unexpected case when splitting ${e}`)}return f.length=0,f.push(...a),fi}},{includeArrays:!0,test:Array.isArray})}var Vs=function(){Object.assign(this,{Compiler:f=>f})};function yu(i){return li.parse(i)}function ki(i){return li.parse(i,{startRule:"math"})}var $u=function(f){Object.assign(this,{Parser:b=>(f==null?void 0:f.mode)==="math"?{type:"root",content:ki(b),_renderInfo:{inMathMode:!0}}:yu(b)})};function bu({mathEnvs:i,mathMacros:f}){let m=xe.createEnvironmentMatcher(i),b=xe.createMacroMatcher(f);return r=>{ft(r,a=>{if(xe.anyMacro(a))for(let e of a.args||[])e.content.length>0&&!Xs(e.content)&&(e.content=ki(lt(e.content)));xe.anyEnvironment(a)&&(Xs(a.content)||(a.content=ki(lt(a.content))))},{test:a=>m(a)||b(a)})}}function Xs(i){return!i.some(f=>xe.anyString(f)&&f.content.length>1||xe.string(f,"^")||xe.string(f,"_"))}var Au=function(f){let{environments:m={},macros:b={}}=f||{},r=Object.fromEntries(Object.entries(b).filter(([S,F])=>{var K;return((K=F.renderInfo)==null?void 0:K.inMathMode)===!0})),a=Object.fromEntries(Object.entries(m).filter(([S,F])=>{var K;return((K=F.renderInfo)==null?void 0:K.inMathMode)===!0})),e=bu({mathEnvs:Object.keys(a),mathMacros:Object.keys(r)}),y=xe.createEnvironmentMatcher(m),$=xe.createEnvironmentMatcher(a);return S=>{ft(S,{enter:F=>{Array.isArray(F)&&sn(F,r)},leave:F=>{if(!$(F))return;let K=lt(F.env),ne=m[K];if(!ne)throw new Error(`Could not find environment info for environment "${K}"`);Ai(F,ne)}},{includeArrays:!0}),e(S),ft(S,{enter:F=>{Array.isArray(F)&&sn(F,b)},leave:F=>{if(!y(F))return;let K=lt(F.env),ne=m[K];if(!ne)throw new Error(`Could not find environment info for environment "${K}"`);Ai(F,ne)}},{includeArrays:!0})}},xu=function(f){let{atLetter:m=!1,expl3:b=!1,autodetectExpl3AndAtLetter:r=!1}=f||{};return a=>{zs(a),(m||b)&&(r=!1),r&&(m=xi(a,"@"),b=xi(a,"_"));let e=new Set;m&&e.add("@"),b&&(e.add(":"),e.add("_")),e.size>0&&on(a,e)}},Us=function(f){let{mode:m="regular",macros:b={},environments:r={},flags:{atLetter:a=!1,expl3:e=!1,autodetectExpl3AndAtLetter:y=!1}={}}=f||{},$=Object.assign({},...Object.values(Ns),b),S=Object.assign({},...Object.values(js),r),F=Zt().use($u,{mode:m}).use(xu,{atLetter:a,expl3:e,autodetectExpl3AndAtLetter:y}).use(Au,{macros:$,environments:S}).use(Ba).use(Ta).use(Vs);Object.assign(this,{Parser:ne=>F.processSync({value:ne}).result})},ip=Zt().use(Us).freeze();function Hs(i){return typeof i!="string"&&(i=lt(i)),Zt().use(Us,{mode:"math"}).use(Vs).processSync({value:i}).result.content}var Rn=i=>!!(i&&i.openMark==="{"&&i.closeMark==="}"),wi=(i,f)=>new i.MathRun(f),ku={textasciitilde:"~",textasciicircum:"^",textbackslash:"\u2216",textbar:"|",textless:"<",textgreater:">",neq:"\u2260",sim:"\u223C",simeq:"\u2243",approx:"\u2248",fallingdotseq:"\u2252",risingdotseq:"\u2253",equiv:"\u2261",geq:"\u2265",geqq:"\u2267",leq:"\u2264",leqq:"\u2266",gg:"\u226B",ll:"\u226A",times:"\xD7",div:"\xF7",pm:"\xB1",mp:"\u2213",oplus:"\u2295",ominus:"\u2296",otimes:"\u2297",oslash:"\u2298",circ:"\u2218",cdot:"\u22C5",bullet:"\u2219",ltimes:"\u22C9",rtimes:"\u22CA",in:"\u2208",ni:"\u220B",notin:"\u2209",subset:"\u2282",supset:"\u2283",subseteq:"\u2286",supseteq:"\u2287",nsubseteq:"\u2288",nsupseteq:"\u2289",subsetneq:"\u228A",supsetneq:"\u228B",cap:"\u2229",cup:"\u222A",emptyset:"\u2205",infty:"\u221E",partial:"\u2202",aleph:"\u2135",hbar:"\u210F",wp:"\u2118",Re:"\u211C",Im:"\u2111",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03F5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",pi:"\u03C0",rho:"\u03C1",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03D5",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",varepsilon:"\u03B5",vartheta:"\u03D1",varrho:"\u03F1",varsigma:"\u03C2",varphi:"\u03C6",Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",Lambda:"\u039B",Xi:"\u039E",Pi:"\u03A0",Sigma:"\u03A3",Upsilon:"\u03A5",Phi:"\u03A6",Psi:"\u03A8",Omega:"\u03A9",int:"\u222B",oint:"\u222E",prod:"\u220F",coprod:"\u2210",sum:"\u2211",log:"log",exp:"exp",lim:"lim",inf:"\u221E",perp:"\u22A5",and:"\u2227",or:"\u2228",not:"\xAC",to:"\u2192",gets:"\u27F9",implies:"\u27F9",impliedby:"\u27F8",forall:"\u2200",exists:"\u2203",empty:"\u2205",nabla:"\u2207",top:"\u22A4",bot:"\u22A5",angle:"\u2220",backslash:"\u2216",neg:"\xAC",lnot:"\xAC",flat:"\u266D",natural:"\u266E",sharp:"\u266F",clubsuit:"\u2663",diamondsuit:"\u2666",heartsuit:"\u2665",spadesuit:"\u2660",varnothing:"\u2205",S:"\u2216",P:"\u220F",bigcap:"\u22C0",bigcup:"\u22C1",bigwedge:"\u2293",bigvee:"\u2294",bigsqcap:"\u2293",bigsqcup:"\u2294",biguplus:"\u2295",bigoplus:"\u2295",bigotimes:"\u2297",bigodot:"\u2299",biginterleave:"\u22BA",bigtimes:"\u2A2F"},ht=(i,f)=>{let m=[];for(let b of f)m.push(...Js(i,b,m)||[]);return m},wu=(i,f,m)=>{var r,a,e,y,$,S,F,K,ne,d,p,_,se,Se,Ue;let b=null;switch(f.content){case"newline":case"\\":return null;case"textcolor":{let ie=(r=f.args)!=null?r:[];Rn(ie[2])&&(b=ht(i,ie[2].content));break}case"text":{let ie=(a=f.args)!=null?a:[];Rn(ie[0])&&(b=ht(i,ie[0].content));break}case"^":{let ie=m.pop();if(!ie)break;let ze=ht(i,($=(y=(e=f.args)==null?void 0:e[0])==null?void 0:y.content)!=null?$:[]);if(ie.isSum){let _e=new i.MathSum({children:[],superScript:ze,subScript:ie.sub});return _e.sub=ie.sub,_e.sup=ze,_e.isSum=1,_e}else if(ie.sub)return new i.MathSubSuperScript({subScript:ie.sub,superScript:ze,children:[ie.prev]});let qe=new i.MathSuperScript({children:[ie],superScript:ze});return qe.sup=ze,qe.prev=ie,qe}case"_":{let ie=m.pop();if(!ie)break;let ze=ht(i,(K=(F=(S=f.args)==null?void 0:S[0])==null?void 0:F.content)!=null?K:[]);if(ie.isSum){let _e=new i.MathSum({children:[],subScript:ze,superScript:ie.sup});return _e.sup=ie.sup,_e.sub=ze,_e.isSum=1,_e}else if(ie.sup)return new i.MathSubSuperScript({subScript:ze,superScript:ie.sup,children:[ie.prev]});let qe=new i.MathSubScript({children:[ie],subScript:ze});return qe.sub=ze,qe.prev=ie,qe}case"hat":case"widehat":return[];case"sum":{let ie=new i.MathSum({children:[]});return ie.isSum=1,ie}case"frac":case"tfrac":case"dfrac":{let ie=(ne=f.args)!=null?ne:[];ie.length===2&&Rn(ie[0])&&Rn(ie[1])&&(b=new i.MathFraction({numerator:ht(i,ie[0].content),denominator:ht(i,ie[1].content)}));break}case"sqrt":{let ie=(d=f.args)!=null?d:[];ie.length===1?b=new i.MathRadical({children:ht(i,ie[0].content)}):ie.length===2&&(b=new i.MathRadical(ie[0].content?{children:ht(i,ie[1].content),degree:ht(i,ie[0].content)}:{children:ht(i,ie[1].content)}));break}case"left":case"right":case"vec":return[];case"mathbf":return ht(i,(se=(_=(p=f.args)==null?void 0:p[0])==null?void 0:_.content)!=null?se:[]);default:b=wi(i,(Se=ku[f.content])!=null?Se:f.content)}if((Ue=m[m.length-1])!=null&&Ue.isSum&&b){let ie=m.pop();return[new i.MathSum({children:Array.isArray(b)?b:[b],superScript:ie.sup,subScript:ie.sub})]}return b},Js=(i,f,m)=>{var r;let b=[];switch(f.type){case"string":b=[wi(i,f.content)];break;case"whitespace":b=[wi(i," ")];break;case"macro":{let a=wu(i,f,m);if(a)b=Array.isArray(a)?a:[a];else return!1;break}case"group":b=ht(i,f.content);break;case"environment":break;default:}if(f.type!=="macro"&&((r=m[m.length-1])!=null&&r.isSum)){let a=m.pop();return[new i.MathSum({children:b,superScript:a.sup,subScript:a.sub})]}return b},Ys=(i,f)=>{let m=Hs(f),b=[[]],r=b[0];for(let a of m){let e=Js(i,a,r);e?r.push(...e):b.push(r=[])}return b},op=()=>({inline:async(i,f)=>{var m;return f.type!=="inlineMath"&&f.type!=="math"?[]:(f.type="",[new i.Math({children:await Ys(i,(m=f.value)!=null?m:"").flat()})])},block:async(i,f)=>{var m;return f.type!=="math"&&f.type!=="inlineMath"?[]:(f.type="",await Ys(i,(m=f.value)!=null?m:"").map(b=>new i.Paragraph({children:[new i.Math({children:b})]})))}});export{Ys as a,op as b};
|
|
66
|
+
/*! Bundled license information:
|
|
67
|
+
|
|
68
|
+
is-buffer/index.js:
|
|
69
|
+
(*!
|
|
70
|
+
* Determine if an object is a Buffer
|
|
71
|
+
*
|
|
72
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
73
|
+
* @license MIT
|
|
74
|
+
*)
|
|
75
|
+
*/
|