@podlite/markdown 0.0.40 → 0.0.42
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/CHANGELOG.podlite +4 -0
- package/lib/index.cjs +28 -52
- package/lib/index.cjs.map +4 -4
- package/lib/index.esm.js +54 -6555
- package/lib/index.esm.js.map +4 -4
- package/package.json +15 -7
package/lib/index.cjs
CHANGED
|
@@ -1,65 +1,41 @@
|
|
|
1
|
-
var rg=Object.create;var No=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var ig=Object.getOwnPropertyNames;var sg=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var we=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),fc=(t,r)=>{for(var e in r)No(t,e,{get:r[e],enumerable:!0})},cc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of ig(r))!og.call(t,s)&&s!==e&&No(t,s,{get:()=>r[s],enumerable:!(n=ng(r,s))||n.enumerable});return t};var Sr=(t,r,e)=>(e=t!=null?rg(sg(t)):{},cc(r||!t||!t.__esModule?No(e,"default",{value:t,enumerable:!0}):e,t)),ag=t=>cc(No({},"__esModule",{value:!0}),t);var sl=we(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getRules=Yi.isJSONType=void 0;var lg=["string","number","integer","boolean","null","object","array"],ug=new Set(lg);function fg(t){return typeof t=="string"&&ug.has(t)}Yi.isJSONType=fg;function cg(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Yi.getRules=cg});var ol=we(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.shouldUseRule=Qn.shouldUseGroup=Qn.schemaHasRulesForType=void 0;function pg({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&pc(t,n)}Qn.schemaHasRulesForType=pg;function pc(t,r){return r.rules.some(e=>dc(t,e))}Qn.shouldUseGroup=pc;function dc(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Qn.shouldUseRule=dc});var Ro=we(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getProperty=dt.safeStringify=dt.stringify=dt.strConcat=dt.addCodeArg=dt.str=dt._=dt.nil=dt._Code=dt.Name=dt.IDENTIFIER=dt._CodeOrName=void 0;var Rs=class{};dt._CodeOrName=Rs;dt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var yi=class extends Rs{constructor(r){if(super(),!dt.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};dt.Name=yi;var kn=class extends Rs{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof yi&&(e[n.str]=(e[n.str]||0)+1),e),{})}};dt._Code=kn;dt.nil=new kn("");function mc(t,...r){let e=[t[0]],n=0;for(;n<r.length;)ll(e,r[n]),e.push(t[++n]);return new kn(e)}dt._=mc;var al=new kn("+");function hc(t,...r){let e=[Ds(t[0])],n=0;for(;n<r.length;)e.push(al),ll(e,r[n]),e.push(al,Ds(t[++n]));return dg(e),new kn(e)}dt.str=hc;function ll(t,r){r instanceof kn?t.push(...r._items):r instanceof yi?t.push(r):t.push(gg(r))}dt.addCodeArg=ll;function dg(t){let r=1;for(;r<t.length-1;){if(t[r]===al){let e=mg(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function mg(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof yi||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof yi))return`"${t}${r.slice(1)}`}function hg(t,r){return r.emptyStr()?t:t.emptyStr()?r:hc`${t}${r}`}dt.strConcat=hg;function gg(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ds(Array.isArray(t)?t.join(","):t)}function yg(t){return new kn(Ds(t))}dt.stringify=yg;function Ds(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}dt.safeStringify=Ds;function bg(t){return typeof t=="string"&&dt.IDENTIFIER.test(t)?new kn(`.${t}`):mc`[${t}]`}dt.getProperty=bg});var pl=we(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ValueScope=gr.ValueScopeName=gr.Scope=gr.varKinds=gr.UsedValueState=void 0;var Pr=Ro(),ul=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},fl;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(fl=gr.UsedValueState||(gr.UsedValueState={}));gr.varKinds={const:new Pr.Name("const"),let:new Pr.Name("let"),var:new Pr.Name("var")};var Do=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof Pr.Name?r:this.name(r)}name(r){return new Pr.Name(this._newName(r))}_newName(r){let e=this._names[r]||this._nameGroup(r);return`${r}${e.index++}`}_nameGroup(r){var e,n;if(((n=(e=this._parent)===null||e===void 0?void 0:e._prefixes)===null||n===void 0?void 0:n.has(r))||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};gr.Scope=Do;var qo=class extends Pr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=Pr._`.${new Pr.Name(e)}[${n}]`}};gr.ValueScopeName=qo;var $g=Pr._`\n`,cl=class extends Do{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?$g:Pr.nil}}get(){return this._scope}name(r){return new qo(r,this._newName(r))}value(r,e){var n;if(e.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(r),{prefix:o}=s,l=(n=e.key)!==null&&n!==void 0?n:e.ref,f=this._values[o];if(f){let h=f.get(l);if(h)return h}else f=this._values[o]=new Map;f.set(l,s);let c=this._scope[o]||(this._scope[o]=[]),g=c.length;return c[g]=e.ref,s.setValue(e,{property:o,itemIndex:g}),s}getValue(r,e){let n=this._values[r];if(!!n)return n.get(e)}scopeRefs(r,e=this._values){return this._reduceValues(e,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return Pr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},e,n)}_reduceValues(r,e,n={},s){let o=Pr.nil;for(let l in r){let f=r[l];if(!f)continue;let c=n[l]=n[l]||new Map;f.forEach(g=>{if(c.has(g))return;c.set(g,fl.Started);let h=e(g);if(h){let $=this.opts.es5?gr.varKinds.var:gr.varKinds.const;o=Pr._`${o}${$} ${g} = ${h};${this.opts._n}`}else if(h=s==null?void 0:s(g))o=Pr._`${o}${h}${this.opts._n}`;else throw new ul(g);c.set(g,fl.Completed)})}return o}};gr.ValueScope=cl});var ze=we(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.or=He.and=He.not=He.CodeGen=He.operators=He.varKinds=He.ValueScopeName=He.ValueScope=He.Scope=He.Name=He.stringify=He.getProperty=He.nil=He.strConcat=He.str=He._=void 0;var Ze=Ro(),on=pl(),wi=Ro();Object.defineProperty(He,"_",{enumerable:!0,get:function(){return wi._}});Object.defineProperty(He,"str",{enumerable:!0,get:function(){return wi.str}});Object.defineProperty(He,"strConcat",{enumerable:!0,get:function(){return wi.strConcat}});Object.defineProperty(He,"nil",{enumerable:!0,get:function(){return wi.nil}});Object.defineProperty(He,"getProperty",{enumerable:!0,get:function(){return wi.getProperty}});Object.defineProperty(He,"stringify",{enumerable:!0,get:function(){return wi.stringify}});Object.defineProperty(He,"Name",{enumerable:!0,get:function(){return wi.Name}});var Mo=pl();Object.defineProperty(He,"Scope",{enumerable:!0,get:function(){return Mo.Scope}});Object.defineProperty(He,"ValueScope",{enumerable:!0,get:function(){return Mo.ValueScope}});Object.defineProperty(He,"ValueScopeName",{enumerable:!0,get:function(){return Mo.ValueScopeName}});Object.defineProperty(He,"varKinds",{enumerable:!0,get:function(){return Mo.varKinds}});He.operators={GT:new Ze._Code(">"),GTE:new Ze._Code(">="),LT:new Ze._Code("<"),LTE:new Ze._Code("<="),EQ:new Ze._Code("==="),NEQ:new Ze._Code("!=="),NOT:new Ze._Code("!"),OR:new Ze._Code("||"),AND:new Ze._Code("&&"),ADD:new Ze._Code("+")};var Mn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},dl=class extends Mn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?on.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=ts(this.rhs,r,e)),this}get names(){return this.rhs instanceof Ze._CodeOrName?this.rhs.names:{}}},Lo=class extends Mn{constructor(r,e,n){super(),this.lhs=r,this.rhs=e,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,e){if(!(this.lhs instanceof Ze.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=ts(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Ze.Name?{}:{...this.lhs.names};return Bo(r,this.rhs)}},ml=class extends Lo{constructor(r,e,n,s){super(r,n,s),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},hl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},gl=class extends Mn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},yl=class extends Mn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},bl=class extends Mn{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,e){return this.code=ts(this.code,r,e),this}get names(){return this.code instanceof Ze._CodeOrName?this.code.names:{}}},qs=class extends Mn{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((e,n)=>e+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,e=r.length;for(;e--;){let n=r[e].optimizeNodes();Array.isArray(n)?r.splice(e,1,...n):n?r[e]=n:r.splice(e,1)}return r.length>0?this:void 0}optimizeNames(r,e){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(r,e)||(wg(r,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>$i(r,e.names),{})}},zn=class extends qs{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},$l=class extends qs{},es=class extends zn{};es.kind="else";var an=class extends zn{constructor(r,e){super(e),this.condition=r}render(r){let e=`if(${this.condition})`+super.render(r);return this.else&&(e+="else "+this.else.render(r)),e}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let e=this.else;if(e){let n=e.optimizeNodes();e=this.else=Array.isArray(n)?new es(n):n}if(e)return r===!1?e instanceof an?e:e.nodes:this.nodes.length?this:new an(gc(r),e instanceof an?[e]:e.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,e){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,e),!!(super.optimizeNames(r,e)||this.else))return this.condition=ts(this.condition,r,e),this}get names(){let r=super.names;return Bo(r,this.condition),this.else&&$i(r,this.else.names),r}};an.kind="if";var bi=class extends zn{};bi.kind="for";var wl=class extends bi{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iteration=ts(this.iteration,r,e),this}get names(){return $i(super.names,this.iteration.names)}},kl=class extends bi{constructor(r,e,n,s){super(),this.varKind=r,this.name=e,this.from=n,this.to=s}render(r){let e=r.es5?on.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${e} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=Bo(super.names,this.from);return Bo(r,this.to)}},jo=class extends bi{constructor(r,e,n,s){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=s}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iterable=ts(this.iterable,r,e),this}get names(){return $i(super.names,this.iterable.names)}},Ls=class extends zn{constructor(r,e,n){super(),this.name=r,this.args=e,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};Ls.kind="func";var js=class extends qs{render(r){return"return "+super.render(r)}};js.kind="return";var vl=class extends zn{render(r){let e="try"+super.render(r);return this.catch&&(e+=this.catch.render(r)),this.finally&&(e+=this.finally.render(r)),e}optimizeNodes(){var r,e;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(e=this.finally)===null||e===void 0||e.optimizeNodes(),this}optimizeNames(r,e){var n,s;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(s=this.finally)===null||s===void 0||s.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&$i(r,this.catch.names),this.finally&&$i(r,this.finally.names),r}},Bs=class extends zn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Bs.kind="catch";var Ms=class extends zn{render(r){return"finally"+super.render(r)}};Ms.kind="finally";var xl=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
|
|
2
|
-
`:""},this._extScope=r,this._scope=new on.Scope({parent:r}),this._nodes=[new $l]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,e){let n=this._extScope.value(r,e);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,e){return this._extScope.getValue(r,e)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,e,n,s){let o=this._scope.toName(e);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new dl(r,o,n)),o}const(r,e,n){return this._def(on.varKinds.const,r,e,n)}let(r,e,n){return this._def(on.varKinds.let,r,e,n)}var(r,e,n){return this._def(on.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Lo(r,e,n))}add(r,e){return this._leafNode(new ml(r,He.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Ze.nil&&this._leafNode(new bl(r)),this}object(...r){let e=["{"];for(let[n,s]of r)e.length>1&&e.push(","),e.push(n),(n!==s||this.opts.es5)&&(e.push(":"),Ze.addCodeArg(e,s));return e.push("}"),new Ze._Code(e)}if(r,e,n){if(this._blockNode(new an(r)),e&&n)this.code(e).else().code(n).endIf();else if(e)this.code(e).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new an(r))}else(){return this._elseNode(new es)}endIf(){return this._endBlockNode(an,es)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new wl(r),e)}forRange(r,e,n,s,o=this.opts.es5?on.varKinds.var:on.varKinds.let){let l=this._scope.toName(r);return this._for(new kl(o,l,e,n),()=>s(l))}forOf(r,e,n,s=on.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let l=e instanceof Ze.Name?e:this.var("_arr",e);return this.forRange("_i",0,Ze._`${l}.length`,f=>{this.var(o,Ze._`${l}[${f}]`),n(o)})}return this._for(new jo("of",s,o,e),()=>n(o))}forIn(r,e,n,s=this.opts.es5?on.varKinds.var:on.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Ze._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new jo("in",s,o,e),()=>n(o))}endFor(){return this._endBlockNode(bi)}label(r){return this._leafNode(new hl(r))}break(r){return this._leafNode(new gl(r))}return(r){let e=new js;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(js)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new vl;if(this._blockNode(s),this.code(r),e){let o=this.name("e");this._currNode=s.catch=new Bs(o),e(o)}return n&&(this._currNode=s.finally=new Ms,this.code(n)),this._endBlockNode(Bs,Ms)}throw(r){return this._leafNode(new yl(r))}block(r,e){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(e),this}endBlock(r){let e=this._blockStarts.pop();if(e===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-e;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=e,this}func(r,e=Ze.nil,n,s){return this._blockNode(new Ls(r,e,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(Ls)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,e){let n=this._currNode;if(n instanceof r||e&&n instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${r.kind}/${e.kind}`:r.kind}"`)}_elseNode(r){let e=this._currNode;if(!(e instanceof an))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let e=this._nodes;e[e.length-1]=r}};He.CodeGen=xl;function $i(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Bo(t,r){return r instanceof Ze._CodeOrName?$i(t,r.names):t}function ts(t,r,e){if(t instanceof Ze.Name)return n(t);if(!s(t))return t;return new Ze._Code(t._items.reduce((o,l)=>(l instanceof Ze.Name&&(l=n(l)),l instanceof Ze._Code?o.push(...l._items):o.push(l),o),[]));function n(o){let l=e[o.str];return l===void 0||r[o.str]!==1?o:(delete r[o.str],l)}function s(o){return o instanceof Ze._Code&&o._items.some(l=>l instanceof Ze.Name&&r[l.str]===1&&e[l.str]!==void 0)}}function wg(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function gc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Ze._`!${Cl(t)}`}He.not=gc;var kg=yc(He.operators.AND);function vg(...t){return t.reduce(kg)}He.and=vg;var xg=yc(He.operators.OR);function Cg(...t){return t.reduce(xg)}He.or=Cg;function yc(t){return(r,e)=>r===Ze.nil?e:e===Ze.nil?r:Ze._`${Cl(r)} ${t} ${Cl(e)}`}function Cl(t){return t instanceof Ze.Name?t:Ze._`(${t})`}});var ln=we(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var ir=ze(),Ag={data:new ir.Name("data"),valCxt:new ir.Name("valCxt"),dataPath:new ir.Name("dataPath"),parentData:new ir.Name("parentData"),parentDataProperty:new ir.Name("parentDataProperty"),rootData:new ir.Name("rootData"),dynamicAnchors:new ir.Name("dynamicAnchors"),vErrors:new ir.Name("vErrors"),errors:new ir.Name("errors"),this:new ir.Name("this"),self:new ir.Name("self"),scope:new ir.Name("scope"),json:new ir.Name("json"),jsonPos:new ir.Name("jsonPos"),jsonLen:new ir.Name("jsonLen"),jsonPart:new ir.Name("jsonPart")};Al.default=Ag});var zs=we(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.extendErrors=sr.resetErrorsCount=sr.reportExtraError=sr.reportError=sr.keyword$DataError=sr.keywordError=void 0;var Je=ze(),or=ln();sr.keywordError={message:({keyword:t})=>Je.str`should pass "${t}" keyword validation`};sr.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Je.str`"${t}" keyword must be ${r} ($data)`:Je.str`"${t}" keyword is invalid ($data)`};function Eg(t,r=sr.keywordError,e){let{it:n}=t,{gen:s,compositeRule:o,allErrors:l}=n,f=wc(t,r);e??(o||l)?bc(s,f):$c(n,Je._`[${f}]`)}sr.reportError=Eg;function _g(t,r=sr.keywordError){let{it:e}=t,{gen:n,compositeRule:s,allErrors:o}=e,l=wc(t,r);bc(n,l),s||o||$c(e,or.default.vErrors)}sr.reportExtraError=_g;function Sg(t,r){t.assign(or.default.errors,r),t.if(Je._`${or.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Je._`${or.default.vErrors}.length`,r),()=>t.assign(or.default.vErrors,null)))}sr.resetErrorsCount=Sg;function Pg({gen:t,keyword:r,schemaValue:e,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let l=t.name("err");t.forRange("i",s,or.default.errors,f=>{t.const(l,Je._`${or.default.vErrors}[${f}]`),t.if(Je._`${l}.dataPath === undefined`,()=>t.assign(Je._`${l}.dataPath`,Je.strConcat(or.default.dataPath,o.errorPath))),t.assign(Je._`${l}.schemaPath`,Je.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Je._`${l}.schema`,e),t.assign(Je._`${l}.data`,n))})}sr.extendErrors=Pg;function bc(t,r){let e=t.const("err",r);t.if(Je._`${or.default.vErrors} === null`,()=>t.assign(or.default.vErrors,Je._`[${e}]`),Je._`${or.default.vErrors}.push(${e})`),t.code(Je._`${or.default.errors}++`)}function $c(t,r){let{gen:e,validateName:n,schemaEnv:s}=t;s.$async?e.throw(Je._`new ${t.ValidationError}(${r})`):(e.assign(Je._`${n}.errors`,r),e.return(!1))}var vn={keyword:new Je.Name("keyword"),schemaPath:new Je.Name("schemaPath"),params:new Je.Name("params"),propertyName:new Je.Name("propertyName"),message:new Je.Name("message"),schema:new Je.Name("schema"),parentSchema:new Je.Name("parentSchema"),instancePath:new Je.Name("instancePath")};function wc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Je._`{}`:(n.jtd&&!n.ajvErrors?Tg:Fg)(t,r)}function Tg(t,{message:r}){let{gen:e,keyword:n,it:s}=t,{errorPath:o,errSchemaPath:l,opts:f}=s,c=[[vn.instancePath,Je.strConcat(or.default.dataPath,o)],[vn.schemaPath,Je.str`${l}/${n}`]];return f.messages&&c.push([vn.message,typeof r=="function"?r(t):r]),e.object(...c)}function Fg(t,r){let{gen:e,keyword:n,data:s,schemaValue:o,it:l}=t,{topSchemaRef:f,schemaPath:c,errorPath:g,errSchemaPath:h,propertyName:$,opts:k}=l,{params:x,message:C}=r,I=[[vn.keyword,n],[or.default.dataPath,Je.strConcat(or.default.dataPath,g)],[vn.schemaPath,Je.str`${h}/${n}`],[vn.params,typeof x=="function"?x(t):x||Je._`{}`]];return $&&I.push([vn.propertyName,$]),k.messages&&I.push([vn.message,typeof C=="function"?C(t):C]),k.verbose&&I.push([vn.schema,o],[vn.parentSchema,Je._`${f}${c}`],[or.default.data,s]),e.object(...I)}});var vc=we(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.boolOrEmptySchema=rs.topBoolOrEmptySchema=void 0;var Ig=zs(),Og=ze(),Ng=ln(),Rg={message:"boolean schema is false"};function Dg(t){let{gen:r,schema:e,validateName:n}=t;e===!1?kc(t,!1):typeof e=="object"&&e.$async===!0?r.return(Ng.default.data):(r.assign(Og._`${n}.errors`,null),r.return(!0))}rs.topBoolOrEmptySchema=Dg;function qg(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),kc(t)):e.var(r,!0)}rs.boolOrEmptySchema=qg;function kc(t,r){let{gen:e,data:n}=t,s={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Ig.reportError(s,Rg,r)}});var Cc=we(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.assignDefaults=void 0;var ns=ze(),Lg=Br();function jg(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let s in e)xc(t,s,e[s].default);else r==="array"&&Array.isArray(n)&&n.forEach((s,o)=>xc(t,o,s.default))}zo.assignDefaults=jg;function xc(t,r,e){let{gen:n,compositeRule:s,data:o,opts:l}=t;if(e===void 0)return;let f=ns._`${o}${ns.getProperty(r)}`;if(s){Lg.checkStrictMode(t,`default is ignored for: ${f}`);return}let c=ns._`${f} === undefined`;l.useDefaults==="empty"&&(c=ns._`${c} || ${f} === null || ${f} === ""`),n.if(c,ns._`${f} = ${ns.stringify(e)}`)}});var vi=we(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.applySubschema=ki.Type=void 0;var Bg=Br(),Ac=_t(),ar=ze(),Ec;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ec=ki.Type||(ki.Type={}));function Mg(t,r,e){let n=zg(t,r);Vg(n,t,r),Hg(n,r);let s={...t,...n,items:void 0,props:void 0};return Bg.subschemaCode(s,e),s}ki.applySubschema=Mg;function zg(t,{keyword:r,schemaProp:e,schema:n,schemaPath:s,errSchemaPath:o,topSchemaRef:l}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let f=t.schema[r];return e===void 0?{schema:f,schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:f[e],schemaPath:ar._`${t.schemaPath}${ar.getProperty(r)}${ar.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Ac.escapeFragment(e)}`}}if(n!==void 0){if(s===void 0||o===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:l,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function Vg(t,r,{dataProp:e,dataPropType:n,data:s,dataTypes:o,propertyName:l}){if(s!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:f}=r;if(e!==void 0){let{errorPath:g,dataPathArr:h,opts:$}=r,k=f.let("data",ar._`${r.data}${ar.getProperty(e)}`,!0);c(k),t.errorPath=ar.str`${g}${Ug(e,n,$.jsPropertySyntax)}`,t.parentDataProperty=ar._`${e}`,t.dataPathArr=[...h,t.parentDataProperty]}if(s!==void 0){let g=s instanceof ar.Name?s:f.let("data",s,!0);c(g),l!==void 0&&(t.propertyName=l)}o&&(t.dataTypes=o);function c(g){t.data=g,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,g]}}function Hg(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:s,allErrors:o}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function Ug(t,r,e){if(t instanceof ar.Name){let n=r===Ec.Num;return e?n?ar._`"[" + ${t} + "]"`:ar._`"['" + ${t} + "']"`:n?ar._`"/" + ${t}`:ar._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?ar.getProperty(t).toString():"/"+Ac.escapeJsonPointer(t)}});var un=we(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.validateUnion=mt.validateArray=mt.usePattern=mt.callValidateCode=mt.schemaProperties=mt.allSchemaProperties=mt.noPropertyInData=mt.propertyInData=mt.isOwnProperty=mt.hasPropFunc=mt.reportMissingProp=mt.checkMissingProp=mt.checkReportMissingProp=void 0;var xt=ze(),_c=_t(),Gg=vi(),Xn=ln();function Kg(t,r){let{gen:e,data:n,it:s}=t;e.if(_l(e,n,r,s.opts.ownProperties),()=>{t.setParams({missingProperty:xt._`${r}`},!0),t.error()})}mt.checkReportMissingProp=Kg;function Wg({gen:t,data:r,it:{opts:e}},n,s){return xt.or(...n.map(o=>xt.and(_l(t,r,o,e.ownProperties),xt._`${s} = ${o}`)))}mt.checkMissingProp=Wg;function Zg(t,r){t.setParams({missingProperty:r},!0),t.error()}mt.reportMissingProp=Zg;function Sc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:xt._`Object.prototype.hasOwnProperty`})}mt.hasPropFunc=Sc;function El(t,r,e){return xt._`${Sc(t)}.call(${r}, ${e})`}mt.isOwnProperty=El;function Jg(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} !== undefined`;return n?xt._`${s} && ${El(t,r,e)}`:s}mt.propertyInData=Jg;function _l(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} === undefined`;return n?xt.or(s,xt.not(El(t,r,e))):s}mt.noPropertyInData=_l;function Pc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}mt.allSchemaProperties=Pc;function Qg(t,r){return Pc(r).filter(e=>!_c.alwaysValidSchema(t,r[e]))}mt.schemaProperties=Qg;function Xg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:s,errorPath:o},it:l},f,c,g){let h=g?xt._`${t}, ${r}, ${n}${s}`:r,$=[[Xn.default.dataPath,xt.strConcat(Xn.default.dataPath,o)],[Xn.default.parentData,l.parentData],[Xn.default.parentDataProperty,l.parentDataProperty],[Xn.default.rootData,Xn.default.rootData]];l.opts.dynamicRef&&$.push([Xn.default.dynamicAnchors,Xn.default.dynamicAnchors]);let k=xt._`${h}, ${e.object(...$)}`;return c!==xt.nil?xt._`${f}.call(${c}, ${k})`:xt._`${f}(${k})`}mt.callValidateCode=Xg;function Yg(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:xt._`new RegExp(${r}, "u")`})}mt.usePattern=Yg;function ey(t){let{gen:r,data:e,keyword:n,it:s}=t,o=r.name("valid");if(s.allErrors){let f=r.let("valid",!0);return l(()=>r.assign(f,!1)),f}return r.var(o,!0),l(()=>r.break()),o;function l(f){let c=r.const("len",xt._`${e}.length`);r.forRange("i",0,c,g=>{t.subschema({keyword:n,dataProp:g,dataPropType:Gg.Type.Num},o),r.if(xt.not(o),f)})}}mt.validateArray=ey;function ty(t){let{gen:r,schema:e,keyword:n,it:s}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(c=>_c.alwaysValidSchema(s,c))&&!s.opts.unevaluated)return;let l=r.let("valid",!1),f=r.name("_valid");r.block(()=>e.forEach((c,g)=>{let h=t.subschema({keyword:n,schemaProp:g,compositeRule:!0},f);r.assign(l,xt._`${l} || ${f}`),t.mergeValidEvaluated(h,f)||r.if(xt.not(l))})),t.result(l,()=>t.reset(),()=>t.error(!0))}mt.validateUnion=ty});var Oc=we(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.keywordCode=void 0;var ry=Vs(),ny=zs(),iy=un(),yr=ze(),xi=ln();function sy(t,r,e,n){let s=new ry.default(t,e,r);"code"in e?e.code(s,n):s.$data&&e.validate?Tc(s,e):"macro"in e?oy(s,e):(e.compile||e.validate)&&Tc(s,e)}Vo.keywordCode=sy;function oy(t,r){let{gen:e,keyword:n,schema:s,parentSchema:o,it:l}=t,f=r.macro.call(l.self,s,o,l),c=Ic(e,n,f);l.opts.validateSchema!==!1&&l.self.validateSchema(f,!0);let g=e.name("valid");t.subschema({schema:f,schemaPath:yr.nil,errSchemaPath:`${l.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},g),t.pass(g,()=>t.error(!0))}function Tc(t,r){var e;let{gen:n,keyword:s,schema:o,parentSchema:l,$data:f,it:c}=t;ly(c,r);let g=!f&&r.compile?r.compile.call(c.self,o,l,c):r.validate,h=Ic(n,s,g),$=n.let("valid");t.block$data($,k),t.ok((e=r.valid)!==null&&e!==void 0?e:$);function k(){if(r.errors===!1)I(),r.modifying&&Fc(t),R(()=>t.error());else{let B=r.async?x():C();r.modifying&&Fc(t),R(()=>ay(t,B))}}function x(){let B=n.let("ruleErrs",null);return n.try(()=>I(yr._`await `),X=>n.assign($,!1).if(yr._`${X} instanceof ${c.ValidationError}`,()=>n.assign(B,yr._`${X}.errors`),()=>n.throw(X))),B}function C(){let B=yr._`${h}.errors`;return n.assign(B,null),I(yr.nil),B}function I(B=r.async?yr._`await `:yr.nil){let X=c.opts.passContext?xi.default.this:xi.default.self,le=!("compile"in r&&!f||r.schema===!1);n.assign($,yr._`${B}${iy.callValidateCode(t,h,X,le)}`,r.modifying)}function R(B){var X;n.if(yr.not((X=r.valid)!==null&&X!==void 0?X:$),B)}}function Fc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,yr._`${n.parentData}[${n.parentDataProperty}]`))}function ay(t,r){let{gen:e}=t;e.if(yr._`Array.isArray(${r})`,()=>{e.assign(xi.default.vErrors,yr._`${xi.default.vErrors} === null ? ${r} : ${xi.default.vErrors}.concat(${r})`).assign(xi.default.errors,yr._`${xi.default.vErrors}.length`),ny.extendErrors(t)},()=>t.error())}function ly({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Ic(t,r,e){if(e===void 0)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword",typeof e=="function"?{ref:e}:{ref:e,code:yr.stringify(e)})}});var Lc=we(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.schemaKeywords=void 0;var Sl=ol(),Nc=is(),uy=Cc(),qc=Oc(),fy=_t(),cy=Br(),py=ze(),dy=ln();function my(t,r,e,n){let{gen:s,schema:o,data:l,allErrors:f,opts:c,self:g}=t,{RULES:h}=g;if(o.$ref&&(c.ignoreKeywordsWithRef||!fy.schemaHasRulesButRef(o,h))){s.block(()=>qc.keywordCode(t,"$ref",h.all.$ref.definition));return}c.jtd||hy(t,r),s.block(()=>{for(let k of h.rules)$(k);$(h.post)});function $(k){!Sl.shouldUseGroup(o,k)||(k.type?(s.if(Nc.checkDataType(k.type,l,c.strict)),Rc(t,k),r.length===1&&r[0]===k.type&&e&&(s.else(),Nc.reportTypeError(t)),s.endIf()):Rc(t,k),f||s.if(py._`${dy.default.errors} === ${n||0}`))}}Ho.schemaKeywords=my;function Rc(t,r){let{gen:e,schema:n,opts:{useDefaults:s}}=t;s&&uy.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)Sl.shouldUseRule(n,o)&&qc.keywordCode(t,o.keyword,o.definition,r.type)})}function hy(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(gy(t,r),t.opts.allowUnionTypes||yy(t,r),by(t,t.dataTypes))}function gy(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Dc(t.dataTypes,e)||Pl(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Dc(r,e))}}function yy(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&Pl(t,"use allowUnionTypes to allow union type keyword")}function by(t,r){let e=t.self.RULES.all;for(let n in e){let s=e[n];if(typeof s=="object"&&Sl.shouldUseRule(t.schema,s)){let{type:o}=s.definition;o.length&&!o.some(l=>$y(r,l))&&Pl(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function $y(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Dc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function Pl(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,cy.checkStrictMode(t,r,t.opts.strictTypes)}});var Hs=we((z1,jc)=>{"use strict";jc.exports=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,s,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(s=n;s--!==0;)if(!t(r[s],e[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[s]))return!1;for(s=n;s--!==0;){var l=o[s];if(!t(r[l],e[l]))return!1}return!0}return r!==r&&e!==e}});var Mc=we((V1,Bc)=>{"use strict";var Yn=Bc.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},s=e.post||function(){};Uo(r,n,s,t,"",t)};Yn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Uo(t,r,e,n,s,o,l,f,c,g){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,s,o,l,f,c,g);for(var h in n){var $=n[h];if(Array.isArray($)){if(h in Yn.arrayKeywords)for(var k=0;k<$.length;k++)Uo(t,r,e,$[k],s+"/"+h+"/"+k,o,s,h,n,k)}else if(h in Yn.propsKeywords){if($&&typeof $=="object")for(var x in $)Uo(t,r,e,$[x],s+"/"+h+"/"+wy(x),o,s,h,n,x)}else(h in Yn.keywords||t.allKeys&&!(h in Yn.skipKeywords))&&Uo(t,r,e,$,s+"/"+h,o,s,h,n)}e(n,s,o,l,f,c,g)}}function wy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Tl=we((Go,zc)=>{(function(t,r){typeof Go=="object"&&typeof zc<"u"?r(Go):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(Go,function(t){"use strict";function r(){for(var V=arguments.length,N=Array(V),J=0;J<V;J++)N[J]=arguments[J];if(N.length>1){N[0]=N[0].slice(0,-1);for(var re=N.length-1,se=1;se<re;++se)N[se]=N[se].slice(1,-1);return N[re]=N[re].slice(1),N.join("")}else return N[0]}function e(V){return"(?:"+V+")"}function n(V){return V===void 0?"undefined":V===null?"null":Object.prototype.toString.call(V).split(" ").pop().split("]").shift().toLowerCase()}function s(V){return V.toUpperCase()}function o(V){return V!=null?V instanceof Array?V:typeof V.length!="number"||V.split||V.setInterval||V.call?[V]:Array.prototype.slice.call(V):[]}function l(V,N){var J=V;if(N)for(var re in N)J[re]=N[re];return J}function f(V){var N="[A-Za-z]",J="[\\x0D]",re="[0-9]",se="[\\x22]",$e=r(re,"[A-Fa-f]"),Se="[\\x0A]",je="[\\x20]",We=e(e("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+e("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+e("%"+$e+$e)),bt="[\\:\\/\\?\\#\\[\\]\\@]",De="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",at=r(bt,De),ft=V?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",lt=V?"[\\uE000-\\uF8FF]":"[]",Ge=r(N,re,"[\\-\\.\\_\\~]",ft),ct=e(N+r(N,re,"[\\+\\-\\.]")+"*"),et=e(e(We+"|"+r(Ge,De,"[\\:]"))+"*"),Mr=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("[1-9]"+re)+"|"+re),Bt=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("0?[1-9]"+re)+"|0?0?"+re),rr=e(Bt+"\\."+Bt+"\\."+Bt+"\\."+Bt),st=e($e+"{1,4}"),Ht=e(e(st+"\\:"+st)+"|"+rr),Zt=e(e(st+"\\:")+"{6}"+Ht),Cr=e("\\:\\:"+e(st+"\\:")+"{5}"+Ht),Yr=e(e(st)+"?\\:\\:"+e(st+"\\:")+"{4}"+Ht),Ar=e(e(e(st+"\\:")+"{0,1}"+st)+"?\\:\\:"+e(st+"\\:")+"{3}"+Ht),hn=e(e(e(st+"\\:")+"{0,2}"+st)+"?\\:\\:"+e(st+"\\:")+"{2}"+Ht),On=e(e(e(st+"\\:")+"{0,3}"+st)+"?\\:\\:"+st+"\\:"+Ht),Nn=e(e(e(st+"\\:")+"{0,4}"+st)+"?\\:\\:"+Ht),en=e(e(e(st+"\\:")+"{0,5}"+st)+"?\\:\\:"+st),tn=e(e(e(st+"\\:")+"{0,6}"+st)+"?\\:\\:"),Mt=e([Zt,Cr,Yr,Ar,hn,On,Nn,en,tn].join("|")),Er=e(e(Ge+"|"+We)+"+"),gn=e(Mt+"\\%25"+Er),zr=e(Mt+e("\\%25|\\%(?!"+$e+"{2})")+Er),Mi=e("[vV]"+$e+"+\\."+r(Ge,De,"[\\:]")+"+"),li=e("\\["+e(zr+"|"+Mt+"|"+Mi)+"\\]"),i=e(e(We+"|"+r(Ge,De))+"*"),ue=e(li+"|"+rr+"(?!"+i+")|"+i),Vr=e(re+"*"),Jt=e(e(et+"@")+"?"+ue+e("\\:"+Vr)+"?"),rn=e(We+"|"+r(Ge,De,"[\\:\\@]")),v=e(rn+"*"),yn=e(rn+"+"),Rn=e(e(We+"|"+r(Ge,De,"[\\@]"))+"+"),Hr=e(e("\\/"+v)+"*"),Dn=e("\\/"+e(yn+Hr)+"?"),zi=e(Rn+Hr),Me=e(yn+Hr),Ut="(?!"+rn+")",vs=e(Hr+"|"+Dn+"|"+zi+"|"+Me+"|"+Ut),nn=e(e(rn+"|"+r("[\\/\\?]",lt))+"*"),bn=e(e(rn+"|[\\/\\?]")+"*"),ui=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+Me+"|"+Ut),qn=e(ct+"\\:"+ui+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),W=e(e("\\/\\/"+Jt+Hr)+"|"+Dn+"|"+zi+"|"+Ut),xs=e(W+e("\\?"+nn)+"?"+e("\\#"+bn)+"?"),Vi=e(qn+"|"+xs),Cs=e(ct+"\\:"+ui+e("\\?"+nn)+"?"),fi="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",bo="^(){0}"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+zi+"|"+Ut+")")+e("\\?("+nn+")")+"?"+e("\\#("+bn+")")+"?$",ja="^("+ct+")\\:"+e(e("\\/\\/("+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?)")+"?("+Hr+"|"+Dn+"|"+Me+"|"+Ut+")")+e("\\?("+nn+")")+"?$",Hi="^"+e("\\#("+bn+")")+"?$",sn="^"+e("("+et+")@")+"?("+ue+")"+e("\\:("+Vr+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",N,re,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Ge,De),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Ge,De),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Ge,De),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Ge,De),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]",lt),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Ge,De,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Ge,De),"g"),UNRESERVED:new RegExp(Ge,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Ge,at),"g"),PCT_ENCODED:new RegExp(We,"g"),IPV4ADDRESS:new RegExp("^("+rr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+e(e("\\%25|\\%(?!"+$e+"{2})")+"("+Er+")")+"?\\]?$")}}var c=f(!1),g=f(!0),h=function(){function V(N,J){var re=[],se=!0,$e=!1,Se=void 0;try{for(var je=N[Symbol.iterator](),We;!(se=(We=je.next()).done)&&(re.push(We.value),!(J&&re.length===J));se=!0);}catch(bt){$e=!0,Se=bt}finally{try{!se&&je.return&&je.return()}finally{if($e)throw Se}}return re}return function(N,J){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return V(N,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=function(V){if(Array.isArray(V)){for(var N=0,J=Array(V.length);N<V.length;N++)J[N]=V[N];return J}else return Array.from(V)},k=2147483647,x=36,C=1,I=26,R=38,B=700,X=72,le=128,be="-",he=/^xn--/,Y=/[^\0-\x7E]/,pe=/[\x2E\u3002\uFF0E\uFF61]/g,ve={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=x-C,Le=Math.floor,Te=String.fromCharCode;function Fe(V){throw new RangeError(ve[V])}function ge(V,N){for(var J=[],re=V.length;re--;)J[re]=N(V[re]);return J}function Pe(V,N){var J=V.split("@"),re="";J.length>1&&(re=J[0]+"@",V=J[1]),V=V.replace(pe,".");var se=V.split("."),$e=ge(se,N).join(".");return re+$e}function Qe(V){for(var N=[],J=0,re=V.length;J<re;){var se=V.charCodeAt(J++);if(se>=55296&&se<=56319&&J<re){var $e=V.charCodeAt(J++);($e&64512)==56320?N.push(((se&1023)<<10)+($e&1023)+65536):(N.push(se),J--)}else N.push(se)}return N}var ne=function(N){return String.fromCodePoint.apply(String,$(N))},$t=function(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:x},Xe=function(N,J){return N+22+75*(N<26)-((J!=0)<<5)},wt=function(N,J,re){var se=0;for(N=re?Le(N/B):N>>1,N+=Le(N/J);N>ke*I>>1;se+=x)N=Le(N/ke);return Le(se+(ke+1)*N/(N+R))},nt=function(N){var J=[],re=N.length,se=0,$e=le,Se=X,je=N.lastIndexOf(be);je<0&&(je=0);for(var We=0;We<je;++We)N.charCodeAt(We)>=128&&Fe("not-basic"),J.push(N.charCodeAt(We));for(var bt=je>0?je+1:0;bt<re;){for(var De=se,at=1,ft=x;;ft+=x){bt>=re&&Fe("invalid-input");var lt=$t(N.charCodeAt(bt++));(lt>=x||lt>Le((k-se)/at))&&Fe("overflow"),se+=lt*at;var Ge=ft<=Se?C:ft>=Se+I?I:ft-Se;if(lt<Ge)break;var ct=x-Ge;at>Le(k/ct)&&Fe("overflow"),at*=ct}var et=J.length+1;Se=wt(se-De,et,De==0),Le(se/et)>k-$e&&Fe("overflow"),$e+=Le(se/et),se%=et,J.splice(se++,0,$e)}return String.fromCodePoint.apply(String,J)},z=function(N){var J=[];N=Qe(N);var re=N.length,se=le,$e=0,Se=X,je=!0,We=!1,bt=void 0;try{for(var De=N[Symbol.iterator](),at;!(je=(at=De.next()).done);je=!0){var ft=at.value;ft<128&&J.push(Te(ft))}}catch(zr){We=!0,bt=zr}finally{try{!je&&De.return&&De.return()}finally{if(We)throw bt}}var lt=J.length,Ge=lt;for(lt&&J.push(be);Ge<re;){var ct=k,et=!0,Mr=!1,Bt=void 0;try{for(var rr=N[Symbol.iterator](),st;!(et=(st=rr.next()).done);et=!0){var Ht=st.value;Ht>=se&&Ht<ct&&(ct=Ht)}}catch(zr){Mr=!0,Bt=zr}finally{try{!et&&rr.return&&rr.return()}finally{if(Mr)throw Bt}}var Zt=Ge+1;ct-se>Le((k-$e)/Zt)&&Fe("overflow"),$e+=(ct-se)*Zt,se=ct;var Cr=!0,Yr=!1,Ar=void 0;try{for(var hn=N[Symbol.iterator](),On;!(Cr=(On=hn.next()).done);Cr=!0){var Nn=On.value;if(Nn<se&&++$e>k&&Fe("overflow"),Nn==se){for(var en=$e,tn=x;;tn+=x){var Mt=tn<=Se?C:tn>=Se+I?I:tn-Se;if(en<Mt)break;var Er=en-Mt,gn=x-Mt;J.push(Te(Xe(Mt+Er%gn,0))),en=Le(Er/gn)}J.push(Te(Xe(en,0))),Se=wt($e,Zt,Ge==lt),$e=0,++Ge}}}catch(zr){Yr=!0,Ar=zr}finally{try{!Cr&&hn.return&&hn.return()}finally{if(Yr)throw Ar}}++$e,++se}return J.join("")},H=function(N){return Pe(N,function(J){return he.test(J)?nt(J.slice(4).toLowerCase()):J})},dr=function(N){return Pe(N,function(J){return Y.test(J)?"xn--"+z(J):J})},Lt={version:"2.1.0",ucs2:{decode:Qe,encode:ne},decode:nt,encode:z,toASCII:dr,toUnicode:H},kt={};function Tt(V){var N=V.charCodeAt(0),J=void 0;return N<16?J="%0"+N.toString(16).toUpperCase():N<128?J="%"+N.toString(16).toUpperCase():N<2048?J="%"+(N>>6|192).toString(16).toUpperCase()+"%"+(N&63|128).toString(16).toUpperCase():J="%"+(N>>12|224).toString(16).toUpperCase()+"%"+(N>>6&63|128).toString(16).toUpperCase()+"%"+(N&63|128).toString(16).toUpperCase(),J}function Ft(V){for(var N="",J=0,re=V.length;J<re;){var se=parseInt(V.substr(J+1,2),16);if(se<128)N+=String.fromCharCode(se),J+=3;else if(se>=194&&se<224){if(re-J>=6){var $e=parseInt(V.substr(J+4,2),16);N+=String.fromCharCode((se&31)<<6|$e&63)}else N+=V.substr(J,6);J+=6}else if(se>=224){if(re-J>=9){var Se=parseInt(V.substr(J+4,2),16),je=parseInt(V.substr(J+7,2),16);N+=String.fromCharCode((se&15)<<12|(Se&63)<<6|je&63)}else N+=V.substr(J,9);J+=9}else N+=V.substr(J,3),J+=3}return N}function ut(V,N){function J(re){var se=Ft(re);return se.match(N.UNRESERVED)?se:re}return V.scheme&&(V.scheme=String(V.scheme).replace(N.PCT_ENCODED,J).toLowerCase().replace(N.NOT_SCHEME,"")),V.userinfo!==void 0&&(V.userinfo=String(V.userinfo).replace(N.PCT_ENCODED,J).replace(N.NOT_USERINFO,Tt).replace(N.PCT_ENCODED,s)),V.host!==void 0&&(V.host=String(V.host).replace(N.PCT_ENCODED,J).toLowerCase().replace(N.NOT_HOST,Tt).replace(N.PCT_ENCODED,s)),V.path!==void 0&&(V.path=String(V.path).replace(N.PCT_ENCODED,J).replace(V.scheme?N.NOT_PATH:N.NOT_PATH_NOSCHEME,Tt).replace(N.PCT_ENCODED,s)),V.query!==void 0&&(V.query=String(V.query).replace(N.PCT_ENCODED,J).replace(N.NOT_QUERY,Tt).replace(N.PCT_ENCODED,s)),V.fragment!==void 0&&(V.fragment=String(V.fragment).replace(N.PCT_ENCODED,J).replace(N.NOT_FRAGMENT,Tt).replace(N.PCT_ENCODED,s)),V}function tr(V){return V.replace(/^0*(.*)/,"$1")||"0"}function Vt(V,N){var J=V.match(N.IPV4ADDRESS)||[],re=h(J,2),se=re[1];return se?se.split(".").map(tr).join("."):V}function vr(V,N){var J=V.match(N.IPV6ADDRESS)||[],re=h(J,3),se=re[1],$e=re[2];if(se){for(var Se=se.toLowerCase().split("::").reverse(),je=h(Se,2),We=je[0],bt=je[1],De=bt?bt.split(":").map(tr):[],at=We.split(":").map(tr),ft=N.IPV4ADDRESS.test(at[at.length-1]),lt=ft?7:8,Ge=at.length-lt,ct=Array(lt),et=0;et<lt;++et)ct[et]=De[et]||at[Ge+et]||"";ft&&(ct[lt-1]=Vt(ct[lt-1],N));var Mr=ct.reduce(function(Zt,Cr,Yr){if(!Cr||Cr==="0"){var Ar=Zt[Zt.length-1];Ar&&Ar.index+Ar.length===Yr?Ar.length++:Zt.push({index:Yr,length:1})}return Zt},[]),Bt=Mr.sort(function(Zt,Cr){return Cr.length-Zt.length})[0],rr=void 0;if(Bt&&Bt.length>1){var st=ct.slice(0,Bt.index),Ht=ct.slice(Bt.index+Bt.length);rr=st.join(":")+"::"+Ht.join(":")}else rr=ct.join(":");return $e&&(rr+="%"+$e),rr}else return V}var Nr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,xr="".match(/(){0}/)[1]===void 0;function jt(V){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J={},re=N.iri!==!1?g:c;N.reference==="suffix"&&(V=(N.scheme?N.scheme+":":"")+"//"+V);var se=V.match(Nr);if(se){xr?(J.scheme=se[1],J.userinfo=se[3],J.host=se[4],J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=se[7],J.fragment=se[8],isNaN(J.port)&&(J.port=se[5])):(J.scheme=se[1]||void 0,J.userinfo=V.indexOf("@")!==-1?se[3]:void 0,J.host=V.indexOf("//")!==-1?se[4]:void 0,J.port=parseInt(se[5],10),J.path=se[6]||"",J.query=V.indexOf("?")!==-1?se[7]:void 0,J.fragment=V.indexOf("#")!==-1?se[8]:void 0,isNaN(J.port)&&(J.port=V.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?se[4]:void 0)),J.host&&(J.host=vr(Vt(J.host,re),re)),J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&!J.path&&J.query===void 0?J.reference="same-document":J.scheme===void 0?J.reference="relative":J.fragment===void 0?J.reference="absolute":J.reference="uri",N.reference&&N.reference!=="suffix"&&N.reference!==J.reference&&(J.error=J.error||"URI is not a "+N.reference+" reference.");var $e=kt[(N.scheme||J.scheme||"").toLowerCase()];if(!N.unicodeSupport&&(!$e||!$e.unicodeSupport)){if(J.host&&(N.domainHost||$e&&$e.domainHost))try{J.host=Lt.toASCII(J.host.replace(re.PCT_ENCODED,Ft).toLowerCase())}catch(Se){J.error=J.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}ut(J,c)}else ut(J,re);$e&&$e.parse&&$e.parse(J,N)}else J.error=J.error||"URI can not be parsed.";return J}function Sn(V,N){var J=N.iri!==!1?g:c,re=[];return V.userinfo!==void 0&&(re.push(V.userinfo),re.push("@")),V.host!==void 0&&re.push(vr(Vt(String(V.host),J),J).replace(J.IPV6ADDRESS,function(se,$e,Se){return"["+$e+(Se?"%25"+Se:"")+"]"})),(typeof V.port=="number"||typeof V.port=="string")&&(re.push(":"),re.push(String(V.port))),re.length?re.join(""):void 0}var Pn=/^\.\.?\//,Tn=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Hn=/^\/?(?:.|\n)*?(?=\/|$)/;function Rr(V){for(var N=[];V.length;)if(V.match(Pn))V=V.replace(Pn,"");else if(V.match(Tn))V=V.replace(Tn,"/");else if(V.match(Ce))V=V.replace(Ce,"/"),N.pop();else if(V==="."||V==="..")V="";else{var J=V.match(Hn);if(J){var re=J[0];V=V.slice(re.length),N.push(re)}else throw new Error("Unexpected dot segment condition")}return N.join("")}function Ee(V){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=N.iri?g:c,re=[],se=kt[(N.scheme||V.scheme||"").toLowerCase()];if(se&&se.serialize&&se.serialize(V,N),V.host&&!J.IPV6ADDRESS.test(V.host)){if(N.domainHost||se&&se.domainHost)try{V.host=N.iri?Lt.toUnicode(V.host):Lt.toASCII(V.host.replace(J.PCT_ENCODED,Ft).toLowerCase())}catch(je){V.error=V.error||"Host's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+je}}ut(V,J),N.reference!=="suffix"&&V.scheme&&(re.push(V.scheme),re.push(":"));var $e=Sn(V,N);if($e!==void 0&&(N.reference!=="suffix"&&re.push("//"),re.push($e),V.path&&V.path.charAt(0)!=="/"&&re.push("/")),V.path!==void 0){var Se=V.path;!N.absolutePath&&(!se||!se.absolutePath)&&(Se=Rr(Se)),$e===void 0&&(Se=Se.replace(/^\/\//,"/%2F")),re.push(Se)}return V.query!==void 0&&(re.push("?"),re.push(V.query)),V.fragment!==void 0&&(re.push("#"),re.push(V.fragment)),re.join("")}function Ne(V,N){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=arguments[3],se={};return re||(V=jt(Ee(V,J),J),N=jt(Ee(N,J),J)),J=J||{},!J.tolerant&&N.scheme?(se.scheme=N.scheme,se.userinfo=N.userinfo,se.host=N.host,se.port=N.port,se.path=Rr(N.path||""),se.query=N.query):(N.userinfo!==void 0||N.host!==void 0||N.port!==void 0?(se.userinfo=N.userinfo,se.host=N.host,se.port=N.port,se.path=Rr(N.path||""),se.query=N.query):(N.path?(N.path.charAt(0)==="/"?se.path=Rr(N.path):((V.userinfo!==void 0||V.host!==void 0||V.port!==void 0)&&!V.path?se.path="/"+N.path:V.path?se.path=V.path.slice(0,V.path.lastIndexOf("/")+1)+N.path:se.path=N.path,se.path=Rr(se.path)),se.query=N.query):(se.path=V.path,N.query!==void 0?se.query=N.query:se.query=V.query),se.userinfo=V.userinfo,se.host=V.host,se.port=V.port),se.scheme=V.scheme),se.fragment=N.fragment,se}function At(V,N,J){var re=l({scheme:"null"},J);return Ee(Ne(jt(V,re),jt(N,re),re,!0),re)}function ht(V,N){return typeof V=="string"?V=Ee(jt(V,N),N):n(V)==="object"&&(V=jt(Ee(V,N),N)),V}function mr(V,N,J){return typeof V=="string"?V=Ee(jt(V,J),J):n(V)==="object"&&(V=Ee(V,J)),typeof N=="string"?N=Ee(jt(N,J),J):n(N)==="object"&&(N=Ee(N,J)),V===N}function Re(V,N){return V&&V.toString().replace(!N||!N.iri?c.ESCAPE:g.ESCAPE,Tt)}function _e(V,N){return V&&V.toString().replace(!N||!N.iri?c.PCT_ENCODED:g.PCT_ENCODED,Ft)}var te={scheme:"http",domainHost:!0,parse:function(N,J){return N.host||(N.error=N.error||"HTTP URIs must have a host."),N},serialize:function(N,J){var re=String(N.scheme).toLowerCase()==="https";return(N.port===(re?443:80)||N.port==="")&&(N.port=void 0),N.path||(N.path="/"),N}},ce={scheme:"https",domainHost:te.domainHost,parse:te.parse,serialize:te.serialize};function Ae(V){return typeof V.secure=="boolean"?V.secure:String(V.scheme).toLowerCase()==="wss"}var Be={scheme:"ws",domainHost:!0,parse:function(N,J){var re=N;return re.secure=Ae(re),re.resourceName=(re.path||"/")+(re.query?"?"+re.query:""),re.path=void 0,re.query=void 0,re},serialize:function(N,J){if((N.port===(Ae(N)?443:80)||N.port==="")&&(N.port=void 0),typeof N.secure=="boolean"&&(N.scheme=N.secure?"wss":"ws",N.secure=void 0),N.resourceName){var re=N.resourceName.split("?"),se=h(re,2),$e=se[0],Se=se[1];N.path=$e&&$e!=="/"?$e:void 0,N.query=Se,N.resourceName=void 0}return N.fragment=void 0,N}},Ye={scheme:"wss",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},Pt={},it=!0,vt="[A-Za-z0-9\\-\\.\\_\\~"+(it?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",It="[0-9A-Fa-f]",Xr=e(e("%[EFef]"+It+"%"+It+It+"%"+It+It)+"|"+e("%[89A-Fa-f]"+It+"%"+It+It)+"|"+e("%"+It+It)),gt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Fn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",hr=r(Fn,'[\\"\\\\]'),si="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",oi=new RegExp(vt,"g"),Dr=new RegExp(Xr,"g"),mn=new RegExp(r("[^]",gt,"[\\.]",'[\\"]',hr),"g"),Un=new RegExp(r("[^]",vt,si),"g"),ks=Un;function Gn(V){var N=Ft(V);return N.match(oi)?N:V}var ai={scheme:"mailto",parse:function(N,J){var re=N,se=re.to=re.path?re.path.split(","):[];if(re.path=void 0,re.query){for(var $e=!1,Se={},je=re.query.split("&"),We=0,bt=je.length;We<bt;++We){var De=je[We].split("=");switch(De[0]){case"to":for(var at=De[1].split(","),ft=0,lt=at.length;ft<lt;++ft)se.push(at[ft]);break;case"subject":re.subject=_e(De[1],J);break;case"body":re.body=_e(De[1],J);break;default:$e=!0,Se[_e(De[0],J)]=_e(De[1],J);break}}$e&&(re.headers=Se)}re.query=void 0;for(var Ge=0,ct=se.length;Ge<ct;++Ge){var et=se[Ge].split("@");if(et[0]=_e(et[0]),J.unicodeSupport)et[1]=_e(et[1],J).toLowerCase();else try{et[1]=Lt.toASCII(_e(et[1],J).toLowerCase())}catch(Mr){re.error=re.error||"Email address's domain name can not be converted to ASCII via punycode: "+Mr}se[Ge]=et.join("@")}return re},serialize:function(N,J){var re=N,se=o(N.to);if(se){for(var $e=0,Se=se.length;$e<Se;++$e){var je=String(se[$e]),We=je.lastIndexOf("@"),bt=je.slice(0,We).replace(Dr,Gn).replace(Dr,s).replace(mn,Tt),De=je.slice(We+1);try{De=J.iri?Lt.toUnicode(De):Lt.toASCII(_e(De,J).toLowerCase())}catch(Ge){re.error=re.error||"Email address's domain name can not be converted to "+(J.iri?"Unicode":"ASCII")+" via punycode: "+Ge}se[$e]=bt+"@"+De}re.path=se.join(",")}var at=N.headers=N.headers||{};N.subject&&(at.subject=N.subject),N.body&&(at.body=N.body);var ft=[];for(var lt in at)at[lt]!==Pt[lt]&&ft.push(lt.replace(Dr,Gn).replace(Dr,s).replace(Un,Tt)+"="+at[lt].replace(Dr,Gn).replace(Dr,s).replace(ks,Tt));return ft.length&&(re.query=ft.join("&")),re}},ji=/^([^\:]+)\:(.*)/,In={scheme:"urn",parse:function(N,J){var re=N.path&&N.path.match(ji),se=N;if(re){var $e=J.scheme||se.scheme||"urn",Se=re[1].toLowerCase(),je=re[2],We=$e+":"+(J.nid||Se),bt=kt[We];se.nid=Se,se.nss=je,se.path=void 0,bt&&(se=bt.parse(se,J))}else se.error=se.error||"URN can not be parsed.";return se},serialize:function(N,J){var re=J.scheme||N.scheme||"urn",se=N.nid,$e=re+":"+(J.nid||se),Se=kt[$e];Se&&(N=Se.serialize(N,J));var je=N,We=N.nss;return je.path=(se||J.nid)+":"+We,je}},Kn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Bi={scheme:"urn:uuid",parse:function(N,J){var re=N;return re.uuid=re.nss,re.nss=void 0,!J.tolerant&&(!re.uuid||!re.uuid.match(Kn))&&(re.error=re.error||"UUID is not valid."),re},serialize:function(N,J){var re=N;return re.nss=(N.uuid||"").toLowerCase(),re}};kt[te.scheme]=te,kt[ce.scheme]=ce,kt[Be.scheme]=Be,kt[Ye.scheme]=Ye,kt[ai.scheme]=ai,kt[In.scheme]=In,kt[Bi.scheme]=Bi,t.SCHEMES=kt,t.pctEncChar=Tt,t.pctDecChars=Ft,t.parse=jt,t.removeDotSegments=Rr,t.serialize=Ee,t.resolveComponents=Ne,t.resolve=At,t.normalize=ht,t.equal=mr,t.escapeComponent=Re,t.unescapeComponent=_e,Object.defineProperty(t,"__esModule",{value:!0})})});var Us=we(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getSchemaRefs=Tr.resolveUrl=Tr.normalizeId=Tr._getFullPath=Tr.getFullPath=Tr.inlineRef=void 0;var ky=_t(),vy=Hs(),xy=Mc(),Ko=Tl(),Cy=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Ay(t,r=!0){return typeof t=="boolean"?!0:r===!0?!Fl(t):r?Vc(t)<=r:!1}Tr.inlineRef=Ay;var Ey=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Fl(t){for(let r in t){if(Ey.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(Fl)||typeof e=="object"&&Fl(e))return!0}return!1}function Vc(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Cy.has(e)&&(typeof t[e]=="object"&&ky.eachItem(t[e],n=>r+=Vc(n)),r===1/0))return 1/0}return r}function Hc(t="",r){r!==!1&&(t=ss(t));let e=Ko.parse(t);return Uc(e)}Tr.getFullPath=Hc;function Uc(t){return Ko.serialize(t).split("#")[0]+"#"}Tr._getFullPath=Uc;var _y=/#\/?$/;function ss(t){return t?t.replace(_y,""):""}Tr.normalizeId=ss;function Sy(t,r){return r=ss(r),Ko.resolve(t,r)}Tr.resolveUrl=Sy;var Py=/^[a-z_][-a-z0-9._]*$/i;function Ty(t){if(typeof t=="boolean")return{};let r=ss(t.$id),e={"":r},n=Hc(r,!1),s={},o=new Set;return xy(t,{allKeys:!0},(c,g,h,$)=>{if($===void 0)return;let k=n+g,x=e[$];typeof c.$id=="string"&&(x=C.call(this,c.$id)),I.call(this,c.$anchor),I.call(this,c.$dynamicAnchor),e[g]=x;function C(R){if(R=ss(x?Ko.resolve(x,R):R),o.has(R))throw f(R);o.add(R);let B=this.refs[R];return typeof B=="string"&&(B=this.refs[B]),typeof B=="object"?l(c,B.schema,R):R!==ss(k)&&(R[0]==="#"?(l(c,s[R],R),s[R]=c):this.refs[R]=k),R}function I(R){if(typeof R=="string"){if(!Py.test(R))throw new Error(`invalid anchor "${R}"`);C.call(this,`#${R}`)}}}),s;function l(c,g,h){if(g!==void 0&&!vy(c,g))throw f(h)}function f(c){return new Error(`reference "${c}" resolves to more than one schema`)}}Tr.getSchemaRefs=Ty});var Br=we(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkStrictMode=xn.schemaCxtHasRules=xn.subschemaCode=xn.validateFunctionCode=void 0;var Zc=vc(),Gc=is(),Kc=Lc(),Ke=ze(),Ie=ln(),Fy=Us(),Jc=_t();function Iy(t){if(Xc(t)&&(Yc(t),Il(t))){Ry(t);return}Qc(t,()=>Zc.topBoolOrEmptySchema(t))}xn.validateFunctionCode=Iy;function Qc({gen:t,validateName:r,schema:e,schemaEnv:n,opts:s},o){s.code.es5?t.func(r,Ke._`${Ie.default.data}, ${Ie.default.valCxt}`,n.$async,()=>{t.code(Ke._`"use strict"; ${Wc(e,s)}`),Ny(t,s),t.code(o)}):t.func(r,Ke._`${Ie.default.data}, ${Oy(s)}`,n.$async,()=>t.code(Wc(e,s)).code(o))}function Oy(t){return Ke._`{${Ie.default.dataPath}="", ${Ie.default.parentData}, ${Ie.default.parentDataProperty}, ${Ie.default.rootData}=${Ie.default.data}${t.dynamicRef?Ke._`, ${Ie.default.dynamicAnchors}={}`:Ke.nil}}={}`}function Ny(t,r){t.if(Ie.default.valCxt,()=>{t.var(Ie.default.dataPath,Ke._`${Ie.default.valCxt}.${Ie.default.dataPath}`),t.var(Ie.default.parentData,Ke._`${Ie.default.valCxt}.${Ie.default.parentData}`),t.var(Ie.default.parentDataProperty,Ke._`${Ie.default.valCxt}.${Ie.default.parentDataProperty}`),t.var(Ie.default.rootData,Ke._`${Ie.default.valCxt}.${Ie.default.rootData}`),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`${Ie.default.valCxt}.${Ie.default.dynamicAnchors}`)},()=>{t.var(Ie.default.dataPath,Ke._`""`),t.var(Ie.default.parentData,Ke._`undefined`),t.var(Ie.default.parentDataProperty,Ke._`undefined`),t.var(Ie.default.rootData,Ie.default.data),r.dynamicRef&&t.var(Ie.default.dynamicAnchors,Ke._`{}`)})}function Ry(t){let{schema:r,opts:e,gen:n}=t;Qc(t,()=>{e.$comment&&r.$comment&&tp(t),By(t),n.let(Ie.default.vErrors,null),n.let(Ie.default.errors,0),e.unevaluated&&Dy(t),ep(t),Vy(t)})}function Dy(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ke._`${e}.evaluated`),r.if(Ke._`${t.evaluated}.dynamicProps`,()=>r.assign(Ke._`${t.evaluated}.props`,Ke._`undefined`)),r.if(Ke._`${t.evaluated}.dynamicItems`,()=>r.assign(Ke._`${t.evaluated}.items`,Ke._`undefined`))}function Wc(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ke._`/*# sourceURL=${t.$id} */`:Ke.nil}function qy(t,r){if(Xc(t)&&(Yc(t),Il(t))){Ly(t,r);return}Zc.boolOrEmptySchema(t,r)}xn.subschemaCode=qy;function Il({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}xn.schemaCxtHasRules=Il;function Xc(t){return typeof t.schema!="boolean"}function Ly(t,r){let{schema:e,gen:n,opts:s}=t;s.$comment&&e.$comment&&tp(t),My(t),zy(t);let o=n.const("_errs",Ie.default.errors);ep(t,o),n.var(r,Ke._`${o} === ${Ie.default.errors}`)}function Yc(t){Jc.checkUnknownRules(t),jy(t)}function ep(t,r){if(t.opts.jtd)return Kc.schemaKeywords(t,[],!1,r);let e=Gc.getSchemaTypes(t.schema),n=Gc.coerceAndCheckDataType(t,e);Kc.schemaKeywords(t,e,!n,r)}function jy(t){let{schema:r,errSchemaPath:e,opts:n,self:s}=t;r.$ref&&n.ignoreKeywordsWithRef&&Jc.schemaHasRulesButRef(r,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function By(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&rp(t,"default is ignored in the schema root")}function My(t){t.schema.$id&&(t.baseId=Fy.resolveUrl(t.baseId,t.schema.$id))}function zy(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function tp({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:s}){let o=e.$comment;if(s.$comment===!0)t.code(Ke._`${Ie.default.self}.logger.log(${o})`);else if(typeof s.$comment=="function"){let l=Ke.str`${n}/$comment`,f=t.scopeValue("root",{ref:r.root});t.code(Ke._`${Ie.default.self}.opts.$comment(${o}, ${l}, ${f}.schema)`)}}function Vy(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:s,opts:o}=t;e.$async?r.if(Ke._`${Ie.default.errors} === 0`,()=>r.return(Ie.default.data),()=>r.throw(Ke._`new ${s}(${Ie.default.vErrors})`)):(r.assign(Ke._`${n}.errors`,Ie.default.vErrors),o.unevaluated&&Hy(t),r.return(Ke._`${Ie.default.errors} === 0`))}function Hy({gen:t,evaluated:r,props:e,items:n}){e instanceof Ke.Name&&t.assign(Ke._`${r}.props`,e),n instanceof Ke.Name&&t.assign(Ke._`${r}.items`,n)}function rp(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}xn.checkStrictMode=rp});var _t=we(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.func=tt.setEvaluated=tt.evaluatedPropsToName=tt.mergeEvaluated=tt.eachItem=tt.unescapeJsonPointer=tt.escapeJsonPointer=tt.escapeFragment=tt.unescapeFragment=tt.schemaRefOrVal=tt.schemaHasRulesButRef=tt.schemaHasRules=tt.checkUnknownRules=tt.alwaysValidSchema=tt.toHash=void 0;var Ot=ze(),Uy=Br();function Gy(t){let r={};for(let e of t)r[e]=!0;return r}tt.toHash=Gy;function Ky(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(ip(t,r),!sp(r,t.self.RULES.all))}tt.alwaysValidSchema=Ky;function ip(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let s=n.RULES.keywords;for(let o in r)s[o]||Uy.checkStrictMode(t,`unknown keyword: "${o}"`)}tt.checkUnknownRules=ip;function sp(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}tt.schemaHasRules=sp;function Wy(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}tt.schemaHasRulesButRef=Wy;function Zy({topSchemaRef:t,schemaPath:r},e,n,s){if(!s){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return Ot._`${e}`}return Ot._`${t}${r}${Ot.getProperty(n)}`}tt.schemaRefOrVal=Zy;function Jy(t){return ap(decodeURIComponent(t))}tt.unescapeFragment=Jy;function Qy(t){return encodeURIComponent(op(t))}tt.escapeFragment=Qy;function op(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}tt.escapeJsonPointer=op;function ap(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}tt.unescapeJsonPointer=ap;function Xy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}tt.eachItem=Xy;function np({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(s,o,l,f)=>{let c=l===void 0?o:l instanceof Ot.Name?(o instanceof Ot.Name?t(s,o,l):r(s,o,l),l):o instanceof Ot.Name?(r(s,l,o),o):e(o,l);return f===Ot.Name&&!(c instanceof Ot.Name)?n(s,c):c}}tt.mergeEvaluated={props:np({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>{t.if(Ot._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,Ot._`${e} || {}`).code(Ot._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,Ot._`${e} || {}`),Ol(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:lp}),items:np({mergeNames:(t,r,e)=>t.if(Ot._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,Ot._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(Ot._`${e} !== true`,()=>t.assign(e,r===!0?!0:Ot._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function lp(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",Ot._`{}`);return r!==void 0&&Ol(t,e,r),e}tt.evaluatedPropsToName=lp;function Ol(t,r,e){Object.keys(e).forEach(n=>t.assign(Ot._`${r}${Ot.getProperty(n)}`,!0))}tt.setEvaluated=Ol;function Yy(t,r){return t.scopeValue("func",{ref:r,code:r.code})}tt.func=Yy});var is=we(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;var eb=sl(),tb=ol(),rb=zs(),Oe=ze(),up=_t(),Gs;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Gs=Xt.DataType||(Xt.DataType={}));function nb(t){let r=fp(t.type);if(r.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&r.push("null")}return r}Xt.getSchemaTypes=nb;function fp(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(eb.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Xt.getJSONTypes=fp;function ib(t,r){let{gen:e,data:n,opts:s}=t,o=sb(r,s.coerceTypes),l=r.length>0&&!(o.length===0&&r.length===1&&tb.schemaHasRulesForType(t,r[0]));if(l){let f=Rl(r,n,s.strict,Gs.Wrong);e.if(f,()=>{o.length?ob(t,r,o):Dl(t)})}return l}Xt.coerceAndCheckDataType=ib;var cp=new Set(["string","number","integer","boolean","null"]);function sb(t,r){return r?t.filter(e=>cp.has(e)||r==="array"&&e==="array"):[]}function ob(t,r,e){let{gen:n,data:s,opts:o}=t,l=n.let("dataType",Oe._`typeof ${s}`),f=n.let("coerced",Oe._`undefined`);o.coerceTypes==="array"&&n.if(Oe._`${l} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,Oe._`${s}[0]`).assign(l,Oe._`typeof ${s}`).if(Rl(r,s,o.strict),()=>n.assign(f,s))),n.if(Oe._`${f} !== undefined`);for(let g of e)(cp.has(g)||g==="array"&&o.coerceTypes==="array")&&c(g);n.else(),Dl(t),n.endIf(),n.if(Oe._`${f} !== undefined`,()=>{n.assign(s,f),ab(t,f)});function c(g){switch(g){case"string":n.elseIf(Oe._`${l} == "number" || ${l} == "boolean"`).assign(f,Oe._`"" + ${s}`).elseIf(Oe._`${s} === null`).assign(f,Oe._`""`);return;case"number":n.elseIf(Oe._`${l} == "boolean" || ${s} === null
|
|
3
|
-
|| (${l} == "string" && ${s} && ${s} == +${s})`).assign(
|
|
4
|
-
|| (${l} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(
|
|
5
|
-
|| ${l} === "boolean" || ${s} === null`).assign(f,Oe._`[${s}]`)}}}function ab({gen:t,parentData:r,parentDataProperty:e},n){t.if(Oe._`${r} !== undefined`,()=>t.assign(Oe._`${r}[${e}]`,n))}function Nl(t,r,e,n=Gs.Correct){let s=n===Gs.Correct?Oe.operators.EQ:Oe.operators.NEQ,o;switch(t){case"null":return Oe._`${r} ${s} null`;case"array":o=Oe._`Array.isArray(${r})`;break;case"object":o=Oe._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=l(Oe._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=l();break;default:return Oe._`typeof ${r} ${s} ${t}`}return n===Gs.Correct?o:Oe.not(o);function l(f=Oe.nil){return Oe.and(Oe._`typeof ${r} == "number"`,f,e?Oe._`isFinite(${r})`:Oe.nil)}}Xt.checkDataType=Nl;function Rl(t,r,e,n){if(t.length===1)return Nl(t[0],r,e,n);let s,o=up.toHash(t);if(o.array&&o.object){let l=Oe._`typeof ${r} != "object"`;s=o.null?l:Oe._`!${r} || ${l}`,delete o.null,delete o.array,delete o.object}else s=Oe.nil;o.number&&delete o.integer;for(let l in o)s=Oe.and(s,Nl(l,r,e,n));return s}Xt.checkDataTypes=Rl;var lb={message:({schema:t})=>Oe.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Oe._`{type: ${t}}`:Oe._`{type: ${r}}`};function Dl(t){let r=ub(t);rb.reportError(r,lb)}Xt.reportTypeError=Dl;function ub(t){let{gen:r,data:e,schema:n}=t,s=up.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var Vs=we(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.getData=void 0;var pp=is(),Wo=_t(),Ks=zs(),Dt=ze(),ql=ln(),fb=vi(),Ll=class{constructor(r,e,n){if(pb(r,e,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=e.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Wo.schemaRefOrVal(r,this.schema,n,this.$data),this.schemaType=e.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=e,this.$data)this.schemaCode=r.gen.const("vSchema",dp(this.$data,r));else if(this.schemaCode=this.schemaValue,!cb(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=r.gen.const("_errs",ql.default.errors))}result(r,e,n){this.gen.if(Dt.not(r)),n?n():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,e){this.result(r,void 0,e)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:e}=this;this.fail(Dt._`${e} !== undefined && (${Dt.or(this.invalid$data(),r)})`)}error(r){(r?Ks.reportExtraError:Ks.reportError)(this,this.def.error)}$dataError(){Ks.reportError(this,this.def.$dataError||Ks.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Ks.resetErrorsCount(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,e){e?Object.assign(this.params,r):this.params=r}block$data(r,e,n=Dt.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=Dt.nil,e=Dt.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:o,def:l}=this;n.if(Dt.or(Dt._`${s} === undefined`,e)),r!==Dt.nil&&n.assign(r,!0),(o.length||l.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==Dt.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:s,it:o}=this;return Dt.or(l(),f());function l(){if(n.length){if(!(e instanceof Dt.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return Dt._`${pp.checkDataTypes(c,e,o.opts.strict,pp.DataType.Wrong)}`}return Dt.nil}function f(){if(s.validateSchema){let c=r.scopeValue("validate$data",{ref:s.validateSchema});return Dt._`!${c}(${e})`}return Dt.nil}}subschema(r,e){return fb.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:s}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Wo.mergeEvaluated.props(s,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Wo.mergeEvaluated.items(s,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(e,()=>this.mergeEvaluated(r,Dt.Name)),!0}};Ws.default=Ll;function cb(t,r,e=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||e&&typeof t>"u")}function pb({schema:t,opts:r,self:e},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let f="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(f);else throw new Error(f)}}var db=/^\/(?:[^~]|~0|~1)*$/,mb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dp(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let s,o;if(t==="")return ql.default.rootData;if(t[0]==="/"){if(!db.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,o=ql.default.rootData}else{let g=mb.exec(t);if(!g)throw new Error(`Invalid JSON-pointer: ${t}`);let h=+g[1];if(s=g[2],s==="#"){if(h>=r)throw new Error(c("property/index",h));return n[r-h]}if(h>r)throw new Error(c("data",h));if(o=e[r-h],!s)return o}let l=o,f=s.split("/");for(let g of f)g&&(o=Dt._`${o}${Dt.getProperty(Wo.unescapeJsonPointer(g))}`,l=Dt._`${l} && ${o}`);return l;function c(g,h){return`Cannot access ${g} ${h} levels up, current level is ${r}`}}Ws.getData=dp});var Qo=we((os,mp)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.MissingRefError=os.ValidationError=void 0;var jl=Us(),Zo=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};os.ValidationError=Zo;var Jo=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=jl.resolveUrl(r,e),this.missingSchema=jl.normalizeId(jl.getFullPath(this.missingRef))}};os.MissingRefError=Jo;mp.exports={ValidationError:Zo,MissingRefError:Jo}});var zl=we(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.resolveSchema=Zr.getCompilingSchema=Zr.resolveRef=Zr.compileSchema=Zr.SchemaEnv=void 0;var fn=ze(),hb=Qo(),Ci=ln(),cn=Us(),hp=_t(),gb=Br(),yb=Tl(),as=class{constructor(r){var e;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.root=r.root||this,this.baseId=(e=r.baseId)!==null&&e!==void 0?e:cn.normalizeId(n==null?void 0:n.$id),this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Zr.SchemaEnv=as;function Ml(t){let r=gp.call(this,t);if(r)return r;let e=cn.getFullPath(t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:o}=this.opts,l=new fn.CodeGen(this.scope,{es5:n,lines:s,ownProperties:o}),f;t.$async&&(f=l.scopeValue("Error",{ref:hb.ValidationError,code:fn._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=l.scopeName("validate");t.validateName=c;let g={gen:l,allErrors:this.opts.allErrors,data:Ci.default.data,parentData:Ci.default.parentData,parentDataProperty:Ci.default.parentDataProperty,dataNames:[Ci.default.data],dataPathArr:[fn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:fn.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:fn.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:fn._`""`,opts:this.opts,self:this},h;try{this._compilations.add(t),gb.validateFunctionCode(g),l.optimize(this.opts.code.optimize);let $=l.toString();h=`${l.scopeRefs(Ci.default.scope)}return ${$}`,this.opts.code.process&&(h=this.opts.code.process(h,t));let x=new Function(`${Ci.default.self}`,`${Ci.default.scope}`,h)(this,this.scope.get());if(this.scope.value(c,{ref:x}),x.errors=null,x.schema=t.schema,x.schemaEnv=t,t.$async&&(x.$async=!0),this.opts.code.source===!0&&(x.source={validateName:c,validateCode:$,scopeValues:l._values}),this.opts.unevaluated){let{props:C,items:I}=g;x.evaluated={props:C instanceof fn.Name?void 0:C,items:I instanceof fn.Name?void 0:I,dynamicProps:C instanceof fn.Name,dynamicItems:I instanceof fn.Name},x.source&&(x.source.evaluated=fn.stringify(x.evaluated))}return t.validate=x,t}catch($){throw delete t.validate,delete t.validateName,h&&this.logger.error("Error compiling schema, function code:",h),$}finally{this._compilations.delete(t)}}Zr.compileSchema=Ml;function bb(t,r,e){var n;e=cn.resolveUrl(r,e);let s=t.refs[e];if(s)return s;let o=kb.call(this,t,e);if(o===void 0){let l=(n=t.localRefs)===null||n===void 0?void 0:n[e];l&&(o=new as({schema:l,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=$b.call(this,o)}Zr.resolveRef=bb;function $b(t){return cn.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Ml.call(this,t)}function gp(t){for(let r of this._compilations)if(wb(r,t))return r}Zr.getCompilingSchema=gp;function wb(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function kb(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||Xo.call(this,t,r)}function Xo(t,r){let e=yb.parse(r),n=cn._getFullPath(e),s=cn.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===s)return Bl.call(this,e,t);let o=cn.normalizeId(n),l=this.refs[o]||this.schemas[o];if(typeof l=="string"){let f=Xo.call(this,t,l);return typeof(f==null?void 0:f.schema)!="object"?void 0:Bl.call(this,e,f)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||Ml.call(this,l),o===cn.normalizeId(r)){let{schema:f}=l;return f.$id&&(s=cn.resolveUrl(s,f.$id)),new as({schema:f,root:t,baseId:s})}return Bl.call(this,e,l)}}Zr.resolveSchema=Xo;var vb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Bl(t,{baseId:r,schema:e,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let l of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[hp.unescapeFragment(l)],e===void 0))return;!vb.has(l)&&typeof e=="object"&&e.$id&&(r=cn.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!hp.schemaHasRulesButRef(e,this.RULES)){let l=cn.resolveUrl(r,e.$ref);o=Xo.call(this,n,l)}if(o=o||new as({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var yp=we((J1,xb)=>{xb.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var vp=we(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.CodeGen=Yt.Name=Yt.nil=Yt.stringify=Yt.str=Yt._=Yt.KeywordCxt=void 0;var Cb=Vs();Yt.KeywordCxt=Cb.default;var ls=ze();Object.defineProperty(Yt,"_",{enumerable:!0,get:function(){return ls._}});Object.defineProperty(Yt,"str",{enumerable:!0,get:function(){return ls.str}});Object.defineProperty(Yt,"stringify",{enumerable:!0,get:function(){return ls.stringify}});Object.defineProperty(Yt,"nil",{enumerable:!0,get:function(){return ls.nil}});Object.defineProperty(Yt,"Name",{enumerable:!0,get:function(){return ls.Name}});Object.defineProperty(Yt,"CodeGen",{enumerable:!0,get:function(){return ls.CodeGen}});var Ul=Qo(),Ab=sl(),Zs=zl(),Eb=ze(),Yo=Us(),ea=is(),Hl=_t(),bp=yp(),_b=["removeAdditional","useDefaults","coerceTypes"],Sb=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Pb={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",strictNumbers:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key."},Tb={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function Fb(t){var r,e,n,s,o,l,f,c,g,h,$,k;let x=(r=t.strict)!==null&&r!==void 0?r:!0,C=x?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,R=I===!0||I===void 0?1:I||0;return{strict:x,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:C,strictTuples:(s=t.strictTuples)!==null&&s!==void 0?s:C,code:t.code?{...t.code,optimize:R}:{optimize:R},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(l=t.loopEnum)!==null&&l!==void 0?l:1/0,meta:(f=t.meta)!==null&&f!==void 0?f:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,addUsedSchema:(h=t.addUsedSchema)!==null&&h!==void 0?h:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(k=t.validateFormats)!==null&&k!==void 0?k:!0}}var Js=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...Fb(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new Eb.ValueScope({scope:{},prefixes:Sb,es5:e,lines:n}),this.logger=qb(r.logger);let s=r.validateFormats;r.validateFormats=!1,this.RULES=Ab.getRules(),$p.call(this,Pb,r,"NOT SUPPORTED"),$p.call(this,Tb,r,"DEPRECATED","warn"),this._metaOpts=Rb.call(this),r.formats&&Ob.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&Nb.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),Ib.call(this),r.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(bp,bp.$id,!1)}defaultMeta(){let{meta:r}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r.$id||r:void 0}validate(r,e){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let s=n(e);return"$async"in n||(this.errors=n.errors),s}compile(r,e){let n=this._addSchema(r,e);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,r,e);async function s(h,$){await o.call(this,h.$schema);let k=this._addSchema(h,$);return k.validate||l.call(this,k)}async function o(h){h&&!this.getSchema(h)&&await s.call(this,{$ref:h},!0)}async function l(h){try{return this._compileSchemaEnv(h)}catch($){if(!($ instanceof Ul.MissingRefError))throw $;return f.call(this,$),await c.call(this,$.missingSchema),l.call(this,h)}}function f({missingSchema:h,missingRef:$}){if(this.refs[h])throw new Error(`AnySchema ${h} is loaded but ${$} cannot be resolved`)}async function c(h){let $=await g.call(this,h);this.refs[h]||await o.call(this,$.$schema),this.refs[h]||this.addSchema($,h,e)}async function g(h){let $=this._loading[h];if($)return $;try{return await(this._loading[h]=n(h))}finally{delete this._loading[h]}}}addSchema(r,e,n,s=this.opts.validateSchema){if(Array.isArray(r)){for(let l of r)this.addSchema(l,void 0,n,s);return this}let o;if(typeof r=="object"&&(o=r.$id,o!==void 0&&typeof o!="string"))throw new Error("schema id must be string");return e=Yo.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,s,!0),this}addMetaSchema(r,e,n=this.opts.validateSchema){return this.addSchema(r,e,!0,n),this}validateSchema(r,e){if(typeof r=="boolean")return!0;let n;if(n=r.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,r);if(!s&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return s}getSchema(r){let e;for(;typeof(e=wp.call(this,r))=="string";)r=e;if(e===void 0){let n=new Zs.SchemaEnv({schema:{}});if(e=Zs.resolveSchema.call(this,n,r),!e)return;this.refs[r]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let e=wp.call(this,r);return typeof e=="object"&&this._cache.delete(e.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let e=r;this._cache.delete(e);let n=r.$id;return n&&(n=Yo.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let e of r)this.addKeyword(e);return this}addKeyword(r,e){let n;if(typeof r=="string")n=r,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=n);else if(typeof r=="object"&&e===void 0){if(e=r,n=e.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(jb.call(this,n,e),!e)return Hl.eachItem(n,o=>Vl.call(this,o)),this;Mb.call(this,e);let s={...e,type:ea.getJSONTypes(e.type),schemaType:ea.getJSONTypes(e.schemaType)};return Hl.eachItem(n,s.type.length===0?o=>Vl.call(this,o,s):o=>s.type.forEach(l=>Vl.call(this,o,s,l))),this}getKeyword(r){let e=this.RULES.all[r];return typeof e=="object"?e.definition:!!e}removeKeyword(r){let{RULES:e}=this;delete e.keywords[r],delete e.all[r];for(let n of e.rules){let s=n.rules.findIndex(o=>o.keyword===r);s>=0&&n.rules.splice(s,1)}return this}addFormat(r,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[r]=e,this}errorsText(r=this.errors,{separator:e=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(s=>`${n}${s.dataPath} ${s.message}`).reduce((s,o)=>s+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let s of e){let o=s.split("/").slice(1),l=r;for(let f of o)l=l[f];for(let f in n){let c=n[f];if(typeof c!="object")continue;let{$data:g}=c.definition,h=l[f];g&&h&&(l[f]=kp(h))}}return r}_removeAllSchemas(r,e){for(let n in r){let s=r[n];(!e||e.test(n))&&(typeof s=="string"?delete r[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,s=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(r);if(o!==void 0)return o;let l=Yo.getSchemaRefs.call(this,r);o=new Zs.SchemaEnv({schema:r,meta:e,localRefs:l}),this._cache.set(o.schema,o);let f=o.baseId;return s&&!f.startsWith("#")&&(f&&this._checkUnique(f),this.refs[f]=o),n&&this.validateSchema(r,!0),o}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Zs.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let e=this.opts;this.opts=this._metaOpts;try{Zs.compileSchema.call(this,r)}finally{this.opts=e}}};Yt.default=Js;Js.ValidationError=Ul.ValidationError;Js.MissingRefError=Ul.MissingRefError;function $p(t,r,e,n="error"){for(let s in t){let o=s;o in r&&this.logger[n](`${e}: option ${s}. ${t[o]}`)}}function wp(t){return t=Yo.normalizeId(t),this.schemas[t]||this.refs[t]}function Ib(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let r in t)this.addSchema(t[r],r)}function Ob(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function Nb(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in t){let e=t[r];e.keyword||(e.keyword=r),this.addKeyword(e)}}function Rb(){let t={...this.opts};for(let r of _b)delete t[r];return t}var Db={log(){},warn(){},error(){}};function qb(t){if(t===!1)return Db;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Lb=/^[a-z_$][a-z0-9_$:-]*$/i;function jb(t,r){let{RULES:e}=this;if(Hl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Lb.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function Vl(t,r,e){var n;let s=r==null?void 0:r.post;if(e&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,l=s?o.post:o.rules.find(({type:c})=>c===e);if(l||(l={type:e,rules:[]},o.rules.push(l)),o.keywords[t]=!0,!r)return;let f={keyword:t,definition:{...r,type:ea.getJSONTypes(r.type),schemaType:ea.getJSONTypes(r.schemaType)}};r.before?Bb.call(this,l,f,r.before):l.rules.push(f),o.all[t]=f,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Bb(t,r,e){let n=t.rules.findIndex(s=>s.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Mb(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=kp(r)),t.validateSchema=this.compile(r,!0))}var zb={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function kp(t){return{anyOf:[t,zb]}}});var xp=we(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Vb={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gl.default=Vb});var _p=we(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.callRef=Ai.getValidate=void 0;var Hb=Qo(),Cp=un(),Fr=ze(),us=ln(),Ap=zl(),ta=_t(),Ub={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:s,schemaEnv:o,validateName:l,opts:f,self:c}=n;if(e==="#"||e==="#/")return h();let g=Ap.resolveRef.call(c,o.root,s,e);if(g===void 0)throw new Hb.MissingRefError(s,e);if(g instanceof Ap.SchemaEnv)return $(g);return k(g);function h(){if(o===o.root)return ra(t,l,o,o.$async);let x=r.scopeValue("root",{ref:o.root});return ra(t,Fr._`${x}.validate`,o.root,o.root.$async)}function $(x){let C=Ep(t,x);ra(t,C,x,x.$async)}function k(x){let C=r.scopeValue("schema",f.code.source===!0?{ref:x,code:Fr.stringify(x)}:{ref:x}),I=r.name("valid"),R=t.subschema({schema:x,dataTypes:[],schemaPath:Fr.nil,topSchemaRef:C,errSchemaPath:e},I);t.mergeEvaluated(R),t.ok(I)}}};function Ep(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):Fr._`${e.scopeValue("wrapper",{ref:r})}.validate`}Ai.getValidate=Ep;function ra(t,r,e,n){let{gen:s,it:o}=t,{allErrors:l,schemaEnv:f,opts:c}=o,g=c.passContext?us.default.this:Fr.nil;n?h():$();function h(){if(!f.$async)throw new Error("async schema referenced by sync schema");let C=s.let("valid");s.try(()=>{s.code(Fr._`await ${Cp.callValidateCode(t,r,g)}`),x(r),l||s.assign(C,!0)},I=>{s.if(Fr._`!(${I} instanceof ${o.ValidationError})`,()=>s.throw(I)),k(I),l||s.assign(C,!1)}),t.ok(C)}function $(){t.result(Cp.callValidateCode(t,r,g),()=>x(r),()=>k(r))}function k(C){let I=Fr._`${C}.errors`;s.assign(us.default.vErrors,Fr._`${us.default.vErrors} === null ? ${I} : ${us.default.vErrors}.concat(${I})`),s.assign(us.default.errors,Fr._`${us.default.vErrors}.length`)}function x(C){var I;if(!o.opts.unevaluated)return;let R=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(R&&!R.dynamicProps)R.props!==void 0&&(o.props=ta.mergeEvaluated.props(s,R.props,o.props));else{let B=s.var("props",Fr._`${C}.evaluated.props`);o.props=ta.mergeEvaluated.props(s,B,o.props,Fr.Name)}if(o.items!==!0)if(R&&!R.dynamicItems)R.items!==void 0&&(o.items=ta.mergeEvaluated.items(s,R.items,o.items));else{let B=s.var("items",Fr._`${C}.evaluated.items`);o.items=ta.mergeEvaluated.items(s,B,o.items,Fr.Name)}}}Ai.callRef=ra;Ai.default=Ub});var Sp=we(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var Gb=xp(),Kb=_p(),Wb=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gb.default,Kb.default];Kl.default=Wb});var Pp=we(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var na=ze(),ei=na.operators,ia={maximum:{okStr:"<=",ok:ei.LTE,fail:ei.GT},minimum:{okStr:">=",ok:ei.GTE,fail:ei.LT},exclusiveMaximum:{okStr:"<",ok:ei.LT,fail:ei.GTE},exclusiveMinimum:{okStr:">",ok:ei.GT,fail:ei.LTE}},Zb={message:({keyword:t,schemaCode:r})=>na.str`should be ${ia[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>na._`{comparison: ${ia[t].okStr}, limit: ${r}}`},Jb={keyword:Object.keys(ia),type:"number",schemaType:"number",$data:!0,error:Zb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(na._`${e} ${ia[r].fail} ${n} || isNaN(${e})`)}};Wl.default=Jb});var Tp=we(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Qs=ze(),Qb={message:({schemaCode:t})=>Qs.str`should be multiple of ${t}`,params:({schemaCode:t})=>Qs._`{multipleOf: ${t}}`},Xb={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Qb,code(t){let{gen:r,data:e,schemaCode:n,it:s}=t,o=s.opts.multipleOfPrecision,l=r.let("res"),f=o?Qs._`Math.abs(Math.round(${l}) - ${l}) > 1e-${o}`:Qs._`${l} !== parseInt(${l})`;t.fail$data(Qs._`(${n} === 0 || (${l} = ${e}/${n}, ${f}))`)}};Zl.default=Xb});var Fp=we(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});function Yb(t){let r=t.length,e=0,n=0,s;for(;n<r;)e++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<r&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return e}Jl.default=Yb});var Ip=we(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var ti=ze(),e$=Fp(),t$={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return ti.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>ti._`{limit: ${t}}`},r$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:t$,code(t){let{keyword:r,data:e,schemaCode:n,it:s}=t,o=r==="maxLength"?ti.operators.GT:ti.operators.LT,l;if(s.opts.unicode===!1)l=ti._`${e}.length`;else{let f=t.gen.scopeValue("func",{ref:e$.default,code:ti._`require("ajv/dist/compile/ucs2length").default`});l=ti._`${f}(${e})`}t.fail$data(ti._`${l} ${o} ${n}`)}};Ql.default=r$});var Op=we(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var n$=un(),sa=ze(),i$={message:({schemaCode:t})=>sa.str`should match pattern "${t}"`,params:({schemaCode:t})=>sa._`{pattern: ${t}}`},s$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:i$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o}=t,l=n?sa._`(new RegExp(${o}, "u"))`:n$.usePattern(r,s);t.fail$data(sa._`!${l}.test(${e})`)}};Xl.default=s$});var Np=we(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Xs=ze(),o$={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Xs.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Xs._`{limit: ${t}}`},a$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:o$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxProperties"?Xs.operators.GT:Xs.operators.LT;t.fail$data(Xs._`Object.keys(${e}).length ${s} ${n}`)}};Yl.default=a$});var Rp=we(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Ys=un(),eo=ze(),l$=Br(),u$={message:({params:{missingProperty:t}})=>eo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>eo._`{missingProperty: ${t}}`},f$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:u$,code(t){let{gen:r,schema:e,schemaCode:n,data:s,$data:o,it:l}=t,{opts:f}=l;if(!o&&e.length===0)return;let c=e.length>=f.loopRequired;if(l.allErrors?g():h(),f.strictRequired){let x=t.parentSchema.properties,{definedProperties:C}=t.it;for(let I of e)if((x==null?void 0:x[I])===void 0&&!C.has(I)){let R=l.schemaEnv.baseId+l.errSchemaPath,B=`required property "${I}" is not defined at "${R}" (strictRequired)`;l$.checkStrictMode(l,B,l.opts.strictRequired)}}function g(){if(c||o)t.block$data(eo.nil,$);else for(let x of e)Ys.checkReportMissingProp(t,x)}function h(){let x=r.let("missing");if(c||o){let C=r.let("valid",!0);t.block$data(C,()=>k(x,C)),t.ok(C)}else r.if(Ys.checkMissingProp(t,e,x)),Ys.reportMissingProp(t,x),r.else()}function $(){r.forOf("prop",n,x=>{t.setParams({missingProperty:x}),r.if(Ys.noPropertyInData(r,s,x,f.ownProperties),()=>t.error())})}function k(x,C){t.setParams({missingProperty:x}),r.forOf(x,n,()=>{r.assign(C,Ys.propertyInData(r,s,x,f.ownProperties)),r.if(eo.not(C),()=>{t.error(),r.break()})},eo.nil)}}};eu.default=f$});var Dp=we(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var to=ze(),c$={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return to.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>to._`{limit: ${t}}`},p$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:c$,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxItems"?to.operators.GT:to.operators.LT;t.fail$data(to._`${e}.length ${s} ${n}`)}};tu.default=p$});var qp=we(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var ru=is(),Kt=ze(),d$=Hs(),m$={message:({params:{i:t,j:r}})=>Kt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Kt._`{i: ${t}, j: ${r}}`},h$={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:m$,code(t){let{gen:r,data:e,$data:n,schema:s,parentSchema:o,schemaCode:l,it:f}=t;if(!n&&!s)return;let c=r.let("valid"),g=o.items?ru.getSchemaTypes(o.items):[];t.block$data(c,h,Kt._`${l} === false`),t.ok(c);function h(){let C=r.let("i",Kt._`${e}.length`),I=r.let("j");t.setParams({i:C,j:I}),r.assign(c,!0),r.if(Kt._`${C} > 1`,()=>($()?k:x)(C,I))}function $(){return g.length>0&&!g.some(C=>C==="object"||C==="array")}function k(C,I){let R=r.name("item"),B=ru.checkDataTypes(g,R,f.opts.strict,ru.DataType.Wrong),X=r.const("indices",Kt._`{}`);r.for(Kt._`;${C}--;`,()=>{r.let(R,Kt._`${e}[${C}]`),r.if(B,Kt._`continue`),g.length>1&&r.if(Kt._`typeof ${R} == "string"`,Kt._`${R} += "_"`),r.if(Kt._`typeof ${X}[${R}] == "number"`,()=>{r.assign(I,Kt._`${X}[${R}]`),t.error(),r.assign(c,!1).break()}).code(Kt._`${X}[${R}] = ${C}`)})}function x(C,I){let R=t.gen.scopeValue("func",{ref:d$,code:Kt._`require("ajv/dist/compile/equal")`}),B=r.name("outer");r.label(B).for(Kt._`;${C}--;`,()=>r.for(Kt._`${I} = ${C}; ${I}--;`,()=>r.if(Kt._`${R}(${e}[${C}], ${e}[${I}])`,()=>{t.error(),r.assign(c,!1).break(B)})))}}};nu.default=h$});var Lp=we(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var iu=ze(),g$=Hs(),y$={message:"should be equal to constant",params:({schemaCode:t})=>iu._`{allowedValue: ${t}}`},b$={keyword:"const",$data:!0,error:y$,code(t){let r=t.gen.scopeValue("func",{ref:g$,code:iu._`require("ajv/dist/compile/equal")`});t.fail$data(iu._`!${r}(${t.data}, ${t.schemaCode})`)}};su.default=b$});var jp=we(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var fs=ze(),$$=Hs(),w$={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>fs._`{allowedValues: ${t}}`},k$={keyword:"enum",schemaType:"array",$data:!0,error:w$,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:o,it:l}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let f=s.length>=l.opts.loopEnum,c=t.gen.scopeValue("func",{ref:$$,code:fs._`require("ajv/dist/compile/equal")`}),g;if(f||n)g=r.let("valid"),t.block$data(g,h);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let k=r.const("vSchema",o);g=fs.or(...s.map((x,C)=>$(k,C)))}t.pass(g);function h(){r.assign(g,!1),r.forOf("v",o,k=>r.if(fs._`${c}(${e}, ${k})`,()=>r.assign(g,!0).break()))}function $(k,x){let C=s[x];return C&&typeof C=="object"?fs._`${c}(${e}, ${k}[${x}])`:fs._`${e} === ${C}`}}};ou.default=k$});var Bp=we(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var v$=Pp(),x$=Tp(),C$=Ip(),A$=Op(),E$=Np(),_$=Rp(),S$=Dp(),P$=qp(),T$=Lp(),F$=jp(),I$=[v$.default,x$.default,C$.default,A$.default,E$.default,_$.default,S$.default,P$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},T$.default,F$.default];au.default=I$});var Mp=we(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var Ei=ze(),O$=vi(),N$=_t(),R$=Br(),D$={message:({params:{len:t}})=>Ei.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Ei._`{limit: ${t}}`},q$={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:D$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,{items:l}=n;if(!Array.isArray(l)){R$.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let f=r.const("len",Ei._`${s}.length`);if(e===!1)t.setParams({len:l.length}),t.pass(Ei._`${f} <= ${l.length}`);else if(typeof e=="object"&&!N$.alwaysValidSchema(o,e)){let g=r.var("valid",Ei._`${f} <= ${l.length}`);r.if(Ei.not(g),()=>c(g)),t.ok(g)}function c(g){r.forRange("i",l.length,f,h=>{t.subschema({keyword:"additionalItems",dataProp:h,dataPropType:O$.Type.Num},g),o.allErrors||r.if(Ei.not(g),()=>r.break())})}}};lu.default=q$});var Vp=we(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var zp=ze(),uu=_t(),L$=Br(),j$=un(),B$={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{gen:r,schema:e,it:n}=t;if(Array.isArray(e))n.opts.unevaluated&&e.length&&n.items!==!0&&(n.items=uu.mergeEvaluated.items(r,e.length,n.items)),s(e);else{if(n.items=!0,uu.alwaysValidSchema(n,e))return;t.ok(j$.validateArray(t))}function s(o){let{parentSchema:l,data:f}=t;if(n.opts.strictTuples&&!M$(o.length,l)){let h=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;L$.checkStrictMode(n,h,n.opts.strictTuples)}let c=r.name("valid"),g=r.const("len",zp._`${f}.length`);o.forEach((h,$)=>{uu.alwaysValidSchema(n,h)||(r.if(zp._`${g} > ${$}`,()=>t.subschema({keyword:"items",schemaProp:$,dataProp:$},c)),t.ok(c))})}}};function M$(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}fu.default=B$});var Up=we(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var pn=ze(),z$=vi(),V$=_t(),Hp=Br(),H$={message:({params:{min:t,max:r}})=>r===void 0?pn.str`should contain at least ${t} valid item(s)`:pn.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?pn._`{minContains: ${t}}`:pn._`{minContains: ${t}, maxContains: ${r}}`},U$={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:H$,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t,l,f,{minContains:c,maxContains:g}=n;o.opts.next?(l=c===void 0?1:c,f=g):l=1;let h=r.const("len",pn._`${s}.length`);if(t.setParams({min:l,max:f}),f===void 0&&l===0){Hp.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&l>f){Hp.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(V$.alwaysValidSchema(o,e)){let C=pn._`${h} >= ${l}`;f!==void 0&&(C=pn._`${C} && ${h} <= ${f}`),t.pass(C);return}o.items=!0;let $=r.name("valid");if(f===void 0&&l===1)k($,()=>r.if($,()=>r.break()));else{r.let($,!1);let C=r.name("_valid"),I=r.let("count",0);k(C,()=>r.if(C,()=>x(I)))}t.result($,()=>t.reset());function k(C,I){r.forRange("i",0,h,R=>{t.subschema({keyword:"contains",dataProp:R,dataPropType:z$.Type.Num,compositeRule:!0},C),I()})}function x(C){r.code(pn._`${C}++`),f===void 0?r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0).break()):(r.if(pn._`${C} > ${f}`,()=>r.assign($,!1).break()),l===1?r.assign($,!0):r.if(pn._`${C} >= ${l}`,()=>r.assign($,!0)))}}};cu.default=U$});var Wp=we(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.validateSchemaDeps=Cn.validatePropertyDeps=Cn.error=void 0;var pu=ze(),G$=_t(),ro=un();Cn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return pu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>pu._`{property: ${t},
|
|
1
|
+
var Im=Object.create;var ka=Object.defineProperty;var Om=Object.getOwnPropertyDescriptor;var qm=Object.getOwnPropertyNames;var Rm=Object.getPrototypeOf,Nm=Object.prototype.hasOwnProperty;var ve=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Bc=(t,r)=>{for(var e in r)ka(t,e,{get:r[e],enumerable:!0})},Uc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of qm(r))!Nm.call(t,s)&&s!==e&&ka(t,s,{get:()=>r[s],enumerable:!(n=Om(r,s))||n.enumerable});return t};var Vr=(t,r,e)=>(e=t!=null?Im(Rm(t)):{},Uc(r||!t||!t.__esModule?ka(e,"default",{value:t,enumerable:!0}):e,t)),Lm=t=>Uc(ka({},"__esModule",{value:!0}),t);var Ho=ve(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getRules=Hi.isJSONType=void 0;var zm=["string","number","integer","boolean","null","object","array"],Mm=new Set(zm);function jm(t){return typeof t=="string"&&Mm.has(t)}Hi.isJSONType=jm;function Vm(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Hi.getRules=Vm});var Go=ve(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.shouldUseRule=Un.shouldUseGroup=Un.schemaHasRulesForType=void 0;function Bm({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&Hc(t,n)}Un.schemaHasRulesForType=Bm;function Hc(t,r){return r.rules.some(e=>Gc(t,e))}Un.shouldUseGroup=Hc;function Gc(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Un.shouldUseRule=Gc});var _a=ve(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.getProperty=pt.safeStringify=pt.stringify=pt.strConcat=pt.addCodeArg=pt.str=pt._=pt.nil=pt._Code=pt.Name=pt.IDENTIFIER=pt._CodeOrName=void 0;var As=class{};pt._CodeOrName=As;pt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ci=class extends As{constructor(r){if(super(),!pt.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};pt.Name=ci;var dn=class extends As{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof ci&&(e[n.str]=(e[n.str]||0)+1),e),{})}};pt._Code=dn;pt.nil=new dn("");function Kc(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Wo(e,r[n]),e.push(t[++n]);return new dn(e)}pt._=Kc;var Ko=new dn("+");function Wc(t,...r){let e=[Es(t[0])],n=0;for(;n<r.length;)e.push(Ko),Wo(e,r[n]),e.push(Ko,Es(t[++n]));return Um(e),new dn(e)}pt.str=Wc;function Wo(t,r){r instanceof dn?t.push(...r._items):r instanceof ci?t.push(r):t.push(Km(r))}pt.addCodeArg=Wo;function Um(t){let r=1;for(;r<t.length-1;){if(t[r]===Ko){let e=Hm(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function Hm(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof ci||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof ci))return`"${t}${r.slice(1)}`}function Gm(t,r){return r.emptyStr()?t:t.emptyStr()?r:Wc`${t}${r}`}pt.strConcat=Gm;function Km(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Es(Array.isArray(t)?t.join(","):t)}function Wm(t){return new dn(Es(t))}pt.stringify=Wm;function Es(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}pt.safeStringify=Es;function Jm(t){return typeof t=="string"&&pt.IDENTIFIER.test(t)?new dn(`.${t}`):Kc`[${t}]`}pt.getProperty=Jm});var Xo=ve(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.ValueScope=pr.ValueScopeName=pr.Scope=pr.varKinds=pr.UsedValueState=void 0;var kr=_a(),Jo=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},Qo;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Qo=pr.UsedValueState||(pr.UsedValueState={}));pr.varKinds={const:new kr.Name("const"),let:new kr.Name("let"),var:new kr.Name("var")};var Aa=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof kr.Name?r:this.name(r)}name(r){return new kr.Name(this._newName(r))}_newName(r){let e=this._names[r]||this._nameGroup(r);return`${r}${e.index++}`}_nameGroup(r){var e,n;if(((n=(e=this._parent)===null||e===void 0?void 0:e._prefixes)===null||n===void 0?void 0:n.has(r))||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};pr.Scope=Aa;var Ea=class extends kr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=kr._`.${new kr.Name(e)}[${n}]`}};pr.ValueScopeName=Ea;var Qm=kr._`\n`,Zo=class extends Aa{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Qm:kr.nil}}get(){return this._scope}name(r){return new Ea(r,this._newName(r))}value(r,e){var n;if(e.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(r),{prefix:a}=s,l=(n=e.key)!==null&&n!==void 0?n:e.ref,c=this._values[a];if(c){let m=c.get(l);if(m)return m}else c=this._values[a]=new Map;c.set(l,s);let f=this._scope[a]||(this._scope[a]=[]),g=f.length;return f[g]=e.ref,s.setValue(e,{property:a,itemIndex:g}),s}getValue(r,e){let n=this._values[r];if(!!n)return n.get(e)}scopeRefs(r,e=this._values){return this._reduceValues(e,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return kr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},e,n)}_reduceValues(r,e,n={},s){let a=kr.nil;for(let l in r){let c=r[l];if(!c)continue;let f=n[l]=n[l]||new Map;c.forEach(g=>{if(f.has(g))return;f.set(g,Qo.Started);let m=e(g);if(m){let v=this.opts.es5?pr.varKinds.var:pr.varKinds.const;a=kr._`${a}${v} ${g} = ${m};${this.opts._n}`}else if(m=s==null?void 0:s(g))a=kr._`${a}${m}${this.opts._n}`;else throw new Jo(g);f.set(g,Qo.Completed)})}return a}};pr.ValueScope=Zo});var Ve=ve(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.or=Be.and=Be.not=Be.CodeGen=Be.operators=Be.varKinds=Be.ValueScopeName=Be.ValueScope=Be.Scope=Be.Name=Be.stringify=Be.getProperty=Be.nil=Be.strConcat=Be.str=Be._=void 0;var We=_a(),Xr=Xo(),hi=_a();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return hi._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return hi.str}});Object.defineProperty(Be,"strConcat",{enumerable:!0,get:function(){return hi.strConcat}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return hi.nil}});Object.defineProperty(Be,"getProperty",{enumerable:!0,get:function(){return hi.getProperty}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return hi.stringify}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return hi.Name}});var Pa=Xo();Object.defineProperty(Be,"Scope",{enumerable:!0,get:function(){return Pa.Scope}});Object.defineProperty(Be,"ValueScope",{enumerable:!0,get:function(){return Pa.ValueScope}});Object.defineProperty(Be,"ValueScopeName",{enumerable:!0,get:function(){return Pa.ValueScopeName}});Object.defineProperty(Be,"varKinds",{enumerable:!0,get:function(){return Pa.varKinds}});Be.operators={GT:new We._Code(">"),GTE:new We._Code(">="),LT:new We._Code("<"),LTE:new We._Code("<="),EQ:new We._Code("==="),NEQ:new We._Code("!=="),NOT:new We._Code("!"),OR:new We._Code("||"),AND:new We._Code("&&"),ADD:new We._Code("+")};var On=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Yo=class extends On{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Xr.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=Ki(this.rhs,r,e)),this}get names(){return this.rhs instanceof We._CodeOrName?this.rhs.names:{}}},Sa=class extends On{constructor(r,e,n){super(),this.lhs=r,this.rhs=e,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,e){if(!(this.lhs instanceof We.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Ki(this.rhs,r,e),this}get names(){let r=this.lhs instanceof We.Name?{}:{...this.lhs.names};return Ta(r,this.rhs)}},el=class extends Sa{constructor(r,e,n,s){super(r,n,s),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},tl=class extends On{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},rl=class extends On{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},nl=class extends On{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},il=class extends On{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,e){return this.code=Ki(this.code,r,e),this}get names(){return this.code instanceof We._CodeOrName?this.code.names:{}}},Ss=class extends On{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((e,n)=>e+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,e=r.length;for(;e--;){let n=r[e].optimizeNodes();Array.isArray(n)?r.splice(e,1,...n):n?r[e]=n:r.splice(e,1)}return r.length>0?this:void 0}optimizeNames(r,e){let{nodes:n}=this,s=n.length;for(;s--;){let a=n[s];a.optimizeNames(r,e)||(Zm(r,a.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>pi(r,e.names),{})}},qn=class extends Ss{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},sl=class extends Ss{},Gi=class extends qn{};Gi.kind="else";var Yr=class extends qn{constructor(r,e){super(e),this.condition=r}render(r){let e=`if(${this.condition})`+super.render(r);return this.else&&(e+="else "+this.else.render(r)),e}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let e=this.else;if(e){let n=e.optimizeNodes();e=this.else=Array.isArray(n)?new Gi(n):n}if(e)return r===!1?e instanceof Yr?e:e.nodes:this.nodes.length?this:new Yr(Jc(r),e instanceof Yr?[e]:e.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,e){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,e),!!(super.optimizeNames(r,e)||this.else))return this.condition=Ki(this.condition,r,e),this}get names(){let r=super.names;return Ta(r,this.condition),this.else&&pi(r,this.else.names),r}};Yr.kind="if";var fi=class extends qn{};fi.kind="for";var al=class extends fi{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iteration=Ki(this.iteration,r,e),this}get names(){return pi(super.names,this.iteration.names)}},ol=class extends fi{constructor(r,e,n,s){super(),this.varKind=r,this.name=e,this.from=n,this.to=s}render(r){let e=r.es5?Xr.varKinds.var:this.varKind,{name:n,from:s,to:a}=this;return`for(${e} ${n}=${s}; ${n}<${a}; ${n}++)`+super.render(r)}get names(){let r=Ta(super.names,this.from);return Ta(r,this.to)}},Ca=class extends fi{constructor(r,e,n,s){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=s}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,e){if(!!super.optimizeNames(r,e))return this.iterable=Ki(this.iterable,r,e),this}get names(){return pi(super.names,this.iterable.names)}},Cs=class extends qn{constructor(r,e,n){super(),this.name=r,this.args=e,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};Cs.kind="func";var Ts=class extends Ss{render(r){return"return "+super.render(r)}};Ts.kind="return";var ll=class extends qn{render(r){let e="try"+super.render(r);return this.catch&&(e+=this.catch.render(r)),this.finally&&(e+=this.finally.render(r)),e}optimizeNodes(){var r,e;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(e=this.finally)===null||e===void 0||e.optimizeNodes(),this}optimizeNames(r,e){var n,s;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(s=this.finally)===null||s===void 0||s.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&pi(r,this.catch.names),this.finally&&pi(r,this.finally.names),r}},Ps=class extends qn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Ps.kind="catch";var Ds=class extends qn{render(r){return"finally"+super.render(r)}};Ds.kind="finally";var ul=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
|
|
2
|
+
`:""},this._extScope=r,this._scope=new Xr.Scope({parent:r}),this._nodes=[new sl]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,e){let n=this._extScope.value(r,e);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,e){return this._extScope.getValue(r,e)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,e,n,s){let a=this._scope.toName(e);return n!==void 0&&s&&(this._constants[a.str]=n),this._leafNode(new Yo(r,a,n)),a}const(r,e,n){return this._def(Xr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Xr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Xr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Sa(r,e,n))}add(r,e){return this._leafNode(new el(r,Be.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==We.nil&&this._leafNode(new il(r)),this}object(...r){let e=["{"];for(let[n,s]of r)e.length>1&&e.push(","),e.push(n),(n!==s||this.opts.es5)&&(e.push(":"),We.addCodeArg(e,s));return e.push("}"),new We._Code(e)}if(r,e,n){if(this._blockNode(new Yr(r)),e&&n)this.code(e).else().code(n).endIf();else if(e)this.code(e).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new Yr(r))}else(){return this._elseNode(new Gi)}endIf(){return this._endBlockNode(Yr,Gi)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new al(r),e)}forRange(r,e,n,s,a=this.opts.es5?Xr.varKinds.var:Xr.varKinds.let){let l=this._scope.toName(r);return this._for(new ol(a,l,e,n),()=>s(l))}forOf(r,e,n,s=Xr.varKinds.const){let a=this._scope.toName(r);if(this.opts.es5){let l=e instanceof We.Name?e:this.var("_arr",e);return this.forRange("_i",0,We._`${l}.length`,c=>{this.var(a,We._`${l}[${c}]`),n(a)})}return this._for(new Ca("of",s,a,e),()=>n(a))}forIn(r,e,n,s=this.opts.es5?Xr.varKinds.var:Xr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,We._`Object.keys(${e})`,n);let a=this._scope.toName(r);return this._for(new Ca("in",s,a,e),()=>n(a))}endFor(){return this._endBlockNode(fi)}label(r){return this._leafNode(new tl(r))}break(r){return this._leafNode(new rl(r))}return(r){let e=new Ts;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ts)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new ll;if(this._blockNode(s),this.code(r),e){let a=this.name("e");this._currNode=s.catch=new Ps(a),e(a)}return n&&(this._currNode=s.finally=new Ds,this.code(n)),this._endBlockNode(Ps,Ds)}throw(r){return this._leafNode(new nl(r))}block(r,e){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(e),this}endBlock(r){let e=this._blockStarts.pop();if(e===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-e;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=e,this}func(r,e=We.nil,n,s){return this._blockNode(new Cs(r,e,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(Cs)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,e){let n=this._currNode;if(n instanceof r||e&&n instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${r.kind}/${e.kind}`:r.kind}"`)}_elseNode(r){let e=this._currNode;if(!(e instanceof Yr))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let e=this._nodes;e[e.length-1]=r}};Be.CodeGen=ul;function pi(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Ta(t,r){return r instanceof We._CodeOrName?pi(t,r.names):t}function Ki(t,r,e){if(t instanceof We.Name)return n(t);if(!s(t))return t;return new We._Code(t._items.reduce((a,l)=>(l instanceof We.Name&&(l=n(l)),l instanceof We._Code?a.push(...l._items):a.push(l),a),[]));function n(a){let l=e[a.str];return l===void 0||r[a.str]!==1?a:(delete r[a.str],l)}function s(a){return a instanceof We._Code&&a._items.some(l=>l instanceof We.Name&&r[l.str]===1&&e[l.str]!==void 0)}}function Zm(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function Jc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:We._`!${cl(t)}`}Be.not=Jc;var Xm=Qc(Be.operators.AND);function Ym(...t){return t.reduce(Xm)}Be.and=Ym;var eg=Qc(Be.operators.OR);function tg(...t){return t.reduce(eg)}Be.or=tg;function Qc(t){return(r,e)=>r===We.nil?e:e===We.nil?r:We._`${cl(r)} ${t} ${cl(e)}`}function cl(t){return t instanceof We.Name?t:We._`(${t})`}});var en=ve(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var tr=Ve(),rg={data:new tr.Name("data"),valCxt:new tr.Name("valCxt"),dataPath:new tr.Name("dataPath"),parentData:new tr.Name("parentData"),parentDataProperty:new tr.Name("parentDataProperty"),rootData:new tr.Name("rootData"),dynamicAnchors:new tr.Name("dynamicAnchors"),vErrors:new tr.Name("vErrors"),errors:new tr.Name("errors"),this:new tr.Name("this"),self:new tr.Name("self"),scope:new tr.Name("scope"),json:new tr.Name("json"),jsonPos:new tr.Name("jsonPos"),jsonLen:new tr.Name("jsonLen"),jsonPart:new tr.Name("jsonPart")};fl.default=rg});var Fs=ve(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.extendErrors=rr.resetErrorsCount=rr.reportExtraError=rr.reportError=rr.keyword$DataError=rr.keywordError=void 0;var Je=Ve(),nr=en();rr.keywordError={message:({keyword:t})=>Je.str`should pass "${t}" keyword validation`};rr.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Je.str`"${t}" keyword must be ${r} ($data)`:Je.str`"${t}" keyword is invalid ($data)`};function ng(t,r=rr.keywordError,e){let{it:n}=t,{gen:s,compositeRule:a,allErrors:l}=n,c=Yc(t,r);e??(a||l)?Zc(s,c):Xc(n,Je._`[${c}]`)}rr.reportError=ng;function ig(t,r=rr.keywordError){let{it:e}=t,{gen:n,compositeRule:s,allErrors:a}=e,l=Yc(t,r);Zc(n,l),s||a||Xc(e,nr.default.vErrors)}rr.reportExtraError=ig;function sg(t,r){t.assign(nr.default.errors,r),t.if(Je._`${nr.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Je._`${nr.default.vErrors}.length`,r),()=>t.assign(nr.default.vErrors,null)))}rr.resetErrorsCount=sg;function ag({gen:t,keyword:r,schemaValue:e,data:n,errsCount:s,it:a}){if(s===void 0)throw new Error("ajv implementation error");let l=t.name("err");t.forRange("i",s,nr.default.errors,c=>{t.const(l,Je._`${nr.default.vErrors}[${c}]`),t.if(Je._`${l}.dataPath === undefined`,()=>t.assign(Je._`${l}.dataPath`,Je.strConcat(nr.default.dataPath,a.errorPath))),t.assign(Je._`${l}.schemaPath`,Je.str`${a.errSchemaPath}/${r}`),a.opts.verbose&&(t.assign(Je._`${l}.schema`,e),t.assign(Je._`${l}.data`,n))})}rr.extendErrors=ag;function Zc(t,r){let e=t.const("err",r);t.if(Je._`${nr.default.vErrors} === null`,()=>t.assign(nr.default.vErrors,Je._`[${e}]`),Je._`${nr.default.vErrors}.push(${e})`),t.code(Je._`${nr.default.errors}++`)}function Xc(t,r){let{gen:e,validateName:n,schemaEnv:s}=t;s.$async?e.throw(Je._`new ${t.ValidationError}(${r})`):(e.assign(Je._`${n}.errors`,r),e.return(!1))}var mn={keyword:new Je.Name("keyword"),schemaPath:new Je.Name("schemaPath"),params:new Je.Name("params"),propertyName:new Je.Name("propertyName"),message:new Je.Name("message"),schema:new Je.Name("schema"),parentSchema:new Je.Name("parentSchema"),instancePath:new Je.Name("instancePath")};function Yc(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Je._`{}`:(n.jtd&&!n.ajvErrors?og:lg)(t,r)}function og(t,{message:r}){let{gen:e,keyword:n,it:s}=t,{errorPath:a,errSchemaPath:l,opts:c}=s,f=[[mn.instancePath,Je.strConcat(nr.default.dataPath,a)],[mn.schemaPath,Je.str`${l}/${n}`]];return c.messages&&f.push([mn.message,typeof r=="function"?r(t):r]),e.object(...f)}function lg(t,r){let{gen:e,keyword:n,data:s,schemaValue:a,it:l}=t,{topSchemaRef:c,schemaPath:f,errorPath:g,errSchemaPath:m,propertyName:v,opts:A}=l,{params:k,message:S}=r,I=[[mn.keyword,n],[nr.default.dataPath,Je.strConcat(nr.default.dataPath,g)],[mn.schemaPath,Je.str`${m}/${n}`],[mn.params,typeof k=="function"?k(t):k||Je._`{}`]];return v&&I.push([mn.propertyName,v]),A.messages&&I.push([mn.message,typeof S=="function"?S(t):S]),A.verbose&&I.push([mn.schema,a],[mn.parentSchema,Je._`${c}${f}`],[nr.default.data,s]),e.object(...I)}});var tf=ve(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.boolOrEmptySchema=Wi.topBoolOrEmptySchema=void 0;var ug=Fs(),cg=Ve(),fg=en(),pg={message:"boolean schema is false"};function hg(t){let{gen:r,schema:e,validateName:n}=t;e===!1?ef(t,!1):typeof e=="object"&&e.$async===!0?r.return(fg.default.data):(r.assign(cg._`${n}.errors`,null),r.return(!0))}Wi.topBoolOrEmptySchema=hg;function dg(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),ef(t)):e.var(r,!0)}Wi.boolOrEmptySchema=dg;function ef(t,r){let{gen:e,data:n}=t,s={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};ug.reportError(s,pg,r)}});var nf=ve(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.assignDefaults=void 0;var Ji=Ve(),mg=Ir();function gg(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let s in e)rf(t,s,e[s].default);else r==="array"&&Array.isArray(n)&&n.forEach((s,a)=>rf(t,a,s.default))}Da.assignDefaults=gg;function rf(t,r,e){let{gen:n,compositeRule:s,data:a,opts:l}=t;if(e===void 0)return;let c=Ji._`${a}${Ji.getProperty(r)}`;if(s){mg.checkStrictMode(t,`default is ignored for: ${c}`);return}let f=Ji._`${c} === undefined`;l.useDefaults==="empty"&&(f=Ji._`${f} || ${c} === null || ${c} === ""`),n.if(f,Ji._`${c} = ${Ji.stringify(e)}`)}});var mi=ve(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.applySubschema=di.Type=void 0;var yg=Ir(),sf=At(),ir=Ve(),af;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(af=di.Type||(di.Type={}));function bg(t,r,e){let n=wg(t,r);vg(n,t,r),$g(n,r);let s={...t,...n,items:void 0,props:void 0};return yg.subschemaCode(s,e),s}di.applySubschema=bg;function wg(t,{keyword:r,schemaProp:e,schema:n,schemaPath:s,errSchemaPath:a,topSchemaRef:l}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let c=t.schema[r];return e===void 0?{schema:c,schemaPath:ir._`${t.schemaPath}${ir.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:c[e],schemaPath:ir._`${t.schemaPath}${ir.getProperty(r)}${ir.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${sf.escapeFragment(e)}`}}if(n!==void 0){if(s===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}function vg(t,r,{dataProp:e,dataPropType:n,data:s,dataTypes:a,propertyName:l}){if(s!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=r;if(e!==void 0){let{errorPath:g,dataPathArr:m,opts:v}=r,A=c.let("data",ir._`${r.data}${ir.getProperty(e)}`,!0);f(A),t.errorPath=ir.str`${g}${xg(e,n,v.jsPropertySyntax)}`,t.parentDataProperty=ir._`${e}`,t.dataPathArr=[...m,t.parentDataProperty]}if(s!==void 0){let g=s instanceof ir.Name?s:c.let("data",s,!0);f(g),l!==void 0&&(t.propertyName=l)}a&&(t.dataTypes=a);function f(g){t.data=g,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,g]}}function $g(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:s,allErrors:a}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),a!==void 0&&(t.allErrors=a),t.jtdDiscriminator=r,t.jtdMetadata=e}function xg(t,r,e){if(t instanceof ir.Name){let n=r===af.Num;return e?n?ir._`"[" + ${t} + "]"`:ir._`"['" + ${t} + "']"`:n?ir._`"/" + ${t}`:ir._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?ir.getProperty(t).toString():"/"+sf.escapeJsonPointer(t)}});var tn=ve(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;var xt=Ve(),of=At(),kg=mi(),Hn=en();function _g(t,r){let{gen:e,data:n,it:s}=t;e.if(hl(e,n,r,s.opts.ownProperties),()=>{t.setParams({missingProperty:xt._`${r}`},!0),t.error()})}ht.checkReportMissingProp=_g;function Ag({gen:t,data:r,it:{opts:e}},n,s){return xt.or(...n.map(a=>xt.and(hl(t,r,a,e.ownProperties),xt._`${s} = ${a}`)))}ht.checkMissingProp=Ag;function Eg(t,r){t.setParams({missingProperty:r},!0),t.error()}ht.reportMissingProp=Eg;function lf(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:xt._`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=lf;function pl(t,r,e){return xt._`${lf(t)}.call(${r}, ${e})`}ht.isOwnProperty=pl;function Sg(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} !== undefined`;return n?xt._`${s} && ${pl(t,r,e)}`:s}ht.propertyInData=Sg;function hl(t,r,e,n){let s=xt._`${r}${xt.getProperty(e)} === undefined`;return n?xt.or(s,xt.not(pl(t,r,e))):s}ht.noPropertyInData=hl;function uf(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}ht.allSchemaProperties=uf;function Cg(t,r){return uf(r).filter(e=>!of.alwaysValidSchema(t,r[e]))}ht.schemaProperties=Cg;function Tg({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:s,errorPath:a},it:l},c,f,g){let m=g?xt._`${t}, ${r}, ${n}${s}`:r,v=[[Hn.default.dataPath,xt.strConcat(Hn.default.dataPath,a)],[Hn.default.parentData,l.parentData],[Hn.default.parentDataProperty,l.parentDataProperty],[Hn.default.rootData,Hn.default.rootData]];l.opts.dynamicRef&&v.push([Hn.default.dynamicAnchors,Hn.default.dynamicAnchors]);let A=xt._`${m}, ${e.object(...v)}`;return f!==xt.nil?xt._`${c}.call(${f}, ${A})`:xt._`${c}(${A})`}ht.callValidateCode=Tg;function Pg(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:xt._`new RegExp(${r}, "u")`})}ht.usePattern=Pg;function Dg(t){let{gen:r,data:e,keyword:n,it:s}=t,a=r.name("valid");if(s.allErrors){let c=r.let("valid",!0);return l(()=>r.assign(c,!1)),c}return r.var(a,!0),l(()=>r.break()),a;function l(c){let f=r.const("len",xt._`${e}.length`);r.forRange("i",0,f,g=>{t.subschema({keyword:n,dataProp:g,dataPropType:kg.Type.Num},a),r.if(xt.not(a),c)})}}ht.validateArray=Dg;function Fg(t){let{gen:r,schema:e,keyword:n,it:s}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(f=>of.alwaysValidSchema(s,f))&&!s.opts.unevaluated)return;let l=r.let("valid",!1),c=r.name("_valid");r.block(()=>e.forEach((f,g)=>{let m=t.subschema({keyword:n,schemaProp:g,compositeRule:!0},c);r.assign(l,xt._`${l} || ${c}`),t.mergeValidEvaluated(m,c)||r.if(xt.not(l))})),t.result(l,()=>t.reset(),()=>t.error(!0))}ht.validateUnion=Fg});var hf=ve(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.keywordCode=void 0;var Ig=Is(),Og=Fs(),qg=tn(),hr=Ve(),gi=en();function Rg(t,r,e,n){let s=new Ig.default(t,e,r);"code"in e?e.code(s,n):s.$data&&e.validate?cf(s,e):"macro"in e?Ng(s,e):(e.compile||e.validate)&&cf(s,e)}Fa.keywordCode=Rg;function Ng(t,r){let{gen:e,keyword:n,schema:s,parentSchema:a,it:l}=t,c=r.macro.call(l.self,s,a,l),f=pf(e,n,c);l.opts.validateSchema!==!1&&l.self.validateSchema(c,!0);let g=e.name("valid");t.subschema({schema:c,schemaPath:hr.nil,errSchemaPath:`${l.errSchemaPath}/${n}`,topSchemaRef:f,compositeRule:!0},g),t.pass(g,()=>t.error(!0))}function cf(t,r){var e;let{gen:n,keyword:s,schema:a,parentSchema:l,$data:c,it:f}=t;zg(f,r);let g=!c&&r.compile?r.compile.call(f.self,a,l,f):r.validate,m=pf(n,s,g),v=n.let("valid");t.block$data(v,A),t.ok((e=r.valid)!==null&&e!==void 0?e:v);function A(){if(r.errors===!1)I(),r.modifying&&ff(t),q(()=>t.error());else{let j=r.async?k():S();r.modifying&&ff(t),q(()=>Lg(t,j))}}function k(){let j=n.let("ruleErrs",null);return n.try(()=>I(hr._`await `),X=>n.assign(v,!1).if(hr._`${X} instanceof ${f.ValidationError}`,()=>n.assign(j,hr._`${X}.errors`),()=>n.throw(X))),j}function S(){let j=hr._`${m}.errors`;return n.assign(j,null),I(hr.nil),j}function I(j=r.async?hr._`await `:hr.nil){let X=f.opts.passContext?gi.default.this:gi.default.self,le=!("compile"in r&&!c||r.schema===!1);n.assign(v,hr._`${j}${qg.callValidateCode(t,m,X,le)}`,r.modifying)}function q(j){var X;n.if(hr.not((X=r.valid)!==null&&X!==void 0?X:v),j)}}function ff(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,hr._`${n.parentData}[${n.parentDataProperty}]`))}function Lg(t,r){let{gen:e}=t;e.if(hr._`Array.isArray(${r})`,()=>{e.assign(gi.default.vErrors,hr._`${gi.default.vErrors} === null ? ${r} : ${gi.default.vErrors}.concat(${r})`).assign(gi.default.errors,hr._`${gi.default.vErrors}.length`),Og.extendErrors(t)},()=>t.error())}function zg({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function pf(t,r,e){if(e===void 0)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword",typeof e=="function"?{ref:e}:{ref:e,code:hr.stringify(e)})}});var bf=ve(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.schemaKeywords=void 0;var dl=Go(),df=Qi(),Mg=nf(),yf=hf(),jg=At(),Vg=Ir(),Bg=Ve(),Ug=en();function Hg(t,r,e,n){let{gen:s,schema:a,data:l,allErrors:c,opts:f,self:g}=t,{RULES:m}=g;if(a.$ref&&(f.ignoreKeywordsWithRef||!jg.schemaHasRulesButRef(a,m))){s.block(()=>yf.keywordCode(t,"$ref",m.all.$ref.definition));return}f.jtd||Gg(t,r),s.block(()=>{for(let A of m.rules)v(A);v(m.post)});function v(A){!dl.shouldUseGroup(a,A)||(A.type?(s.if(df.checkDataType(A.type,l,f.strict)),mf(t,A),r.length===1&&r[0]===A.type&&e&&(s.else(),df.reportTypeError(t)),s.endIf()):mf(t,A),c||s.if(Bg._`${Ug.default.errors} === ${n||0}`))}}Ia.schemaKeywords=Hg;function mf(t,r){let{gen:e,schema:n,opts:{useDefaults:s}}=t;s&&Mg.assignDefaults(t,r.type),e.block(()=>{for(let a of r.rules)dl.shouldUseRule(n,a)&&yf.keywordCode(t,a.keyword,a.definition,r.type)})}function Gg(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(Kg(t,r),t.opts.allowUnionTypes||Wg(t,r),Jg(t,t.dataTypes))}function Kg(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{gf(t.dataTypes,e)||ml(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>gf(r,e))}}function Wg(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&ml(t,"use allowUnionTypes to allow union type keyword")}function Jg(t,r){let e=t.self.RULES.all;for(let n in e){let s=e[n];if(typeof s=="object"&&dl.shouldUseRule(t.schema,s)){let{type:a}=s.definition;a.length&&!a.some(l=>Qg(r,l))&&ml(t,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function Qg(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function gf(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function ml(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,Vg.checkStrictMode(t,r,t.opts.strictTypes)}});var Os=ve((lx,wf)=>{"use strict";wf.exports=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,s,a;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(s=n;s--!==0;)if(!t(r[s],e[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(a=Object.keys(r),n=a.length,n!==Object.keys(e).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[s]))return!1;for(s=n;s--!==0;){var l=a[s];if(!t(r[l],e[l]))return!1}return!0}return r!==r&&e!==e}});var $f=ve((ux,vf)=>{"use strict";var Gn=vf.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},s=e.post||function(){};Oa(r,n,s,t,"",t)};Gn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Gn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Gn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Gn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Oa(t,r,e,n,s,a,l,c,f,g){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,s,a,l,c,f,g);for(var m in n){var v=n[m];if(Array.isArray(v)){if(m in Gn.arrayKeywords)for(var A=0;A<v.length;A++)Oa(t,r,e,v[A],s+"/"+m+"/"+A,a,s,m,n,A)}else if(m in Gn.propsKeywords){if(v&&typeof v=="object")for(var k in v)Oa(t,r,e,v[k],s+"/"+m+"/"+Zg(k),a,s,m,n,k)}else(m in Gn.keywords||t.allKeys&&!(m in Gn.skipKeywords))&&Oa(t,r,e,v,s+"/"+m,a,s,m,n)}e(n,s,a,l,c,f,g)}}function Zg(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var gl=ve((qa,xf)=>{(function(t,r){typeof qa=="object"&&typeof xf<"u"?r(qa):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(qa,function(t){"use strict";function r(){for(var B=arguments.length,O=Array(B),Q=0;Q<B;Q++)O[Q]=arguments[Q];if(O.length>1){O[0]=O[0].slice(0,-1);for(var re=O.length-1,se=1;se<re;++se)O[se]=O[se].slice(1,-1);return O[re]=O[re].slice(1),O.join("")}else return O[0]}function e(B){return"(?:"+B+")"}function n(B){return B===void 0?"undefined":B===null?"null":Object.prototype.toString.call(B).split(" ").pop().split("]").shift().toLowerCase()}function s(B){return B.toUpperCase()}function a(B){return B!=null?B instanceof Array?B:typeof B.length!="number"||B.split||B.setInterval||B.call?[B]:Array.prototype.slice.call(B):[]}function l(B,O){var Q=B;if(O)for(var re in O)Q[re]=O[re];return Q}function c(B){var O="[A-Za-z]",Q="[\\x0D]",re="[0-9]",se="[\\x22]",we=r(re,"[A-Fa-f]"),Ce="[\\x0A]",ze="[\\x20]",Ke=e(e("%[EFef]"+we+"%"+we+we+"%"+we+we)+"|"+e("%[89A-Fa-f]"+we+"%"+we+we)+"|"+e("%"+we+we)),yt="[\\:\\/\\?\\#\\[\\]\\@]",Re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",at=r(yt,Re),ut=B?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ot=B?"[\\uE000-\\uF8FF]":"[]",He=r(O,re,"[\\-\\.\\_\\~]",ut),ct=e(O+r(O,re,"[\\+\\-\\.]")+"*"),Ye=e(e(Ke+"|"+r(He,Re,"[\\:]"))+"*"),Or=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("[1-9]"+re)+"|"+re),Nt=e(e("25[0-5]")+"|"+e("2[0-4]"+re)+"|"+e("1"+re+re)+"|"+e("0?[1-9]"+re)+"|0?0?"+re),Yt=e(Nt+"\\."+Nt+"\\."+Nt+"\\."+Nt),it=e(we+"{1,4}"),jt=e(e(it+"\\:"+it)+"|"+Yt),Gt=e(e(it+"\\:")+"{6}"+jt),wr=e("\\:\\:"+e(it+"\\:")+"{5}"+jt),Gr=e(e(it)+"?\\:\\:"+e(it+"\\:")+"{4}"+jt),vr=e(e(e(it+"\\:")+"{0,1}"+it)+"?\\:\\:"+e(it+"\\:")+"{3}"+jt),ln=e(e(e(it+"\\:")+"{0,2}"+it)+"?\\:\\:"+e(it+"\\:")+"{2}"+jt),En=e(e(e(it+"\\:")+"{0,3}"+it)+"?\\:\\:"+it+"\\:"+jt),Sn=e(e(e(it+"\\:")+"{0,4}"+it)+"?\\:\\:"+jt),Kr=e(e(e(it+"\\:")+"{0,5}"+it)+"?\\:\\:"+it),Wr=e(e(e(it+"\\:")+"{0,6}"+it)+"?\\:\\:"),Lt=e([Gt,wr,Gr,vr,ln,En,Sn,Kr,Wr].join("|")),$r=e(e(He+"|"+Ke)+"+"),un=e(Lt+"\\%25"+$r),qr=e(Lt+e("\\%25|\\%(?!"+we+"{2})")+$r),Ii=e("[vV]"+we+"+\\."+r(He,Re,"[\\:]")+"+"),ti=e("\\["+e(qr+"|"+Lt+"|"+Ii)+"\\]"),i=e(e(Ke+"|"+r(He,Re))+"*"),ue=e(ti+"|"+Yt+"(?!"+i+")|"+i),Rr=e(re+"*"),Kt=e(e(Ye+"@")+"?"+ue+e("\\:"+Rr)+"?"),Jr=e(Ke+"|"+r(He,Re,"[\\:\\@]")),$=e(Jr+"*"),cn=e(Jr+"+"),Cn=e(e(Ke+"|"+r(He,Re,"[\\@]"))+"+"),Nr=e(e("\\/"+$)+"*"),Tn=e("\\/"+e(cn+Nr)+"?"),Oi=e(Cn+Nr),je=e(cn+Nr),Vt="(?!"+Jr+")",ps=e(Nr+"|"+Tn+"|"+Oi+"|"+je+"|"+Vt),Qr=e(e(Jr+"|"+r("[\\/\\?]",ot))+"*"),fn=e(e(Jr+"|[\\/\\?]")+"*"),ri=e(e("\\/\\/"+Kt+Nr)+"|"+Tn+"|"+je+"|"+Vt),Pn=e(ct+"\\:"+ri+e("\\?"+Qr)+"?"+e("\\#"+fn)+"?"),W=e(e("\\/\\/"+Kt+Nr)+"|"+Tn+"|"+Oi+"|"+Vt),hs=e(W+e("\\?"+Qr)+"?"+e("\\#"+fn)+"?"),qi=e(Pn+"|"+hs),ds=e(ct+"\\:"+ri+e("\\?"+Qr)+"?"),ni="^("+ct+")\\:"+e(e("\\/\\/("+e("("+Ye+")@")+"?("+ue+")"+e("\\:("+Rr+")")+"?)")+"?("+Nr+"|"+Tn+"|"+je+"|"+Vt+")")+e("\\?("+Qr+")")+"?"+e("\\#("+fn+")")+"?$",oa="^(){0}"+e(e("\\/\\/("+e("("+Ye+")@")+"?("+ue+")"+e("\\:("+Rr+")")+"?)")+"?("+Nr+"|"+Tn+"|"+Oi+"|"+Vt+")")+e("\\?("+Qr+")")+"?"+e("\\#("+fn+")")+"?$",Ao="^("+ct+")\\:"+e(e("\\/\\/("+e("("+Ye+")@")+"?("+ue+")"+e("\\:("+Rr+")")+"?)")+"?("+Nr+"|"+Tn+"|"+je+"|"+Vt+")")+e("\\?("+Qr+")")+"?$",Ri="^"+e("\\#("+fn+")")+"?$",Zr="^"+e("("+Ye+")@")+"?("+ue+")"+e("\\:("+Rr+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",O,re,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",He,Re),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",He,Re),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",He,Re),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",He,Re),"g"),NOT_QUERY:new RegExp(r("[^\\%]",He,Re,"[\\:\\@\\/\\?]",ot),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",He,Re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",He,Re),"g"),UNRESERVED:new RegExp(He,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",He,at),"g"),PCT_ENCODED:new RegExp(Ke,"g"),IPV4ADDRESS:new RegExp("^("+Yt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Lt+")"+e(e("\\%25|\\%(?!"+we+"{2})")+"("+$r+")")+"?\\]?$")}}var f=c(!1),g=c(!0),m=function(){function B(O,Q){var re=[],se=!0,we=!1,Ce=void 0;try{for(var ze=O[Symbol.iterator](),Ke;!(se=(Ke=ze.next()).done)&&(re.push(Ke.value),!(Q&&re.length===Q));se=!0);}catch(yt){we=!0,Ce=yt}finally{try{!se&&ze.return&&ze.return()}finally{if(we)throw Ce}}return re}return function(O,Q){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return B(O,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(B){if(Array.isArray(B)){for(var O=0,Q=Array(B.length);O<B.length;O++)Q[O]=B[O];return Q}else return Array.from(B)},A=2147483647,k=36,S=1,I=26,q=38,j=700,X=72,le=128,be="-",me=/^xn--/,Y=/[^\0-\x7E]/,pe=/[\x2E\u3002\uFF0E\uFF61]/g,xe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$e=k-S,Le=Math.floor,Pe=String.fromCharCode;function De(B){throw new RangeError(xe[B])}function ge(B,O){for(var Q=[],re=B.length;re--;)Q[re]=O(B[re]);return Q}function Te(B,O){var Q=B.split("@"),re="";Q.length>1&&(re=Q[0]+"@",B=Q[1]),B=B.replace(pe,".");var se=B.split("."),we=ge(se,O).join(".");return re+we}function Qe(B){for(var O=[],Q=0,re=B.length;Q<re;){var se=B.charCodeAt(Q++);if(se>=55296&&se<=56319&&Q<re){var we=B.charCodeAt(Q++);(we&64512)==56320?O.push(((se&1023)<<10)+(we&1023)+65536):(O.push(se),Q--)}else O.push(se)}return O}var ne=function(O){return String.fromCodePoint.apply(String,v(O))},bt=function(O){return O-48<10?O-22:O-65<26?O-65:O-97<26?O-97:k},Ze=function(O,Q){return O+22+75*(O<26)-((Q!=0)<<5)},wt=function(O,Q,re){var se=0;for(O=re?Le(O/j):O>>1,O+=Le(O/Q);O>$e*I>>1;se+=k)O=Le(O/$e);return Le(se+($e+1)*O/(O+q))},rt=function(O){var Q=[],re=O.length,se=0,we=le,Ce=X,ze=O.lastIndexOf(be);ze<0&&(ze=0);for(var Ke=0;Ke<ze;++Ke)O.charCodeAt(Ke)>=128&&De("not-basic"),Q.push(O.charCodeAt(Ke));for(var yt=ze>0?ze+1:0;yt<re;){for(var Re=se,at=1,ut=k;;ut+=k){yt>=re&&De("invalid-input");var ot=bt(O.charCodeAt(yt++));(ot>=k||ot>Le((A-se)/at))&&De("overflow"),se+=ot*at;var He=ut<=Ce?S:ut>=Ce+I?I:ut-Ce;if(ot<He)break;var ct=k-He;at>Le(A/ct)&&De("overflow"),at*=ct}var Ye=Q.length+1;Ce=wt(se-Re,Ye,Re==0),Le(se/Ye)>A-we&&De("overflow"),we+=Le(se/Ye),se%=Ye,Q.splice(se++,0,we)}return String.fromCodePoint.apply(String,Q)},V=function(O){var Q=[];O=Qe(O);var re=O.length,se=le,we=0,Ce=X,ze=!0,Ke=!1,yt=void 0;try{for(var Re=O[Symbol.iterator](),at;!(ze=(at=Re.next()).done);ze=!0){var ut=at.value;ut<128&&Q.push(Pe(ut))}}catch(qr){Ke=!0,yt=qr}finally{try{!ze&&Re.return&&Re.return()}finally{if(Ke)throw yt}}var ot=Q.length,He=ot;for(ot&&Q.push(be);He<re;){var ct=A,Ye=!0,Or=!1,Nt=void 0;try{for(var Yt=O[Symbol.iterator](),it;!(Ye=(it=Yt.next()).done);Ye=!0){var jt=it.value;jt>=se&&jt<ct&&(ct=jt)}}catch(qr){Or=!0,Nt=qr}finally{try{!Ye&&Yt.return&&Yt.return()}finally{if(Or)throw Nt}}var Gt=He+1;ct-se>Le((A-we)/Gt)&&De("overflow"),we+=(ct-se)*Gt,se=ct;var wr=!0,Gr=!1,vr=void 0;try{for(var ln=O[Symbol.iterator](),En;!(wr=(En=ln.next()).done);wr=!0){var Sn=En.value;if(Sn<se&&++we>A&&De("overflow"),Sn==se){for(var Kr=we,Wr=k;;Wr+=k){var Lt=Wr<=Ce?S:Wr>=Ce+I?I:Wr-Ce;if(Kr<Lt)break;var $r=Kr-Lt,un=k-Lt;Q.push(Pe(Ze(Lt+$r%un,0))),Kr=Le($r/un)}Q.push(Pe(Ze(Kr,0))),Ce=wt(we,Gt,He==ot),we=0,++He}}}catch(qr){Gr=!0,vr=qr}finally{try{!wr&&ln.return&&ln.return()}finally{if(Gr)throw vr}}++we,++se}return Q.join("")},U=function(O){return Te(O,function(Q){return me.test(Q)?rt(Q.slice(4).toLowerCase()):Q})},ur=function(O){return Te(O,function(Q){return Y.test(Q)?"xn--"+V(Q):Q})},qt={version:"2.1.0",ucs2:{decode:Qe,encode:ne},decode:rt,encode:V,toASCII:ur,toUnicode:U},vt={};function St(B){var O=B.charCodeAt(0),Q=void 0;return O<16?Q="%0"+O.toString(16).toUpperCase():O<128?Q="%"+O.toString(16).toUpperCase():O<2048?Q="%"+(O>>6|192).toString(16).toUpperCase()+"%"+(O&63|128).toString(16).toUpperCase():Q="%"+(O>>12|224).toString(16).toUpperCase()+"%"+(O>>6&63|128).toString(16).toUpperCase()+"%"+(O&63|128).toString(16).toUpperCase(),Q}function Ct(B){for(var O="",Q=0,re=B.length;Q<re;){var se=parseInt(B.substr(Q+1,2),16);if(se<128)O+=String.fromCharCode(se),Q+=3;else if(se>=194&&se<224){if(re-Q>=6){var we=parseInt(B.substr(Q+4,2),16);O+=String.fromCharCode((se&31)<<6|we&63)}else O+=B.substr(Q,6);Q+=6}else if(se>=224){if(re-Q>=9){var Ce=parseInt(B.substr(Q+4,2),16),ze=parseInt(B.substr(Q+7,2),16);O+=String.fromCharCode((se&15)<<12|(Ce&63)<<6|ze&63)}else O+=B.substr(Q,9);Q+=9}else O+=B.substr(Q,3),Q+=3}return O}function lt(B,O){function Q(re){var se=Ct(re);return se.match(O.UNRESERVED)?se:re}return B.scheme&&(B.scheme=String(B.scheme).replace(O.PCT_ENCODED,Q).toLowerCase().replace(O.NOT_SCHEME,"")),B.userinfo!==void 0&&(B.userinfo=String(B.userinfo).replace(O.PCT_ENCODED,Q).replace(O.NOT_USERINFO,St).replace(O.PCT_ENCODED,s)),B.host!==void 0&&(B.host=String(B.host).replace(O.PCT_ENCODED,Q).toLowerCase().replace(O.NOT_HOST,St).replace(O.PCT_ENCODED,s)),B.path!==void 0&&(B.path=String(B.path).replace(O.PCT_ENCODED,Q).replace(B.scheme?O.NOT_PATH:O.NOT_PATH_NOSCHEME,St).replace(O.PCT_ENCODED,s)),B.query!==void 0&&(B.query=String(B.query).replace(O.PCT_ENCODED,Q).replace(O.NOT_QUERY,St).replace(O.PCT_ENCODED,s)),B.fragment!==void 0&&(B.fragment=String(B.fragment).replace(O.PCT_ENCODED,Q).replace(O.NOT_FRAGMENT,St).replace(O.PCT_ENCODED,s)),B}function Xt(B){return B.replace(/^0*(.*)/,"$1")||"0"}function Mt(B,O){var Q=B.match(O.IPV4ADDRESS)||[],re=m(Q,2),se=re[1];return se?se.split(".").map(Xt).join("."):B}function yr(B,O){var Q=B.match(O.IPV6ADDRESS)||[],re=m(Q,3),se=re[1],we=re[2];if(se){for(var Ce=se.toLowerCase().split("::").reverse(),ze=m(Ce,2),Ke=ze[0],yt=ze[1],Re=yt?yt.split(":").map(Xt):[],at=Ke.split(":").map(Xt),ut=O.IPV4ADDRESS.test(at[at.length-1]),ot=ut?7:8,He=at.length-ot,ct=Array(ot),Ye=0;Ye<ot;++Ye)ct[Ye]=Re[Ye]||at[He+Ye]||"";ut&&(ct[ot-1]=Mt(ct[ot-1],O));var Or=ct.reduce(function(Gt,wr,Gr){if(!wr||wr==="0"){var vr=Gt[Gt.length-1];vr&&vr.index+vr.length===Gr?vr.length++:Gt.push({index:Gr,length:1})}return Gt},[]),Nt=Or.sort(function(Gt,wr){return wr.length-Gt.length})[0],Yt=void 0;if(Nt&&Nt.length>1){var it=ct.slice(0,Nt.index),jt=ct.slice(Nt.index+Nt.length);Yt=it.join(":")+"::"+jt.join(":")}else Yt=ct.join(":");return we&&(Yt+="%"+we),Yt}else return B}var Sr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,br="".match(/(){0}/)[1]===void 0;function Rt(B){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q={},re=O.iri!==!1?g:f;O.reference==="suffix"&&(B=(O.scheme?O.scheme+":":"")+"//"+B);var se=B.match(Sr);if(se){br?(Q.scheme=se[1],Q.userinfo=se[3],Q.host=se[4],Q.port=parseInt(se[5],10),Q.path=se[6]||"",Q.query=se[7],Q.fragment=se[8],isNaN(Q.port)&&(Q.port=se[5])):(Q.scheme=se[1]||void 0,Q.userinfo=B.indexOf("@")!==-1?se[3]:void 0,Q.host=B.indexOf("//")!==-1?se[4]:void 0,Q.port=parseInt(se[5],10),Q.path=se[6]||"",Q.query=B.indexOf("?")!==-1?se[7]:void 0,Q.fragment=B.indexOf("#")!==-1?se[8]:void 0,isNaN(Q.port)&&(Q.port=B.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?se[4]:void 0)),Q.host&&(Q.host=yr(Mt(Q.host,re),re)),Q.scheme===void 0&&Q.userinfo===void 0&&Q.host===void 0&&Q.port===void 0&&!Q.path&&Q.query===void 0?Q.reference="same-document":Q.scheme===void 0?Q.reference="relative":Q.fragment===void 0?Q.reference="absolute":Q.reference="uri",O.reference&&O.reference!=="suffix"&&O.reference!==Q.reference&&(Q.error=Q.error||"URI is not a "+O.reference+" reference.");var we=vt[(O.scheme||Q.scheme||"").toLowerCase()];if(!O.unicodeSupport&&(!we||!we.unicodeSupport)){if(Q.host&&(O.domainHost||we&&we.domainHost))try{Q.host=qt.toASCII(Q.host.replace(re.PCT_ENCODED,Ct).toLowerCase())}catch(Ce){Q.error=Q.error||"Host's domain name can not be converted to ASCII via punycode: "+Ce}lt(Q,f)}else lt(Q,re);we&&we.parse&&we.parse(Q,O)}else Q.error=Q.error||"URI can not be parsed.";return Q}function $n(B,O){var Q=O.iri!==!1?g:f,re=[];return B.userinfo!==void 0&&(re.push(B.userinfo),re.push("@")),B.host!==void 0&&re.push(yr(Mt(String(B.host),Q),Q).replace(Q.IPV6ADDRESS,function(se,we,Ce){return"["+we+(Ce?"%25"+Ce:"")+"]"})),(typeof B.port=="number"||typeof B.port=="string")&&(re.push(":"),re.push(String(B.port))),re.length?re.join(""):void 0}var xn=/^\.\.?\//,kn=/^\/\.(\/|$)/,_e=/^\/\.\.(\/|$)/,Nn=/^\/?(?:.|\n)*?(?=\/|$)/;function Cr(B){for(var O=[];B.length;)if(B.match(xn))B=B.replace(xn,"");else if(B.match(kn))B=B.replace(kn,"/");else if(B.match(_e))B=B.replace(_e,"/"),O.pop();else if(B==="."||B==="..")B="";else{var Q=B.match(Nn);if(Q){var re=Q[0];B=B.slice(re.length),O.push(re)}else throw new Error("Unexpected dot segment condition")}return O.join("")}function Ee(B){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=O.iri?g:f,re=[],se=vt[(O.scheme||B.scheme||"").toLowerCase()];if(se&&se.serialize&&se.serialize(B,O),B.host&&!Q.IPV6ADDRESS.test(B.host)){if(O.domainHost||se&&se.domainHost)try{B.host=O.iri?qt.toUnicode(B.host):qt.toASCII(B.host.replace(Q.PCT_ENCODED,Ct).toLowerCase())}catch(ze){B.error=B.error||"Host's domain name can not be converted to "+(O.iri?"Unicode":"ASCII")+" via punycode: "+ze}}lt(B,Q),O.reference!=="suffix"&&B.scheme&&(re.push(B.scheme),re.push(":"));var we=$n(B,O);if(we!==void 0&&(O.reference!=="suffix"&&re.push("//"),re.push(we),B.path&&B.path.charAt(0)!=="/"&&re.push("/")),B.path!==void 0){var Ce=B.path;!O.absolutePath&&(!se||!se.absolutePath)&&(Ce=Cr(Ce)),we===void 0&&(Ce=Ce.replace(/^\/\//,"/%2F")),re.push(Ce)}return B.query!==void 0&&(re.push("?"),re.push(B.query)),B.fragment!==void 0&&(re.push("#"),re.push(B.fragment)),re.join("")}function Oe(B,O){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=arguments[3],se={};return re||(B=Rt(Ee(B,Q),Q),O=Rt(Ee(O,Q),Q)),Q=Q||{},!Q.tolerant&&O.scheme?(se.scheme=O.scheme,se.userinfo=O.userinfo,se.host=O.host,se.port=O.port,se.path=Cr(O.path||""),se.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(se.userinfo=O.userinfo,se.host=O.host,se.port=O.port,se.path=Cr(O.path||""),se.query=O.query):(O.path?(O.path.charAt(0)==="/"?se.path=Cr(O.path):((B.userinfo!==void 0||B.host!==void 0||B.port!==void 0)&&!B.path?se.path="/"+O.path:B.path?se.path=B.path.slice(0,B.path.lastIndexOf("/")+1)+O.path:se.path=O.path,se.path=Cr(se.path)),se.query=O.query):(se.path=B.path,O.query!==void 0?se.query=O.query:se.query=B.query),se.userinfo=B.userinfo,se.host=B.host,se.port=B.port),se.scheme=B.scheme),se.fragment=O.fragment,se}function kt(B,O,Q){var re=l({scheme:"null"},Q);return Ee(Oe(Rt(B,re),Rt(O,re),re,!0),re)}function dt(B,O){return typeof B=="string"?B=Ee(Rt(B,O),O):n(B)==="object"&&(B=Rt(Ee(B,O),O)),B}function cr(B,O,Q){return typeof B=="string"?B=Ee(Rt(B,Q),Q):n(B)==="object"&&(B=Ee(B,Q)),typeof O=="string"?O=Ee(Rt(O,Q),Q):n(O)==="object"&&(O=Ee(O,Q)),B===O}function qe(B,O){return B&&B.toString().replace(!O||!O.iri?f.ESCAPE:g.ESCAPE,St)}function Se(B,O){return B&&B.toString().replace(!O||!O.iri?f.PCT_ENCODED:g.PCT_ENCODED,Ct)}var te={scheme:"http",domainHost:!0,parse:function(O,Q){return O.host||(O.error=O.error||"HTTP URIs must have a host."),O},serialize:function(O,Q){var re=String(O.scheme).toLowerCase()==="https";return(O.port===(re?443:80)||O.port==="")&&(O.port=void 0),O.path||(O.path="/"),O}},fe={scheme:"https",domainHost:te.domainHost,parse:te.parse,serialize:te.serialize};function Ae(B){return typeof B.secure=="boolean"?B.secure:String(B.scheme).toLowerCase()==="wss"}var Me={scheme:"ws",domainHost:!0,parse:function(O,Q){var re=O;return re.secure=Ae(re),re.resourceName=(re.path||"/")+(re.query?"?"+re.query:""),re.path=void 0,re.query=void 0,re},serialize:function(O,Q){if((O.port===(Ae(O)?443:80)||O.port==="")&&(O.port=void 0),typeof O.secure=="boolean"&&(O.scheme=O.secure?"wss":"ws",O.secure=void 0),O.resourceName){var re=O.resourceName.split("?"),se=m(re,2),we=se[0],Ce=se[1];O.path=we&&we!=="/"?we:void 0,O.query=Ce,O.resourceName=void 0}return O.fragment=void 0,O}},Xe={scheme:"wss",domainHost:Me.domainHost,parse:Me.parse,serialize:Me.serialize},Et={},nt=!0,$t="[A-Za-z0-9\\-\\.\\_\\~"+(nt?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Tt="[0-9A-Fa-f]",Hr=e(e("%[EFef]"+Tt+"%"+Tt+Tt+"%"+Tt+Tt)+"|"+e("%[89A-Fa-f]"+Tt+"%"+Tt+Tt)+"|"+e("%"+Tt+Tt)),mt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",_n="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",fr=r(_n,'[\\"\\\\]'),Xn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Yn=new RegExp($t,"g"),Tr=new RegExp(Hr,"g"),on=new RegExp(r("[^]",mt,"[\\.]",'[\\"]',fr),"g"),Ln=new RegExp(r("[^]",$t,Xn),"g"),fs=Ln;function zn(B){var O=Ct(B);return O.match(Yn)?O:B}var ei={scheme:"mailto",parse:function(O,Q){var re=O,se=re.to=re.path?re.path.split(","):[];if(re.path=void 0,re.query){for(var we=!1,Ce={},ze=re.query.split("&"),Ke=0,yt=ze.length;Ke<yt;++Ke){var Re=ze[Ke].split("=");switch(Re[0]){case"to":for(var at=Re[1].split(","),ut=0,ot=at.length;ut<ot;++ut)se.push(at[ut]);break;case"subject":re.subject=Se(Re[1],Q);break;case"body":re.body=Se(Re[1],Q);break;default:we=!0,Ce[Se(Re[0],Q)]=Se(Re[1],Q);break}}we&&(re.headers=Ce)}re.query=void 0;for(var He=0,ct=se.length;He<ct;++He){var Ye=se[He].split("@");if(Ye[0]=Se(Ye[0]),Q.unicodeSupport)Ye[1]=Se(Ye[1],Q).toLowerCase();else try{Ye[1]=qt.toASCII(Se(Ye[1],Q).toLowerCase())}catch(Or){re.error=re.error||"Email address's domain name can not be converted to ASCII via punycode: "+Or}se[He]=Ye.join("@")}return re},serialize:function(O,Q){var re=O,se=a(O.to);if(se){for(var we=0,Ce=se.length;we<Ce;++we){var ze=String(se[we]),Ke=ze.lastIndexOf("@"),yt=ze.slice(0,Ke).replace(Tr,zn).replace(Tr,s).replace(on,St),Re=ze.slice(Ke+1);try{Re=Q.iri?qt.toUnicode(Re):qt.toASCII(Se(Re,Q).toLowerCase())}catch(He){re.error=re.error||"Email address's domain name can not be converted to "+(Q.iri?"Unicode":"ASCII")+" via punycode: "+He}se[we]=yt+"@"+Re}re.path=se.join(",")}var at=O.headers=O.headers||{};O.subject&&(at.subject=O.subject),O.body&&(at.body=O.body);var ut=[];for(var ot in at)at[ot]!==Et[ot]&&ut.push(ot.replace(Tr,zn).replace(Tr,s).replace(Ln,St)+"="+at[ot].replace(Tr,zn).replace(Tr,s).replace(fs,St));return ut.length&&(re.query=ut.join("&")),re}},Di=/^([^\:]+)\:(.*)/,An={scheme:"urn",parse:function(O,Q){var re=O.path&&O.path.match(Di),se=O;if(re){var we=Q.scheme||se.scheme||"urn",Ce=re[1].toLowerCase(),ze=re[2],Ke=we+":"+(Q.nid||Ce),yt=vt[Ke];se.nid=Ce,se.nss=ze,se.path=void 0,yt&&(se=yt.parse(se,Q))}else se.error=se.error||"URN can not be parsed.";return se},serialize:function(O,Q){var re=Q.scheme||O.scheme||"urn",se=O.nid,we=re+":"+(Q.nid||se),Ce=vt[we];Ce&&(O=Ce.serialize(O,Q));var ze=O,Ke=O.nss;return ze.path=(se||Q.nid)+":"+Ke,ze}},Mn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Fi={scheme:"urn:uuid",parse:function(O,Q){var re=O;return re.uuid=re.nss,re.nss=void 0,!Q.tolerant&&(!re.uuid||!re.uuid.match(Mn))&&(re.error=re.error||"UUID is not valid."),re},serialize:function(O,Q){var re=O;return re.nss=(O.uuid||"").toLowerCase(),re}};vt[te.scheme]=te,vt[fe.scheme]=fe,vt[Me.scheme]=Me,vt[Xe.scheme]=Xe,vt[ei.scheme]=ei,vt[An.scheme]=An,vt[Fi.scheme]=Fi,t.SCHEMES=vt,t.pctEncChar=St,t.pctDecChars=Ct,t.parse=Rt,t.removeDotSegments=Cr,t.serialize=Ee,t.resolveComponents=Oe,t.resolve=kt,t.normalize=dt,t.equal=cr,t.escapeComponent=qe,t.unescapeComponent=Se,Object.defineProperty(t,"__esModule",{value:!0})})});var qs=ve(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.getSchemaRefs=_r.resolveUrl=_r.normalizeId=_r._getFullPath=_r.getFullPath=_r.inlineRef=void 0;var Xg=At(),Yg=Os(),ey=$f(),Ra=gl(),ty=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function ry(t,r=!0){return typeof t=="boolean"?!0:r===!0?!yl(t):r?kf(t)<=r:!1}_r.inlineRef=ry;var ny=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yl(t){for(let r in t){if(ny.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(yl)||typeof e=="object"&&yl(e))return!0}return!1}function kf(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!ty.has(e)&&(typeof t[e]=="object"&&Xg.eachItem(t[e],n=>r+=kf(n)),r===1/0))return 1/0}return r}function _f(t="",r){r!==!1&&(t=Zi(t));let e=Ra.parse(t);return Af(e)}_r.getFullPath=_f;function Af(t){return Ra.serialize(t).split("#")[0]+"#"}_r._getFullPath=Af;var iy=/#\/?$/;function Zi(t){return t?t.replace(iy,""):""}_r.normalizeId=Zi;function sy(t,r){return r=Zi(r),Ra.resolve(t,r)}_r.resolveUrl=sy;var ay=/^[a-z_][-a-z0-9._]*$/i;function oy(t){if(typeof t=="boolean")return{};let r=Zi(t.$id),e={"":r},n=_f(r,!1),s={},a=new Set;return ey(t,{allKeys:!0},(f,g,m,v)=>{if(v===void 0)return;let A=n+g,k=e[v];typeof f.$id=="string"&&(k=S.call(this,f.$id)),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),e[g]=k;function S(q){if(q=Zi(k?Ra.resolve(k,q):q),a.has(q))throw c(q);a.add(q);let j=this.refs[q];return typeof j=="string"&&(j=this.refs[j]),typeof j=="object"?l(f,j.schema,q):q!==Zi(A)&&(q[0]==="#"?(l(f,s[q],q),s[q]=f):this.refs[q]=A),q}function I(q){if(typeof q=="string"){if(!ay.test(q))throw new Error(`invalid anchor "${q}"`);S.call(this,`#${q}`)}}}),s;function l(f,g,m){if(g!==void 0&&!Yg(f,g))throw c(m)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}_r.getSchemaRefs=oy});var Ir=ve(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.checkStrictMode=gn.schemaCxtHasRules=gn.subschemaCode=gn.validateFunctionCode=void 0;var Tf=tf(),Ef=Qi(),Sf=bf(),Ge=Ve(),Fe=en(),ly=qs(),Pf=At();function uy(t){if(Ff(t)&&(If(t),bl(t))){py(t);return}Df(t,()=>Tf.topBoolOrEmptySchema(t))}gn.validateFunctionCode=uy;function Df({gen:t,validateName:r,schema:e,schemaEnv:n,opts:s},a){s.code.es5?t.func(r,Ge._`${Fe.default.data}, ${Fe.default.valCxt}`,n.$async,()=>{t.code(Ge._`"use strict"; ${Cf(e,s)}`),fy(t,s),t.code(a)}):t.func(r,Ge._`${Fe.default.data}, ${cy(s)}`,n.$async,()=>t.code(Cf(e,s)).code(a))}function cy(t){return Ge._`{${Fe.default.dataPath}="", ${Fe.default.parentData}, ${Fe.default.parentDataProperty}, ${Fe.default.rootData}=${Fe.default.data}${t.dynamicRef?Ge._`, ${Fe.default.dynamicAnchors}={}`:Ge.nil}}={}`}function fy(t,r){t.if(Fe.default.valCxt,()=>{t.var(Fe.default.dataPath,Ge._`${Fe.default.valCxt}.${Fe.default.dataPath}`),t.var(Fe.default.parentData,Ge._`${Fe.default.valCxt}.${Fe.default.parentData}`),t.var(Fe.default.parentDataProperty,Ge._`${Fe.default.valCxt}.${Fe.default.parentDataProperty}`),t.var(Fe.default.rootData,Ge._`${Fe.default.valCxt}.${Fe.default.rootData}`),r.dynamicRef&&t.var(Fe.default.dynamicAnchors,Ge._`${Fe.default.valCxt}.${Fe.default.dynamicAnchors}`)},()=>{t.var(Fe.default.dataPath,Ge._`""`),t.var(Fe.default.parentData,Ge._`undefined`),t.var(Fe.default.parentDataProperty,Ge._`undefined`),t.var(Fe.default.rootData,Fe.default.data),r.dynamicRef&&t.var(Fe.default.dynamicAnchors,Ge._`{}`)})}function py(t){let{schema:r,opts:e,gen:n}=t;Df(t,()=>{e.$comment&&r.$comment&&qf(t),yy(t),n.let(Fe.default.vErrors,null),n.let(Fe.default.errors,0),e.unevaluated&&hy(t),Of(t),vy(t)})}function hy(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ge._`${e}.evaluated`),r.if(Ge._`${t.evaluated}.dynamicProps`,()=>r.assign(Ge._`${t.evaluated}.props`,Ge._`undefined`)),r.if(Ge._`${t.evaluated}.dynamicItems`,()=>r.assign(Ge._`${t.evaluated}.items`,Ge._`undefined`))}function Cf(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ge._`/*# sourceURL=${t.$id} */`:Ge.nil}function dy(t,r){if(Ff(t)&&(If(t),bl(t))){my(t,r);return}Tf.boolOrEmptySchema(t,r)}gn.subschemaCode=dy;function bl({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}gn.schemaCxtHasRules=bl;function Ff(t){return typeof t.schema!="boolean"}function my(t,r){let{schema:e,gen:n,opts:s}=t;s.$comment&&e.$comment&&qf(t),by(t),wy(t);let a=n.const("_errs",Fe.default.errors);Of(t,a),n.var(r,Ge._`${a} === ${Fe.default.errors}`)}function If(t){Pf.checkUnknownRules(t),gy(t)}function Of(t,r){if(t.opts.jtd)return Sf.schemaKeywords(t,[],!1,r);let e=Ef.getSchemaTypes(t.schema),n=Ef.coerceAndCheckDataType(t,e);Sf.schemaKeywords(t,e,!n,r)}function gy(t){let{schema:r,errSchemaPath:e,opts:n,self:s}=t;r.$ref&&n.ignoreKeywordsWithRef&&Pf.schemaHasRulesButRef(r,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function yy(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&Rf(t,"default is ignored in the schema root")}function by(t){t.schema.$id&&(t.baseId=ly.resolveUrl(t.baseId,t.schema.$id))}function wy(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function qf({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:s}){let a=e.$comment;if(s.$comment===!0)t.code(Ge._`${Fe.default.self}.logger.log(${a})`);else if(typeof s.$comment=="function"){let l=Ge.str`${n}/$comment`,c=t.scopeValue("root",{ref:r.root});t.code(Ge._`${Fe.default.self}.opts.$comment(${a}, ${l}, ${c}.schema)`)}}function vy(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:s,opts:a}=t;e.$async?r.if(Ge._`${Fe.default.errors} === 0`,()=>r.return(Fe.default.data),()=>r.throw(Ge._`new ${s}(${Fe.default.vErrors})`)):(r.assign(Ge._`${n}.errors`,Fe.default.vErrors),a.unevaluated&&$y(t),r.return(Ge._`${Fe.default.errors} === 0`))}function $y({gen:t,evaluated:r,props:e,items:n}){e instanceof Ge.Name&&t.assign(Ge._`${r}.props`,e),n instanceof Ge.Name&&t.assign(Ge._`${r}.items`,n)}function Rf(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}gn.checkStrictMode=Rf});var At=ve(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.func=et.setEvaluated=et.evaluatedPropsToName=et.mergeEvaluated=et.eachItem=et.unescapeJsonPointer=et.escapeJsonPointer=et.escapeFragment=et.unescapeFragment=et.schemaRefOrVal=et.schemaHasRulesButRef=et.schemaHasRules=et.checkUnknownRules=et.alwaysValidSchema=et.toHash=void 0;var Pt=Ve(),xy=Ir();function ky(t){let r={};for(let e of t)r[e]=!0;return r}et.toHash=ky;function _y(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(Lf(t,r),!zf(r,t.self.RULES.all))}et.alwaysValidSchema=_y;function Lf(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let s=n.RULES.keywords;for(let a in r)s[a]||xy.checkStrictMode(t,`unknown keyword: "${a}"`)}et.checkUnknownRules=Lf;function zf(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}et.schemaHasRules=zf;function Ay(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}et.schemaHasRulesButRef=Ay;function Ey({topSchemaRef:t,schemaPath:r},e,n,s){if(!s){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return Pt._`${e}`}return Pt._`${t}${r}${Pt.getProperty(n)}`}et.schemaRefOrVal=Ey;function Sy(t){return jf(decodeURIComponent(t))}et.unescapeFragment=Sy;function Cy(t){return encodeURIComponent(Mf(t))}et.escapeFragment=Cy;function Mf(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}et.escapeJsonPointer=Mf;function jf(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}et.unescapeJsonPointer=jf;function Ty(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}et.eachItem=Ty;function Nf({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(s,a,l,c)=>{let f=l===void 0?a:l instanceof Pt.Name?(a instanceof Pt.Name?t(s,a,l):r(s,a,l),l):a instanceof Pt.Name?(r(s,l,a),a):e(a,l);return c===Pt.Name&&!(f instanceof Pt.Name)?n(s,f):f}}et.mergeEvaluated={props:Nf({mergeNames:(t,r,e)=>t.if(Pt._`${e} !== true && ${r} !== undefined`,()=>{t.if(Pt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,Pt._`${e} || {}`).code(Pt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(Pt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,Pt._`${e} || {}`),wl(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:Vf}),items:Nf({mergeNames:(t,r,e)=>t.if(Pt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,Pt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(Pt._`${e} !== true`,()=>t.assign(e,r===!0?!0:Pt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function Vf(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",Pt._`{}`);return r!==void 0&&wl(t,e,r),e}et.evaluatedPropsToName=Vf;function wl(t,r,e){Object.keys(e).forEach(n=>t.assign(Pt._`${r}${Pt.getProperty(n)}`,!0))}et.setEvaluated=wl;function Py(t,r){return t.scopeValue("func",{ref:r,code:r.code})}et.func=Py});var Qi=ve(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.reportTypeError=Jt.checkDataTypes=Jt.checkDataType=Jt.coerceAndCheckDataType=Jt.getJSONTypes=Jt.getSchemaTypes=Jt.DataType=void 0;var Dy=Ho(),Fy=Go(),Iy=Fs(),Ie=Ve(),Bf=At(),Rs;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Rs=Jt.DataType||(Jt.DataType={}));function Oy(t){let r=Uf(t.type);if(r.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&r.push("null")}return r}Jt.getSchemaTypes=Oy;function Uf(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(Dy.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Jt.getJSONTypes=Uf;function qy(t,r){let{gen:e,data:n,opts:s}=t,a=Ry(r,s.coerceTypes),l=r.length>0&&!(a.length===0&&r.length===1&&Fy.schemaHasRulesForType(t,r[0]));if(l){let c=$l(r,n,s.strict,Rs.Wrong);e.if(c,()=>{a.length?Ny(t,r,a):xl(t)})}return l}Jt.coerceAndCheckDataType=qy;var Hf=new Set(["string","number","integer","boolean","null"]);function Ry(t,r){return r?t.filter(e=>Hf.has(e)||r==="array"&&e==="array"):[]}function Ny(t,r,e){let{gen:n,data:s,opts:a}=t,l=n.let("dataType",Ie._`typeof ${s}`),c=n.let("coerced",Ie._`undefined`);a.coerceTypes==="array"&&n.if(Ie._`${l} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,Ie._`${s}[0]`).assign(l,Ie._`typeof ${s}`).if($l(r,s,a.strict),()=>n.assign(c,s))),n.if(Ie._`${c} !== undefined`);for(let g of e)(Hf.has(g)||g==="array"&&a.coerceTypes==="array")&&f(g);n.else(),xl(t),n.endIf(),n.if(Ie._`${c} !== undefined`,()=>{n.assign(s,c),Ly(t,c)});function f(g){switch(g){case"string":n.elseIf(Ie._`${l} == "number" || ${l} == "boolean"`).assign(c,Ie._`"" + ${s}`).elseIf(Ie._`${s} === null`).assign(c,Ie._`""`);return;case"number":n.elseIf(Ie._`${l} == "boolean" || ${s} === null
|
|
3
|
+
|| (${l} == "string" && ${s} && ${s} == +${s})`).assign(c,Ie._`+${s}`);return;case"integer":n.elseIf(Ie._`${l} === "boolean" || ${s} === null
|
|
4
|
+
|| (${l} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,Ie._`+${s}`);return;case"boolean":n.elseIf(Ie._`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,!1).elseIf(Ie._`${s} === "true" || ${s} === 1`).assign(c,!0);return;case"null":n.elseIf(Ie._`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(c,null);return;case"array":n.elseIf(Ie._`${l} === "string" || ${l} === "number"
|
|
5
|
+
|| ${l} === "boolean" || ${s} === null`).assign(c,Ie._`[${s}]`)}}}function Ly({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ie._`${r} !== undefined`,()=>t.assign(Ie._`${r}[${e}]`,n))}function vl(t,r,e,n=Rs.Correct){let s=n===Rs.Correct?Ie.operators.EQ:Ie.operators.NEQ,a;switch(t){case"null":return Ie._`${r} ${s} null`;case"array":a=Ie._`Array.isArray(${r})`;break;case"object":a=Ie._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":a=l(Ie._`!(${r} % 1) && !isNaN(${r})`);break;case"number":a=l();break;default:return Ie._`typeof ${r} ${s} ${t}`}return n===Rs.Correct?a:Ie.not(a);function l(c=Ie.nil){return Ie.and(Ie._`typeof ${r} == "number"`,c,e?Ie._`isFinite(${r})`:Ie.nil)}}Jt.checkDataType=vl;function $l(t,r,e,n){if(t.length===1)return vl(t[0],r,e,n);let s,a=Bf.toHash(t);if(a.array&&a.object){let l=Ie._`typeof ${r} != "object"`;s=a.null?l:Ie._`!${r} || ${l}`,delete a.null,delete a.array,delete a.object}else s=Ie.nil;a.number&&delete a.integer;for(let l in a)s=Ie.and(s,vl(l,r,e,n));return s}Jt.checkDataTypes=$l;var zy={message:({schema:t})=>Ie.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Ie._`{type: ${t}}`:Ie._`{type: ${r}}`};function xl(t){let r=My(t);Iy.reportError(r,zy)}Jt.reportTypeError=xl;function My(t){let{gen:r,data:e,schema:n}=t,s=Bf.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var Is=ve(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.getData=void 0;var Gf=Qi(),Na=At(),Ns=Fs(),It=Ve(),kl=en(),jy=mi(),_l=class{constructor(r,e,n){if(By(r,e,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=e.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Na.schemaRefOrVal(r,this.schema,n,this.$data),this.schemaType=e.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=e,this.$data)this.schemaCode=r.gen.const("vSchema",Kf(this.$data,r));else if(this.schemaCode=this.schemaValue,!Vy(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:e.errors!==!1)&&(this.errsCount=r.gen.const("_errs",kl.default.errors))}result(r,e,n){this.gen.if(It.not(r)),n?n():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,e){this.result(r,void 0,e)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:e}=this;this.fail(It._`${e} !== undefined && (${It.or(this.invalid$data(),r)})`)}error(r){(r?Ns.reportExtraError:Ns.reportError)(this,this.def.error)}$dataError(){Ns.reportError(this,this.def.$dataError||Ns.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Ns.resetErrorsCount(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,e){e?Object.assign(this.params,r):this.params=r}block$data(r,e,n=It.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=It.nil,e=It.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:a,def:l}=this;n.if(It.or(It._`${s} === undefined`,e)),r!==It.nil&&n.assign(r,!0),(a.length||l.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==It.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:s,it:a}=this;return It.or(l(),c());function l(){if(n.length){if(!(e instanceof It.Name))throw new Error("ajv implementation error");let f=Array.isArray(n)?n:[n];return It._`${Gf.checkDataTypes(f,e,a.opts.strict,Gf.DataType.Wrong)}`}return It.nil}function c(){if(s.validateSchema){let f=r.scopeValue("validate$data",{ref:s.validateSchema});return It._`!${f}(${e})`}return It.nil}}subschema(r,e){return jy.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:s}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=Na.mergeEvaluated.props(s,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=Na.mergeEvaluated.items(s,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(e,()=>this.mergeEvaluated(r,It.Name)),!0}};Ls.default=_l;function Vy(t,r,e=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||e&&typeof t>"u")}function By({schema:t,opts:r,self:e},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let a=n.dependencies;if(a!=null&&a.some(l=>!Object.prototype.hasOwnProperty.call(t,l)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let c="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(c);else throw new Error(c)}}var Uy=/^\/(?:[^~]|~0|~1)*$/,Hy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Kf(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let s,a;if(t==="")return kl.default.rootData;if(t[0]==="/"){if(!Uy.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,a=kl.default.rootData}else{let g=Hy.exec(t);if(!g)throw new Error(`Invalid JSON-pointer: ${t}`);let m=+g[1];if(s=g[2],s==="#"){if(m>=r)throw new Error(f("property/index",m));return n[r-m]}if(m>r)throw new Error(f("data",m));if(a=e[r-m],!s)return a}let l=a,c=s.split("/");for(let g of c)g&&(a=It._`${a}${It.getProperty(Na.unescapeJsonPointer(g))}`,l=It._`${l} && ${a}`);return l;function f(g,m){return`Cannot access ${g} ${m} levels up, current level is ${r}`}}Ls.getData=Kf});var Ma=ve((Xi,Wf)=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.MissingRefError=Xi.ValidationError=void 0;var Al=qs(),La=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Xi.ValidationError=La;var za=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=Al.resolveUrl(r,e),this.missingSchema=Al.normalizeId(Al.getFullPath(this.missingRef))}};Xi.MissingRefError=za;Wf.exports={ValidationError:La,MissingRefError:za}});var Cl=ve(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.resolveSchema=Br.getCompilingSchema=Br.resolveRef=Br.compileSchema=Br.SchemaEnv=void 0;var rn=Ve(),Gy=Ma(),yi=en(),nn=qs(),Jf=At(),Ky=Ir(),Wy=gl(),Yi=class{constructor(r){var e;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.root=r.root||this,this.baseId=(e=r.baseId)!==null&&e!==void 0?e:nn.normalizeId(n==null?void 0:n.$id),this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Br.SchemaEnv=Yi;function Sl(t){let r=Qf.call(this,t);if(r)return r;let e=nn.getFullPath(t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:a}=this.opts,l=new rn.CodeGen(this.scope,{es5:n,lines:s,ownProperties:a}),c;t.$async&&(c=l.scopeValue("Error",{ref:Gy.ValidationError,code:rn._`require("ajv/dist/compile/error_classes").ValidationError`}));let f=l.scopeName("validate");t.validateName=f;let g={gen:l,allErrors:this.opts.allErrors,data:yi.default.data,parentData:yi.default.parentData,parentDataProperty:yi.default.parentDataProperty,dataNames:[yi.default.data],dataPathArr:[rn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:rn.stringify(t.schema)}:{ref:t.schema}),validateName:f,ValidationError:c,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:rn.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:rn._`""`,opts:this.opts,self:this},m;try{this._compilations.add(t),Ky.validateFunctionCode(g),l.optimize(this.opts.code.optimize);let v=l.toString();m=`${l.scopeRefs(yi.default.scope)}return ${v}`,this.opts.code.process&&(m=this.opts.code.process(m,t));let k=new Function(`${yi.default.self}`,`${yi.default.scope}`,m)(this,this.scope.get());if(this.scope.value(f,{ref:k}),k.errors=null,k.schema=t.schema,k.schemaEnv=t,t.$async&&(k.$async=!0),this.opts.code.source===!0&&(k.source={validateName:f,validateCode:v,scopeValues:l._values}),this.opts.unevaluated){let{props:S,items:I}=g;k.evaluated={props:S instanceof rn.Name?void 0:S,items:I instanceof rn.Name?void 0:I,dynamicProps:S instanceof rn.Name,dynamicItems:I instanceof rn.Name},k.source&&(k.source.evaluated=rn.stringify(k.evaluated))}return t.validate=k,t}catch(v){throw delete t.validate,delete t.validateName,m&&this.logger.error("Error compiling schema, function code:",m),v}finally{this._compilations.delete(t)}}Br.compileSchema=Sl;function Jy(t,r,e){var n;e=nn.resolveUrl(r,e);let s=t.refs[e];if(s)return s;let a=Xy.call(this,t,e);if(a===void 0){let l=(n=t.localRefs)===null||n===void 0?void 0:n[e];l&&(a=new Yi({schema:l,root:t,baseId:r}))}if(a!==void 0)return t.refs[e]=Qy.call(this,a)}Br.resolveRef=Jy;function Qy(t){return nn.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Sl.call(this,t)}function Qf(t){for(let r of this._compilations)if(Zy(r,t))return r}Br.getCompilingSchema=Qf;function Zy(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function Xy(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||ja.call(this,t,r)}function ja(t,r){let e=Wy.parse(r),n=nn._getFullPath(e),s=nn.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===s)return El.call(this,e,t);let a=nn.normalizeId(n),l=this.refs[a]||this.schemas[a];if(typeof l=="string"){let c=ja.call(this,t,l);return typeof(c==null?void 0:c.schema)!="object"?void 0:El.call(this,e,c)}if(typeof(l==null?void 0:l.schema)=="object"){if(l.validate||Sl.call(this,l),a===nn.normalizeId(r)){let{schema:c}=l;return c.$id&&(s=nn.resolveUrl(s,c.$id)),new Yi({schema:c,root:t,baseId:s})}return El.call(this,e,l)}}Br.resolveSchema=ja;var Yy=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function El(t,{baseId:r,schema:e,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let l of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[Jf.unescapeFragment(l)],e===void 0))return;!Yy.has(l)&&typeof e=="object"&&e.$id&&(r=nn.resolveUrl(r,e.$id))}let a;if(typeof e!="boolean"&&e.$ref&&!Jf.schemaHasRulesButRef(e,this.RULES)){let l=nn.resolveUrl(r,e.$ref);a=ja.call(this,n,l)}if(a=a||new Yi({schema:e,root:n,baseId:r}),a.schema!==a.root.schema)return a}});var Zf=ve((gx,e0)=>{e0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var rp=ve(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.CodeGen=Qt.Name=Qt.nil=Qt.stringify=Qt.str=Qt._=Qt.KeywordCxt=void 0;var t0=Is();Qt.KeywordCxt=t0.default;var es=Ve();Object.defineProperty(Qt,"_",{enumerable:!0,get:function(){return es._}});Object.defineProperty(Qt,"str",{enumerable:!0,get:function(){return es.str}});Object.defineProperty(Qt,"stringify",{enumerable:!0,get:function(){return es.stringify}});Object.defineProperty(Qt,"nil",{enumerable:!0,get:function(){return es.nil}});Object.defineProperty(Qt,"Name",{enumerable:!0,get:function(){return es.Name}});Object.defineProperty(Qt,"CodeGen",{enumerable:!0,get:function(){return es.CodeGen}});var Dl=Ma(),r0=Ho(),zs=Cl(),n0=Ve(),Va=qs(),Ba=Qi(),Pl=At(),Xf=Zf(),i0=["removeAdditional","useDefaults","coerceTypes"],s0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),a0={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",strictNumbers:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key."},o0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function l0(t){var r,e,n,s,a,l,c,f,g,m,v,A;let k=(r=t.strict)!==null&&r!==void 0?r:!0,S=k?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,q=I===!0||I===void 0?1:I||0;return{strict:k,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:S,strictTuples:(s=t.strictTuples)!==null&&s!==void 0?s:S,code:t.code?{...t.code,optimize:q}:{optimize:q},loopRequired:(a=t.loopRequired)!==null&&a!==void 0?a:1/0,loopEnum:(l=t.loopEnum)!==null&&l!==void 0?l:1/0,meta:(c=t.meta)!==null&&c!==void 0?c:!0,messages:(f=t.messages)!==null&&f!==void 0?f:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,addUsedSchema:(m=t.addUsedSchema)!==null&&m!==void 0?m:!0,validateSchema:(v=t.validateSchema)!==null&&v!==void 0?v:!0,validateFormats:(A=t.validateFormats)!==null&&A!==void 0?A:!0}}var Ms=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...l0(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new n0.ValueScope({scope:{},prefixes:s0,es5:e,lines:n}),this.logger=d0(r.logger);let s=r.validateFormats;r.validateFormats=!1,this.RULES=r0.getRules(),Yf.call(this,a0,r,"NOT SUPPORTED"),Yf.call(this,o0,r,"DEPRECATED","warn"),this._metaOpts=p0.call(this),r.formats&&c0.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&f0.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),u0.call(this),r.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(Xf,Xf.$id,!1)}defaultMeta(){let{meta:r}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r.$id||r:void 0}validate(r,e){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let s=n(e);return"$async"in n||(this.errors=n.errors),s}compile(r,e){let n=this._addSchema(r,e);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,e){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,r,e);async function s(m,v){await a.call(this,m.$schema);let A=this._addSchema(m,v);return A.validate||l.call(this,A)}async function a(m){m&&!this.getSchema(m)&&await s.call(this,{$ref:m},!0)}async function l(m){try{return this._compileSchemaEnv(m)}catch(v){if(!(v instanceof Dl.MissingRefError))throw v;return c.call(this,v),await f.call(this,v.missingSchema),l.call(this,m)}}function c({missingSchema:m,missingRef:v}){if(this.refs[m])throw new Error(`AnySchema ${m} is loaded but ${v} cannot be resolved`)}async function f(m){let v=await g.call(this,m);this.refs[m]||await a.call(this,v.$schema),this.refs[m]||this.addSchema(v,m,e)}async function g(m){let v=this._loading[m];if(v)return v;try{return await(this._loading[m]=n(m))}finally{delete this._loading[m]}}}addSchema(r,e,n,s=this.opts.validateSchema){if(Array.isArray(r)){for(let l of r)this.addSchema(l,void 0,n,s);return this}let a;if(typeof r=="object"&&(a=r.$id,a!==void 0&&typeof a!="string"))throw new Error("schema id must be string");return e=Va.normalizeId(e||a),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,s,!0),this}addMetaSchema(r,e,n=this.opts.validateSchema){return this.addSchema(r,e,!0,n),this}validateSchema(r,e){if(typeof r=="boolean")return!0;let n;if(n=r.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,r);if(!s&&e){let a="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(a);else throw new Error(a)}return s}getSchema(r){let e;for(;typeof(e=ep.call(this,r))=="string";)r=e;if(e===void 0){let n=new zs.SchemaEnv({schema:{}});if(e=zs.resolveSchema.call(this,n,r),!e)return;this.refs[r]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let e=ep.call(this,r);return typeof e=="object"&&this._cache.delete(e.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let e=r;this._cache.delete(e);let n=r.$id;return n&&(n=Va.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let e of r)this.addKeyword(e);return this}addKeyword(r,e){let n;if(typeof r=="string")n=r,typeof e=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=n);else if(typeof r=="object"&&e===void 0){if(e=r,n=e.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(g0.call(this,n,e),!e)return Pl.eachItem(n,a=>Tl.call(this,a)),this;b0.call(this,e);let s={...e,type:Ba.getJSONTypes(e.type),schemaType:Ba.getJSONTypes(e.schemaType)};return Pl.eachItem(n,s.type.length===0?a=>Tl.call(this,a,s):a=>s.type.forEach(l=>Tl.call(this,a,s,l))),this}getKeyword(r){let e=this.RULES.all[r];return typeof e=="object"?e.definition:!!e}removeKeyword(r){let{RULES:e}=this;delete e.keywords[r],delete e.all[r];for(let n of e.rules){let s=n.rules.findIndex(a=>a.keyword===r);s>=0&&n.rules.splice(s,1)}return this}addFormat(r,e){return typeof e=="string"&&(e=new RegExp(e)),this.formats[r]=e,this}errorsText(r=this.errors,{separator:e=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(s=>`${n}${s.dataPath} ${s.message}`).reduce((s,a)=>s+e+a)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let s of e){let a=s.split("/").slice(1),l=r;for(let c of a)l=l[c];for(let c in n){let f=n[c];if(typeof f!="object")continue;let{$data:g}=f.definition,m=l[c];g&&m&&(l[c]=tp(m))}}return r}_removeAllSchemas(r,e){for(let n in r){let s=r[n];(!e||e.test(n))&&(typeof s=="string"?delete r[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,s=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let a=this._cache.get(r);if(a!==void 0)return a;let l=Va.getSchemaRefs.call(this,r);a=new zs.SchemaEnv({schema:r,meta:e,localRefs:l}),this._cache.set(a.schema,a);let c=a.baseId;return s&&!c.startsWith("#")&&(c&&this._checkUnique(c),this.refs[c]=a),n&&this.validateSchema(r,!0),a}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):zs.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let e=this.opts;this.opts=this._metaOpts;try{zs.compileSchema.call(this,r)}finally{this.opts=e}}};Qt.default=Ms;Ms.ValidationError=Dl.ValidationError;Ms.MissingRefError=Dl.MissingRefError;function Yf(t,r,e,n="error"){for(let s in t){let a=s;a in r&&this.logger[n](`${e}: option ${s}. ${t[a]}`)}}function ep(t){return t=Va.normalizeId(t),this.schemas[t]||this.refs[t]}function u0(){let t=this.opts.schemas;if(!!t)if(Array.isArray(t))this.addSchema(t);else for(let r in t)this.addSchema(t[r],r)}function c0(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function f0(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in t){let e=t[r];e.keyword||(e.keyword=r),this.addKeyword(e)}}function p0(){let t={...this.opts};for(let r of i0)delete t[r];return t}var h0={log(){},warn(){},error(){}};function d0(t){if(t===!1)return h0;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var m0=/^[a-z_$][a-z0-9_$:-]*$/i;function g0(t,r){let{RULES:e}=this;if(Pl.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!m0.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function Tl(t,r,e){var n;let s=r==null?void 0:r.post;if(e&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,l=s?a.post:a.rules.find(({type:f})=>f===e);if(l||(l={type:e,rules:[]},a.rules.push(l)),a.keywords[t]=!0,!r)return;let c={keyword:t,definition:{...r,type:Ba.getJSONTypes(r.type),schemaType:Ba.getJSONTypes(r.schemaType)}};r.before?y0.call(this,l,c,r.before):l.rules.push(c),a.all[t]=c,(n=r.implements)===null||n===void 0||n.forEach(f=>this.addKeyword(f))}function y0(t,r,e){let n=t.rules.findIndex(s=>s.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function b0(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=tp(r)),t.validateSchema=this.compile(r,!0))}var w0={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function tp(t){return{anyOf:[t,w0]}}});var np=ve(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var v0={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Fl.default=v0});var op=ve(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.callRef=bi.getValidate=void 0;var $0=Ma(),ip=tn(),Ar=Ve(),ts=en(),sp=Cl(),Ua=At(),x0={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:s,schemaEnv:a,validateName:l,opts:c,self:f}=n;if(e==="#"||e==="#/")return m();let g=sp.resolveRef.call(f,a.root,s,e);if(g===void 0)throw new $0.MissingRefError(s,e);if(g instanceof sp.SchemaEnv)return v(g);return A(g);function m(){if(a===a.root)return Ha(t,l,a,a.$async);let k=r.scopeValue("root",{ref:a.root});return Ha(t,Ar._`${k}.validate`,a.root,a.root.$async)}function v(k){let S=ap(t,k);Ha(t,S,k,k.$async)}function A(k){let S=r.scopeValue("schema",c.code.source===!0?{ref:k,code:Ar.stringify(k)}:{ref:k}),I=r.name("valid"),q=t.subschema({schema:k,dataTypes:[],schemaPath:Ar.nil,topSchemaRef:S,errSchemaPath:e},I);t.mergeEvaluated(q),t.ok(I)}}};function ap(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):Ar._`${e.scopeValue("wrapper",{ref:r})}.validate`}bi.getValidate=ap;function Ha(t,r,e,n){let{gen:s,it:a}=t,{allErrors:l,schemaEnv:c,opts:f}=a,g=f.passContext?ts.default.this:Ar.nil;n?m():v();function m(){if(!c.$async)throw new Error("async schema referenced by sync schema");let S=s.let("valid");s.try(()=>{s.code(Ar._`await ${ip.callValidateCode(t,r,g)}`),k(r),l||s.assign(S,!0)},I=>{s.if(Ar._`!(${I} instanceof ${a.ValidationError})`,()=>s.throw(I)),A(I),l||s.assign(S,!1)}),t.ok(S)}function v(){t.result(ip.callValidateCode(t,r,g),()=>k(r),()=>A(r))}function A(S){let I=Ar._`${S}.errors`;s.assign(ts.default.vErrors,Ar._`${ts.default.vErrors} === null ? ${I} : ${ts.default.vErrors}.concat(${I})`),s.assign(ts.default.errors,Ar._`${ts.default.vErrors}.length`)}function k(S){var I;if(!a.opts.unevaluated)return;let q=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(a.props!==!0)if(q&&!q.dynamicProps)q.props!==void 0&&(a.props=Ua.mergeEvaluated.props(s,q.props,a.props));else{let j=s.var("props",Ar._`${S}.evaluated.props`);a.props=Ua.mergeEvaluated.props(s,j,a.props,Ar.Name)}if(a.items!==!0)if(q&&!q.dynamicItems)q.items!==void 0&&(a.items=Ua.mergeEvaluated.items(s,q.items,a.items));else{let j=s.var("items",Ar._`${S}.evaluated.items`);a.items=Ua.mergeEvaluated.items(s,j,a.items,Ar.Name)}}}bi.callRef=Ha;bi.default=x0});var lp=ve(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var k0=np(),_0=op(),A0=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",k0.default,_0.default];Il.default=A0});var up=ve(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Ga=Ve(),Kn=Ga.operators,Ka={maximum:{okStr:"<=",ok:Kn.LTE,fail:Kn.GT},minimum:{okStr:">=",ok:Kn.GTE,fail:Kn.LT},exclusiveMaximum:{okStr:"<",ok:Kn.LT,fail:Kn.GTE},exclusiveMinimum:{okStr:">",ok:Kn.GT,fail:Kn.LTE}},E0={message:({keyword:t,schemaCode:r})=>Ga.str`should be ${Ka[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>Ga._`{comparison: ${Ka[t].okStr}, limit: ${r}}`},S0={keyword:Object.keys(Ka),type:"number",schemaType:"number",$data:!0,error:E0,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(Ga._`${e} ${Ka[r].fail} ${n} || isNaN(${e})`)}};Ol.default=S0});var cp=ve(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var js=Ve(),C0={message:({schemaCode:t})=>js.str`should be multiple of ${t}`,params:({schemaCode:t})=>js._`{multipleOf: ${t}}`},T0={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:C0,code(t){let{gen:r,data:e,schemaCode:n,it:s}=t,a=s.opts.multipleOfPrecision,l=r.let("res"),c=a?js._`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:js._`${l} !== parseInt(${l})`;t.fail$data(js._`(${n} === 0 || (${l} = ${e}/${n}, ${c}))`)}};ql.default=T0});var fp=ve(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});function P0(t){let r=t.length,e=0,n=0,s;for(;n<r;)e++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<r&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return e}Rl.default=P0});var pp=ve(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Wn=Ve(),D0=fp(),F0={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Wn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Wn._`{limit: ${t}}`},I0={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:F0,code(t){let{keyword:r,data:e,schemaCode:n,it:s}=t,a=r==="maxLength"?Wn.operators.GT:Wn.operators.LT,l;if(s.opts.unicode===!1)l=Wn._`${e}.length`;else{let c=t.gen.scopeValue("func",{ref:D0.default,code:Wn._`require("ajv/dist/compile/ucs2length").default`});l=Wn._`${c}(${e})`}t.fail$data(Wn._`${l} ${a} ${n}`)}};Nl.default=I0});var hp=ve(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var O0=tn(),Wa=Ve(),q0={message:({schemaCode:t})=>Wa.str`should match pattern "${t}"`,params:({schemaCode:t})=>Wa._`{pattern: ${t}}`},R0={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:q0,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:a}=t,l=n?Wa._`(new RegExp(${a}, "u"))`:O0.usePattern(r,s);t.fail$data(Wa._`!${l}.test(${e})`)}};Ll.default=R0});var dp=ve(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var Vs=Ve(),N0={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Vs.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Vs._`{limit: ${t}}`},L0={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:N0,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxProperties"?Vs.operators.GT:Vs.operators.LT;t.fail$data(Vs._`Object.keys(${e}).length ${s} ${n}`)}};zl.default=L0});var mp=ve(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Bs=tn(),Us=Ve(),z0=Ir(),M0={message:({params:{missingProperty:t}})=>Us.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>Us._`{missingProperty: ${t}}`},j0={keyword:"required",type:"object",schemaType:"array",$data:!0,error:M0,code(t){let{gen:r,schema:e,schemaCode:n,data:s,$data:a,it:l}=t,{opts:c}=l;if(!a&&e.length===0)return;let f=e.length>=c.loopRequired;if(l.allErrors?g():m(),c.strictRequired){let k=t.parentSchema.properties,{definedProperties:S}=t.it;for(let I of e)if((k==null?void 0:k[I])===void 0&&!S.has(I)){let q=l.schemaEnv.baseId+l.errSchemaPath,j=`required property "${I}" is not defined at "${q}" (strictRequired)`;z0.checkStrictMode(l,j,l.opts.strictRequired)}}function g(){if(f||a)t.block$data(Us.nil,v);else for(let k of e)Bs.checkReportMissingProp(t,k)}function m(){let k=r.let("missing");if(f||a){let S=r.let("valid",!0);t.block$data(S,()=>A(k,S)),t.ok(S)}else r.if(Bs.checkMissingProp(t,e,k)),Bs.reportMissingProp(t,k),r.else()}function v(){r.forOf("prop",n,k=>{t.setParams({missingProperty:k}),r.if(Bs.noPropertyInData(r,s,k,c.ownProperties),()=>t.error())})}function A(k,S){t.setParams({missingProperty:k}),r.forOf(k,n,()=>{r.assign(S,Bs.propertyInData(r,s,k,c.ownProperties)),r.if(Us.not(S),()=>{t.error(),r.break()})},Us.nil)}}};Ml.default=j0});var gp=ve(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Hs=Ve(),V0={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return Hs.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Hs._`{limit: ${t}}`},B0={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:V0,code(t){let{keyword:r,data:e,schemaCode:n}=t,s=r==="maxItems"?Hs.operators.GT:Hs.operators.LT;t.fail$data(Hs._`${e}.length ${s} ${n}`)}};jl.default=B0});var yp=ve(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var Vl=Qi(),Ut=Ve(),U0=Os(),H0={message:({params:{i:t,j:r}})=>Ut.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Ut._`{i: ${t}, j: ${r}}`},G0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:H0,code(t){let{gen:r,data:e,$data:n,schema:s,parentSchema:a,schemaCode:l,it:c}=t;if(!n&&!s)return;let f=r.let("valid"),g=a.items?Vl.getSchemaTypes(a.items):[];t.block$data(f,m,Ut._`${l} === false`),t.ok(f);function m(){let S=r.let("i",Ut._`${e}.length`),I=r.let("j");t.setParams({i:S,j:I}),r.assign(f,!0),r.if(Ut._`${S} > 1`,()=>(v()?A:k)(S,I))}function v(){return g.length>0&&!g.some(S=>S==="object"||S==="array")}function A(S,I){let q=r.name("item"),j=Vl.checkDataTypes(g,q,c.opts.strict,Vl.DataType.Wrong),X=r.const("indices",Ut._`{}`);r.for(Ut._`;${S}--;`,()=>{r.let(q,Ut._`${e}[${S}]`),r.if(j,Ut._`continue`),g.length>1&&r.if(Ut._`typeof ${q} == "string"`,Ut._`${q} += "_"`),r.if(Ut._`typeof ${X}[${q}] == "number"`,()=>{r.assign(I,Ut._`${X}[${q}]`),t.error(),r.assign(f,!1).break()}).code(Ut._`${X}[${q}] = ${S}`)})}function k(S,I){let q=t.gen.scopeValue("func",{ref:U0,code:Ut._`require("ajv/dist/compile/equal")`}),j=r.name("outer");r.label(j).for(Ut._`;${S}--;`,()=>r.for(Ut._`${I} = ${S}; ${I}--;`,()=>r.if(Ut._`${q}(${e}[${S}], ${e}[${I}])`,()=>{t.error(),r.assign(f,!1).break(j)})))}}};Bl.default=G0});var bp=ve(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Ul=Ve(),K0=Os(),W0={message:"should be equal to constant",params:({schemaCode:t})=>Ul._`{allowedValue: ${t}}`},J0={keyword:"const",$data:!0,error:W0,code(t){let r=t.gen.scopeValue("func",{ref:K0,code:Ul._`require("ajv/dist/compile/equal")`});t.fail$data(Ul._`!${r}(${t.data}, ${t.schemaCode})`)}};Hl.default=J0});var wp=ve(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var rs=Ve(),Q0=Os(),Z0={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>rs._`{allowedValues: ${t}}`},X0={keyword:"enum",schemaType:"array",$data:!0,error:Z0,code(t){let{gen:r,data:e,$data:n,schema:s,schemaCode:a,it:l}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let c=s.length>=l.opts.loopEnum,f=t.gen.scopeValue("func",{ref:Q0,code:rs._`require("ajv/dist/compile/equal")`}),g;if(c||n)g=r.let("valid"),t.block$data(g,m);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let A=r.const("vSchema",a);g=rs.or(...s.map((k,S)=>v(A,S)))}t.pass(g);function m(){r.assign(g,!1),r.forOf("v",a,A=>r.if(rs._`${f}(${e}, ${A})`,()=>r.assign(g,!0).break()))}function v(A,k){let S=s[k];return S&&typeof S=="object"?rs._`${f}(${e}, ${A}[${k}])`:rs._`${e} === ${S}`}}};Gl.default=X0});var vp=ve(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var Y0=up(),eb=cp(),tb=pp(),rb=hp(),nb=dp(),ib=mp(),sb=gp(),ab=yp(),ob=bp(),lb=wp(),ub=[Y0.default,eb.default,tb.default,rb.default,nb.default,ib.default,sb.default,ab.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ob.default,lb.default];Kl.default=ub});var $p=ve(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var wi=Ve(),cb=mi(),fb=At(),pb=Ir(),hb={message:({params:{len:t}})=>wi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>wi._`{limit: ${t}}`},db={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hb,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:a}=t,{items:l}=n;if(!Array.isArray(l)){pb.checkStrictMode(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}a.items=!0;let c=r.const("len",wi._`${s}.length`);if(e===!1)t.setParams({len:l.length}),t.pass(wi._`${c} <= ${l.length}`);else if(typeof e=="object"&&!fb.alwaysValidSchema(a,e)){let g=r.var("valid",wi._`${c} <= ${l.length}`);r.if(wi.not(g),()=>f(g)),t.ok(g)}function f(g){r.forRange("i",l.length,c,m=>{t.subschema({keyword:"additionalItems",dataProp:m,dataPropType:cb.Type.Num},g),a.allErrors||r.if(wi.not(g),()=>r.break())})}}};Wl.default=db});var kp=ve(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var xp=Ve(),Jl=At(),mb=Ir(),gb=tn(),yb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{gen:r,schema:e,it:n}=t;if(Array.isArray(e))n.opts.unevaluated&&e.length&&n.items!==!0&&(n.items=Jl.mergeEvaluated.items(r,e.length,n.items)),s(e);else{if(n.items=!0,Jl.alwaysValidSchema(n,e))return;t.ok(gb.validateArray(t))}function s(a){let{parentSchema:l,data:c}=t;if(n.opts.strictTuples&&!bb(a.length,l)){let m=`"items" is ${a.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;mb.checkStrictMode(n,m,n.opts.strictTuples)}let f=r.name("valid"),g=r.const("len",xp._`${c}.length`);a.forEach((m,v)=>{Jl.alwaysValidSchema(n,m)||(r.if(xp._`${g} > ${v}`,()=>t.subschema({keyword:"items",schemaProp:v,dataProp:v},f)),t.ok(f))})}}};function bb(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Ql.default=yb});var Ap=ve(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var sn=Ve(),wb=mi(),vb=At(),_p=Ir(),$b={message:({params:{min:t,max:r}})=>r===void 0?sn.str`should contain at least ${t} valid item(s)`:sn.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?sn._`{minContains: ${t}}`:sn._`{minContains: ${t}, maxContains: ${r}}`},xb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$b,code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:a}=t,l,c,{minContains:f,maxContains:g}=n;a.opts.next?(l=f===void 0?1:f,c=g):l=1;let m=r.const("len",sn._`${s}.length`);if(t.setParams({min:l,max:c}),c===void 0&&l===0){_p.checkStrictMode(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&l>c){_p.checkStrictMode(a,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(vb.alwaysValidSchema(a,e)){let S=sn._`${m} >= ${l}`;c!==void 0&&(S=sn._`${S} && ${m} <= ${c}`),t.pass(S);return}a.items=!0;let v=r.name("valid");if(c===void 0&&l===1)A(v,()=>r.if(v,()=>r.break()));else{r.let(v,!1);let S=r.name("_valid"),I=r.let("count",0);A(S,()=>r.if(S,()=>k(I)))}t.result(v,()=>t.reset());function A(S,I){r.forRange("i",0,m,q=>{t.subschema({keyword:"contains",dataProp:q,dataPropType:wb.Type.Num,compositeRule:!0},S),I()})}function k(S){r.code(sn._`${S}++`),c===void 0?r.if(sn._`${S} >= ${l}`,()=>r.assign(v,!0).break()):(r.if(sn._`${S} > ${c}`,()=>r.assign(v,!1).break()),l===1?r.assign(v,!0):r.if(sn._`${S} >= ${l}`,()=>r.assign(v,!0)))}}};Zl.default=xb});var Cp=ve(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.validateSchemaDeps=yn.validatePropertyDeps=yn.error=void 0;var Xl=Ve(),kb=At(),Gs=tn();yn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Xl.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Xl._`{property: ${t},
|
|
6
6
|
missingProperty: ${n},
|
|
7
7
|
depsCount: ${r},
|
|
8
|
-
deps: ${e}}`};var K$={keyword:"dependencies",type:"object",schemaType:"object",error:Cn.error,code(t){let[r,e]=W$(t);Gp(t,r),Kp(t,e)}};function W$({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?r:e;s[n]=t[n]}return[r,e]}function Gp(t,r=t.schema){let{gen:e,data:n,it:s}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let l in r){let f=r[l];if(f.length===0)continue;let c=ro.propertyInData(e,n,l,s.opts.ownProperties);t.setParams({property:l,depsCount:f.length,deps:f.join(", ")}),s.allErrors?e.if(c,()=>{for(let g of f)ro.checkReportMissingProp(t,g)}):(e.if(pu._`${c} && (${ro.checkMissingProp(t,f,o)})`),ro.reportMissingProp(t,o),e.else())}}Cn.validatePropertyDeps=Gp;function Kp(t,r=t.schema){let{gen:e,data:n,keyword:s,it:o}=t,l=e.name("valid");for(let f in r)G$.alwaysValidSchema(o,r[f])||(e.if(ro.propertyInData(e,n,f,o.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:f},l);t.mergeValidEvaluated(c,l)},()=>e.var(l,!0)),t.ok(l))}Cn.validateSchemaDeps=Kp;Cn.default=K$});var Zp=we(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var du=ze(),Z$=_t(),J$={message:({params:t})=>du.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>du._`{propertyName: ${t.propertyName}}`},Q$={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:J$,code(t){let{gen:r,schema:e,data:n,it:s}=t;if(Z$.alwaysValidSchema(s,e))return;let o=r.name("valid");r.forIn("key",n,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},o),r.if(du.not(o),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(o)}};mu.default=Q$});var yu=we(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var oa=un(),dn=ze(),X$=ln(),Y$=vi(),hu=_t(),ew={message:"should NOT have additional properties",params:({params:t})=>dn._`{additionalProperty: ${t.additionalProperty}}`},tw={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ew,code(t){let{gen:r,schema:e,parentSchema:n,data:s,errsCount:o,it:l}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:f,opts:c}=l;if(l.props=!0,c.removeAdditional!=="all"&&hu.alwaysValidSchema(l,e))return;let g=oa.allSchemaProperties(n.properties),h=oa.allSchemaProperties(n.patternProperties);$(),t.ok(dn._`${o} === ${X$.default.errors}`);function $(){r.forIn("key",s,R=>{!g.length&&!h.length?C(R):r.if(k(R),()=>C(R))})}function k(R){let B;if(g.length>8){let X=hu.schemaRefOrVal(l,n.properties,"properties");B=oa.isOwnProperty(r,X,R)}else g.length?B=dn.or(...g.map(X=>dn._`${R} === ${X}`)):B=dn.nil;return h.length&&(B=dn.or(B,...h.map(X=>dn._`${oa.usePattern(r,X)}.test(${R})`))),dn.not(B)}function x(R){r.code(dn._`delete ${s}[${R}]`)}function C(R){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){x(R);return}if(e===!1){t.setParams({additionalProperty:R}),t.error(),f||r.break();return}if(typeof e=="object"&&!hu.alwaysValidSchema(l,e)){let B=r.name("valid");c.removeAdditional==="failing"?(I(R,B,!1),r.if(dn.not(B),()=>{t.reset(),x(R)})):(I(R,B),f||r.if(dn.not(B),()=>r.break()))}}function I(R,B,X){let le={keyword:"additionalProperties",dataProp:R,dataPropType:Y$.Type.Str};X===!1&&Object.assign(le,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(le,B)}}};gu.default=tw});var Xp=we($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var rw=Vs(),Jp=un(),bu=_t(),Qp=yu(),nw={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Qp.default.code(new rw.default(o,Qp.default,"additionalProperties"));let l=Jp.allSchemaProperties(e);for(let $ of l)o.definedProperties.add($);o.opts.unevaluated&&l.length&&o.props!==!0&&(o.props=bu.mergeEvaluated.props(r,bu.toHash(l),o.props));let f=l.filter($=>!bu.alwaysValidSchema(o,e[$]));if(f.length===0)return;let c=r.name("valid");for(let $ of f)g($)?h($):(r.if(Jp.propertyInData(r,s,$,o.opts.ownProperties)),h($),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add($),t.ok(c);function g($){return o.opts.useDefaults&&!o.compositeRule&&e[$].default!==void 0}function h($){t.subschema({keyword:"properties",schemaProp:$,dataProp:$},c)}}};$u.default=nw});var ed=we(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Yp=un(),aa=ze(),iw=vi(),sw=Br(),ow=_t(),aw={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:s,it:o}=t,{opts:l}=o,f=Yp.schemaProperties(o,e);if(f.length===0)return;let c=l.strict&&!l.allowMatchingProperties&&s.properties,g=r.name("valid");o.props!==!0&&!(o.props instanceof aa.Name)&&(o.props=ow.evaluatedPropsToName(r,o.props));let{props:h}=o;$();function $(){for(let C of f)c&&k(C),o.allErrors?x(C):(r.var(g,!0),x(C),r.if(g))}function k(C){for(let I in c)new RegExp(C).test(I)&&sw.checkStrictMode(o,`property ${I} matches pattern ${C} (use allowMatchingProperties)`)}function x(C){r.forIn("key",n,I=>{r.if(aa._`${Yp.usePattern(r,C)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:C,dataProp:I,dataPropType:iw.Type.Str},g),o.opts.unevaluated&&h!==!0?r.assign(aa._`${h}[${I}]`,!0):o.allErrors||r.if(aa.not(g),()=>r.break())})})}}};wu.default=aw});var td=we(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var lw=_t(),uw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(lw.alwaysValidSchema(n,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ku.default=uw});var rd=we(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var fw=un(),cw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fw.validateUnion,error:{message:"should match some schema in anyOf"}};vu.default=cw});var nd=we(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var la=ze(),pw=_t(),dw={message:"should match exactly one schema in oneOf",params:({params:t})=>la._`{passingSchemas: ${t.passing}}`},mw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:dw,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,o=r.let("valid",!1),l=r.let("passing",null),f=r.name("_valid");t.setParams({passing:l}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((g,h)=>{let $;pw.alwaysValidSchema(n,g)?r.var(f,!0):$=t.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},f),h>0&&r.if(la._`${f} && ${o}`).assign(o,!1).assign(l,la._`[${l}, ${h}]`).else(),r.if(f,()=>{r.assign(o,!0),r.assign(l,h),$&&t.mergeEvaluated($,la.Name)})})}}};xu.default=mw});var id=we(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var hw=_t(),gw={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((o,l)=>{if(hw.alwaysValidSchema(n,o))return;let f=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(f)})}};Cu.default=gw});var od=we(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var ua=ze(),yw=_t(),bw=Br(),$w={message:({params:t})=>ua.str`should match "${t.ifClause}" schema`,params:({params:t})=>ua._`{failingKeyword: ${t.ifClause}}`},ww={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:$w,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&bw.checkStrictMode(n,'"if" without "then" and "else" is ignored');let s=sd(n,"then"),o=sd(n,"else");if(!s&&!o)return;let l=r.let("valid",!0),f=r.name("_valid");if(c(),t.reset(),s&&o){let h=r.let("ifClause");t.setParams({ifClause:h}),r.if(f,g("then",h),g("else",h))}else s?r.if(f,g("then")):r.if(ua.not(f),g("else"));t.pass(l,()=>t.error(!0));function c(){let h=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(h)}function g(h,$){return()=>{let k=t.subschema({keyword:h},f);r.assign(l,f),t.mergeValidEvaluated(k,l),$?r.assign($,ua._`${h}`):t.setParams({ifClause:h})}}}};function sd(t,r){let e=t.schema[r];return e!==void 0&&!yw.alwaysValidSchema(t,e)}Au.default=ww});var ad=we(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var kw=Br(),vw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&kw.checkStrictMode(e,`"${t}" without "if" is ignored`)}};Eu.default=vw});var ld=we(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var xw=Mp(),Cw=Vp(),Aw=Up(),Ew=Wp(),_w=Zp(),Sw=yu(),Pw=Xp(),Tw=ed(),Fw=td(),Iw=rd(),Ow=nd(),Nw=id(),Rw=od(),Dw=ad(),qw=[Fw.default,Iw.default,Ow.default,Nw.default,Rw.default,Dw.default,xw.default,Cw.default,Aw.default,_w.default,Sw.default,Ew.default,Pw.default,Tw.default];_u.default=qw});var ud=we(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var qt=ze(),Lw={message:({schemaCode:t})=>qt.str`should match format "${t}"`,params:({schemaCode:t})=>qt._`{format: ${t}}`},jw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Lw,code(t,r){let{gen:e,data:n,$data:s,schema:o,schemaCode:l,it:f}=t,{opts:c,errSchemaPath:g,schemaEnv:h,self:$}=f;if(!c.validateFormats)return;s?k():x();function k(){let C=e.scopeValue("formats",{ref:$.formats,code:c.code.formats}),I=e.const("fDef",qt._`${C}[${l}]`),R=e.let("fType"),B=e.let("format");e.if(qt._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(R,qt._`${I}.type || "string"`).assign(B,qt._`${I}.validate`),()=>e.assign(R,qt._`"string"`).assign(B,I)),t.fail$data(qt.or(X(),le()));function X(){return c.strict===!1?qt.nil:qt._`${l} && !${B}`}function le(){let be=h.$async?qt._`(${I}.async ? await ${B}(${n}) : ${B}(${n}))`:qt._`${B}(${n})`,he=qt._`(typeof ${B} == "function" ? ${be} : ${B}.test(${n}))`;return qt._`${B} && ${B} !== true && ${R} === ${r} && !${he}`}}function x(){let C=$.formats[o];if(!C){X();return}if(C===!0)return;let[I,R,B]=le(C);I===r&&t.pass(be());function X(){if(c.strict===!1){$.logger.warn(he());return}throw new Error(he());function he(){return`unknown format "${o}" ignored in schema at path "${g}"`}}function le(he){let Y=e.scopeValue("formats",{key:o,ref:he,code:c.code.formats?qt._`${c.code.formats}${qt.getProperty(o)}`:void 0});return typeof he=="object"&&!(he instanceof RegExp)?[he.type||"string",he.validate,qt._`${Y}.validate`]:["string",he,Y]}function be(){if(typeof C=="object"&&!(C instanceof RegExp)&&C.async){if(!h.$async)throw new Error("async format in sync schema");return qt._`await ${B}(${n})`}return typeof R=="function"?qt._`${B}(${n})`:qt._`${B}.test(${n})`}}}};Su.default=jw});var fd=we(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Bw=ud(),Mw=[Bw.default];Pu.default=Mw});var cd=we(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.contentVocabulary=cs.metadataVocabulary=void 0;cs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];cs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var dd=we(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var zw=Sp(),Vw=Bp(),Hw=ld(),Uw=fd(),pd=cd(),Gw=[zw.default,Vw.default,Hw.default,Uw.default,pd.metadataVocabulary,pd.contentVocabulary];Tu.default=Gw});var md=we((Ix,Kw)=>{Kw.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var gd=we(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.CodeGen=er.Name=er.nil=er.stringify=er.str=er._=er.KeywordCxt=void 0;var Ww=Vs();er.KeywordCxt=Ww.default;var ps=ze();Object.defineProperty(er,"_",{enumerable:!0,get:function(){return ps._}});Object.defineProperty(er,"str",{enumerable:!0,get:function(){return ps.str}});Object.defineProperty(er,"stringify",{enumerable:!0,get:function(){return ps.stringify}});Object.defineProperty(er,"nil",{enumerable:!0,get:function(){return ps.nil}});Object.defineProperty(er,"Name",{enumerable:!0,get:function(){return ps.Name}});Object.defineProperty(er,"CodeGen",{enumerable:!0,get:function(){return ps.CodeGen}});var Zw=vp(),Jw=dd(),hd=md(),Qw=["/properties"],fa="http://json-schema.org/draft-07/schema",Fu=class extends Zw.default{_addVocabularies(){super._addVocabularies(),Jw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(hd,Qw):hd;this.addMetaSchema(r,fa,!1),this.refs["http://json-schema.org/schema"]=fa}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fa)?fa:void 0)}};er.default=Fu});var bd=we((Nx,yd)=>{var Xw=Object.prototype.hasOwnProperty,Yw=Object.prototype.toString;yd.exports=function(r,e,n){if(Yw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var o=0;o<s;o++)e.call(n,r[o],o,r);else for(var l in r)Xw.call(r,l)&&e.call(n,r[l],l,r)}});var wd=we((Rx,$d)=>{"use strict";var ek=bd();$d.exports=yt;function yt(t,r,e){if(arguments.length===3)return yt.set(t,r,e);if(arguments.length===2)return yt.get(t,r);var n=yt.bind(yt,t);for(var s in yt)yt.hasOwnProperty(s)&&(n[s]=yt[s].bind(n,t));return n}yt.get=function(r,e){for(var n=Array.isArray(e)?e:yt.parse(e),s=0;s<n.length;++s){var o=n[s];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};yt.set=function(r,e,n){var s=Array.isArray(e)?e:yt.parse(e),o=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var f=s[l];f==="__proto__"||f==="constructor"||f==="prototype"||(f==="-"&&Array.isArray(r)&&(f=r.length),o=s[l+1],f in r||(o.match(/^(\d+|-)$/)?r[f]=[]:r[f]={}),r=r[f])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};yt.remove=function(t,r){var e=Array.isArray(r)?r:yt.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=yt.get(t,e.slice(0,-1));if(Array.isArray(s)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(s,o,1)}else delete s[n]};yt.dict=function(r,e){var n={};return yt.walk(r,function(s,o){n[o]=s},e),n};yt.walk=function(r,e,n){var s=[];n=n||function(o){var l=Object.prototype.toString.call(o);return l==="[object Object]"||l==="[object Array]"},function o(l){ek(l,function(f,c){s.push(String(c)),n(f)?o(f):e(f,yt.compile(s)),s.pop()})}(r)};yt.has=function(r,e){try{yt.get(r,e)}catch{return!1}return!0};yt.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};yt.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};yt.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(yt.unescape)};yt.compile=function(r){return r.length===0?"":"/"+r.map(yt.escape).join("/")}});var kd=we((Dx,tk)=>{tk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var vd=we((qx,rk)=>{rk.exports={$ref:"#/definitions/AstTree",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var xd=we((Lx,nk)=>{nk.exports={$ref:"#/definitions/RootBlock",definitions:{Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},BlockFormula:{type:"object",properties:{name:{type:"string",enum:["formula"]},content:{type:"array",items:[{$ref:"#/definitions/Verbatim"}],minItems:1,maxItems:1},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockMarkdown:{type:"object",properties:{name:{type:"string",enum:["markdown"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInclude:{type:"object",properties:{name:{type:"string",enum:["include"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockFormula"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockMarkdown"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockInclude"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlockNamed"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/BlockToc"},{$ref:"#/definitions/BlockPicture"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/Image"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Toc"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/Verbatim"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},margin:{type:"string"},type:{type:"string",enum:["block"]},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},align:{type:"array",items:{anyOf:[{enum:["center","left","right"],type:"string"},{type:"null"}]}},text:{type:"string"},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},checked:{type:"boolean"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},BlockToc:{type:"object",properties:{name:{type:"string",enum:["toc"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPicture:{type:"object",properties:{name:{type:"string",enum:["picture"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:1,maxItems:2},margin:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{anyOf:[{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["unicode_name"]},value:{type:"string"}},required:["type","value"]},{type:"object",properties:{type:{type:"string",enum:["html_named"]},value:{type:"string"}},required:["type","value"]}]}}},required:["content","name","type"]},FormattingCodeF:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["F"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"array",items:[{$ref:"#/definitions/Text"}],minItems:1,maxItems:1},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeF"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},folded:{type:"boolean"},foldedLevels:{type:"object",additionalProperties:!1,patternProperties:{"^[0-9]+$":{type:"boolean"}}},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Cd=we(ca=>{ca.Test=kd();ca.AstTree=vd();ca.PodliteDocument=xd()});var Bu=we((mC,Dd)=>{"use strict";function fk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Pi(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Pi)}fk(Pi,Error);Pi.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return 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(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.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(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function ck(t,r){r=r!==void 0?r:{};var e={},n={Document:tc,attributesOnly:Vh},s=tc,o=function(u){return u},l=function(u){return u},f=function(){return!!r.podMode},c=function(u){return u},g=ee(),h=function(){return{text:O(),type:"ambient",location:L()}},$=/^[ \xA0\u2001\t\f\u2008]/,k=P([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),x=/^[ \t\f]/,C=P([" "," ","\f"],!1,!1),I=/^[\n\r]/,R=P([`
|
|
9
|
-
`,"\r"],!1,!1),
|
|
8
|
+
deps: ${e}}`};var _b={keyword:"dependencies",type:"object",schemaType:"object",error:yn.error,code(t){let[r,e]=Ab(t);Ep(t,r),Sp(t,e)}};function Ab({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?r:e;s[n]=t[n]}return[r,e]}function Ep(t,r=t.schema){let{gen:e,data:n,it:s}=t;if(Object.keys(r).length===0)return;let a=e.let("missing");for(let l in r){let c=r[l];if(c.length===0)continue;let f=Gs.propertyInData(e,n,l,s.opts.ownProperties);t.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),s.allErrors?e.if(f,()=>{for(let g of c)Gs.checkReportMissingProp(t,g)}):(e.if(Xl._`${f} && (${Gs.checkMissingProp(t,c,a)})`),Gs.reportMissingProp(t,a),e.else())}}yn.validatePropertyDeps=Ep;function Sp(t,r=t.schema){let{gen:e,data:n,keyword:s,it:a}=t,l=e.name("valid");for(let c in r)kb.alwaysValidSchema(a,r[c])||(e.if(Gs.propertyInData(e,n,c,a.opts.ownProperties),()=>{let f=t.subschema({keyword:s,schemaProp:c},l);t.mergeValidEvaluated(f,l)},()=>e.var(l,!0)),t.ok(l))}yn.validateSchemaDeps=Sp;yn.default=_b});var Tp=ve(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var Yl=Ve(),Eb=At(),Sb={message:({params:t})=>Yl.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Yl._`{propertyName: ${t.propertyName}}`},Cb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Sb,code(t){let{gen:r,schema:e,data:n,it:s}=t;if(Eb.alwaysValidSchema(s,e))return;let a=r.name("valid");r.forIn("key",n,l=>{t.setParams({propertyName:l}),t.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},a),r.if(Yl.not(a),()=>{t.error(!0),s.allErrors||r.break()})}),t.ok(a)}};eu.default=Cb});var nu=ve(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Ja=tn(),an=Ve(),Tb=en(),Pb=mi(),tu=At(),Db={message:"should NOT have additional properties",params:({params:t})=>an._`{additionalProperty: ${t.additionalProperty}}`},Fb={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Db,code(t){let{gen:r,schema:e,parentSchema:n,data:s,errsCount:a,it:l}=t;if(!a)throw new Error("ajv implementation error");let{allErrors:c,opts:f}=l;if(l.props=!0,f.removeAdditional!=="all"&&tu.alwaysValidSchema(l,e))return;let g=Ja.allSchemaProperties(n.properties),m=Ja.allSchemaProperties(n.patternProperties);v(),t.ok(an._`${a} === ${Tb.default.errors}`);function v(){r.forIn("key",s,q=>{!g.length&&!m.length?S(q):r.if(A(q),()=>S(q))})}function A(q){let j;if(g.length>8){let X=tu.schemaRefOrVal(l,n.properties,"properties");j=Ja.isOwnProperty(r,X,q)}else g.length?j=an.or(...g.map(X=>an._`${q} === ${X}`)):j=an.nil;return m.length&&(j=an.or(j,...m.map(X=>an._`${Ja.usePattern(r,X)}.test(${q})`))),an.not(j)}function k(q){r.code(an._`delete ${s}[${q}]`)}function S(q){if(f.removeAdditional==="all"||f.removeAdditional&&e===!1){k(q);return}if(e===!1){t.setParams({additionalProperty:q}),t.error(),c||r.break();return}if(typeof e=="object"&&!tu.alwaysValidSchema(l,e)){let j=r.name("valid");f.removeAdditional==="failing"?(I(q,j,!1),r.if(an.not(j),()=>{t.reset(),k(q)})):(I(q,j),c||r.if(an.not(j),()=>r.break()))}}function I(q,j,X){let le={keyword:"additionalProperties",dataProp:q,dataPropType:Pb.Type.Str};X===!1&&Object.assign(le,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(le,j)}}};ru.default=Fb});var Fp=ve(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var Ib=Is(),Pp=tn(),iu=At(),Dp=nu(),Ob={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:s,it:a}=t;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Dp.default.code(new Ib.default(a,Dp.default,"additionalProperties"));let l=Pp.allSchemaProperties(e);for(let v of l)a.definedProperties.add(v);a.opts.unevaluated&&l.length&&a.props!==!0&&(a.props=iu.mergeEvaluated.props(r,iu.toHash(l),a.props));let c=l.filter(v=>!iu.alwaysValidSchema(a,e[v]));if(c.length===0)return;let f=r.name("valid");for(let v of c)g(v)?m(v):(r.if(Pp.propertyInData(r,s,v,a.opts.ownProperties)),m(v),a.allErrors||r.else().var(f,!0),r.endIf()),t.it.definedProperties.add(v),t.ok(f);function g(v){return a.opts.useDefaults&&!a.compositeRule&&e[v].default!==void 0}function m(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},f)}}};su.default=Ob});var Op=ve(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var Ip=tn(),Qa=Ve(),qb=mi(),Rb=Ir(),Nb=At(),Lb={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:s,it:a}=t,{opts:l}=a,c=Ip.schemaProperties(a,e);if(c.length===0)return;let f=l.strict&&!l.allowMatchingProperties&&s.properties,g=r.name("valid");a.props!==!0&&!(a.props instanceof Qa.Name)&&(a.props=Nb.evaluatedPropsToName(r,a.props));let{props:m}=a;v();function v(){for(let S of c)f&&A(S),a.allErrors?k(S):(r.var(g,!0),k(S),r.if(g))}function A(S){for(let I in f)new RegExp(S).test(I)&&Rb.checkStrictMode(a,`property ${I} matches pattern ${S} (use allowMatchingProperties)`)}function k(S){r.forIn("key",n,I=>{r.if(Qa._`${Ip.usePattern(r,S)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:S,dataProp:I,dataPropType:qb.Type.Str},g),a.opts.unevaluated&&m!==!0?r.assign(Qa._`${m}[${I}]`,!0):a.allErrors||r.if(Qa.not(g),()=>r.break())})})}}};au.default=Lb});var qp=ve(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var zb=At(),Mb={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(zb.alwaysValidSchema(n,e)){t.fail();return}let s=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.result(s,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ou.default=Mb});var Rp=ve(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var jb=tn(),Vb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:jb.validateUnion,error:{message:"should match some schema in anyOf"}};lu.default=Vb});var Np=ve(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Za=Ve(),Bb=At(),Ub={message:"should match exactly one schema in oneOf",params:({params:t})=>Za._`{passingSchemas: ${t.passing}}`},Hb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Ub,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=e,a=r.let("valid",!1),l=r.let("passing",null),c=r.name("_valid");t.setParams({passing:l}),r.block(f),t.result(a,()=>t.reset(),()=>t.error(!0));function f(){s.forEach((g,m)=>{let v;Bb.alwaysValidSchema(n,g)?r.var(c,!0):v=t.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},c),m>0&&r.if(Za._`${c} && ${a}`).assign(a,!1).assign(l,Za._`[${l}, ${m}]`).else(),r.if(c,()=>{r.assign(a,!0),r.assign(l,m),v&&t.mergeEvaluated(v,Za.Name)})})}}};uu.default=Hb});var Lp=ve(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Gb=At(),Kb={keyword:"allOf",schemaType:"array",code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let s=r.name("valid");e.forEach((a,l)=>{if(Gb.alwaysValidSchema(n,a))return;let c=t.subschema({keyword:"allOf",schemaProp:l},s);t.ok(s),t.mergeEvaluated(c)})}};cu.default=Kb});var Mp=ve(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Xa=Ve(),Wb=At(),Jb=Ir(),Qb={message:({params:t})=>Xa.str`should match "${t.ifClause}" schema`,params:({params:t})=>Xa._`{failingKeyword: ${t.ifClause}}`},Zb={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Qb,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&Jb.checkStrictMode(n,'"if" without "then" and "else" is ignored');let s=zp(n,"then"),a=zp(n,"else");if(!s&&!a)return;let l=r.let("valid",!0),c=r.name("_valid");if(f(),t.reset(),s&&a){let m=r.let("ifClause");t.setParams({ifClause:m}),r.if(c,g("then",m),g("else",m))}else s?r.if(c,g("then")):r.if(Xa.not(c),g("else"));t.pass(l,()=>t.error(!0));function f(){let m=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(m)}function g(m,v){return()=>{let A=t.subschema({keyword:m},c);r.assign(l,c),t.mergeValidEvaluated(A,l),v?r.assign(v,Xa._`${m}`):t.setParams({ifClause:m})}}}};function zp(t,r){let e=t.schema[r];return e!==void 0&&!Wb.alwaysValidSchema(t,e)}fu.default=Zb});var jp=ve(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Xb=Ir(),Yb={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&Xb.checkStrictMode(e,`"${t}" without "if" is ignored`)}};pu.default=Yb});var Vp=ve(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var ew=$p(),tw=kp(),rw=Ap(),nw=Cp(),iw=Tp(),sw=nu(),aw=Fp(),ow=Op(),lw=qp(),uw=Rp(),cw=Np(),fw=Lp(),pw=Mp(),hw=jp(),dw=[lw.default,uw.default,cw.default,fw.default,pw.default,hw.default,ew.default,tw.default,rw.default,iw.default,sw.default,nw.default,aw.default,ow.default];hu.default=dw});var Bp=ve(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var Ot=Ve(),mw={message:({schemaCode:t})=>Ot.str`should match format "${t}"`,params:({schemaCode:t})=>Ot._`{format: ${t}}`},gw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mw,code(t,r){let{gen:e,data:n,$data:s,schema:a,schemaCode:l,it:c}=t,{opts:f,errSchemaPath:g,schemaEnv:m,self:v}=c;if(!f.validateFormats)return;s?A():k();function A(){let S=e.scopeValue("formats",{ref:v.formats,code:f.code.formats}),I=e.const("fDef",Ot._`${S}[${l}]`),q=e.let("fType"),j=e.let("format");e.if(Ot._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(q,Ot._`${I}.type || "string"`).assign(j,Ot._`${I}.validate`),()=>e.assign(q,Ot._`"string"`).assign(j,I)),t.fail$data(Ot.or(X(),le()));function X(){return f.strict===!1?Ot.nil:Ot._`${l} && !${j}`}function le(){let be=m.$async?Ot._`(${I}.async ? await ${j}(${n}) : ${j}(${n}))`:Ot._`${j}(${n})`,me=Ot._`(typeof ${j} == "function" ? ${be} : ${j}.test(${n}))`;return Ot._`${j} && ${j} !== true && ${q} === ${r} && !${me}`}}function k(){let S=v.formats[a];if(!S){X();return}if(S===!0)return;let[I,q,j]=le(S);I===r&&t.pass(be());function X(){if(f.strict===!1){v.logger.warn(me());return}throw new Error(me());function me(){return`unknown format "${a}" ignored in schema at path "${g}"`}}function le(me){let Y=e.scopeValue("formats",{key:a,ref:me,code:f.code.formats?Ot._`${f.code.formats}${Ot.getProperty(a)}`:void 0});return typeof me=="object"&&!(me instanceof RegExp)?[me.type||"string",me.validate,Ot._`${Y}.validate`]:["string",me,Y]}function be(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!m.$async)throw new Error("async format in sync schema");return Ot._`await ${j}(${n})`}return typeof q=="function"?Ot._`${j}(${n})`:Ot._`${j}.test(${n})`}}}};du.default=gw});var Up=ve(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var yw=Bp(),bw=[yw.default];mu.default=bw});var Hp=ve(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.contentVocabulary=ns.metadataVocabulary=void 0;ns.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ns.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Kp=ve(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var ww=lp(),vw=vp(),$w=Vp(),xw=Up(),Gp=Hp(),kw=[ww.default,vw.default,$w.default,xw.default,Gp.metadataVocabulary,Gp.contentVocabulary];gu.default=kw});var Wp=ve((Xx,_w)=>{_w.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Qp=ve(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CodeGen=Zt.Name=Zt.nil=Zt.stringify=Zt.str=Zt._=Zt.KeywordCxt=void 0;var Aw=Is();Zt.KeywordCxt=Aw.default;var is=Ve();Object.defineProperty(Zt,"_",{enumerable:!0,get:function(){return is._}});Object.defineProperty(Zt,"str",{enumerable:!0,get:function(){return is.str}});Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return is.stringify}});Object.defineProperty(Zt,"nil",{enumerable:!0,get:function(){return is.nil}});Object.defineProperty(Zt,"Name",{enumerable:!0,get:function(){return is.Name}});Object.defineProperty(Zt,"CodeGen",{enumerable:!0,get:function(){return is.CodeGen}});var Ew=rp(),Sw=Kp(),Jp=Wp(),Cw=["/properties"],Ya="http://json-schema.org/draft-07/schema",yu=class extends Ew.default{_addVocabularies(){super._addVocabularies(),Sw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Jp,Cw):Jp;this.addMetaSchema(r,Ya,!1),this.refs["http://json-schema.org/schema"]=Ya}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ya)?Ya:void 0)}};Zt.default=yu});var Xp=ve((ek,Zp)=>{var Tw=Object.prototype.hasOwnProperty,Pw=Object.prototype.toString;Zp.exports=function(r,e,n){if(Pw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var a=0;a<s;a++)e.call(n,r[a],a,r);else for(var l in r)Tw.call(r,l)&&e.call(n,r[l],l,r)}});var eh=ve((tk,Yp)=>{"use strict";var Dw=Xp();Yp.exports=gt;function gt(t,r,e){if(arguments.length===3)return gt.set(t,r,e);if(arguments.length===2)return gt.get(t,r);var n=gt.bind(gt,t);for(var s in gt)gt.hasOwnProperty(s)&&(n[s]=gt[s].bind(n,t));return n}gt.get=function(r,e){for(var n=Array.isArray(e)?e:gt.parse(e),s=0;s<n.length;++s){var a=n[s];if(!(typeof r=="object"&&a in r))throw new Error("Invalid reference token: "+a);r=r[a]}return r};gt.set=function(r,e,n){var s=Array.isArray(e)?e:gt.parse(e),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var c=s[l];c==="__proto__"||c==="constructor"||c==="prototype"||(c==="-"&&Array.isArray(r)&&(c=r.length),a=s[l+1],c in r||(a.match(/^(\d+|-)$/)?r[c]=[]:r[c]={}),r=r[c])}return a==="-"&&Array.isArray(r)&&(a=r.length),r[a]=n,this};gt.remove=function(t,r){var e=Array.isArray(r)?r:gt.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var s=gt.get(t,e.slice(0,-1));if(Array.isArray(s)){var a=+n;if(n===""&&isNaN(a))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(s,a,1)}else delete s[n]};gt.dict=function(r,e){var n={};return gt.walk(r,function(s,a){n[a]=s},e),n};gt.walk=function(r,e,n){var s=[];n=n||function(a){var l=Object.prototype.toString.call(a);return l==="[object Object]"||l==="[object Array]"},function a(l){Dw(l,function(c,f){s.push(String(f)),n(c)?a(c):e(c,gt.compile(s)),s.pop()})}(r)};gt.has=function(r,e){try{gt.get(r,e)}catch{return!1}return!0};gt.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};gt.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};gt.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(gt.unescape)};gt.compile=function(r){return r.length===0?"":"/"+r.map(gt.escape).join("/")}});var xu=ve((wk,yh)=>{"use strict";function zw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function $i(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$i)}zw($i,Error);$i.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var m="",v;for(v=0;v<g.parts.length;v++)m+=g.parts[v]instanceof Array?a(g.parts[v][0])+"-"+a(g.parts[v][1]):a(g.parts[v]);return"["+(g.inverted?"^":"")+m+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return 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(m){return"\\x0"+n(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+n(m)})}function a(g){return g.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(m){return"\\x0"+n(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+n(m)})}function l(g){return e[g.type](g)}function c(g){var m=new Array(g.length),v,A;for(v=0;v<g.length;v++)m[v]=l(g[v]);if(m.sort(),m.length>0){for(v=1,A=1;v<m.length;v++)m[v-1]!==m[v]&&(m[A]=m[v],A++);m.length=A}switch(m.length){case 1:return m[0];case 2:return m[0]+" or "+m[1];default:return m.slice(0,-1).join(", ")+", or "+m[m.length-1]}}function f(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function Mw(t,r){r=r!==void 0?r:{};var e={},n={Document:Oc,attributesOnly:vm},s=Oc,a=function(u){return u},l=function(u){return u},c=function(){return!!r.podMode},f=function(u){return u},g=ee(),m=function(){return{text:F(),type:"ambient",location:L()}},v=/^[ \xA0\u2001\t\f\u2008]/,A=T([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),k=/^[ \t\f]/,S=T([" "," ","\f"],!1,!1),I=/^[\n\r]/,q=T([`
|
|
9
|
+
`,"\r"],!1,!1),j=function(u){return u},X=/^[^\n\r]/,le=T([`
|
|
10
10
|
`,"\r"],!0,!1),be=`
|
|
11
|
-
`,
|
|
12
|
-
`,!1),Y="\r",pe=K("\r",!1),
|
|
13
|
-
`?"":y)+w;return{margin:u,type:"block",content:
|
|
14
|
-
`," "," ","\f"],!1,!1),Ja=M("space characters"),a=0,oe=0,d=[{line:1,column:1}],b=0,S=[],m=0,A;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function O(){return t.substring(oe,a)}function L(){return Es(oe,a)}function T(u,p){throw p=p!==void 0?p:Es(oe,a),ec([M(u)],t.substring(oe,a),p)}function q(u,p){throw p=p!==void 0?p:Es(oe,a),zh(u,p)}function K(u,p){return{type:"literal",text:u,ignoreCase:p}}function P(u,p,y){return{type:"class",parts:u,inverted:p,ignoreCase:y}}function ee(){return{type:"any"}}function U(){return{type:"end"}}function M(u){return{type:"other",description:u}}function Z(u){var p=d[u],y;if(p)return p;for(y=u-1;!d[y];)y--;for(p=d[y],p={line:p.line,column:p.column};y<u;)t.charCodeAt(y)===10?(p.line++,p.column=1):p.column++,y++;return d[u]=p,p}function Es(u,p){var y=Z(u),w=Z(p);return{start:{offset:u,line:y.line,column:y.column},end:{offset:p,line:w.line,column:w.column}}}function ae(u){a<b||(a>b&&(b=a,S=[]),S.push(u))}function zh(u,p){return new Pi(u,null,null,p)}function ec(u,p,y){return new Pi(Pi.buildMessage(u,p),u,p,y)}function tc(){var u,p,y;for(u=a,p=[],y=rc();y!==e;)p.push(y),y=rc();return p!==e&&(oe=u,p=o(p)),u=p,u}function Vh(){var u,p,y,w;if(u=a,p=ye(),p!==e){for(y=[],w=Jn();w!==e;)y.push(w),w=Jn();y!==e?(w=ye(),w!==e?(oe=u,p=l(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function rc(){var u,p,y,w,_,E,G,Q;if(u=Ps(),u===e&&(u=Jh(),u===e&&(u=Xa(),u===e&&(u=Ts(),u===e&&(u=Os(),u===e&&(u=nl(),u===e&&(u=Ns(),u===e&&(u=el(),u===e&&(u=tl(),u===e&&(u=rl(),u===e&&(u=Fs(),u===e&&(u=Ya(),u===e&&(u=Is(),u===e&&(u=a,oe=a,p=f(),p?p=void 0:p=e,p!==e?(y=Qh(),y===e&&(y=Ur(),y===e&&(y=Uh())),y!==e?(oe=u,p=c(y),u=p):(a=u,u=e)):(a=u,u=e),u===e)))))))))))))){if(u=a,p=a,y=[],w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=a,G=jn(),G!==e?(Q=Gt(),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=gi()),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=h()),u=p}return u}function Rt(){var u;return $.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(k)),u}function ye(){var u,p;for(u=[],x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));p!==e;)u.push(p),x.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(C));return u}function Zn(){var u,p,y,w;for(u=a,p=a,y=[],w=Rt();w!==e;)y.push(w),w=Rt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(R)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function v1(){var u,p,y,w;if(u=a,p=a,y=[],w=_s(),w!==e)for(;w!==e;)y.push(w),w=_s();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=B(p),u=p):(a=u,u=e)):(a=u,u=e),u}function _s(){var u;return X.test(t.charAt(a))?(u=t.charAt(a),a++):(u=e,m===0&&ae(le)),u}function di(){var u,p,y;return t.charCodeAt(a)===10?(u=be,a++):(u=e,m===0&&ae(he)),u===e&&(u=a,t.charCodeAt(a)===13?(p=Y,a++):(p=e,m===0&&ae(pe)),p!==e?(t.charCodeAt(a)===10?(y=be,a++):(y=e,m===0&&ae(he)),y===e&&(y=null),y!==e?(p=[p,y],u=p):(a=u,u=e)):(a=u,u=e)),u}function mi(){var u,p;return u=di(),u===e&&(u=a,m++,t.length>a?(p=t.charAt(a),a++):(p=e,m===0&&ae(g)),m--,p===e?u=void 0:(a=u,u=e)),u}function Lr(){var u,p,y,w;for(u=a,p=a,y=[],w=Rt();w!==e;)y.push(w),w=Rt();return y!==e?(I.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(R)),w!==e?(y=[y,w],p=y):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u}function Ur(){var u,p,y,w,_;for(u=a,p=a,y=a,w=[],_=Rt();_!==e;)w.push(_),_=Rt();return w!==e?(I.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(R)),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=ve()),u=p,u}function Ss(){var u;return t.substr(a,7)===ke?(u=ke,a+=7):(u=e,m===0&&ae(Le)),u}function hi(){var u;return t.substr(a,5)===Te?(u=Te,a+=5):(u=e,m===0&&ae(Fe)),u}function To(){var u;return t.substr(a,5)===ge?(u=ge,a+=5):(u=e,m===0&&ae(Pe)),u}function nc(){var u;return t.substr(a,7)===Qe?(u=Qe,a+=7):(u=e,m===0&&ae(ne)),u}function ic(){var u;return t.substr(a,6)===$t?(u=$t,a+=6):(u=e,m===0&&ae(Xe)),u}function Gt(){var u,p,y;return u=a,p=il(),p!==e?(oe=a,y=wt(p),y?y=void 0:y=e,y!==e?(oe=u,p=nt(p),u=p):(a=u,u=e)):(a=u,u=e),u}function gi(){var u,p,y;return u=a,t.charCodeAt(a)===61?(p=z,a++):(p=e,m===0&&ae(H)),p!==e?(y=Gt(),y!==e?(oe=u,p=nt(y),u=p):(a=u,u=e)):(a=u,u=e),u}function jn(){var u;return u=Ss(),u===e&&(u=hi(),u===e&&(u=To(),u===e&&(u=nc(),u===e&&(u=ic())))),u}function Gr(){var u,p,y;if(m++,u=a,p=[],y=_s(),y!==e)for(;y!==e;)p.push(y),y=_s();else p=e;return p!==e?u=t.substring(u,a):u=p,m--,u===e&&(p=e,m===0&&ae(dr)),u}function Qt(){var u,p,y,w,_,E,G;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=nc(),_===e&&(_=ic(),_===e&&(_=a,E=jn(),E!==e?(G=Gt(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_===e&&(_=gi()))),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){if(y=a,w=[],_=Gr(),_!==e)for(;_!==e;)w.push(_),_=Gr();else w=e;w!==e?y=t.substring(y,a):y=w,y!==e?(w=mi(),w!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u}function Hh(){var u,p,y,w;if(u=a,p=a,y=[],w=Gr(),w!==e)for(;w!==e;)y.push(w),w=Gr();else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=Lt(),u=p):(a=u,u=e)):(a=u,u=e),u}function Uh(){var u,p,y,w,_,E;if(u=a,p=a,y=[],w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w!==e)for(;w!==e;)y.push(w),w=a,_=a,m++,E=mi(),m--,E===e?_=void 0:(a=_,_=e),_!==e?(t.length>a?(E=t.charAt(a),a++):(E=e,m===0&&ae(g)),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e);else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e?(y=mi(),y!==e?(oe=u,p=kt(),u=p):(a=u,u=e)):(a=u,u=e),u}function sc(){var u,p,y,w;if(u=a,p=oc(),p!==e){if(y=[],w=Rt(),w!==e)for(;w!==e;)y.push(w),w=Rt();else y=e;y!==e?(w=sc(),w!==e?(oe=u,p=Tt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=oc(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function oc(){var u,p;return u=a,p=_s(),p!==e?u=t.substring(u,a):u=p,u}function Fo(){var u,p,y,w,_,E;if(u=a,p=Ji(),p!==e){if(y=[],w=Rt(),w!==e)for(;w!==e;)y.push(w),w=Rt();else y=e;y===e&&(y=a,w=ye(),w!==e?(t.charCodeAt(a)===44?(_=ut,a++):(_=e,m===0&&ae(tr)),_!==e?(E=ye(),E!==e?(w=[w,_,E],y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e)),y!==e?(w=Fo(),w!==e?(oe=u,p=Vt(p,w),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;return u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ft(p)),u=p),u}function Gh(){var u,p,y,w,_;if(u=a,p=a,y=[],vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Nr)),w!==e)for(;w!==e;)y.push(w),vr.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Nr));else y=e;if(y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function ac(){var u,p,y,w,_,E;return u=a,p=Gh(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w===e&&(t.substr(a,2)===Sn?(w=Sn,a+=2):(w=e,m===0&&ae(Pn))),w!==e?(_=ye(),_!==e?(E=Ji(),E!==e?(oe=u,p=Tn(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function lc(){var u,p,y,w,_,E;return u=a,p=ac(),p!==e?(y=ye(),y!==e?(t.charCodeAt(a)===44?(w=ut,a++):(w=e,m===0&&ae(tr)),w!==e?(_=ye(),_!==e?(E=lc(),E!==e?(oe=u,p=Ce(p,E),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u===e&&(u=a,p=ac(),p!==e&&(oe=u,p=Hn(p)),u=p),u}function Kh(){var u,p,y,w,_,E,G,Q,F,D;return u=a,p=ye(),p!==e?(t.charCodeAt(a)===58?(y=Rr,a++):(y=e,m===0&&ae(Ee)),y!==e?(t.substr(a,5)===Ne?(w=Ne,a+=5):(w=e,m===0&&ae(At)),w!==e?(_=a,t.charCodeAt(a)===60?(E=ht,a++):(E=e,m===0&&ae(mr)),E!==e?(G=ye(),G!==e?(Q=sc(),Q!==e?(F=ye(),F!==e?(t.charCodeAt(a)===62?(D=Re,a++):(D=e,m===0&&ae(_e)),D!==e?(oe=_,E=te(w,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)):(a=_,_=e),_!==e?(E=ye(),E!==e?(oe=u,p=ce(w,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function x1(){var u,p,y,w,_,E;for(u=a,p=[],y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);y!==e;)p.push(y),y=a,w=ye(),w!==e?(_=Ji(),_!==e?(E=ye(),E!==e?(oe=y,w=Ae(_),y=w):(a=y,y=e)):(a=y,y=e)):(a=y,y=e);return p!==e&&(oe=u,p=Be(p)),u=p,u===e&&(u=a,p=Ji(),p!==e&&(oe=u,p=Ye(p)),u=p,u===e&&(u=a,p=ye(),p!==e&&(oe=u,p=Pt()),u=p)),u}function Jn(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me;if(u=Kh(),u===e)if(u=a,p=ye(),p!==e)if(t.charCodeAt(a)===58?(y=Rr,a++):(y=e,m===0&&ae(Ee)),y!==e)if(it.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(vt)),w===e&&(w=null),w!==e)if(_=il(),_!==e){if(E=a,t.charCodeAt(a)===123?(G=It,a++):(G=e,m===0&&ae(Xr)),G!==e?(Q=ye(),Q!==e?(F=lc(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===125?(j=gt,a++):(j=e,m===0&&ae(Fn)),j!==e?(oe=E,G=hr(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e){if(E=a,t.charCodeAt(a)===91?(G=si,a++):(G=e,m===0&&ae(oi)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Dr(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===93?(me=mn,a++):(me=e,m===0&&ae(Un)),me===e&&(t.charCodeAt(a)===91?(me=si,a++):(me=e,m===0&&ae(oi))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=ks(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===93?(j=mn,a++):(j=e,m===0&&ae(Un)),j!==e?(oe=E,G=Gn(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e&&(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e?(Q=ye(),Q!==e?(F=Fo(),F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Re,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ai(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)):(a=E,E=e),E===e)){if(E=a,t.charCodeAt(a)===60?(G=ht,a++):(G=e,m===0&&ae(mr)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=[],j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Re,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e),j!==e)for(;j!==e;)D.push(j),j=a,ie=a,m++,t.charCodeAt(a)===60?(fe=ht,a++):(fe=e,m===0&&ae(mr)),fe===e&&(t.charCodeAt(a)===62?(fe=Re,a++):(fe=e,m===0&&ae(_e))),m--,fe===e?ie=void 0:(a=ie,ie=e),ie!==e?(t.length>a?(fe=t.charAt(a),a++):(fe=e,m===0&&ae(g)),fe!==e?(ie=[ie,fe],j=ie):(a=j,j=e)):(a=j,j=e);else D=e;D!==e?F=t.substring(F,a):F=D,F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===62?(j=Re,a++):(j=e,m===0&&ae(_e)),j!==e?(oe=E,G=ji(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;if(E===e){if(E=a,t.charCodeAt(a)===40?(G=In,a++):(G=e,m===0&&ae(Kn)),G!==e)if(Q=ye(),Q!==e){if(F=a,D=Fo(),D!==e&&(oe=F,D=Bi(w,_,D)),F=D,F===e){if(F=a,D=a,j=[],ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(N)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e),ie!==e)for(;ie!==e;)j.push(ie),ie=a,fe=a,m++,t.charCodeAt(a)===41?(me=V,a++):(me=e,m===0&&ae(N)),me===e&&(t.charCodeAt(a)===40?(me=In,a++):(me=e,m===0&&ae(Kn))),m--,me===e?fe=void 0:(a=fe,fe=e),fe!==e?(t.length>a?(me=t.charAt(a),a++):(me=e,m===0&&ae(g)),me!==e?(fe=[fe,me],ie=fe):(a=ie,ie=e)):(a=ie,ie=e);else j=e;j!==e?D=t.substring(D,a):D=j,D!==e&&(oe=F,D=J(w,_)),F=D}F!==e?(D=ye(),D!==e?(t.charCodeAt(a)===41?(j=V,a++):(j=e,m===0&&ae(N)),j!==e?(oe=E,G=re(w,_,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)}else a=E,E=e;else a=E,E=e;E===e&&(E=a,G=ye(),G!==e&&(oe=E,G=se(w,_)),E=G)}}}E!==e?(G=ye(),G!==e?(oe=u,p=$e(w,_,E),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Bn(){var u,p,y,w,_,E,G,Q,F,D;for(u=a,p=[],y=Jn();y!==e;)p.push(y),y=Jn();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,t.charCodeAt(a)===61?(E=z,a++):(E=e,m===0&&ae(H)),E!==e)if(G=ye(),G!==e){if(Q=[],F=Jn(),F!==e)for(;F!==e;)Q.push(F),F=Jn();else Q=e;Q!==e?(F=ye(),F!==e?(D=di(),D!==e?(oe=_,E=Se(p,Q),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function C1(){var u,p,y,w;if(u=a,p=a,y=[],We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt)),w!==e)for(;w!==e;)y.push(w),We.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(bt));else y=e;return y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=De(p)),u=p,u}function uc(){var u,p,y;if(u=a,p=[],at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft)),y!==e)for(;y!==e;)p.push(y),at.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(ft));else p=e;return p!==e?u=t.substring(u,a):u=p,u}function Io(){var u,p,y,w,_;if(u=a,p=a,lt.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Ge)),y===e&&(y=null),y!==e){if(w=[],at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft)),_!==e)for(;_!==e;)w.push(_),at.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(ft));else w=e;w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function Wh(){var u,p;return u=a,t.substr(a,4)===ct?(p=ct,a+=4):(p=e,m===0&&ae(et)),p!==e&&(oe=u,p=Mr()),u=p,u===e&&(u=a,t.substr(a,5)===Bt?(p=Bt,a+=5):(p=e,m===0&&ae(rr)),p!==e&&(oe=u,p=st()),u=p),u}function Zh(){var u,p,y,w,_,E;return u=a,p=a,y=Io(),y!==e?(w=a,t.charCodeAt(a)===46?(_=Ht,a++):(_=e,m===0&&ae(Zt)),_!==e?(E=uc(),E!==e?(_=[_,E],w=_):(a=w,w=e)):(a=w,w=e),w===e&&(w=null),w!==e?(Cr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Yr)),_!==e?(E=Io(),E!==e?(y=[y,w,_,E],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p,u===e&&(u=a,p=a,y=Io(),y!==e?(t.charCodeAt(a)===46?(w=Ht,a++):(w=e,m===0&&ae(Zt)),w!==e?(_=uc(),_!==e?(y=[y,w,_],p=y):(a=p,p=e)):(a=p,p=e)):(a=p,p=e),p!==e?u=t.substring(u,a):u=p),u}function Ji(){var u,p,y,w,_;if(u=a,Ar.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(hn)),p!==e){for(y=a,w=[],On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Nn));_!==e;)w.push(_),On.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Nn));w!==e?y=t.substring(y,a):y=w,y!==e?(Ar.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(hn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;if(u===e){if(u=a,en.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(tn)),p!==e){for(y=a,w=[],Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));_!==e;)w.push(_),Mt.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(Er));w!==e?y=t.substring(y,a):y=w,y!==e?(en.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(tn)),w!==e?(oe=u,p=De(y),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;u===e&&(u=Wh(),u===e&&(u=a,p=Zh(),p!==e&&(oe=u,p=gn(p)),u=p,u===e&&(u=a,p=Io(),p!==e&&(oe=u,p=zr(p)),u=p)))}return u}function Ps(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr,Wr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Mi(p,w,E),G?G=void 0:G=e,G!==e){if(Q=[],F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=Zn(),ie===e&&(ie=a,fe=a,m++,me=jn(),m--,me===e?fe=void 0:(a=fe,fe=e),fe===e&&(fe=a,m++,me=a,ot=hi(),ot!==e?(jr=Gt(),jr!==e?(oe=a,Wr=li(p,w,E,D,jr),Wr?Wr=void 0:Wr=e,Wr!==e?(ot=[ot,jr,Wr],me=ot):(a=me,me=e)):(a=me,me=e)):(a=me,me=e),m--,me===e?fe=void 0:(a=fe,fe=e)),fe!==e?(me=Gr(),me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(fe=[fe,me,ot],ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)),ie!==e?j=t.substring(j,a):j=ie,j!==e?(oe=F,D=i(p,w,E,D,j),F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?(F=a,D=ye(),D!==e?F=t.substring(F,a):F=D,F!==e?(D=a,j=hi(),j!==e?(ie=Gt(),ie!==e?(oe=a,fe=ue(p,w,E,Q,F,ie),fe?fe=void 0:fe=e,fe!==e?(me=Zn(),me===e&&(me=null),me!==e?(oe=D,j=Vr(p,w,E,Q,F,ie),D=j):(a=D,D=e)):(a=D,D=e)):(a=D,D=e)):(a=D,D=e),D!==e?(oe=a,j=Jt(p,w,E,Q,F,D),j?j=void 0:j=e,j!==e?(oe=u,p=rn(p,w,E,Q,F,D),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Qi(){var u,p,y,w,_,E,G,Q,F;if(u=a,p=a,m++,y=a,w=ye(),w!==e?(_=jn(),_===e&&(_=gi()),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e),y===e&&(y=Ur()),m--,y===e?p=void 0:(a=p,p=e),p!==e){for(y=[],w=Rt();w!==e;)y.push(w),w=Rt();if(y!==e){if(w=a,_=[],E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Rt();F!==e;)Q.push(F),F=Rt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;if(E!==e)for(;E!==e;)if(_.push(E),E=a,v.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(yn)),G!==e){for(Q=[],F=Rt();F!==e;)Q.push(F),F=Rt();Q!==e?(G=[G,Q],E=G):(a=E,E=e)}else a=E,E=e;else _=e;_!==e?w=t.substring(w,a):w=_,w!==e?(_=mi(),_!==e?(oe=u,p=Rn(),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e}else a=u,u=e;return u}function _r(){var u,p,y,w,_;return u=a,p=a,y=Qi(),y===e&&(y=a,oe=a,w=Hr(),w?w=void 0:w=e,w!==e?(_=Ur(),_!==e?(w=[w,_],y=w):(a=y,y=e)):(a=y,y=e)),y!==e?p=t.substring(p,a):p=y,p!==e&&(oe=u,p=Dn()),u=p,u}function Kr(){var u,p;return u=a,p=Qt(),p!==e&&(oe=u,p=zi(p)),u=p,u}function Qa(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,oe=a,p=Me(),p?p=void 0:p=e,p!==e){if(y=a,w=[],_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e)for(;_!==e;)w.push(_),_=a,E=a,m++,G=Qi(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e);else w=e;if(w!==e?y=t.substring(y,a):y=w,y!==e)if(w=a,_=Qi(),_!==e&&(oe=w,_=Ut(y,_)),w=_,w!==e){if(_=[],E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;if(Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e)),E!==e)for(;E!==e;){if(_.push(E),E=a,G=a,Q=[],F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e),F!==e)for(;F!==e;)Q.push(F),F=a,D=a,m++,j=_r(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Kr(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);else Q=e;Q!==e?G=t.substring(G,a):G=Q,G!==e?(Q=a,F=_r(),F!==e&&(oe=Q,F=vs(y,w,G,F)),Q=F,Q!==e?(oe=E,G=nn(y,w,G,Q),E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=a,G=a,m++,Q=Qi(),m--,Q===e?G=void 0:(a=G,G=e),G!==e?(Q=a,m++,F=_r(),m--,F===e?Q=void 0:(a=Q,Q=e),Q!==e?(F=Kr(),F!==e?(oe=E,G=bn(y,w,F),E=G):(a=E,E=e)):(a=E,E=e)):(a=E,E=e))}else _=e;_!==e?(oe=a,E=ui(y,w,_),E?E=void 0:E=e,E!==e?(oe=u,p=qn(y,w,_),u=p):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e}else a=u,u=e;if(u===e){if(u=a,p=[],y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;if(y!==e)for(;y!==e;)if(p.push(y),y=a,w=a,_=a,E=a,m++,G=_r(),m--,G===e?E=void 0:(a=E,E=e),E!==e?(G=Kr(),G!==e?(E=[E,G],_=E):(a=_,_=e)):(a=_,_=e),_!==e?w=t.substring(w,a):w=_,w!==e){for(_=[],E=_r();E!==e;)_.push(E),E=_r();_!==e?(oe=y,w=W(w,_),y=w):(a=y,y=e)}else a=y,y=e;else p=e;if(p!==e&&(oe=u,p=xs(p)),u=p,u===e)if(u=[],p=Kr(),p!==e)for(;p!==e;)u.push(p),p=Kr();else u=e}return u}function Jh(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot,jr;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=Cs(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Ns(),j===e&&(j=Fs(),j===e&&(j=Is()))))));j!==e;)D.push(j),j=Ur(),j===e&&(j=Ps(),j===e&&(j=Ts(),j===e&&(j=Os(),j===e&&(j=Ns(),j===e&&(j=Fs(),j===e&&(j=Is()))))));D!==e&&(oe=F,D=fi(p,w,E,D)),F=D,F!==e?(oe=a,D=bo(p,w,E,F),D?D=void 0:D=e,D!==e?(j=a,ie=ye(),ie!==e?j=t.substring(j,a):j=ie,j!==e?(ie=a,fe=hi(),fe!==e?(me=Gt(),me!==e?(oe=a,ot=ue(p,w,E,F,j,me),ot?ot=void 0:ot=e,ot!==e?(jr=Zn(),jr===e&&(jr=null),jr!==e?(oe=ie,fe=ja(p,w,E,F,j,me),ie=fe):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e)):(a=ie,ie=e),ie!==e?(oe=u,p=Hi(p,w,E,F,j,ie),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Xa(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe,me,ot;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=Vi(p,w,E),G?G=void 0:G=e,G!==e)if(oe=a,Q=sn(p,w,E),Q?Q=void 0:Q=e,Q!==e){for(F=a,D=[],j=Ur();j!==e;)D.push(j),j=Ur();if(D!==e)if(j=Qa(),j!==e){for(ie=[],fe=Ur();fe!==e;)ie.push(fe),fe=Ur();ie!==e?(oe=F,D=$o(p,w,E,j),F=D):(a=F,F=e)}else a=F,F=e;else a=F,F=e;F!==e?(D=a,j=ye(),j!==e?D=t.substring(D,a):D=j,D!==e?(j=a,ie=hi(),ie!==e?(fe=Gt(),fe!==e?(oe=a,me=ue(p,w,E,F,D,fe),me?me=void 0:me=e,me!==e?(ot=Zn(),ot===e&&(ot=null),ot!==e?(oe=j,ie=wo(p,w,E,F,D,fe),j=ie):(a=j,j=e)):(a=j,j=e)):(a=j,j=e)):(a=j,j=e),j!==e?(oe=a,ie=Jt(p,w,E,F,D,j),ie?ie=void 0:ie=e,ie!==e?(oe=u,p=Ba(p,w,E,F,D,j),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ts(){var u,p,y,w,_,E,G,Q,F,D,j,ie,fe;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=Ss(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){if(G=[],Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Ns(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Rt();j!==e;)D.push(j),j=Rt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}for(;Q!==e;)if(G.push(Q),Q=a,F=Ur(),F===e&&(F=Ps(),F===e&&(F=Xa(),F===e&&(F=Ts(),F===e&&(F=Os(),F===e&&(F=nl(),F===e&&(F=Ns(),F===e&&(F=el(),F===e&&(F=tl(),F===e&&(F=rl(),F===e&&(F=Fs(),F===e&&(F=Ya(),F===e&&(F=Is())))))))))))),F!==e&&(oe=Q,F=ko(p,w,E,F)),Q=F,Q===e){for(Q=a,F=a,D=[],j=Rt();j!==e;)D.push(j),j=Rt();if(D!==e?F=t.substring(F,a):F=D,F!==e){if(D=a,j=[],ie=Qt(),ie!==e)for(;ie!==e;)j.push(ie),ie=Qt();else j=e;j!==e?D=t.substring(D,a):D=j,D!==e?(oe=Q,F=vo(p,w,E,F,D),Q=F):(a=Q,Q=e)}else a=Q,Q=e}G!==e?(Q=a,F=ye(),F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(F=a,D=hi(),D!==e?(j=Gt(),j!==e?(oe=a,ie=ue(p,w,E,G,Q,j),ie?ie=void 0:ie=e,ie!==e?(fe=Zn(),fe===e&&(fe=null),fe!==e?(oe=F,D=Ma(p,w,E,G,Q,j),F=D):(a=F,F=e)):(a=F,F=e)):(a=F,F=e)):(a=F,F=e),F!==e?(oe=a,D=Jt(p,w,E,G,Q,F),D?D=void 0:D=e,D!==e?(oe=u,p=za(p,w,E,G,Q,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Qh(){var u,p,y;if(u=a,p=[],y=Qt(),y!==e)for(;y!==e;)p.push(y),y=Qt();else p=e;return p!==e&&(oe=u,p=xo()),u=p,u}function A1(){var u,p,y,w;if(u=a,p=[],y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}if(y!==e){for(;y!==e;)if(p.push(y),y=a,w=Lr(),w!==e&&(oe=y,w=Ln()),y=w,y===e){if(y=[],zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(a))?(w=t.charAt(a),a++):(w=e,m===0&&ae(Wn));else y=e;y===e&&(y=Qt())}}else p=e;return p!==e&&(oe=u,p=ci(p)),u=p,u}function Fs(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=null),E!==e)if(oe=a,G=qr(p,w),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Va(p,w,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Ya(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e?(w=gi(),w!==e?(_=ye(),_!==e?(E=Lr(),E===e&&(E=null),E!==e?(oe=a,G=Co(p,w),G?G=void 0:G=e,G!==e?(oe=a,Q=$n(p,w),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=pi(p,w,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Is(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=a,m++,w=jn(),m--,w===e?y=void 0:(a=y,y=e),y!==e)if(w=gi(),w!==e)if(_=ye(),_!==e)if(E=Lr(),E===e&&(E=Hh()),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=Ui(p,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function Xh(){var u,p,y,w,_,E,G,Q,F,D,j;for(u=a,p=[],y=Gr();y!==e;)p.push(y),y=Gr();if(p!==e)if(y=di(),y!==e){if(w=[],_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;for(;_!==e;)if(w.push(_),_=a,E=ye(),E!==e)if(t.substr(a,2)===Gi?(G=Gi,a+=2):(G=e,m===0&&ae(Ao)),G!==e)if(Q=ye(),Q!==e){if(F=[],D=Gr(),D!==e)for(;D!==e;)F.push(D),D=Gr();else F=e;F!==e?(D=ye(),D!==e?(j=di(),j!==e?(oe=_,E=Se(p,F),_=E):(a=_,_=e)):(a=_,_=e)):(a=_,_=e)}else a=_,_=e;else a=_,_=e;else a=_,_=e;w!==e?(oe=u,p=je(p,w),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;return u}function el(){var u,p,y,w,_,E,G;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,6)===$t?(y=$t,a+=6):(y=e,m===0&&ae(Xe)),y!==e?(w=ye(),w!==e?(_=a,E=il(),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=Xh(),G!==e?(oe=u,p=Ha(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function tl(){var u,p,y,w,_,E,G,Q;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,7)===Qe?(y=Qe,a+=7):(y=e,m===0&&ae(ne)),y!==e?(w=ye(),w!==e?(_=a,E=a,Ua.test(t.charAt(a))?(G=t.charAt(a),a++):(G=e,m===0&&ae(Ga)),G!==e?(t.substr(a,2)===Eo?(Q=Eo,a+=2):(Q=e,m===0&&ae(_o)),Q!==e?(G=[G,Q],E=G):(a=E,E=e)):(a=E,E=e),E===e&&(E=Gt()),E!==e?_=t.substring(_,a):_=E,_!==e?(E=ye(),E!==e?(G=Bn(),G!==e?(oe=u,p=So(p,y,_,G),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function rl(){var u,p,y,w,_;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(t.substr(a,9)===Po?(y=Po,a+=9):(y=e,m===0&&ae(As)),y!==e?(w=ye(),w!==e?(_=Bn(),_!==e?(oe=u,p=Et(p,y,_),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Os(){var u,p,y,w,_,E,G,Q,F,D,j,ie;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e)if(oe=a,G=qe(p,y,w,E),G?G=void 0:G=e,G!==e){for(Q=a,F=[],D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);D!==e;)F.push(D),D=a,j=a,m++,ie=Lr(),m--,ie===e?j=void 0:(a=j,j=e),j!==e?(ie=Qt(),ie!==e?(j=[j,ie],D=j):(a=D,D=e)):(a=D,D=e);F!==e?Q=t.substring(Q,a):Q=F,Q!==e?(oe=u,p=Ki(p,y,w,E,Q),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function nl(){var u,p,y,w,_,E,G,Q,F;return u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e?(y=To(),y!==e?(w=Gt(),w!==e?(_=ye(),_!==e?(E=Bn(),E!==e?(oe=a,G=Yf(p,y,w,E),G?G=void 0:G=e,G!==e?(oe=a,Q=nr(p,y,w,E),Q?Q=void 0:Q=e,Q!==e?(F=Qa(),F!==e?(oe=u,p=wn(p,y,w,E,F),u=p):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e)):(a=u,u=e),u}function Ns(){var u,p,y,w,_,E,G,Q,F,D,j;if(u=a,p=a,y=ye(),y!==e?p=t.substring(p,a):p=y,p!==e)if(y=To(),y!==e)if(w=Gt(),w!==e)if(_=ye(),_!==e)if(E=Bn(),E!==e){for(G=a,Q=[],F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);F!==e;)Q.push(F),F=a,D=a,m++,j=Lr(),m--,j===e?D=void 0:(a=D,D=e),D!==e?(j=Qt(),j!==e?(D=[D,j],F=D):(a=F,F=e)):(a=F,F=e);Q!==e?G=t.substring(G,a):G=Q,G!==e?(oe=u,p=pt(p,y,w,E,G),u=p):(a=u,u=e)}else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;else a=u,u=e;return u}function il(){var u,p,y,w,_;if(u=a,p=a,Ka.test(t.charAt(a))?(y=t.charAt(a),a++):(y=e,m===0&&ae(Wa)),y!==e){for(w=[],xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));_!==e;)w.push(_),xr.test(t.charAt(a))?(_=t.charAt(a),a++):(_=e,m===0&&ae(jt));w!==e?(y=[y,w],p=y):(a=p,p=e)}else a=p,p=e;return p!==e?u=t.substring(u,a):u=p,u}function E1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Za)),u}function _1(){var u,p;for(m++,u=[],Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));p!==e;)u.push(p),Wi.test(t.charAt(a))?(p=t.charAt(a),a++):(p=e,m===0&&ae(Zi));return m--,u===e&&(p=e,m===0&&ae(Ja)),u}function Oo(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function Yh(u){return u===u.toUpperCase()}function Xi(u){return u.reduce((p,y)=>Array.isArray(y)?p.concat(Xi(y)):p.concat(y),[])}function eg(u){return["boundary","code","comment","data","data-table","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","row","cell","table","toc"].includes(u)||Yh(u)||u.match(/^(head|item)\d+$/)||Oo(u)}function tg(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(A=s(),A!==e&&a===t.length)return A;throw A!==e&&a<t.length&&ae(U()),ec(S,b<t.length?t.charAt(b):null,b<t.length?Es(b,b+1):Es(b,b))}Dd.exports={SyntaxError:Pi,parse:ck}});var jd=we((zu,Vu)=>{(function(t,r,e){typeof zu=="object"?(Vu.exports=e(),Vu.exports.default=e()):typeof define=="function"&&define.amd?define(e):r[t]=e()})("slugify",zu,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),r=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(n,s){if(typeof n!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var o=r[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,c=n.normalize().split("").reduce(function(g,h){var $=o[h];return $===void 0&&($=t[h]),$===void 0&&($=h),$===l&&($=" "),g+$.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),f&&(c=c.trim()),c=c.replace(/\s+/g,l),s.lower&&(c=c.toLowerCase()),c}return e.extend=function(n){Object.assign(t,n)},e})});var Vd=we((rA,zd)=>{"use strict";function kk(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function Ti(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ti)}kk(Ti,Error);Ti.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var h="",$;for($=0;$<g.parts.length;$++)h+=g.parts[$]instanceof Array?o(g.parts[$][0])+"-"+o(g.parts[$][1]):o(g.parts[$]);return"["+(g.inverted?"^":"")+h+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return 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(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(g){return g.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(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function l(g){return e[g.type](g)}function f(g){var h=new Array(g.length),$,k;for($=0;$<g.length;$++)h[$]=l(g[$]);if(h.sort(),h.length>0){for($=1,k=1;$<h.length;$++)h[$-1]!==h[$]&&(h[k]=h[$],k++);h.length=k}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}function c(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+f(t)+" but "+c(r)+" found."};function vk(t,r){r=r!==void 0?r:{};var e={},n={Expression:Cs},s=Cs,o="A",l=Me("A",!1),f="V",c=Me("V",!1),g="R",h=Me("R",!1),$="B",k=Me("B",!1),x="I",C=Me("I",!1),I="C",R=Me("C",!1),B="D",X=Me("D",!1),le="E",be=Me("E",!1),he="F",Y=Me("F",!1),pe="G",ve=Me("G",!1),ke="H",Le=Me("H",!1),Te="J",Fe=Me("J",!1),ge="K",Pe=Me("K",!1),Qe="L",ne=Me("L",!1),$t="O",Xe=Me("O",!1),wt="S",nt=Me("S",!1),z="T",H=Me("T",!1),dr="U",Lt=Me("U",!1),kt="Z",Tt=Me("Z",!1),Ft="N",ut=Me("N",!1),tr="X",Vt=Me("X",!1),vr=/^[a-zA-Z]/,Nr=Ut([["a","z"],["A","Z"]],!1,!1),xr=/^[a-zA-Z0-9_\-]/,jt=Ut([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Sn=/^[ \t\f]/,Pn=Ut([" "," ","\f"],!1,!1),Tn=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Ce=vs(),Hn=function(d){return{content:d.content,type:"fcode",name:d.name,synonyms:d.items}},Rr=function(d){return{content:d.content,type:"fcode",name:d.name,entry:d.items}},Ee="<",Ne=Me("<",!1),At=">",ht=Me(">",!1),mr=function(){return Rn()},Re="\xAB",_e=Me("\xAB",!1),te="\xBB",ce=Me("\xBB",!1),Ae=function(d){return d},Be=function(d){return d.code==="C"},Ye=function(d,b){return b===d.end_tag},Pt=function(d,b){return b},it=function(d,b,S){return S===d.end_tag},vt=function(d,b,S){return{content:b,type:"fcode",name:d.code}},It="|",Xr=Me("|",!1),gt=function(d){return d},Fn=function(d){return d.code==="L"},hr=function(d,b,S){return S},si=function(d,b,S,m){return m===d.end_tag},oi=function(d,b,S,m){return{content:b,type:"fcode",name:d.code,meta:S}},Dr=";",mn=Me(";",!1),Un=/^[ \xA0\u2001\t\f\u2008]/,ks=Ut([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Gn=function(d,b){return a([d,b])},ai=function(d){return[d]},ji=/^[0-9]/,In=Ut([["0","9"]],!1,!1),Kn="0d",Bi=Me("0d",!1),V=function(d){return parseInt(d,10)},N="0o",J=Me("0o",!1),re=function(d){return parseInt(d,8)},se="0b",$e=Me("0b",!1),Se=function(d){return parseInt(d,2)},je="0x",We=Me("0x",!1),bt=/^[0-9A-Fa-f]/,De=Ut([["0","9"],["A","F"],["a","f"]],!1,!1),at=function(){return parseInt(Rn())},ft=/^[A-Z ]/,lt=Ut([["A","Z"]," "],!1,!1),Ge=function(){return Rn()===Rn().toUpperCase()},ct=/^[a-z]/,et=Ut([["a","z"]],!1,!1),Mr=/^[a-z0-9]/,Bt=Ut([["a","z"],["0","9"]],!1,!1),rr=function(d){return Rn()},st=function(d){return{type:"number",value:parseInt(d,10)}},Ht=function(d){return{type:"unicode_name",value:d}},Zt=function(d){return{type:"html_named",value:d}},Cr=function(d){return d==="E"},Yr=function(d,b){return a(b)},Ar=function(d,b){return{content:b||[],type:"fcode",name:d}},hn=function(d){return d},On=function(d,b){return{code:d,begin_tag:b,end_tag:oe(b)}},Nn=function(d){return d.code!=="C"},en=function(d,b,S){return S===d.end_tag},tn=function(d,b,S){return{content:b,type:"fcode",name:d.code}},Mt=function(d){return!(r.allowed||[]).length||(r.allowed||[]).includes(d)},Er=function(d,b,S,m){return m===oe(b)},gn=function(d,b,S,m){return{content:S,type:"fcode",name:d}},zr=function(d,b,S,m){return a(m)},Mi=function(d,b,S,m,A){return A===oe(b)},li=function(d,b,S,m,A){return{name:d,content:S,items:m}},i=0,ue=0,Vr=[{line:1,column:1}],Jt=0,rn=[],v=0,yn;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function Rn(){return t.substring(ue,i)}function Hr(){return qn(ue,i)}function Dn(d,b){throw b=b!==void 0?b:qn(ue,i),Vi([bn(d)],t.substring(ue,i),b)}function zi(d,b){throw b=b!==void 0?b:qn(ue,i),xs(d,b)}function Me(d,b){return{type:"literal",text:d,ignoreCase:b}}function Ut(d,b,S){return{type:"class",parts:d,inverted:b,ignoreCase:S}}function vs(){return{type:"any"}}function nn(){return{type:"end"}}function bn(d){return{type:"other",description:d}}function ui(d){var b=Vr[d],S;if(b)return b;for(S=d-1;!Vr[S];)S--;for(b=Vr[S],b={line:b.line,column:b.column};S<d;)t.charCodeAt(S)===10?(b.line++,b.column=1):b.column++,S++;return Vr[d]=b,b}function qn(d,b){var S=ui(d),m=ui(b);return{start:{offset:d,line:S.line,column:S.column},end:{offset:b,line:m.line,column:m.column}}}function W(d){i<Jt||(i>Jt&&(Jt=i,rn=[]),rn.push(d))}function xs(d,b){return new Ti(d,null,null,b)}function Vi(d,b,S){return new Ti(Ti.buildMessage(d,b),d,b,S)}function Cs(){var d,b;for(d=[],b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));b!==e;)d.push(b),b=fi(),b===e&&(b=Ki(),b===e&&(b=nr(),b===e&&(b=$o())));return d}function fi(){var d;return d=Ka(),d===e&&(d=Za(),d===e&&(d=Wn(),d===e&&(d=Ma(),d===e&&(d=Po(),d===e&&(d=Wa(),d===e&&(d=Va(),d===e&&(d=za(),d===e&&(d=Wi())))))))),d}function bo(){var d;return t.charCodeAt(i)===65?(d=o,i++):(d=e,v===0&&W(l)),d===e&&(t.charCodeAt(i)===86?(d=f,i++):(d=e,v===0&&W(c)),d===e&&(t.charCodeAt(i)===82?(d=g,i++):(d=e,v===0&&W(h)),d===e&&(t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d===e&&(t.charCodeAt(i)===73?(d=x,i++):(d=e,v===0&&W(C)),d===e&&(t.charCodeAt(i)===67?(d=I,i++):(d=e,v===0&&W(R)),d===e&&(t.charCodeAt(i)===68?(d=B,i++):(d=e,v===0&&W(X)),d===e&&(t.charCodeAt(i)===69?(d=le,i++):(d=e,v===0&&W(be)),d===e&&(t.charCodeAt(i)===70?(d=he,i++):(d=e,v===0&&W(Y)),d===e&&(t.charCodeAt(i)===71?(d=pe,i++):(d=e,v===0&&W(ve)),d===e&&(t.charCodeAt(i)===72?(d=ke,i++):(d=e,v===0&&W(Le)),d===e&&(t.charCodeAt(i)===74?(d=Te,i++):(d=e,v===0&&W(Fe)),d===e&&(t.charCodeAt(i)===75?(d=ge,i++):(d=e,v===0&&W(Pe)),d===e&&(t.charCodeAt(i)===76?(d=Qe,i++):(d=e,v===0&&W(ne)),d===e&&(t.charCodeAt(i)===79?(d=$t,i++):(d=e,v===0&&W(Xe)),d===e&&(t.charCodeAt(i)===83?(d=wt,i++):(d=e,v===0&&W(nt)),d===e&&(t.charCodeAt(i)===84?(d=z,i++):(d=e,v===0&&W(H)),d===e&&(t.charCodeAt(i)===85?(d=dr,i++):(d=e,v===0&&W(Lt)),d===e&&(t.charCodeAt(i)===90?(d=kt,i++):(d=e,v===0&&W(Tt)),d===e&&(t.charCodeAt(i)===78?(d=Ft,i++):(d=e,v===0&&W(ut)),d===e&&(t.charCodeAt(i)===88?(d=tr,i++):(d=e,v===0&&W(Vt)))))))))))))))))))))),d}function ja(){var d,b,S,m,A;if(d=i,b=i,vr.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(Nr)),S!==e){for(m=[],xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));A!==e;)m.push(A),xr.test(t.charAt(i))?(A=t.charAt(i),i++):(A=e,v===0&&W(jt));m!==e?(S=[S,m],b=S):(i=b,b=e)}else i=b,b=e;return b!==e?d=t.substring(d,i):d=b,d}function Hi(){var d,b;for(d=[],Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));b!==e;)d.push(b),Sn.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,v===0&&W(Pn));return d}function sn(){var d,b,S;return d=i,b=bo(),b!==e?(ue=i,S=Tn(b),S?S=void 0:S=e,S!==e?(b=[b,S],d=b):(i=d,d=e)):(i=d,d=e),d}function $o(){var d,b;return d=i,t.length>i?(b=t.charAt(i),i++):(b=e,v===0&&W(Ce)),b!==e?d=t.substring(d,i):d=b,d}function wo(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function Ba(){var d,b,S;if(d=i,b=[],S=zt(),S!==e)for(;S!==e;)b.push(S),S=zt();else b=e;return b!==e?d=t.substring(d,i):d=b,d}function ko(){var d,b;if(d=[],b=qr(),b!==e)for(;b!==e;)d.push(b),b=qr();else d=e;return d}function vo(){var d,b;for(d=[],b=qr();b!==e;)d.push(b),b=qr();return d}function Ma(){var d,b;return d=i,b=Zi(),b!==e&&(ue=d,b=Hn(b)),d=b,d}function za(){var d,b;return d=i,b=Ja(),b!==e&&(ue=d,b=Rr(b)),d=b,d}function xo(){var d;return t.charCodeAt(i)===66?(d=$,i++):(d=e,v===0&&W(k)),d}function Ln(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=xo(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Re,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function zt(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,v===0&&W(Ce)),L!==e?(O=[O,L],A=O):(i=A,A=e)):(i=A,A=e),A===e&&(A=null),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=Ln(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function Wn(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Be(b),S?S=void 0:S=e,S!==e){if(m=[],A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;if(L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O,A!==e)for(;A!==e;){if(m.push(A),A=i,O=i,L=[],T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,q=i,K=i,v++,t.charCodeAt(i)===60?(P=Ee,i++):(P=e,v===0&&W(Ne)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,v===0&&W(Ne)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===62?(ee=At,i++):(ee=e,v===0&&W(ht)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,q=i,K=i,v++,t.charCodeAt(i)===171?(P=Re,i++):(P=e,v===0&&W(_e)),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e),q===e&&(q=null),q!==e?(t.charCodeAt(i)===171?(K=Re,i++):(K=e,v===0&&W(_e)),K!==e?(P=zt(),P===e&&(P=null),P!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,v===0&&W(ce)),ee!==e?(q=[q,K,P,ee],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=Ln(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}else m=e;m!==e?(A=qe(),A!==e?(ue=i,O=it(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=vt(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function ci(){var d;return t.charCodeAt(i)===124?(d=It,i++):(d=e,v===0&&W(Xr)),d}function qr(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,S=[],m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e))),m!==e)for(;m!==e;)S.push(m),m=i,A=i,O=i,v++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,v===0&&W(Ne)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===60?(O=Ee,i++):(O=e,v===0&&W(Ne)),O!==e?(L=qr(),L!==e?(t.charCodeAt(i)===62?(T=At,i++):(T=e,v===0&&W(ht)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,O=i,v++,t.charCodeAt(i)===171?(L=Re,i++):(L=e,v===0&&W(_e)),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=sn(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(O=[O,L,T],A=O):(i=A,A=e)):(i=A,A=e)):(i=A,A=e),A!==e?(t.charCodeAt(i)===171?(O=Re,i++):(O=e,v===0&&W(_e)),O!==e?(L=qr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,v===0&&W(ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,A=i,v++,O=ci(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=qe(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=As(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(T=i,v++,q=pt(),v--,q===e?T=void 0:(i=T,T=e),T!==e?(t.length>i?(q=t.charAt(i),i++):(q=e,v===0&&W(Ce)),q!==e?(A=[A,O,L,T,q],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=gt(b)),d=b,d}function Va(){var d,b,S,m,A,O,L,T,q,K,P;if(d=i,b=Et(),b!==e)if(ue=i,S=Fn(b),S?S=void 0:S=e,S!==e){if(m=[],A=Wn(),A===e&&(A=qr()),A!==e)for(;A!==e;)m.push(A),A=Wn(),A===e&&(A=qr());else m=e;if(m!==e){if(A=i,O=ci(),O!==e){for(L=i,T=[],q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);q!==e;)T.push(q),q=i,K=i,v++,P=qe(),v--,P===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,v===0&&W(Ce)),P!==e?(K=[K,P],q=K):(i=q,q=e)):(i=q,q=e);T!==e?L=t.substring(L,i):L=T,L!==e?(ue=A,O=hr(b,m,L),A=O):(i=A,A=e)}else i=A,A=e;A===e&&(A=null),A!==e?(O=qe(),O!==e?(ue=i,L=si(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=oi(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e}else i=d,d=e;else i=d,d=e;return d}function Co(){var d,b,S,m,A,O;if(d=i,b=[],S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e),S!==e)for(;S!==e;)b.push(S),S=i,m=i,v++,t.charCodeAt(i)===59?(A=Dr,i++):(A=e,v===0&&W(mn)),v--,A===e?m=void 0:(i=m,m=e),m!==e?(A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(t.length>i?(O=t.charAt(i),i++):(O=e,v===0&&W(Ce)),O!==e?(m=[m,A,O],S=m):(i=S,S=e)):(i=S,S=e)):(i=S,S=e);else b=e;return b!==e?d=t.substring(d,i):d=b,d}function $n(){var d;return Un.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,v===0&&W(ks)),d}function pi(){var d,b,S,m,A,O;if(d=i,b=Co(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=pi(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=Co(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Ui(){var d,b,S;if(d=i,b=[],ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In)),S!==e)for(;S!==e;)b.push(S),ji.test(t.charAt(i))?(S=t.charAt(i),i++):(S=e,v===0&&W(In));else b=e;return b!==e?d=t.substring(d,i):d=b,d}function Gi(){var d,b,S;return d=i,t.substr(i,2)===Kn?(b=Kn,i+=2):(b=e,v===0&&W(Bi)),b!==e?(S=Ui(),S!==e?(ue=d,b=V(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ao(){var d,b,S;return d=i,t.substr(i,2)===N?(b=N,i+=2):(b=e,v===0&&W(J)),b!==e?(S=Ui(),S!==e?(ue=d,b=re(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ha(){var d,b,S;return d=i,t.substr(i,2)===se?(b=se,i+=2):(b=e,v===0&&W($e)),b!==e?(S=Ui(),S!==e?(ue=d,b=Se(S),d=b):(i=d,d=e)):(i=d,d=e),d}function Ua(){var d,b,S,m,A,O;if(d=i,b=i,S=i,t.substr(i,2)===je?(m=je,i+=2):(m=e,v===0&&W(We)),m!==e){if(A=[],bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De)),O!==e)for(;O!==e;)A.push(O),bt.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(De));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=at()),d=b,d}function Ga(){var d,b,S,m;if(d=i,b=i,S=[],ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt)),m!==e)for(;m!==e;)S.push(m),ft.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(lt));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Ge(),S?S=void 0:S=e,S!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e),d}function Eo(){var d,b,S,m,A,O;if(d=i,b=i,S=i,ct.test(t.charAt(i))?(m=t.charAt(i),i++):(m=e,v===0&&W(et)),m!==e){if(A=[],Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt)),O!==e)for(;O!==e;)A.push(O),Mr.test(t.charAt(i))?(O=t.charAt(i),i++):(O=e,v===0&&W(Bt));else A=e;A!==e?(m=[m,A],S=m):(i=S,S=e)}else i=S,S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=rr(b)),d=b,d}function _o(){var d,b,S;return d=i,b=Hi(),b!==e?(S=Ao(),S===e&&(S=Gi(),S===e&&(S=Ha(),S===e&&(S=Ua(),S===e&&(S=Ui())))),S!==e?(ue=d,b=st(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Ga(),S!==e?(ue=d,b=Ht(S),d=b):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=Hi(),b!==e?(S=Eo(),S!==e?(ue=d,b=Zt(S),d=b):(i=d,d=e)):(i=d,d=e))),d}function So(){var d,b,S,m,A,O;if(d=i,b=_o(),b!==e){for(S=[],m=$n();m!==e;)S.push(m),m=$n();if(S!==e)if(t.charCodeAt(i)===59?(m=Dr,i++):(m=e,v===0&&W(mn)),m!==e){for(A=[],O=$n();O!==e;)A.push(O),O=$n();A!==e?(O=So(),O!==e?(ue=d,b=Gn(b,O),d=b):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e}else i=d,d=e;return d===e&&(d=i,b=_o(),b!==e&&(ue=d,b=ai(b)),d=b),d}function Po(){var d,b,S,m,A;return d=i,b=As(),b!==e?(ue=i,S=Cr(b),S?S=void 0:S=e,S!==e?(m=i,A=So(),A!==e&&(ue=m,A=Yr(b,A)),m=A,m===e&&(m=null),m!==e?(A=qe(),A!==e?(ue=d,b=Ar(b,m),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function As(){var d,b,S;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(ue=d,b=hn(b),d=b):(i=d,d=e)):(i=d,d=e),d}function Et(){var d,b,S,m;return d=i,b=i,S=sn(),S!==e?b=t.substring(b,i):b=S,b!==e?(S=i,t.charCodeAt(i)===60?(m=Ee,i++):(m=e,v===0&&W(Ne)),m===e&&(t.charCodeAt(i)===171?(m=Re,i++):(m=e,v===0&&W(_e))),m!==e?S=t.substring(S,i):S=m,S!==e?(ue=d,b=On(b,S),d=b):(i=d,d=e)):(i=d,d=e),d}function qe(){var d;return t.charCodeAt(i)===62?(d=At,i++):(d=e,v===0&&W(ht)),d===e&&(t.charCodeAt(i)===187?(d=te,i++):(d=e,v===0&&W(ce))),d}function Ki(){var d,b,S,m,A,O,L,T,q,K,P,ee,U,M,Z;if(d=i,b=Et(),b!==e)if(ue=i,S=Nn(b),S?S=void 0:S=e,S!==e){if(m=[],A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}for(;A!==e;)if(m.push(A),A=fi(),A===e&&(A=Ki(),A===e)){if(A=i,O=i,L=[],T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}if(T!==e){for(;T!==e;)if(L.push(T),T=i,t.charCodeAt(i)===60?(q=Ee,i++):(q=e,v===0&&W(Ne)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===62?(P=At,i++):(P=e,v===0&&W(ht)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=i,t.charCodeAt(i)===171?(q=Re,i++):(q=e,v===0&&W(_e)),q!==e?(K=nr(),K!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,v===0&&W(ce)),P!==e?(q=[q,K,P],T=q):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T===e&&(T=pt(),T===e))){if(T=i,q=i,K=[],P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P!==e)for(;P!==e;)K.push(P),P=i,ee=i,v++,U=i,M=qe(),M!==e?(ue=i,Z=Ye(b,M),Z?Z=void 0:Z=e,Z!==e?(M=[M,Z],U=M):(i=U,U=e)):(i=U,U=e),v--,U===e?ee=void 0:(i=ee,ee=e),ee!==e?(U=i,v++,M=Et(),v--,M===e?U=void 0:(i=U,U=e),U!==e?(M=i,v++,Z=pt(),v--,Z===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(Z=t.charAt(i),i++):(Z=e,v===0&&W(Ce)),Z!==e?(ee=[ee,U,M,Z],P=ee):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e);else K=e;K!==e?q=t.substring(q,i):q=K,q!==e&&(ue=T,q=Pt(b,q)),T=q}}else L=e;L!==e?O=t.substring(O,i):O=L,O!==e&&(ue=A,O=Pt(b,O)),A=O}m!==e?(A=qe(),A!==e?(ue=i,O=en(b,m,A),O?O=void 0:O=e,O!==e?(ue=d,b=tn(b,m,A),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;return d}function Yf(){var d,b,S,m,A;for(d=i,b=[],S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);S!==e;)b.push(S),S=i,m=i,v++,A=qe(),v--,A===e?m=void 0:(i=m,m=e),m!==e?(t.length>i?(A=t.charAt(i),i++):(A=e,v===0&&W(Ce)),A!==e?(m=[m,A],S=m):(i=S,S=e)):(i=S,S=e);return b!==e?d=t.substring(d,i):d=b,d}function nr(){var d,b,S,m,A,O,L;if(d=i,b=i,S=[],m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn()))),m!==e)for(;m!==e;)S.push(m),m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===62?(L=At,i++):(L=e,v===0&&W(ht)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=i,t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e)),A!==e?(O=nr(),O!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,v===0&&W(ce)),L!==e?(A=[A,O,L],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m===e&&(m=pt(),m===e&&(m=wn())));else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function wn(){var d,b,S,m,A,O,L,T;if(d=i,b=i,S=[],m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e),m!==e)for(;m!==e;)S.push(m),m=i,A=i,v++,O=qe(),v--,O===e?A=void 0:(i=A,A=e),A!==e?(O=i,v++,L=Et(),v--,L===e?O=void 0:(i=O,O=e),O!==e?(L=i,v++,T=pt(),v--,T===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,v===0&&W(Ce)),T!==e?(A=[A,O,L,T],m=A):(i=m,m=e)):(i=m,m=e)):(i=m,m=e)):(i=m,m=e);else S=e;return S!==e?b=t.substring(b,i):b=S,b!==e&&(ue=d,b=Ae(b)),d=b,d}function pt(){var d,b,S,m,A;return d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(S=Ee,i++):(S=e,v===0&&W(Ne)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===62?(A=At,i++):(A=e,v===0&&W(ht)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,b=i,S=i,v++,m=sn(),v--,m===e?S=void 0:(i=S,S=e),S!==e?(t.length>i?(m=t.charAt(i),i++):(m=e,v===0&&W(Ce)),m!==e?(S=[S,m],b=S):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(S=Re,i++):(S=e,v===0&&W(_e)),S!==e?(m=wn(),m!==e?(t.charCodeAt(i)===187?(A=te,i++):(A=e,v===0&&W(ce)),A!==e?(ue=d,b=mr(),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)),d}function Ka(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===65?(S=o,i++):(S=e,v===0&&W(l)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=qr(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wa(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===86?(S=f,i++):(S=e,v===0&&W(c)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=Ba(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Za(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===83?(S=wt,i++):(S=e,v===0&&W(nt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Wi(){var d,b,S,m,A,O,L;return d=i,b=i,t.charCodeAt(i)===90?(S=kt,i++):(S=e,v===0&&W(Tt)),S!==e?b=t.substring(b,i):b=S,b!==e?(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e?(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e?(A=wo(),A!==e?(O=qe(),O!==e?(ue=i,L=Er(b,m,A,O),L?L=void 0:L=e,L!==e?(ue=d,b=gn(b,m,A,O),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d}function Zi(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===68?(S=B,i++):(S=e,v===0&&W(X)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=ko(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function Ja(){var d,b,S,m,A,O,L,T,q;if(d=i,b=i,t.charCodeAt(i)===88?(S=tr,i++):(S=e,v===0&&W(Vt)),S!==e?b=t.substring(b,i):b=S,b!==e)if(ue=i,S=Mt(b),S?S=void 0:S=e,S!==e)if(m=i,t.charCodeAt(i)===60?(A=Ee,i++):(A=e,v===0&&W(Ne)),A===e&&(t.charCodeAt(i)===171?(A=Re,i++):(A=e,v===0&&W(_e))),A!==e?m=t.substring(m,i):m=A,m!==e)if(A=vo(),A!==e){if(O=i,L=ci(),L!==e){for(T=[],q=pi();q!==e;)T.push(q),q=pi();T!==e?(ue=O,L=zr(b,m,A,T),O=L):(i=O,O=e)}else i=O,O=e;O===e&&(O=null),O!==e?(L=qe(),L!==e?(ue=i,T=Mi(b,m,A,O,L),T?T=void 0:T=e,T!==e?(ue=d,b=li(b,m,A,O,L),d=b):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)}else i=d,d=e;else i=d,d=e;else i=d,d=e;else i=d,d=e;return d}function a(d){return d.reduce((b,S)=>Array.isArray(S)?b.concat(a(S)):b.concat(S),[])}function oe(d){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[d]}if(yn=s(),yn!==e&&i===t.length)return yn;throw yn!==e&&i<t.length&&W(nn()),Vi(rn,Jt<t.length?t.charAt(Jt):null,Jt<t.length?qn(Jt,Jt+1):qn(Jt,Jt))}zd.exports={SyntaxError:Ti,parse:vk}});var om=we((LA,Dk)=>{Dk.exports={name:"@podlite/schema",version:"0.0.47",description:"AST tools and schema for Podlite markup language \u2014 validate, traverse, and transform document trees",main:"./src/index.ts",homepage:"https://podlite.org",bugs:{url:"https://github.com/podlite/podlite/issues"},repository:{type:"git",url:"https://github.com/podlite/podlite.git",directory:"packages/podlite-schema"},license:"MIT",funding:{type:"opencollective",url:"https://opencollective.com/podlite"},files:["lib/**/*.js","lib/**/*.d.ts","esm","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"lib/index.js",types:"./lib/index.d.ts",module:"./esm/index.js"},scripts:{clean:"rm -rf lib esm *.tsbuildinfo",build:"run-s build:pegjs build_lib build:ast ",build_lib:"yarn g:build","build:ast":"ts-node scripts/make-ast-scheme.ts","build:pegjs":"pegmill --allowed-start-rules Document,attributesOnly -o src/grammar.js src/grammar.pegjs && pegmill -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build","watch:pegjs":"npx nodemon -e pegmill --exec 'yarn' build:pegjs",test:"yarn g:jest --passWithNoTests"},keywords:["podlite","schema","ast","syntax-tree","markup-language","transform","visitor","parser","markdown","tree"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30",slugify:"^1.6.6"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegmill:"0.1.2","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var Qu=we((AE,um)=>{um.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var bm=we((EE,ym)=>{"use strict";var $a=Object.prototype.hasOwnProperty,gm=Object.prototype.toString,fm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,pm=function(r){return typeof Array.isArray=="function"?Array.isArray(r):gm.call(r)==="[object Array]"},dm=function(r){if(!r||gm.call(r)!=="[object Object]")return!1;var e=$a.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&$a.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var s;for(s in r);return typeof s>"u"||$a.call(r,s)},mm=function(r,e){fm&&e.name==="__proto__"?fm(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},hm=function(r,e){if(e==="__proto__")if($a.call(r,e)){if(cm)return cm(r,e).value}else return;return r[e]};ym.exports=function t(){var r,e,n,s,o,l,f=arguments[0],c=1,g=arguments.length,h=!1;for(typeof f=="boolean"&&(h=f,f=arguments[1]||{},c=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});c<g;++c)if(r=arguments[c],r!=null)for(e in r)n=hm(f,e),s=hm(r,e),f!==s&&(h&&s&&(dm(s)||(o=pm(s)))?(o?(o=!1,l=n&&pm(n)?n:[]):l=n&&dm(n)?n:{},mm(f,{name:e,newValue:t(h,l,s)})):typeof s<"u"&&mm(f,{name:e,newValue:s}));return f}});var k1={};fc(k1,{PluginRegister:()=>$1,default:()=>w1,parseMd:()=>qa,plugin:()=>La});module.exports=ag(k1);var am=Sr(gd()),Lk=Sr(wd());var UA=Sr(Cd());var ik=function(t){if(t==="*:*"||t==="*")return{};if(t==="<>")return{type:"fcode"};let[r,e]=t.split(":");if(r&&e)return{name:r,type:e};if(!r)return{type:e};if(!e){let n=r.match(/(.+)\<\>/);return n?{type:"fcode",name:n[1]}:{name:r,type:"block"}}return{name:r,type:e}},_i=t=>{let r=ik(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function sk(t,r){function e(s){for(var o in s)if(s.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var An=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(s){return typeof s=="string"?!1:sk(t,s)}},Iu=(t,r)=>{if(t instanceof Array)return t.reduce((n,s)=>(n.push(...Iu(s)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(An(_i(e),t[e]));return n}return[An(_i(t),r)]};var Ou=Sr(require("crypto"),1);var Ad="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var ok=128,Si,ds,ak=t=>{!Si||Si.length<t?(Si=Buffer.allocUnsafe(t*ok),Ou.default.randomFillSync(Si),ds=0):ds+t>Si.length&&(Ou.default.randomFillSync(Si),ds=0),ds+=t};var Ed=(t=21)=>{ak(t);let r="";for(let e=ds-t;e<ds;e++)r+=Ad[Si[e]&63];return r};var ms=t=>({...t}),Nu=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},br=(t,r)=>{let e="block",n=t.name,s={id:Ed(),margin:"",...t};var o=ms({type:e,...s,content:Nu(r)});return o};var pa=(t,r)=>ms({type:"fcode",...t,content:r}),Ru=(t,r)=>ms({...t,type:"fcode",name:"L",content:Nu(r)}),_d=t=>ms({type:"fcode",name:"O",content:Nu(t)});var Sd=t=>ms({type:"fcode",name:"F",content:[{type:"text",value:t}]}),no=t=>ms({type:"verbatim",value:t});var Pd=t=>({type:"block",name:"caption",content:t}),Td=(t,r)=>({type:"image",src:t,alt:r}),Du=({margin:t=""},r)=>br({name:"root",margin:t},r);var Fd=({value:t,location:r})=>br({name:"formula",location:r},[no(t)]);var qu=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let s={};[...e,...n].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let o=function(){};return o.exists=l=>s.hasOwnProperty(l),o.getAllValues=l=>o.exists(l)?s[l]:[],o.getFirstValue=l=>o.exists(l)?o.getAllValues(l)[0]:void 0,o.getMapValue=l=>{let f=o.getFirstValue(l);return f&&typeof f=="object"&&!Array.isArray(f)?f:void 0},o.asHash=()=>s,o},Ct=qu;var Lu=(t,r)=>{let e=Ct(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};function Id(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(Id(e)):r.concat(e),[]):t}function lk(t){function r(e,n){if(e==null)return e;if(e instanceof Array)return Id(e.map(l=>r(l,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let s=t.slice();s.reverse();let o=s.findIndex(l=>l.isFor(e));if(o!==-1){let l=s.slice(o+1),f=l.findIndex(g=>g.isFor(e)),c=(g=e,h=n,$=r)=>{if(f!==-1)return l[f].fn(g,h,$,()=>{})};return typeof s[o].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[o].fn(e,n,r,c)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,n)}}return r.rules=t,r}var ma=lk;var Ve=(t,r)=>(e,n)=>(s,o,l)=>{e.writeRaw(t),s.content&&l(s.content,o),e.writeRaw(r)},St=()=>()=>()=>{},uk="\u2588",Jr=t=>t.replace(/\S/g,uk),hs=t=>{if(typeof t=="string")return t;if(!Array.isArray(t)){if(t&&typeof t=="object"){let r=t;return r.type==="text"||r.type==="verbatim"?r.value||"":hs(r.content)}return""}return t.map(hs).join("")},$r=(t,r)=>(e,n,s)=>{if(e.content)return s(e.content,n)},Ir=t=>(r,e)=>(n,s,o)=>t(n,s)(r,e)(n,s,o);var ha=(t,r)=>{let e=Iu(t).reverse();return(n,s)=>{let o=e.map(c=>An(c.rule,c.fn(n,s))).reverse(),l=r(n,s),f;return(c,g,h)=>(f||(f=ma([...h.rules,...o])),l(c,g,f))}},Or=(t,r)=>(e,n)=>{let s=t(e,n);return(o,l,f)=>{let c=Ct(o,l).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),s(o,l,f),c!==void 0&&e.removeLevel(c)}};function io(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Od(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Od(e)):r.concat(e),[])}var da=t=>{let r=[];function e(s,o){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(An(_i(s),o))}function n(s,o={}){if(s==null)return s;if(s instanceof Array)return Od(s.map(c=>n(c,o)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let f=l.findIndex(c=>c.isFor(s));if(f!==-1)return l[f].fn(s,o,n);{let c={...s};return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}}return e(t),n.rules=r,n},lr=da;var Nd=Sr(require("events")),ju=class extends Nd.EventEmitter{INDEXTERMS;FOOTNOTES;output;errors;out;ons;constructor(r){super(),this.INDEXTERMS=[],this.FOOTNOTES=[],this.output=r,this.ons=[],this.emit("ready")}escape(r){return r}write(r){return this.writeRaw(this.escape(r))}writeRaw(r){typeof this.output=="function"?this.output(r):console.log(r)}getStr(){return{errors:this.errors,toString:()=>this.out,valueOf:()=>this.out}}startWrite(r){(this.ons||[]).map(e=>super.on(...e)),this.emit("start",r),this.addListener("errors",e=>{this.errors=this.errors||[],this.errors.push(e)})}on(...r){return this.ons=this.ons||[],this.ons.unshift([...r]),this}endWrite=()=>{this.emit("end")};_add_nesting(r){}_remove_nesting(r){}addLevel(r){this._add_nesting(r)}removeLevel(r){this._remove_nesting(r)}},so=ju;var gs=(t={},r=[])=>{let e=r,n=t.processor||Rd,s=t.writer;return o.use=l,o.run=f,o.getPlugins=()=>e,o;function o(c){}function l(c,g){if(c instanceof Array)return gs(t,[...e,...g]);if(c instanceof Object){for(var h in c)c.hasOwnProperty(h)&&l(h,c[h]);return o}return e.push(An(_i(c),g)),o}function f(c,g){let h="",$=g||s||new so(X=>{h=h+X}),k=typeof $=="function"?new $(X=>{h=h+X}):$,x=typeof c=="string"?n(c):c,C=e.slice();C.reverse();let I=ma(C.map(X=>An(X.rule,X.fn(k,n,x))).reverse()),R={...t.context||{}};k.startWrite(x);let B=I(x,R);return k.endWrite(),{errors:k.errors,toString:()=>h,valueOf:()=>h,indexingTerms:k.INDEXTERMS,annotations:k.FOOTNOTES,defenitions:k.DEFINITIONS,interator:B}}};var qd=Sr(Bu());function Mu(t){if(!t||!t.trim())return[];try{return qd.parse(t,{startRule:"attributesOnly"})}catch{return[]}}var Ld=()=>t=>lr({"*":(e,n,s)=>(e.content&&(e.content=s(e.content,n,s)),delete e.location,e)})(t,{}),ga=Ld;var SC={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.writeRaw(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
|
|
15
|
-
`),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`),e.map(n=>{t.writeRaw(`[^${n.gid}]: `),n.make(),t.writeRaw(`
|
|
20
|
-
`)}))}),(e,n,s)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++;t.writeRaw(`[^${o}]`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:`fnref:${o}`,fnId:`fn:${o}`,make:()=>{s(e.content,n)}})}),"S<>":(t,r)=>(e,n,s)=>{let o=e.content||"";t.writeRaw(o.replace(/ /g," ").replace(/\n/g,`
|
|
21
|
-
`))},"T<>":Ve("`","`"),"U<>":Ve("",""),"V<>":$r,"X<>":(t,r)=>(e,n,s)=>{s(e.content,n);let{entry:o}=e;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})},"Z<>":St,pod:$r,":code":(t,r)=>(e,n,s)=>{let o=Ct(e,n),l=o.exists("lang")?o.getFirstValue("lang"):"";t.writeRaw("```"+l+`
|
|
22
|
-
`);let f=n==null?void 0:n.maskMode;e.content&&e.content.forEach(c=>{typeof c=="string"?t.writeRaw(f?Jr(c):c):c.type==="verbatim"?t.writeRaw(f?Jr(c.value):c.value):s([c],n)}),t.writeRaw("```\n")},code:Or((t,r)=>(e,n,s)=>{let o=Ct(e,n),l=o.exists("lang")?o.getFirstValue("lang"):"";t.writeRaw("```"+l+`
|
|
23
|
-
`);let f=n==null?void 0:n.maskMode;e.content&&e.content.forEach(c=>{typeof c=="string"?t.writeRaw(f?Jr(c):c):c.type==="verbatim"?t.writeRaw(f?Jr(c.value):c.value):s([c],n)}),t.writeRaw("```\n")}),data:St,":verbatim":(t,r)=>(e,n,s)=>{e.error&&t.emit("errors",e.location),t.writeRaw(n!=null&&n.maskMode?Jr(e.value):e.value)},":blankline":St,":ambient":St,":config":Ir((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,St)),":alias":Ir((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,St)),para:Or($r),":para":(t,r)=>(e,n,s)=>{e.content&&s(e.content,n),t.writeRaw(`
|
|
24
|
-
`)},"head:block":ha({":para":$r},Ir((t,r)=>{let{level:e}=t,n="#".repeat(e)+" ",s=t.numberPrefix?`${t.numberPrefix} `:"";return(o,l)=>(f,c,g)=>{o.writeRaw(n),s&&o.writeRaw(s),f.content&&g(f.content,c),o.writeRaw(`
|
|
25
|
-
`)}})),":list":Ir((t,r)=>(e,n)=>(s,o,l)=>{let f={...o,listType:s.list,listCounter:{value:1},listDepth:(o.listDepth||0)+1};s.content&&l(s.content,f)}),"item:block":(t,r)=>(e,n,s)=>{let o=" ".repeat(Math.max(0,(n.listDepth||1)-1)),l=n.listType||"unordered",f;if(l==="ordered"){let c=n.listCounter||{value:1};f=`${c.value}. `,c.value++}else f="- ";t.writeRaw(o+f),e.content&&s(e.content,n)},"comment:block":St,"boundary:block":(t,r)=>(e,n)=>{t.writeRaw(`
|
|
26
|
-
---
|
|
27
|
-
`)},defn:(t,r)=>(e,n,s)=>{e.content&&s(e.content,n),t.writeRaw(`
|
|
28
|
-
`)},"term:para":(t,r)=>(e,n,s)=>{t.writeRaw("**"),e.content&&s(e.content,n),t.writeRaw(":** ")},nested:Or($r,1),output:Or((t,r)=>(e,n,s)=>{t.writeRaw("```\n"),e.content&&s(e.content,n),t.writeRaw("```\n")},1),input:Or((t,r)=>(e,n,s)=>{t.writeRaw("```\n"),e.content&&s(e.content,n),t.writeRaw("```\n")},1),"table:block":Or((t,r)=>(e,n,s)=>{let o=Ct(e,n);o.exists("caption")&&(t.writeRaw("**"),t.write(o.getFirstValue("caption")),t.writeRaw(`**
|
|
29
|
-
|
|
30
|
-
`));let l=(e.content||[]).filter($=>$.name==="row");if(l.length===0)return;let f=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="header"&&k.value!==!1),c=($,k)=>{if(!Array.isArray($.config))return 0;let x=$.config.find(I=>I.name===k);if(!x)return 0;let C=Number(x.value);return Number.isFinite(C)&&C>1?C:0},g=l.some($=>($.content||[]).some(k=>k.name==="cell"&&(c(k,"colspan")||c(k,"rowspan")))),h=f(l[0]);if(g){t.writeRaw(`<table>
|
|
31
|
-
`),l.forEach($=>{let k=f($)?"th":"td";t.writeRaw("<tr>"),($.content||[]).filter(C=>C.name==="cell").forEach(C=>{let I=c(C,"colspan"),R=c(C,"rowspan"),B="";I&&(B+=` colspan="${I}"`),R&&(B+=` rowspan="${R}"`),t.writeRaw(`<${k}${B}>`),C.content&&C.content.forEach(X=>{typeof X=="string"?t.write(X.trim()):s([X],n)}),t.writeRaw(`</${k}>`)}),t.writeRaw(`</tr>
|
|
32
|
-
`)}),t.writeRaw(`</table>
|
|
33
|
-
`);return}l.forEach(($,k)=>{let x=($.content||[]).filter(C=>C.name==="cell");t.writeRaw("|"),x.forEach(C=>{t.writeRaw(" "),C.content&&C.content.forEach(I=>{typeof I=="string"?t.write(I.trim()):s([I],n)}),t.writeRaw(" |")}),t.writeRaw(`
|
|
34
|
-
`),k===0&&h&&(t.writeRaw("|"),x.forEach(()=>{t.writeRaw(" --- |")}),t.writeRaw(`
|
|
35
|
-
`)),k===0&&!h&&(t.writeRaw("|"),x.forEach(()=>{t.writeRaw(" --- |")}),t.writeRaw(`
|
|
36
|
-
`))}),t.writeRaw(`
|
|
37
|
-
`)}),":separator":St,row:St,cell:St,":toc":St,":toc-list":St,":toc-item":St,":image":(t,r)=>(e,n,s)=>{t.writeRaw(``)}};var dk=Sr(jd());var lm=Sr(Bu());var wk=()=>t=>{let r=(n,s={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&s.margin&&s.margin.length>0&&s.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var o=new RegExp(`^[ ]{0,${n.margin.length}}`,"gm");n.text=n.text.replace(o,"")}if(n.type==="block"){s.margin=typeof n.margin!="string"?"":n.margin;let l={...s};l.nest=(l.nest||0)+1,n.content.map(f=>{r(f,s)})}};var e={};return t.forEach(n=>r(n,e)),t},Md=wk;var oo=Sr(Vd());var xk=()=>t=>{let r=lr({":para":(e,n,s)=>lr({":text":(o,l)=>oo.parse(o.value),":verbatim":(o,l)=>oo.parse(o.value)})(e,{...n}),":block":(e,n,s)=>{if("name"in e&&e.name==="pod")return{...e,content:s(e.content,n,s)};let o=Ct(e,n),l="name"in e?e.name:"",f=["code","data","markdown","picture","formula"].includes(l),c=o.getAllValues("allow");if(io(l)||f&&c.length===0)return e;let g=c.sort(),h=lr({":verbatim":($,k)=>oo.parse($.value,{allowed:g}),":text":($,k)=>oo.parse($.value,{allowed:g}),":block":($,k)=>r($,{...k})});return{...e,content:h(e.content,{...n})}}});return r(t,{})},Hd=xk;var Ud=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^item(\d+)?/.exec(e.name);if(n){e.name="item",e.level=n[1]||1;let s=(e.config||[]).find(o=>o.name==="checked");if(s&&(e.checked=s.value!==!1&&s.value!==0&&s.value!=="0"),e.content[0]){let o=e.content[0];if(o.text){if(!s){let c=/^\[( |x)\]\s*/,g=c.exec(o.text);g&&(e.checked=g[1]==="x",o.text=o.text.replace(c,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"checked",value:e.checked,type:"boolean"}))}let l=/^(\s*#\s*)/;l.exec(o.text)&&(o.text=o.text.replace(l,""),o.type==="para"&&(o.content=[o.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}}r(e.content)}};return r(t),t};var Gd=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^head(\d+)?/.exec(e.name);if(n&&(e.name="head",e.level=n[1]||1,e.content[0])){let s=e.content[0];if(s.text){let o=/(\s*#\s*)/;o.exec(s.text)&&(s.text=s.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var Kd=()=>t=>{let r=(o,l)=>(o.name==="item"||o.name==="defn")&&l.name===o.name&&o.level===l.level&&e(o)===e(l),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let l={};return o.reduce((c,g)=>(g.name==="defn"?r(l,g)?c[c.length-1].push(g):c.push([g]):c.push(g),l=g,c),[]).map(c=>c instanceof Array?c[0].name!=="defn"?c:{type:"list",list:c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized",level:1,content:[...c]}:(c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var Wd=()=>t=>{let r=(l,f)=>(l.name==="item"||l.name==="defn")&&f.name===l.name&&l.level===f.level&&e(l)===e(f)&&n(l)===n(f),e=l=>Boolean(Ct(l,{}).exists("numbered")),n=l=>l.checked!==void 0,s=(l,f=1)=>{let c=x=>x.length>0&&x[x.length-1].type==="list",g=x=>{if(c(x))return x[x.length-1]},h=(x,C)=>C.name&&C.name==="item"&&C.type&&C.type==="block"||C.type==="blankline",$={};return l.reduce((x,C)=>C.name==="item"&&C.type==="block"&&C.level<f?[...x,C]:(C.name==="item"&&C.type==="block"&&(!c(x)||Number(C.level)===f&&g(x).list!==(e(C)?"ordered":n(C)?"task":"itemized"))&&x.push({type:"list",level:C.level,content:[],list:e(C)?"ordered":n(C)?"task":"itemized"}),c(x)&&h(g(x),C)?g(x).content.push(C):x.push(C),x),[]).map(x=>(x.content&&x.type!=="fcode"&&(x.content=s(x.content,Number(x.level||0)+1)),x))};return t=(l=>(Array.isArray(l)?l=s(l):l.type==="block"&&l.name!=="table"&&(l.content=s(l.content)),l))(t),t};var Zd=()=>t=>lr({defn:e=>{let n=e.content,s=n.length,o=[],l=!1;for(let f=0;f<s;f++){let c=n[f];if(c.type==="para"&&!l){let g=c.content[0],$=g.value.split(`
|
|
38
|
-
`),k=$.shift(),x={type:"para",name:"term",text:k,content:[{type:"text",value:k}]};o.push(x),$.length==1&&$[0]===""||(g.value=$.join(`
|
|
39
|
-
`),c.text=g.value,o.push(c)),l=!0}else o.push(c)}return e.content=o,e}})(t,{});function ao(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(ao(e)):r.concat(e),[])}function Uu(t){let r=[],e="",n=[],s=!1,o=0;for(;o<t.length;){let l=t[o];if(s){if(l==='"'&&t[o+1]==='"'){e+='"',o+=2;continue}if(l==='"'){s=!1,o++;continue}e+=l,o++;continue}if(l==='"'&&e===""){s=!0,o++;continue}if(l===","){n.push(e),e="",o++;continue}if(l==="\r"){o++;continue}if(l===`
|
|
40
|
-
`){n.push(e),r.push(n),n=[],e="",o++;continue}e+=l,o++}return(e!==""||n.length>0)&&(n.push(e),r.push(n)),r.filter(l=>!(l.length===1&&l[0].trim()===""))}function Gu(t){return t.split(/\r?\n/).map(n=>n.split(" ")).filter(n=>!(n.length===1&&n[0].trim()===""))}function ya(t){if(!t||typeof t!="string")return{type:"",params:{}};let r=t.split(";").map(s=>s.trim()),e=(r.shift()||"").toLowerCase(),n={};for(let s of r){if(!s)continue;let o=s.indexOf("=");if(o<0)continue;let l=s.slice(0,o).trim().toLowerCase(),f=s.slice(o+1).trim();(f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'"))&&(f=f.slice(1,-1)),l&&(n[l]=f)}return{type:e,params:n}}function Ku(t,r){let e=null,n=s=>{if(!e){if(Array.isArray(s)){s.forEach(n);return}if(!(!s||typeof s!="object")){if(s.type==="block"&&s.name==="data"&&Ct(s,{}).getFirstValue("key")===r){e=s;return}Array.isArray(s.content)&&s.content.forEach(n)}}};return n(t),e}function ba(t){if(!t||!Array.isArray(t.content))return"";let r=t.content.find(e=>e&&e.type==="verbatim");return r&&typeof r.value=="string"?r.value:""}function Ck(t){let r=[];lr({"row:text":l=>(r.push(l.value),l),"head:text":l=>(r.push(l.value),l)})(t,{});let s=r.join(`
|
|
41
|
-
`).trim().split(/\r?\n/).map(l=>l.trim()).filter(l=>l.length>0);if(s.length!==1)return null;let o=s[0].match(/^(data|file):(\S+)$/);return o?{scheme:o[1],target:o[2]}:null}function Qd(t){return{name:"cell",type:"block",margin:"",content:[{type:"text",value:t}]}}function Ak(t,r){let e={name:"row",type:"block",margin:"",content:t};return r&&(e.config=[{name:"header",value:!0,type:"boolean"}]),e}function Wu(t,r=!1){return t.map((e,n)=>{let s=e.map(o=>Qd(o.trim()));return Ak(s,r&&n===0)})}function lo(t,r="table"){if(!t||!Array.isArray(t.content))return t;let e=t.content.filter($=>$&&$.type==="block"&&$.name==="row");if(e.length===0)return t;let n=$=>Array.isArray($.content)?$.content.filter(k=>k&&k.name==="cell"):[],s=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="header"&&k.value===!0),o=$=>Array.isArray($.config)&&$.config.some(k=>k.name==="colspan"||k.name==="rowspan"),l=$=>n($).some(o);if(e.some(l))return t;let f=e.find(s),c=f?n(f).length:Math.max(...e.map($=>n($).length));if(c===0)return t;let g=!1,h=t.content.map($=>{if(!$||$.type!=="block"||$.name!=="row")return $;let k=n($);if(k.length===c)return $;if(k.length<c){let R=[];for(let B=k.length;B<c;B++)R.push(Qd(""));return console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 padded with ${R.length} empty`),g=!0,{...$,content:[...$.content,...R]}}let x=k.length-c;console.warn(`[${r}] row has ${k.length} cells, expected ${c} \u2014 truncated ${x}`),g=!0;let C=c,I=[];for(let R of $.content||[])R&&R.type==="block"&&R.name==="cell"?C>0&&(I.push(R),C--):I.push(R);return{...$,content:I}});return g?{...t,content:h}:t}function Ek(t){let r=new Set;for(let e of t)if(!(!e||typeof e!="string")&&(/\s\|\s/.test(e)?r.add("pipe"):/\s\+\s/.test(e)?r.add("plus"):e.trim().length>0&&r.add("whitespace"),r.size>1))break;r.size>1&&console.warn(`[table] mixed separator types detected: ${Array.from(r).join(", ")} \u2014 recommend a single style`)}function _k(t,r){return{type:"block",name:"code",margin:t.margin||"",content:Array.isArray(r.content)?r.content:[],config:Array.isArray(t.config)?t.config:[]}}var Hu=(t,r,e)=>{let n=[];for(let s=0;t.length>s;s++)n.push(e(parseInt(t[s],10),parseInt(r[s],10)));return n.join("")},Sk=(t,r)=>{let e=Math.max(...[...t,...r].map(o=>o.length));return t.map(o=>{let l=o+" ".repeat(e-o.length),f=[],c=/\s+[+|\s]\s/g,g;for(;(g=c.exec(l))!=null;){let h="1".repeat(g.index)+"0".repeat(g[0].length);f.push(h+"1".repeat(e-h.length))}return f.reduce((h,$)=>Hu(h,$,(k,x)=>k&x),"1".repeat(e))}).map(o=>Hu(o,"",l=>l==0?1:0)).reduce((o,l)=>Hu(o,l,(f,c)=>f&c),"1".repeat(e))},Jd=(t,r)=>{let n=ao(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let l=/((1+|0+))/g,f=[],c;for(;(c=l.exec(r))!=null;)c[0][0]!="1"&&f.push(o.substring(c.index,c.index+c[0].length));return f}),s=[];return n.reduce((o,l)=>{for(let f=0;f<l.length;f++)o[f]=(o[f]===void 0?"":o[f])+" "+l[f];return o},s),s},Zu=t=>/(?:^|\s)\|(?:\s|$)/.test(t)?"pipe":/(?:^|\s)\+(?:\s|$)/.test(t)?"plus":"whitespace",Xd=t=>{let r=0,e=t.length;return t[r]===""&&r++,e>r&&t[e-1]===""&&e--,t.slice(r,e)},Yd=t=>Xd(t.split(/\s*\|\s*/).map(r=>r.trim())),em=t=>Xd(t.split(/\s*\+\s*/).map(r=>r.trim())),tm=t=>t.trim().split(/\s{2,}/).filter(r=>r!==""),rm=t=>{if(t.trim()==="")return[];let e=Zu(t);return e==="pipe"?Yd(t):e==="plus"?em(t):tm(t)},Pk=t=>{let r=t.split(/\r?\n/).filter(f=>f.trim()!=="");if(r.length===0)return[];if(r.length===1)return rm(r[0]);let e=Zu(r[0]),n=e==="pipe"?Yd:e==="plus"?em:tm,s=r.map(n),o=Math.max(...s.map(f=>f.length)),l=[];for(let f=0;f<o;f++){let c=s.map(g=>g[f]??"").filter(g=>g!=="");l.push(c.join(" "))}return l},Tk=t=>{if(!Array.isArray(t.content)||t.content.length===0||!t.content.some(n=>n&&n.type==="block"&&n.name!=="cell"&&n.name!=="blankline"))return t;let e=t.content.map(n=>!n||n.type!=="block"||n.name==="cell"||n.name==="blankline"?n:{type:"block",name:"cell",content:[n],margin:n.margin||""});return{...t,content:e}},Fk=t=>Array.isArray(t.content)&&t.content.some(r=>r&&r.type==="block"&&(r.name==="row"||r.name==="cell")),nm=()=>t=>lr({table:e=>{let n=Ck(e);if(n&&n.scheme==="data"){let Y=Ku(t,n.target);if(!Y)return console.warn(`[table] no =data block found for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let pe=Ct(Y,{}).getFirstValue("mime-type"),{type:ve,params:ke}=ya(pe),Le=ve==="text/csv";if(Le||ve==="text/tab-separated-values"){let Fe=ba(Y),ge=Le?Uu(Fe):Gu(Fe);if(ge.length===0)return console.warn(`[table] ${Le?"CSV":"TSV"} parse produced no rows for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let Pe=ke.header==="present",Qe={...e,content:Wu(ge,Pe)};return lo(Qe,`table data:${n.target}`)}return console.warn(`[table] =data :key<${n.target}> has non-tabular mime-type ${pe||"(none)"} \u2014 rendered as =code`),_k(e,Y)}if(Fk(e)){let Y=(e.content||[]).map(pe=>pe&&pe.name==="row"?Tk(pe):pe);return lo({...e,content:Y},"table")}let s=[],o=Y=>{s.push(Y.value)},l=[];if(lr({"row:text":o,"head:text":o,":separator":Y=>{l.push(Y.text)}})(e),!s.length)return e;let f=Y=>Y.split(/\n/).filter(pe=>pe.length>0),c=ao(s.map(f)),g=ao(l.map(f));Ek(c);let h=[];lr({"row:text":Y=>{h.push(Y.value)}})(e);let $=(Y,pe,ve={})=>({...ve,name:Y,type:"block",content:Array.isArray(pe)?pe:[pe]}),k=Y=>$("row",Y),x=Y=>$("row",Y,{config:[{name:"header",value:!0,type:"boolean"}]}),C=Y=>$("cell",{type:"text",value:Y}),I=Sk(c,g),R=new Set(c.map(Zu)),B=R.has("pipe")||R.has("plus"),X=R.has("whitespace"),le=B&&X,be=Y=>le&&Y.split(/\r?\n/).filter(ve=>ve.trim()!=="").length<=1?Pk(Y):Jd(Y,I),he=lr({"row:text":Y=>{if(h.length==1){let pe=ao([Y.value].map(f));return le?pe.map(ve=>k(rm(ve).map(C))):pe.map(ve=>k(Jd(ve,I).map(C)))}return k(be(Y.value).map(C))},"head:text":Y=>x(be(Y.value).map(C))})(e);return lo(he,"table")}})(t,{});function Ik(t){return!Array.isArray(t)||t.length===0?[]:t.length===1&&typeof t[0]=="string"&&t[0].includes(",")?t[0].split(",").map(r=>r.trim()).filter(r=>r.length>0):t.map(r=>String(r).trim()).filter(r=>r.length>0)}function im(t,r,e){let n=t.trim();if(/^\d+$/.test(n)){let o=parseInt(n,10),l=o-1;if(l<0||l>=e)throw new Error(`column index ${o} out of range (1..${e})`);return l}if(!r)throw new Error(`column name "${t}" requires header=present`);let s=r.indexOf(t);if(s===-1)throw new Error(`column name "${t}" not found in header`);return s}function Ok(t,r,e){if(t.length===0)return t;let n=t[0].length,s=e?t[0]:null,o=r.map(l=>im(l,s,n));return t.map(l=>o.map(f=>l[f]??""))}function Nk(t,r,e){if(!e||t.length===0)return t;let n=[...t[0]];for(let[s,o]of Object.entries(r)){let l=im(s,n,n.length);n[l]=String(o)}return[n,...t.slice(1)]}function Rk(t,r){let e=Ct(t,{}),n=e.getFirstValue("src"),s=e.getFirstValue("mime-type"),o=e.getMapValue("rename"),l=e.exists("columns"),f=l?Ik(e.getAllValues("columns")):null,c=ba(t),g=c.trim().length>0;if(n&&g)throw new Error(":src and inline body are mutually exclusive");if(l&&(!f||f.length===0))throw new Error(":columns must have at least one entry; omit the attribute to render all columns");let h,$,k;if(n){let B=String(n),X=B.match(/^(file|data|http|https|doc):(.+)$/),le=X?X[1]:"file",be=X?X[2]:B;if(le==="data"){let he=Ku(r,be);if(!he)return console.warn(`[data-table] no =data block found for data:${be} \u2014 rendered as empty`),{...t,name:"table",content:[]};if(s)throw new Error(`:mime-type cannot be declared with :src<data:${be}> (inherited from referenced block)`);let Y=Ct(he,{}).getFirstValue("mime-type");if(!Y)return console.warn(`[data-table] =data block ${be} has no :mime-type \u2014 rendered as empty`),{...t,name:"table",content:[]};let pe=ya(Y);$=pe.type,k=pe.params.header==="present",h=ba(he)}else return t}else{if(!s)throw new Error("inline body requires :mime-type");let B=ya(s);$=B.type,k=B.params.header==="present",h=c}let x=$==="text/csv";if(!x&&!($==="text/tab-separated-values"))return console.warn(`[data-table] unsupported mime-type ${$} \u2014 rendered as empty`),{...t,name:"table",content:[]};let I=x?Uu(h):Gu(h);if(I.length===0)return console.warn(`[data-table] ${x?"CSV":"TSV"} parse produced no rows \u2014 rendered as empty`),{...t,name:"table",content:[]};f&&(I=Ok(I,f,k)),o&&(I=Nk(I,o,k));let R={...t,name:"table",content:Wu(I,k)};return lo(R,"data-table")}var sm=()=>t=>lr({"data-table":e=>{try{return Rk(e,t)}catch(n){return console.warn(`[data-table] ${n.message}`),{...e,name:"table",content:[]}}}})(t);var FA={":text":(t,r)=>(e,n,s)=>{e.value?t.write(n!=null&&n.maskMode?Jr(e.value):e.value):s(e.content,n)},"A<>":(t,r)=>(e,n,s)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
|
|
42
|
-
`),l=r(o),f=ga()(l);f[0].type==="para"?s(f[0].content,n):s(f,n)}},"C<>":Ve("<code>","</code>"),"D<>":(t,r)=>(e,n,s)=>{let o={node:e},l=[e.content[0]];o&&(l=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:l}),t.writeRaw("<dfn>"),s(e.content,n),t.writeRaw("</dfn>")},"B<>":Ve("<strong>","</strong>"),"I<>":Ve("<em>","</em>"),"R<>":Ve("<var>","</var>"),"K<>":Ve("<kbd>","</kbd>"),"O<>":Ve("<del>","</del>"),"G<>":(t,r)=>(e,n,s)=>{if(n.renderMode==="draft"){t.writeRaw('<span class="masked-draft">'),s(e.content,n),t.writeRaw("</span>");return}t.writeRaw('<span class="masked">'),t.write(Jr(hs(e.content))),t.writeRaw("</span>")},"H<>":Ve("<sup>","</sup>"),"J<>":Ve("<sub>","</sub>"),"L<>":Ir((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ve(`<a href="${e}">`,"</a>")}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw('<div class="footnotes">'),e.map(n=>{t.writeRaw(`<p><sup id="${n.fnId}" class="footnote"><a href="#${n.fnRefId}">[${n.gid}]</a></sup> `),n.make(),t.writeRaw("</p>")}),t.writeRaw("</div>"))}),(e,n,s)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,l=`fnref:${o}`,f=`fn:${o}`;t.writeRaw(`<sup id="${l}" class="footnote"><a href="#${f}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:l,fnId:f,make:()=>{s(e.content,n)}})}),"S<>":(t,r)=>(e,n,s)=>{let f=(e.content||"").replace(/ /g," ").replace(/\n/g,"</br>");t.writeRaw(f)},"T<>":Ve("<samp>","</samp>"),"U<>":Ve("<u>","</u>"),"V<>":$r,"X<>":(t,r)=>(e,n,s)=>{s(e.content,n);let{entry:o}=e;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})},"Z<>":St,pod:$r,":code":Ve("<pre><code>","</code></pre>"),code:Or(Ve("<pre><code>","</code></pre>")),data:St,":verbatim":(t,r)=>(e,n,s)=>{if(e.error&&t.emit("errors",e.location),n!=null&&n.maskMode){t.write(Jr(e.value));return}s(e.value,n)},":blankline":St,":ambient":St,":config":Ir((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,St)),":alias":Ir((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,St)),para:Or($r),":para":Ve("<p>","</p>"),"head:block":ha({":para":$r},Ir((t,r)=>{let{level:e}=t,n=Lu(t,r),s=`<h${e}${n?` id="${n}"`:""}>${t.numberPrefix?`<span class="head-number">${t.numberPrefix}</span> `:""}`;return Ve(s,`</h${e}>`)})),":list":Ir((t,r)=>t.list==="ordered"?Ve("<ol>","</ol>"):t.list==="variable"?Ve("<dl>","</dl>"):t.list==="task"?Ve('<ul class="task-list">',"</ul>"):Ve("<ul>","</ul>")),"item:block":(t,r)=>(e,n,s)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e)),e.checked!==void 0?(t.writeRaw('<li class="task-list-item">'),t.writeRaw(e.checked?'<input type="checkbox" disabled checked> ':'<input type="checkbox" disabled> ')):t.writeRaw("<li>"),s(e.content,n),t.writeRaw("</li>")},"comment:block":St,"boundary:block":(t,r)=>(e,n)=>{let s=Ct(e,n);s.exists("caption")?(t.writeRaw('<hr title="'),t.write(s.getFirstValue("caption")),t.writeRaw('">')):t.writeRaw("<hr>")},defn:Ve("","</dd>"),"term:para":Ve("<dt>","</dt><dd>"),nested:Or($r,1),output:Or(Ve("<pre><samp>","</samp></pre>"),1),input:Or(Ve("<pre><kbd>","</kbd></pre>"),1),"table:block":Or((t,r)=>(e,n,s)=>{let o=Ct(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>"));let l={...n,...e.align&&{"table.align":e.align}},f=e.content||[],c=I=>I&&I.name==="row"&&Array.isArray(I.config)&&I.config.some(R=>R.name==="header"&&R.value!==!1);if(!f.some(c)){s(f,l),t.writeRaw("</table>");return}let h=f.filter(I=>I&&I.name==="row"),$=f.filter(I=>!I||I.name!=="row"),k=0;for(;k<h.length&&c(h[k]);)k++;let x=h.slice(0,k),C=h.slice(k);s($,l),t.writeRaw("<thead>"),s(x,l),t.writeRaw("</thead>"),C.length>0&&(t.writeRaw("<tbody>"),s(C,l),t.writeRaw("</tbody>")),t.writeRaw("</table>")}),":separator":St,row:(t,r)=>(e,n,s)=>{let o=Ct(e,n),l=o.exists("header")&&o.getFirstValue("header")!==!1;t.writeRaw("<tr>"),s(e.content,{...n,__row_header:l,cellinRow:0}),t.writeRaw("</tr>")},cell:(t,r)=>(e,n,s)=>{let o=n.__row_header?"th":"td",l=Ct(e,n),f=l.exists("colspan")?l.getFirstValue("colspan"):null,c=l.exists("rowspan")?l.getFirstValue("rowspan"):null,g=($=>{if(!Array.isArray($))return null;let k=n.cellinRow++;return $[k]||null})(n["table.align"]),h="";f!==null&&Number(f)>1&&(h+=` colspan="${f}"`),c!==null&&Number(c)>1&&(h+=` rowspan="${c}"`),g&&["left","right","center","justify"].includes(g)&&(h+=` style="text-align:${g}"`),t.writeRaw(`<${o}${h}>`),s(e.content,n),t.writeRaw(`</${o}>`)},":toc":(t,r)=>(e,n,s)=>{t.writeRaw('<div className="toc">');let o=Ct(e,n);if(o.exists("title")){let l=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(l),t.writeRaw("</div>")}s(e.content,n),t.writeRaw("</div>")},":toc-list":Ir((t,r)=>Ve(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":Ir((t,r)=>Ve('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,s)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var rE=new am.default({strict:!0,allowUnionTypes:!0});function Bd(){var t=[];return r.use=e,r.parse=n,r.use(Md),r.use(Ud),r.use(Gd),r.use(Zd),r.use(nm),r.use(sm),r.use(Hd),r.use(Wd),r.use(Kd),r;function r(){}function e(s){if(!["function"].includes(typeof s))throw s;return t.push(s),r}function n(s,o={skipChain:0,podMode:1}){let{skipChain:l=0,podMode:f=1}=o,c=lm.parse(s,{podMode:f});if(!l)for(let g=0;g<t.length;g++){let h=t[g];c=h(o)(c)}return c}}var Rd=Bd().parse;var{version:nE}=om();function Ju(t){if(t)throw t}var _m=Sr(Qu(),1),lf=Sr(bm(),1);function uo(t){if(typeof t!="object"||t===null)return!1;let r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $m(){let t=[],r={run:e,use:n};return r;function e(...s){let o=-1,l=s.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);f(null,...s);function f(c,...g){let h=t[++o],$=-1;if(c){l(c);return}for(;++$<s.length;)(g[$]===null||g[$]===void 0)&&(g[$]=s[$]);s=g,h?jk(h,f)(...g):l(null,...g)}}function n(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function jk(t,r){let e;return n;function n(...l){let f=t.length>l.length,c;f&&l.push(s);try{c=t.apply(this,l)}catch(g){let h=g;if(f&&e)throw h;return s(h)}f||(c instanceof Promise?c.then(o,s):c instanceof Error?s(c):o(c))}function s(l,...f){e||(e=!0,r(l,...f))}function o(l){s(null,l)}}var xm=Sr(Qu(),1);function Fi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?wm(t.position):"start"in t||"end"in t?wm(t):"line"in t||"column"in t?Xu(t):""}function Xu(t){return km(t&&t.line)+":"+km(t&&t.column)}function wm(t){return Xu(t&&t.start)+"-"+Xu(t&&t.end)}function km(t){return t&&typeof t=="number"?t:1}var wr=class extends Error{constructor(r,e,n){let s=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let l=n.indexOf(":");l===-1?s[1]=n:(s[0]=n.slice(0,l),s[1]=n.slice(l+1))}e&&("type"in e||"position"in e?e.position&&(o=e.position):"start"in e||"end"in e?o=e:("line"in e||"column"in e)&&(o.start=e)),this.name=Fi(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=s[0],this.ruleId=s[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.fatal=null;wr.prototype.column=null;wr.prototype.line=null;wr.prototype.source=null;wr.prototype.ruleId=null;wr.prototype.position=null;var Qr=Sr(require("path"),1);var Yu=Sr(require("process"),1);var ef=require("url");function wa(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var tf=["history","path","basename","stem","extname","dirname"],fo=class{constructor(r){let e;r?typeof r=="string"||(0,xm.default)(r)?e={value:r}:wa(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Yu.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<tf.length;){let o=tf[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let s;for(s in e)tf.includes(s)||(this[s]=e[s])}get path(){return this.history[this.history.length-1]}set path(r){wa(r)&&(r=(0,ef.fileURLToPath)(r)),nf(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Qr.default.dirname(this.path):void 0}set dirname(r){vm(this.basename,"dirname"),this.path=Qr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Qr.default.basename(this.path):void 0}set basename(r){nf(r,"basename"),rf(r,"basename"),this.path=Qr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Qr.default.extname(this.path):void 0}set extname(r){if(rf(r,"extname"),vm(this.dirname,"extname"),r){if(r.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Qr.default.basename(this.path,this.extname):void 0}set stem(r){nf(r,"stem"),rf(r,"stem"),this.path=Qr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let s=new wr(r,e,n);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(r,e,n){let s=this.message(r,e,n);return s.fatal=null,s}fail(r,e,n){let s=this.message(r,e,n);throw s.fatal=!0,s}};function rf(t,r){if(t&&t.includes(Qr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Qr.default.sep+"`")}function nf(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function vm(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var uf=Pm().freeze(),Sm={}.hasOwnProperty;function Pm(){let t=$m(),r=[],e={},n,s=-1;return o.data=l,o.Parser=void 0,o.Compiler=void 0,o.freeze=f,o.attachers=r,o.use=c,o.parse=g,o.stringify=h,o.run=$,o.runSync=k,o.process=x,o.processSync=C,o;function o(){let I=Pm(),R=-1;for(;++R<r.length;)I.use(...r[R]);return I.data((0,lf.default)(!0,{},e)),I}function l(I,R){return typeof I=="string"?arguments.length===2?(af("data",n),e[I]=R,o):Sm.call(e,I)&&e[I]||null:I?(af("data",n),e=I,o):e}function f(){if(n)return o;for(;++s<r.length;){let[I,...R]=r[s];if(R[0]===!1)continue;R[0]===!0&&(R[0]=void 0);let B=I.call(o,...R);typeof B=="function"&&t.use(B)}return n=!0,s=Number.POSITIVE_INFINITY,o}function c(I,...R){let B;if(af("use",n),I!=null)if(typeof I=="function")he(I,...R);else if(typeof I=="object")Array.isArray(I)?be(I):le(I);else throw new TypeError("Expected usable value, not `"+I+"`");return B&&(e.settings=Object.assign(e.settings||{},B)),o;function X(Y){if(typeof Y=="function")he(Y);else if(typeof Y=="object")if(Array.isArray(Y)){let[pe,...ve]=Y;he(pe,...ve)}else le(Y);else throw new TypeError("Expected usable value, not `"+Y+"`")}function le(Y){be(Y.plugins),Y.settings&&(B=Object.assign(B||{},Y.settings))}function be(Y){let pe=-1;if(Y!=null)if(Array.isArray(Y))for(;++pe<Y.length;){let ve=Y[pe];X(ve)}else throw new TypeError("Expected a list of plugins, not `"+Y+"`")}function he(Y,pe){let ve=-1,ke;for(;++ve<r.length;)if(r[ve][0]===Y){ke=r[ve];break}ke?(uo(ke[1])&&uo(pe)&&(pe=(0,lf.default)(!0,ke[1],pe)),ke[1]=pe):r.push([...arguments])}}function g(I){o.freeze();let R=co(I),B=o.Parser;return sf("parse",B),Cm(B,"parse")?new B(String(R),R).parse():B(String(R),R)}function h(I,R){o.freeze();let B=co(R),X=o.Compiler;return of("stringify",X),Am(I),Cm(X,"compile")?new X(I,B).compile():X(I,B)}function $(I,R,B){if(Am(I),o.freeze(),!B&&typeof R=="function"&&(B=R,R=void 0),!B)return new Promise(X);X(null,B);function X(le,be){t.run(I,co(R),he);function he(Y,pe,ve){pe=pe||I,Y?be(Y):le?le(pe):B(null,pe,ve)}}}function k(I,R){let B,X;return o.run(I,R,le),Em("runSync","run",X),B;function le(be,he){Ju(be),B=he,X=!0}}function x(I,R){if(o.freeze(),sf("process",o.Parser),of("process",o.Compiler),!R)return new Promise(B);B(null,R);function B(X,le){let be=co(I);o.run(o.parse(be),be,(Y,pe,ve)=>{if(Y||!pe||!ve)he(Y);else{let ke=o.stringify(pe,ve);ke==null||(zk(ke)?ve.value=ke:ve.result=ke),he(Y,ve)}});function he(Y,pe){Y||!pe?le(Y):X?X(pe):R(null,pe)}}}function C(I){let R;o.freeze(),sf("processSync",o.Parser),of("processSync",o.Compiler);let B=co(I);return o.process(B,X),Em("processSync","process",R),B;function X(le){R=!0,Ju(le)}}}function Cm(t,r){return typeof t=="function"&&t.prototype&&(Bk(t.prototype)||r in t.prototype)}function Bk(t){let r;for(r in t)if(Sm.call(t,r))return!0;return!1}function sf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function of(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function af(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Am(t){if(!uo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Em(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function co(t){return Mk(t)?t:new fo(t)}function Mk(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function zk(t){return typeof t=="string"||(0,_m.default)(t)}function Fm(t,r){var{includeImageAlt:e=!0}=r||{};return Im(t,e)}function Im(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Tm(t.children,r)||Array.isArray(t)&&Tm(t,r))||""}function Tm(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=Im(t[n],r);return e.join("")}function Nt(t,r,e,n){let s=t.length,o=0,l;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,e=e>0?e:0,n.length<1e4)l=Array.from(n),l.unshift(r,e),[].splice.apply(t,l);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)l=n.slice(o,o+1e4),l.unshift(r,0),[].splice.apply(t,l),o+=1e4,r+=1e4}function kr(t,r){return t.length>0?(Nt(t,t.length,0,r),t):r}var Om={}.hasOwnProperty;function ka(t){let r={},e=-1;for(;++e<t.length;)Vk(r,t[e]);return r}function Vk(t,r){let e;for(e in r){let s=(Om.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],l;for(l in o){Om.call(s,l)||(s[l]=[]);let f=o[l];Hk(s[l],Array.isArray(f)?f:f?[f]:[])}}}function Hk(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Nt(t,0,0,n)}var Nm=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var ur=ni(/[A-Za-z]/),Ii=ni(/\d/),Rm=ni(/[\dA-Fa-f]/),Wt=ni(/[\dA-Za-z]/),Dm=ni(/[!-/:-@[-`{-~]/),ff=ni(/[#-'*+\--9=?A-Z^-~]/);function ri(t){return t!==null&&(t<32||t===127)}function rt(t){return t!==null&&(t<0||t===32)}function de(t){return t!==null&&t<-2}function Ue(t){return t===-2||t===-1||t===32}var Oi=ni(/\s/),Ni=ni(Nm);function ni(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function xe(t,r,e,n){let s=n?n-1:Number.POSITIVE_INFINITY,o=0;return l;function l(c){return Ue(c)?(t.enter(e),f(c)):r(c)}function f(c){return Ue(c)&&o++<s?(t.consume(c),f):(t.exit(e),r(c))}}var qm={tokenize:Uk};function Uk(t){let r=t.attempt(this.parser.constructs.contentInitial,n,s),e;return r;function n(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),xe(t,r,"linePrefix")}function s(f){return t.enter("paragraph"),o(f)}function o(f){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,l(f)}function l(f){if(f===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(f);return}return de(f)?(t.consume(f),t.exit("chunkText"),o):(t.consume(f),l)}}var jm={tokenize:Gk},Lm={tokenize:Kk};function Gk(t){let r=this,e=[],n=0,s,o,l;return f;function f(le){if(n<e.length){let be=e[n];return r.containerState=be[1],t.attempt(be[0].continuation,c,g)(le)}return g(le)}function c(le){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&X();let be=r.events.length,he=be,Y;for(;he--;)if(r.events[he][0]==="exit"&&r.events[he][1].type==="chunkFlow"){Y=r.events[he][1].end;break}B(n);let pe=be;for(;pe<r.events.length;)r.events[pe][1].end=Object.assign({},Y),pe++;return Nt(r.events,he+1,0,r.events.slice(be)),r.events.length=pe,g(le)}return f(le)}function g(le){if(n===e.length){if(!s)return k(le);if(s.currentConstruct&&s.currentConstruct.concrete)return C(le);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Lm,h,$)(le)}function h(le){return s&&X(),B(n),k(le)}function $(le){return r.parser.lazy[r.now().line]=n!==e.length,l=r.now().offset,C(le)}function k(le){return r.containerState={},t.attempt(Lm,x,C)(le)}function x(le){return n++,e.push([r.currentConstruct,r.containerState]),k(le)}function C(le){if(le===null){s&&X(),B(0),t.consume(le);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:s}),I(le)}function I(le){if(le===null){R(t.exit("chunkFlow"),!0),B(0),t.consume(le);return}return de(le)?(t.consume(le),R(t.exit("chunkFlow")),n=0,r.interrupt=void 0,f):(t.consume(le),I)}function R(le,be){let he=r.sliceStream(le);if(be&&he.push(null),le.previous=o,o&&(o.next=le),o=le,s.defineSkip(le.start),s.write(he),r.parser.lazy[le.start.line]){let Y=s.events.length;for(;Y--;)if(s.events[Y][1].start.offset<l&&(!s.events[Y][1].end||s.events[Y][1].end.offset>l))return;let pe=r.events.length,ve=pe,ke,Le;for(;ve--;)if(r.events[ve][0]==="exit"&&r.events[ve][1].type==="chunkFlow"){if(ke){Le=r.events[ve][1].end;break}ke=!0}for(B(n),Y=pe;Y<r.events.length;)r.events[Y][1].end=Object.assign({},Le),Y++;Nt(r.events,ve+1,0,r.events.slice(pe)),r.events.length=Y}}function B(le){let be=e.length;for(;be-- >le;){let he=e[be];r.containerState=he[1],he[0].exit.call(r,t)}e.length=le}function X(){s.write([null]),o=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Kk(t,r,e){return xe(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ys(t){if(t===null||rt(t)||Oi(t))return 1;if(Ni(t))return 2}function ii(t,r,e){let n=[],s=-1;for(;++s<t.length;){let o=t[s].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var po={name:"attention",tokenize:Zk,resolveAll:Wk};function Wk(t,r){let e=-1,n,s,o,l,f,c,g,h;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let $=Object.assign({},t[n][1].end),k=Object.assign({},t[e][1].start);Bm($,-c),Bm(k,c),l={type:c>1?"strongSequence":"emphasisSequence",start:$,end:Object.assign({},t[n][1].end)},f={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:k},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},s={type:c>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},f.end)},t[n][1].end=Object.assign({},l.start),t[e][1].start=Object.assign({},f.end),g=[],t[n][1].end.offset-t[n][1].start.offset&&(g=kr(g,[["enter",t[n][1],r],["exit",t[n][1],r]])),g=kr(g,[["enter",s,r],["enter",l,r],["exit",l,r],["enter",o,r]]),g=kr(g,ii(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),g=kr(g,[["exit",o,r],["enter",f,r],["exit",f,r],["exit",s,r]]),t[e][1].end.offset-t[e][1].start.offset?(h=2,g=kr(g,[["enter",t[e][1],r],["exit",t[e][1],r]])):h=0,Nt(t,n-1,e-n+3,g),e=n+g.length-h-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function Zk(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,s=ys(n),o;return l;function l(c){return t.enter("attentionSequence"),o=c,f(c)}function f(c){if(c===o)return t.consume(c),f;let g=t.exit("attentionSequence"),h=ys(c),$=!h||h===2&&s||e.includes(c),k=!s||s===2&&h||e.includes(n);return g._open=Boolean(o===42?$:$&&(s||!k)),g._close=Boolean(o===42?k:k&&(h||!$)),r(c)}}function Bm(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var cf={name:"autolink",tokenize:Jk};function Jk(t,r,e){let n=1;return s;function s(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(C){return ur(C)?(t.consume(C),l):ff(C)?g(C):e(C)}function l(C){return C===43||C===45||C===46||Wt(C)?f(C):g(C)}function f(C){return C===58?(t.consume(C),c):(C===43||C===45||C===46||Wt(C))&&n++<32?(t.consume(C),f):g(C)}function c(C){return C===62?(t.exit("autolinkProtocol"),x(C)):C===null||C===32||C===60||ri(C)?e(C):(t.consume(C),c)}function g(C){return C===64?(t.consume(C),n=0,h):ff(C)?(t.consume(C),g):e(C)}function h(C){return Wt(C)?$(C):e(C)}function $(C){return C===46?(t.consume(C),n=0,h):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",x(C)):k(C)}function k(C){return(C===45||Wt(C))&&n++<63?(t.consume(C),C===45?k:$):e(C)}function x(C){return t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),r}}var En={tokenize:Qk,partial:!0};function Qk(t,r,e){return xe(t,n,"linePrefix");function n(s){return s===null||de(s)?r(s):e(s)}}var va={name:"blockQuote",tokenize:Xk,continuation:{tokenize:Yk},exit:ev};function Xk(t,r,e){let n=this;return s;function s(l){if(l===62){let f=n.containerState;return f.open||(t.enter("blockQuote",{_container:!0}),f.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(l),t.exit("blockQuoteMarker"),o}return e(l)}function o(l){return Ue(l)?(t.enter("blockQuotePrefixWhitespace"),t.consume(l),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(l))}}function Yk(t,r,e){return xe(t,t.attempt(va,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ev(t){t.exit("blockQuote")}var xa={name:"characterEscape",tokenize:tv};function tv(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return Dm(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var pf={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
43
|
-
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var rv={}.hasOwnProperty;function bs(t){return rv.call(pf,t)?pf[t]:!1}var Ca={name:"characterReference",tokenize:nv};function nv(t,r,e){let n=this,s=0,o,l;return f;function f($){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),c}function c($){return $===35?(t.enter("characterReferenceMarkerNumeric"),t.consume($),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),o=31,l=Wt,h($))}function g($){return $===88||$===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume($),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,l=Rm,h):(t.enter("characterReferenceValue"),o=7,l=Ii,h($))}function h($){let k;return $===59&&s?(k=t.exit("characterReferenceValue"),l===Wt&&!bs(n.sliceSerialize(k))?e($):(t.enter("characterReferenceMarker"),t.consume($),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):l($)&&s++<o?(t.consume($),h):e($)}}var Aa={name:"codeFenced",tokenize:iv,concrete:!0};function iv(t,r,e){let n=this,s={tokenize:he,partial:!0},o={tokenize:be,partial:!0},l=this.events[this.events.length-1],f=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0,g;return h;function h(Y){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g=Y,$(Y)}function $(Y){return Y===g?(t.consume(Y),c++,$):(t.exit("codeFencedFenceSequence"),c<3?e(Y):xe(t,k,"whitespace")(Y))}function k(Y){return Y===null||de(Y)?R(Y):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(Y))}function x(Y){return Y===null||rt(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),xe(t,C,"whitespace")(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),x)}function C(Y){return Y===null||de(Y)?R(Y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Y))}function I(Y){return Y===null||de(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),R(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),I)}function R(Y){return t.exit("codeFencedFence"),n.interrupt?r(Y):B(Y)}function B(Y){return Y===null?le(Y):de(Y)?t.attempt(o,t.attempt(s,le,f?xe(t,B,"linePrefix",f+1):B),le)(Y):(t.enter("codeFlowValue"),X(Y))}function X(Y){return Y===null||de(Y)?(t.exit("codeFlowValue"),B(Y)):(t.consume(Y),X)}function le(Y){return t.exit("codeFenced"),r(Y)}function be(Y,pe,ve){let ke=this;return Le;function Le(Fe){return Y.enter("lineEnding"),Y.consume(Fe),Y.exit("lineEnding"),Te}function Te(Fe){return ke.parser.lazy[ke.now().line]?ve(Fe):pe(Fe)}}function he(Y,pe,ve){let ke=0;return xe(Y,Le,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(ge){return Y.enter("codeFencedFence"),Y.enter("codeFencedFenceSequence"),Te(ge)}function Te(ge){return ge===g?(Y.consume(ge),ke++,Te):ke<c?ve(ge):(Y.exit("codeFencedFenceSequence"),xe(Y,Fe,"whitespace")(ge))}function Fe(ge){return ge===null||de(ge)?(Y.exit("codeFencedFence"),pe(ge)):ve(ge)}}}var mo={name:"codeIndented",tokenize:ov},sv={tokenize:av,partial:!0};function ov(t,r,e){let n=this;return s;function s(g){return t.enter("codeIndented"),xe(t,o,"linePrefix",4+1)(g)}function o(g){let h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(g):e(g)}function l(g){return g===null?c(g):de(g)?t.attempt(sv,l,c)(g):(t.enter("codeFlowValue"),f(g))}function f(g){return g===null||de(g)?(t.exit("codeFlowValue"),l(g)):(t.consume(g),f)}function c(g){return t.exit("codeIndented"),r(g)}}function av(t,r,e){let n=this;return s;function s(l){return n.parser.lazy[n.now().line]?e(l):de(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),s):xe(t,o,"linePrefix",4+1)(l)}function o(l){let f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):de(l)?s(l):e(l)}}var df={name:"codeText",tokenize:fv,resolve:lv,previous:uv};function lv(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[r][1].type="codeTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="codeTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function uv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fv(t,r,e){let n=this,s=0,o,l;return f;function f(k){return t.enter("codeText"),t.enter("codeTextSequence"),c(k)}function c(k){return k===96?(t.consume(k),s++,c):(t.exit("codeTextSequence"),g(k))}function g(k){return k===null?e(k):k===96?(l=t.enter("codeTextSequence"),o=0,$(k)):k===32?(t.enter("space"),t.consume(k),t.exit("space"),g):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),g):(t.enter("codeTextData"),h(k))}function h(k){return k===null||k===32||k===96||de(k)?(t.exit("codeTextData"),g(k)):(t.consume(k),h)}function $(k){return k===96?(t.consume(k),o++,$):o===s?(t.exit("codeTextSequence"),t.exit("codeText"),r(k)):(l.type="codeTextData",h(k))}}function Ea(t){let r={},e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,cv(t,e)),e=r[e],g=!0);else if(n[1]._container){for(o=e,s=void 0;o--&&(l=t[o],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(s&&(t[s][1].type="lineEndingBlank"),l[1].type="lineEnding",s=o);s&&(n[1].end=Object.assign({},t[s][1].start),f=t.slice(s,e),f.unshift(n),Nt(t,s,e-s+1,f))}}return!g}function cv(t,r){let e=t[r][1],n=t[r][2],s=r-1,o=[],l=e._tokenizer||n.parser[e.contentType](e.start),f=l.events,c=[],g={},h,$,k=-1,x=e,C=0,I=0,R=[I];for(;x;){for(;t[++s][1]!==x;);o.push(s),x._tokenizer||(h=n.sliceStream(x),x.next||h.push(null),$&&l.defineSkip(x.start),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(h),x._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),$=x,x=x.next}for(x=e;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(I=k+1,R.push(I),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(l.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),k=R.length;k--;){let B=f.slice(R[k],R[k+1]),X=o.pop();c.unshift([X,X+B.length-1]),Nt(t,X,2,B)}for(k=-1;++k<c.length;)g[C+c[k][0]]=C+c[k][1],C+=c[k][1]-c[k][0]-1;return g}var mf={tokenize:mv,resolve:dv},pv={tokenize:hv,partial:!0};function dv(t){return Ea(t),t}function mv(t,r){let e;return n;function n(f){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):de(f)?t.check(pv,l,o)(f):(t.consume(f),s)}function o(f){return t.exit("chunkContent"),t.exit("content"),r(f)}function l(f){return t.consume(f),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,s}}function hv(t,r,e){let n=this;return s;function s(l){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),xe(t,o,"linePrefix")}function o(l){if(l===null||de(l))return e(l);let f=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(l):t.interrupt(n.parser.constructs.flow,e,r)(l)}}function _a(t,r,e,n,s,o,l,f,c){let g=c||Number.POSITIVE_INFINITY,h=0;return $;function $(B){return B===60?(t.enter(n),t.enter(s),t.enter(o),t.consume(B),t.exit(o),k):B===null||B===41||ri(B)?e(B):(t.enter(n),t.enter(l),t.enter(f),t.enter("chunkString",{contentType:"string"}),I(B))}function k(B){return B===62?(t.enter(o),t.consume(B),t.exit(o),t.exit(s),t.exit(n),r):(t.enter(f),t.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===62?(t.exit("chunkString"),t.exit(f),k(B)):B===null||B===60||de(B)?e(B):(t.consume(B),B===92?C:x)}function C(B){return B===60||B===62||B===92?(t.consume(B),x):x(B)}function I(B){return B===40?++h>g?e(B):(t.consume(B),I):B===41?h--?(t.consume(B),I):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):B===null||rt(B)?h?e(B):(t.exit("chunkString"),t.exit(f),t.exit(l),t.exit(n),r(B)):ri(B)?e(B):(t.consume(B),B===92?R:I)}function R(B){return B===40||B===41||B===92?(t.consume(B),I):I(B)}}function Sa(t,r,e,n,s,o){let l=this,f=0,c;return g;function g(x){return t.enter(n),t.enter(s),t.consume(x),t.exit(s),t.enter(o),h}function h(x){return x===null||x===91||x===93&&!c||x===94&&!f&&"_hiddenFootnoteSupport"in l.parser.constructs||f>999?e(x):x===93?(t.exit(o),t.enter(s),t.consume(x),t.exit(s),t.exit(n),r):de(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),$(x))}function $(x){return x===null||x===91||x===93||de(x)||f++>999?(t.exit("chunkString"),h(x)):(t.consume(x),c=c||!Ue(x),x===92?k:$)}function k(x){return x===91||x===92||x===93?(t.consume(x),f++,$):$(x)}}function Pa(t,r,e,n,s,o){let l;return f;function f(k){return t.enter(n),t.enter(s),t.consume(k),t.exit(s),l=k===40?41:k,c}function c(k){return k===l?(t.enter(s),t.consume(k),t.exit(s),t.exit(n),r):(t.enter(o),g(k))}function g(k){return k===l?(t.exit(o),c(l)):k===null?e(k):de(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),xe(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===l||k===null||de(k)?(t.exit("chunkString"),g(k)):(t.consume(k),k===92?$:h)}function $(k){return k===l||k===92?(t.consume(k),h):h(k)}}function Ri(t,r){let e;return n;function n(s){return de(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e=!0,n):Ue(s)?xe(t,n,e?"linePrefix":"lineSuffix")(s):r(s)}}function fr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var hf={name:"definition",tokenize:yv},gv={tokenize:bv,partial:!0};function yv(t,r,e){let n=this,s;return o;function o(c){return t.enter("definition"),Sa.call(n,t,l,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function l(c){return s=fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),Ri(t,_a(t,t.attempt(gv,xe(t,f,"whitespace"),xe(t,f,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function f(c){return c===null||de(c)?(t.exit("definition"),n.parser.defined.includes(s)||n.parser.defined.push(s),r(c)):e(c)}}function bv(t,r,e){return n;function n(l){return rt(l)?Ri(t,s)(l):e(l)}function s(l){return l===34||l===39||l===40?Pa(t,xe(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(l):e(l)}function o(l){return l===null||de(l)?r(l):e(l)}}var gf={name:"hardBreakEscape",tokenize:$v};function $v(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),s}function s(o){return de(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var yf={name:"headingAtx",tokenize:kv,resolve:wv};function wv(t,r){let e=t.length-2,n=3,s,o;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(s={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},o={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},Nt(t,n,e-n+1,[["enter",s,r],["enter",o,r],["exit",o,r],["exit",s,r]])),t}function kv(t,r,e){let n=this,s=0;return o;function o(h){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&s++<6?(t.consume(h),l):h===null||rt(h)?(t.exit("atxHeadingSequence"),n.interrupt?r(h):f(h)):e(h)}function f(h){return h===35?(t.enter("atxHeadingSequence"),c(h)):h===null||de(h)?(t.exit("atxHeading"),r(h)):Ue(h)?xe(t,f,"whitespace")(h):(t.enter("atxHeadingText"),g(h))}function c(h){return h===35?(t.consume(h),c):(t.exit("atxHeadingSequence"),f(h))}function g(h){return h===null||h===35||rt(h)?(t.exit("atxHeadingText"),f(h)):(t.consume(h),g)}}var Mm=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bf=["pre","script","style","textarea"];var $f={name:"htmlFlow",tokenize:Cv,resolveTo:xv,concrete:!0},vv={tokenize:Av,partial:!0};function xv(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function Cv(t,r,e){let n=this,s,o,l,f,c;return g;function g(H){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(H),h}function h(H){return H===33?(t.consume(H),$):H===47?(t.consume(H),C):H===63?(t.consume(H),s=3,n.interrupt?r:wt):ur(H)?(t.consume(H),l=String.fromCharCode(H),o=!0,I):e(H)}function $(H){return H===45?(t.consume(H),s=2,k):H===91?(t.consume(H),s=5,l="CDATA[",f=0,x):ur(H)?(t.consume(H),s=4,n.interrupt?r:wt):e(H)}function k(H){return H===45?(t.consume(H),n.interrupt?r:wt):e(H)}function x(H){return H===l.charCodeAt(f++)?(t.consume(H),f===l.length?n.interrupt?r:Te:x):e(H)}function C(H){return ur(H)?(t.consume(H),l=String.fromCharCode(H),I):e(H)}function I(H){return H===null||H===47||H===62||rt(H)?H!==47&&o&&bf.includes(l.toLowerCase())?(s=1,n.interrupt?r(H):Te(H)):Mm.includes(l.toLowerCase())?(s=6,H===47?(t.consume(H),R):n.interrupt?r(H):Te(H)):(s=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(H):o?X(H):B(H)):H===45||Wt(H)?(t.consume(H),l+=String.fromCharCode(H),I):e(H)}function R(H){return H===62?(t.consume(H),n.interrupt?r:Te):e(H)}function B(H){return Ue(H)?(t.consume(H),B):ke(H)}function X(H){return H===47?(t.consume(H),ke):H===58||H===95||ur(H)?(t.consume(H),le):Ue(H)?(t.consume(H),X):ke(H)}function le(H){return H===45||H===46||H===58||H===95||Wt(H)?(t.consume(H),le):be(H)}function be(H){return H===61?(t.consume(H),he):Ue(H)?(t.consume(H),be):X(H)}function he(H){return H===null||H===60||H===61||H===62||H===96?e(H):H===34||H===39?(t.consume(H),c=H,Y):Ue(H)?(t.consume(H),he):(c=null,pe(H))}function Y(H){return H===null||de(H)?e(H):H===c?(t.consume(H),ve):(t.consume(H),Y)}function pe(H){return H===null||H===34||H===39||H===60||H===61||H===62||H===96||rt(H)?be(H):(t.consume(H),pe)}function ve(H){return H===47||H===62||Ue(H)?X(H):e(H)}function ke(H){return H===62?(t.consume(H),Le):e(H)}function Le(H){return Ue(H)?(t.consume(H),Le):H===null||de(H)?Te(H):e(H)}function Te(H){return H===45&&s===2?(t.consume(H),Qe):H===60&&s===1?(t.consume(H),ne):H===62&&s===4?(t.consume(H),nt):H===63&&s===3?(t.consume(H),wt):H===93&&s===5?(t.consume(H),Xe):de(H)&&(s===6||s===7)?t.check(vv,nt,Fe)(H):H===null||de(H)?Fe(H):(t.consume(H),Te)}function Fe(H){return t.exit("htmlFlowData"),ge(H)}function ge(H){return H===null?z(H):de(H)?t.attempt({tokenize:Pe,partial:!0},ge,z)(H):(t.enter("htmlFlowData"),Te(H))}function Pe(H,dr,Lt){return kt;function kt(Ft){return H.enter("lineEnding"),H.consume(Ft),H.exit("lineEnding"),Tt}function Tt(Ft){return n.parser.lazy[n.now().line]?Lt(Ft):dr(Ft)}}function Qe(H){return H===45?(t.consume(H),wt):Te(H)}function ne(H){return H===47?(t.consume(H),l="",$t):Te(H)}function $t(H){return H===62&&bf.includes(l.toLowerCase())?(t.consume(H),nt):ur(H)&&l.length<8?(t.consume(H),l+=String.fromCharCode(H),$t):Te(H)}function Xe(H){return H===93?(t.consume(H),wt):Te(H)}function wt(H){return H===62?(t.consume(H),nt):H===45&&s===2?(t.consume(H),wt):Te(H)}function nt(H){return H===null||de(H)?(t.exit("htmlFlowData"),z(H)):(t.consume(H),nt)}function z(H){return t.exit("htmlFlow"),r(H)}}function Av(t,r,e){return n;function n(s){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),t.attempt(En,r,e)}}var wf={name:"htmlText",tokenize:Ev};function Ev(t,r,e){let n=this,s,o,l,f;return c;function c(z){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(z),g}function g(z){return z===33?(t.consume(z),h):z===47?(t.consume(z),pe):z===63?(t.consume(z),he):ur(z)?(t.consume(z),Le):e(z)}function h(z){return z===45?(t.consume(z),$):z===91?(t.consume(z),o="CDATA[",l=0,R):ur(z)?(t.consume(z),be):e(z)}function $(z){return z===45?(t.consume(z),k):e(z)}function k(z){return z===null||z===62?e(z):z===45?(t.consume(z),x):C(z)}function x(z){return z===null||z===62?e(z):C(z)}function C(z){return z===null?e(z):z===45?(t.consume(z),I):de(z)?(f=C,Xe(z)):(t.consume(z),C)}function I(z){return z===45?(t.consume(z),nt):C(z)}function R(z){return z===o.charCodeAt(l++)?(t.consume(z),l===o.length?B:R):e(z)}function B(z){return z===null?e(z):z===93?(t.consume(z),X):de(z)?(f=B,Xe(z)):(t.consume(z),B)}function X(z){return z===93?(t.consume(z),le):B(z)}function le(z){return z===62?nt(z):z===93?(t.consume(z),le):B(z)}function be(z){return z===null||z===62?nt(z):de(z)?(f=be,Xe(z)):(t.consume(z),be)}function he(z){return z===null?e(z):z===63?(t.consume(z),Y):de(z)?(f=he,Xe(z)):(t.consume(z),he)}function Y(z){return z===62?nt(z):he(z)}function pe(z){return ur(z)?(t.consume(z),ve):e(z)}function ve(z){return z===45||Wt(z)?(t.consume(z),ve):ke(z)}function ke(z){return de(z)?(f=ke,Xe(z)):Ue(z)?(t.consume(z),ke):nt(z)}function Le(z){return z===45||Wt(z)?(t.consume(z),Le):z===47||z===62||rt(z)?Te(z):e(z)}function Te(z){return z===47?(t.consume(z),nt):z===58||z===95||ur(z)?(t.consume(z),Fe):de(z)?(f=Te,Xe(z)):Ue(z)?(t.consume(z),Te):nt(z)}function Fe(z){return z===45||z===46||z===58||z===95||Wt(z)?(t.consume(z),Fe):ge(z)}function ge(z){return z===61?(t.consume(z),Pe):de(z)?(f=ge,Xe(z)):Ue(z)?(t.consume(z),ge):Te(z)}function Pe(z){return z===null||z===60||z===61||z===62||z===96?e(z):z===34||z===39?(t.consume(z),s=z,Qe):de(z)?(f=Pe,Xe(z)):Ue(z)?(t.consume(z),Pe):(t.consume(z),s=void 0,$t)}function Qe(z){return z===s?(t.consume(z),ne):z===null?e(z):de(z)?(f=Qe,Xe(z)):(t.consume(z),Qe)}function ne(z){return z===62||z===47||rt(z)?Te(z):e(z)}function $t(z){return z===null||z===34||z===39||z===60||z===61||z===96?e(z):z===62||rt(z)?Te(z):(t.consume(z),$t)}function Xe(z){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),xe(t,wt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wt(z){return t.enter("htmlTextData"),f(z)}function nt(z){return z===62?(t.consume(z),t.exit("htmlTextData"),t.exit("htmlText"),r):e(z)}}var Di={name:"labelEnd",tokenize:Iv,resolveTo:Fv,resolveAll:Tv},_v={tokenize:Ov},Sv={tokenize:Nv},Pv={tokenize:Rv};function Tv(t){let r=-1,e;for(;++r<t.length;)e=t[r][1],(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(t.splice(r+1,e.type==="labelImage"?4:2),e.type="data",r++);return t}function Fv(t,r){let e=t.length,n=0,s,o,l,f;for(;e--;)if(s=t[e][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[e][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(l){if(t[e][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=e,s.type!=="labelLink")){n=2;break}}else s.type==="labelEnd"&&(l=e);let c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},g={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[l][1].end)},h={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[l-2][1].start)};return f=[["enter",c,r],["enter",g,r]],f=kr(f,t.slice(o+1,o+n+3)),f=kr(f,[["enter",h,r]]),f=kr(f,ii(r.parser.constructs.insideSpan.null,t.slice(o+n+4,l-3),r)),f=kr(f,[["exit",h,r],t[l-2],t[l-1],["exit",g,r]]),f=kr(f,t.slice(l+1)),f=kr(f,[["exit",c,r]]),Nt(t,o,t.length,f),t}function Iv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if((n.events[s][1].type==="labelImage"||n.events[s][1].type==="labelLink")&&!n.events[s][1]._balanced){o=n.events[s][1];break}return f;function f(h){return o?o._inactive?g(h):(l=n.parser.defined.includes(fr(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),c):e(h)}function c(h){return h===40?t.attempt(_v,r,l?r:g)(h):h===91?t.attempt(Sv,r,l?t.attempt(Pv,r,g):g)(h):l?r(h):g(h)}function g(h){return o._balanced=!0,e(h)}}function Ov(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),Ri(t,s)}function s(c){return c===41?f(c):_a(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return rt(c)?Ri(t,l)(c):f(c)}function l(c){return c===34||c===39||c===40?Pa(t,Ri(t,f),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function f(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function Nv(t,r,e){let n=this;return s;function s(l){return Sa.call(n,t,o,e,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(fr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(l):e(l)}}function Rv(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var kf={name:"labelStartImage",tokenize:Dv,resolveAll:Di.resolveAll};function Dv(t,r,e){let n=this;return s;function s(f){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(f),t.exit("labelImageMarker"),o}function o(f){return f===91?(t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelImage"),l):e(f)}function l(f){return f===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(f):r(f)}}var vf={name:"labelStartLink",tokenize:qv,resolveAll:Di.resolveAll};function qv(t,r,e){let n=this;return s;function s(l){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(l):r(l)}}var ho={name:"lineEnding",tokenize:Lv};function Lv(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),xe(t,r,"linePrefix")}}var qi={name:"thematicBreak",tokenize:jv};function jv(t,r,e){let n=0,s;return o;function o(c){return t.enter("thematicBreak"),s=c,l(c)}function l(c){return c===s?(t.enter("thematicBreakSequence"),f(c)):Ue(c)?xe(t,l,"whitespace")(c):n<3||c!==null&&!de(c)?e(c):(t.exit("thematicBreak"),r(c))}function f(c){return c===s?(t.consume(c),n++,f):(t.exit("thematicBreakSequence"),l(c))}}var cr={name:"list",tokenize:zv,continuation:{tokenize:Vv},exit:Uv},Bv={tokenize:Gv,partial:!0},Mv={tokenize:Hv,partial:!0};function zv(t,r,e){let n=this,s=n.events[n.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return f;function f(x){let C=n.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!n.containerState.marker||x===n.containerState.marker:Ii(x)){if(n.containerState.type||(n.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(qi,e,g)(x):g(x);if(!n.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(x)}return e(x)}function c(x){return Ii(x)&&++l<10?(t.consume(x),c):(!n.interrupt||l<2)&&(n.containerState.marker?x===n.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),g(x)):e(x)}function g(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||x,t.check(En,n.interrupt?e:h,t.attempt(Bv,k,$))}function h(x){return n.containerState.initialBlankLine=!0,o++,k(x)}function $(x){return Ue(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),k):e(x)}function k(x){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(x)}}function Vv(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(En,s,o);function s(f){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,xe(t,r,"listItemIndent",n.containerState.size+1)(f)}function o(f){return n.containerState.furtherBlankLines||!Ue(f)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(f)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Mv,r,l)(f))}function l(f){return n.containerState._closeFlow=!0,n.interrupt=void 0,xe(t,t.attempt(cr,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Hv(t,r,e){let n=this;return xe(t,s,"listItemIndent",n.containerState.size+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?r(o):e(o)}}function Uv(t){t.exit(this.containerState.type)}function Gv(t,r,e){let n=this;return xe(t,s,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(o){let l=n.events[n.events.length-1];return!Ue(o)&&l&&l[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ta={name:"setextUnderline",tokenize:Wv,resolveTo:Kv};function Kv(t,r){let e=t.length,n,s,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(s=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let l={type:"setextHeading",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",l,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=l,t.push(["exit",l,r]),t}function Wv(t,r,e){let n=this,s=n.events.length,o,l;for(;s--;)if(n.events[s][1].type!=="lineEnding"&&n.events[s][1].type!=="linePrefix"&&n.events[s][1].type!=="content"){l=n.events[s][1].type==="paragraph";break}return f;function f(h){return!n.parser.lazy[n.now().line]&&(n.interrupt||l)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=h,c(h)):e(h)}function c(h){return h===o?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),xe(t,g,"lineSuffix")(h))}function g(h){return h===null||de(h)?(t.exit("setextHeadingLine"),r(h)):e(h)}}var zm={tokenize:Zv};function Zv(t){let r=this,e=t.attempt(En,n,t.attempt(this.parser.constructs.flowInitial,s,xe(t,t.attempt(this.parser.constructs.flow,s,t.attempt(mf,s)),"linePrefix")));return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var Vm={resolveAll:Km()},Hm=Gm("string"),Um=Gm("text");function Gm(t){return{tokenize:r,resolveAll:Km(t==="text"?Jv:void 0)};function r(e){let n=this,s=this.parser.constructs[t],o=e.attempt(s,l,f);return l;function l(h){return g(h)?o(h):f(h)}function f(h){if(h===null){e.consume(h);return}return e.enter("data"),e.consume(h),c}function c(h){return g(h)?(e.exit("data"),o(h)):(e.consume(h),c)}function g(h){if(h===null)return!0;let $=s[h],k=-1;if($)for(;++k<$.length;){let x=$[k];if(!x.previous||x.previous.call(n,n.previous))return!0}return!1}}}function Km(t){return r;function r(e,n){let s=-1,o;for(;++s<=e.length;)o===void 0?e[s]&&e[s][1].type==="data"&&(o=s,s++):(!e[s]||e[s][1].type!=="data")&&(s!==o+2&&(e[o][1].end=e[s-1][1].end,e.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(e,n):e}}function Jv(t,r){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let n=t[e-1][1],s=r.sliceStream(n),o=s.length,l=-1,f=0,c;for(;o--;){let g=s[o];if(typeof g=="string"){for(l=g.length;g.charCodeAt(l-1)===32;)f++,l--;if(l)break;l=-1}else if(g===-2)c=!0,f++;else if(g!==-1){o++;break}}if(f){let g={type:e===t.length||c||f<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-f,offset:n.end.offset-f,_index:n.start._index+o,_bufferIndex:o?l:n.start._bufferIndex+l},end:Object.assign({},n.end)};n.end=Object.assign({},g.start),n.start.offset===n.end.offset?Object.assign(n,g):(t.splice(e,0,["enter",g,r],["exit",g,r]),e+=2)}e++}return t}function Wm(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),s={},o=[],l=[],f=[],c=!0,g={consume:be,enter:he,exit:Y,attempt:ke(pe),check:ke(ve),interrupt:ke(ve,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:C,now:R,defineSkip:B,write:x},$=r.tokenize.call(h,g),k;return r.resolveAll&&o.push(r),h;function x(ge){return l=kr(l,ge),X(),l[l.length-1]!==null?[]:(Le(r,0),h.events=ii(o,h.events,h),h.events)}function C(ge,Pe){return Xv(I(ge),Pe)}function I(ge){return Qv(l,ge)}function R(){return Object.assign({},n)}function B(ge){s[ge.line]=ge.column,Fe()}function X(){let ge;for(;n._index<l.length;){let Pe=l[n._index];if(typeof Pe=="string")for(ge=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ge&&n._bufferIndex<Pe.length;)le(Pe.charCodeAt(n._bufferIndex));else le(Pe)}}function le(ge){c=void 0,k=ge,$=$(ge)}function be(ge){de(ge)?(n.line++,n.column=1,n.offset+=ge===-3?2:1,Fe()):ge!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=ge,c=!0}function he(ge,Pe){let Qe=Pe||{};return Qe.type=ge,Qe.start=R(),h.events.push(["enter",Qe,h]),f.push(Qe),Qe}function Y(ge){let Pe=f.pop();return Pe.end=R(),h.events.push(["exit",Pe,h]),Pe}function pe(ge,Pe){Le(ge,Pe.from)}function ve(ge,Pe){Pe.restore()}function ke(ge,Pe){return Qe;function Qe(ne,$t,Xe){let wt,nt,z,H;return Array.isArray(ne)?Lt(ne):"tokenize"in ne?Lt([ne]):dr(ne);function dr(ut){return tr;function tr(Vt){let vr=Vt!==null&&ut[Vt],Nr=Vt!==null&&ut.null,xr=[...Array.isArray(vr)?vr:vr?[vr]:[],...Array.isArray(Nr)?Nr:Nr?[Nr]:[]];return Lt(xr)(Vt)}}function Lt(ut){return wt=ut,nt=0,ut.length===0?Xe:kt(ut[nt])}function kt(ut){return tr;function tr(Vt){return H=Te(),z=ut,ut.partial||(h.currentConstruct=ut),ut.name&&h.parser.constructs.disable.null.includes(ut.name)?Ft(Vt):ut.tokenize.call(Pe?Object.assign(Object.create(h),Pe):h,g,Tt,Ft)(Vt)}}function Tt(ut){return c=!0,ge(z,H),$t}function Ft(ut){return c=!0,H.restore(),++nt<wt.length?kt(wt[nt]):Xe}}}function Le(ge,Pe){ge.resolveAll&&!o.includes(ge)&&o.push(ge),ge.resolve&&Nt(h.events,Pe,h.events.length-Pe,ge.resolve(h.events.slice(Pe),h)),ge.resolveTo&&(h.events=ge.resolveTo(h.events,h))}function Te(){let ge=R(),Pe=h.previous,Qe=h.currentConstruct,ne=h.events.length,$t=Array.from(f);return{restore:Xe,from:ne};function Xe(){n=ge,h.previous=Pe,h.currentConstruct=Qe,h.events.length=ne,f=$t,Fe()}}function Fe(){n.line in s&&n.column<2&&(n.column=s[n.line],n.offset+=s[n.line]-1)}}function Qv(t,r){let e=r.start._index,n=r.start._bufferIndex,s=r.end._index,o=r.end._bufferIndex,l;return e===s?l=[t[e].slice(n,o)]:(l=t.slice(e,s),n>-1&&(l[0]=l[0].slice(n)),o>0&&l.push(t[s].slice(0,o))),l}function Xv(t,r){let e=-1,n=[],s;for(;++e<t.length;){let o=t[e],l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
11
|
+
`,me=K(`
|
|
12
|
+
`,!1),Y="\r",pe=K("\r",!1),xe=function(){return{type:"blankline"}},$e="=begin ",Le=K("=begin ",!1),Pe="=end ",De=K("=end ",!1),ge="=for ",Te=K("=for ",!1),Qe="=config",ne=K("=config",!1),bt="=alias",Ze=K("=alias",!1),wt=function(u){return Dm(u)},rt=function(u){return u},V="=",U=K("=",!1),ur=M("text"),qt=function(){return F()},vt=function(){return{type:"para",value:F(),error:!0,location:L()}},St=function(u,p){return Ui([u,p])},Ct=function(u){return[u]},lt=",",Xt=K(",",!1),Mt=function(u,p){return Ui([u,p])},yr=/^[a-zA-Z0-9]/,Sr=T([["a","z"],["A","Z"],["0","9"]],!1,!1),br=/^[a-zA-Z0-9_\-]/,Rt=T([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),$n="=>",xn=K("=>",!1),kn=function(u,p){return{[u]:p}},_e=function(u,p){return{...u,...p}},Nn=function(u){return u},Cr=":",Ee=K(":",!1),Oe="allow",kt=K("allow",!1),dt="<",cr=K("<",!1),qe=">",Se=K(">",!1),te=function(u,p){return{value:p,type:"array"}},fe=function(u,p){return{name:"allow",...p}},Ae=function(u){return u},Me=function(u){return u},Xe=function(u){return[u]},Et=function(){return[]},nt=/^[!]/,$t=T(["!"],!1,!1),Tt="{",Hr=K("{",!1),mt="}",_n=K("}",!1),fr=function(u,p,y){return{value:y,type:"map"}},Xn="[",Yn=K("[",!1),Tr=function(u,p,y){return y},on="]",Ln=K("]",!1),fs=function(u,p){return[F()]},zn=function(u,p,y){return{value:y,type:"array"}},ei=function(u,p,y){return{value:y,type:"array"}},Di=function(u,p,y){return{value:y,type:"string"}},An="(",Mn=K("(",!1),Fi=function(u,p,y){return y.length>1?{type:"array",value:y}:{type:"value",value:y[0]}},B=")",O=K(")",!1),Q=function(u,p){return{value:F()}},re=function(u,p,y){return{type:"value",...y}},se=function(u,p){return{value:!u,type:"boolean"}},we=function(u,p,y){return{name:p,...y}},Ce=function(u,p){return p},ze=function(u,p){return Ui([...u,...p])},Ke=/^[^'"]/,yt=T(["'",'"'],!0,!1),Re=function(u){return u},at=/^[0-9]/,ut=T([["0","9"]],!1,!1),ot=/^[\-+]/,He=T(["-","+"],!1,!1),ct="True",Ye=K("True",!1),Or=function(){return!0},Nt="False",Yt=K("False",!1),it=function(){return!1},jt=".",Gt=K(".",!1),wr=/^[eE]/,Gr=T(["e","E"],!1,!1),vr=/^["]/,ln=T(['"'],!1,!1),En=/^[^"]/,Sn=T(['"'],!0,!1),Kr=/^[']/,Wr=T(["'"],!1,!1),Lt=/^[^']/,$r=T(["'"],!0,!1),un=function(u){return parseFloat(u)},qr=function(u){return parseInt(u,10)},Ii=function(u,p,y){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||xa(p)},ti=function(u,p,y,w,E){return u.length===w.length&&p===E},i=function(u,p,y,w,E){return Fm(u,`${w}${E}`)},ue=function(u,p,y,w,E,_){return p===_},Rr=function(u,p,y,w,E,_){return{type:"block",content:w===""?[]:[{type:"verbatim",value:w.join("")}],name:p,margin:u}},Kt=function(u,p,y,w,E,_){return!0},Jr=function(u,p,y,w,E,_){return{..._,text:F(),config:y,location:L()}},$=/^[\-+=_|]/,cn=T(["-","+","=","_","|"],!1,!1),Cn=function(){return{type:"separator",text:F()}},Nr=function(){return r.isDelimited},Tn=function(){return{type:"separator",text:F()}},Oi=function(u){return{name:"row",type:"text",value:u}},je=function(){return r.separators=[],!0},Vt=function(u,p){return r.separators.push(p.text),p},ps=function(u,p,y,w){return r.separators.push(w.text),w},Qr=function(u,p,y,w){return[{name:"row",type:"text",value:y},w]},fn=function(u,p,y){return[y]},ri=function(u,p,y){return r.separators.length>1?!r.separators.every(w=>w===r.separators[0]):!0},Pn=function(u,p,y){return[{name:"head",type:"text",value:u},p,...Ui(y)]},W=function(u,p){return[{name:"row",type:"text",value:u},p]},hs=function(u){return[...Ui(u)]},qi=function(u,p,y){return p==="table"},ds=function(u,p,y){return r.isDelimited=!0,!0},ni=function(u,p,y,w){return w},oa=function(u,p,y,w){return w.some(E=>E&&(E.name==="row"||E.name==="cell"))},Ao=function(u,p,y,w,E,_){return{type:"block",content:w,name:p,margin:u}},Ri=function(u,p,y,w,E,_){return{..._,text:F(),config:y,location:L()}},Zr=function(u,p,y){return r.isDelimited=!0,!0},la=function(u,p,y,w){return w},ua=function(u,p,y,w,E,_){return{type:"block",content:w,name:p,margin:u}},Eo=function(u,p,y,w,E,_){return{..._,text:F(),config:y,location:L()}},ca=function(u,p,y,w){return w},fa=function(u,p,y,w,E){let _=p.match(/pod|nested|item|code|defn/)&&w.length-u.length>0?"code":"para";return{text:E,margin:w,type:_,content:[{type:_==="code"?"verbatim":"text",value:E}],location:L()}},So=function(u,p,y,w,E,_){return{type:"block",content:w,name:p,margin:u}},Co=function(u,p,y,w,E,_){return{..._,config:y,location:L()}},pa=function(){return{text:F(),type:"para",margin:"",content:[{type:"text",value:F()}],location:L()}},Dn=function(){return{empty:1}},zt=/^[s]/,jn=T(["s"],!1,!1),ii=function(u){return{text:F(),type:"ambient1"}},Pr=function(u,p){return p.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||xa(p)},To=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:[{type:"verbatim",value:y}],name:p,config:[],location:L()}},ha=function(u,p){return p==="table"},pn=function(u,p){return r.isDelimited=!1,!0},si=function(u,p,y){return{margin:u,type:"block",content:y===""?[]:y,name:p,config:[],location:L()}},Ni=function(u,p,y,w){let E=(y===`
|
|
13
|
+
`?"":y)+w;return{margin:u,type:"block",content:E===""?[]:[{type:"para",text:E,margin:"",content:[{type:"text",value:E}],location:L()}],name:p,location:L()}},Li="= ",da=K("= ",!1),Po=function(u,p,y,w){return{name:y,type:"alias",replacement:w,margin:u}},Do=/^[A-Z]/,Fo=T([["A","Z"]],!1,!1),ma="<>",ga=K("<>",!1),ya=function(u,p,y,w){return{name:y,type:"config",config:w,margin:u}},ba="=boundary",ms=K("=boundary",!1),_t=function(u,p,y){return{name:"boundary",type:"block",content:[],config:y,margin:u,location:L()}},Ne=function(u,p,y,w){return y.match(/code|comment|formula|output|input|markdown|picture|toc|data/)||xa(y)},zi=function(u,p,y,w,E){return{type:"block",content:E===""?[]:[{type:"verbatim",value:E}],name:y,margin:u,config:w,location:L()}},Fc=function(u,p,y,w){return y==="table"},er=function(u,p,y,w){return r.isDelimited=!1,!0},hn=function(u,p,y,w,E){return{type:"block",content:E===""?[]:E,name:y,margin:u,config:w,location:L()}},ft=function(u,p,y,w,E){return{type:"block",content:E===""?[]:[{type:"para",content:[{type:"text",value:E}],margin:u,text:E,location:L()}],name:y,margin:u,config:w,location:L()}},Io=/^[a-zA-Z]/,Oo=T([["a","z"],["A","Z"]],!1,!1),qo=M("whitespace"),Mi=/^[\r\n \t\f]/,ji=T(["\r",`
|
|
14
|
+
`," "," ","\f"],!1,!1),Ro=M("space characters"),o=0,ae=0,h=[{line:1,column:1}],b=0,C=[],d=0,x;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function F(){return t.substring(ae,o)}function L(){return gs(ae,o)}function P(u,p){throw p=p!==void 0?p:gs(ae,o),Ic([M(u)],t.substring(ae,o),p)}function N(u,p){throw p=p!==void 0?p:gs(ae,o),wm(u,p)}function K(u,p){return{type:"literal",text:u,ignoreCase:p}}function T(u,p,y){return{type:"class",parts:u,inverted:p,ignoreCase:y}}function ee(){return{type:"any"}}function H(){return{type:"end"}}function M(u){return{type:"other",description:u}}function J(u){var p=h[u],y;if(p)return p;for(y=u-1;!h[y];)y--;for(p=h[y],p={line:p.line,column:p.column};y<u;)t.charCodeAt(y)===10?(p.line++,p.column=1):p.column++,y++;return h[u]=p,p}function gs(u,p){var y=J(u),w=J(p);return{start:{offset:u,line:y.line,column:y.column},end:{offset:p,line:w.line,column:w.column}}}function oe(u){o<b||(o>b&&(b=o,C=[]),C.push(u))}function wm(u,p){return new $i(u,null,null,p)}function Ic(u,p,y){return new $i($i.buildMessage(u,p),u,p,y)}function Oc(){var u,p,y;for(u=o,p=[],y=qc();y!==e;)p.push(y),y=qc();return p!==e&&(ae=u,p=a(p)),u=p,u}function vm(){var u,p,y,w;if(u=o,p=ye(),p!==e){for(y=[],w=Bn();w!==e;)y.push(w),w=Bn();y!==e?(w=ye(),w!==e?(ae=u,p=l(y),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;return u}function qc(){var u,p,y,w,E,_,G,Z;if(u=ws(),u===e&&(u=Sm(),u===e&&(u=Lo(),u===e&&(u=vs(),u===e&&(u=ks(),u===e&&(u=Bo(),u===e&&(u=_s(),u===e&&(u=Mo(),u===e&&(u=jo(),u===e&&(u=Vo(),u===e&&(u=$s(),u===e&&(u=zo(),u===e&&(u=xs(),u===e&&(u=o,ae=o,p=c(),p?p=void 0:p=e,p!==e?(y=Cm(),y===e&&(y=Lr(),y===e&&(y=xm())),y!==e?(ae=u,p=f(y),u=p):(o=u,u=e)):(o=u,u=e),u===e)))))))))))))){if(u=o,p=o,y=[],w=o,E=o,d++,_=o,G=Fn(),G!==e?(Z=Bt(),Z!==e?(G=[G,Z],_=G):(o=_,_=e)):(o=_,_=e),_===e&&(_=ui()),d--,_===e?E=void 0:(o=E,E=e),E!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,d===0&&oe(g)),_!==e?(E=[E,_],w=E):(o=w,w=e)):(o=w,w=e),w!==e)for(;w!==e;)y.push(w),w=o,E=o,d++,_=o,G=Fn(),G!==e?(Z=Bt(),Z!==e?(G=[G,Z],_=G):(o=_,_=e)):(o=_,_=e),_===e&&(_=ui()),d--,_===e?E=void 0:(o=E,E=e),E!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,d===0&&oe(g)),_!==e?(E=[E,_],w=E):(o=w,w=e)):(o=w,w=e);else y=e;y!==e?p=t.substring(p,o):p=y,p!==e&&(ae=u,p=m()),u=p}return u}function Ft(){var u;return v.test(t.charAt(o))?(u=t.charAt(o),o++):(u=e,d===0&&oe(A)),u}function ye(){var u,p;for(u=[],k.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(S));p!==e;)u.push(p),k.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(S));return u}function Vn(){var u,p,y,w;for(u=o,p=o,y=[],w=Ft();w!==e;)y.push(w),w=Ft();return y!==e?(I.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(q)),w!==e?(y=[y,w],p=y):(o=p,p=e)):(o=p,p=e),p!==e?u=t.substring(u,o):u=p,u}function V$(){var u,p,y,w;if(u=o,p=o,y=[],w=ys(),w!==e)for(;w!==e;)y.push(w),w=ys();else y=e;return y!==e?p=t.substring(p,o):p=y,p!==e?(y=oi(),y!==e?(ae=u,p=j(p),u=p):(o=u,u=e)):(o=u,u=e),u}function ys(){var u;return X.test(t.charAt(o))?(u=t.charAt(o),o++):(u=e,d===0&&oe(le)),u}function ai(){var u,p,y;return t.charCodeAt(o)===10?(u=be,o++):(u=e,d===0&&oe(me)),u===e&&(u=o,t.charCodeAt(o)===13?(p=Y,o++):(p=e,d===0&&oe(pe)),p!==e?(t.charCodeAt(o)===10?(y=be,o++):(y=e,d===0&&oe(me)),y===e&&(y=null),y!==e?(p=[p,y],u=p):(o=u,u=e)):(o=u,u=e)),u}function oi(){var u,p;return u=ai(),u===e&&(u=o,d++,t.length>o?(p=t.charAt(o),o++):(p=e,d===0&&oe(g)),d--,p===e?u=void 0:(o=u,u=e)),u}function Dr(){var u,p,y,w;for(u=o,p=o,y=[],w=Ft();w!==e;)y.push(w),w=Ft();return y!==e?(I.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(q)),w!==e?(y=[y,w],p=y):(o=p,p=e)):(o=p,p=e),p!==e?u=t.substring(u,o):u=p,u}function Lr(){var u,p,y,w,E;for(u=o,p=o,y=o,w=[],E=Ft();E!==e;)w.push(E),E=Ft();return w!==e?(I.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(q)),E!==e?(w=[w,E],y=w):(o=y,y=e)):(o=y,y=e),y!==e?p=t.substring(p,o):p=y,p!==e&&(ae=u,p=xe()),u=p,u}function bs(){var u;return t.substr(o,7)===$e?(u=$e,o+=7):(u=e,d===0&&oe(Le)),u}function li(){var u;return t.substr(o,5)===Pe?(u=Pe,o+=5):(u=e,d===0&&oe(De)),u}function wa(){var u;return t.substr(o,5)===ge?(u=ge,o+=5):(u=e,d===0&&oe(Te)),u}function Rc(){var u;return t.substr(o,7)===Qe?(u=Qe,o+=7):(u=e,d===0&&oe(ne)),u}function Nc(){var u;return t.substr(o,6)===bt?(u=bt,o+=6):(u=e,d===0&&oe(Ze)),u}function Bt(){var u,p,y;return u=o,p=Uo(),p!==e?(ae=o,y=wt(p),y?y=void 0:y=e,y!==e?(ae=u,p=rt(p),u=p):(o=u,u=e)):(o=u,u=e),u}function ui(){var u,p,y;return u=o,t.charCodeAt(o)===61?(p=V,o++):(p=e,d===0&&oe(U)),p!==e?(y=Bt(),y!==e?(ae=u,p=rt(y),u=p):(o=u,u=e)):(o=u,u=e),u}function Fn(){var u;return u=bs(),u===e&&(u=li(),u===e&&(u=wa(),u===e&&(u=Rc(),u===e&&(u=Nc())))),u}function zr(){var u,p,y;if(d++,u=o,p=[],y=ys(),y!==e)for(;y!==e;)p.push(y),y=ys();else p=e;return p!==e?u=t.substring(u,o):u=p,d--,u===e&&(p=e,d===0&&oe(ur)),u}function Wt(){var u,p,y,w,E,_,G;if(u=o,p=o,d++,y=o,w=ye(),w!==e?(E=Rc(),E===e&&(E=Nc(),E===e&&(E=o,_=Fn(),_!==e?(G=Bt(),G!==e?(_=[_,G],E=_):(o=E,E=e)):(o=E,E=e),E===e&&(E=ui()))),E!==e?(w=[w,E],y=w):(o=y,y=e)):(o=y,y=e),y===e&&(y=Lr()),d--,y===e?p=void 0:(o=p,p=e),p!==e){if(y=o,w=[],E=zr(),E!==e)for(;E!==e;)w.push(E),E=zr();else w=e;w!==e?y=t.substring(y,o):y=w,y!==e?(w=oi(),w!==e?(ae=u,p=qt(),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;return u}function $m(){var u,p,y,w;if(u=o,p=o,y=[],w=zr(),w!==e)for(;w!==e;)y.push(w),w=zr();else y=e;return y!==e?p=t.substring(p,o):p=y,p!==e?(y=oi(),y!==e?(ae=u,p=qt(),u=p):(o=u,u=e)):(o=u,u=e),u}function xm(){var u,p,y,w,E,_;if(u=o,p=o,y=[],w=o,E=o,d++,_=oi(),d--,_===e?E=void 0:(o=E,E=e),E!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,d===0&&oe(g)),_!==e?(E=[E,_],w=E):(o=w,w=e)):(o=w,w=e),w!==e)for(;w!==e;)y.push(w),w=o,E=o,d++,_=oi(),d--,_===e?E=void 0:(o=E,E=e),E!==e?(t.length>o?(_=t.charAt(o),o++):(_=e,d===0&&oe(g)),_!==e?(E=[E,_],w=E):(o=w,w=e)):(o=w,w=e);else y=e;return y!==e?p=t.substring(p,o):p=y,p!==e?(y=oi(),y!==e?(ae=u,p=vt(),u=p):(o=u,u=e)):(o=u,u=e),u}function Lc(){var u,p,y,w;if(u=o,p=zc(),p!==e){if(y=[],w=Ft(),w!==e)for(;w!==e;)y.push(w),w=Ft();else y=e;y!==e?(w=Lc(),w!==e?(ae=u,p=St(p,w),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;return u===e&&(u=o,p=zc(),p!==e&&(ae=u,p=Ct(p)),u=p),u}function zc(){var u,p;return u=o,p=ys(),p!==e?u=t.substring(u,o):u=p,u}function va(){var u,p,y,w,E,_;if(u=o,p=Vi(),p!==e){if(y=[],w=Ft(),w!==e)for(;w!==e;)y.push(w),w=Ft();else y=e;y===e&&(y=o,w=ye(),w!==e?(t.charCodeAt(o)===44?(E=lt,o++):(E=e,d===0&&oe(Xt)),E!==e?(_=ye(),_!==e?(w=[w,E,_],y=w):(o=y,y=e)):(o=y,y=e)):(o=y,y=e)),y!==e?(w=va(),w!==e?(ae=u,p=Mt(p,w),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;return u===e&&(u=o,p=Vi(),p!==e&&(ae=u,p=Ct(p)),u=p),u}function km(){var u,p,y,w,E;if(u=o,p=o,y=[],yr.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(Sr)),w!==e)for(;w!==e;)y.push(w),yr.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(Sr));else y=e;if(y!==e){for(w=[],br.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Rt));E!==e;)w.push(E),br.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Rt));w!==e?(y=[y,w],p=y):(o=p,p=e)}else o=p,p=e;return p!==e?u=t.substring(u,o):u=p,u}function Mc(){var u,p,y,w,E,_;return u=o,p=km(),p!==e?(y=ye(),y!==e?(t.charCodeAt(o)===44?(w=lt,o++):(w=e,d===0&&oe(Xt)),w===e&&(t.substr(o,2)===$n?(w=$n,o+=2):(w=e,d===0&&oe(xn))),w!==e?(E=ye(),E!==e?(_=Vi(),_!==e?(ae=u,p=kn(p,_),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function jc(){var u,p,y,w,E,_;return u=o,p=Mc(),p!==e?(y=ye(),y!==e?(t.charCodeAt(o)===44?(w=lt,o++):(w=e,d===0&&oe(Xt)),w!==e?(E=ye(),E!==e?(_=jc(),_!==e?(ae=u,p=_e(p,_),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u===e&&(u=o,p=Mc(),p!==e&&(ae=u,p=Nn(p)),u=p),u}function _m(){var u,p,y,w,E,_,G,Z,D,R;return u=o,p=ye(),p!==e?(t.charCodeAt(o)===58?(y=Cr,o++):(y=e,d===0&&oe(Ee)),y!==e?(t.substr(o,5)===Oe?(w=Oe,o+=5):(w=e,d===0&&oe(kt)),w!==e?(E=o,t.charCodeAt(o)===60?(_=dt,o++):(_=e,d===0&&oe(cr)),_!==e?(G=ye(),G!==e?(Z=Lc(),Z!==e?(D=ye(),D!==e?(t.charCodeAt(o)===62?(R=qe,o++):(R=e,d===0&&oe(Se)),R!==e?(ae=E,_=te(w,Z),E=_):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)):(o=E,E=e),E!==e?(_=ye(),_!==e?(ae=u,p=fe(w,E),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function B$(){var u,p,y,w,E,_;for(u=o,p=[],y=o,w=ye(),w!==e?(E=Vi(),E!==e?(_=ye(),_!==e?(ae=y,w=Ae(E),y=w):(o=y,y=e)):(o=y,y=e)):(o=y,y=e);y!==e;)p.push(y),y=o,w=ye(),w!==e?(E=Vi(),E!==e?(_=ye(),_!==e?(ae=y,w=Ae(E),y=w):(o=y,y=e)):(o=y,y=e)):(o=y,y=e);return p!==e&&(ae=u,p=Me(p)),u=p,u===e&&(u=o,p=Vi(),p!==e&&(ae=u,p=Xe(p)),u=p,u===e&&(u=o,p=ye(),p!==e&&(ae=u,p=Et()),u=p)),u}function Bn(){var u,p,y,w,E,_,G,Z,D,R,z,ie,ce,de;if(u=_m(),u===e)if(u=o,p=ye(),p!==e)if(t.charCodeAt(o)===58?(y=Cr,o++):(y=e,d===0&&oe(Ee)),y!==e)if(nt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe($t)),w===e&&(w=null),w!==e)if(E=Uo(),E!==e){if(_=o,t.charCodeAt(o)===123?(G=Tt,o++):(G=e,d===0&&oe(Hr)),G!==e?(Z=ye(),Z!==e?(D=jc(),D!==e?(R=ye(),R!==e?(t.charCodeAt(o)===125?(z=mt,o++):(z=e,d===0&&oe(_n)),z!==e?(ae=_,G=fr(w,E,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_===e){if(_=o,t.charCodeAt(o)===91?(G=Xn,o++):(G=e,d===0&&oe(Yn)),G!==e)if(Z=ye(),Z!==e){if(D=o,R=va(),R!==e&&(ae=D,R=Tr(w,E,R)),D=R,D===e){if(D=o,R=o,z=[],ie=o,ce=o,d++,t.charCodeAt(o)===93?(de=on,o++):(de=e,d===0&&oe(Ln)),de===e&&(t.charCodeAt(o)===91?(de=Xn,o++):(de=e,d===0&&oe(Yn))),d--,de===e?ce=void 0:(o=ce,ce=e),ce!==e?(t.length>o?(de=t.charAt(o),o++):(de=e,d===0&&oe(g)),de!==e?(ce=[ce,de],ie=ce):(o=ie,ie=e)):(o=ie,ie=e),ie!==e)for(;ie!==e;)z.push(ie),ie=o,ce=o,d++,t.charCodeAt(o)===93?(de=on,o++):(de=e,d===0&&oe(Ln)),de===e&&(t.charCodeAt(o)===91?(de=Xn,o++):(de=e,d===0&&oe(Yn))),d--,de===e?ce=void 0:(o=ce,ce=e),ce!==e?(t.length>o?(de=t.charAt(o),o++):(de=e,d===0&&oe(g)),de!==e?(ce=[ce,de],ie=ce):(o=ie,ie=e)):(o=ie,ie=e);else z=e;z!==e?R=t.substring(R,o):R=z,R!==e&&(ae=D,R=fs(w,E)),D=R}D!==e?(R=ye(),R!==e?(t.charCodeAt(o)===93?(z=on,o++):(z=e,d===0&&oe(Ln)),z!==e?(ae=_,G=zn(w,E,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)}else o=_,_=e;else o=_,_=e;if(_===e&&(_=o,t.charCodeAt(o)===60?(G=dt,o++):(G=e,d===0&&oe(cr)),G!==e?(Z=ye(),Z!==e?(D=va(),D!==e?(R=ye(),R!==e?(t.charCodeAt(o)===62?(z=qe,o++):(z=e,d===0&&oe(Se)),z!==e?(ae=_,G=ei(w,E,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)):(o=_,_=e),_===e)){if(_=o,t.charCodeAt(o)===60?(G=dt,o++):(G=e,d===0&&oe(cr)),G!==e)if(Z=ye(),Z!==e){if(D=o,R=[],z=o,ie=o,d++,t.charCodeAt(o)===60?(ce=dt,o++):(ce=e,d===0&&oe(cr)),ce===e&&(t.charCodeAt(o)===62?(ce=qe,o++):(ce=e,d===0&&oe(Se))),d--,ce===e?ie=void 0:(o=ie,ie=e),ie!==e?(t.length>o?(ce=t.charAt(o),o++):(ce=e,d===0&&oe(g)),ce!==e?(ie=[ie,ce],z=ie):(o=z,z=e)):(o=z,z=e),z!==e)for(;z!==e;)R.push(z),z=o,ie=o,d++,t.charCodeAt(o)===60?(ce=dt,o++):(ce=e,d===0&&oe(cr)),ce===e&&(t.charCodeAt(o)===62?(ce=qe,o++):(ce=e,d===0&&oe(Se))),d--,ce===e?ie=void 0:(o=ie,ie=e),ie!==e?(t.length>o?(ce=t.charAt(o),o++):(ce=e,d===0&&oe(g)),ce!==e?(ie=[ie,ce],z=ie):(o=z,z=e)):(o=z,z=e);else R=e;R!==e?D=t.substring(D,o):D=R,D!==e?(R=ye(),R!==e?(t.charCodeAt(o)===62?(z=qe,o++):(z=e,d===0&&oe(Se)),z!==e?(ae=_,G=Di(w,E,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)}else o=_,_=e;else o=_,_=e;if(_===e){if(_=o,t.charCodeAt(o)===40?(G=An,o++):(G=e,d===0&&oe(Mn)),G!==e)if(Z=ye(),Z!==e){if(D=o,R=va(),R!==e&&(ae=D,R=Fi(w,E,R)),D=R,D===e){if(D=o,R=o,z=[],ie=o,ce=o,d++,t.charCodeAt(o)===41?(de=B,o++):(de=e,d===0&&oe(O)),de===e&&(t.charCodeAt(o)===40?(de=An,o++):(de=e,d===0&&oe(Mn))),d--,de===e?ce=void 0:(o=ce,ce=e),ce!==e?(t.length>o?(de=t.charAt(o),o++):(de=e,d===0&&oe(g)),de!==e?(ce=[ce,de],ie=ce):(o=ie,ie=e)):(o=ie,ie=e),ie!==e)for(;ie!==e;)z.push(ie),ie=o,ce=o,d++,t.charCodeAt(o)===41?(de=B,o++):(de=e,d===0&&oe(O)),de===e&&(t.charCodeAt(o)===40?(de=An,o++):(de=e,d===0&&oe(Mn))),d--,de===e?ce=void 0:(o=ce,ce=e),ce!==e?(t.length>o?(de=t.charAt(o),o++):(de=e,d===0&&oe(g)),de!==e?(ce=[ce,de],ie=ce):(o=ie,ie=e)):(o=ie,ie=e);else z=e;z!==e?R=t.substring(R,o):R=z,R!==e&&(ae=D,R=Q(w,E)),D=R}D!==e?(R=ye(),R!==e?(t.charCodeAt(o)===41?(z=B,o++):(z=e,d===0&&oe(O)),z!==e?(ae=_,G=re(w,E,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)}else o=_,_=e;else o=_,_=e;_===e&&(_=o,G=ye(),G!==e&&(ae=_,G=se(w,E)),_=G)}}}_!==e?(G=ye(),G!==e?(ae=u,p=we(w,E,_),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function In(){var u,p,y,w,E,_,G,Z,D,R;for(u=o,p=[],y=Bn();y!==e;)p.push(y),y=Bn();if(p!==e)if(y=ai(),y!==e){if(w=[],E=o,t.charCodeAt(o)===61?(_=V,o++):(_=e,d===0&&oe(U)),_!==e)if(G=ye(),G!==e){if(Z=[],D=Bn(),D!==e)for(;D!==e;)Z.push(D),D=Bn();else Z=e;Z!==e?(D=ye(),D!==e?(R=ai(),R!==e?(ae=E,_=Ce(p,Z),E=_):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)}else o=E,E=e;else o=E,E=e;for(;E!==e;)if(w.push(E),E=o,t.charCodeAt(o)===61?(_=V,o++):(_=e,d===0&&oe(U)),_!==e)if(G=ye(),G!==e){if(Z=[],D=Bn(),D!==e)for(;D!==e;)Z.push(D),D=Bn();else Z=e;Z!==e?(D=ye(),D!==e?(R=ai(),R!==e?(ae=E,_=Ce(p,Z),E=_):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)}else o=E,E=e;else o=E,E=e;w!==e?(ae=u,p=ze(p,w),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;return u}function U$(){var u,p,y,w;if(u=o,p=o,y=[],Ke.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(yt)),w!==e)for(;w!==e;)y.push(w),Ke.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(yt));else y=e;return y!==e?p=t.substring(p,o):p=y,p!==e&&(ae=u,p=Re(p)),u=p,u}function Vc(){var u,p,y;if(u=o,p=[],at.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,d===0&&oe(ut)),y!==e)for(;y!==e;)p.push(y),at.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,d===0&&oe(ut));else p=e;return p!==e?u=t.substring(u,o):u=p,u}function $a(){var u,p,y,w,E;if(u=o,p=o,ot.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,d===0&&oe(He)),y===e&&(y=null),y!==e){if(w=[],at.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(ut)),E!==e)for(;E!==e;)w.push(E),at.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(ut));else w=e;w!==e?(y=[y,w],p=y):(o=p,p=e)}else o=p,p=e;return p!==e?u=t.substring(u,o):u=p,u}function Am(){var u,p;return u=o,t.substr(o,4)===ct?(p=ct,o+=4):(p=e,d===0&&oe(Ye)),p!==e&&(ae=u,p=Or()),u=p,u===e&&(u=o,t.substr(o,5)===Nt?(p=Nt,o+=5):(p=e,d===0&&oe(Yt)),p!==e&&(ae=u,p=it()),u=p),u}function Em(){var u,p,y,w,E,_;return u=o,p=o,y=$a(),y!==e?(w=o,t.charCodeAt(o)===46?(E=jt,o++):(E=e,d===0&&oe(Gt)),E!==e?(_=Vc(),_!==e?(E=[E,_],w=E):(o=w,w=e)):(o=w,w=e),w===e&&(w=null),w!==e?(wr.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Gr)),E!==e?(_=$a(),_!==e?(y=[y,w,E,_],p=y):(o=p,p=e)):(o=p,p=e)):(o=p,p=e)):(o=p,p=e),p!==e?u=t.substring(u,o):u=p,u===e&&(u=o,p=o,y=$a(),y!==e?(t.charCodeAt(o)===46?(w=jt,o++):(w=e,d===0&&oe(Gt)),w!==e?(E=Vc(),E!==e?(y=[y,w,E],p=y):(o=p,p=e)):(o=p,p=e)):(o=p,p=e),p!==e?u=t.substring(u,o):u=p),u}function Vi(){var u,p,y,w,E;if(u=o,vr.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ln)),p!==e){for(y=o,w=[],En.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Sn));E!==e;)w.push(E),En.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Sn));w!==e?y=t.substring(y,o):y=w,y!==e?(vr.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(ln)),w!==e?(ae=u,p=Re(y),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;if(u===e){if(u=o,Kr.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(Wr)),p!==e){for(y=o,w=[],Lt.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe($r));E!==e;)w.push(E),Lt.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe($r));w!==e?y=t.substring(y,o):y=w,y!==e?(Kr.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(Wr)),w!==e?(ae=u,p=Re(y),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;u===e&&(u=Am(),u===e&&(u=o,p=Em(),p!==e&&(ae=u,p=un(p)),u=p,u===e&&(u=o,p=$a(),p!==e&&(ae=u,p=qr(p)),u=p)))}return u}function ws(){var u,p,y,w,E,_,G,Z,D,R,z,ie,ce,de,st,Fr,jr;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=bs(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e)if(ae=o,G=Ii(p,w,_),G?G=void 0:G=e,G!==e){if(Z=[],D=o,R=o,z=ye(),z!==e?R=t.substring(R,o):R=z,R!==e?(z=o,ie=Vn(),ie===e&&(ie=o,ce=o,d++,de=Fn(),d--,de===e?ce=void 0:(o=ce,ce=e),ce===e&&(ce=o,d++,de=o,st=li(),st!==e?(Fr=Bt(),Fr!==e?(ae=o,jr=ti(p,w,_,R,Fr),jr?jr=void 0:jr=e,jr!==e?(st=[st,Fr,jr],de=st):(o=de,de=e)):(o=de,de=e)):(o=de,de=e),d--,de===e?ce=void 0:(o=ce,ce=e)),ce!==e?(de=zr(),de!==e?(st=Vn(),st===e&&(st=null),st!==e?(ce=[ce,de,st],ie=ce):(o=ie,ie=e)):(o=ie,ie=e)):(o=ie,ie=e)),ie!==e?z=t.substring(z,o):z=ie,z!==e?(ae=D,R=i(p,w,_,R,z),D=R):(o=D,D=e)):(o=D,D=e),D!==e)for(;D!==e;)Z.push(D),D=o,R=o,z=ye(),z!==e?R=t.substring(R,o):R=z,R!==e?(z=o,ie=Vn(),ie===e&&(ie=o,ce=o,d++,de=Fn(),d--,de===e?ce=void 0:(o=ce,ce=e),ce===e&&(ce=o,d++,de=o,st=li(),st!==e?(Fr=Bt(),Fr!==e?(ae=o,jr=ti(p,w,_,R,Fr),jr?jr=void 0:jr=e,jr!==e?(st=[st,Fr,jr],de=st):(o=de,de=e)):(o=de,de=e)):(o=de,de=e),d--,de===e?ce=void 0:(o=ce,ce=e)),ce!==e?(de=zr(),de!==e?(st=Vn(),st===e&&(st=null),st!==e?(ce=[ce,de,st],ie=ce):(o=ie,ie=e)):(o=ie,ie=e)):(o=ie,ie=e)),ie!==e?z=t.substring(z,o):z=ie,z!==e?(ae=D,R=i(p,w,_,R,z),D=R):(o=D,D=e)):(o=D,D=e);else Z=e;Z!==e?(D=o,R=ye(),R!==e?D=t.substring(D,o):D=R,D!==e?(R=o,z=li(),z!==e?(ie=Bt(),ie!==e?(ae=o,ce=ue(p,w,_,Z,D,ie),ce?ce=void 0:ce=e,ce!==e?(de=Vn(),de===e&&(de=null),de!==e?(ae=R,z=Rr(p,w,_,Z,D,ie),R=z):(o=R,R=e)):(o=R,R=e)):(o=R,R=e)):(o=R,R=e),R!==e?(ae=o,z=Kt(p,w,_,Z,D,R),z?z=void 0:z=e,z!==e?(ae=u,p=Jr(p,w,_,Z,D,R),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Bi(){var u,p,y,w,E,_,G,Z,D;if(u=o,p=o,d++,y=o,w=ye(),w!==e?(E=Fn(),E===e&&(E=ui()),E!==e?(w=[w,E],y=w):(o=y,y=e)):(o=y,y=e),y===e&&(y=Lr()),d--,y===e?p=void 0:(o=p,p=e),p!==e){for(y=[],w=Ft();w!==e;)y.push(w),w=Ft();if(y!==e){if(w=o,E=[],_=o,$.test(t.charAt(o))?(G=t.charAt(o),o++):(G=e,d===0&&oe(cn)),G!==e){for(Z=[],D=Ft();D!==e;)Z.push(D),D=Ft();Z!==e?(G=[G,Z],_=G):(o=_,_=e)}else o=_,_=e;if(_!==e)for(;_!==e;)if(E.push(_),_=o,$.test(t.charAt(o))?(G=t.charAt(o),o++):(G=e,d===0&&oe(cn)),G!==e){for(Z=[],D=Ft();D!==e;)Z.push(D),D=Ft();Z!==e?(G=[G,Z],_=G):(o=_,_=e)}else o=_,_=e;else E=e;E!==e?w=t.substring(w,o):w=E,w!==e?(E=oi(),E!==e?(ae=u,p=Cn(),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e}else o=u,u=e;return u}function xr(){var u,p,y,w,E;return u=o,p=o,y=Bi(),y===e&&(y=o,ae=o,w=Nr(),w?w=void 0:w=e,w!==e?(E=Lr(),E!==e?(w=[w,E],y=w):(o=y,y=e)):(o=y,y=e)),y!==e?p=t.substring(p,o):p=y,p!==e&&(ae=u,p=Tn()),u=p,u}function Mr(){var u,p;return u=o,p=Wt(),p!==e&&(ae=u,p=Oi(p)),u=p,u}function No(){var u,p,y,w,E,_,G,Z,D,R,z;if(u=o,ae=o,p=je(),p?p=void 0:p=e,p!==e){if(y=o,w=[],E=o,_=o,d++,G=Bi(),d--,G===e?_=void 0:(o=_,_=e),_!==e?(G=Mr(),G!==e?(_=[_,G],E=_):(o=E,E=e)):(o=E,E=e),E!==e)for(;E!==e;)w.push(E),E=o,_=o,d++,G=Bi(),d--,G===e?_=void 0:(o=_,_=e),_!==e?(G=Mr(),G!==e?(_=[_,G],E=_):(o=E,E=e)):(o=E,E=e);else w=e;if(w!==e?y=t.substring(y,o):y=w,y!==e)if(w=o,E=Bi(),E!==e&&(ae=w,E=Vt(y,E)),w=E,w!==e){if(E=[],_=o,G=o,Z=[],D=o,R=o,d++,z=xr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Mr(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e),D!==e)for(;D!==e;)Z.push(D),D=o,R=o,d++,z=xr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Mr(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);else Z=e;if(Z!==e?G=t.substring(G,o):G=Z,G!==e?(Z=o,D=xr(),D!==e&&(ae=Z,D=ps(y,w,G,D)),Z=D,Z!==e?(ae=_,G=Qr(y,w,G,Z),_=G):(o=_,_=e)):(o=_,_=e),_===e&&(_=o,G=o,d++,Z=Bi(),d--,Z===e?G=void 0:(o=G,G=e),G!==e?(Z=o,d++,D=xr(),d--,D===e?Z=void 0:(o=Z,Z=e),Z!==e?(D=Mr(),D!==e?(ae=_,G=fn(y,w,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)),_!==e)for(;_!==e;){if(E.push(_),_=o,G=o,Z=[],D=o,R=o,d++,z=xr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Mr(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e),D!==e)for(;D!==e;)Z.push(D),D=o,R=o,d++,z=xr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Mr(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);else Z=e;Z!==e?G=t.substring(G,o):G=Z,G!==e?(Z=o,D=xr(),D!==e&&(ae=Z,D=ps(y,w,G,D)),Z=D,Z!==e?(ae=_,G=Qr(y,w,G,Z),_=G):(o=_,_=e)):(o=_,_=e),_===e&&(_=o,G=o,d++,Z=Bi(),d--,Z===e?G=void 0:(o=G,G=e),G!==e?(Z=o,d++,D=xr(),d--,D===e?Z=void 0:(o=Z,Z=e),Z!==e?(D=Mr(),D!==e?(ae=_,G=fn(y,w,D),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e))}else E=e;E!==e?(ae=o,_=ri(y,w,E),_?_=void 0:_=e,_!==e?(ae=u,p=Pn(y,w,E),u=p):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e}else o=u,u=e;if(u===e){if(u=o,p=[],y=o,w=o,E=o,_=o,d++,G=xr(),d--,G===e?_=void 0:(o=_,_=e),_!==e?(G=Mr(),G!==e?(_=[_,G],E=_):(o=E,E=e)):(o=E,E=e),E!==e?w=t.substring(w,o):w=E,w!==e){for(E=[],_=xr();_!==e;)E.push(_),_=xr();E!==e?(ae=y,w=W(w,E),y=w):(o=y,y=e)}else o=y,y=e;if(y!==e)for(;y!==e;)if(p.push(y),y=o,w=o,E=o,_=o,d++,G=xr(),d--,G===e?_=void 0:(o=_,_=e),_!==e?(G=Mr(),G!==e?(_=[_,G],E=_):(o=E,E=e)):(o=E,E=e),E!==e?w=t.substring(w,o):w=E,w!==e){for(E=[],_=xr();_!==e;)E.push(_),_=xr();E!==e?(ae=y,w=W(w,E),y=w):(o=y,y=e)}else o=y,y=e;else p=e;if(p!==e&&(ae=u,p=hs(p)),u=p,u===e)if(u=[],p=Mr(),p!==e)for(;p!==e;)u.push(p),p=Mr();else u=e}return u}function Sm(){var u,p,y,w,E,_,G,Z,D,R,z,ie,ce,de,st,Fr;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=bs(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e)if(ae=o,G=qi(p,w,_),G?G=void 0:G=e,G!==e)if(ae=o,Z=ds(p,w,_),Z?Z=void 0:Z=e,Z!==e){for(D=o,R=[],z=Lr(),z===e&&(z=ws(),z===e&&(z=vs(),z===e&&(z=ks(),z===e&&(z=_s(),z===e&&(z=$s(),z===e&&(z=xs()))))));z!==e;)R.push(z),z=Lr(),z===e&&(z=ws(),z===e&&(z=vs(),z===e&&(z=ks(),z===e&&(z=_s(),z===e&&(z=$s(),z===e&&(z=xs()))))));R!==e&&(ae=D,R=ni(p,w,_,R)),D=R,D!==e?(ae=o,R=oa(p,w,_,D),R?R=void 0:R=e,R!==e?(z=o,ie=ye(),ie!==e?z=t.substring(z,o):z=ie,z!==e?(ie=o,ce=li(),ce!==e?(de=Bt(),de!==e?(ae=o,st=ue(p,w,_,D,z,de),st?st=void 0:st=e,st!==e?(Fr=Vn(),Fr===e&&(Fr=null),Fr!==e?(ae=ie,ce=Ao(p,w,_,D,z,de),ie=ce):(o=ie,ie=e)):(o=ie,ie=e)):(o=ie,ie=e)):(o=ie,ie=e),ie!==e?(ae=u,p=Ri(p,w,_,D,z,ie),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Lo(){var u,p,y,w,E,_,G,Z,D,R,z,ie,ce,de,st;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=bs(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e)if(ae=o,G=qi(p,w,_),G?G=void 0:G=e,G!==e)if(ae=o,Z=Zr(p,w,_),Z?Z=void 0:Z=e,Z!==e){for(D=o,R=[],z=Lr();z!==e;)R.push(z),z=Lr();if(R!==e)if(z=No(),z!==e){for(ie=[],ce=Lr();ce!==e;)ie.push(ce),ce=Lr();ie!==e?(ae=D,R=la(p,w,_,z),D=R):(o=D,D=e)}else o=D,D=e;else o=D,D=e;D!==e?(R=o,z=ye(),z!==e?R=t.substring(R,o):R=z,R!==e?(z=o,ie=li(),ie!==e?(ce=Bt(),ce!==e?(ae=o,de=ue(p,w,_,D,R,ce),de?de=void 0:de=e,de!==e?(st=Vn(),st===e&&(st=null),st!==e?(ae=z,ie=ua(p,w,_,D,R,ce),z=ie):(o=z,z=e)):(o=z,z=e)):(o=z,z=e)):(o=z,z=e),z!==e?(ae=o,ie=Kt(p,w,_,D,R,z),ie?ie=void 0:ie=e,ie!==e?(ae=u,p=Eo(p,w,_,D,R,z),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function vs(){var u,p,y,w,E,_,G,Z,D,R,z,ie,ce;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=bs(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e){if(G=[],Z=o,D=Lr(),D===e&&(D=ws(),D===e&&(D=Lo(),D===e&&(D=vs(),D===e&&(D=ks(),D===e&&(D=Bo(),D===e&&(D=_s(),D===e&&(D=Mo(),D===e&&(D=jo(),D===e&&(D=Vo(),D===e&&(D=$s(),D===e&&(D=zo(),D===e&&(D=xs())))))))))))),D!==e&&(ae=Z,D=ca(p,w,_,D)),Z=D,Z===e){for(Z=o,D=o,R=[],z=Ft();z!==e;)R.push(z),z=Ft();if(R!==e?D=t.substring(D,o):D=R,D!==e){if(R=o,z=[],ie=Wt(),ie!==e)for(;ie!==e;)z.push(ie),ie=Wt();else z=e;z!==e?R=t.substring(R,o):R=z,R!==e?(ae=Z,D=fa(p,w,_,D,R),Z=D):(o=Z,Z=e)}else o=Z,Z=e}for(;Z!==e;)if(G.push(Z),Z=o,D=Lr(),D===e&&(D=ws(),D===e&&(D=Lo(),D===e&&(D=vs(),D===e&&(D=ks(),D===e&&(D=Bo(),D===e&&(D=_s(),D===e&&(D=Mo(),D===e&&(D=jo(),D===e&&(D=Vo(),D===e&&(D=$s(),D===e&&(D=zo(),D===e&&(D=xs())))))))))))),D!==e&&(ae=Z,D=ca(p,w,_,D)),Z=D,Z===e){for(Z=o,D=o,R=[],z=Ft();z!==e;)R.push(z),z=Ft();if(R!==e?D=t.substring(D,o):D=R,D!==e){if(R=o,z=[],ie=Wt(),ie!==e)for(;ie!==e;)z.push(ie),ie=Wt();else z=e;z!==e?R=t.substring(R,o):R=z,R!==e?(ae=Z,D=fa(p,w,_,D,R),Z=D):(o=Z,Z=e)}else o=Z,Z=e}G!==e?(Z=o,D=ye(),D!==e?Z=t.substring(Z,o):Z=D,Z!==e?(D=o,R=li(),R!==e?(z=Bt(),z!==e?(ae=o,ie=ue(p,w,_,G,Z,z),ie?ie=void 0:ie=e,ie!==e?(ce=Vn(),ce===e&&(ce=null),ce!==e?(ae=D,R=So(p,w,_,G,Z,z),D=R):(o=D,D=e)):(o=D,D=e)):(o=D,D=e)):(o=D,D=e),D!==e?(ae=o,R=Kt(p,w,_,G,Z,D),R?R=void 0:R=e,R!==e?(ae=u,p=Co(p,w,_,G,Z,D),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Cm(){var u,p,y;if(u=o,p=[],y=Wt(),y!==e)for(;y!==e;)p.push(y),y=Wt();else p=e;return p!==e&&(ae=u,p=pa()),u=p,u}function H$(){var u,p,y,w;if(u=o,p=[],y=o,w=Dr(),w!==e&&(ae=y,w=Dn()),y=w,y===e){if(y=[],zt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn));else y=e;y===e&&(y=Wt())}if(y!==e){for(;y!==e;)if(p.push(y),y=o,w=Dr(),w!==e&&(ae=y,w=Dn()),y=w,y===e){if(y=[],zt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn)),w!==e)for(;w!==e;)y.push(w),zt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn));else y=e;y===e&&(y=Wt())}}else p=e;return p!==e&&(ae=u,p=ii(p)),u=p,u}function $s(){var u,p,y,w,E,_,G,Z,D,R,z,ie;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=o,d++,w=Fn(),d--,w===e?y=void 0:(o=y,y=e),y!==e)if(w=ui(),w!==e)if(E=ye(),E!==e)if(_=Dr(),_===e&&(_=null),_!==e)if(ae=o,G=Pr(p,w),G?G=void 0:G=e,G!==e){for(Z=o,D=[],R=o,z=o,d++,ie=Dr(),d--,ie===e?z=void 0:(o=z,z=e),z!==e?(ie=Wt(),ie!==e?(z=[z,ie],R=z):(o=R,R=e)):(o=R,R=e);R!==e;)D.push(R),R=o,z=o,d++,ie=Dr(),d--,ie===e?z=void 0:(o=z,z=e),z!==e?(ie=Wt(),ie!==e?(z=[z,ie],R=z):(o=R,R=e)):(o=R,R=e);D!==e?Z=t.substring(Z,o):Z=D,Z!==e?(ae=u,p=To(p,w,Z),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function zo(){var u,p,y,w,E,_,G,Z,D;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(y=o,d++,w=Fn(),d--,w===e?y=void 0:(o=y,y=e),y!==e?(w=ui(),w!==e?(E=ye(),E!==e?(_=Dr(),_===e&&(_=null),_!==e?(ae=o,G=ha(p,w),G?G=void 0:G=e,G!==e?(ae=o,Z=pn(p,w),Z?Z=void 0:Z=e,Z!==e?(D=No(),D!==e?(ae=u,p=si(p,w,D),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function xs(){var u,p,y,w,E,_,G,Z,D,R,z;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=o,d++,w=Fn(),d--,w===e?y=void 0:(o=y,y=e),y!==e)if(w=ui(),w!==e)if(E=ye(),E!==e)if(_=Dr(),_===e&&(_=$m()),_!==e){for(G=o,Z=[],D=o,R=o,d++,z=Dr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Wt(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);D!==e;)Z.push(D),D=o,R=o,d++,z=Dr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Wt(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);Z!==e?G=t.substring(G,o):G=Z,G!==e?(ae=u,p=Ni(p,w,_,G),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Tm(){var u,p,y,w,E,_,G,Z,D,R,z;for(u=o,p=[],y=zr();y!==e;)p.push(y),y=zr();if(p!==e)if(y=ai(),y!==e){if(w=[],E=o,_=ye(),_!==e)if(t.substr(o,2)===Li?(G=Li,o+=2):(G=e,d===0&&oe(da)),G!==e)if(Z=ye(),Z!==e){if(D=[],R=zr(),R!==e)for(;R!==e;)D.push(R),R=zr();else D=e;D!==e?(R=ye(),R!==e?(z=ai(),z!==e?(ae=E,_=Ce(p,D),E=_):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)}else o=E,E=e;else o=E,E=e;else o=E,E=e;for(;E!==e;)if(w.push(E),E=o,_=ye(),_!==e)if(t.substr(o,2)===Li?(G=Li,o+=2):(G=e,d===0&&oe(da)),G!==e)if(Z=ye(),Z!==e){if(D=[],R=zr(),R!==e)for(;R!==e;)D.push(R),R=zr();else D=e;D!==e?(R=ye(),R!==e?(z=ai(),z!==e?(ae=E,_=Ce(p,D),E=_):(o=E,E=e)):(o=E,E=e)):(o=E,E=e)}else o=E,E=e;else o=E,E=e;else o=E,E=e;w!==e?(ae=u,p=ze(p,w),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;return u}function Mo(){var u,p,y,w,E,_,G;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(t.substr(o,6)===bt?(y=bt,o+=6):(y=e,d===0&&oe(Ze)),y!==e?(w=ye(),w!==e?(E=o,_=Uo(),_!==e?E=t.substring(E,o):E=_,E!==e?(_=ye(),_!==e?(G=Tm(),G!==e?(ae=u,p=Po(p,y,E,G),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function jo(){var u,p,y,w,E,_,G,Z;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(t.substr(o,7)===Qe?(y=Qe,o+=7):(y=e,d===0&&oe(ne)),y!==e?(w=ye(),w!==e?(E=o,_=o,Do.test(t.charAt(o))?(G=t.charAt(o),o++):(G=e,d===0&&oe(Fo)),G!==e?(t.substr(o,2)===ma?(Z=ma,o+=2):(Z=e,d===0&&oe(ga)),Z!==e?(G=[G,Z],_=G):(o=_,_=e)):(o=_,_=e),_===e&&(_=Bt()),_!==e?E=t.substring(E,o):E=_,E!==e?(_=ye(),_!==e?(G=In(),G!==e?(ae=u,p=ya(p,y,E,G),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function Vo(){var u,p,y,w,E;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(t.substr(o,9)===ba?(y=ba,o+=9):(y=e,d===0&&oe(ms)),y!==e?(w=ye(),w!==e?(E=In(),E!==e?(ae=u,p=_t(p,y,E),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function ks(){var u,p,y,w,E,_,G,Z,D,R,z,ie;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=wa(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e)if(ae=o,G=Ne(p,y,w,_),G?G=void 0:G=e,G!==e){for(Z=o,D=[],R=o,z=o,d++,ie=Dr(),d--,ie===e?z=void 0:(o=z,z=e),z!==e?(ie=Wt(),ie!==e?(z=[z,ie],R=z):(o=R,R=e)):(o=R,R=e);R!==e;)D.push(R),R=o,z=o,d++,ie=Dr(),d--,ie===e?z=void 0:(o=z,z=e),z!==e?(ie=Wt(),ie!==e?(z=[z,ie],R=z):(o=R,R=e)):(o=R,R=e);D!==e?Z=t.substring(Z,o):Z=D,Z!==e?(ae=u,p=zi(p,y,w,_,Z),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Bo(){var u,p,y,w,E,_,G,Z,D;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(y=wa(),y!==e?(w=Bt(),w!==e?(E=ye(),E!==e?(_=In(),_!==e?(ae=o,G=Fc(p,y,w,_),G?G=void 0:G=e,G!==e?(ae=o,Z=er(p,y,w,_),Z?Z=void 0:Z=e,Z!==e?(D=No(),D!==e?(ae=u,p=hn(p,y,w,_,D),u=p):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e)):(o=u,u=e),u}function _s(){var u,p,y,w,E,_,G,Z,D,R,z;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=wa(),y!==e)if(w=Bt(),w!==e)if(E=ye(),E!==e)if(_=In(),_!==e){for(G=o,Z=[],D=o,R=o,d++,z=Dr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Wt(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);D!==e;)Z.push(D),D=o,R=o,d++,z=Dr(),d--,z===e?R=void 0:(o=R,R=e),R!==e?(z=Wt(),z!==e?(R=[R,z],D=R):(o=D,D=e)):(o=D,D=e);Z!==e?G=t.substring(G,o):G=Z,G!==e?(ae=u,p=ft(p,y,w,_,G),u=p):(o=u,u=e)}else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;else o=u,u=e;return u}function Uo(){var u,p,y,w,E;if(u=o,p=o,Io.test(t.charAt(o))?(y=t.charAt(o),o++):(y=e,d===0&&oe(Oo)),y!==e){for(w=[],br.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Rt));E!==e;)w.push(E),br.test(t.charAt(o))?(E=t.charAt(o),o++):(E=e,d===0&&oe(Rt));w!==e?(y=[y,w],p=y):(o=p,p=e)}else o=p,p=e;return p!==e?u=t.substring(u,o):u=p,u}function G$(){var u,p;for(d++,u=[],Mi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));p!==e;)u.push(p),Mi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));return d--,u===e&&(p=e,d===0&&oe(qo)),u}function K$(){var u,p;for(d++,u=[],Mi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));p!==e;)u.push(p),Mi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));return d--,u===e&&(p=e,d===0&&oe(Ro)),u}function xa(u){return u!==u.toLowerCase()&&u!==u.toUpperCase()}function Pm(u){return u===u.toUpperCase()}function Ui(u){return u.reduce((p,y)=>Array.isArray(y)?p.concat(Ui(y)):p.concat(y),[])}function Dm(u){return["boundary","code","comment","data","data-table","defn","formula","head","include","input","item","markdown","nested","output","para","picture","pod","row","cell","table","toc"].includes(u)||Pm(u)||u.match(/^(head|item)\d+$/)||xa(u)}function Fm(u,p){return u.length==0?p:p.indexOf(u)==0?p.replace(u,""):p.replace(/^\s+/,"")}if(x=s(),x!==e&&o===t.length)return x;throw x!==e&&o<t.length&&oe(H()),Ic(C,b<t.length?t.charAt(b):null,b<t.length?gs(b,b+1):gs(b,b))}yh.exports={SyntaxError:$i,parse:Mw}});var $h=ve((xk,vh)=>{"use strict";function Vw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function xi(t,r,e,n){this.message=t,this.expected=r,this.found=e,this.location=n,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,xi)}Vw(xi,Error);xi.buildMessage=function(t,r){var e={literal:function(g){return'"'+s(g.text)+'"'},class:function(g){var m="",v;for(v=0;v<g.parts.length;v++)m+=g.parts[v]instanceof Array?a(g.parts[v][0])+"-"+a(g.parts[v][1]):a(g.parts[v]);return"["+(g.inverted?"^":"")+m+"]"},any:function(g){return"any character"},end:function(g){return"end of input"},other:function(g){return g.description}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function s(g){return 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(m){return"\\x0"+n(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+n(m)})}function a(g){return g.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(m){return"\\x0"+n(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+n(m)})}function l(g){return e[g.type](g)}function c(g){var m=new Array(g.length),v,A;for(v=0;v<g.length;v++)m[v]=l(g[v]);if(m.sort(),m.length>0){for(v=1,A=1;v<m.length;v++)m[v-1]!==m[v]&&(m[A]=m[v],A++);m.length=A}switch(m.length){case 1:return m[0];case 2:return m[0]+" or "+m[1];default:return m.slice(0,-1).join(", ")+", or "+m[m.length-1]}}function f(g){return g?'"'+s(g)+'"':"end of input"}return"Expected "+c(t)+" but "+f(r)+" found."};function Bw(t,r){r=r!==void 0?r:{};var e={},n={Expression:ds},s=ds,a="A",l=je("A",!1),c="V",f=je("V",!1),g="R",m=je("R",!1),v="B",A=je("B",!1),k="I",S=je("I",!1),I="C",q=je("C",!1),j="D",X=je("D",!1),le="E",be=je("E",!1),me="F",Y=je("F",!1),pe="G",xe=je("G",!1),$e="H",Le=je("H",!1),Pe="J",De=je("J",!1),ge="K",Te=je("K",!1),Qe="L",ne=je("L",!1),bt="O",Ze=je("O",!1),wt="S",rt=je("S",!1),V="T",U=je("T",!1),ur="U",qt=je("U",!1),vt="Z",St=je("Z",!1),Ct="N",lt=je("N",!1),Xt="X",Mt=je("X",!1),yr=/^[a-zA-Z]/,Sr=Vt([["a","z"],["A","Z"]],!1,!1),br=/^[a-zA-Z0-9_\-]/,Rt=Vt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),$n=/^[ \t\f]/,xn=Vt([" "," ","\f"],!1,!1),kn=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},_e=ps(),Nn=function(h){return{content:h.content,type:"fcode",name:h.name,synonyms:h.items}},Cr=function(h){return{content:h.content,type:"fcode",name:h.name,entry:h.items}},Ee="<",Oe=je("<",!1),kt=">",dt=je(">",!1),cr=function(){return Cn()},qe="\xAB",Se=je("\xAB",!1),te="\xBB",fe=je("\xBB",!1),Ae=function(h){return h},Me=function(h){return h.code==="C"},Xe=function(h,b){return b===h.end_tag},Et=function(h,b){return b},nt=function(h,b,C){return C===h.end_tag},$t=function(h,b,C){return{content:b,type:"fcode",name:h.code}},Tt="|",Hr=je("|",!1),mt=function(h){return h},_n=function(h){return h.code==="L"},fr=function(h,b,C){return C},Xn=function(h,b,C,d){return d===h.end_tag},Yn=function(h,b,C,d){return{content:b,type:"fcode",name:h.code,meta:C}},Tr=";",on=je(";",!1),Ln=/^[ \xA0\u2001\t\f\u2008]/,fs=Vt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),zn=function(h,b){return o([h,b])},ei=function(h){return[h]},Di=/^[0-9]/,An=Vt([["0","9"]],!1,!1),Mn="0d",Fi=je("0d",!1),B=function(h){return parseInt(h,10)},O="0o",Q=je("0o",!1),re=function(h){return parseInt(h,8)},se="0b",we=je("0b",!1),Ce=function(h){return parseInt(h,2)},ze="0x",Ke=je("0x",!1),yt=/^[0-9A-Fa-f]/,Re=Vt([["0","9"],["A","F"],["a","f"]],!1,!1),at=function(){return parseInt(Cn())},ut=/^[A-Z ]/,ot=Vt([["A","Z"]," "],!1,!1),He=function(){return Cn()===Cn().toUpperCase()},ct=/^[a-z]/,Ye=Vt([["a","z"]],!1,!1),Or=/^[a-z0-9]/,Nt=Vt([["a","z"],["0","9"]],!1,!1),Yt=function(h){return Cn()},it=function(h){return{type:"number",value:parseInt(h,10)}},jt=function(h){return{type:"unicode_name",value:h}},Gt=function(h){return{type:"html_named",value:h}},wr=function(h){return h==="E"},Gr=function(h,b){return o(b)},vr=function(h,b){return{content:b||[],type:"fcode",name:h}},ln=function(h){return h},En=function(h,b){return{code:h,begin_tag:b,end_tag:ae(b)}},Sn=function(h){return h.code!=="C"},Kr=function(h,b,C){return C===h.end_tag},Wr=function(h,b,C){return{content:b,type:"fcode",name:h.code}},Lt=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},$r=function(h,b,C,d){return d===ae(b)},un=function(h,b,C,d){return{content:C,type:"fcode",name:h}},qr=function(h,b,C,d){return o(d)},Ii=function(h,b,C,d,x){return x===ae(b)},ti=function(h,b,C,d,x){return{name:h,content:C,items:d}},i=0,ue=0,Rr=[{line:1,column:1}],Kt=0,Jr=[],$=0,cn;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');s=n[r.startRule]}function Cn(){return t.substring(ue,i)}function Nr(){return Pn(ue,i)}function Tn(h,b){throw b=b!==void 0?b:Pn(ue,i),qi([fn(h)],t.substring(ue,i),b)}function Oi(h,b){throw b=b!==void 0?b:Pn(ue,i),hs(h,b)}function je(h,b){return{type:"literal",text:h,ignoreCase:b}}function Vt(h,b,C){return{type:"class",parts:h,inverted:b,ignoreCase:C}}function ps(){return{type:"any"}}function Qr(){return{type:"end"}}function fn(h){return{type:"other",description:h}}function ri(h){var b=Rr[h],C;if(b)return b;for(C=h-1;!Rr[C];)C--;for(b=Rr[C],b={line:b.line,column:b.column};C<h;)t.charCodeAt(C)===10?(b.line++,b.column=1):b.column++,C++;return Rr[h]=b,b}function Pn(h,b){var C=ri(h),d=ri(b);return{start:{offset:h,line:C.line,column:C.column},end:{offset:b,line:d.line,column:d.column}}}function W(h){i<Kt||(i>Kt&&(Kt=i,Jr=[]),Jr.push(h))}function hs(h,b){return new xi(h,null,null,b)}function qi(h,b,C){return new xi(xi.buildMessage(h,b),h,b,C)}function ds(){var h,b;for(h=[],b=ni(),b===e&&(b=zi(),b===e&&(b=er(),b===e&&(b=la())));b!==e;)h.push(b),b=ni(),b===e&&(b=zi(),b===e&&(b=er(),b===e&&(b=la())));return h}function ni(){var h;return h=Io(),h===e&&(h=qo(),h===e&&(h=jn(),h===e&&(h=So(),h===e&&(h=ba(),h===e&&(h=Oo(),h===e&&(h=To(),h===e&&(h=Co(),h===e&&(h=Mi())))))))),h}function oa(){var h;return t.charCodeAt(i)===65?(h=a,i++):(h=e,$===0&&W(l)),h===e&&(t.charCodeAt(i)===86?(h=c,i++):(h=e,$===0&&W(f)),h===e&&(t.charCodeAt(i)===82?(h=g,i++):(h=e,$===0&&W(m)),h===e&&(t.charCodeAt(i)===66?(h=v,i++):(h=e,$===0&&W(A)),h===e&&(t.charCodeAt(i)===73?(h=k,i++):(h=e,$===0&&W(S)),h===e&&(t.charCodeAt(i)===67?(h=I,i++):(h=e,$===0&&W(q)),h===e&&(t.charCodeAt(i)===68?(h=j,i++):(h=e,$===0&&W(X)),h===e&&(t.charCodeAt(i)===69?(h=le,i++):(h=e,$===0&&W(be)),h===e&&(t.charCodeAt(i)===70?(h=me,i++):(h=e,$===0&&W(Y)),h===e&&(t.charCodeAt(i)===71?(h=pe,i++):(h=e,$===0&&W(xe)),h===e&&(t.charCodeAt(i)===72?(h=$e,i++):(h=e,$===0&&W(Le)),h===e&&(t.charCodeAt(i)===74?(h=Pe,i++):(h=e,$===0&&W(De)),h===e&&(t.charCodeAt(i)===75?(h=ge,i++):(h=e,$===0&&W(Te)),h===e&&(t.charCodeAt(i)===76?(h=Qe,i++):(h=e,$===0&&W(ne)),h===e&&(t.charCodeAt(i)===79?(h=bt,i++):(h=e,$===0&&W(Ze)),h===e&&(t.charCodeAt(i)===83?(h=wt,i++):(h=e,$===0&&W(rt)),h===e&&(t.charCodeAt(i)===84?(h=V,i++):(h=e,$===0&&W(U)),h===e&&(t.charCodeAt(i)===85?(h=ur,i++):(h=e,$===0&&W(qt)),h===e&&(t.charCodeAt(i)===90?(h=vt,i++):(h=e,$===0&&W(St)),h===e&&(t.charCodeAt(i)===78?(h=Ct,i++):(h=e,$===0&&W(lt)),h===e&&(t.charCodeAt(i)===88?(h=Xt,i++):(h=e,$===0&&W(Mt)))))))))))))))))))))),h}function Ao(){var h,b,C,d,x;if(h=i,b=i,yr.test(t.charAt(i))?(C=t.charAt(i),i++):(C=e,$===0&&W(Sr)),C!==e){for(d=[],br.test(t.charAt(i))?(x=t.charAt(i),i++):(x=e,$===0&&W(Rt));x!==e;)d.push(x),br.test(t.charAt(i))?(x=t.charAt(i),i++):(x=e,$===0&&W(Rt));d!==e?(C=[C,d],b=C):(i=b,b=e)}else i=b,b=e;return b!==e?h=t.substring(h,i):h=b,h}function Ri(){var h,b;for(h=[],$n.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,$===0&&W(xn));b!==e;)h.push(b),$n.test(t.charAt(i))?(b=t.charAt(i),i++):(b=e,$===0&&W(xn));return h}function Zr(){var h,b,C;return h=i,b=oa(),b!==e?(ue=i,C=kn(b),C?C=void 0:C=e,C!==e?(b=[b,C],h=b):(i=h,h=e)):(i=h,h=e),h}function la(){var h,b;return h=i,t.length>i?(b=t.charAt(i),i++):(b=e,$===0&&W(_e)),b!==e?h=t.substring(h,i):h=b,h}function ua(){var h,b,C,d,x;for(h=i,b=[],C=i,d=i,$++,x=Ne(),$--,x===e?d=void 0:(i=d,d=e),d!==e?(t.length>i?(x=t.charAt(i),i++):(x=e,$===0&&W(_e)),x!==e?(d=[d,x],C=d):(i=C,C=e)):(i=C,C=e);C!==e;)b.push(C),C=i,d=i,$++,x=Ne(),$--,x===e?d=void 0:(i=d,d=e),d!==e?(t.length>i?(x=t.charAt(i),i++):(x=e,$===0&&W(_e)),x!==e?(d=[d,x],C=d):(i=C,C=e)):(i=C,C=e);return b!==e?h=t.substring(h,i):h=b,h}function Eo(){var h,b,C;if(h=i,b=[],C=zt(),C!==e)for(;C!==e;)b.push(C),C=zt();else b=e;return b!==e?h=t.substring(h,i):h=b,h}function ca(){var h,b;if(h=[],b=Pr(),b!==e)for(;b!==e;)h.push(b),b=Pr();else h=e;return h}function fa(){var h,b;for(h=[],b=Pr();b!==e;)h.push(b),b=Pr();return h}function So(){var h,b;return h=i,b=ji(),b!==e&&(ue=h,b=Nn(b)),h=b,h}function Co(){var h,b;return h=i,b=Ro(),b!==e&&(ue=h,b=Cr(b)),h=b,h}function pa(){var h;return t.charCodeAt(i)===66?(h=v,i++):(h=e,$===0&&W(A)),h}function Dn(){var h,b,C,d,x;return h=i,b=i,C=i,$++,d=pa(),$--,d===e?C=void 0:(i=C,C=e),C!==e?(t.length>i?(d=t.charAt(i),i++):(d=e,$===0&&W(_e)),d!==e?(C=[C,d],b=C):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(C=Ee,i++):(C=e,$===0&&W(Oe)),C!==e?(d=hn(),d!==e?(t.charCodeAt(i)===62?(x=kt,i++):(x=e,$===0&&W(dt)),x!==e?(ue=h,b=cr(),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h===e&&(h=i,b=i,C=i,$++,d=pa(),$--,d===e?C=void 0:(i=C,C=e),C!==e?(t.length>i?(d=t.charAt(i),i++):(d=e,$===0&&W(_e)),d!==e?(C=[C,d],b=C):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(C=qe,i++):(C=e,$===0&&W(Se)),C!==e?(d=hn(),d!==e?(t.charCodeAt(i)===187?(x=te,i++):(x=e,$===0&&W(fe)),x!==e?(ue=h,b=cr(),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)),h}function zt(){var h,b,C,d,x,F,L,P;if(h=i,b=i,C=[],d=i,x=i,F=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(F=[F,L],x=F):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===60?(F=Ee,i++):(F=e,$===0&&W(Oe)),F!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,F=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(F=[F,L],x=F):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===171?(F=qe,i++):(F=e,$===0&&W(Se)),F!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=Dn(),d===e&&(d=hn()))),d!==e)for(;d!==e;)C.push(d),d=i,x=i,F=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(F=[F,L],x=F):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===60?(F=Ee,i++):(F=e,$===0&&W(Oe)),F!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,F=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(F=[F,L],x=F):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===171?(F=qe,i++):(F=e,$===0&&W(Se)),F!==e?(L=zt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=Dn(),d===e&&(d=hn())));else C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=Ae(b)),h=b,h}function jn(){var h,b,C,d,x,F,L,P,N,K,T,ee,H,M,J;if(h=i,b=_t(),b!==e)if(ue=i,C=Me(b),C?C=void 0:C=e,C!==e){if(d=[],x=i,F=i,L=[],P=i,N=i,K=i,$++,t.charCodeAt(i)===60?(T=Ee,i++):(T=e,$===0&&W(Oe)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,$===0&&W(Oe)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===62?(ee=kt,i++):(ee=e,$===0&&W(dt)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,N=i,K=i,$++,t.charCodeAt(i)===171?(T=qe,i++):(T=e,$===0&&W(Se)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===171?(K=qe,i++):(K=e,$===0&&W(Se)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,$===0&&W(fe)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=Dn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}if(P!==e){for(;P!==e;)if(L.push(P),P=i,N=i,K=i,$++,t.charCodeAt(i)===60?(T=Ee,i++):(T=e,$===0&&W(Oe)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,$===0&&W(Oe)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===62?(ee=kt,i++):(ee=e,$===0&&W(dt)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,N=i,K=i,$++,t.charCodeAt(i)===171?(T=qe,i++):(T=e,$===0&&W(Se)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===171?(K=qe,i++):(K=e,$===0&&W(Se)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,$===0&&W(fe)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=Dn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}}else L=e;if(L!==e?F=t.substring(F,i):F=L,F!==e&&(ue=x,F=Et(b,F)),x=F,x!==e)for(;x!==e;){if(d.push(x),x=i,F=i,L=[],P=i,N=i,K=i,$++,t.charCodeAt(i)===60?(T=Ee,i++):(T=e,$===0&&W(Oe)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,$===0&&W(Oe)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===62?(ee=kt,i++):(ee=e,$===0&&W(dt)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,N=i,K=i,$++,t.charCodeAt(i)===171?(T=qe,i++):(T=e,$===0&&W(Se)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===171?(K=qe,i++):(K=e,$===0&&W(Se)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,$===0&&W(fe)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=Dn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}if(P!==e){for(;P!==e;)if(L.push(P),P=i,N=i,K=i,$++,t.charCodeAt(i)===60?(T=Ee,i++):(T=e,$===0&&W(Oe)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===60?(K=Ee,i++):(K=e,$===0&&W(Oe)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===62?(ee=kt,i++):(ee=e,$===0&&W(dt)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,N=i,K=i,$++,t.charCodeAt(i)===171?(T=qe,i++):(T=e,$===0&&W(Se)),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e),N===e&&(N=null),N!==e?(t.charCodeAt(i)===171?(K=qe,i++):(K=e,$===0&&W(Se)),K!==e?(T=zt(),T===e&&(T=null),T!==e?(t.charCodeAt(i)===187?(ee=te,i++):(ee=e,$===0&&W(fe)),ee!==e?(N=[N,K,T,ee],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=Dn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}}else L=e;L!==e?F=t.substring(F,i):F=L,F!==e&&(ue=x,F=Et(b,F)),x=F}else d=e;d!==e?(x=Ne(),x!==e?(ue=i,F=nt(b,d,x),F?F=void 0:F=e,F!==e?(ue=h,b=$t(b,d,x),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e;return h}function ii(){var h;return t.charCodeAt(i)===124?(h=Tt,i++):(h=e,$===0&&W(Hr)),h}function Pr(){var h,b,C,d,x,F,L,P,N;if(h=i,b=i,C=[],d=i,x=i,F=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=Zr(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(F=[F,L,P],x=F):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===60?(F=Ee,i++):(F=e,$===0&&W(Oe)),F!==e?(L=Pr(),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,F=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=Zr(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(F=[F,L,P],x=F):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===171?(F=qe,i++):(F=e,$===0&&W(Se)),F!==e?(L=Pr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,$++,F=ii(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(F=i,$++,L=Ne(),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=ms(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(P=i,$++,N=ft(),$--,N===e?P=void 0:(i=P,P=e),P!==e?(t.length>i?(N=t.charAt(i),i++):(N=e,$===0&&W(_e)),N!==e?(x=[x,F,L,P,N],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e))),d!==e)for(;d!==e;)C.push(d),d=i,x=i,F=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=Zr(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(F=[F,L,P],x=F):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===60?(F=Ee,i++):(F=e,$===0&&W(Oe)),F!==e?(L=Pr(),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,F=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=Zr(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(F=[F,L,P],x=F):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===171?(F=qe,i++):(F=e,$===0&&W(Se)),F!==e?(L=Pr(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,x=i,$++,F=ii(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(F=i,$++,L=Ne(),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=ms(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(P=i,$++,N=ft(),$--,N===e?P=void 0:(i=P,P=e),P!==e?(t.length>i?(N=t.charAt(i),i++):(N=e,$===0&&W(_e)),N!==e?(x=[x,F,L,P,N],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)));else C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=mt(b)),h=b,h}function To(){var h,b,C,d,x,F,L,P,N,K,T;if(h=i,b=_t(),b!==e)if(ue=i,C=_n(b),C?C=void 0:C=e,C!==e){if(d=[],x=jn(),x===e&&(x=Pr()),x!==e)for(;x!==e;)d.push(x),x=jn(),x===e&&(x=Pr());else d=e;if(d!==e){if(x=i,F=ii(),F!==e){for(L=i,P=[],N=i,K=i,$++,T=Ne(),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e);N!==e;)P.push(N),N=i,K=i,$++,T=Ne(),$--,T===e?K=void 0:(i=K,K=e),K!==e?(t.length>i?(T=t.charAt(i),i++):(T=e,$===0&&W(_e)),T!==e?(K=[K,T],N=K):(i=N,N=e)):(i=N,N=e);P!==e?L=t.substring(L,i):L=P,L!==e?(ue=x,F=fr(b,d,L),x=F):(i=x,x=e)}else i=x,x=e;x===e&&(x=null),x!==e?(F=Ne(),F!==e?(ue=i,L=Xn(b,d,x,F),L?L=void 0:L=e,L!==e?(ue=h,b=Yn(b,d,x,F),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)}else i=h,h=e}else i=h,h=e;else i=h,h=e;return h}function ha(){var h,b,C,d,x,F;if(h=i,b=[],C=i,d=i,$++,t.charCodeAt(i)===59?(x=Tr,i++):(x=e,$===0&&W(on)),$--,x===e?d=void 0:(i=d,d=e),d!==e?(x=i,$++,F=Ne(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(t.length>i?(F=t.charAt(i),i++):(F=e,$===0&&W(_e)),F!==e?(d=[d,x,F],C=d):(i=C,C=e)):(i=C,C=e)):(i=C,C=e),C!==e)for(;C!==e;)b.push(C),C=i,d=i,$++,t.charCodeAt(i)===59?(x=Tr,i++):(x=e,$===0&&W(on)),$--,x===e?d=void 0:(i=d,d=e),d!==e?(x=i,$++,F=Ne(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(t.length>i?(F=t.charAt(i),i++):(F=e,$===0&&W(_e)),F!==e?(d=[d,x,F],C=d):(i=C,C=e)):(i=C,C=e)):(i=C,C=e);else b=e;return b!==e?h=t.substring(h,i):h=b,h}function pn(){var h;return Ln.test(t.charAt(i))?(h=t.charAt(i),i++):(h=e,$===0&&W(fs)),h}function si(){var h,b,C,d,x,F;if(h=i,b=ha(),b!==e){for(C=[],d=pn();d!==e;)C.push(d),d=pn();if(C!==e)if(t.charCodeAt(i)===59?(d=Tr,i++):(d=e,$===0&&W(on)),d!==e){for(x=[],F=pn();F!==e;)x.push(F),F=pn();x!==e?(F=si(),F!==e?(ue=h,b=zn(b,F),h=b):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e}else i=h,h=e;return h===e&&(h=i,b=ha(),b!==e&&(ue=h,b=ei(b)),h=b),h}function Ni(){var h,b,C;if(h=i,b=[],Di.test(t.charAt(i))?(C=t.charAt(i),i++):(C=e,$===0&&W(An)),C!==e)for(;C!==e;)b.push(C),Di.test(t.charAt(i))?(C=t.charAt(i),i++):(C=e,$===0&&W(An));else b=e;return b!==e?h=t.substring(h,i):h=b,h}function Li(){var h,b,C;return h=i,t.substr(i,2)===Mn?(b=Mn,i+=2):(b=e,$===0&&W(Fi)),b!==e?(C=Ni(),C!==e?(ue=h,b=B(C),h=b):(i=h,h=e)):(i=h,h=e),h}function da(){var h,b,C;return h=i,t.substr(i,2)===O?(b=O,i+=2):(b=e,$===0&&W(Q)),b!==e?(C=Ni(),C!==e?(ue=h,b=re(C),h=b):(i=h,h=e)):(i=h,h=e),h}function Po(){var h,b,C;return h=i,t.substr(i,2)===se?(b=se,i+=2):(b=e,$===0&&W(we)),b!==e?(C=Ni(),C!==e?(ue=h,b=Ce(C),h=b):(i=h,h=e)):(i=h,h=e),h}function Do(){var h,b,C,d,x,F;if(h=i,b=i,C=i,t.substr(i,2)===ze?(d=ze,i+=2):(d=e,$===0&&W(Ke)),d!==e){if(x=[],yt.test(t.charAt(i))?(F=t.charAt(i),i++):(F=e,$===0&&W(Re)),F!==e)for(;F!==e;)x.push(F),yt.test(t.charAt(i))?(F=t.charAt(i),i++):(F=e,$===0&&W(Re));else x=e;x!==e?(d=[d,x],C=d):(i=C,C=e)}else i=C,C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=at()),h=b,h}function Fo(){var h,b,C,d;if(h=i,b=i,C=[],ut.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,$===0&&W(ot)),d!==e)for(;d!==e;)C.push(d),ut.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,$===0&&W(ot));else C=e;return C!==e?b=t.substring(b,i):b=C,b!==e?(ue=i,C=He(),C?C=void 0:C=e,C!==e?(ue=h,b=cr(),h=b):(i=h,h=e)):(i=h,h=e),h}function ma(){var h,b,C,d,x,F;if(h=i,b=i,C=i,ct.test(t.charAt(i))?(d=t.charAt(i),i++):(d=e,$===0&&W(Ye)),d!==e){if(x=[],Or.test(t.charAt(i))?(F=t.charAt(i),i++):(F=e,$===0&&W(Nt)),F!==e)for(;F!==e;)x.push(F),Or.test(t.charAt(i))?(F=t.charAt(i),i++):(F=e,$===0&&W(Nt));else x=e;x!==e?(d=[d,x],C=d):(i=C,C=e)}else i=C,C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=Yt(b)),h=b,h}function ga(){var h,b,C;return h=i,b=Ri(),b!==e?(C=da(),C===e&&(C=Li(),C===e&&(C=Po(),C===e&&(C=Do(),C===e&&(C=Ni())))),C!==e?(ue=h,b=it(C),h=b):(i=h,h=e)):(i=h,h=e),h===e&&(h=i,b=Ri(),b!==e?(C=Fo(),C!==e?(ue=h,b=jt(C),h=b):(i=h,h=e)):(i=h,h=e),h===e&&(h=i,b=Ri(),b!==e?(C=ma(),C!==e?(ue=h,b=Gt(C),h=b):(i=h,h=e)):(i=h,h=e))),h}function ya(){var h,b,C,d,x,F;if(h=i,b=ga(),b!==e){for(C=[],d=pn();d!==e;)C.push(d),d=pn();if(C!==e)if(t.charCodeAt(i)===59?(d=Tr,i++):(d=e,$===0&&W(on)),d!==e){for(x=[],F=pn();F!==e;)x.push(F),F=pn();x!==e?(F=ya(),F!==e?(ue=h,b=zn(b,F),h=b):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e}else i=h,h=e;return h===e&&(h=i,b=ga(),b!==e&&(ue=h,b=ei(b)),h=b),h}function ba(){var h,b,C,d,x;return h=i,b=ms(),b!==e?(ue=i,C=wr(b),C?C=void 0:C=e,C!==e?(d=i,x=ya(),x!==e&&(ue=d,x=Gr(b,x)),d=x,d===e&&(d=null),d!==e?(x=Ne(),x!==e?(ue=h,b=vr(b,d),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h}function ms(){var h,b,C;return h=i,b=i,C=Zr(),C!==e?b=t.substring(b,i):b=C,b!==e?(t.charCodeAt(i)===60?(C=Ee,i++):(C=e,$===0&&W(Oe)),C!==e?(ue=h,b=ln(b),h=b):(i=h,h=e)):(i=h,h=e),h}function _t(){var h,b,C,d;return h=i,b=i,C=Zr(),C!==e?b=t.substring(b,i):b=C,b!==e?(C=i,t.charCodeAt(i)===60?(d=Ee,i++):(d=e,$===0&&W(Oe)),d===e&&(t.charCodeAt(i)===171?(d=qe,i++):(d=e,$===0&&W(Se))),d!==e?C=t.substring(C,i):C=d,C!==e?(ue=h,b=En(b,C),h=b):(i=h,h=e)):(i=h,h=e),h}function Ne(){var h;return t.charCodeAt(i)===62?(h=kt,i++):(h=e,$===0&&W(dt)),h===e&&(t.charCodeAt(i)===187?(h=te,i++):(h=e,$===0&&W(fe))),h}function zi(){var h,b,C,d,x,F,L,P,N,K,T,ee,H,M,J;if(h=i,b=_t(),b!==e)if(ue=i,C=Sn(b),C?C=void 0:C=e,C!==e){if(d=[],x=ni(),x===e&&(x=zi(),x===e)){if(x=i,F=i,L=[],P=i,t.charCodeAt(i)===60?(N=Ee,i++):(N=e,$===0&&W(Oe)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===62?(T=kt,i++):(T=e,$===0&&W(dt)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,t.charCodeAt(i)===171?(N=qe,i++):(N=e,$===0&&W(Se)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,$===0&&W(fe)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=ft(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}if(P!==e){for(;P!==e;)if(L.push(P),P=i,t.charCodeAt(i)===60?(N=Ee,i++):(N=e,$===0&&W(Oe)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===62?(T=kt,i++):(T=e,$===0&&W(dt)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,t.charCodeAt(i)===171?(N=qe,i++):(N=e,$===0&&W(Se)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,$===0&&W(fe)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=ft(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}}else L=e;L!==e?F=t.substring(F,i):F=L,F!==e&&(ue=x,F=Et(b,F)),x=F}for(;x!==e;)if(d.push(x),x=ni(),x===e&&(x=zi(),x===e)){if(x=i,F=i,L=[],P=i,t.charCodeAt(i)===60?(N=Ee,i++):(N=e,$===0&&W(Oe)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===62?(T=kt,i++):(T=e,$===0&&W(dt)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,t.charCodeAt(i)===171?(N=qe,i++):(N=e,$===0&&W(Se)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,$===0&&W(fe)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=ft(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}if(P!==e){for(;P!==e;)if(L.push(P),P=i,t.charCodeAt(i)===60?(N=Ee,i++):(N=e,$===0&&W(Oe)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===62?(T=kt,i++):(T=e,$===0&&W(dt)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=i,t.charCodeAt(i)===171?(N=qe,i++):(N=e,$===0&&W(Se)),N!==e?(K=er(),K!==e?(t.charCodeAt(i)===187?(T=te,i++):(T=e,$===0&&W(fe)),T!==e?(N=[N,K,T],P=N):(i=P,P=e)):(i=P,P=e)):(i=P,P=e),P===e&&(P=ft(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e),T!==e)for(;T!==e;)K.push(T),T=i,ee=i,$++,H=i,M=Ne(),M!==e?(ue=i,J=Xe(b,M),J?J=void 0:J=e,J!==e?(M=[M,J],H=M):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,M=_t(),$--,M===e?H=void 0:(i=H,H=e),H!==e?(M=i,$++,J=ft(),$--,J===e?M=void 0:(i=M,M=e),M!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,M,J],T=ee):(i=T,T=e)):(i=T,T=e)):(i=T,T=e)):(i=T,T=e);else K=e;K!==e?N=t.substring(N,i):N=K,N!==e&&(ue=P,N=Et(b,N)),P=N}}else L=e;L!==e?F=t.substring(F,i):F=L,F!==e&&(ue=x,F=Et(b,F)),x=F}d!==e?(x=Ne(),x!==e?(ue=i,F=Kr(b,d,x),F?F=void 0:F=e,F!==e?(ue=h,b=Wr(b,d,x),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e;return h}function Fc(){var h,b,C,d,x;for(h=i,b=[],C=i,d=i,$++,x=Ne(),$--,x===e?d=void 0:(i=d,d=e),d!==e?(t.length>i?(x=t.charAt(i),i++):(x=e,$===0&&W(_e)),x!==e?(d=[d,x],C=d):(i=C,C=e)):(i=C,C=e);C!==e;)b.push(C),C=i,d=i,$++,x=Ne(),$--,x===e?d=void 0:(i=d,d=e),d!==e?(t.length>i?(x=t.charAt(i),i++):(x=e,$===0&&W(_e)),x!==e?(d=[d,x],C=d):(i=C,C=e)):(i=C,C=e);return b!==e?h=t.substring(h,i):h=b,h}function er(){var h,b,C,d,x,F,L;if(h=i,b=i,C=[],d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x!==e?(F=er(),F!==e?(t.charCodeAt(i)===62?(L=kt,i++):(L=e,$===0&&W(dt)),L!==e?(x=[x,F,L],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se)),x!==e?(F=er(),F!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,$===0&&W(fe)),L!==e?(x=[x,F,L],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=ft(),d===e&&(d=hn()))),d!==e)for(;d!==e;)C.push(d),d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x!==e?(F=er(),F!==e?(t.charCodeAt(i)===62?(L=kt,i++):(L=e,$===0&&W(dt)),L!==e?(x=[x,F,L],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=i,t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se)),x!==e?(F=er(),F!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,$===0&&W(fe)),L!==e?(x=[x,F,L],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=ft(),d===e&&(d=hn())));else C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=Ae(b)),h=b,h}function hn(){var h,b,C,d,x,F,L,P;if(h=i,b=i,C=[],d=i,x=i,$++,F=Ne(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(F=i,$++,L=_t(),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=ft(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d!==e)for(;d!==e;)C.push(d),d=i,x=i,$++,F=Ne(),$--,F===e?x=void 0:(i=x,x=e),x!==e?(F=i,$++,L=_t(),$--,L===e?F=void 0:(i=F,F=e),F!==e?(L=i,$++,P=ft(),$--,P===e?L=void 0:(i=L,L=e),L!==e?(t.length>i?(P=t.charAt(i),i++):(P=e,$===0&&W(_e)),P!==e?(x=[x,F,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e);else C=e;return C!==e?b=t.substring(b,i):b=C,b!==e&&(ue=h,b=Ae(b)),h=b,h}function ft(){var h,b,C,d,x;return h=i,b=i,C=i,$++,d=Zr(),$--,d===e?C=void 0:(i=C,C=e),C!==e?(t.length>i?(d=t.charAt(i),i++):(d=e,$===0&&W(_e)),d!==e?(C=[C,d],b=C):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===60?(C=Ee,i++):(C=e,$===0&&W(Oe)),C!==e?(d=hn(),d!==e?(t.charCodeAt(i)===62?(x=kt,i++):(x=e,$===0&&W(dt)),x!==e?(ue=h,b=cr(),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h===e&&(h=i,b=i,C=i,$++,d=Zr(),$--,d===e?C=void 0:(i=C,C=e),C!==e?(t.length>i?(d=t.charAt(i),i++):(d=e,$===0&&W(_e)),d!==e?(C=[C,d],b=C):(i=b,b=e)):(i=b,b=e),b!==e?(t.charCodeAt(i)===171?(C=qe,i++):(C=e,$===0&&W(Se)),C!==e?(d=hn(),d!==e?(t.charCodeAt(i)===187?(x=te,i++):(x=e,$===0&&W(fe)),x!==e?(ue=h,b=cr(),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)),h}function Io(){var h,b,C,d,x,F,L;return h=i,b=i,t.charCodeAt(i)===65?(C=a,i++):(C=e,$===0&&W(l)),C!==e?b=t.substring(b,i):b=C,b!==e?(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e?(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e?(x=Pr(),x!==e?(F=Ne(),F!==e?(ue=i,L=$r(b,d,x,F),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,F),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h}function Oo(){var h,b,C,d,x,F,L;return h=i,b=i,t.charCodeAt(i)===86?(C=c,i++):(C=e,$===0&&W(f)),C!==e?b=t.substring(b,i):b=C,b!==e?(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e?(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e?(x=Eo(),x!==e?(F=Ne(),F!==e?(ue=i,L=$r(b,d,x,F),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,F),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h}function qo(){var h,b,C,d,x,F,L;return h=i,b=i,t.charCodeAt(i)===83?(C=wt,i++):(C=e,$===0&&W(rt)),C!==e?b=t.substring(b,i):b=C,b!==e?(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e?(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e?(x=ua(),x!==e?(F=Ne(),F!==e?(ue=i,L=$r(b,d,x,F),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,F),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h}function Mi(){var h,b,C,d,x,F,L;return h=i,b=i,t.charCodeAt(i)===90?(C=vt,i++):(C=e,$===0&&W(St)),C!==e?b=t.substring(b,i):b=C,b!==e?(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e?(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e?(x=ua(),x!==e?(F=Ne(),F!==e?(ue=i,L=$r(b,d,x,F),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,F),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)):(i=h,h=e),h}function ji(){var h,b,C,d,x,F,L,P,N;if(h=i,b=i,t.charCodeAt(i)===68?(C=j,i++):(C=e,$===0&&W(X)),C!==e?b=t.substring(b,i):b=C,b!==e)if(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e)if(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e)if(x=ca(),x!==e){if(F=i,L=ii(),L!==e){for(P=[],N=si();N!==e;)P.push(N),N=si();P!==e?(ue=F,L=qr(b,d,x,P),F=L):(i=F,F=e)}else i=F,F=e;F===e&&(F=null),F!==e?(L=Ne(),L!==e?(ue=i,P=Ii(b,d,x,F,L),P?P=void 0:P=e,P!==e?(ue=h,b=ti(b,d,x,F,L),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e;else i=h,h=e;else i=h,h=e;return h}function Ro(){var h,b,C,d,x,F,L,P,N;if(h=i,b=i,t.charCodeAt(i)===88?(C=Xt,i++):(C=e,$===0&&W(Mt)),C!==e?b=t.substring(b,i):b=C,b!==e)if(ue=i,C=Lt(b),C?C=void 0:C=e,C!==e)if(d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x===e&&(t.charCodeAt(i)===171?(x=qe,i++):(x=e,$===0&&W(Se))),x!==e?d=t.substring(d,i):d=x,d!==e)if(x=fa(),x!==e){if(F=i,L=ii(),L!==e){for(P=[],N=si();N!==e;)P.push(N),N=si();P!==e?(ue=F,L=qr(b,d,x,P),F=L):(i=F,F=e)}else i=F,F=e;F===e&&(F=null),F!==e?(L=Ne(),L!==e?(ue=i,P=Ii(b,d,x,F,L),P?P=void 0:P=e,P!==e?(ue=h,b=ti(b,d,x,F,L),h=b):(i=h,h=e)):(i=h,h=e)):(i=h,h=e)}else i=h,h=e;else i=h,h=e;else i=h,h=e;else i=h,h=e;return h}function o(h){return h.reduce((b,C)=>Array.isArray(C)?b.concat(o(C)):b.concat(C),[])}function ae(h){return{"<":">","\xAB":"\xBB",">":"<","\xBB":"\xAB"}[h]}if(cn=s(),cn!==e&&i===t.length)return cn;throw cn!==e&&i<t.length&&W(Qr()),qi(Jr,Kt<t.length?t.charAt(Kt):null,Kt<t.length?Pn(Kt,Kt+1):Pn(Kt,Kt))}vh.exports={SyntaxError:xi,parse:Bw}});var Du=ve((a_,Mh)=>{Mh.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Jh=ve((o_,Wh)=>{"use strict";var io=Object.prototype.hasOwnProperty,Kh=Object.prototype.toString,jh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Bh=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Kh.call(r)==="[object Array]"},Uh=function(r){if(!r||Kh.call(r)!=="[object Object]")return!1;var e=io.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&io.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var s;for(s in r);return typeof s>"u"||io.call(r,s)},Hh=function(r,e){jh&&e.name==="__proto__"?jh(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},Gh=function(r,e){if(e==="__proto__")if(io.call(r,e)){if(Vh)return Vh(r,e).value}else return;return r[e]};Wh.exports=function t(){var r,e,n,s,a,l,c=arguments[0],f=1,g=arguments.length,m=!1;for(typeof c=="boolean"&&(m=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<g;++f)if(r=arguments[f],r!=null)for(e in r)n=Gh(c,e),s=Gh(r,e),c!==s&&(m&&s&&(Uh(s)||(a=Bh(s)))?(a?(a=!1,l=n&&Bh(n)?n:[]):l=n&&Uh(n)?n:{},Hh(c,{name:e,newValue:t(m,l,s)})):typeof s<"u"&&Hh(c,{name:e,newValue:s}));return c}});var j$={};Bc(j$,{PluginRegister:()=>z$,default:()=>M$,parseMd:()=>ko,plugin:()=>_o});module.exports=Lm(j$);var Lh=Vr(Qp()),n1=Vr(eh());var Fw=function(t){if(t==="*:*"||t==="*")return{};if(t==="<>")return{type:"fcode"};let[r,e]=t.split(":");if(r&&e)return{name:r,type:e};if(!r)return{type:e};if(!e){let n=r.match(/(.+)\<\>/);return n?{type:"fcode",name:n[1]}:{name:r,type:"block"}}return{name:r,type:e}},eo=t=>{let r=Fw(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};function Iw(t,r){function e(s){for(var a in s)if(s.hasOwnProperty(a))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[podlite] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[podlite] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var Ks=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(s){return typeof s=="string"?!1:Iw(t,s)}};var bu=Vr(require("crypto"),1);var th="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Ow=128,vi,ss,qw=t=>{!vi||vi.length<t?(vi=Buffer.allocUnsafe(t*Ow),bu.default.randomFillSync(vi),ss=0):ss+t>vi.length&&(bu.default.randomFillSync(vi),ss=0),ss+=t};var rh=(t=21)=>{qw(t);let r="";for(let e=ss-t;e<ss;e++)r+=th[vi[e]&63];return r};var as=t=>({...t}),wu=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},dr=(t,r)=>{let e="block",n=t.name,s={id:rh(),margin:"",...t};var a=as({type:e,...s,content:wu(r)});return a};var to=(t,r)=>as({type:"fcode",...t,content:r}),vu=(t,r)=>as({...t,type:"fcode",name:"L",content:wu(r)}),nh=t=>as({type:"fcode",name:"O",content:wu(t)});var ih=t=>as({type:"fcode",name:"F",content:[{type:"text",value:t}]}),Ws=t=>as({type:"verbatim",value:t});var sh=t=>({type:"block",name:"caption",content:t}),ah=(t,r)=>({type:"image",src:t,alt:r}),oh=({margin:t=""},r)=>dr({name:"root",margin:t},r);var lh=({value:t,location:r})=>dr({name:"formula",location:r},[Ws(t)]);var Rw=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let s={};[...e,...n].map(l=>{s.hasOwnProperty(l.name)||(s[l.name]=[]),l.type==="array"?s[l.name].push(...l.value):s[l.name].push(l.value)});let a=function(){};return a.exists=l=>s.hasOwnProperty(l),a.getAllValues=l=>a.exists(l)?s[l]:[],a.getFirstValue=l=>a.exists(l)?a.getAllValues(l)[0]:void 0,a.getMapValue=l=>{let c=a.getFirstValue(l);return c&&typeof c=="object"&&!Array.isArray(c)?c:void 0},a.asHash=()=>s,a},bn=Rw;function uh(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(uh(e)):r.concat(e),[]):t}function Nw(t){function r(e,n){if(e==null)return e;if(e instanceof Array)return uh(e.map(l=>r(l,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let s=t.slice();s.reverse();let a=s.findIndex(l=>l.isFor(e));if(a!==-1){let l=s.slice(a+1),c=l.findIndex(g=>g.isFor(e)),f=(g=e,m=n,v=r)=>{if(c!==-1)return l[c].fn(g,m,v,()=>{})};return typeof s[a].fn!="function"&&console.warn("[podlite] bad fn for "+JSON.stringify(e,null,2)),s[a].fn(e,n,r,f)}else{let l={...e};if(l.hasOwnProperty("content"))return r(l.content,n)}}return r.rules=t,r}var ch=Nw;var fh=(t,r)=>(e,n,s)=>{if(e.content)return s(e.content,n)};function ph(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function hh(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(hh(e)):r.concat(e),[])}var Lw=t=>{let r=[];function e(s,a){if(s instanceof Array&&console.warn(`[podlite] Unsupported param for ${s}`),s instanceof Object){for(var l in s)s.hasOwnProperty(l)&&e(l,s[l]);return[]}r.push(Ks(eo(s),a))}function n(s,a={}){if(s==null)return s;if(s instanceof Array)return hh(s.map(f=>n(f,a)));if(typeof s=="string")return s;let l=r.slice();l.reverse();let c=l.findIndex(f=>f.isFor(s));if(c!==-1)return l[c].fn(s,a,n);{let f={...s};return f.hasOwnProperty("content")&&(f.content=n(f.content,a)),f}}return e(t),n.rules=r,n},Er=Lw;var dh=Vr(require("events")),$u=class extends dh.EventEmitter{INDEXTERMS;FOOTNOTES;output;errors;out;ons;constructor(r){super(),this.INDEXTERMS=[],this.FOOTNOTES=[],this.output=r,this.ons=[],this.emit("ready")}escape(r){return r}write(r){return this.writeRaw(this.escape(r))}writeRaw(r){typeof this.output=="function"?this.output(r):console.log(r)}getStr(){return{errors:this.errors,toString:()=>this.out,valueOf:()=>this.out}}startWrite(r){(this.ons||[]).map(e=>super.on(...e)),this.emit("start",r),this.addListener("errors",e=>{this.errors=this.errors||[],this.errors.push(e)})}on(...r){return this.ons=this.ons||[],this.ons.unshift([...r]),this}endWrite=()=>{this.emit("end")};_add_nesting(r){}_remove_nesting(r){}addLevel(r){this._add_nesting(r)}removeLevel(r){this._remove_nesting(r)}},mh=$u;var Js=(t={},r=[])=>{let e=r,n=t.processor||gh,s=t.writer;return a.use=l,a.run=c,a.getPlugins=()=>e,a;function a(f){}function l(f,g){if(f instanceof Array)return Js(t,[...e,...g]);if(f instanceof Object){for(var m in f)f.hasOwnProperty(m)&&l(m,f[m]);return a}return e.push(Ks(eo(f),g)),a}function c(f,g){let m="",v=g||s||new mh(X=>{m=m+X}),A=typeof v=="function"?new v(X=>{m=m+X}):v,k=typeof f=="string"?n(f):f,S=e.slice();S.reverse();let I=ch(S.map(X=>Ks(X.rule,X.fn(A,n,k))).reverse()),q={...t.context||{}};A.startWrite(k);let j=I(k,q);return A.endWrite(),{errors:A.errors,toString:()=>m,valueOf:()=>m,indexingTerms:A.INDEXTERMS,annotations:A.FOOTNOTES,defenitions:A.DEFINITIONS,interator:j}}};var bh=Vr(xu());function ku(t){if(!t||!t.trim())return[];try{return bh.parse(t,{startRule:"attributesOnly"})}catch{return[]}}var zh=Vr(xu());var jw=()=>t=>{let r=(n,s={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&s.margin&&s.margin.length>0&&s.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var a=new RegExp(`^[ ]{0,${n.margin.length}}`,"gm");n.text=n.text.replace(a,"")}if(n.type==="block"){s.margin=typeof n.margin!="string"?"":n.margin;let l={...s};l.nest=(l.nest||0)+1,n.content.map(c=>{r(c,s)})}};var e={};return t.forEach(n=>r(n,e)),t},wh=jw;var Qs=Vr($h());var Uw=()=>t=>{let r=Er({":para":(e,n,s)=>Er({":text":(a,l)=>Qs.parse(a.value),":verbatim":(a,l)=>Qs.parse(a.value)})(e,{...n}),":block":(e,n,s)=>{if("name"in e&&e.name==="pod")return{...e,content:s(e.content,n,s)};let a=bn(e,n),l="name"in e?e.name:"",c=["code","data","markdown","picture","formula"].includes(l),f=a.getAllValues("allow");if(ph(l)||c&&f.length===0)return e;let g=f.sort(),m=Er({":verbatim":(v,A)=>Qs.parse(v.value,{allowed:g}),":text":(v,A)=>Qs.parse(v.value,{allowed:g}),":block":(v,A)=>r(v,{...A})});return{...e,content:m(e.content,{...n})}}});return r(t,{})},xh=Uw;var kh=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^item(\d+)?/.exec(e.name);if(n){e.name="item",e.level=n[1]||1;let s=(e.config||[]).find(a=>a.name==="checked");if(s&&(e.checked=s.value!==!1&&s.value!==0&&s.value!=="0"),e.content[0]){let a=e.content[0];if(a.text){if(!s){let f=/^\[( |x)\]\s*/,g=f.exec(a.text);g&&(e.checked=g[1]==="x",a.text=a.text.replace(f,""),a.type==="para"&&(a.content=[a.text]),e.config=e.config||[],e.config.push({name:"checked",value:e.checked,type:"boolean"}))}let l=/^(\s*#\s*)/;l.exec(a.text)&&(a.text=a.text.replace(l,""),a.type==="para"&&(a.content=[a.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}}r(e.content)}};return r(t),t};var _h=()=>t=>{let r=e=>{if(Array.isArray(e))e.forEach(n=>{r(n)});else if(e&&e.type==="block"){let n=/^head(\d+)?/.exec(e.name);if(n&&(e.name="head",e.level=n[1]||1,e.content[0])){let s=e.content[0];if(s.text){let a=/(\s*#\s*)/;a.exec(s.text)&&(s.text=s.text.replace(a,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var Ah=()=>t=>{let r=(a,l)=>(a.name==="item"||a.name==="defn")&&l.name===a.name&&a.level===l.level&&e(a)===e(l),e=a=>Boolean(a.config&&a.config.numbered),n=a=>{let l={};return a.reduce((f,g)=>(g.name==="defn"?r(l,g)?f[f.length-1].push(g):f.push([g]):f.push(g),l=g,f),[]).map(f=>f instanceof Array?f[0].name!=="defn"?f:{type:"list",list:f[0].name==="defn"?"variable":e(f[0])?"ordered":"itemized",level:1,content:[...f]}:(f.content&&f.type!=="fcode"&&(f.content=n(f.content)),f))};return t=(a=>Array.isArray(a)?n(a):(a.type==="block"&&a.name!=="table"&&(a.content=n(a.content)),a))(t),t};var Eh=()=>t=>{let r=(l,c)=>(l.name==="item"||l.name==="defn")&&c.name===l.name&&l.level===c.level&&e(l)===e(c)&&n(l)===n(c),e=l=>Boolean(bn(l,{}).exists("numbered")),n=l=>l.checked!==void 0,s=(l,c=1)=>{let f=k=>k.length>0&&k[k.length-1].type==="list",g=k=>{if(f(k))return k[k.length-1]},m=(k,S)=>S.name&&S.name==="item"&&S.type&&S.type==="block"||S.type==="blankline",v={};return l.reduce((k,S)=>S.name==="item"&&S.type==="block"&&S.level<c?[...k,S]:(S.name==="item"&&S.type==="block"&&(!f(k)||Number(S.level)===c&&g(k).list!==(e(S)?"ordered":n(S)?"task":"itemized"))&&k.push({type:"list",level:S.level,content:[],list:e(S)?"ordered":n(S)?"task":"itemized"}),f(k)&&m(g(k),S)?g(k).content.push(S):k.push(S),k),[]).map(k=>(k.content&&k.type!=="fcode"&&(k.content=s(k.content,Number(k.level||0)+1)),k))};return t=(l=>(Array.isArray(l)?l=s(l):l.type==="block"&&l.name!=="table"&&(l.content=s(l.content)),l))(t),t};var Sh=()=>t=>Er({defn:e=>{let n=e.content,s=n.length,a=[],l=!1;for(let c=0;c<s;c++){let f=n[c];if(f.type==="para"&&!l){let g=f.content[0],v=g.value.split(`
|
|
15
|
+
`),A=v.shift(),k={type:"para",name:"term",text:A,content:[{type:"text",value:A}]};a.push(k),v.length==1&&v[0]===""||(g.value=v.join(`
|
|
16
|
+
`),f.text=g.value,a.push(f)),l=!0}else a.push(f)}return e.content=a,e}})(t,{});function Zs(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Zs(e)):r.concat(e),[])}function Au(t){let r=[],e="",n=[],s=!1,a=0;for(;a<t.length;){let l=t[a];if(s){if(l==='"'&&t[a+1]==='"'){e+='"',a+=2;continue}if(l==='"'){s=!1,a++;continue}e+=l,a++;continue}if(l==='"'&&e===""){s=!0,a++;continue}if(l===","){n.push(e),e="",a++;continue}if(l==="\r"){a++;continue}if(l===`
|
|
17
|
+
`){n.push(e),r.push(n),n=[],e="",a++;continue}e+=l,a++}return(e!==""||n.length>0)&&(n.push(e),r.push(n)),r.filter(l=>!(l.length===1&&l[0].trim()===""))}function Eu(t){return t.split(/\r?\n/).map(n=>n.split(" ")).filter(n=>!(n.length===1&&n[0].trim()===""))}function ro(t){if(!t||typeof t!="string")return{type:"",params:{}};let r=t.split(";").map(s=>s.trim()),e=(r.shift()||"").toLowerCase(),n={};for(let s of r){if(!s)continue;let a=s.indexOf("=");if(a<0)continue;let l=s.slice(0,a).trim().toLowerCase(),c=s.slice(a+1).trim();(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(c=c.slice(1,-1)),l&&(n[l]=c)}return{type:e,params:n}}function Su(t,r){let e=null,n=s=>{if(!e){if(Array.isArray(s)){s.forEach(n);return}if(!(!s||typeof s!="object")){if(s.type==="block"&&s.name==="data"&&bn(s,{}).getFirstValue("key")===r){e=s;return}Array.isArray(s.content)&&s.content.forEach(n)}}};return n(t),e}function no(t){if(!t||!Array.isArray(t.content))return"";let r=t.content.find(e=>e&&e.type==="verbatim");return r&&typeof r.value=="string"?r.value:""}function Hw(t){let r=[];Er({"row:text":l=>(r.push(l.value),l),"head:text":l=>(r.push(l.value),l)})(t,{});let s=r.join(`
|
|
18
|
+
`).trim().split(/\r?\n/).map(l=>l.trim()).filter(l=>l.length>0);if(s.length!==1)return null;let a=s[0].match(/^(data|file):(\S+)$/);return a?{scheme:a[1],target:a[2]}:null}function Th(t){return{name:"cell",type:"block",margin:"",content:[{type:"text",value:t}]}}function Gw(t,r){let e={name:"row",type:"block",margin:"",content:t};return r&&(e.config=[{name:"header",value:!0,type:"boolean"}]),e}function Cu(t,r=!1){return t.map((e,n)=>{let s=e.map(a=>Th(a.trim()));return Gw(s,r&&n===0)})}function Xs(t,r="table"){if(!t||!Array.isArray(t.content))return t;let e=t.content.filter(v=>v&&v.type==="block"&&v.name==="row");if(e.length===0)return t;let n=v=>Array.isArray(v.content)?v.content.filter(A=>A&&A.name==="cell"):[],s=v=>Array.isArray(v.config)&&v.config.some(A=>A.name==="header"&&A.value===!0),a=v=>Array.isArray(v.config)&&v.config.some(A=>A.name==="colspan"||A.name==="rowspan"),l=v=>n(v).some(a);if(e.some(l))return t;let c=e.find(s),f=c?n(c).length:Math.max(...e.map(v=>n(v).length));if(f===0)return t;let g=!1,m=t.content.map(v=>{if(!v||v.type!=="block"||v.name!=="row")return v;let A=n(v);if(A.length===f)return v;if(A.length<f){let q=[];for(let j=A.length;j<f;j++)q.push(Th(""));return console.warn(`[${r}] row has ${A.length} cells, expected ${f} \u2014 padded with ${q.length} empty`),g=!0,{...v,content:[...v.content,...q]}}let k=A.length-f;console.warn(`[${r}] row has ${A.length} cells, expected ${f} \u2014 truncated ${k}`),g=!0;let S=f,I=[];for(let q of v.content||[])q&&q.type==="block"&&q.name==="cell"?S>0&&(I.push(q),S--):I.push(q);return{...v,content:I}});return g?{...t,content:m}:t}function Kw(t){let r=new Set;for(let e of t)if(!(!e||typeof e!="string")&&(/\s\|\s/.test(e)?r.add("pipe"):/\s\+\s/.test(e)?r.add("plus"):e.trim().length>0&&r.add("whitespace"),r.size>1))break;r.size>1&&console.warn(`[table] mixed separator types detected: ${Array.from(r).join(", ")} \u2014 recommend a single style`)}function Ww(t,r){return{type:"block",name:"code",margin:t.margin||"",content:Array.isArray(r.content)?r.content:[],config:Array.isArray(t.config)?t.config:[]}}var _u=(t,r,e)=>{let n=[];for(let s=0;t.length>s;s++)n.push(e(parseInt(t[s],10),parseInt(r[s],10)));return n.join("")},Jw=(t,r)=>{let e=Math.max(...[...t,...r].map(a=>a.length));return t.map(a=>{let l=a+" ".repeat(e-a.length),c=[],f=/\s+[+|\s]\s/g,g;for(;(g=f.exec(l))!=null;){let m="1".repeat(g.index)+"0".repeat(g[0].length);c.push(m+"1".repeat(e-m.length))}return c.reduce((m,v)=>_u(m,v,(A,k)=>A&k),"1".repeat(e))}).map(a=>_u(a,"",l=>l==0?1:0)).reduce((a,l)=>_u(a,l,(c,f)=>c&f),"1".repeat(e))},Ch=(t,r)=>{let n=Zs(t.split(/\n/).filter(a=>a.length>0)).map(a=>{let l=/((1+|0+))/g,c=[],f;for(;(f=l.exec(r))!=null;)f[0][0]!="1"&&c.push(a.substring(f.index,f.index+f[0].length));return c}),s=[];return n.reduce((a,l)=>{for(let c=0;c<l.length;c++)a[c]=(a[c]===void 0?"":a[c])+" "+l[c];return a},s),s},Tu=t=>/(?:^|\s)\|(?:\s|$)/.test(t)?"pipe":/(?:^|\s)\+(?:\s|$)/.test(t)?"plus":"whitespace",Ph=t=>{let r=0,e=t.length;return t[r]===""&&r++,e>r&&t[e-1]===""&&e--,t.slice(r,e)},Dh=t=>Ph(t.split(/\s*\|\s*/).map(r=>r.trim())),Fh=t=>Ph(t.split(/\s*\+\s*/).map(r=>r.trim())),Ih=t=>t.trim().split(/\s{2,}/).filter(r=>r!==""),Oh=t=>{if(t.trim()==="")return[];let e=Tu(t);return e==="pipe"?Dh(t):e==="plus"?Fh(t):Ih(t)},Qw=t=>{let r=t.split(/\r?\n/).filter(c=>c.trim()!=="");if(r.length===0)return[];if(r.length===1)return Oh(r[0]);let e=Tu(r[0]),n=e==="pipe"?Dh:e==="plus"?Fh:Ih,s=r.map(n),a=Math.max(...s.map(c=>c.length)),l=[];for(let c=0;c<a;c++){let f=s.map(g=>g[c]??"").filter(g=>g!=="");l.push(f.join(" "))}return l},Zw=t=>{if(!Array.isArray(t.content)||t.content.length===0||!t.content.some(n=>n&&n.type==="block"&&n.name!=="cell"&&n.name!=="blankline"))return t;let e=t.content.map(n=>!n||n.type!=="block"||n.name==="cell"||n.name==="blankline"?n:{type:"block",name:"cell",content:[n],margin:n.margin||""});return{...t,content:e}},Xw=t=>Array.isArray(t.content)&&t.content.some(r=>r&&r.type==="block"&&(r.name==="row"||r.name==="cell")),qh=()=>t=>Er({table:e=>{let n=Hw(e);if(n&&n.scheme==="data"){let Y=Su(t,n.target);if(!Y)return console.warn(`[table] no =data block found for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let pe=bn(Y,{}).getFirstValue("mime-type"),{type:xe,params:$e}=ro(pe),Le=xe==="text/csv";if(Le||xe==="text/tab-separated-values"){let De=no(Y),ge=Le?Au(De):Eu(De);if(ge.length===0)return console.warn(`[table] ${Le?"CSV":"TSV"} parse produced no rows for data:${n.target} \u2014 rendered as empty`),{...e,content:[]};let Te=$e.header==="present",Qe={...e,content:Cu(ge,Te)};return Xs(Qe,`table data:${n.target}`)}return console.warn(`[table] =data :key<${n.target}> has non-tabular mime-type ${pe||"(none)"} \u2014 rendered as =code`),Ww(e,Y)}if(Xw(e)){let Y=(e.content||[]).map(pe=>pe&&pe.name==="row"?Zw(pe):pe);return Xs({...e,content:Y},"table")}let s=[],a=Y=>{s.push(Y.value)},l=[];if(Er({"row:text":a,"head:text":a,":separator":Y=>{l.push(Y.text)}})(e),!s.length)return e;let c=Y=>Y.split(/\n/).filter(pe=>pe.length>0),f=Zs(s.map(c)),g=Zs(l.map(c));Kw(f);let m=[];Er({"row:text":Y=>{m.push(Y.value)}})(e);let v=(Y,pe,xe={})=>({...xe,name:Y,type:"block",content:Array.isArray(pe)?pe:[pe]}),A=Y=>v("row",Y),k=Y=>v("row",Y,{config:[{name:"header",value:!0,type:"boolean"}]}),S=Y=>v("cell",{type:"text",value:Y}),I=Jw(f,g),q=new Set(f.map(Tu)),j=q.has("pipe")||q.has("plus"),X=q.has("whitespace"),le=j&&X,be=Y=>le&&Y.split(/\r?\n/).filter(xe=>xe.trim()!=="").length<=1?Qw(Y):Ch(Y,I),me=Er({"row:text":Y=>{if(m.length==1){let pe=Zs([Y.value].map(c));return le?pe.map(xe=>A(Oh(xe).map(S))):pe.map(xe=>A(Ch(xe,I).map(S)))}return A(be(Y.value).map(S))},"head:text":Y=>k(be(Y.value).map(S))})(e);return Xs(me,"table")}})(t,{});function Yw(t){return!Array.isArray(t)||t.length===0?[]:t.length===1&&typeof t[0]=="string"&&t[0].includes(",")?t[0].split(",").map(r=>r.trim()).filter(r=>r.length>0):t.map(r=>String(r).trim()).filter(r=>r.length>0)}function Rh(t,r,e){let n=t.trim();if(/^\d+$/.test(n)){let a=parseInt(n,10),l=a-1;if(l<0||l>=e)throw new Error(`column index ${a} out of range (1..${e})`);return l}if(!r)throw new Error(`column name "${t}" requires header=present`);let s=r.indexOf(t);if(s===-1)throw new Error(`column name "${t}" not found in header`);return s}function e1(t,r,e){if(t.length===0)return t;let n=t[0].length,s=e?t[0]:null,a=r.map(l=>Rh(l,s,n));return t.map(l=>a.map(c=>l[c]??""))}function t1(t,r,e){if(!e||t.length===0)return t;let n=[...t[0]];for(let[s,a]of Object.entries(r)){let l=Rh(s,n,n.length);n[l]=String(a)}return[n,...t.slice(1)]}function r1(t,r){let e=bn(t,{}),n=e.getFirstValue("src"),s=e.getFirstValue("mime-type"),a=e.getMapValue("rename"),l=e.exists("columns"),c=l?Yw(e.getAllValues("columns")):null,f=no(t),g=f.trim().length>0;if(n&&g)throw new Error(":src and inline body are mutually exclusive");if(l&&(!c||c.length===0))throw new Error(":columns must have at least one entry; omit the attribute to render all columns");let m,v,A;if(n){let j=String(n),X=j.match(/^(file|data|http|https|doc):(.+)$/),le=X?X[1]:"file",be=X?X[2]:j;if(le==="data"){let me=Su(r,be);if(!me)return console.warn(`[data-table] no =data block found for data:${be} \u2014 rendered as empty`),{...t,name:"table",content:[]};if(s)throw new Error(`:mime-type cannot be declared with :src<data:${be}> (inherited from referenced block)`);let Y=bn(me,{}).getFirstValue("mime-type");if(!Y)return console.warn(`[data-table] =data block ${be} has no :mime-type \u2014 rendered as empty`),{...t,name:"table",content:[]};let pe=ro(Y);v=pe.type,A=pe.params.header==="present",m=no(me)}else return t}else{if(!s)throw new Error("inline body requires :mime-type");let j=ro(s);v=j.type,A=j.params.header==="present",m=f}let k=v==="text/csv";if(!k&&!(v==="text/tab-separated-values"))return console.warn(`[data-table] unsupported mime-type ${v} \u2014 rendered as empty`),{...t,name:"table",content:[]};let I=k?Au(m):Eu(m);if(I.length===0)return console.warn(`[data-table] ${k?"CSV":"TSV"} parse produced no rows \u2014 rendered as empty`),{...t,name:"table",content:[]};c&&(I=e1(I,c,A)),a&&(I=t1(I,a,A));let q={...t,name:"table",content:Cu(I,A)};return Xs(q,"data-table")}var Nh=()=>t=>Er({"data-table":e=>{try{return r1(e,t)}catch(n){return console.warn(`[data-table] ${n.message}`),{...e,name:"table",content:[]}}}})(t);var Qk=new Lh.default({strict:!0,allowUnionTypes:!0});function i1(){var t=[];return r.use=e,r.parse=n,r.use(wh),r.use(kh),r.use(_h),r.use(Sh),r.use(qh),r.use(Nh),r.use(xh),r.use(Eh),r.use(Ah),r;function r(){}function e(s){if(!["function"].includes(typeof s))throw s;return t.push(s),r}function n(s,a={skipChain:0,podMode:1}){let{skipChain:l=0,podMode:c=1}=a,f=zh.parse(s,{podMode:c});if(!l)for(let g=0;g<t.length;g++){let m=t[g];f=m(a)(f)}return f}}var gh=i1().parse;function Pu(t){if(t)throw t}var id=Vr(Du(),1),ju=Vr(Jh(),1);function Ys(t){if(typeof t!="object"||t===null)return!1;let r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Qh(){let t=[],r={run:e,use:n};return r;function e(...s){let a=-1,l=s.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...s);function c(f,...g){let m=t[++a],v=-1;if(f){l(f);return}for(;++v<s.length;)(g[v]===null||g[v]===void 0)&&(g[v]=s[v]);s=g,m?s1(m,c)(...g):l(null,...g)}}function n(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function s1(t,r){let e;return n;function n(...l){let c=t.length>l.length,f;c&&l.push(s);try{f=t.apply(this,l)}catch(g){let m=g;if(c&&e)throw m;return s(m)}c||(f instanceof Promise?f.then(a,s):f instanceof Error?s(f):a(f))}function s(l,...c){e||(e=!0,r(l,...c))}function a(l){s(null,l)}}var ed=Vr(Du(),1);function ki(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Zh(t.position):"start"in t||"end"in t?Zh(t):"line"in t||"column"in t?Fu(t):""}function Fu(t){return Xh(t&&t.line)+":"+Xh(t&&t.column)}function Zh(t){return Fu(t&&t.start)+"-"+Fu(t&&t.end)}function Xh(t){return t&&typeof t=="number"?t:1}var mr=class extends Error{constructor(r,e,n){let s=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let l=n.indexOf(":");l===-1?s[1]=n:(s[0]=n.slice(0,l),s[1]=n.slice(l+1))}e&&("type"in e||"position"in e?e.position&&(a=e.position):"start"in e||"end"in e?a=e:("line"in e||"column"in e)&&(a.start=e)),this.name=ki(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.source=s[0],this.ruleId=s[1],this.position=a,this.actual,this.expected,this.file,this.url,this.note}};mr.prototype.file="";mr.prototype.name="";mr.prototype.reason="";mr.prototype.message="";mr.prototype.stack="";mr.prototype.fatal=null;mr.prototype.column=null;mr.prototype.line=null;mr.prototype.source=null;mr.prototype.ruleId=null;mr.prototype.position=null;var Ur=Vr(require("path"),1);var Iu=Vr(require("process"),1);var Ou=require("url");function so(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var qu=["history","path","basename","stem","extname","dirname"],ea=class{constructor(r){let e;r?typeof r=="string"||(0,ed.default)(r)?e={value:r}:so(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Iu.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<qu.length;){let a=qu[n];a in e&&e[a]!==void 0&&(this[a]=a==="history"?[...e[a]]:e[a])}let s;for(s in e)qu.includes(s)||(this[s]=e[s])}get path(){return this.history[this.history.length-1]}set path(r){so(r)&&(r=(0,Ou.fileURLToPath)(r)),Nu(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Ur.default.dirname(this.path):void 0}set dirname(r){Yh(this.basename,"dirname"),this.path=Ur.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Ur.default.basename(this.path):void 0}set basename(r){Nu(r,"basename"),Ru(r,"basename"),this.path=Ur.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Ur.default.extname(this.path):void 0}set extname(r){if(Ru(r,"extname"),Yh(this.dirname,"extname"),r){if(r.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ur.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Ur.default.basename(this.path,this.extname):void 0}set stem(r){Nu(r,"stem"),Ru(r,"stem"),this.path=Ur.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let s=new mr(r,e,n);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}info(r,e,n){let s=this.message(r,e,n);return s.fatal=null,s}fail(r,e,n){let s=this.message(r,e,n);throw s.fatal=!0,s}};function Ru(t,r){if(t&&t.includes(Ur.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Ur.default.sep+"`")}function Nu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Yh(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Vu=ad().freeze(),sd={}.hasOwnProperty;function ad(){let t=Qh(),r=[],e={},n,s=-1;return a.data=l,a.Parser=void 0,a.Compiler=void 0,a.freeze=c,a.attachers=r,a.use=f,a.parse=g,a.stringify=m,a.run=v,a.runSync=A,a.process=k,a.processSync=S,a;function a(){let I=ad(),q=-1;for(;++q<r.length;)I.use(...r[q]);return I.data((0,ju.default)(!0,{},e)),I}function l(I,q){return typeof I=="string"?arguments.length===2?(Mu("data",n),e[I]=q,a):sd.call(e,I)&&e[I]||null:I?(Mu("data",n),e=I,a):e}function c(){if(n)return a;for(;++s<r.length;){let[I,...q]=r[s];if(q[0]===!1)continue;q[0]===!0&&(q[0]=void 0);let j=I.call(a,...q);typeof j=="function"&&t.use(j)}return n=!0,s=Number.POSITIVE_INFINITY,a}function f(I,...q){let j;if(Mu("use",n),I!=null)if(typeof I=="function")me(I,...q);else if(typeof I=="object")Array.isArray(I)?be(I):le(I);else throw new TypeError("Expected usable value, not `"+I+"`");return j&&(e.settings=Object.assign(e.settings||{},j)),a;function X(Y){if(typeof Y=="function")me(Y);else if(typeof Y=="object")if(Array.isArray(Y)){let[pe,...xe]=Y;me(pe,...xe)}else le(Y);else throw new TypeError("Expected usable value, not `"+Y+"`")}function le(Y){be(Y.plugins),Y.settings&&(j=Object.assign(j||{},Y.settings))}function be(Y){let pe=-1;if(Y!=null)if(Array.isArray(Y))for(;++pe<Y.length;){let xe=Y[pe];X(xe)}else throw new TypeError("Expected a list of plugins, not `"+Y+"`")}function me(Y,pe){let xe=-1,$e;for(;++xe<r.length;)if(r[xe][0]===Y){$e=r[xe];break}$e?(Ys($e[1])&&Ys(pe)&&(pe=(0,ju.default)(!0,$e[1],pe)),$e[1]=pe):r.push([...arguments])}}function g(I){a.freeze();let q=ta(I),j=a.Parser;return Lu("parse",j),td(j,"parse")?new j(String(q),q).parse():j(String(q),q)}function m(I,q){a.freeze();let j=ta(q),X=a.Compiler;return zu("stringify",X),rd(I),td(X,"compile")?new X(I,j).compile():X(I,j)}function v(I,q,j){if(rd(I),a.freeze(),!j&&typeof q=="function"&&(j=q,q=void 0),!j)return new Promise(X);X(null,j);function X(le,be){t.run(I,ta(q),me);function me(Y,pe,xe){pe=pe||I,Y?be(Y):le?le(pe):j(null,pe,xe)}}}function A(I,q){let j,X;return a.run(I,q,le),nd("runSync","run",X),j;function le(be,me){Pu(be),j=me,X=!0}}function k(I,q){if(a.freeze(),Lu("process",a.Parser),zu("process",a.Compiler),!q)return new Promise(j);j(null,q);function j(X,le){let be=ta(I);a.run(a.parse(be),be,(Y,pe,xe)=>{if(Y||!pe||!xe)me(Y);else{let $e=a.stringify(pe,xe);$e==null||(l1($e)?xe.value=$e:xe.result=$e),me(Y,xe)}});function me(Y,pe){Y||!pe?le(Y):X?X(pe):q(null,pe)}}}function S(I){let q;a.freeze(),Lu("processSync",a.Parser),zu("processSync",a.Compiler);let j=ta(I);return a.process(j,X),nd("processSync","process",q),j;function X(le){q=!0,Pu(le)}}}function td(t,r){return typeof t=="function"&&t.prototype&&(a1(t.prototype)||r in t.prototype)}function a1(t){let r;for(r in t)if(sd.call(t,r))return!0;return!1}function Lu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function zu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Mu(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rd(t){if(!Ys(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function nd(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function ta(t){return o1(t)?t:new ea(t)}function o1(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function l1(t){return typeof t=="string"||(0,id.default)(t)}function ld(t,r){var{includeImageAlt:e=!0}=r||{};return ud(t,e)}function ud(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&od(t.children,r)||Array.isArray(t)&&od(t,r))||""}function od(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=ud(t[n],r);return e.join("")}function Dt(t,r,e,n){let s=t.length,a=0,l;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,e=e>0?e:0,n.length<1e4)l=Array.from(n),l.unshift(r,e),[].splice.apply(t,l);else for(e&&[].splice.apply(t,[r,e]);a<n.length;)l=n.slice(a,a+1e4),l.unshift(r,0),[].splice.apply(t,l),a+=1e4,r+=1e4}function gr(t,r){return t.length>0?(Dt(t,t.length,0,r),t):r}var cd={}.hasOwnProperty;function ao(t){let r={},e=-1;for(;++e<t.length;)u1(r,t[e]);return r}function u1(t,r){let e;for(e in r){let s=(cd.call(t,e)?t[e]:void 0)||(t[e]={}),a=r[e],l;for(l in a){cd.call(s,l)||(s[l]=[]);let c=a[l];c1(s[l],Array.isArray(c)?c:c?[c]:[])}}}function c1(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);Dt(t,0,0,n)}var fd=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var sr=Qn(/[A-Za-z]/),_i=Qn(/\d/),pd=Qn(/[\dA-Fa-f]/),Ht=Qn(/[\dA-Za-z]/),hd=Qn(/[!-/:-@[-`{-~]/),Bu=Qn(/[#-'*+\--9=?A-Z^-~]/);function Jn(t){return t!==null&&(t<32||t===127)}function tt(t){return t!==null&&(t<0||t===32)}function he(t){return t!==null&&t<-2}function Ue(t){return t===-2||t===-1||t===32}var Ai=Qn(/\s/),Ei=Qn(fd);function Qn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ke(t,r,e,n){let s=n?n-1:Number.POSITIVE_INFINITY,a=0;return l;function l(f){return Ue(f)?(t.enter(e),c(f)):r(f)}function c(f){return Ue(f)&&a++<s?(t.consume(f),c):(t.exit(e),r(f))}}var dd={tokenize:f1};function f1(t){let r=t.attempt(this.parser.constructs.contentInitial,n,s),e;return r;function n(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),ke(t,r,"linePrefix")}function s(c){return t.enter("paragraph"),a(c)}function a(c){let f=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=f),e=f,l(c)}function l(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return he(c)?(t.consume(c),t.exit("chunkText"),a):(t.consume(c),l)}}var gd={tokenize:p1},md={tokenize:h1};function p1(t){let r=this,e=[],n=0,s,a,l;return c;function c(le){if(n<e.length){let be=e[n];return r.containerState=be[1],t.attempt(be[0].continuation,f,g)(le)}return g(le)}function f(le){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&X();let be=r.events.length,me=be,Y;for(;me--;)if(r.events[me][0]==="exit"&&r.events[me][1].type==="chunkFlow"){Y=r.events[me][1].end;break}j(n);let pe=be;for(;pe<r.events.length;)r.events[pe][1].end=Object.assign({},Y),pe++;return Dt(r.events,me+1,0,r.events.slice(be)),r.events.length=pe,g(le)}return c(le)}function g(le){if(n===e.length){if(!s)return A(le);if(s.currentConstruct&&s.currentConstruct.concrete)return S(le);r.interrupt=Boolean(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(md,m,v)(le)}function m(le){return s&&X(),j(n),A(le)}function v(le){return r.parser.lazy[r.now().line]=n!==e.length,l=r.now().offset,S(le)}function A(le){return r.containerState={},t.attempt(md,k,S)(le)}function k(le){return n++,e.push([r.currentConstruct,r.containerState]),A(le)}function S(le){if(le===null){s&&X(),j(0),t.consume(le);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:s}),I(le)}function I(le){if(le===null){q(t.exit("chunkFlow"),!0),j(0),t.consume(le);return}return he(le)?(t.consume(le),q(t.exit("chunkFlow")),n=0,r.interrupt=void 0,c):(t.consume(le),I)}function q(le,be){let me=r.sliceStream(le);if(be&&me.push(null),le.previous=a,a&&(a.next=le),a=le,s.defineSkip(le.start),s.write(me),r.parser.lazy[le.start.line]){let Y=s.events.length;for(;Y--;)if(s.events[Y][1].start.offset<l&&(!s.events[Y][1].end||s.events[Y][1].end.offset>l))return;let pe=r.events.length,xe=pe,$e,Le;for(;xe--;)if(r.events[xe][0]==="exit"&&r.events[xe][1].type==="chunkFlow"){if($e){Le=r.events[xe][1].end;break}$e=!0}for(j(n),Y=pe;Y<r.events.length;)r.events[Y][1].end=Object.assign({},Le),Y++;Dt(r.events,xe+1,0,r.events.slice(pe)),r.events.length=Y}}function j(le){let be=e.length;for(;be-- >le;){let me=e[be];r.containerState=me[1],me[0].exit.call(r,t)}e.length=le}function X(){s.write([null]),a=void 0,s=void 0,r.containerState._closeFlow=void 0}}function h1(t,r,e){return ke(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function os(t){if(t===null||tt(t)||Ai(t))return 1;if(Ei(t))return 2}function Zn(t,r,e){let n=[],s=-1;for(;++s<t.length;){let a=t[s].resolveAll;a&&!n.includes(a)&&(r=a(r,e),n.push(a))}return r}var ra={name:"attention",tokenize:m1,resolveAll:d1};function d1(t,r){let e=-1,n,s,a,l,c,f,g,m;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;f=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let v=Object.assign({},t[n][1].end),A=Object.assign({},t[e][1].start);yd(v,-f),yd(A,f),l={type:f>1?"strongSequence":"emphasisSequence",start:v,end:Object.assign({},t[n][1].end)},c={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:A},a={type:f>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},s={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},c.end)},t[n][1].end=Object.assign({},l.start),t[e][1].start=Object.assign({},c.end),g=[],t[n][1].end.offset-t[n][1].start.offset&&(g=gr(g,[["enter",t[n][1],r],["exit",t[n][1],r]])),g=gr(g,[["enter",s,r],["enter",l,r],["exit",l,r],["enter",a,r]]),g=gr(g,Zn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),g=gr(g,[["exit",a,r],["enter",c,r],["exit",c,r],["exit",s,r]]),t[e][1].end.offset-t[e][1].start.offset?(m=2,g=gr(g,[["enter",t[e][1],r],["exit",t[e][1],r]])):m=0,Dt(t,n-1,e-n+3,g),e=n+g.length-m-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function m1(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,s=os(n),a;return l;function l(f){return t.enter("attentionSequence"),a=f,c(f)}function c(f){if(f===a)return t.consume(f),c;let g=t.exit("attentionSequence"),m=os(f),v=!m||m===2&&s||e.includes(f),A=!s||s===2&&m||e.includes(n);return g._open=Boolean(a===42?v:v&&(s||!A)),g._close=Boolean(a===42?A:A&&(m||!v)),r(f)}}function yd(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Uu={name:"autolink",tokenize:g1};function g1(t,r,e){let n=1;return s;function s(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(S){return sr(S)?(t.consume(S),l):Bu(S)?g(S):e(S)}function l(S){return S===43||S===45||S===46||Ht(S)?c(S):g(S)}function c(S){return S===58?(t.consume(S),f):(S===43||S===45||S===46||Ht(S))&&n++<32?(t.consume(S),c):g(S)}function f(S){return S===62?(t.exit("autolinkProtocol"),k(S)):S===null||S===32||S===60||Jn(S)?e(S):(t.consume(S),f)}function g(S){return S===64?(t.consume(S),n=0,m):Bu(S)?(t.consume(S),g):e(S)}function m(S){return Ht(S)?v(S):e(S)}function v(S){return S===46?(t.consume(S),n=0,m):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",k(S)):A(S)}function A(S){return(S===45||Ht(S))&&n++<63?(t.consume(S),S===45?A:v):e(S)}function k(S){return t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r}}var wn={tokenize:y1,partial:!0};function y1(t,r,e){return ke(t,n,"linePrefix");function n(s){return s===null||he(s)?r(s):e(s)}}var oo={name:"blockQuote",tokenize:b1,continuation:{tokenize:w1},exit:v1};function b1(t,r,e){let n=this;return s;function s(l){if(l===62){let c=n.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(l),t.exit("blockQuoteMarker"),a}return e(l)}function a(l){return Ue(l)?(t.enter("blockQuotePrefixWhitespace"),t.consume(l),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(l))}}function w1(t,r,e){return ke(t,t.attempt(oo,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function v1(t){t.exit("blockQuote")}var lo={name:"characterEscape",tokenize:$1};function $1(t,r,e){return n;function n(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return hd(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(a)}}var Hu={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
19
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var x1={}.hasOwnProperty;function ls(t){return x1.call(Hu,t)?Hu[t]:!1}var uo={name:"characterReference",tokenize:k1};function k1(t,r,e){let n=this,s=0,a,l;return c;function c(v){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),f}function f(v){return v===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(v),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),a=31,l=Ht,m(v))}function g(v){return v===88||v===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(v),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,l=pd,m):(t.enter("characterReferenceValue"),a=7,l=_i,m(v))}function m(v){let A;return v===59&&s?(A=t.exit("characterReferenceValue"),l===Ht&&!ls(n.sliceSerialize(A))?e(v):(t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):l(v)&&s++<a?(t.consume(v),m):e(v)}}var co={name:"codeFenced",tokenize:_1,concrete:!0};function _1(t,r,e){let n=this,s={tokenize:me,partial:!0},a={tokenize:be,partial:!0},l=this.events[this.events.length-1],c=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,f=0,g;return m;function m(Y){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g=Y,v(Y)}function v(Y){return Y===g?(t.consume(Y),f++,v):(t.exit("codeFencedFenceSequence"),f<3?e(Y):ke(t,A,"whitespace")(Y))}function A(Y){return Y===null||he(Y)?q(Y):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(Y))}function k(Y){return Y===null||tt(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ke(t,S,"whitespace")(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),k)}function S(Y){return Y===null||he(Y)?q(Y):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Y))}function I(Y){return Y===null||he(Y)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),q(Y)):Y===96&&Y===g?e(Y):(t.consume(Y),I)}function q(Y){return t.exit("codeFencedFence"),n.interrupt?r(Y):j(Y)}function j(Y){return Y===null?le(Y):he(Y)?t.attempt(a,t.attempt(s,le,c?ke(t,j,"linePrefix",c+1):j),le)(Y):(t.enter("codeFlowValue"),X(Y))}function X(Y){return Y===null||he(Y)?(t.exit("codeFlowValue"),j(Y)):(t.consume(Y),X)}function le(Y){return t.exit("codeFenced"),r(Y)}function be(Y,pe,xe){let $e=this;return Le;function Le(De){return Y.enter("lineEnding"),Y.consume(De),Y.exit("lineEnding"),Pe}function Pe(De){return $e.parser.lazy[$e.now().line]?xe(De):pe(De)}}function me(Y,pe,xe){let $e=0;return ke(Y,Le,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(ge){return Y.enter("codeFencedFence"),Y.enter("codeFencedFenceSequence"),Pe(ge)}function Pe(ge){return ge===g?(Y.consume(ge),$e++,Pe):$e<f?xe(ge):(Y.exit("codeFencedFenceSequence"),ke(Y,De,"whitespace")(ge))}function De(ge){return ge===null||he(ge)?(Y.exit("codeFencedFence"),pe(ge)):xe(ge)}}}var na={name:"codeIndented",tokenize:E1},A1={tokenize:S1,partial:!0};function E1(t,r,e){let n=this;return s;function s(g){return t.enter("codeIndented"),ke(t,a,"linePrefix",4+1)(g)}function a(g){let m=n.events[n.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(g):e(g)}function l(g){return g===null?f(g):he(g)?t.attempt(A1,l,f)(g):(t.enter("codeFlowValue"),c(g))}function c(g){return g===null||he(g)?(t.exit("codeFlowValue"),l(g)):(t.consume(g),c)}function f(g){return t.exit("codeIndented"),r(g)}}function S1(t,r,e){let n=this;return s;function s(l){return n.parser.lazy[n.now().line]?e(l):he(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),s):ke(t,a,"linePrefix",4+1)(l)}function a(l){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(l):he(l)?s(l):e(l)}}var Gu={name:"codeText",tokenize:P1,resolve:C1,previous:T1};function C1(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[r][1].type="codeTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="codeTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function T1(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function P1(t,r,e){let n=this,s=0,a,l;return c;function c(A){return t.enter("codeText"),t.enter("codeTextSequence"),f(A)}function f(A){return A===96?(t.consume(A),s++,f):(t.exit("codeTextSequence"),g(A))}function g(A){return A===null?e(A):A===96?(l=t.enter("codeTextSequence"),a=0,v(A)):A===32?(t.enter("space"),t.consume(A),t.exit("space"),g):he(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),g):(t.enter("codeTextData"),m(A))}function m(A){return A===null||A===32||A===96||he(A)?(t.exit("codeTextData"),g(A)):(t.consume(A),m)}function v(A){return A===96?(t.consume(A),a++,v):a===s?(t.exit("codeTextSequence"),t.exit("codeText"),r(A)):(l.type="codeTextData",m(A))}}function fo(t){let r={},e=-1,n,s,a,l,c,f,g;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(f=n[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,D1(t,e)),e=r[e],g=!0);else if(n[1]._container){for(a=e,s=void 0;a--&&(l=t[a],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(s&&(t[s][1].type="lineEndingBlank"),l[1].type="lineEnding",s=a);s&&(n[1].end=Object.assign({},t[s][1].start),c=t.slice(s,e),c.unshift(n),Dt(t,s,e-s+1,c))}}return!g}function D1(t,r){let e=t[r][1],n=t[r][2],s=r-1,a=[],l=e._tokenizer||n.parser[e.contentType](e.start),c=l.events,f=[],g={},m,v,A=-1,k=e,S=0,I=0,q=[I];for(;k;){for(;t[++s][1]!==k;);a.push(s),k._tokenizer||(m=n.sliceStream(k),k.next||m.push(null),v&&l.defineSkip(k.start),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),v=k,k=k.next}for(k=e;++A<c.length;)c[A][0]==="exit"&&c[A-1][0]==="enter"&&c[A][1].type===c[A-1][1].type&&c[A][1].start.line!==c[A][1].end.line&&(I=A+1,q.push(I),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(l.events=[],k?(k._tokenizer=void 0,k.previous=void 0):q.pop(),A=q.length;A--;){let j=c.slice(q[A],q[A+1]),X=a.pop();f.unshift([X,X+j.length-1]),Dt(t,X,2,j)}for(A=-1;++A<f.length;)g[S+f[A][0]]=S+f[A][1],S+=f[A][1]-f[A][0]-1;return g}var Ku={tokenize:O1,resolve:I1},F1={tokenize:q1,partial:!0};function I1(t){return fo(t),t}function O1(t,r){let e;return n;function n(c){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):he(c)?t.check(F1,l,a)(c):(t.consume(c),s)}function a(c){return t.exit("chunkContent"),t.exit("content"),r(c)}function l(c){return t.consume(c),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,s}}function q1(t,r,e){let n=this;return s;function s(l){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),ke(t,a,"linePrefix")}function a(l){if(l===null||he(l))return e(l);let c=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(l):t.interrupt(n.parser.constructs.flow,e,r)(l)}}function po(t,r,e,n,s,a,l,c,f){let g=f||Number.POSITIVE_INFINITY,m=0;return v;function v(j){return j===60?(t.enter(n),t.enter(s),t.enter(a),t.consume(j),t.exit(a),A):j===null||j===41||Jn(j)?e(j):(t.enter(n),t.enter(l),t.enter(c),t.enter("chunkString",{contentType:"string"}),I(j))}function A(j){return j===62?(t.enter(a),t.consume(j),t.exit(a),t.exit(s),t.exit(n),r):(t.enter(c),t.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===62?(t.exit("chunkString"),t.exit(c),A(j)):j===null||j===60||he(j)?e(j):(t.consume(j),j===92?S:k)}function S(j){return j===60||j===62||j===92?(t.consume(j),k):k(j)}function I(j){return j===40?++m>g?e(j):(t.consume(j),I):j===41?m--?(t.consume(j),I):(t.exit("chunkString"),t.exit(c),t.exit(l),t.exit(n),r(j)):j===null||tt(j)?m?e(j):(t.exit("chunkString"),t.exit(c),t.exit(l),t.exit(n),r(j)):Jn(j)?e(j):(t.consume(j),j===92?q:I)}function q(j){return j===40||j===41||j===92?(t.consume(j),I):I(j)}}function ho(t,r,e,n,s,a){let l=this,c=0,f;return g;function g(k){return t.enter(n),t.enter(s),t.consume(k),t.exit(s),t.enter(a),m}function m(k){return k===null||k===91||k===93&&!f||k===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs||c>999?e(k):k===93?(t.exit(a),t.enter(s),t.consume(k),t.exit(s),t.exit(n),r):he(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),m):(t.enter("chunkString",{contentType:"string"}),v(k))}function v(k){return k===null||k===91||k===93||he(k)||c++>999?(t.exit("chunkString"),m(k)):(t.consume(k),f=f||!Ue(k),k===92?A:v)}function A(k){return k===91||k===92||k===93?(t.consume(k),c++,v):v(k)}}function mo(t,r,e,n,s,a){let l;return c;function c(A){return t.enter(n),t.enter(s),t.consume(A),t.exit(s),l=A===40?41:A,f}function f(A){return A===l?(t.enter(s),t.consume(A),t.exit(s),t.exit(n),r):(t.enter(a),g(A))}function g(A){return A===l?(t.exit(a),f(l)):A===null?e(A):he(A)?(t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ke(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===l||A===null||he(A)?(t.exit("chunkString"),g(A)):(t.consume(A),A===92?v:m)}function v(A){return A===l||A===92?(t.consume(A),m):m(A)}}function Si(t,r){let e;return n;function n(s){return he(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e=!0,n):Ue(s)?ke(t,n,e?"linePrefix":"lineSuffix")(s):r(s)}}function ar(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Wu={name:"definition",tokenize:N1},R1={tokenize:L1,partial:!0};function N1(t,r,e){let n=this,s;return a;function a(f){return t.enter("definition"),ho.call(n,t,l,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return s=ar(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),Si(t,po(t,t.attempt(R1,ke(t,c,"whitespace"),ke(t,c,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(f)}function c(f){return f===null||he(f)?(t.exit("definition"),n.parser.defined.includes(s)||n.parser.defined.push(s),r(f)):e(f)}}function L1(t,r,e){return n;function n(l){return tt(l)?Si(t,s)(l):e(l)}function s(l){return l===34||l===39||l===40?mo(t,ke(t,a,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(l):e(l)}function a(l){return l===null||he(l)?r(l):e(l)}}var Ju={name:"hardBreakEscape",tokenize:z1};function z1(t,r,e){return n;function n(a){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(a),s}function s(a){return he(a)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(a)):e(a)}}var Qu={name:"headingAtx",tokenize:j1,resolve:M1};function M1(t,r){let e=t.length-2,n=3,s,a;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(s={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},a={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},Dt(t,n,e-n+1,[["enter",s,r],["enter",a,r],["exit",a,r],["exit",s,r]])),t}function j1(t,r,e){let n=this,s=0;return a;function a(m){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&s++<6?(t.consume(m),l):m===null||tt(m)?(t.exit("atxHeadingSequence"),n.interrupt?r(m):c(m)):e(m)}function c(m){return m===35?(t.enter("atxHeadingSequence"),f(m)):m===null||he(m)?(t.exit("atxHeading"),r(m)):Ue(m)?ke(t,c,"whitespace")(m):(t.enter("atxHeadingText"),g(m))}function f(m){return m===35?(t.consume(m),f):(t.exit("atxHeadingSequence"),c(m))}function g(m){return m===null||m===35||tt(m)?(t.exit("atxHeadingText"),c(m)):(t.consume(m),g)}}var bd=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zu=["pre","script","style","textarea"];var Xu={name:"htmlFlow",tokenize:U1,resolveTo:B1,concrete:!0},V1={tokenize:H1,partial:!0};function B1(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function U1(t,r,e){let n=this,s,a,l,c,f;return g;function g(U){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(U),m}function m(U){return U===33?(t.consume(U),v):U===47?(t.consume(U),S):U===63?(t.consume(U),s=3,n.interrupt?r:wt):sr(U)?(t.consume(U),l=String.fromCharCode(U),a=!0,I):e(U)}function v(U){return U===45?(t.consume(U),s=2,A):U===91?(t.consume(U),s=5,l="CDATA[",c=0,k):sr(U)?(t.consume(U),s=4,n.interrupt?r:wt):e(U)}function A(U){return U===45?(t.consume(U),n.interrupt?r:wt):e(U)}function k(U){return U===l.charCodeAt(c++)?(t.consume(U),c===l.length?n.interrupt?r:Pe:k):e(U)}function S(U){return sr(U)?(t.consume(U),l=String.fromCharCode(U),I):e(U)}function I(U){return U===null||U===47||U===62||tt(U)?U!==47&&a&&Zu.includes(l.toLowerCase())?(s=1,n.interrupt?r(U):Pe(U)):bd.includes(l.toLowerCase())?(s=6,U===47?(t.consume(U),q):n.interrupt?r(U):Pe(U)):(s=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(U):a?X(U):j(U)):U===45||Ht(U)?(t.consume(U),l+=String.fromCharCode(U),I):e(U)}function q(U){return U===62?(t.consume(U),n.interrupt?r:Pe):e(U)}function j(U){return Ue(U)?(t.consume(U),j):$e(U)}function X(U){return U===47?(t.consume(U),$e):U===58||U===95||sr(U)?(t.consume(U),le):Ue(U)?(t.consume(U),X):$e(U)}function le(U){return U===45||U===46||U===58||U===95||Ht(U)?(t.consume(U),le):be(U)}function be(U){return U===61?(t.consume(U),me):Ue(U)?(t.consume(U),be):X(U)}function me(U){return U===null||U===60||U===61||U===62||U===96?e(U):U===34||U===39?(t.consume(U),f=U,Y):Ue(U)?(t.consume(U),me):(f=null,pe(U))}function Y(U){return U===null||he(U)?e(U):U===f?(t.consume(U),xe):(t.consume(U),Y)}function pe(U){return U===null||U===34||U===39||U===60||U===61||U===62||U===96||tt(U)?be(U):(t.consume(U),pe)}function xe(U){return U===47||U===62||Ue(U)?X(U):e(U)}function $e(U){return U===62?(t.consume(U),Le):e(U)}function Le(U){return Ue(U)?(t.consume(U),Le):U===null||he(U)?Pe(U):e(U)}function Pe(U){return U===45&&s===2?(t.consume(U),Qe):U===60&&s===1?(t.consume(U),ne):U===62&&s===4?(t.consume(U),rt):U===63&&s===3?(t.consume(U),wt):U===93&&s===5?(t.consume(U),Ze):he(U)&&(s===6||s===7)?t.check(V1,rt,De)(U):U===null||he(U)?De(U):(t.consume(U),Pe)}function De(U){return t.exit("htmlFlowData"),ge(U)}function ge(U){return U===null?V(U):he(U)?t.attempt({tokenize:Te,partial:!0},ge,V)(U):(t.enter("htmlFlowData"),Pe(U))}function Te(U,ur,qt){return vt;function vt(Ct){return U.enter("lineEnding"),U.consume(Ct),U.exit("lineEnding"),St}function St(Ct){return n.parser.lazy[n.now().line]?qt(Ct):ur(Ct)}}function Qe(U){return U===45?(t.consume(U),wt):Pe(U)}function ne(U){return U===47?(t.consume(U),l="",bt):Pe(U)}function bt(U){return U===62&&Zu.includes(l.toLowerCase())?(t.consume(U),rt):sr(U)&&l.length<8?(t.consume(U),l+=String.fromCharCode(U),bt):Pe(U)}function Ze(U){return U===93?(t.consume(U),wt):Pe(U)}function wt(U){return U===62?(t.consume(U),rt):U===45&&s===2?(t.consume(U),wt):Pe(U)}function rt(U){return U===null||he(U)?(t.exit("htmlFlowData"),V(U)):(t.consume(U),rt)}function V(U){return t.exit("htmlFlow"),r(U)}}function H1(t,r,e){return n;function n(s){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),t.attempt(wn,r,e)}}var Yu={name:"htmlText",tokenize:G1};function G1(t,r,e){let n=this,s,a,l,c;return f;function f(V){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(V),g}function g(V){return V===33?(t.consume(V),m):V===47?(t.consume(V),pe):V===63?(t.consume(V),me):sr(V)?(t.consume(V),Le):e(V)}function m(V){return V===45?(t.consume(V),v):V===91?(t.consume(V),a="CDATA[",l=0,q):sr(V)?(t.consume(V),be):e(V)}function v(V){return V===45?(t.consume(V),A):e(V)}function A(V){return V===null||V===62?e(V):V===45?(t.consume(V),k):S(V)}function k(V){return V===null||V===62?e(V):S(V)}function S(V){return V===null?e(V):V===45?(t.consume(V),I):he(V)?(c=S,Ze(V)):(t.consume(V),S)}function I(V){return V===45?(t.consume(V),rt):S(V)}function q(V){return V===a.charCodeAt(l++)?(t.consume(V),l===a.length?j:q):e(V)}function j(V){return V===null?e(V):V===93?(t.consume(V),X):he(V)?(c=j,Ze(V)):(t.consume(V),j)}function X(V){return V===93?(t.consume(V),le):j(V)}function le(V){return V===62?rt(V):V===93?(t.consume(V),le):j(V)}function be(V){return V===null||V===62?rt(V):he(V)?(c=be,Ze(V)):(t.consume(V),be)}function me(V){return V===null?e(V):V===63?(t.consume(V),Y):he(V)?(c=me,Ze(V)):(t.consume(V),me)}function Y(V){return V===62?rt(V):me(V)}function pe(V){return sr(V)?(t.consume(V),xe):e(V)}function xe(V){return V===45||Ht(V)?(t.consume(V),xe):$e(V)}function $e(V){return he(V)?(c=$e,Ze(V)):Ue(V)?(t.consume(V),$e):rt(V)}function Le(V){return V===45||Ht(V)?(t.consume(V),Le):V===47||V===62||tt(V)?Pe(V):e(V)}function Pe(V){return V===47?(t.consume(V),rt):V===58||V===95||sr(V)?(t.consume(V),De):he(V)?(c=Pe,Ze(V)):Ue(V)?(t.consume(V),Pe):rt(V)}function De(V){return V===45||V===46||V===58||V===95||Ht(V)?(t.consume(V),De):ge(V)}function ge(V){return V===61?(t.consume(V),Te):he(V)?(c=ge,Ze(V)):Ue(V)?(t.consume(V),ge):Pe(V)}function Te(V){return V===null||V===60||V===61||V===62||V===96?e(V):V===34||V===39?(t.consume(V),s=V,Qe):he(V)?(c=Te,Ze(V)):Ue(V)?(t.consume(V),Te):(t.consume(V),s=void 0,bt)}function Qe(V){return V===s?(t.consume(V),ne):V===null?e(V):he(V)?(c=Qe,Ze(V)):(t.consume(V),Qe)}function ne(V){return V===62||V===47||tt(V)?Pe(V):e(V)}function bt(V){return V===null||V===34||V===39||V===60||V===61||V===96?e(V):V===62||tt(V)?Pe(V):(t.consume(V),bt)}function Ze(V){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(V),t.exit("lineEnding"),ke(t,wt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wt(V){return t.enter("htmlTextData"),c(V)}function rt(V){return V===62?(t.consume(V),t.exit("htmlTextData"),t.exit("htmlText"),r):e(V)}}var Ci={name:"labelEnd",tokenize:X1,resolveTo:Z1,resolveAll:Q1},K1={tokenize:Y1},W1={tokenize:ev},J1={tokenize:tv};function Q1(t){let r=-1,e;for(;++r<t.length;)e=t[r][1],(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(t.splice(r+1,e.type==="labelImage"?4:2),e.type="data",r++);return t}function Z1(t,r){let e=t.length,n=0,s,a,l,c;for(;e--;)if(s=t[e][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[e][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(l){if(t[e][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=e,s.type!=="labelLink")){n=2;break}}else s.type==="labelEnd"&&(l=e);let f={type:t[a][1].type==="labelLink"?"link":"image",start:Object.assign({},t[a][1].start),end:Object.assign({},t[t.length-1][1].end)},g={type:"label",start:Object.assign({},t[a][1].start),end:Object.assign({},t[l][1].end)},m={type:"labelText",start:Object.assign({},t[a+n+2][1].end),end:Object.assign({},t[l-2][1].start)};return c=[["enter",f,r],["enter",g,r]],c=gr(c,t.slice(a+1,a+n+3)),c=gr(c,[["enter",m,r]]),c=gr(c,Zn(r.parser.constructs.insideSpan.null,t.slice(a+n+4,l-3),r)),c=gr(c,[["exit",m,r],t[l-2],t[l-1],["exit",g,r]]),c=gr(c,t.slice(l+1)),c=gr(c,[["exit",f,r]]),Dt(t,a,t.length,c),t}function X1(t,r,e){let n=this,s=n.events.length,a,l;for(;s--;)if((n.events[s][1].type==="labelImage"||n.events[s][1].type==="labelLink")&&!n.events[s][1]._balanced){a=n.events[s][1];break}return c;function c(m){return a?a._inactive?g(m):(l=n.parser.defined.includes(ar(n.sliceSerialize({start:a.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelEnd"),f):e(m)}function f(m){return m===40?t.attempt(K1,r,l?r:g)(m):m===91?t.attempt(W1,r,l?t.attempt(J1,r,g):g)(m):l?r(m):g(m)}function g(m){return a._balanced=!0,e(m)}}function Y1(t,r,e){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),Si(t,s)}function s(f){return f===41?c(f):po(t,a,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return tt(f)?Si(t,l)(f):c(f)}function l(f){return f===34||f===39||f===40?mo(t,Si(t,c),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),r):e(f)}}function ev(t,r,e){let n=this;return s;function s(l){return ho.call(n,t,a,e,"reference","referenceMarker","referenceString")(l)}function a(l){return n.parser.defined.includes(ar(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(l):e(l)}}function tv(t,r,e){return n;function n(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),r):e(a)}}var ec={name:"labelStartImage",tokenize:rv,resolveAll:Ci.resolveAll};function rv(t,r,e){let n=this;return s;function s(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),a}function a(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),l):e(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(c):r(c)}}var tc={name:"labelStartLink",tokenize:nv,resolveAll:Ci.resolveAll};function nv(t,r,e){let n=this;return s;function s(l){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(l):r(l)}}var ia={name:"lineEnding",tokenize:iv};function iv(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ke(t,r,"linePrefix")}}var Ti={name:"thematicBreak",tokenize:sv};function sv(t,r,e){let n=0,s;return a;function a(f){return t.enter("thematicBreak"),s=f,l(f)}function l(f){return f===s?(t.enter("thematicBreakSequence"),c(f)):Ue(f)?ke(t,l,"whitespace")(f):n<3||f!==null&&!he(f)?e(f):(t.exit("thematicBreak"),r(f))}function c(f){return f===s?(t.consume(f),n++,c):(t.exit("thematicBreakSequence"),l(f))}}var or={name:"list",tokenize:lv,continuation:{tokenize:uv},exit:fv},av={tokenize:pv,partial:!0},ov={tokenize:cv,partial:!0};function lv(t,r,e){let n=this,s=n.events[n.events.length-1],a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return c;function c(k){let S=n.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!n.containerState.marker||k===n.containerState.marker:_i(k)){if(n.containerState.type||(n.containerState.type=S,t.enter(S,{_container:!0})),S==="listUnordered")return t.enter("listItemPrefix"),k===42||k===45?t.check(Ti,e,g)(k):g(k);if(!n.interrupt||k===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(k)}return e(k)}function f(k){return _i(k)&&++l<10?(t.consume(k),f):(!n.interrupt||l<2)&&(n.containerState.marker?k===n.containerState.marker:k===41||k===46)?(t.exit("listItemValue"),g(k)):e(k)}function g(k){return t.enter("listItemMarker"),t.consume(k),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||k,t.check(wn,n.interrupt?e:m,t.attempt(av,A,v))}function m(k){return n.containerState.initialBlankLine=!0,a++,A(k)}function v(k){return Ue(k)?(t.enter("listItemPrefixWhitespace"),t.consume(k),t.exit("listItemPrefixWhitespace"),A):e(k)}function A(k){return n.containerState.size=a+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(k)}}function uv(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(wn,s,a);function s(c){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ke(t,r,"listItemIndent",n.containerState.size+1)(c)}function a(c){return n.containerState.furtherBlankLines||!Ue(c)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(c)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(ov,r,l)(c))}function l(c){return n.containerState._closeFlow=!0,n.interrupt=void 0,ke(t,t.attempt(or,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function cv(t,r,e){let n=this;return ke(t,s,"listItemIndent",n.containerState.size+1);function s(a){let l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?r(a):e(a)}}function fv(t){t.exit(this.containerState.type)}function pv(t,r,e){let n=this;return ke(t,s,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(a){let l=n.events[n.events.length-1];return!Ue(a)&&l&&l[1].type==="listItemPrefixWhitespace"?r(a):e(a)}}var go={name:"setextUnderline",tokenize:dv,resolveTo:hv};function hv(t,r){let e=t.length,n,s,a;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(s=e)}else t[e][1].type==="content"&&t.splice(e,1),!a&&t[e][1].type==="definition"&&(a=e);let l={type:"setextHeading",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",l,r]),t.splice(a+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[a][1].end)):t[n][1]=l,t.push(["exit",l,r]),t}function dv(t,r,e){let n=this,s=n.events.length,a,l;for(;s--;)if(n.events[s][1].type!=="lineEnding"&&n.events[s][1].type!=="linePrefix"&&n.events[s][1].type!=="content"){l=n.events[s][1].type==="paragraph";break}return c;function c(m){return!n.parser.lazy[n.now().line]&&(n.interrupt||l)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),a=m,f(m)):e(m)}function f(m){return m===a?(t.consume(m),f):(t.exit("setextHeadingLineSequence"),ke(t,g,"lineSuffix")(m))}function g(m){return m===null||he(m)?(t.exit("setextHeadingLine"),r(m)):e(m)}}var wd={tokenize:mv};function mv(t){let r=this,e=t.attempt(wn,n,t.attempt(this.parser.constructs.flowInitial,s,ke(t,t.attempt(this.parser.constructs.flow,s,t.attempt(Ku,s)),"linePrefix")));return e;function n(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var vd={resolveAll:_d()},$d=kd("string"),xd=kd("text");function kd(t){return{tokenize:r,resolveAll:_d(t==="text"?gv:void 0)};function r(e){let n=this,s=this.parser.constructs[t],a=e.attempt(s,l,c);return l;function l(m){return g(m)?a(m):c(m)}function c(m){if(m===null){e.consume(m);return}return e.enter("data"),e.consume(m),f}function f(m){return g(m)?(e.exit("data"),a(m)):(e.consume(m),f)}function g(m){if(m===null)return!0;let v=s[m],A=-1;if(v)for(;++A<v.length;){let k=v[A];if(!k.previous||k.previous.call(n,n.previous))return!0}return!1}}}function _d(t){return r;function r(e,n){let s=-1,a;for(;++s<=e.length;)a===void 0?e[s]&&e[s][1].type==="data"&&(a=s,s++):(!e[s]||e[s][1].type!=="data")&&(s!==a+2&&(e[a][1].end=e[s-1][1].end,e.splice(a+2,s-a-2),s=a+2),a=void 0);return t?t(e,n):e}}function gv(t,r){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let n=t[e-1][1],s=r.sliceStream(n),a=s.length,l=-1,c=0,f;for(;a--;){let g=s[a];if(typeof g=="string"){for(l=g.length;g.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(g===-2)f=!0,c++;else if(g!==-1){a++;break}}if(c){let g={type:e===t.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?l:n.start._bufferIndex+l},end:Object.assign({},n.end)};n.end=Object.assign({},g.start),n.start.offset===n.end.offset?Object.assign(n,g):(t.splice(e,0,["enter",g,r],["exit",g,r]),e+=2)}e++}return t}function Ad(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),s={},a=[],l=[],c=[],f=!0,g={consume:be,enter:me,exit:Y,attempt:$e(pe),check:$e(xe),interrupt:$e(xe,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:S,now:q,defineSkip:j,write:k},v=r.tokenize.call(m,g),A;return r.resolveAll&&a.push(r),m;function k(ge){return l=gr(l,ge),X(),l[l.length-1]!==null?[]:(Le(r,0),m.events=Zn(a,m.events,m),m.events)}function S(ge,Te){return bv(I(ge),Te)}function I(ge){return yv(l,ge)}function q(){return Object.assign({},n)}function j(ge){s[ge.line]=ge.column,De()}function X(){let ge;for(;n._index<l.length;){let Te=l[n._index];if(typeof Te=="string")for(ge=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ge&&n._bufferIndex<Te.length;)le(Te.charCodeAt(n._bufferIndex));else le(Te)}}function le(ge){f=void 0,A=ge,v=v(ge)}function be(ge){he(ge)?(n.line++,n.column=1,n.offset+=ge===-3?2:1,De()):ge!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),m.previous=ge,f=!0}function me(ge,Te){let Qe=Te||{};return Qe.type=ge,Qe.start=q(),m.events.push(["enter",Qe,m]),c.push(Qe),Qe}function Y(ge){let Te=c.pop();return Te.end=q(),m.events.push(["exit",Te,m]),Te}function pe(ge,Te){Le(ge,Te.from)}function xe(ge,Te){Te.restore()}function $e(ge,Te){return Qe;function Qe(ne,bt,Ze){let wt,rt,V,U;return Array.isArray(ne)?qt(ne):"tokenize"in ne?qt([ne]):ur(ne);function ur(lt){return Xt;function Xt(Mt){let yr=Mt!==null&<[Mt],Sr=Mt!==null&<.null,br=[...Array.isArray(yr)?yr:yr?[yr]:[],...Array.isArray(Sr)?Sr:Sr?[Sr]:[]];return qt(br)(Mt)}}function qt(lt){return wt=lt,rt=0,lt.length===0?Ze:vt(lt[rt])}function vt(lt){return Xt;function Xt(Mt){return U=Pe(),V=lt,lt.partial||(m.currentConstruct=lt),lt.name&&m.parser.constructs.disable.null.includes(lt.name)?Ct(Mt):lt.tokenize.call(Te?Object.assign(Object.create(m),Te):m,g,St,Ct)(Mt)}}function St(lt){return f=!0,ge(V,U),bt}function Ct(lt){return f=!0,U.restore(),++rt<wt.length?vt(wt[rt]):Ze}}}function Le(ge,Te){ge.resolveAll&&!a.includes(ge)&&a.push(ge),ge.resolve&&Dt(m.events,Te,m.events.length-Te,ge.resolve(m.events.slice(Te),m)),ge.resolveTo&&(m.events=ge.resolveTo(m.events,m))}function Pe(){let ge=q(),Te=m.previous,Qe=m.currentConstruct,ne=m.events.length,bt=Array.from(c);return{restore:Ze,from:ne};function Ze(){n=ge,m.previous=Te,m.currentConstruct=Qe,m.events.length=ne,c=bt,De()}}function De(){n.line in s&&n.column<2&&(n.column=s[n.line],n.offset+=s[n.line]-1)}}function yv(t,r){let e=r.start._index,n=r.start._bufferIndex,s=r.end._index,a=r.end._bufferIndex,l;return e===s?l=[t[e].slice(n,a)]:(l=t.slice(e,s),n>-1&&(l[0]=l[0].slice(n)),a>0&&l.push(t[s].slice(0,a))),l}function bv(t,r){let e=-1,n=[],s;for(;++e<t.length;){let a=t[e],l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
|
|
44
20
|
`;break}case-3:{l=`\r
|
|
45
|
-
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&s)continue;l=" ";break}default:l=String.fromCharCode(o)}s=o===-2,n.push(l)}return n.join("")}var xf={};fc(xf,{attentionMarkers:()=>o0,contentInitial:()=>e0,disable:()=>a0,document:()=>Yv,flow:()=>r0,flowInitial:()=>t0,insideSpan:()=>s0,string:()=>n0,text:()=>i0});var Yv={[42]:cr,[43]:cr,[45]:cr,[48]:cr,[49]:cr,[50]:cr,[51]:cr,[52]:cr,[53]:cr,[54]:cr,[55]:cr,[56]:cr,[57]:cr,[62]:va},e0={[91]:hf},t0={[-2]:mo,[-1]:mo,[32]:mo},r0={[35]:yf,[42]:qi,[45]:[Ta,qi],[60]:$f,[61]:Ta,[95]:qi,[96]:Aa,[126]:Aa},n0={[38]:Ca,[92]:xa},i0={[-5]:ho,[-4]:ho,[-3]:ho,[33]:kf,[38]:Ca,[42]:po,[60]:[cf,wf],[91]:vf,[92]:[gf,xa],[93]:Di,[95]:po,[96]:df},s0={null:[po,Vm]},o0={null:[42,95]},a0={null:[]};function Zm(t={}){let r=ka([xf].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(qm),document:n(jm),flow:n(zm),string:n(Hm),text:n(Um)};return e;function n(s){return o;function o(l){return Wm(e,s,l)}}}var Jm=/[\0\t\n\r]/g;function Qm(){let t=1,r="",e=!0,n;return s;function s(o,l,f){let c=[],g,h,$,k,x;for(o=r+o.toString(l),$=0,r="",e&&(o.charCodeAt(0)===65279&&$++,e=void 0);$<o.length;){if(Jm.lastIndex=$,g=Jm.exec(o),k=g&&g.index!==void 0?g.index:o.length,x=o.charCodeAt(k),!g){r=o.slice($);break}if(x===10&&$===k&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),$<k&&(c.push(o.slice($,k)),t+=k-$),x){case 0:{c.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,c.push(-2);t++<h;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}$=k+1}return f&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function Xm(t){for(;!Ea(t););return t}function Fa(t,r){let e=Number.parseInt(t,r);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var l0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ia(t){return t.replace(l0,u0)}function u0(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let s=e.charCodeAt(1),o=s===120||s===88;return Fa(e.slice(o?2:1),o?16:10)}return bs(e)||t}var Cf={}.hasOwnProperty,Af=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),f0(e)(Xm(Zm(e).document().write(Qm()(t,r,!0))))};function f0(t={}){let r=eh({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Ee),autolinkProtocol:Fe,autolinkEmail:Fe,atxHeading:c(Tn),blockQuote:c(Nr),characterEscape:Fe,characterReference:Fe,codeFenced:c(xr),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:c(xr,g),codeText:c(jt,g),codeTextData:Fe,data:Fe,codeFlowValue:Fe,definition:c(Sn),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:c(Pn),hardBreakEscape:c(Ce),hardBreakTrailing:c(Ce),htmlFlow:c(Hn,g),htmlFlowData:Fe,htmlText:c(Hn,g),htmlTextData:Fe,image:c(Rr),label:g,link:c(Ee),listItem:c(At),listItemValue:I,listOrdered:c(Ne,C),listUnordered:c(Ne),paragraph:c(ht),reference:Tt,referenceString:g,resourceDestinationString:g,resourceTitleString:g,setextHeading:c(Tn),strong:c(mr),thematicBreak:c(_e)},exit:{atxHeading:$(),atxHeadingSequence:ve,autolink:$(),autolinkEmail:vr,autolinkProtocol:Vt,blockQuote:$(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:tr,codeFenced:$(le),codeFencedFence:X,codeFencedFenceInfo:R,codeFencedFenceMeta:B,codeFlowValue:ge,codeIndented:$(be),codeText:$(Xe),codeTextData:ge,data:ge,definition:$(),definitionDestinationString:pe,definitionLabelString:he,definitionTitleString:Y,emphasis:$(),hardBreakEscape:$(Qe),hardBreakTrailing:$(Qe),htmlFlow:$(ne),htmlFlowData:ge,htmlText:$($t),htmlTextData:ge,image:$(nt),label:H,labelText:z,lineEnding:Pe,link:$(wt),listItem:$(),listOrdered:$(),listUnordered:$(),paragraph:$(),referenceString:Ft,resourceDestinationString:dr,resourceTitleString:Lt,resource:kt,setextHeading:$(Te),setextHeadingLineSequence:Le,setextHeadingText:ke,strong:$(),thematicBreak:$()}},t.mdastExtensions||[]),e={};return n;function n(te){let ce={type:"root",children:[]},Ae=[ce],Be=[],Ye=[],Pt={stack:Ae,tokenStack:Be,config:r,enter:h,exit:k,buffer:g,resume:x,setData:o,getData:l},it=-1;for(;++it<te.length;)if(te[it][1].type==="listOrdered"||te[it][1].type==="listUnordered")if(te[it][0]==="enter")Ye.push(it);else{let vt=Ye.pop();it=s(te,vt,it)}for(it=-1;++it<te.length;){let vt=r[te[it][0]];Cf.call(vt,te[it][1].type)&&vt[te[it][1].type].call(Object.assign({sliceSerialize:te[it][2].sliceSerialize},Pt),te[it][1])}if(Be.length>0){let vt=Be[Be.length-1];(vt[1]||Ym).call(Pt,void 0,vt[0])}for(ce.position={start:f(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:f(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<r.transforms.length;)ce=r.transforms[it](ce)||ce;return ce}function s(te,ce,Ae){let Be=ce-1,Ye=-1,Pt=!1,it,vt,It,Xr;for(;++Be<=Ae;){let gt=te[Be];if(gt[1].type==="listUnordered"||gt[1].type==="listOrdered"||gt[1].type==="blockQuote"?(gt[0]==="enter"?Ye++:Ye--,Xr=void 0):gt[1].type==="lineEndingBlank"?gt[0]==="enter"&&(it&&!Xr&&!Ye&&!It&&(It=Be),Xr=void 0):gt[1].type==="linePrefix"||gt[1].type==="listItemValue"||gt[1].type==="listItemMarker"||gt[1].type==="listItemPrefix"||gt[1].type==="listItemPrefixWhitespace"||(Xr=void 0),!Ye&>[0]==="enter"&>[1].type==="listItemPrefix"||Ye===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(it){let Fn=Be;for(vt=void 0;Fn--;){let hr=te[Fn];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;vt&&(te[vt][1].type="lineEndingBlank",Pt=!0),hr[1].type="lineEnding",vt=Fn}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}It&&(!vt||It<vt)&&(it._spread=!0),it.end=Object.assign({},vt?te[vt][1].start:gt[1].end),te.splice(vt||Be,0,["exit",it,gt[2]]),Be++,Ae++}gt[1].type==="listItemPrefix"&&(it={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start)},te.splice(Be,0,["enter",it,gt[2]]),Be++,Ae++,It=void 0,Xr=!0)}}return te[ce][1]._spread=Pt,Ae}function o(te,ce){e[te]=ce}function l(te){return e[te]}function f(te){return{line:te.line,column:te.column,offset:te.offset}}function c(te,ce){return Ae;function Ae(Be){h.call(this,te(Be),Be),ce&&ce.call(this,Be)}}function g(){this.stack.push({type:"fragment",children:[]})}function h(te,ce,Ae){return this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([ce,Ae]),te.position={start:f(ce.start)},te}function $(te){return ce;function ce(Ae){te&&te.call(this,Ae),k.call(this,Ae)}}function k(te,ce){let Ae=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==te.type&&(ce?ce.call(this,te,Be[0]):(Be[1]||Ym).call(this,te,Be[0]));else throw new Error("Cannot close `"+te.type+"` ("+Fi({start:te.start,end:te.end})+"): it\u2019s not open");return Ae.position.end=f(te.end),Ae}function x(){return Fm(this.stack.pop())}function C(){o("expectingFirstListItemValue",!0)}function I(te){if(l("expectingFirstListItemValue")){let ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(te),10),o("expectingFirstListItemValue")}}function R(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=te}function B(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=te}function X(){l("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function le(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function be(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te.replace(/(\r?\n|\r)$/g,"")}function he(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase()}function Y(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function pe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function ve(te){let ce=this.stack[this.stack.length-1];if(!ce.depth){let Ae=this.sliceSerialize(te).length;ce.depth=Ae}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Le(te){let ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(te).charCodeAt(0)===61?1:2}function Te(){o("setextHeadingSlurpLineEnding")}function Fe(te){let ce=this.stack[this.stack.length-1],Ae=ce.children[ce.children.length-1];(!Ae||Ae.type!=="text")&&(Ae=Re(),Ae.position={start:f(te.start)},ce.children.push(Ae)),this.stack.push(Ae)}function ge(te){let ce=this.stack.pop();ce.value+=this.sliceSerialize(te),ce.position.end=f(te.end)}function Pe(te){let ce=this.stack[this.stack.length-1];if(l("atHardBreak")){let Ae=ce.children[ce.children.length-1];Ae.position.end=f(te.end),o("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ce.type)&&(Fe.call(this,te),ge.call(this,te))}function Qe(){o("atHardBreak",!0)}function ne(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function $t(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function Xe(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.value=te}function wt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function nt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),o("referenceType")}function z(te){let ce=this.stack[this.stack.length-2],Ae=this.sliceSerialize(te);ce.label=Ia(Ae),ce.identifier=fr(Ae).toLowerCase()}function H(){let te=this.stack[this.stack.length-1],ce=this.resume(),Ae=this.stack[this.stack.length-1];o("inReference",!0),Ae.type==="link"?Ae.children=te.children:Ae.alt=ce}function dr(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.url=te}function Lt(){let te=this.resume(),ce=this.stack[this.stack.length-1];ce.title=te}function kt(){o("inReference")}function Tt(){o("referenceType","collapsed")}function Ft(te){let ce=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ce,Ae.identifier=fr(this.sliceSerialize(te)).toLowerCase(),o("referenceType","full")}function ut(te){o("characterReferenceType",te.type)}function tr(te){let ce=this.sliceSerialize(te),Ae=l("characterReferenceType"),Be;Ae?(Be=Fa(ce,Ae==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Be=bs(ce);let Ye=this.stack.pop();Ye.value+=Be,Ye.position.end=f(te.end)}function Vt(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(te)}function vr(te){ge.call(this,te);let ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(te)}function Nr(){return{type:"blockquote",children:[]}}function xr(){return{type:"code",lang:null,meta:null,value:""}}function jt(){return{type:"inlineCode",value:""}}function Sn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function Tn(){return{type:"heading",depth:void 0,children:[]}}function Ce(){return{type:"break"}}function Hn(){return{type:"html",value:""}}function Rr(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Ne(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function At(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function ht(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function eh(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?eh(t,n):c0(t,n)}return t}function c0(t,r){let e;for(e in r)if(Cf.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Cf.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),l=r[e];l&&(n?t[e]=[...o,...l]:Object.assign(o,l))}}function Ym(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Fi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Fi({start:r.start,end:r.end})+") is still open")}function Ef(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Af(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var th=Ef;var p0={tokenize:g0,partial:!0},nh={tokenize:y0,partial:!0},ih={tokenize:b0,partial:!0},$s={tokenize:w0,partial:!0},sh={tokenize:$0,partial:!0},oh={tokenize:m0,previous:uh},ah={tokenize:h0,previous:Pf},Vn={tokenize:d0,previous:fh},_n={},_f={text:_n},Li=48;for(;Li<123;)_n[Li]=Vn,Li++,Li===58?Li=65:Li===91&&(Li=97);_n[43]=Vn;_n[45]=Vn;_n[46]=Vn;_n[95]=Vn;_n[72]=[Vn,ah];_n[104]=[Vn,ah];_n[87]=[Vn,oh];_n[119]=[Vn,oh];function d0(t,r,e){let n=this,s,o;return l;function l(x){return!rh(x)||!fh(n.previous)||Tf(n.events)?e(x):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),f(x))}function f(x){return rh(x)?(t.consume(x),f):x===64?(t.consume(x),c):e(x)}function c(x){return x===46?t.check($s,k,g)(x):x===45||x===95?t.check($s,e,h)(x):Wt(x)?(!o&&Ii(x)&&(o=!0),t.consume(x),c):k(x)}function g(x){return t.consume(x),s=!0,o=void 0,c}function h(x){return t.consume(x),$}function $(x){return x===46?t.check($s,e,g)(x):c(x)}function k(x){return s&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(x)):e(x)}}function m0(t,r,e){let n=this;return s;function s(l){return l!==87&&l!==119||!uh(n.previous)||Tf(n.events)?e(l):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(p0,t.attempt(nh,t.attempt(ih,o),e),e)(l))}function o(l){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(l)}}function h0(t,r,e){let n=this;return s;function s(C){return C!==72&&C!==104||!Pf(n.previous)||Tf(n.events)?e(C):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(C),o)}function o(C){return C===84||C===116?(t.consume(C),l):e(C)}function l(C){return C===84||C===116?(t.consume(C),f):e(C)}function f(C){return C===80||C===112?(t.consume(C),c):e(C)}function c(C){return C===83||C===115?(t.consume(C),g):g(C)}function g(C){return C===58?(t.consume(C),h):e(C)}function h(C){return C===47?(t.consume(C),$):e(C)}function $(C){return C===47?(t.consume(C),k):e(C)}function k(C){return C===null||ri(C)||Oi(C)||Ni(C)?e(C):t.attempt(nh,t.attempt(ih,x),e)(C)}function x(C){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(C)}}function g0(t,r,e){return n;function n(c){return t.consume(c),s}function s(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),l):e(c)}function l(c){return c===46?(t.consume(c),f):e(c)}function f(c){return c===null||de(c)?e(c):r(c)}}function y0(t,r,e){let n,s;return o;function o(c){return c===38?t.check(sh,f,l)(c):c===46||c===95?t.check($s,f,l)(c):c===null||ri(c)||Oi(c)||c!==45&&Ni(c)?f(c):(t.consume(c),o)}function l(c){return c===46?(s=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function f(c){return!s&&!n?r(c):e(c)}}function b0(t,r){let e=0;return n;function n(l){return l===38?t.check(sh,r,s)(l):(l===40&&e++,l===41?t.check($s,o,s)(l):Sf(l)?r(l):lh(l)?t.check($s,r,s)(l):(t.consume(l),n))}function s(l){return t.consume(l),n}function o(l){return e--,e<0?r(l):s(l)}}function $0(t,r,e){return n;function n(l){return t.consume(l),s}function s(l){return ur(l)?(t.consume(l),s):l===59?(t.consume(l),o):e(l)}function o(l){return Sf(l)?r(l):e(l)}}function w0(t,r,e){return n;function n(o){return t.consume(o),s}function s(o){return lh(o)?(t.consume(o),s):Sf(o)?r(o):e(o)}}function lh(t){return t===33||t===34||t===39||t===41||t===42||t===44||t===46||t===58||t===59||t===60||t===63||t===95||t===126}function Sf(t){return t===null||t===60||rt(t)}function rh(t){return t===43||t===45||t===46||t===95||Wt(t)}function uh(t){return t===null||t===40||t===42||t===95||t===126||rt(t)}function Pf(t){return t===null||!ur(t)}function fh(t){return t!==47&&Pf(t)}function Tf(t){let r=t.length,e=!1;for(;r--;){let n=t[r][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){e=!0;break}if(n._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}var k0={tokenize:S0,partial:!0};function Ff(){return{document:{[91]:{tokenize:A0,continuation:{tokenize:E0},exit:_0}},text:{[91]:{tokenize:C0},[93]:{add:"after",tokenize:v0,resolveTo:x0}}}}function v0(t,r,e){let n=this,s=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),l;for(;s--;){let c=n.events[s][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return f;function f(c){if(!l||!l._balanced)return e(c);let g=fr(n.sliceSerialize({start:l.end,end:n.now()}));return g.charCodeAt(0)!==94||!o.includes(g.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}function x0(t,r){let e=t.length,n;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){n=t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";let s={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[t[e+1],t[e+2],["enter",s,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",l,r],["enter",f,r],["exit",f,r],["exit",l,r],t[t.length-2],t[t.length-1],["exit",s,r]];return t.splice(e,t.length-e+1,...c),t}function C0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,l;return f;function f(k){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),c}function c(k){return k!==94?e(k):(t.enter("gfmFootnoteCallMarker"),t.consume(k),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(k){let x;return k===null||k===91||o++>999?e(k):k===93?l?(t.exit("chunkString"),x=t.exit("gfmFootnoteCallString"),s.includes(fr(n.sliceSerialize(x)))?$(k):e(k)):e(k):(t.consume(k),rt(k)||(l=!0),k===92?h:g)}function h(k){return k===91||k===92||k===93?(t.consume(k),o++,g):g(k)}function $(k){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(k),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function A0(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,l=0,f;return c;function c(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),h):e(I)}function h(I){let R;return I===null||I===91||l>999?e(I):I===93?f?(R=t.exit("gfmFootnoteDefinitionLabelString"),o=fr(n.sliceSerialize(R)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x):e(I):de(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),l++,h):(t.enter("chunkString").contentType="string",$(I))}function $(I){return I===null||de(I)||I===91||I===93||l>999?(t.exit("chunkString"),h(I)):(rt(I)||(f=!0),l++,t.consume(I),I===92?k:$)}function k(I){return I===91||I===92||I===93?(t.consume(I),l++,$):$(I)}function x(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),xe(t,C,"gfmFootnoteDefinitionWhitespace")):e(I)}function C(I){return s.includes(o)||s.push(o),r(I)}}function E0(t,r,e){return t.check(En,r,t.attempt(k0,r,e))}function _0(t){t.exit("gfmFootnoteDefinition")}function S0(t,r,e){let n=this;return xe(t,s,"gfmFootnoteDefinitionIndent",4+1);function s(o){let l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(o):e(o)}}function If(t={}){let r=t.singleTilde,e={tokenize:s,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,l){let f=-1;for(;++f<o.length;)if(o[f][0]==="enter"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._close){let c=f;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[f][1].end.offset-o[f][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[f][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let g={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[f][1].end)},h={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[f][1].start)},$=[["enter",g,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",h,l]];Nt($,$.length,0,ii(l.parser.constructs.insideSpan.null,o.slice(c+1,f),l)),Nt($,$.length,0,[["exit",h,l],["enter",o[f][1],l],["exit",o[f][1],l],["exit",g,l]]),Nt(o,c-1,f-c+3,$),f=c+$.length-2;break}}for(f=-1;++f<o.length;)o[f][1].type==="strikethroughSequenceTemporary"&&(o[f][1].type="data");return o}function s(o,l,f){let c=this.previous,g=this.events,h=0;return $;function $(x){return c===126&&g[g.length-1][1].type!=="characterEscape"?f(x):(o.enter("strikethroughSequenceTemporary"),k(x))}function k(x){let C=ys(c);if(x===126)return h>1?f(x):(o.consume(x),h++,k);if(h<2&&!r)return f(x);let I=o.exit("strikethroughSequenceTemporary"),R=ys(x);return I._open=!R||R===2&&Boolean(C),I._close=!C||C===2&&Boolean(R),l(x)}}}var Of={flow:{null:{tokenize:T0,resolve:P0}}},ch={tokenize:F0,partial:!0};function P0(t,r){let e=-1,n,s,o,l,f,c,g;for(;++e<t.length;){let h=t[e][1];if(o&&(h.type==="temporaryTableCellContent"&&(l=l||e,f=e),(h.type==="tableCellDivider"||h.type==="tableRow")&&f)){let $={type:"tableContent",start:t[l][1].start,end:t[f][1].end},k={type:"chunkText",start:$.start,end:$.end,contentType:"text"};t.splice(l,f-l+1,["enter",$,r],["enter",k,r],["exit",k,r],["exit",$,r]),e-=f-l-3,l=void 0,f=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(g?0:1)<e&&(h.type==="tableCellDivider"||h.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let $={type:s?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(h.type==="tableCellDivider"?1:0),0,["exit",$,r]),t.splice(c,0,["enter",$,r]),e+=2,c=e+1,g=!0}h.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,g=!1)),h.type==="tableDelimiterRow"&&(s=t[e][0]==="enter",s&&(c=e+1,g=!1)),h.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function T0(t,r,e){let n=this,s=[],o=0,l,f;return c;function c(ne){return t.enter("table")._align=s,t.enter("tableHead"),t.enter("tableRow"),ne===124?g(ne):(o++,t.enter("temporaryTableCellContent"),k(ne))}function g(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),l=!0,h}function h(ne){return ne===null||de(ne)?C(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),$):(l&&(l=void 0,o++),ne===124?g(ne):(t.enter("temporaryTableCellContent"),k(ne)))}function $(ne){return Ue(ne)?(t.consume(ne),$):(t.exit("whitespace"),h(ne))}function k(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),h(ne)):(t.consume(ne),ne===92?x:k)}function x(ne){return ne===92||ne===124?(t.consume(ne),k):k(ne)}function C(ne){if(ne===null)return e(ne);t.exit("tableRow"),t.exit("tableHead");let $t=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Qe,partial:!0},function(Xe){return n.interrupt=$t,t.enter("tableDelimiterRow"),I(Xe)},function(Xe){return n.interrupt=$t,e(Xe)})(ne)}function I(ne){return ne===null||de(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),R):ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,s.push("none"),B):ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s.push("left"),X):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function R(ne){return Ue(ne)?(t.consume(ne),R):(t.exit("whitespace"),I(ne))}function B(ne){return ne===45?(t.consume(ne),B):(t.exit("tableDelimiterFiller"),ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s[s.length-1]=s[s.length-1]==="left"?"center":"right",le):I(ne))}function X(ne){return ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),f=!0,B):e(ne)}function le(ne){return ne===null||de(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),R):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function be(ne){return t.exit("tableDelimiterRow"),!f||o!==s.length?e(ne):ne===null?he(ne):t.check(ch,he,t.attempt({tokenize:Qe,partial:!0},xe(t,Y,"linePrefix",4),he))(ne)}function he(ne){return t.exit("table"),r(ne)}function Y(ne){return t.enter("tableBody"),pe(ne)}function pe(ne){return t.enter("tableRow"),ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function ve(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),ke}function ke(ne){return ne===null||de(ne)?ge(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),Le):ne===124?ve(ne):(t.enter("temporaryTableCellContent"),Te(ne))}function Le(ne){return Ue(ne)?(t.consume(ne),Le):(t.exit("whitespace"),ke(ne))}function Te(ne){return ne===null||ne===124||rt(ne)?(t.exit("temporaryTableCellContent"),ke(ne)):(t.consume(ne),ne===92?Fe:Te)}function Fe(ne){return ne===92||ne===124?(t.consume(ne),Te):Te(ne)}function ge(ne){return t.exit("tableRow"),ne===null?Pe(ne):t.check(ch,Pe,t.attempt({tokenize:Qe,partial:!0},xe(t,pe,"linePrefix",4),Pe))(ne)}function Pe(ne){return t.exit("tableBody"),he(ne)}function Qe(ne,$t,Xe){return wt;function wt(z){return ne.enter("lineEnding"),ne.consume(z),ne.exit("lineEnding"),xe(ne,nt,"linePrefix")}function nt(z){if(n.parser.lazy[n.now().line]||z===null||de(z))return Xe(z);let H=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&H&&H[1].type==="linePrefix"&&H[2].sliceSerialize(H[1],!0).length>=4?Xe(z):(n._gfmTableDynamicInterruptHack=!0,ne.check(n.parser.constructs.flow,function(dr){return n._gfmTableDynamicInterruptHack=!1,Xe(dr)},function(dr){return n._gfmTableDynamicInterruptHack=!1,$t(dr)})(z))}}}function F0(t,r,e){let n=0;return s;function s(l){return t.enter("check"),t.consume(l),o}function o(l){return l===-1||l===32?(t.consume(l),n++,n===4?r:o):l===null||rt(l)?r(l):e(l)}}var I0={tokenize:O0},Nf={text:{[91]:I0}};function O0(t,r,e){let n=this;return s;function s(f){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(f):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),o)}function o(f){return rt(f)?(t.enter("taskListCheckValueUnchecked"),t.consume(f),t.exit("taskListCheckValueUnchecked"),l):f===88||f===120?(t.enter("taskListCheckValueChecked"),t.consume(f),t.exit("taskListCheckValueChecked"),l):e(f)}function l(f){return f===93?(t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:N0},r,e)):e(f)}}function N0(t,r,e){let n=this;return xe(t,s,"whitespace");function s(o){let l=n.events[n.events.length-1];return(l&&l[1].type==="whitespace"||de(o))&&o!==null?r(o):e(o)}}function ph(t){return ka([_f,Ff(),If(t),Of,Nf])}function Rf(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,s=e.indexOf(r);for(;s!==-1;)n++,s=e.indexOf(r,s+r.length);return n}function Df(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var go=function(t){if(t==null)return L0;if(typeof t=="string")return q0(t);if(typeof t=="object")return Array.isArray(t)?R0(t):D0(t);if(typeof t=="function")return Oa(t);throw new Error("Expected function, string, or object as test")};function R0(t){let r=[],e=-1;for(;++e<t.length;)r[e]=go(t[e]);return Oa(n);function n(...s){let o=-1;for(;++o<r.length;)if(r[o].call(this,...s))return!0;return!1}}function D0(t){return Oa(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function q0(t){return Oa(r);function r(e){return e&&e.type===t}}function Oa(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function L0(){return!0}function dh(t){return"\x1B[33m"+t+"\x1B[39m"}var j0=!0,B0="skip",mh=!1,hh=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let s=go(r),o=n?-1:1;l(t,null,[])();function l(f,c,g){let h=typeof f=="object"&&f!==null?f:{},$;return typeof h.type=="string"&&($=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0,Object.defineProperty(k,"name",{value:"node ("+dh(h.type+($?"<"+$+">":""))+")"})),k;function k(){let x=[],C,I,R;if((!r||s(f,c,g[g.length-1]||null))&&(x=M0(e(f,g)),x[0]===mh))return x;if(f.children&&x[0]!==B0)for(I=(n?f.children.length:-1)+o,R=g.concat(f);I>-1&&I<f.children.length;){if(C=l(f.children[I],I,R)(),C[0]===mh)return C;I=typeof C[1]=="number"?C[1]:I+o}return x}}};function M0(t){return Array.isArray(t)?t:typeof t=="number"?[j0,t]:[t]}var z0={}.hasOwnProperty,qf=function(t,r,e,n){let s,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],s=n):(o=r,s=e),s||(s={});let l=go(s.ignore||[]),f=V0(o),c=-1;for(;++c<f.length;)hh(t,"text",g);return t;function g($,k){let x=-1,C;for(;++x<k.length;){let I=k[x];if(l(I,C?C.children.indexOf(I):void 0,C))return;C=I}if(C)return h($,k)}function h($,k){let x=k[k.length-1],C=f[c][0],I=f[c][1],R=0,B=x.children.indexOf($),X=!1,le=[],be;C.lastIndex=0;let he=C.exec($.value);for(;he;){be=he.index;let Y={index:he.index,input:he.input,stack:[...k,$]},pe=I(...he,Y);if(typeof pe=="string"&&(pe=pe.length>0?{type:"text",value:pe}:void 0),pe!==!1&&(R!==be&&le.push({type:"text",value:$.value.slice(R,be)}),Array.isArray(pe)?le.push(...pe):pe&&le.push(pe),R=be+he[0].length,X=!0),!C.global)break;he=C.exec($.value)}return X?(R<$.value.length&&le.push({type:"text",value:$.value.slice(R)}),x.children.splice(B,1,...le)):le=[$],B+le.length}};function V0(t){let r=[];if(typeof t!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(t)){let e=-1;for(;++e<t.length;)r.push([gh(t[e][0]),yh(t[e][1])])}else{let e;for(e in t)z0.call(t,e)&&r.push([gh(e),yh(t[e])])}return r}function gh(t){return typeof t=="string"?new RegExp(Df(t),"g"):t}function yh(t){return typeof t=="function"?t:()=>t}var Lf="phrasing",jf=["autolink","link","image","label"],bh={transforms:[Z0],enter:{literalAutolink:H0,literalAutolinkEmail:Bf,literalAutolinkHttp:Bf,literalAutolinkWww:Bf},exit:{literalAutolink:W0,literalAutolinkEmail:K0,literalAutolinkHttp:U0,literalAutolinkWww:G0}},$h={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lf,notInConstruct:jf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lf,notInConstruct:jf},{character:":",before:"[ps]",after:"\\/",inConstruct:Lf,notInConstruct:jf}]};function H0(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Bf(t){this.config.enter.autolinkProtocol.call(this,t)}function U0(t){this.config.exit.autolinkProtocol.call(this,t)}function G0(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function K0(t){this.config.exit.autolinkEmail.call(this,t)}function W0(t){this.exit(t)}function Z0(t){qf(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J0],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Q0]],{ignore:["link","linkReference"]})}function J0(t,r,e,n,s){let o="";if(!wh(s)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!X0(e)))return!1;let l=Y0(e+n);if(!l[0])return!1;let f={type:"link",title:null,url:o+r+l[0],children:[{type:"text",value:r+l[0]}]};return l[1]?[f,{type:"text",value:l[1]}]:f}function Q0(t,r,e,n){return!wh(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function X0(t){let r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Y0(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,s,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=Rf(t,"("),s=Rf(t,")");e!==-1&&n>s;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),s++;return[t,o]}function wh(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Oi(e)||Ni(e))&&(!r||e!==47)}function Mf(t){return t.label||!t.identifier?t.label||"":Ia(t.identifier)}function pr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,s=e.line||1,o=e.column||1;return{move:c,current:l,shift:f};function l(){return{now:{line:s,column:o},lineShift:n}}function f(g){n+=g}function c(g=""){let h=g.split(/\r?\n|\r/g),$=h[h.length-1];return s+=h.length-1,o=h.length===1?o+$.length:1+$.length+n,g}}function Na(t,r,e){let n=r.indexStack,s=t.children||[],o=pr(e),l=[],f=-1;for(n.push(-1);++f<s.length;){let g=s[f];n[n.length-1]=f,l.push(o.move(r.handle(g,t,r,{before:`
|
|
21
|
+
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&s)continue;l=" ";break}default:l=String.fromCharCode(a)}s=a===-2,n.push(l)}return n.join("")}var rc={};Bc(rc,{attentionMarkers:()=>Ev,contentInitial:()=>vv,disable:()=>Sv,document:()=>wv,flow:()=>xv,flowInitial:()=>$v,insideSpan:()=>Av,string:()=>kv,text:()=>_v});var wv={[42]:or,[43]:or,[45]:or,[48]:or,[49]:or,[50]:or,[51]:or,[52]:or,[53]:or,[54]:or,[55]:or,[56]:or,[57]:or,[62]:oo},vv={[91]:Wu},$v={[-2]:na,[-1]:na,[32]:na},xv={[35]:Qu,[42]:Ti,[45]:[go,Ti],[60]:Xu,[61]:go,[95]:Ti,[96]:co,[126]:co},kv={[38]:uo,[92]:lo},_v={[-5]:ia,[-4]:ia,[-3]:ia,[33]:ec,[38]:uo,[42]:ra,[60]:[Uu,Yu],[91]:tc,[92]:[Ju,lo],[93]:Ci,[95]:ra,[96]:Gu},Av={null:[ra,vd]},Ev={null:[42,95]},Sv={null:[]};function Ed(t={}){let r=ao([rc].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(dd),document:n(gd),flow:n(wd),string:n($d),text:n(xd)};return e;function n(s){return a;function a(l){return Ad(e,s,l)}}}var Sd=/[\0\t\n\r]/g;function Cd(){let t=1,r="",e=!0,n;return s;function s(a,l,c){let f=[],g,m,v,A,k;for(a=r+a.toString(l),v=0,r="",e&&(a.charCodeAt(0)===65279&&v++,e=void 0);v<a.length;){if(Sd.lastIndex=v,g=Sd.exec(a),A=g&&g.index!==void 0?g.index:a.length,k=a.charCodeAt(A),!g){r=a.slice(v);break}if(k===10&&v===A&&n)f.push(-3),n=void 0;else switch(n&&(f.push(-5),n=void 0),v<A&&(f.push(a.slice(v,A)),t+=A-v),k){case 0:{f.push(65533),t++;break}case 9:{for(m=Math.ceil(t/4)*4,f.push(-2);t++<m;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:n=!0,t=1}v=A+1}return c&&(n&&f.push(-5),r&&f.push(r),f.push(null)),f}}function Td(t){for(;!fo(t););return t}function yo(t,r){let e=Number.parseInt(t,r);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var Cv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bo(t){return t.replace(Cv,Tv)}function Tv(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let s=e.charCodeAt(1),a=s===120||s===88;return yo(e.slice(a?2:1),a?16:10)}return ls(e)||t}var nc={}.hasOwnProperty,ic=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),Pv(e)(Td(Ed(e).document().write(Cd()(t,r,!0))))};function Pv(t={}){let r=Dd({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Ee),autolinkProtocol:De,autolinkEmail:De,atxHeading:f(kn),blockQuote:f(Sr),characterEscape:De,characterReference:De,codeFenced:f(br),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:f(br,g),codeText:f(Rt,g),codeTextData:De,data:De,codeFlowValue:De,definition:f($n),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:f(xn),hardBreakEscape:f(_e),hardBreakTrailing:f(_e),htmlFlow:f(Nn,g),htmlFlowData:De,htmlText:f(Nn,g),htmlTextData:De,image:f(Cr),label:g,link:f(Ee),listItem:f(kt),listItemValue:I,listOrdered:f(Oe,S),listUnordered:f(Oe),paragraph:f(dt),reference:St,referenceString:g,resourceDestinationString:g,resourceTitleString:g,setextHeading:f(kn),strong:f(cr),thematicBreak:f(Se)},exit:{atxHeading:v(),atxHeadingSequence:xe,autolink:v(),autolinkEmail:yr,autolinkProtocol:Mt,blockQuote:v(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:Xt,codeFenced:v(le),codeFencedFence:X,codeFencedFenceInfo:q,codeFencedFenceMeta:j,codeFlowValue:ge,codeIndented:v(be),codeText:v(Ze),codeTextData:ge,data:ge,definition:v(),definitionDestinationString:pe,definitionLabelString:me,definitionTitleString:Y,emphasis:v(),hardBreakEscape:v(Qe),hardBreakTrailing:v(Qe),htmlFlow:v(ne),htmlFlowData:ge,htmlText:v(bt),htmlTextData:ge,image:v(rt),label:U,labelText:V,lineEnding:Te,link:v(wt),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:Ct,resourceDestinationString:ur,resourceTitleString:qt,resource:vt,setextHeading:v(Pe),setextHeadingLineSequence:Le,setextHeadingText:$e,strong:v(),thematicBreak:v()}},t.mdastExtensions||[]),e={};return n;function n(te){let fe={type:"root",children:[]},Ae=[fe],Me=[],Xe=[],Et={stack:Ae,tokenStack:Me,config:r,enter:m,exit:A,buffer:g,resume:k,setData:a,getData:l},nt=-1;for(;++nt<te.length;)if(te[nt][1].type==="listOrdered"||te[nt][1].type==="listUnordered")if(te[nt][0]==="enter")Xe.push(nt);else{let $t=Xe.pop();nt=s(te,$t,nt)}for(nt=-1;++nt<te.length;){let $t=r[te[nt][0]];nc.call($t,te[nt][1].type)&&$t[te[nt][1].type].call(Object.assign({sliceSerialize:te[nt][2].sliceSerialize},Et),te[nt][1])}if(Me.length>0){let $t=Me[Me.length-1];($t[1]||Pd).call(Et,void 0,$t[0])}for(fe.position={start:c(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:c(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<r.transforms.length;)fe=r.transforms[nt](fe)||fe;return fe}function s(te,fe,Ae){let Me=fe-1,Xe=-1,Et=!1,nt,$t,Tt,Hr;for(;++Me<=Ae;){let mt=te[Me];if(mt[1].type==="listUnordered"||mt[1].type==="listOrdered"||mt[1].type==="blockQuote"?(mt[0]==="enter"?Xe++:Xe--,Hr=void 0):mt[1].type==="lineEndingBlank"?mt[0]==="enter"&&(nt&&!Hr&&!Xe&&!Tt&&(Tt=Me),Hr=void 0):mt[1].type==="linePrefix"||mt[1].type==="listItemValue"||mt[1].type==="listItemMarker"||mt[1].type==="listItemPrefix"||mt[1].type==="listItemPrefixWhitespace"||(Hr=void 0),!Xe&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Xe===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(nt){let _n=Me;for($t=void 0;_n--;){let fr=te[_n];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;$t&&(te[$t][1].type="lineEndingBlank",Et=!0),fr[1].type="lineEnding",$t=_n}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Tt&&(!$t||Tt<$t)&&(nt._spread=!0),nt.end=Object.assign({},$t?te[$t][1].start:mt[1].end),te.splice($t||Me,0,["exit",nt,mt[2]]),Me++,Ae++}mt[1].type==="listItemPrefix"&&(nt={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start)},te.splice(Me,0,["enter",nt,mt[2]]),Me++,Ae++,Tt=void 0,Hr=!0)}}return te[fe][1]._spread=Et,Ae}function a(te,fe){e[te]=fe}function l(te){return e[te]}function c(te){return{line:te.line,column:te.column,offset:te.offset}}function f(te,fe){return Ae;function Ae(Me){m.call(this,te(Me),Me),fe&&fe.call(this,Me)}}function g(){this.stack.push({type:"fragment",children:[]})}function m(te,fe,Ae){return this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([fe,Ae]),te.position={start:c(fe.start)},te}function v(te){return fe;function fe(Ae){te&&te.call(this,Ae),A.call(this,Ae)}}function A(te,fe){let Ae=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==te.type&&(fe?fe.call(this,te,Me[0]):(Me[1]||Pd).call(this,te,Me[0]));else throw new Error("Cannot close `"+te.type+"` ("+ki({start:te.start,end:te.end})+"): it\u2019s not open");return Ae.position.end=c(te.end),Ae}function k(){return ld(this.stack.pop())}function S(){a("expectingFirstListItemValue",!0)}function I(te){if(l("expectingFirstListItemValue")){let fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(te),10),a("expectingFirstListItemValue")}}function q(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=te}function j(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=te}function X(){l("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function le(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function be(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/(\r?\n|\r)$/g,"")}function me(te){let fe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=fe,Ae.identifier=ar(this.sliceSerialize(te)).toLowerCase()}function Y(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function pe(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function xe(te){let fe=this.stack[this.stack.length-1];if(!fe.depth){let Ae=this.sliceSerialize(te).length;fe.depth=Ae}}function $e(){a("setextHeadingSlurpLineEnding",!0)}function Le(te){let fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(te).charCodeAt(0)===61?1:2}function Pe(){a("setextHeadingSlurpLineEnding")}function De(te){let fe=this.stack[this.stack.length-1],Ae=fe.children[fe.children.length-1];(!Ae||Ae.type!=="text")&&(Ae=qe(),Ae.position={start:c(te.start)},fe.children.push(Ae)),this.stack.push(Ae)}function ge(te){let fe=this.stack.pop();fe.value+=this.sliceSerialize(te),fe.position.end=c(te.end)}function Te(te){let fe=this.stack[this.stack.length-1];if(l("atHardBreak")){let Ae=fe.children[fe.children.length-1];Ae.position.end=c(te.end),a("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(fe.type)&&(De.call(this,te),ge.call(this,te))}function Qe(){a("atHardBreak",!0)}function ne(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function bt(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function Ze(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function wt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),a("referenceType")}function rt(){let te=this.stack[this.stack.length-1];l("inReference")?(te.type+="Reference",te.referenceType=l("referenceType")||"shortcut",delete te.url,delete te.title):(delete te.identifier,delete te.label),a("referenceType")}function V(te){let fe=this.stack[this.stack.length-2],Ae=this.sliceSerialize(te);fe.label=bo(Ae),fe.identifier=ar(Ae).toLowerCase()}function U(){let te=this.stack[this.stack.length-1],fe=this.resume(),Ae=this.stack[this.stack.length-1];a("inReference",!0),Ae.type==="link"?Ae.children=te.children:Ae.alt=fe}function ur(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function qt(){let te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function vt(){a("inReference")}function St(){a("referenceType","collapsed")}function Ct(te){let fe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=fe,Ae.identifier=ar(this.sliceSerialize(te)).toLowerCase(),a("referenceType","full")}function lt(te){a("characterReferenceType",te.type)}function Xt(te){let fe=this.sliceSerialize(te),Ae=l("characterReferenceType"),Me;Ae?(Me=yo(fe,Ae==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):Me=ls(fe);let Xe=this.stack.pop();Xe.value+=Me,Xe.position.end=c(te.end)}function Mt(te){ge.call(this,te);let fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(te)}function yr(te){ge.call(this,te);let fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(te)}function Sr(){return{type:"blockquote",children:[]}}function br(){return{type:"code",lang:null,meta:null,value:""}}function Rt(){return{type:"inlineCode",value:""}}function $n(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xn(){return{type:"emphasis",children:[]}}function kn(){return{type:"heading",depth:void 0,children:[]}}function _e(){return{type:"break"}}function Nn(){return{type:"html",value:""}}function Cr(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Oe(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function kt(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function dt(){return{type:"paragraph",children:[]}}function cr(){return{type:"strong",children:[]}}function qe(){return{type:"text",value:""}}function Se(){return{type:"thematicBreak"}}}function Dd(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?Dd(t,n):Dv(t,n)}return t}function Dv(t,r){let e;for(e in r)if(nc.call(r,e)){let n=e==="canContainEols"||e==="transforms",a=(nc.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),l=r[e];l&&(n?t[e]=[...a,...l]:Object.assign(a,l))}}function Pd(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+ki({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+ki({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ki({start:r.start,end:r.end})+") is still open")}function sc(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return ic(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Fd=sc;var Fv={tokenize:Rv,partial:!0},Od={tokenize:Nv,partial:!0},qd={tokenize:Lv,partial:!0},us={tokenize:Mv,partial:!0},Rd={tokenize:zv,partial:!0},Nd={tokenize:Ov,previous:Md},Ld={tokenize:qv,previous:lc},Rn={tokenize:Iv,previous:jd},vn={},ac={text:vn},Pi=48;for(;Pi<123;)vn[Pi]=Rn,Pi++,Pi===58?Pi=65:Pi===91&&(Pi=97);vn[43]=Rn;vn[45]=Rn;vn[46]=Rn;vn[95]=Rn;vn[72]=[Rn,Ld];vn[104]=[Rn,Ld];vn[87]=[Rn,Nd];vn[119]=[Rn,Nd];function Iv(t,r,e){let n=this,s,a;return l;function l(k){return!Id(k)||!jd(n.previous)||uc(n.events)?e(k):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),c(k))}function c(k){return Id(k)?(t.consume(k),c):k===64?(t.consume(k),f):e(k)}function f(k){return k===46?t.check(us,A,g)(k):k===45||k===95?t.check(us,e,m)(k):Ht(k)?(!a&&_i(k)&&(a=!0),t.consume(k),f):A(k)}function g(k){return t.consume(k),s=!0,a=void 0,f}function m(k){return t.consume(k),v}function v(k){return k===46?t.check(us,e,g)(k):f(k)}function A(k){return s&&!a?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(k)):e(k)}}function Ov(t,r,e){let n=this;return s;function s(l){return l!==87&&l!==119||!Md(n.previous)||uc(n.events)?e(l):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Fv,t.attempt(Od,t.attempt(qd,a),e),e)(l))}function a(l){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(l)}}function qv(t,r,e){let n=this;return s;function s(S){return S!==72&&S!==104||!lc(n.previous)||uc(n.events)?e(S):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(S),a)}function a(S){return S===84||S===116?(t.consume(S),l):e(S)}function l(S){return S===84||S===116?(t.consume(S),c):e(S)}function c(S){return S===80||S===112?(t.consume(S),f):e(S)}function f(S){return S===83||S===115?(t.consume(S),g):g(S)}function g(S){return S===58?(t.consume(S),m):e(S)}function m(S){return S===47?(t.consume(S),v):e(S)}function v(S){return S===47?(t.consume(S),A):e(S)}function A(S){return S===null||Jn(S)||Ai(S)||Ei(S)?e(S):t.attempt(Od,t.attempt(qd,k),e)(S)}function k(S){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(S)}}function Rv(t,r,e){return n;function n(f){return t.consume(f),s}function s(f){return f===87||f===119?(t.consume(f),a):e(f)}function a(f){return f===87||f===119?(t.consume(f),l):e(f)}function l(f){return f===46?(t.consume(f),c):e(f)}function c(f){return f===null||he(f)?e(f):r(f)}}function Nv(t,r,e){let n,s;return a;function a(f){return f===38?t.check(Rd,c,l)(f):f===46||f===95?t.check(us,c,l)(f):f===null||Jn(f)||Ai(f)||f!==45&&Ei(f)?c(f):(t.consume(f),a)}function l(f){return f===46?(s=n,n=void 0,t.consume(f),a):(f===95&&(n=!0),t.consume(f),a)}function c(f){return!s&&!n?r(f):e(f)}}function Lv(t,r){let e=0;return n;function n(l){return l===38?t.check(Rd,r,s)(l):(l===40&&e++,l===41?t.check(us,a,s)(l):oc(l)?r(l):zd(l)?t.check(us,r,s)(l):(t.consume(l),n))}function s(l){return t.consume(l),n}function a(l){return e--,e<0?r(l):s(l)}}function zv(t,r,e){return n;function n(l){return t.consume(l),s}function s(l){return sr(l)?(t.consume(l),s):l===59?(t.consume(l),a):e(l)}function a(l){return oc(l)?r(l):e(l)}}function Mv(t,r,e){return n;function n(a){return t.consume(a),s}function s(a){return zd(a)?(t.consume(a),s):oc(a)?r(a):e(a)}}function zd(t){return t===33||t===34||t===39||t===41||t===42||t===44||t===46||t===58||t===59||t===60||t===63||t===95||t===126}function oc(t){return t===null||t===60||tt(t)}function Id(t){return t===43||t===45||t===46||t===95||Ht(t)}function Md(t){return t===null||t===40||t===42||t===95||t===126||tt(t)}function lc(t){return t===null||!sr(t)}function jd(t){return t!==47&&lc(t)}function uc(t){let r=t.length,e=!1;for(;r--;){let n=t[r][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){e=!0;break}if(n._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}var jv={tokenize:Wv,partial:!0};function cc(){return{document:{[91]:{tokenize:Hv,continuation:{tokenize:Gv},exit:Kv}},text:{[91]:{tokenize:Uv},[93]:{add:"after",tokenize:Vv,resolveTo:Bv}}}}function Vv(t,r,e){let n=this,s=n.events.length,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),l;for(;s--;){let f=n.events[s][1];if(f.type==="labelImage"){l=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return c;function c(f){if(!l||!l._balanced)return e(f);let g=ar(n.sliceSerialize({start:l.end,end:n.now()}));return g.charCodeAt(0)!==94||!a.includes(g.slice(1))?e(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),r(f))}}function Bv(t,r){let e=t.length,n;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){n=t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";let s={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},f=[t[e+1],t[e+2],["enter",s,r],t[e+3],t[e+4],["enter",a,r],["exit",a,r],["enter",l,r],["enter",c,r],["exit",c,r],["exit",l,r],t[t.length-2],t[t.length-1],["exit",s,r]];return t.splice(e,t.length-e+1,...f),t}function Uv(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a=0,l;return c;function c(A){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(A),t.exit("gfmFootnoteCallLabelMarker"),f}function f(A){return A!==94?e(A):(t.enter("gfmFootnoteCallMarker"),t.consume(A),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(A){let k;return A===null||A===91||a++>999?e(A):A===93?l?(t.exit("chunkString"),k=t.exit("gfmFootnoteCallString"),s.includes(ar(n.sliceSerialize(k)))?v(A):e(A)):e(A):(t.consume(A),tt(A)||(l=!0),A===92?m:g)}function m(A){return A===91||A===92||A===93?(t.consume(A),a++,g):g(A)}function v(A){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(A),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function Hv(t,r,e){let n=this,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a,l=0,c;return f;function f(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),m):e(I)}function m(I){let q;return I===null||I===91||l>999?e(I):I===93?c?(q=t.exit("gfmFootnoteDefinitionLabelString"),a=ar(n.sliceSerialize(q)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),k):e(I):he(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),l++,m):(t.enter("chunkString").contentType="string",v(I))}function v(I){return I===null||he(I)||I===91||I===93||l>999?(t.exit("chunkString"),m(I)):(tt(I)||(c=!0),l++,t.consume(I),I===92?A:v)}function A(I){return I===91||I===92||I===93?(t.consume(I),l++,v):v(I)}function k(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),ke(t,S,"gfmFootnoteDefinitionWhitespace")):e(I)}function S(I){return s.includes(a)||s.push(a),r(I)}}function Gv(t,r,e){return t.check(wn,r,t.attempt(jv,r,e))}function Kv(t){t.exit("gfmFootnoteDefinition")}function Wv(t,r,e){let n=this;return ke(t,s,"gfmFootnoteDefinitionIndent",4+1);function s(a){let l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(a):e(a)}}function fc(t={}){let r=t.singleTilde,e={tokenize:s,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(a,l){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let f=c;for(;f--;)if(a[f][0]==="exit"&&a[f][1].type==="strikethroughSequenceTemporary"&&a[f][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[f][1].end.offset-a[f][1].start.offset){a[c][1].type="strikethroughSequence",a[f][1].type="strikethroughSequence";let g={type:"strikethrough",start:Object.assign({},a[f][1].start),end:Object.assign({},a[c][1].end)},m={type:"strikethroughText",start:Object.assign({},a[f][1].end),end:Object.assign({},a[c][1].start)},v=[["enter",g,l],["enter",a[f][1],l],["exit",a[f][1],l],["enter",m,l]];Dt(v,v.length,0,Zn(l.parser.constructs.insideSpan.null,a.slice(f+1,c),l)),Dt(v,v.length,0,[["exit",m,l],["enter",a[c][1],l],["exit",a[c][1],l],["exit",g,l]]),Dt(a,f-1,c-f+3,v),c=f+v.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function s(a,l,c){let f=this.previous,g=this.events,m=0;return v;function v(k){return f===126&&g[g.length-1][1].type!=="characterEscape"?c(k):(a.enter("strikethroughSequenceTemporary"),A(k))}function A(k){let S=os(f);if(k===126)return m>1?c(k):(a.consume(k),m++,A);if(m<2&&!r)return c(k);let I=a.exit("strikethroughSequenceTemporary"),q=os(k);return I._open=!q||q===2&&Boolean(S),I._close=!S||S===2&&Boolean(q),l(k)}}}var pc={flow:{null:{tokenize:Qv,resolve:Jv}}},Vd={tokenize:Zv,partial:!0};function Jv(t,r){let e=-1,n,s,a,l,c,f,g;for(;++e<t.length;){let m=t[e][1];if(a&&(m.type==="temporaryTableCellContent"&&(l=l||e,c=e),(m.type==="tableCellDivider"||m.type==="tableRow")&&c)){let v={type:"tableContent",start:t[l][1].start,end:t[c][1].end},A={type:"chunkText",start:v.start,end:v.end,contentType:"text"};t.splice(l,c-l+1,["enter",v,r],["enter",A,r],["exit",A,r],["exit",v,r]),e-=c-l-3,l=void 0,c=void 0}if(t[e][0]==="exit"&&f!==void 0&&f+(g?0:1)<e&&(m.type==="tableCellDivider"||m.type==="tableRow"&&(f+3<e||t[f][1].type!=="whitespace"))){let v={type:s?"tableDelimiter":n?"tableHeader":"tableData",start:t[f][1].start,end:t[e][1].end};t.splice(e+(m.type==="tableCellDivider"?1:0),0,["exit",v,r]),t.splice(f,0,["enter",v,r]),e+=2,f=e+1,g=!0}m.type==="tableRow"&&(a=t[e][0]==="enter",a&&(f=e+1,g=!1)),m.type==="tableDelimiterRow"&&(s=t[e][0]==="enter",s&&(f=e+1,g=!1)),m.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function Qv(t,r,e){let n=this,s=[],a=0,l,c;return f;function f(ne){return t.enter("table")._align=s,t.enter("tableHead"),t.enter("tableRow"),ne===124?g(ne):(a++,t.enter("temporaryTableCellContent"),A(ne))}function g(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),l=!0,m}function m(ne){return ne===null||he(ne)?S(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),v):(l&&(l=void 0,a++),ne===124?g(ne):(t.enter("temporaryTableCellContent"),A(ne)))}function v(ne){return Ue(ne)?(t.consume(ne),v):(t.exit("whitespace"),m(ne))}function A(ne){return ne===null||ne===124||tt(ne)?(t.exit("temporaryTableCellContent"),m(ne)):(t.consume(ne),ne===92?k:A)}function k(ne){return ne===92||ne===124?(t.consume(ne),A):A(ne)}function S(ne){if(ne===null)return e(ne);t.exit("tableRow"),t.exit("tableHead");let bt=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Qe,partial:!0},function(Ze){return n.interrupt=bt,t.enter("tableDelimiterRow"),I(Ze)},function(Ze){return n.interrupt=bt,e(Ze)})(ne)}function I(ne){return ne===null||he(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),q):ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),c=!0,s.push("none"),j):ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s.push("left"),X):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function q(ne){return Ue(ne)?(t.consume(ne),q):(t.exit("whitespace"),I(ne))}function j(ne){return ne===45?(t.consume(ne),j):(t.exit("tableDelimiterFiller"),ne===58?(t.enter("tableDelimiterAlignment"),t.consume(ne),t.exit("tableDelimiterAlignment"),s[s.length-1]=s[s.length-1]==="left"?"center":"right",le):I(ne))}function X(ne){return ne===45?(t.enter("tableDelimiterFiller"),t.consume(ne),c=!0,j):e(ne)}function le(ne){return ne===null||he(ne)?be(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),q):ne===124?(t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),I):e(ne)}function be(ne){return t.exit("tableDelimiterRow"),!c||a!==s.length?e(ne):ne===null?me(ne):t.check(Vd,me,t.attempt({tokenize:Qe,partial:!0},ke(t,Y,"linePrefix",4),me))(ne)}function me(ne){return t.exit("table"),r(ne)}function Y(ne){return t.enter("tableBody"),pe(ne)}function pe(ne){return t.enter("tableRow"),ne===124?xe(ne):(t.enter("temporaryTableCellContent"),Pe(ne))}function xe(ne){return t.enter("tableCellDivider"),t.consume(ne),t.exit("tableCellDivider"),$e}function $e(ne){return ne===null||he(ne)?ge(ne):Ue(ne)?(t.enter("whitespace"),t.consume(ne),Le):ne===124?xe(ne):(t.enter("temporaryTableCellContent"),Pe(ne))}function Le(ne){return Ue(ne)?(t.consume(ne),Le):(t.exit("whitespace"),$e(ne))}function Pe(ne){return ne===null||ne===124||tt(ne)?(t.exit("temporaryTableCellContent"),$e(ne)):(t.consume(ne),ne===92?De:Pe)}function De(ne){return ne===92||ne===124?(t.consume(ne),Pe):Pe(ne)}function ge(ne){return t.exit("tableRow"),ne===null?Te(ne):t.check(Vd,Te,t.attempt({tokenize:Qe,partial:!0},ke(t,pe,"linePrefix",4),Te))(ne)}function Te(ne){return t.exit("tableBody"),me(ne)}function Qe(ne,bt,Ze){return wt;function wt(V){return ne.enter("lineEnding"),ne.consume(V),ne.exit("lineEnding"),ke(ne,rt,"linePrefix")}function rt(V){if(n.parser.lazy[n.now().line]||V===null||he(V))return Ze(V);let U=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&U&&U[1].type==="linePrefix"&&U[2].sliceSerialize(U[1],!0).length>=4?Ze(V):(n._gfmTableDynamicInterruptHack=!0,ne.check(n.parser.constructs.flow,function(ur){return n._gfmTableDynamicInterruptHack=!1,Ze(ur)},function(ur){return n._gfmTableDynamicInterruptHack=!1,bt(ur)})(V))}}}function Zv(t,r,e){let n=0;return s;function s(l){return t.enter("check"),t.consume(l),a}function a(l){return l===-1||l===32?(t.consume(l),n++,n===4?r:a):l===null||tt(l)?r(l):e(l)}}var Xv={tokenize:Yv},hc={text:{[91]:Xv}};function Yv(t,r,e){let n=this;return s;function s(c){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),a)}function a(c){return tt(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),l):e(c)}function l(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:e$},r,e)):e(c)}}function e$(t,r,e){let n=this;return ke(t,s,"whitespace");function s(a){let l=n.events[n.events.length-1];return(l&&l[1].type==="whitespace"||he(a))&&a!==null?r(a):e(a)}}function Bd(t){return ao([ac,cc(),fc(t),pc,hc])}function dc(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,s=e.indexOf(r);for(;s!==-1;)n++,s=e.indexOf(r,s+r.length);return n}function mc(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var sa=function(t){if(t==null)return i$;if(typeof t=="string")return n$(t);if(typeof t=="object")return Array.isArray(t)?t$(t):r$(t);if(typeof t=="function")return wo(t);throw new Error("Expected function, string, or object as test")};function t$(t){let r=[],e=-1;for(;++e<t.length;)r[e]=sa(t[e]);return wo(n);function n(...s){let a=-1;for(;++a<r.length;)if(r[a].call(this,...s))return!0;return!1}}function r$(t){return wo(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function n$(t){return wo(r);function r(e){return e&&e.type===t}}function wo(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function i$(){return!0}function Ud(t){return"\x1B[33m"+t+"\x1B[39m"}var s$=!0,a$="skip",Hd=!1,Gd=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let s=sa(r),a=n?-1:1;l(t,null,[])();function l(c,f,g){let m=typeof c=="object"&&c!==null?c:{},v;return typeof m.type=="string"&&(v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0,Object.defineProperty(A,"name",{value:"node ("+Ud(m.type+(v?"<"+v+">":""))+")"})),A;function A(){let k=[],S,I,q;if((!r||s(c,f,g[g.length-1]||null))&&(k=o$(e(c,g)),k[0]===Hd))return k;if(c.children&&k[0]!==a$)for(I=(n?c.children.length:-1)+a,q=g.concat(c);I>-1&&I<c.children.length;){if(S=l(c.children[I],I,q)(),S[0]===Hd)return S;I=typeof S[1]=="number"?S[1]:I+a}return k}}};function o$(t){return Array.isArray(t)?t:typeof t=="number"?[s$,t]:[t]}var l$={}.hasOwnProperty,gc=function(t,r,e,n){let s,a;typeof r=="string"||r instanceof RegExp?(a=[[r,e]],s=n):(a=r,s=e),s||(s={});let l=sa(s.ignore||[]),c=u$(a),f=-1;for(;++f<c.length;)Gd(t,"text",g);return t;function g(v,A){let k=-1,S;for(;++k<A.length;){let I=A[k];if(l(I,S?S.children.indexOf(I):void 0,S))return;S=I}if(S)return m(v,A)}function m(v,A){let k=A[A.length-1],S=c[f][0],I=c[f][1],q=0,j=k.children.indexOf(v),X=!1,le=[],be;S.lastIndex=0;let me=S.exec(v.value);for(;me;){be=me.index;let Y={index:me.index,input:me.input,stack:[...A,v]},pe=I(...me,Y);if(typeof pe=="string"&&(pe=pe.length>0?{type:"text",value:pe}:void 0),pe!==!1&&(q!==be&&le.push({type:"text",value:v.value.slice(q,be)}),Array.isArray(pe)?le.push(...pe):pe&&le.push(pe),q=be+me[0].length,X=!0),!S.global)break;me=S.exec(v.value)}return X?(q<v.value.length&&le.push({type:"text",value:v.value.slice(q)}),k.children.splice(j,1,...le)):le=[v],j+le.length}};function u$(t){let r=[];if(typeof t!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(t)){let e=-1;for(;++e<t.length;)r.push([Kd(t[e][0]),Wd(t[e][1])])}else{let e;for(e in t)l$.call(t,e)&&r.push([Kd(e),Wd(t[e])])}return r}function Kd(t){return typeof t=="string"?new RegExp(mc(t),"g"):t}function Wd(t){return typeof t=="function"?t:()=>t}var yc="phrasing",bc=["autolink","link","image","label"],Jd={transforms:[m$],enter:{literalAutolink:c$,literalAutolinkEmail:wc,literalAutolinkHttp:wc,literalAutolinkWww:wc},exit:{literalAutolink:d$,literalAutolinkEmail:h$,literalAutolinkHttp:f$,literalAutolinkWww:p$}},Qd={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:yc,notInConstruct:bc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:yc,notInConstruct:bc},{character:":",before:"[ps]",after:"\\/",inConstruct:yc,notInConstruct:bc}]};function c$(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function wc(t){this.config.enter.autolinkProtocol.call(this,t)}function f$(t){this.config.exit.autolinkProtocol.call(this,t)}function p$(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function h$(t){this.config.exit.autolinkEmail.call(this,t)}function d$(t){this.exit(t)}function m$(t){gc(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,g$],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,y$]],{ignore:["link","linkReference"]})}function g$(t,r,e,n,s){let a="";if(!Zd(s)||(/^w/i.test(r)&&(e=r+e,r="",a="http://"),!b$(e)))return!1;let l=w$(e+n);if(!l[0])return!1;let c={type:"link",title:null,url:a+r+l[0],children:[{type:"text",value:r+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function y$(t,r,e,n){return!Zd(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function b$(t){let r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function w$(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,s,a;if(r)for(t=t.slice(0,r.index),a=r[0],e=a.indexOf(")"),n=dc(t,"("),s=dc(t,")");e!==-1&&n>s;)t+=a.slice(0,e+1),a=a.slice(e+1),e=a.indexOf(")"),s++;return[t,a]}function Zd(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||Ai(e)||Ei(e))&&(!r||e!==47)}function vc(t){return t.label||!t.identifier?t.label||"":bo(t.identifier)}function lr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,s=e.line||1,a=e.column||1;return{move:f,current:l,shift:c};function l(){return{now:{line:s,column:a},lineShift:n}}function c(g){n+=g}function f(g=""){let m=g.split(/\r?\n|\r/g),v=m[m.length-1];return s+=m.length-1,a=m.length===1?a+v.length:1+v.length+n,g}}function vo(t,r,e){let n=r.indexStack,s=t.children||[],a=lr(e),l=[],c=-1;for(n.push(-1);++c<s.length;){let g=s[c];n[n.length-1]=c,l.push(a.move(r.handle(g,t,r,{before:`
|
|
46
22
|
`,after:`
|
|
47
|
-
`,...
|
|
48
|
-
`.repeat(1+
|
|
23
|
+
`,...a.current()}))),g.type!=="list"&&(r.bulletLastUsed=void 0),c<s.length-1&&l.push(a.move(f(g,s[c+1])))}return n.pop(),l.join("");function f(g,m){let v=r.join.length;for(;v--;){let A=r.join[v](g,m,t,r);if(A===!0||A===1)break;if(typeof A=="number")return`
|
|
24
|
+
`.repeat(1+A);if(A===!1)return`
|
|
49
25
|
|
|
50
26
|
<!---->
|
|
51
27
|
|
|
52
28
|
`}return`
|
|
53
29
|
|
|
54
|
-
`}}var
|
|
55
|
-
`)&&g.type==="html"&&(
|
|
56
|
-
`)}function
|
|
57
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:l,tableRow:
|
|
58
|
-
`))}function
|
|
59
|
-
`,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:e,inlineMath:n}};function e(
|
|
60
|
-
`,encode:["$"],...
|
|
61
|
-
`),g&&(
|
|
62
|
-
`)),
|
|
30
|
+
`}}var v$=/\r?\n|\r/g;function $o(t,r){let e=[],n=0,s=0,a;for(;a=v$.exec(t);)l(t.slice(n,a.index)),e.push(a[0]),n=a.index+a[0].length,s++;return l(t.slice(n)),e.join("");function l(c){e.push(r(c,s,!c))}}function cs(t){if(!t._compiled){let r=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((r?"("+r+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function Yd(t,r){return Xd(t,r.inConstruct,!0)&&!Xd(t,r.notInConstruct,!1)}function Xd(t,r,e){if(!r)return e;typeof r=="string"&&(r=[r]);let n=-1;for(;++n<r.length;)if(t.includes(r[n]))return!0;return!1}function aa(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),s=[],a=[],l={},c=-1;for(;++c<t.unsafe.length;){let m=t.unsafe[c];if(!Yd(t.stack,m))continue;let v=cs(m),A;for(;A=v.exec(n);){let k="before"in m||Boolean(m.atBreak),S="after"in m,I=A.index+(k?A[1].length:0);s.includes(I)?(l[I].before&&!k&&(l[I].before=!1),l[I].after&&!S&&(l[I].after=!1)):(s.push(I),l[I]={before:k,after:S})}}s.sort($$);let f=e.before?e.before.length:0,g=n.length-(e.after?e.after.length:0);for(c=-1;++c<s.length;){let m=s[c];m<f||m>=g||m+1<g&&s[c+1]===m+1&&l[m].after&&!l[m+1].before&&!l[m+1].after||s[c-1]===m-1&&l[m].before&&!l[m-1].before&&!l[m-1].after||(f!==m&&a.push(em(n.slice(f,m),"\\")),f=m,/[!-/:-@[-`{-~]/.test(n.charAt(m))&&(!e.encode||!e.encode.includes(n.charAt(m)))?a.push("\\"):(a.push("&#x"+n.charCodeAt(m).toString(16).toUpperCase()+";"),f++))}return a.push(em(n.slice(f,g),e.after)),a.join("")}function $$(t,r){return t-r}function em(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],s=[],a=t+r,l=-1,c=0,f;for(;f=e.exec(a);)n.push(f.index);for(;++l<n.length;)c!==n[l]&&s.push(t.slice(c,n[l])),s.push("\\"),c=n[l];return s.push(t.slice(c)),s.join("")}function tm(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:s,gfmFootnoteCallString:a},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:c,gfmFootnoteCallString:l}};function t(f){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},f)}function r(){this.buffer()}function e(f){let g=this.resume(),m=this.stack[this.stack.length-1];m.label=g,m.identifier=ar(this.sliceSerialize(f)).toLowerCase()}function n(f){this.exit(f)}function s(f){this.enter({type:"footnoteReference",identifier:"",label:""},f)}function a(){this.buffer()}function l(f){let g=this.resume(),m=this.stack[this.stack.length-1];m.label=g,m.identifier=ar(this.sliceSerialize(f)).toLowerCase()}function c(f){this.exit(f)}}function rm(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,s,a,l){let c=lr(l),f=c.move("[^"),g=a.enter("footnoteReference"),m=a.enter("reference");return f+=c.move(aa(a,vc(n),{...c.current(),before:f,after:"]"})),m(),g(),f+=c.move("]"),f}function r(){return"["}function e(n,s,a,l){let c=lr(l),f=c.move("[^"),g=a.enter("footnoteDefinition"),m=a.enter("label");return f+=c.move(aa(a,vc(n),{...c.current(),before:f,after:"]"})),m(),f+=c.move("]:"+(n.children&&n.children.length>0?" ":"")),c.shift(4),f+=c.move($o(vo(n,a,c.current()),v)),g(),f;function v(A,k,S){return k?(S?"":" ")+A:A}}}function xo(t,r,e){let n=r.indexStack,s=t.children||[],a=[],l=-1,c=e.before;n.push(-1);let f=lr(e);for(;++l<s.length;){let g=s[l],m;if(n[n.length-1]=l,l+1<s.length){let v=r.handle.handlers[s[l+1].type];v&&v.peek&&(v=v.peek),m=v?v(s[l+1],t,r,{before:"",after:"",...f.current()}).charAt(0):""}else m=e.after;a.length>0&&(c==="\r"||c===`
|
|
31
|
+
`)&&g.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),c=" ",f=lr(e),f.move(a.join(""))),a.push(f.move(r.handle(g,t,r,{...f.current(),before:c,after:m}))),c=a[a.length-1].slice(-1)}return n.pop(),a.join("")}var nm={canContainEols:["delete"],enter:{strikethrough:x$},exit:{strikethrough:k$}},im={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:sm}};sm.peek=_$;function x$(t){this.enter({type:"delete",children:[]},t)}function k$(t){this.exit(t)}function sm(t,r,e,n){let s=lr(n),a=e.enter("emphasis"),l=s.move("~~");return l+=xo(t,e,{...s.current(),before:l,after:"~"}),l+=s.move("~~"),a(),l}function _$(){return"~"}$c.peek=A$;function $c(t,r,e){let n=t.value||"",s="`",a=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(n);)s+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<e.unsafe.length;){let l=e.unsafe[a],c=cs(l),f;if(!!l.atBreak)for(;f=c.exec(n);){let g=f.index;n.charCodeAt(g)===10&&n.charCodeAt(g-1)===13&&g--,n=n.slice(0,g)+" "+n.slice(f.index+1)}}return s+n+s}function A$(){return"`"}function om(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||S$,s=[],a=[],l=[],c=[],f=0,g=-1;for(;++g<t.length;){let S=[],I=[],q=-1;for(t[g].length>f&&(f=t[g].length);++q<t[g].length;){let j=E$(t[g][q]);if(r.alignDelimiters!==!1){let X=n(j);I[q]=X,(c[q]===void 0||X>c[q])&&(c[q]=X)}S.push(j)}a[g]=S,l[g]=I}let m=-1;if(typeof e=="object"&&"length"in e)for(;++m<f;)s[m]=am(e[m]);else{let S=am(e);for(;++m<f;)s[m]=S}m=-1;let v=[],A=[];for(;++m<f;){let S=s[m],I="",q="";S===99?(I=":",q=":"):S===108?I=":":S===114&&(q=":");let j=r.alignDelimiters===!1?1:Math.max(1,c[m]-I.length-q.length),X=I+"-".repeat(j)+q;r.alignDelimiters!==!1&&(j=I.length+j+q.length,j>c[m]&&(c[m]=j),A[m]=j),v[m]=X}a.splice(1,0,v),l.splice(1,0,A),g=-1;let k=[];for(;++g<a.length;){let S=a[g],I=l[g];m=-1;let q=[];for(;++m<f;){let j=S[m]||"",X="",le="";if(r.alignDelimiters!==!1){let be=c[m]-(I[m]||0),me=s[m];me===114?X=" ".repeat(be):me===99?be%2?(X=" ".repeat(be/2+.5),le=" ".repeat(be/2-.5)):(X=" ".repeat(be/2),le=X):le=" ".repeat(be)}r.delimiterStart!==!1&&!m&&q.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&j==="")&&(r.delimiterStart!==!1||m)&&q.push(" "),r.alignDelimiters!==!1&&q.push(X),q.push(j),r.alignDelimiters!==!1&&q.push(le),r.padding!==!1&&q.push(" "),(r.delimiterEnd!==!1||m!==f-1)&&q.push("|")}k.push(r.delimiterEnd===!1?q.join("").replace(/ +$/,""):q.join(""))}return k.join(`
|
|
32
|
+
`)}function E$(t){return t==null?"":String(t)}function S$(t){return t.length}function am(t){let r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}var kc={enter:{table:C$,tableData:lm,tableHeader:lm,tableRow:P$},exit:{codeText:D$,table:T$,tableData:xc,tableHeader:xc,tableRow:xc}};function C$(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function T$(t){this.exit(t),this.setData("inTable")}function P$(t){this.enter({type:"tableRow",children:[]},t)}function xc(t){this.exit(t)}function lm(t){this.enter({type:"tableCell",children:[]},t)}function D$(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,F$));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function F$(t,r){return r==="|"?r:t}function _c(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,s=r.stringLength,a=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
33
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:l,tableRow:c,tableCell:f,inlineCode:A}};function l(k,S,I,q){return g(m(k,I,q),k.align)}function c(k,S,I,q){let j=v(k,I,q),X=g([j]);return X.slice(0,X.indexOf(`
|
|
34
|
+
`))}function f(k,S,I,q){let j=I.enter("tableCell"),X=I.enter("phrasing"),le=xo(k,I,{...q,before:a,after:a});return X(),j(),le}function g(k,S){return om(k,{align:S,alignDelimiters:n,padding:e,stringLength:s})}function m(k,S,I){let q=k.children,j=-1,X=[],le=S.enter("table");for(;++j<q.length;)X[j]=v(q[j],S,I);return le(),X}function v(k,S,I){let q=k.children,j=-1,X=[],le=S.enter("tableRow");for(;++j<q.length;)X[j]=f(q[j],k,S,I);return le(),X}function A(k,S,I){let q=$c(k,S,I);return I.stack.includes("tableCell")&&(q=q.replace(/\|/g,"\\$&")),q}}function um(t){let r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function cm(t){let r=t.options.listItemIndent||"tab";if(r===1||r==="1")return"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function fm(t,r,e,n){let s=cm(e),a=e.bulletCurrent||um(e);r&&r.type==="list"&&r.ordered&&(a=(typeof r.start=="number"&&r.start>-1?r.start:1)+(e.options.incrementListMarker===!1?0:r.children.indexOf(t))+a);let l=a.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(l=Math.ceil(l/4)*4);let c=lr(n);c.move(a+" ".repeat(l-a.length)),c.shift(l);let f=e.enter("listItem"),g=$o(vo(t,e,c.current()),m);return f(),g;function m(v,A,k){return A?(k?"":" ".repeat(l))+v:(k?a:a+" ".repeat(l-a.length))+v}}var hm={exit:{taskListCheckValueChecked:pm,taskListCheckValueUnchecked:pm,paragraph:I$}},dm={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O$}};function pm(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function I$(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,s=e.children[0],a=-1,l;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&s&&s.type==="text"){for(;++a<n.length;){let c=n[a];if(c.type==="paragraph"){l=c;break}}l===e&&(s.value=s.value.slice(1),s.value.length===0?e.children.shift():e.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,e.position.start=Object.assign({},s.position.start)))}this.exit(t)}function O$(t,r,e,n){let s=t.children[0],a=typeof t.checked=="boolean"&&s&&s.type==="paragraph",l="["+(t.checked?"x":" ")+"] ",c=lr(n);a&&c.move(l);let f=fm(t,r,e,{...n,...c.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),f;function g(m){return m+l}}function Ac(){return[Jd,tm(),nm,kc,hm]}function Ec(t){return{extensions:[Qd,rm(),im,_c(t),dm]}}function Sc(t={}){let r=this.data();e("micromarkExtensions",Bd(t)),e("fromMarkdownExtensions",Ac()),e("toMarkdownExtensions",Ec(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var gm={tokenize:q$,concrete:!0},mm={tokenize:R$,partial:!0};function q$(t,r,e){let n=this,s=n.events[n.events.length-1],a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return c;function c(X){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),f(X)}function f(X){return X===36?(t.consume(X),l++,f):l<2?e(X):(t.exit("mathFlowFenceSequence"),ke(t,g,"whitespace")(X))}function g(X){return X===null||he(X)?v(X):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(X))}function m(X){return X===null||he(X)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),v(X)):X===36?e(X):(t.consume(X),m)}function v(X){return t.exit("mathFlowFence"),n.interrupt?r(X):t.attempt(mm,A,q)(X)}function A(X){return t.attempt({tokenize:j,partial:!0},q,k)(X)}function k(X){return(a?ke(t,S,"linePrefix",a+1):S)(X)}function S(X){return X===null?q(X):he(X)?t.attempt(mm,A,q)(X):(t.enter("mathFlowValue"),I(X))}function I(X){return X===null||he(X)?(t.exit("mathFlowValue"),S(X)):(t.consume(X),I)}function q(X){return t.exit("mathFlow"),r(X)}function j(X,le,be){let me=0;return ke(X,Y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Y($e){return X.enter("mathFlowFence"),X.enter("mathFlowFenceSequence"),pe($e)}function pe($e){return $e===36?(me++,X.consume($e),pe):me<l?be($e):(X.exit("mathFlowFenceSequence"),ke(X,xe,"whitespace")($e))}function xe($e){return $e===null||he($e)?(X.exit("mathFlowFence"),le($e)):be($e)}}}function R$(t,r,e){let n=this;return s;function s(l){return l===null?r(l):(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?e(l):r(l)}}function ym(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),{tokenize:n,resolve:N$,previous:L$};function n(s,a,l){let c=this,f=0,g,m;return v;function v(q){return s.enter("mathText"),s.enter("mathTextSequence"),A(q)}function A(q){return q===36?(s.consume(q),f++,A):f<2&&!e?l(q):(s.exit("mathTextSequence"),k(q))}function k(q){return q===null?l(q):q===36?(m=s.enter("mathTextSequence"),g=0,I(q)):q===32?(s.enter("space"),s.consume(q),s.exit("space"),k):he(q)?(s.enter("lineEnding"),s.consume(q),s.exit("lineEnding"),k):(s.enter("mathTextData"),S(q))}function S(q){return q===null||q===32||q===36||he(q)?(s.exit("mathTextData"),k(q)):(s.consume(q),S)}function I(q){return q===36?(s.consume(q),g++,I):g===f?(s.exit("mathTextSequence"),s.exit("mathText"),a(q)):(m.type="mathTextData",S(q))}}}function N$(t){let r=t.length-4,e=3,n,s;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(n=e;++n<r;)if(t[n][1].type==="mathTextData"){t[r][1].type="mathTextPadding",t[e][1].type="mathTextPadding",e+=2,r-=2;break}}for(n=e-1,r++;++n<=r;)s===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(s=n):(n===r||t[n][1].type==="lineEnding")&&(t[s][1].type="mathTextData",n!==s+2&&(t[s][1].end=t[n-1][1].end,t.splice(s+2,n-s-2),r-=n-s-2,n=s+2),s=void 0);return t}function L$(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Cc(t){return{flow:{[36]:gm},text:{[36]:ym(t)}}}function bm(t,r){let e=String(t),n=e.indexOf(r),s=n,a=0,l=0;if(typeof r!="string"||r.length!==1)throw new Error("Expected character");for(;n!==-1;)n===s?++a>l&&(l=a):a=1,s=n+1,n=e.indexOf(r,s);return l}function Tc(){return{enter:{mathFlow:t,mathFlowFenceMeta:r,mathText:a},exit:{mathFlow:s,mathFlowFence:n,mathFlowFenceMeta:e,mathFlowValue:c,mathText:l,mathTextData:c}};function t(f){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},f)}function r(){this.buffer()}function e(){let f=this.resume(),g=this.stack[this.stack.length-1];g.meta=f}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function s(f){let g=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.exit(f);m.value=g,m.data.hChildren[0].value=g,this.setData("mathFlowInside")}function a(f){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},f),this.buffer()}function l(f){let g=this.resume(),m=this.exit(f);m.value=g,m.data.hChildren[0].value=g}function c(f){this.config.enter.data.call(this,f),this.config.exit.data.call(this,f)}}function Pc(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),n.peek=s,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
35
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:r?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:e,inlineMath:n}};function e(a,l,c,f){let g=a.value||"",m=lr(f),v="$".repeat(Math.max(bm(g,"$")+1,2)),A=c.enter("mathFlow"),k=m.move(v);if(a.meta){let S=c.enter("mathFlowMeta");k+=m.move(aa(c,a.meta,{before:k,after:`
|
|
36
|
+
`,encode:["$"],...m.current()})),S()}return k+=m.move(`
|
|
37
|
+
`),g&&(k+=m.move(g+`
|
|
38
|
+
`)),k+=m.move(v),A(),k}function n(a,l,c){let f=a.value||"",g=1;for(r||g++;new RegExp("(^|[^$])"+"\\$".repeat(g)+"([^$]|$)").test(f);)g++;let m="$".repeat(g);/[^ \r\n]/.test(f)&&(/^[ \r\n]/.test(f)&&/[ \r\n]$/.test(f)||/^\$|\$$/.test(f))&&(f=" "+f+" ");let v=-1;for(;++v<c.unsafe.length;){let A=c.unsafe[v],k=cs(A),S;if(!!A.atBreak)for(;S=k.exec(f);){let I=S.index;f.codePointAt(I)===10&&f.codePointAt(I-1)===13&&I--,f=f.slice(0,I)+" "+f.slice(S.index+1)}}return m+f+m}function s(){return"$"}}function Dc(t={}){let r=this.data();e("micromarkExtensions",Cc(t)),e("fromMarkdownExtensions",Tc()),e("toMarkdownExtensions",Pc(t));function e(n,s){(r[n]?r[n]:r[n]=[]).push(s)}}var ko=(t,{lineOffset:r}={lineOffset:0})=>{let e=Vu().use(Fd).use(Sc).use(Dc).parse(t),n={},s=(c=>f=>{let{start:g,end:m}=f;return{start:{...g,line:g.line+c},end:{...m,line:m.line+c}}})(r);Js({processor:1}).use({"*:*":(c,f)=>(g,m,v)=>{g.children&&v(g.children,{...m})}}).use({":definition":(c,f)=>(g,m,v)=>{n[g.identifier]=g}}).run(e);let a=[];return Js({processor:1}).use({"*:*":(c,f)=>(g,m,v)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(g,null,2)),g.children&&v(g.children,{...m})}}).use({":root":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return oh({},v(A,m))},":math":(c,f)=>(g,m,v)=>{let{value:A,children:k,position:S,...I}=g;return lh({value:A,location:s(S)})},":inlineMath":(c,f)=>(g,m,v)=>{let{value:A,children:k,position:S,...I}=g;return ih(A)},":heading":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return dr({type:"block",level:g.depth,name:"head",location:s(k)},v(A,m))},":text":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return g.value},":list":(c,f)=>(g,m,v)=>{let A=m.listLevel||0,{children:k,position:S,...I}=g;return dr({type:"list",level:A+1,list:g.ordered?"ordered":"itemized"},v(k,{...m,listLevel:A+1,ordered:g.ordered}))},":listItem":(c,f)=>(g,m,v)=>{let A=m.listLevel||0,{children:k,position:S,checked:I,...q}=g,j={name:"item",type:"block",level:m.listLevel,location:s(S)};return I!=null&&(j.checked=I,j.config=[{name:"checked",value:I,type:"boolean"}]),dr(j,v(k,{...m,listLevel:A,ordered:g.ordered}))},":paragraph":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return dr({type:"para",location:s(k),text:"text",margin:""},v(A,{...m}))},":linkReference":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g,I=n[S.identifier],q=(I==null?void 0:I.url)||"";return vu({meta:q},v(A,{...m}))},":definition":(c,f)=>(g,m,v)=>null,":inlineCode":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return to({name:"C"},[g.value])},":strong":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return to({name:"B"},v(A,{...m}))},":emphasis":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return to({name:"I"},v(A,{...m}))},":link":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return vu({meta:g.url},v(A,{...m}))},":html":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return dr({type:"block",name:"Html",location:s(k)},[Ws(g.value)])},":code":(c,f)=>(g,m,v)=>{let{children:A,position:k,lang:S,meta:I,...q}=g;if(S==="mermaid"||S==="diagram")return dr({type:"block",name:"Mermaid",config:[],location:s(k)},[Ws(g.value)]);let j=[];return S&&j.push({name:"lang",value:S,type:"string"}),I&&j.push(...ku(I)),dr({type:"block",name:"code",config:j,location:s(k)},[Ws(g.value)])},":image":(c,f)=>(g,m,v)=>{let{title:A,alt:k,url:S,position:I,...q}=g,j=[],X=[ah(S,k)];return A&&X.push(sh([A])),dr({type:"block",name:"Image",config:j,location:s(I)},X)},":thematicBreak":(c,f)=>(g,m,v)=>null,":blockquote":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return dr({name:"nested",location:s(k)},v(A,{...m}))},":table":(c,f)=>(g,m,v)=>{let{children:A,position:k,align:S,...I}=g;return dr({name:"table",location:s(k),align:S},v(A,{...m,isHeaderUsed:0}))},":tableRow":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g,I=m.isHeaderUsed++,q={name:"row",location:s(k)};return I||(q.config=[{name:"header",value:!0,type:"boolean"}]),dr(q,v(A,{...m}))},":tableCell":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return dr({name:"cell",location:s(k)},v(A,{...m}))},":delete":(c,f)=>(g,m,v)=>{let{children:A,position:k,...S}=g;return nh(v(A,{...m}))},":break":(c,f)=>(g,m,v)=>null}).run(e).interator};var _o={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let s=e.content[0];if(s&&typeof s!="string"&&"location"in e&&"value"in s){let a=e.location.start.line;return{...e,content:ko(s,{lineOffset:a})}}return e}},toJSX:t=>fh},z$={Markdown:_o,markdown:_o},M$=_o;0&&(module.exports={PluginRegister,parseMd,plugin});
|
|
63
39
|
/*!
|
|
64
40
|
* Determine if an object is a Buffer
|
|
65
41
|
*
|