@podlite/markdown 0.0.42 → 0.0.43
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/lib/index.cjs +12 -12
- package/package.json +2 -2
package/lib/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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
|
|
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 Mm=["string","number","integer","boolean","null","object","array"],zm=new Set(Mm);function jm(t){return typeof t=="string"&&zm.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 Fs=class extends qn{render(r){return"finally"+super.render(r)}};Fs.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 Fs,this.code(n)),this._endBlockNode(Ps,Fs)}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 Ds=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=Ds(),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(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.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))}Fa.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 Fg(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=Fg;function Dg(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=Dg});var hf=ve(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.keywordCode=void 0;var Ig=Is(),Og=Ds(),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)}Da.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;Mg(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 Mg({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(),zg=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&&zg.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]",Me="[\\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 Me=O[Symbol.iterator](),Ke;!(se=(Ke=Me.next()).done)&&(re.push(Ke.value),!(Q&&re.length===Q));se=!0);}catch(yt){we=!0,Ce=yt}finally{try{!se&&Me.return&&Me.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 Fe(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,Me=O.lastIndexOf(be);Me<0&&(Me=0);for(var Ke=0;Ke<Me;++Ke)O.charCodeAt(Ke)>=128&&Fe("not-basic"),Q.push(O.charCodeAt(Ke));for(var yt=Me>0?Me+1:0;yt<re;){for(var Re=se,at=1,ut=k;;ut+=k){yt>=re&&Fe("invalid-input");var ot=bt(O.charCodeAt(yt++));(ot>=k||ot>Le((A-se)/at))&&Fe("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)&&Fe("overflow"),at*=ct}var Ye=Q.length+1;Ce=wt(se-Re,Ye,Re==0),Le(se/Ye)>A-we&&Fe("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,Me=!0,Ke=!1,yt=void 0;try{for(var Re=O[Symbol.iterator](),at;!(Me=(at=Re.next()).done);Me=!0){var ut=at.value;ut<128&&Q.push(Pe(ut))}}catch(qr){Ke=!0,yt=qr}finally{try{!Me&&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)&&Fe("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&&Fe("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),Me=parseInt(B.substr(Q+7,2),16);O+=String.fromCharCode((se&15)<<12|(Ce&63)<<6|Me&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 zt(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(),Me=m(Ce,2),Ke=Me[0],yt=Me[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]=zt(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(zt(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(zt(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(Me){B.error=B.error||"Host's domain name can not be converted to "+(O.iri?"Unicode":"ASCII")+" via punycode: "+Me}}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 ze={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:ze.domainHost,parse:ze.parse,serialize:ze.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 Mn(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={},Me=re.query.split("&"),Ke=0,yt=Me.length;Ke<yt;++Ke){var Re=Me[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 Me=String(se[we]),Ke=Me.lastIndexOf("@"),yt=Me.slice(0,Ke).replace(Tr,Mn).replace(Tr,s).replace(on,St),Re=Me.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,Mn).replace(Tr,s).replace(Ln,St)+"="+at[ot].replace(Tr,Mn).replace(Tr,s).replace(fs,St));return ut.length&&(re.query=ut.join("&")),re}},Fi=/^([^\:]+)\:(.*)/,An={scheme:"urn",parse:function(O,Q){var re=O.path&&O.path.match(Fi),se=O;if(re){var we=Q.scheme||se.scheme||"urn",Ce=re[1].toLowerCase(),Me=re[2],Ke=we+":"+(Q.nid||Ce),yt=vt[Ke];se.nid=Ce,se.nss=Me,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 Me=O,Ke=O.nss;return Me.path=(se||Q.nid)+":"+Ke,Me}},zn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Di={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(zn))&&(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[ze.scheme]=ze,vt[Xe.scheme]=Xe,vt[ei.scheme]=ei,vt[An.scheme]=An,vt[Di.scheme]=Di,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(),De=en(),ly=qs(),Pf=At();function uy(t){if(Df(t)&&(If(t),bl(t))){py(t);return}Ff(t,()=>Tf.topBoolOrEmptySchema(t))}gn.validateFunctionCode=uy;function Ff({gen:t,validateName:r,schema:e,schemaEnv:n,opts:s},a){s.code.es5?t.func(r,Ge._`${De.default.data}, ${De.default.valCxt}`,n.$async,()=>{t.code(Ge._`"use strict"; ${Cf(e,s)}`),fy(t,s),t.code(a)}):t.func(r,Ge._`${De.default.data}, ${cy(s)}`,n.$async,()=>t.code(Cf(e,s)).code(a))}function cy(t){return Ge._`{${De.default.dataPath}="", ${De.default.parentData}, ${De.default.parentDataProperty}, ${De.default.rootData}=${De.default.data}${t.dynamicRef?Ge._`, ${De.default.dynamicAnchors}={}`:Ge.nil}}={}`}function fy(t,r){t.if(De.default.valCxt,()=>{t.var(De.default.dataPath,Ge._`${De.default.valCxt}.${De.default.dataPath}`),t.var(De.default.parentData,Ge._`${De.default.valCxt}.${De.default.parentData}`),t.var(De.default.parentDataProperty,Ge._`${De.default.valCxt}.${De.default.parentDataProperty}`),t.var(De.default.rootData,Ge._`${De.default.valCxt}.${De.default.rootData}`),r.dynamicRef&&t.var(De.default.dynamicAnchors,Ge._`${De.default.valCxt}.${De.default.dynamicAnchors}`)},()=>{t.var(De.default.dataPath,Ge._`""`),t.var(De.default.parentData,Ge._`undefined`),t.var(De.default.parentDataProperty,Ge._`undefined`),t.var(De.default.rootData,De.default.data),r.dynamicRef&&t.var(De.default.dynamicAnchors,Ge._`{}`)})}function py(t){let{schema:r,opts:e,gen:n}=t;Ff(t,()=>{e.$comment&&r.$comment&&qf(t),yy(t),n.let(De.default.vErrors,null),n.let(De.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(Df(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 Df(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",De.default.errors);Of(t,a),n.var(r,Ge._`${a} === ${De.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._`${De.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._`${De.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._`${De.default.errors} === 0`,()=>r.return(De.default.data),()=>r.throw(Ge._`new ${s}(${De.default.vErrors})`)):(r.assign(Ge._`${n}.errors`,De.default.vErrors),a.unevaluated&&$y(t),r.return(Ge._`${De.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),!Mf(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 Mf(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}et.schemaHasRules=Mf;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(zf(t))}et.escapeFragment=Cy;function zf(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}et.escapeJsonPointer=zf;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 Fy=Ho(),Dy=Go(),Iy=Ds(),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(Fy.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&&Dy.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
3
|
|| (${l} == "string" && ${s} && ${s} == +${s})`).assign(c,Ie._`+${s}`);return;case"integer":n.elseIf(Ie._`${l} === "boolean" || ${s} === null
|
|
4
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},
|
|
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 My={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=zy(t);Iy.reportError(r,My)}Jt.reportTypeError=xl;function zy(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=Ds(),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 za=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 Ma=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=Ma;Wf.exports={ValidationError:La,MissingRefError:Ma}});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=za(),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 Fl=za(),r0=Ho(),Ms=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 zs=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 Fl.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 Ms.SchemaEnv({schema:{}});if(e=Ms.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 Ms.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):Ms.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{Ms.compileSchema.call(this,r)}finally{this.opts=e}}};Qt.default=zs;zs.ValidationError=Fl.ValidationError;zs.MissingRefError=Fl.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(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var v0={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Dl.default=v0});var op=ve(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.callRef=bi.getValidate=void 0;var $0=za(),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(),F0=fp(),D0={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:D0,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:F0.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(Ml=>{"use strict";Object.defineProperty(Ml,"__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}`)}};Ml.default=L0});var mp=ve(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var Bs=tn(),Us=Ve(),M0=Ir(),z0={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:z0,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)`;M0.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)}}};zl.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 _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([`
|
|
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(),Fb={message:"should NOT have additional properties",params:({params:t})=>an._`{additionalProperty: ${t.additionalProperty}}`},Db={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Fb,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=Db});var Dp=ve(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var Ib=Is(),Pp=tn(),iu=At(),Fp=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&&Fp.default.code(new Ib.default(a,Fp.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 Mb=At(),zb={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(Mb.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=zb});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 zp=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=Mp(n,"then"),a=Mp(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 Mp(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=Dp(),ow=Op(),lw=qp(),uw=Rp(),cw=Np(),fw=Lp(),pw=zp(),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 Fw=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){Fw(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 Mw(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)}Mw($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 zw(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:D(),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
9
|
`,"\r"],!1,!1),j=function(u){return u},X=/^[^\n\r]/,le=T([`
|
|
10
10
|
`,"\r"],!0,!1),be=`
|
|
11
11
|
`,me=K(`
|
|
12
|
-
`,!1),Y="\r",pe=K("\r",!1),xe=function(){return{type:"blankline"}},$e="=begin ",Le=K("=begin ",!1),Pe="=end ",
|
|
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}},
|
|
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(`
|
|
12
|
+
`,!1),Y="\r",pe=K("\r",!1),xe=function(){return{type:"blankline"}},$e="=begin ",Le=K("=begin ",!1),Pe="=end ",Fe=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 Fm(u)},rt=function(u){return u},V="=",U=K("=",!1),ur=z("text"),qt=function(){return D()},vt=function(){return{type:"para",value:D(),error:!0,location:L()}},St=function(u,p){return Ui([u,p])},Ct=function(u){return[u]},lt=",",Xt=K(",",!1),zt=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},ze=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[D()]},Mn=function(u,p,y){return{value:y,type:"array"}},ei=function(u,p,y){return{value:y,type:"array"}},Fi=function(u,p,y){return{value:y,type:"string"}},An="(",zn=K("(",!1),Di=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:D()}},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},Me=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 Dm(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:D(),config:y,location:L()}},$=/^[\-+=_|]/,cn=T(["-","+","=","_","|"],!1,!1),Cn=function(){return{type:"separator",text:D()}},Nr=function(){return r.isDelimited},Tn=function(){return{type:"separator",text:D()}},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:D(),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:D(),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:D(),type:"para",margin:"",content:[{type:"text",value:D()}],location:L()}},Fn=function(){return{empty:1}},Mt=/^[s]/,jn=T(["s"],!1,!1),ii=function(u){return{text:D(),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}},Fo=/^[A-Z]/,Do=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)},Mi=function(u,p,y,w,E){return{type:"block",content:E===""?[]:[{type:"verbatim",value:E}],name:y,margin:u,config:w,location:L()}},Dc=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=z("whitespace"),zi=/^[\r\n \t\f]/,ji=T(["\r",`
|
|
14
|
+
`," "," ","\f"],!1,!1),Ro=z("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 D(){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([z(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 z(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=zo(),u===e&&(u=jo(),u===e&&(u=Vo(),u===e&&(u=$s(),u===e&&(u=Mo(),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=Dn(),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=Dn(),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 Dt(){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=Dt();w!==e;)y.push(w),w=Dt();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 Fr(){var u,p,y,w;for(u=o,p=o,y=[],w=Dt();w!==e;)y.push(w),w=Dt();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=Dt();E!==e;)w.push(E),E=Dt();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(Fe)),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 Dn(){var u;return u=bs(),u===e&&(u=li(),u===e&&(u=wa(),u===e&&(u=Rc(),u===e&&(u=Nc())))),u}function Mr(){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,_=Dn(),_!==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=Mr(),E!==e)for(;E!==e;)w.push(E),E=Mr();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=Mr(),w!==e)for(;w!==e;)y.push(w),w=Mr();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=Mc(),p!==e){if(y=[],w=Dt(),w!==e)for(;w!==e;)y.push(w),w=Dt();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=Mc(),p!==e&&(ae=u,p=Ct(p)),u=p),u}function Mc(){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=Dt(),w!==e)for(;w!==e;)y.push(w),w=Dt();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=zt(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 zc(){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=zc(),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=zc(),p!==e&&(ae=u,p=Nn(p)),u=p),u}function _m(){var u,p,y,w,E,_,G,Z,F,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?(F=ye(),F!==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=ze(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,F,R,M,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?(F=jc(),F!==e?(R=ye(),R!==e?(t.charCodeAt(o)===125?(M=mt,o++):(M=e,d===0&&oe(_n)),M!==e?(ae=_,G=fr(w,E,F),_=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(F=o,R=va(),R!==e&&(ae=F,R=Tr(w,E,R)),F=R,F===e){if(F=o,R=o,M=[],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;)M.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 M=e;M!==e?R=t.substring(R,o):R=M,R!==e&&(ae=F,R=fs(w,E)),F=R}F!==e?(R=ye(),R!==e?(t.charCodeAt(o)===93?(M=on,o++):(M=e,d===0&&oe(Ln)),M!==e?(ae=_,G=Mn(w,E,F),_=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?(F=va(),F!==e?(R=ye(),R!==e?(t.charCodeAt(o)===62?(M=qe,o++):(M=e,d===0&&oe(Se)),M!==e?(ae=_,G=ei(w,E,F),_=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(F=o,R=[],M=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],M=ie):(o=M,M=e)):(o=M,M=e),M!==e)for(;M!==e;)R.push(M),M=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],M=ie):(o=M,M=e)):(o=M,M=e);else R=e;R!==e?F=t.substring(F,o):F=R,F!==e?(R=ye(),R!==e?(t.charCodeAt(o)===62?(M=qe,o++):(M=e,d===0&&oe(Se)),M!==e?(ae=_,G=Fi(w,E,F),_=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(zn)),G!==e)if(Z=ye(),Z!==e){if(F=o,R=va(),R!==e&&(ae=F,R=Di(w,E,R)),F=R,F===e){if(F=o,R=o,M=[],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(zn))),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;)M.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(zn))),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 M=e;M!==e?R=t.substring(R,o):R=M,R!==e&&(ae=F,R=Q(w,E)),F=R}F!==e?(R=ye(),R!==e?(t.charCodeAt(o)===41?(M=B,o++):(M=e,d===0&&oe(O)),M!==e?(ae=_,G=re(w,E,F),_=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,F,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=[],F=Bn(),F!==e)for(;F!==e;)Z.push(F),F=Bn();else Z=e;Z!==e?(F=ye(),F!==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=[],F=Bn(),F!==e)for(;F!==e;)Z.push(F),F=Bn();else Z=e;Z!==e?(F=ye(),F!==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=Me(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,F,R,M,ie,ce,de,st,Dr,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=[],F=o,R=o,M=ye(),M!==e?R=t.substring(R,o):R=M,R!==e?(M=o,ie=Vn(),ie===e&&(ie=o,ce=o,d++,de=Dn(),d--,de===e?ce=void 0:(o=ce,ce=e),ce===e&&(ce=o,d++,de=o,st=li(),st!==e?(Dr=Bt(),Dr!==e?(ae=o,jr=ti(p,w,_,R,Dr),jr?jr=void 0:jr=e,jr!==e?(st=[st,Dr,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=Mr(),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?M=t.substring(M,o):M=ie,M!==e?(ae=F,R=i(p,w,_,R,M),F=R):(o=F,F=e)):(o=F,F=e),F!==e)for(;F!==e;)Z.push(F),F=o,R=o,M=ye(),M!==e?R=t.substring(R,o):R=M,R!==e?(M=o,ie=Vn(),ie===e&&(ie=o,ce=o,d++,de=Dn(),d--,de===e?ce=void 0:(o=ce,ce=e),ce===e&&(ce=o,d++,de=o,st=li(),st!==e?(Dr=Bt(),Dr!==e?(ae=o,jr=ti(p,w,_,R,Dr),jr?jr=void 0:jr=e,jr!==e?(st=[st,Dr,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=Mr(),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?M=t.substring(M,o):M=ie,M!==e?(ae=F,R=i(p,w,_,R,M),F=R):(o=F,F=e)):(o=F,F=e);else Z=e;Z!==e?(F=o,R=ye(),R!==e?F=t.substring(F,o):F=R,F!==e?(R=o,M=li(),M!==e?(ie=Bt(),ie!==e?(ae=o,ce=ue(p,w,_,Z,F,ie),ce?ce=void 0:ce=e,ce!==e?(de=Vn(),de===e&&(de=null),de!==e?(ae=R,M=Rr(p,w,_,Z,F,ie),R=M):(o=R,R=e)):(o=R,R=e)):(o=R,R=e)):(o=R,R=e),R!==e?(ae=o,M=Kt(p,w,_,Z,F,R),M?M=void 0:M=e,M!==e?(ae=u,p=Jr(p,w,_,Z,F,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,F;if(u=o,p=o,d++,y=o,w=ye(),w!==e?(E=Dn(),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=Dt();w!==e;)y.push(w),w=Dt();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=[],F=Dt();F!==e;)Z.push(F),F=Dt();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=[],F=Dt();F!==e;)Z.push(F),F=Dt();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 zr(){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,F,R,M;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=zr(),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=zr(),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=[],F=o,R=o,d++,M=xr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=zr(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e),F!==e)for(;F!==e;)Z.push(F),F=o,R=o,d++,M=xr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=zr(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e);else Z=e;if(Z!==e?G=t.substring(G,o):G=Z,G!==e?(Z=o,F=xr(),F!==e&&(ae=Z,F=ps(y,w,G,F)),Z=F,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++,F=xr(),d--,F===e?Z=void 0:(o=Z,Z=e),Z!==e?(F=zr(),F!==e?(ae=_,G=fn(y,w,F),_=G):(o=_,_=e)):(o=_,_=e)):(o=_,_=e)),_!==e)for(;_!==e;){if(E.push(_),_=o,G=o,Z=[],F=o,R=o,d++,M=xr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=zr(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e),F!==e)for(;F!==e;)Z.push(F),F=o,R=o,d++,M=xr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=zr(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e);else Z=e;Z!==e?G=t.substring(G,o):G=Z,G!==e?(Z=o,F=xr(),F!==e&&(ae=Z,F=ps(y,w,G,F)),Z=F,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++,F=xr(),d--,F===e?Z=void 0:(o=Z,Z=e),Z!==e?(F=zr(),F!==e?(ae=_,G=fn(y,w,F),_=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=zr(),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=zr(),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=zr(),p!==e)for(;p!==e;)u.push(p),p=zr();else u=e}return u}function Sm(){var u,p,y,w,E,_,G,Z,F,R,M,ie,ce,de,st,Dr;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(F=o,R=[],M=Lr(),M===e&&(M=ws(),M===e&&(M=vs(),M===e&&(M=ks(),M===e&&(M=_s(),M===e&&(M=$s(),M===e&&(M=xs()))))));M!==e;)R.push(M),M=Lr(),M===e&&(M=ws(),M===e&&(M=vs(),M===e&&(M=ks(),M===e&&(M=_s(),M===e&&(M=$s(),M===e&&(M=xs()))))));R!==e&&(ae=F,R=ni(p,w,_,R)),F=R,F!==e?(ae=o,R=oa(p,w,_,F),R?R=void 0:R=e,R!==e?(M=o,ie=ye(),ie!==e?M=t.substring(M,o):M=ie,M!==e?(ie=o,ce=li(),ce!==e?(de=Bt(),de!==e?(ae=o,st=ue(p,w,_,F,M,de),st?st=void 0:st=e,st!==e?(Dr=Vn(),Dr===e&&(Dr=null),Dr!==e?(ae=ie,ce=Ao(p,w,_,F,M,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,_,F,M,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,F,R,M,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(F=o,R=[],M=Lr();M!==e;)R.push(M),M=Lr();if(R!==e)if(M=No(),M!==e){for(ie=[],ce=Lr();ce!==e;)ie.push(ce),ce=Lr();ie!==e?(ae=F,R=la(p,w,_,M),F=R):(o=F,F=e)}else o=F,F=e;else o=F,F=e;F!==e?(R=o,M=ye(),M!==e?R=t.substring(R,o):R=M,R!==e?(M=o,ie=li(),ie!==e?(ce=Bt(),ce!==e?(ae=o,de=ue(p,w,_,F,R,ce),de?de=void 0:de=e,de!==e?(st=Vn(),st===e&&(st=null),st!==e?(ae=M,ie=ua(p,w,_,F,R,ce),M=ie):(o=M,M=e)):(o=M,M=e)):(o=M,M=e)):(o=M,M=e),M!==e?(ae=o,ie=Kt(p,w,_,F,R,M),ie?ie=void 0:ie=e,ie!==e?(ae=u,p=Eo(p,w,_,F,R,M),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,F,R,M,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,F=Lr(),F===e&&(F=ws(),F===e&&(F=Lo(),F===e&&(F=vs(),F===e&&(F=ks(),F===e&&(F=Bo(),F===e&&(F=_s(),F===e&&(F=zo(),F===e&&(F=jo(),F===e&&(F=Vo(),F===e&&(F=$s(),F===e&&(F=Mo(),F===e&&(F=xs())))))))))))),F!==e&&(ae=Z,F=ca(p,w,_,F)),Z=F,Z===e){for(Z=o,F=o,R=[],M=Dt();M!==e;)R.push(M),M=Dt();if(R!==e?F=t.substring(F,o):F=R,F!==e){if(R=o,M=[],ie=Wt(),ie!==e)for(;ie!==e;)M.push(ie),ie=Wt();else M=e;M!==e?R=t.substring(R,o):R=M,R!==e?(ae=Z,F=fa(p,w,_,F,R),Z=F):(o=Z,Z=e)}else o=Z,Z=e}for(;Z!==e;)if(G.push(Z),Z=o,F=Lr(),F===e&&(F=ws(),F===e&&(F=Lo(),F===e&&(F=vs(),F===e&&(F=ks(),F===e&&(F=Bo(),F===e&&(F=_s(),F===e&&(F=zo(),F===e&&(F=jo(),F===e&&(F=Vo(),F===e&&(F=$s(),F===e&&(F=Mo(),F===e&&(F=xs())))))))))))),F!==e&&(ae=Z,F=ca(p,w,_,F)),Z=F,Z===e){for(Z=o,F=o,R=[],M=Dt();M!==e;)R.push(M),M=Dt();if(R!==e?F=t.substring(F,o):F=R,F!==e){if(R=o,M=[],ie=Wt(),ie!==e)for(;ie!==e;)M.push(ie),ie=Wt();else M=e;M!==e?R=t.substring(R,o):R=M,R!==e?(ae=Z,F=fa(p,w,_,F,R),Z=F):(o=Z,Z=e)}else o=Z,Z=e}G!==e?(Z=o,F=ye(),F!==e?Z=t.substring(Z,o):Z=F,Z!==e?(F=o,R=li(),R!==e?(M=Bt(),M!==e?(ae=o,ie=ue(p,w,_,G,Z,M),ie?ie=void 0:ie=e,ie!==e?(ce=Vn(),ce===e&&(ce=null),ce!==e?(ae=F,R=So(p,w,_,G,Z,M),F=R):(o=F,F=e)):(o=F,F=e)):(o=F,F=e)):(o=F,F=e),F!==e?(ae=o,R=Kt(p,w,_,G,Z,F),R?R=void 0:R=e,R!==e?(ae=u,p=Co(p,w,_,G,Z,F),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=Fr(),w!==e&&(ae=y,w=Fn()),y=w,y===e){if(y=[],Mt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn)),w!==e)for(;w!==e;)y.push(w),Mt.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=Fr(),w!==e&&(ae=y,w=Fn()),y=w,y===e){if(y=[],Mt.test(t.charAt(o))?(w=t.charAt(o),o++):(w=e,d===0&&oe(jn)),w!==e)for(;w!==e;)y.push(w),Mt.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,F,R,M,ie;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=o,d++,w=Dn(),d--,w===e?y=void 0:(o=y,y=e),y!==e)if(w=ui(),w!==e)if(E=ye(),E!==e)if(_=Fr(),_===e&&(_=null),_!==e)if(ae=o,G=Pr(p,w),G?G=void 0:G=e,G!==e){for(Z=o,F=[],R=o,M=o,d++,ie=Fr(),d--,ie===e?M=void 0:(o=M,M=e),M!==e?(ie=Wt(),ie!==e?(M=[M,ie],R=M):(o=R,R=e)):(o=R,R=e);R!==e;)F.push(R),R=o,M=o,d++,ie=Fr(),d--,ie===e?M=void 0:(o=M,M=e),M!==e?(ie=Wt(),ie!==e?(M=[M,ie],R=M):(o=R,R=e)):(o=R,R=e);F!==e?Z=t.substring(Z,o):Z=F,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 Mo(){var u,p,y,w,E,_,G,Z,F;return u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e?(y=o,d++,w=Dn(),d--,w===e?y=void 0:(o=y,y=e),y!==e?(w=ui(),w!==e?(E=ye(),E!==e?(_=Fr(),_===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?(F=No(),F!==e?(ae=u,p=si(p,w,F),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,F,R,M;if(u=o,p=o,y=ye(),y!==e?p=t.substring(p,o):p=y,p!==e)if(y=o,d++,w=Dn(),d--,w===e?y=void 0:(o=y,y=e),y!==e)if(w=ui(),w!==e)if(E=ye(),E!==e)if(_=Fr(),_===e&&(_=$m()),_!==e){for(G=o,Z=[],F=o,R=o,d++,M=Fr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=Wt(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e);F!==e;)Z.push(F),F=o,R=o,d++,M=Fr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=Wt(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=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,F,R,M;for(u=o,p=[],y=Mr();y!==e;)p.push(y),y=Mr();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(F=[],R=Mr(),R!==e)for(;R!==e;)F.push(R),R=Mr();else F=e;F!==e?(R=ye(),R!==e?(M=ai(),M!==e?(ae=E,_=Ce(p,F),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(F=[],R=Mr(),R!==e)for(;R!==e;)F.push(R),R=Mr();else F=e;F!==e?(R=ye(),R!==e?(M=ai(),M!==e?(ae=E,_=Ce(p,F),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=Me(p,w),u=p):(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;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,Fo.test(t.charAt(o))?(G=t.charAt(o),o++):(G=e,d===0&&oe(Do)),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,F,R,M,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,F=[],R=o,M=o,d++,ie=Fr(),d--,ie===e?M=void 0:(o=M,M=e),M!==e?(ie=Wt(),ie!==e?(M=[M,ie],R=M):(o=R,R=e)):(o=R,R=e);R!==e;)F.push(R),R=o,M=o,d++,ie=Fr(),d--,ie===e?M=void 0:(o=M,M=e),M!==e?(ie=Wt(),ie!==e?(M=[M,ie],R=M):(o=R,R=e)):(o=R,R=e);F!==e?Z=t.substring(Z,o):Z=F,Z!==e?(ae=u,p=Mi(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,F;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=Dc(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?(F=No(),F!==e?(ae=u,p=hn(p,y,w,_,F),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,F,R,M;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=[],F=o,R=o,d++,M=Fr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=Wt(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=e);F!==e;)Z.push(F),F=o,R=o,d++,M=Fr(),d--,M===e?R=void 0:(o=R,R=e),R!==e?(M=Wt(),M!==e?(R=[R,M],F=R):(o=F,F=e)):(o=F,F=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=[],zi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));p!==e;)u.push(p),zi.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=[],zi.test(t.charAt(o))?(p=t.charAt(o),o++):(p=e,d===0&&oe(ji));p!==e;)u.push(p),zi.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 Fm(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 Dm(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:zw}});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",Fe=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",zt=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},ze=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),Mn=function(h,b){return o([h,b])},ei=function(h){return[h]},Fi=/^[0-9]/,An=Vt([["0","9"]],!1,!1),zn="0d",Di=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)},Me="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=Mi(),b===e&&(b=er(),b===e&&(b=la())));b!==e;)h.push(b),b=ni(),b===e&&(b=Mi(),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=zi())))))))),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(Fe)),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(zt)))))))))))))))))))))),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=Mt(),C!==e)for(;C!==e;)b.push(C),C=Mt();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 Fn(){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 Mt(){var h,b,C,d,x,D,L,P;if(h=i,b=i,C=[],d=i,x=i,D=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?D=void 0:(i=D,D=e),D!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(D=[D,L],x=D):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===60?(D=Ee,i++):(D=e,$===0&&W(Oe)),D!==e?(L=Mt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,D,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,D=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?D=void 0:(i=D,D=e),D!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(D=[D,L],x=D):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===171?(D=qe,i++):(D=e,$===0&&W(Se)),D!==e?(L=Mt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,D,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=Fn(),d===e&&(d=hn()))),d!==e)for(;d!==e;)C.push(d),d=i,x=i,D=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?D=void 0:(i=D,D=e),D!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(D=[D,L],x=D):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===60?(D=Ee,i++):(D=e,$===0&&W(Oe)),D!==e?(L=Mt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,D,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,D=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?D=void 0:(i=D,D=e),D!==e?(t.length>i?(L=t.charAt(i),i++):(L=e,$===0&&W(_e)),L!==e?(D=[D,L],x=D):(i=x,x=e)):(i=x,x=e),x===e&&(x=null),x!==e?(t.charCodeAt(i)===171?(D=qe,i++):(D=e,$===0&&W(Se)),D!==e?(L=Mt(),L===e&&(L=null),L!==e?(t.charCodeAt(i)===187?(P=te,i++):(P=e,$===0&&W(fe)),P!==e?(x=[x,D,L,P],d=x):(i=d,d=e)):(i=d,d=e)):(i=d,d=e)):(i=d,d=e),d===e&&(d=Fn(),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,D,L,P,N,K,T,ee,H,z,J;if(h=i,b=_t(),b!==e)if(ue=i,C=ze(b),C?C=void 0:C=e,C!==e){if(d=[],x=i,D=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=Mt(),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=Mt(),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=Fn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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=Mt(),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=Mt(),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=Fn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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?D=t.substring(D,i):D=L,D!==e&&(ue=x,D=Et(b,D)),x=D,x!==e)for(;x!==e;){if(d.push(x),x=i,D=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=Mt(),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=Mt(),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=Fn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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=Mt(),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=Mt(),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=Fn(),P===e))){if(P=i,N=i,K=[],T=i,ee=i,$++,H=i,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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?D=t.substring(D,i):D=L,D!==e&&(ue=x,D=Et(b,D)),x=D}else d=e;d!==e?(x=Ne(),x!==e?(ue=i,D=nt(b,d,x),D?D=void 0:D=e,D!==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,D,L,P,N;if(h=i,b=i,C=[],d=i,x=i,D=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?D=void 0:(i=D,D=e),D!==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?(D=[D,L,P],x=D):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===60?(D=Ee,i++):(D=e,$===0&&W(Oe)),D!==e?(L=Pr(),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,D,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,D=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?D=void 0:(i=D,D=e),D!==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?(D=[D,L,P],x=D):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===171?(D=qe,i++):(D=e,$===0&&W(Se)),D!==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,D,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,$++,D=ii(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(D=i,$++,L=Ne(),$--,L===e?D=void 0:(i=D,D=e),D!==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,D,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,D=i,$++,t.charCodeAt(i)===60?(L=Ee,i++):(L=e,$===0&&W(Oe)),$--,L===e?D=void 0:(i=D,D=e),D!==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?(D=[D,L,P],x=D):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===60?(D=Ee,i++):(D=e,$===0&&W(Oe)),D!==e?(L=Pr(),L!==e?(t.charCodeAt(i)===62?(P=kt,i++):(P=e,$===0&&W(dt)),P!==e?(x=[x,D,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,D=i,$++,t.charCodeAt(i)===171?(L=qe,i++):(L=e,$===0&&W(Se)),$--,L===e?D=void 0:(i=D,D=e),D!==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?(D=[D,L,P],x=D):(i=x,x=e)):(i=x,x=e)):(i=x,x=e),x!==e?(t.charCodeAt(i)===171?(D=qe,i++):(D=e,$===0&&W(Se)),D!==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,D,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,$++,D=ii(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(D=i,$++,L=Ne(),$--,L===e?D=void 0:(i=D,D=e),D!==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,D,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,D,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,D=ii(),D!==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,D=fr(b,d,L),x=D):(i=x,x=e)}else i=x,x=e;x===e&&(x=null),x!==e?(D=Ne(),D!==e?(ue=i,L=Xn(b,d,x,D),L?L=void 0:L=e,L!==e?(ue=h,b=Yn(b,d,x,D),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,D;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,$++,D=Ne(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(t.length>i?(D=t.charAt(i),i++):(D=e,$===0&&W(_e)),D!==e?(d=[d,x,D],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,$++,D=Ne(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(t.length>i?(D=t.charAt(i),i++):(D=e,$===0&&W(_e)),D!==e?(d=[d,x,D],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,D;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=[],D=pn();D!==e;)x.push(D),D=pn();x!==e?(D=si(),D!==e?(ue=h,b=Mn(b,D),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=[],Fi.test(t.charAt(i))?(C=t.charAt(i),i++):(C=e,$===0&&W(An)),C!==e)for(;C!==e;)b.push(C),Fi.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)===zn?(b=zn,i+=2):(b=e,$===0&&W(Di)),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 Fo(){var h,b,C,d,x,D;if(h=i,b=i,C=i,t.substr(i,2)===Me?(d=Me,i+=2):(d=e,$===0&&W(Ke)),d!==e){if(x=[],yt.test(t.charAt(i))?(D=t.charAt(i),i++):(D=e,$===0&&W(Re)),D!==e)for(;D!==e;)x.push(D),yt.test(t.charAt(i))?(D=t.charAt(i),i++):(D=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 Do(){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,D;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))?(D=t.charAt(i),i++):(D=e,$===0&&W(Nt)),D!==e)for(;D!==e;)x.push(D),Or.test(t.charAt(i))?(D=t.charAt(i),i++):(D=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=Fo(),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=Do(),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,D;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=[],D=pn();D!==e;)x.push(D),D=pn();x!==e?(D=ya(),D!==e?(ue=h,b=Mn(b,D),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 Mi(){var h,b,C,d,x,D,L,P,N,K,T,ee,H,z,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=Mi(),x===e)){if(x=i,D=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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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?D=t.substring(D,i):D=L,D!==e&&(ue=x,D=Et(b,D)),x=D}for(;x!==e;)if(d.push(x),x=ni(),x===e&&(x=Mi(),x===e)){if(x=i,D=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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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,z=Ne(),z!==e?(ue=i,J=Xe(b,z),J?J=void 0:J=e,J!==e?(z=[z,J],H=z):(i=H,H=e)):(i=H,H=e),$--,H===e?ee=void 0:(i=ee,ee=e),ee!==e?(H=i,$++,z=_t(),$--,z===e?H=void 0:(i=H,H=e),H!==e?(z=i,$++,J=ft(),$--,J===e?z=void 0:(i=z,z=e),z!==e?(t.length>i?(J=t.charAt(i),i++):(J=e,$===0&&W(_e)),J!==e?(ee=[ee,H,z,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?D=t.substring(D,i):D=L,D!==e&&(ue=x,D=Et(b,D)),x=D}d!==e?(x=Ne(),x!==e?(ue=i,D=Kr(b,d,x),D?D=void 0:D=e,D!==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 Dc(){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,D,L;if(h=i,b=i,C=[],d=i,t.charCodeAt(i)===60?(x=Ee,i++):(x=e,$===0&&W(Oe)),x!==e?(D=er(),D!==e?(t.charCodeAt(i)===62?(L=kt,i++):(L=e,$===0&&W(dt)),L!==e?(x=[x,D,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?(D=er(),D!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,$===0&&W(fe)),L!==e?(x=[x,D,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?(D=er(),D!==e?(t.charCodeAt(i)===62?(L=kt,i++):(L=e,$===0&&W(dt)),L!==e?(x=[x,D,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?(D=er(),D!==e?(t.charCodeAt(i)===187?(L=te,i++):(L=e,$===0&&W(fe)),L!==e?(x=[x,D,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,D,L,P;if(h=i,b=i,C=[],d=i,x=i,$++,D=Ne(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(D=i,$++,L=_t(),$--,L===e?D=void 0:(i=D,D=e),D!==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,D,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,$++,D=Ne(),$--,D===e?x=void 0:(i=x,x=e),x!==e?(D=i,$++,L=_t(),$--,L===e?D=void 0:(i=D,D=e),D!==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,D,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,D,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?(D=Ne(),D!==e?(ue=i,L=$r(b,d,x,D),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,D),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,D,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?(D=Ne(),D!==e?(ue=i,L=$r(b,d,x,D),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,D),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,D,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?(D=Ne(),D!==e?(ue=i,L=$r(b,d,x,D),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,D),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 zi(){var h,b,C,d,x,D,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?(D=Ne(),D!==e?(ue=i,L=$r(b,d,x,D),L?L=void 0:L=e,L!==e?(ue=h,b=un(b,d,x,D),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,D,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(D=i,L=ii(),L!==e){for(P=[],N=si();N!==e;)P.push(N),N=si();P!==e?(ue=D,L=qr(b,d,x,P),D=L):(i=D,D=e)}else i=D,D=e;D===e&&(D=null),D!==e?(L=Ne(),L!==e?(ue=i,P=Ii(b,d,x,D,L),P?P=void 0:P=e,P!==e?(ue=h,b=ti(b,d,x,D,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,D,L,P,N;if(h=i,b=i,t.charCodeAt(i)===88?(C=Xt,i++):(C=e,$===0&&W(zt)),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(D=i,L=ii(),L!==e){for(P=[],N=si();N!==e;)P.push(N),N=si();P!==e?(ue=D,L=qr(b,d,x,P),D=L):(i=D,D=e)}else i=D,D=e;D===e&&(D=null),D!==e?(L=Ne(),L!==e?(ue=i,P=Ii(b,d,x,D,L),P?P=void 0:P=e,P!==e?(ue=h,b=ti(b,d,x,D,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 Fu=ve((a_,zh)=>{zh.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:()=>M$,default:()=>z$,parseMd:()=>ko,plugin:()=>_o});module.exports=Lm(j$);var Lh=Vr(Qp()),n1=Vr(eh());var Dw=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=Dw(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 Mh=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
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
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
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=`
|
|
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)},Fh=t=>Ph(t.split(/\s*\|\s*/).map(r=>r.trim())),Dh=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"?Fh(t):e==="plus"?Dh(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"?Fh:e==="plus"?Dh: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 Fe=no(Y),ge=Le?Au(Fe):Eu(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 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=Mh.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(Fu(),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(Fu(),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?Du(t):""}function Du(t){return Xh(t&&t.line)+":"+Xh(t&&t.column)}function Zh(t){return Du(t&&t.start)+"-"+Du(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?(zu("data",n),e[I]=q,a):sd.call(e,I)&&e[I]||null:I?(zu("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(zu("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 Mu("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),Mu("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),Mu("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 Mu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function zu(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 Ft(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?(Ft(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]);Ft(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 Ft(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++;Ft(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,Ft(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(Fe){return Y.enter("lineEnding"),Y.consume(Fe),Y.exit("lineEnding"),Pe}function Pe(Fe){return $e.parser.lazy[$e.now().line]?xe(Fe):pe(Fe)}}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,Fe,"whitespace")(ge))}function Fe(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,F1(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),Ft(t,s,e-s+1,c))}}return!g}function F1(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]),Ft(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},D1={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(D1,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:M1};function M1(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:z1};function z1(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"},Ft(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,Fe)(U):U===null||he(U)?Fe(U):(t.consume(U),Pe)}function Fe(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),Fe):he(V)?(c=Pe,Ze(V)):Ue(V)?(t.consume(V),Pe):rt(V)}function Fe(V){return V===45||V===46||V===58||V===95||Ht(V)?(t.consume(V),Fe):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]]),Ft(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,Fe()}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,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++)),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(zt){let yr=zt!==null&<[zt],Sr=zt!==null&<.null,br=[...Array.isArray(yr)?yr:yr?[yr]:[],...Array.isArray(Sr)?Sr:Sr?[Sr]:[]];return qt(br)(zt)}}function qt(lt){return wt=lt,rt=0,lt.length===0?Ze:vt(lt[rt])}function vt(lt){return Xt;function Xt(zt){return U=Pe(),V=lt,lt.partial||(m.currentConstruct=lt),lt.name&&m.parser.constructs.disable.null.includes(lt.name)?Ct(zt):lt.tokenize.call(Te?Object.assign(Object.create(m),Te):m,g,St,Ct)(zt)}}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&&Ft(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,Fe()}}function Fe(){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=`
|
|
20
20
|
`;break}case-3:{l=`\r
|
|
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:`
|
|
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=Fd({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Ee),autolinkProtocol:Fe,autolinkEmail:Fe,atxHeading:f(kn),blockQuote:f(Sr),characterEscape:Fe,characterReference:Fe,codeFenced:f(br),codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:f(br,g),codeText:f(Rt,g),codeTextData:Fe,data:Fe,codeFlowValue:Fe,definition:f($n),definitionDestinationString:g,definitionLabelString:g,definitionTitleString:g,emphasis:f(xn),hardBreakEscape:f(_e),hardBreakTrailing:f(_e),htmlFlow:f(Nn,g),htmlFlowData:Fe,htmlText:f(Nn,g),htmlTextData:Fe,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:zt,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],ze=[],Xe=[],Et={stack:Ae,tokenStack:ze,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(ze.length>0){let $t=ze[ze.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 ze=fe-1,Xe=-1,Et=!1,nt,$t,Tt,Hr;for(;++ze<=Ae;){let mt=te[ze];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=ze),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=ze;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||ze,0,["exit",nt,mt[2]]),ze++,Ae++}mt[1].type==="listItemPrefix"&&(nt={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start)},te.splice(ze,0,["enter",nt,mt[2]]),ze++,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(ze){m.call(this,te(ze),ze),fe&&fe.call(this,ze)}}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(),ze=this.tokenStack.pop();if(ze)ze[0].type!==te.type&&(fe?fe.call(this,te,ze[0]):(ze[1]||Pd).call(this,te,ze[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 Fe(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)&&(Fe.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"),ze;Ae?(ze=yo(fe,Ae==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):ze=ls(fe);let Xe=this.stack.pop();Xe.value+=ze,Xe.position.end=c(te.end)}function zt(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 Fd(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?Fd(t,n):Fv(t,n)}return t}function Fv(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 Dd=sc;var Dv={tokenize:Rv,partial:!0},Od={tokenize:Nv,partial:!0},qd={tokenize:Lv,partial:!0},us={tokenize:zv,partial:!0},Rd={tokenize:Mv,partial:!0},Nd={tokenize:Ov,previous:zd},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||!zd(n.previous)||uc(n.events)?e(l):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Dv,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):Md(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 Mv(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 zv(t,r,e){return n;function n(a){return t.consume(a),s}function s(a){return Md(a)?(t.consume(a),s):oc(a)?r(a):e(a)}}function Md(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 zd(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]];Ft(v,v.length,0,Zn(l.parser.constructs.insideSpan.null,a.slice(f+1,c),l)),Ft(v,v.length,0,[["exit",m,l],["enter",a[c][1],l],["exit",a[c][1],l],["exit",g,l]]),Ft(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?Fe:Pe)}function Fe(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:`
|
|
22
22
|
`,after:`
|
|
23
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
24
|
`.repeat(1+A);if(A===!1)return`
|
|
@@ -29,13 +29,13 @@ var Im=Object.create;var ka=Object.defineProperty;var Om=Object.getOwnPropertyDe
|
|
|
29
29
|
|
|
30
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
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:
|
|
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:F$,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 F$(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,D$));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function D$(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
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
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
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
36
|
`,encode:["$"],...m.current()})),S()}return k+=m.move(`
|
|
37
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
|
|
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 Fc(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(Dd).use(Sc).use(Fc).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},M$={Markdown:_o,markdown:_o},z$=_o;0&&(module.exports={PluginRegister,parseMd,plugin});
|
|
39
39
|
/*!
|
|
40
40
|
* Determine if an object is a Buffer
|
|
41
41
|
*
|