@podlite/markdown 0.0.3 → 0.0.5

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.js CHANGED
@@ -1,22 +1,22 @@
1
- var Hh=Object.create;var gs=Object.defineProperty;var Gh=Object.getOwnPropertyDescriptor;var Kh=Object.getOwnPropertyNames;var Wh=Object.getPrototypeOf,Zh=Object.prototype.hasOwnProperty;var re=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),qc=(t,r)=>{for(var e in r)gs(t,e,{get:r[e],enumerable:!0})},Dc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Kh(r))!Zh.call(t,i)&&i!==e&&gs(t,i,{get:()=>r[i],enumerable:!(n=Gh(r,i))||n.enumerable});return t};var Cr=(t,r,e)=>(e=t!=null?Hh(Wh(t)):{},Dc(r||!t||!t.__esModule?gs(e,"default",{value:t,enumerable:!0}):e,t)),Jh=t=>Dc(gs({},"__esModule",{value:!0}),t);var Rc=re((l_,Nc)=>{Nc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Gc=re((u_,Hc)=>{"use strict";var ys=Object.prototype.hasOwnProperty,Uc=Object.prototype.toString,jc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Bc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Uc.call(r)==="[object Array]"},Mc=function(r){if(!r||Uc.call(r)!=="[object Object]")return!1;var e=ys.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ys.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var i;for(i in r);return typeof i>"u"||ys.call(r,i)},zc=function(r,e){jc&&e.name==="__proto__"?jc(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},Vc=function(r,e){if(e==="__proto__")if(ys.call(r,e)){if(Lc)return Lc(r,e).value}else return;return r[e]};Hc.exports=function t(){var r,e,n,i,o,a,u=arguments[0],c=1,m=arguments.length,p=!1;for(typeof u=="boolean"&&(p=u,u=arguments[1]||{},c=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});c<m;++c)if(r=arguments[c],r!=null)for(e in r)n=Vc(u,e),i=Vc(r,e),u!==i&&(p&&i&&(Mc(i)||(o=Bc(i)))?(o?(o=!1,a=n&&Bc(n)?n:[]):a=n&&Mc(n)?n:{},zc(u,{name:e,newValue:t(p,a,i)})):typeof i<"u"&&zc(u,{name:e,newValue:i}));return u}});var Zc=re((p_,Wc)=>{Wc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var So=re(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.makeRulesArray=lr.makeRule=lr.is=lr.makePlug=void 0;var Ab=function(t){if(t==="*:*"||t==="*")return{};if(t==="<>")return{type:"fcode"};var r=t.split(":"),e=r[0],n=r[1];if(e&&n)return{name:e,type:n};if(!e)return{type:n};if(!n){var i=e.match(/(.+)\<\>/);return i?{type:"fcode",name:i[1]}:{name:e,type:"block"}}return{name:e,type:n}},Sb=function(t){var r=Ab(t),e=r.name,n=r.type;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};lr.makePlug=Sb;function hp(t,r){function e(i){for(var o in i)if(i.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[pod6] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[pod6] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}lr.is=hp;var Pb=function(t,r){return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:hp(t,i)}};lr.makeRule=Pb;var Tb=function(t,r){if(t instanceof Array)return t.reduce(function(i,o){return i.push.apply(i,(0,lr.makeRulesArray)(o)),i},[]);if(t instanceof Object){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push((0,lr.makeRule)((0,lr.makePlug)(n),t[n]));return e}return[(0,lr.makeRule)((0,lr.makePlug)(t),r)]};lr.makeRulesArray=Tb});var Fl=re(Po=>{"use strict";var Ol=Po&&Po.__assign||function(){return Ol=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ol.apply(this,arguments)};Object.defineProperty(Po,"__esModule",{value:!0});function gp(t){return Array.isArray(t)?t.reduce(function(r,e){return Array.isArray(e)?r.concat(gp(e)):r.concat(e)},[]):t}function Ib(t){function r(e,n){if(e instanceof Array)return gp(e.map(function(p){return r(p,n)})).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);var i=t.slice();i.reverse();var o=i.findIndex(function(p){return p.isFor(e)});if(o!==-1){var a=i.slice(o+1),u=a.findIndex(function(p){return p.isFor(e)}),c=function(p,b,v){if(p===void 0&&(p=e),b===void 0&&(b=n),v===void 0&&(v=r),u!==-1)a[u].fn(p,b,v,function(){});else return};return typeof i[o].fn!="function"&&console.warn("[pod6] bad fn for "+JSON.stringify(e,null,2)),i[o].fn(e,n,r,c)}else{var m=Ol({},e);if(m.hasOwnProperty("content"))return r(m.content,n)}}return r.rules=t,r}Po.default=Ib});var ql=re(xr=>{"use strict";var Ob=xr&&xr.__extends||function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fb=xr&&xr.__createBinding||(Object.create?function(t,r,e,n){n===void 0&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}),qb=xr&&xr.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),Db=xr&&xr.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&Fb(r,t,e);return qb(r,t),r},Nb=xr&&xr.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};Object.defineProperty(xr,"__esModule",{value:!0});var Rb=Db(require("events")),jb=function(t){Ob(r,t);function r(e){var n=t.call(this)||this;return n.endWrite=function(){n.emit("end")},n.INDEXTERMS=[],n.FOOTNOTES=[],n.output=e,n.ons=[],n.emit("ready"),n}return r.prototype.escape=function(e){return e},r.prototype.write=function(e){return this.writeRaw(this.escape(e))},r.prototype.writeRaw=function(e){typeof this.output=="function"?this.output(e):console.log(e)},r.prototype.getStr=function(){var e=this;return{errors:this.errors,toString:function(){return e.out},valueOf:function(){return e.out}}},r.prototype.startWrite=function(e){var n=this;(this.ons||[]).map(function(i){return t.prototype.on.apply(n,i)}),this.emit("start",e),this.addListener("errors",function(i){n.errors=n.errors||[],n.errors.push(i)})},r.prototype.on=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.ons=this.ons||[],this.ons.unshift(Nb([],e,!0)),this},r.prototype._add_nesting=function(e){},r.prototype._remove_nesting=function(e){},r.prototype.addLevel=function(e){this._add_nesting(e)},r.prototype.removeLevel=function(e){this._remove_nesting(e)},r}(Rb.EventEmitter);xr.default=jb});var bp=re((eP,yp)=>{"use strict";function Lb(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function mi(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,mi)}Lb(mi,Error);mi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,v;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,v=1;b<p.length;b++)p[b-1]!==p[b]&&(p[v]=p[b],v++);p.length=v}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function Bb(t,r){r=r!==void 0?r:{};var e={},n={Document:Ac},i=Ac,o=function(l){return l},a=function(){return!!r.podMode},u=function(l){return l},c=Th(),m=function(){return{text:Or(),type:"ambient",location:or()}},p=/^[ \xA0\u2001\t\f\u2008]/,b=yt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),v=/^[ \t\f]/,w=yt([" "," ","\f"],!1,!1),_=/^[\n\r]/,T=yt([`
2
- `,"\r"],!1,!1),N=function(l){return l},D=/^[^\n\r]/,Y=yt([`
1
+ var dh=Object.create;var is=Object.defineProperty;var mh=Object.getOwnPropertyDescriptor;var hh=Object.getOwnPropertyNames;var gh=Object.getPrototypeOf,yh=Object.prototype.hasOwnProperty;var bh=(t,r)=>()=>(t&&(r=t(t=0)),r);var ce=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),xa=(t,r)=>{for(var e in r)is(t,e,{get:r[e],enumerable:!0})},hc=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of hh(r))!yh.call(t,i)&&i!==e&&is(t,i,{get:()=>r[i],enumerable:!(n=mh(r,i))||n.enumerable});return t};var Hr=(t,r,e)=>(e=t!=null?dh(gh(t)):{},hc(r||!t||!t.__esModule?is(e,"default",{value:t,enumerable:!0}):e,t)),gc=t=>hc(is({},"__esModule",{value:!0}),t);var Ca=ce(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.getRules=Ri.isJSONType=void 0;var $h=["string","number","integer","boolean","null","object","array"],wh=new Set($h);function vh(t){return typeof t=="string"&&wh.has(t)}Ri.isJSONType=vh;function kh(){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:{}}}Ri.getRules=kh});var Ea=ce(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.shouldUseRule=Dn.shouldUseGroup=Dn.schemaHasRulesForType=void 0;function xh({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&yc(t,n)}Dn.schemaHasRulesForType=xh;function yc(t,r){return r.rules.some(e=>bc(t,e))}Dn.shouldUseGroup=yc;function bc(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))}Dn.shouldUseRule=bc});var os=ce(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.getProperty=Ze.safeStringify=Ze.stringify=Ze.strConcat=Ze.addCodeArg=Ze.str=Ze._=Ze.nil=Ze._Code=Ze.Name=Ze.IDENTIFIER=Ze._CodeOrName=void 0;var po=class{};Ze._CodeOrName=po;Ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ni=class extends po{constructor(r){if(super(),!Ze.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}}};Ze.Name=ni;var ln=class extends po{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 ni&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Ze._Code=ln;Ze.nil=new ln("");function $c(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Aa(e,r[n]),e.push(t[++n]);return new ln(e)}Ze._=$c;var _a=new ln("+");function wc(t,...r){let e=[mo(t[0])],n=0;for(;n<r.length;)e.push(_a),Aa(e,r[n]),e.push(_a,mo(t[++n]));return Ch(e),new ln(e)}Ze.str=wc;function Aa(t,r){r instanceof ln?t.push(...r._items):r instanceof ni?t.push(r):t.push(Ah(r))}Ze.addCodeArg=Aa;function Ch(t){let r=1;for(;r<t.length-1;){if(t[r]===_a){let e=Eh(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function Eh(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof ni||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 ni))return`"${t}${r.slice(1)}`}function _h(t,r){return r.emptyStr()?t:t.emptyStr()?r:wc`${t}${r}`}Ze.strConcat=_h;function Ah(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:mo(Array.isArray(t)?t.join(","):t)}function Sh(t){return new ln(mo(t))}Ze.stringify=Sh;function mo(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ze.safeStringify=mo;function Th(t){return typeof t=="string"&&Ze.IDENTIFIER.test(t)?new ln(`.${t}`):$c`[${t}]`}Ze.getProperty=Th});var Ia=ce(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.ValueScope=ir.ValueScopeName=ir.Scope=ir.varKinds=ir.UsedValueState=void 0;var dr=os(),Sa=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},Ta;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ta=ir.UsedValueState||(ir.UsedValueState={}));ir.varKinds={const:new dr.Name("const"),let:new dr.Name("let"),var:new dr.Name("var")};var ss=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof dr.Name?r:this.name(r)}name(r){return new dr.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}}};ir.Scope=ss;var as=class extends dr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=dr._`.${new dr.Name(e)}[${n}]`}};ir.ValueScopeName=as;var Ph=dr._`\n`,Pa=class extends ss{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Ph:dr.nil}}get(){return this._scope}name(r){return new as(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 i=this.toName(r),{prefix:o}=i,a=(n=e.key)!==null&&n!==void 0?n:e.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),m=c.length;return c[m]=e.ref,i.setValue(e,{property:o,itemIndex:m}),i}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 dr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},e,n)}_reduceValues(r,e,n={},i){let o=dr.nil;for(let a in r){let u=r[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(m=>{if(c.has(m))return;c.set(m,Ta.Started);let p=e(m);if(p){let b=this.opts.es5?ir.varKinds.var:ir.varKinds.const;o=dr._`${o}${b} ${m} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(m))o=dr._`${o}${p}${this.opts._n}`;else throw new Sa(m);c.set(m,Ta.Completed)})}return o}};ir.ValueScope=Pa});var Te=ce(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.or=Pe.and=Pe.not=Pe.CodeGen=Pe.operators=Pe.varKinds=Pe.ValueScopeName=Pe.ValueScope=Pe.Scope=Pe.Name=Pe.stringify=Pe.getProperty=Pe.nil=Pe.strConcat=Pe.str=Pe._=void 0;var De=os(),Gr=Ia(),si=os();Object.defineProperty(Pe,"_",{enumerable:!0,get:function(){return si._}});Object.defineProperty(Pe,"str",{enumerable:!0,get:function(){return si.str}});Object.defineProperty(Pe,"strConcat",{enumerable:!0,get:function(){return si.strConcat}});Object.defineProperty(Pe,"nil",{enumerable:!0,get:function(){return si.nil}});Object.defineProperty(Pe,"getProperty",{enumerable:!0,get:function(){return si.getProperty}});Object.defineProperty(Pe,"stringify",{enumerable:!0,get:function(){return si.stringify}});Object.defineProperty(Pe,"Name",{enumerable:!0,get:function(){return si.Name}});var fs=Ia();Object.defineProperty(Pe,"Scope",{enumerable:!0,get:function(){return fs.Scope}});Object.defineProperty(Pe,"ValueScope",{enumerable:!0,get:function(){return fs.ValueScope}});Object.defineProperty(Pe,"ValueScopeName",{enumerable:!0,get:function(){return fs.ValueScopeName}});Object.defineProperty(Pe,"varKinds",{enumerable:!0,get:function(){return fs.varKinds}});Pe.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Cn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Fa=class extends Cn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Gr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=ji(this.rhs,r,e)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},ls=class extends Cn{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 De.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=ji(this.rhs,r,e),this}get names(){let r=this.lhs instanceof De.Name?{}:{...this.lhs.names};return cs(r,this.rhs)}},Oa=class extends ls{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},qa=class extends Cn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},Da=class extends Cn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},Na=class extends Cn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Ra=class extends Cn{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=ji(this.code,r,e),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},ho=class extends Cn{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,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(r,e)||(Ih(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>oi(r,e.names),{})}},En=class extends ho{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},La=class extends ho{},Li=class extends En{};Li.kind="else";var Kr=class extends En{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 Li(n):n}if(e)return r===!1?e instanceof Kr?e:e.nodes:this.nodes.length?this:new Kr(vc(r),e instanceof Kr?[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=ji(this.condition,r,e),this}get names(){let r=super.names;return cs(r,this.condition),this.else&&oi(r,this.else.names),r}};Kr.kind="if";var ii=class extends En{};ii.kind="for";var ja=class extends ii{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=ji(this.iteration,r,e),this}get names(){return oi(super.names,this.iteration.names)}},Ba=class extends ii{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Gr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${e} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=cs(super.names,this.from);return cs(r,this.to)}},us=class extends ii{constructor(r,e,n,i){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=i}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=ji(this.iterable,r,e),this}get names(){return oi(super.names,this.iterable.names)}},go=class extends En{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)}};go.kind="func";var yo=class extends ho{render(r){return"return "+super.render(r)}};yo.kind="return";var za=class extends En{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,i;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(i=this.finally)===null||i===void 0||i.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&oi(r,this.catch.names),this.finally&&oi(r,this.finally.names),r}},bo=class extends En{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};bo.kind="catch";var $o=class extends En{render(r){return"finally"+super.render(r)}};$o.kind="finally";var Ma=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
2
+ `:""},this._extScope=r,this._scope=new Gr.Scope({parent:r}),this._nodes=[new La]}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,i){let o=this._scope.toName(e);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Fa(r,o,n)),o}const(r,e,n){return this._def(Gr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Gr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Gr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new ls(r,e,n))}add(r,e){return this._leafNode(new Oa(r,Pe.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==De.nil&&this._leafNode(new Ra(r)),this}object(...r){let e=["{"];for(let[n,i]of r)e.length>1&&e.push(","),e.push(n),(n!==i||this.opts.es5)&&(e.push(":"),De.addCodeArg(e,i));return e.push("}"),new De._Code(e)}if(r,e,n){if(this._blockNode(new Kr(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 Kr(r))}else(){return this._elseNode(new Li)}endIf(){return this._endBlockNode(Kr,Li)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new ja(r),e)}forRange(r,e,n,i,o=this.opts.es5?Gr.varKinds.var:Gr.varKinds.let){let a=this._scope.toName(r);return this._for(new Ba(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Gr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof De.Name?e:this.var("_arr",e);return this.forRange("_i",0,De._`${a}.length`,u=>{this.var(o,De._`${a}[${u}]`),n(o)})}return this._for(new us("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Gr.varKinds.var:Gr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,De._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new us("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(ii)}label(r){return this._leafNode(new qa(r))}break(r){return this._leafNode(new Da(r))}return(r){let e=new yo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(yo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new za;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new bo(o),e(o)}return n&&(this._currNode=i.finally=new $o,this.code(n)),this._endBlockNode(bo,$o)}throw(r){return this._leafNode(new Na(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=De.nil,n,i){return this._blockNode(new go(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(go)}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 Kr))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}};Pe.CodeGen=Ma;function oi(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function cs(t,r){return r instanceof De._CodeOrName?oi(t,r.names):t}function ji(t,r,e){if(t instanceof De.Name)return n(t);if(!i(t))return t;return new De._Code(t._items.reduce((o,a)=>(a instanceof De.Name&&(a=n(a)),a instanceof De._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=e[o.str];return a===void 0||r[o.str]!==1?o:(delete r[o.str],a)}function i(o){return o instanceof De._Code&&o._items.some(a=>a instanceof De.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function Ih(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function vc(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:De._`!${Va(t)}`}Pe.not=vc;var Fh=kc(Pe.operators.AND);function Oh(...t){return t.reduce(Fh)}Pe.and=Oh;var qh=kc(Pe.operators.OR);function Dh(...t){return t.reduce(qh)}Pe.or=Dh;function kc(t){return(r,e)=>r===De.nil?e:e===De.nil?r:De._`${Va(r)} ${t} ${Va(e)}`}function Va(t){return t instanceof De.Name?t:De._`(${t})`}});var Wr=ce(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Gt=Te(),Nh={data:new Gt.Name("data"),valCxt:new Gt.Name("valCxt"),dataPath:new Gt.Name("dataPath"),parentData:new Gt.Name("parentData"),parentDataProperty:new Gt.Name("parentDataProperty"),rootData:new Gt.Name("rootData"),dynamicAnchors:new Gt.Name("dynamicAnchors"),vErrors:new Gt.Name("vErrors"),errors:new Gt.Name("errors"),this:new Gt.Name("this"),self:new Gt.Name("self"),scope:new Gt.Name("scope"),json:new Gt.Name("json"),jsonPos:new Gt.Name("jsonPos"),jsonLen:new Gt.Name("jsonLen"),jsonPart:new Gt.Name("jsonPart")};Ua.default=Nh});var wo=ce(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.extendErrors=Kt.resetErrorsCount=Kt.reportExtraError=Kt.reportError=Kt.keyword$DataError=Kt.keywordError=void 0;var Ne=Te(),Wt=Wr();Kt.keywordError={message:({keyword:t})=>Ne.str`should pass "${t}" keyword validation`};Kt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Ne.str`"${t}" keyword must be ${r} ($data)`:Ne.str`"${t}" keyword is invalid ($data)`};function Rh(t,r=Kt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,u=Ec(t,r);e??(o||a)?xc(i,u):Cc(n,Ne._`[${u}]`)}Kt.reportError=Rh;function Lh(t,r=Kt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=Ec(t,r);xc(n,a),i||o||Cc(e,Wt.default.vErrors)}Kt.reportExtraError=Lh;function jh(t,r){t.assign(Wt.default.errors,r),t.if(Ne._`${Wt.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Ne._`${Wt.default.vErrors}.length`,r),()=>t.assign(Wt.default.vErrors,null)))}Kt.resetErrorsCount=jh;function Bh({gen:t,keyword:r,schemaValue:e,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,Wt.default.errors,u=>{t.const(a,Ne._`${Wt.default.vErrors}[${u}]`),t.if(Ne._`${a}.dataPath === undefined`,()=>t.assign(Ne._`${a}.dataPath`,Ne.strConcat(Wt.default.dataPath,o.errorPath))),t.assign(Ne._`${a}.schemaPath`,Ne.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Ne._`${a}.schema`,e),t.assign(Ne._`${a}.data`,n))})}Kt.extendErrors=Bh;function xc(t,r){let e=t.const("err",r);t.if(Ne._`${Wt.default.vErrors} === null`,()=>t.assign(Wt.default.vErrors,Ne._`[${e}]`),Ne._`${Wt.default.vErrors}.push(${e})`),t.code(Ne._`${Wt.default.errors}++`)}function Cc(t,r){let{gen:e,validateName:n,schemaEnv:i}=t;i.$async?e.throw(Ne._`new ${t.ValidationError}(${r})`):(e.assign(Ne._`${n}.errors`,r),e.return(!1))}var un={keyword:new Ne.Name("keyword"),schemaPath:new Ne.Name("schemaPath"),params:new Ne.Name("params"),propertyName:new Ne.Name("propertyName"),message:new Ne.Name("message"),schema:new Ne.Name("schema"),parentSchema:new Ne.Name("parentSchema"),instancePath:new Ne.Name("instancePath")};function Ec(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Ne._`{}`:(n.jtd&&!n.ajvErrors?zh:Mh)(t,r)}function zh(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:u}=i,c=[[un.instancePath,Ne.strConcat(Wt.default.dataPath,o)],[un.schemaPath,Ne.str`${a}/${n}`]];return u.messages&&c.push([un.message,typeof r=="function"?r(t):r]),e.object(...c)}function Mh(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:u,schemaPath:c,errorPath:m,errSchemaPath:p,propertyName:b,opts:v}=a,{params:w,message:x}=r,P=[[un.keyword,n],[Wt.default.dataPath,Ne.strConcat(Wt.default.dataPath,m)],[un.schemaPath,Ne.str`${p}/${n}`],[un.params,typeof w=="function"?w(t):w||Ne._`{}`]];return b&&P.push([un.propertyName,b]),v.messages&&P.push([un.message,typeof x=="function"?x(t):x]),v.verbose&&P.push([un.schema,o],[un.parentSchema,Ne._`${u}${c}`],[Wt.default.data,i]),e.object(...P)}});var Ac=ce(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.boolOrEmptySchema=Bi.topBoolOrEmptySchema=void 0;var Vh=wo(),Uh=Te(),Hh=Wr(),Gh={message:"boolean schema is false"};function Kh(t){let{gen:r,schema:e,validateName:n}=t;e===!1?_c(t,!1):typeof e=="object"&&e.$async===!0?r.return(Hh.default.data):(r.assign(Uh._`${n}.errors`,null),r.return(!0))}Bi.topBoolOrEmptySchema=Kh;function Wh(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),_c(t)):e.var(r,!0)}Bi.boolOrEmptySchema=Wh;function _c(t,r){let{gen:e,data:n}=t,i={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};Vh.reportError(i,Gh,r)}});var Tc=ce(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.assignDefaults=void 0;var zi=Te(),Zh=vr();function Jh(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)Sc(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Sc(t,o,i.default))}ps.assignDefaults=Jh;function Sc(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let u=zi._`${o}${zi.getProperty(r)}`;if(i){Zh.checkStrictMode(t,`default is ignored for: ${u}`);return}let c=zi._`${u} === undefined`;a.useDefaults==="empty"&&(c=zi._`${c} || ${u} === null || ${u} === ""`),n.if(c,zi._`${u} = ${zi.stringify(e)}`)}});var li=ce(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.applySubschema=ai.Type=void 0;var Qh=vr(),Pc=lt(),Zt=Te(),Ic;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ic=ai.Type||(ai.Type={}));function Xh(t,r,e){let n=Yh(t,r);eg(n,t,r),tg(n,r);let i={...t,...n,items:void 0,props:void 0};return Qh.subschemaCode(i,e),i}ai.applySubschema=Xh;function Yh(t,{keyword:r,schemaProp:e,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let u=t.schema[r];return e===void 0?{schema:u,schemaPath:Zt._`${t.schemaPath}${Zt.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:u[e],schemaPath:Zt._`${t.schemaPath}${Zt.getProperty(r)}${Zt.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${Pc.escapeFragment(e)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function eg(t,r,{dataProp:e,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=r;if(e!==void 0){let{errorPath:m,dataPathArr:p,opts:b}=r,v=u.let("data",Zt._`${r.data}${Zt.getProperty(e)}`,!0);c(v),t.errorPath=Zt.str`${m}${rg(e,n,b.jsPropertySyntax)}`,t.parentDataProperty=Zt._`${e}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let m=i instanceof Zt.Name?i:u.let("data",i,!0);c(m),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function c(m){t.data=m,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,m]}}function tg(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function rg(t,r,e){if(t instanceof Zt.Name){let n=r===Ic.Num;return e?n?Zt._`"[" + ${t} + "]"`:Zt._`"['" + ${t} + "']"`:n?Zt._`"/" + ${t}`:Zt._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?Zt.getProperty(t).toString():"/"+Pc.escapeJsonPointer(t)}});var Zr=ce(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.validateUnion=Je.validateArray=Je.usePattern=Je.callValidateCode=Je.schemaProperties=Je.allSchemaProperties=Je.noPropertyInData=Je.propertyInData=Je.isOwnProperty=Je.hasPropFunc=Je.reportMissingProp=Je.checkMissingProp=Je.checkReportMissingProp=void 0;var ot=Te(),Fc=lt(),ng=li(),Nn=Wr();function ig(t,r){let{gen:e,data:n,it:i}=t;e.if(Ga(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:ot._`${r}`},!0),t.error()})}Je.checkReportMissingProp=ig;function og({gen:t,data:r,it:{opts:e}},n,i){return ot.or(...n.map(o=>ot.and(Ga(t,r,o,e.ownProperties),ot._`${i} = ${o}`)))}Je.checkMissingProp=og;function sg(t,r){t.setParams({missingProperty:r},!0),t.error()}Je.reportMissingProp=sg;function Oc(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ot._`Object.prototype.hasOwnProperty`})}Je.hasPropFunc=Oc;function Ha(t,r,e){return ot._`${Oc(t)}.call(${r}, ${e})`}Je.isOwnProperty=Ha;function ag(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} !== undefined`;return n?ot._`${i} && ${Ha(t,r,e)}`:i}Je.propertyInData=ag;function Ga(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} === undefined`;return n?ot.or(i,ot.not(Ha(t,r,e))):i}Je.noPropertyInData=Ga;function qc(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Je.allSchemaProperties=qc;function lg(t,r){return qc(r).filter(e=>!Fc.alwaysValidSchema(t,r[e]))}Je.schemaProperties=lg;function ug({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,m){let p=m?ot._`${t}, ${r}, ${n}${i}`:r,b=[[Nn.default.dataPath,ot.strConcat(Nn.default.dataPath,o)],[Nn.default.parentData,a.parentData],[Nn.default.parentDataProperty,a.parentDataProperty],[Nn.default.rootData,Nn.default.rootData]];a.opts.dynamicRef&&b.push([Nn.default.dynamicAnchors,Nn.default.dynamicAnchors]);let v=ot._`${p}, ${e.object(...b)}`;return c!==ot.nil?ot._`${u}.call(${c}, ${v})`:ot._`${u}(${v})`}Je.callValidateCode=ug;function cg(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:ot._`new RegExp(${r}, "u")`})}Je.usePattern=cg;function fg(t){let{gen:r,data:e,keyword:n,it:i}=t,o=r.name("valid");if(i.allErrors){let u=r.let("valid",!0);return a(()=>r.assign(u,!1)),u}return r.var(o,!0),a(()=>r.break()),o;function a(u){let c=r.const("len",ot._`${e}.length`);r.forRange("i",0,c,m=>{t.subschema({keyword:n,dataProp:m,dataPropType:ng.Type.Num},o),r.if(ot.not(o),u)})}}Je.validateArray=fg;function pg(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(c=>Fc.alwaysValidSchema(i,c))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),u=r.name("_valid");r.block(()=>e.forEach((c,m)=>{let p=t.subschema({keyword:n,schemaProp:m,compositeRule:!0},u);r.assign(a,ot._`${a} || ${u}`),t.mergeValidEvaluated(p,u)||r.if(ot.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Je.validateUnion=pg});var Lc=ce(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.keywordCode=void 0;var dg=vo(),mg=wo(),hg=Zr(),or=Te(),ui=Wr();function gg(t,r,e,n){let i=new dg.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?Dc(i,e):"macro"in e?yg(i,e):(e.compile||e.validate)&&Dc(i,e)}ds.keywordCode=gg;function yg(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,u=r.macro.call(a.self,i,o,a),c=Rc(e,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let m=e.name("valid");t.subschema({schema:u,schemaPath:or.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}function Dc(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=t;$g(c,r);let m=!u&&r.compile?r.compile.call(c.self,o,a,c):r.validate,p=Rc(n,i,m),b=n.let("valid");t.block$data(b,v),t.ok((e=r.valid)!==null&&e!==void 0?e:b);function v(){if(r.errors===!1)P(),r.modifying&&Nc(t),N(()=>t.error());else{let D=r.async?w():x();r.modifying&&Nc(t),N(()=>bg(t,D))}}function w(){let D=n.let("ruleErrs",null);return n.try(()=>P(or._`await `),X=>n.assign(b,!1).if(or._`${X} instanceof ${c.ValidationError}`,()=>n.assign(D,or._`${X}.errors`),()=>n.throw(X))),D}function x(){let D=or._`${p}.errors`;return n.assign(D,null),P(or.nil),D}function P(D=r.async?or._`await `:or.nil){let X=c.opts.passContext?ui.default.this:ui.default.self,ee=!("compile"in r&&!u||r.schema===!1);n.assign(b,or._`${D}${hg.callValidateCode(t,p,X,ee)}`,r.modifying)}function N(D){var X;n.if(or.not((X=r.valid)!==null&&X!==void 0?X:b),D)}}function Nc(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,or._`${n.parentData}[${n.parentDataProperty}]`))}function bg(t,r){let{gen:e}=t;e.if(or._`Array.isArray(${r})`,()=>{e.assign(ui.default.vErrors,or._`${ui.default.vErrors} === null ? ${r} : ${ui.default.vErrors}.concat(${r})`).assign(ui.default.errors,or._`${ui.default.vErrors}.length`),mg.extendErrors(t)},()=>t.error())}function $g({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Rc(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:or.stringify(e)})}});var Vc=ce(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.schemaKeywords=void 0;var Ka=Ea(),jc=Mi(),wg=Tc(),Mc=Lc(),vg=lt(),kg=vr(),xg=Te(),Cg=Wr();function Eg(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:m}=t,{RULES:p}=m;if(o.$ref&&(c.ignoreKeywordsWithRef||!vg.schemaHasRulesButRef(o,p))){i.block(()=>Mc.keywordCode(t,"$ref",p.all.$ref.definition));return}c.jtd||_g(t,r),i.block(()=>{for(let v of p.rules)b(v);b(p.post)});function b(v){!Ka.shouldUseGroup(o,v)||(v.type?(i.if(jc.checkDataType(v.type,a,c.strict)),Bc(t,v),r.length===1&&r[0]===v.type&&e&&(i.else(),jc.reportTypeError(t)),i.endIf()):Bc(t,v),u||i.if(xg._`${Cg.default.errors} === ${n||0}`))}}ms.schemaKeywords=Eg;function Bc(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&wg.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)Ka.shouldUseRule(n,o)&&Mc.keywordCode(t,o.keyword,o.definition,r.type)})}function _g(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(Ag(t,r),t.opts.allowUnionTypes||Sg(t,r),Tg(t,t.dataTypes))}function Ag(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{zc(t.dataTypes,e)||Wa(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>zc(r,e))}}function Sg(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&Wa(t,"use allowUnionTypes to allow union type keyword")}function Tg(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&Ka.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>Pg(r,a))&&Wa(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Pg(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function zc(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function Wa(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,kg.checkStrictMode(t,r,t.opts.strictTypes)}});var ko=ce((O1,Uc)=>{"use strict";Uc.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,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}});var Gc=ce((q1,Hc)=>{"use strict";var Rn=Hc.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};hs(r,n,i,t,"",t)};Rn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Rn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Rn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Rn.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 hs(t,r,e,n,i,o,a,u,c,m){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,u,c,m);for(var p in n){var b=n[p];if(Array.isArray(b)){if(p in Rn.arrayKeywords)for(var v=0;v<b.length;v++)hs(t,r,e,b[v],i+"/"+p+"/"+v,o,i,p,n,v)}else if(p in Rn.propsKeywords){if(b&&typeof b=="object")for(var w in b)hs(t,r,e,b[w],i+"/"+p+"/"+Ig(w),o,i,p,n,w)}else(p in Rn.keywords||t.allKeys&&!(p in Rn.skipKeywords))&&hs(t,r,e,b,i+"/"+p,o,i,p,n)}e(n,i,o,a,u,c,m)}}function Ig(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Za=ce((gs,Kc)=>{(function(t,r){typeof gs=="object"&&typeof Kc<"u"?r(gs):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(gs,function(t){"use strict";function r(){for(var F=arguments.length,T=Array(F),j=0;j<F;j++)T[j]=arguments[j];if(T.length>1){T[0]=T[0].slice(0,-1);for(var H=T.length-1,G=1;G<H;++G)T[G]=T[G].slice(1,-1);return T[H]=T[H].slice(1),T.join("")}else return T[0]}function e(F){return"(?:"+F+")"}function n(F){return F===void 0?"undefined":F===null?"null":Object.prototype.toString.call(F).split(" ").pop().split("]").shift().toLowerCase()}function i(F){return F.toUpperCase()}function o(F){return F!=null?F instanceof Array?F:typeof F.length!="number"||F.split||F.setInterval||F.call?[F]:Array.prototype.slice.call(F):[]}function a(F,T){var j=F;if(T)for(var H in T)j[H]=T[H];return j}function u(F){var T="[A-Za-z]",j="[\\x0D]",H="[0-9]",G="[\\x22]",le=r(H,"[A-Fa-f]"),ke="[\\x0A]",Se="[\\x20]",qe=e(e("%[EFef]"+le+"%"+le+le+"%"+le+le)+"|"+e("%[89A-Fa-f]"+le+"%"+le+le)+"|"+e("%"+le+le)),d="[\\:\\/\\?\\#\\[\\]\\@]",ie="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=r(d,ie),je=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ge=F?"[\\uE000-\\uF8FF]":"[]",z=r(T,H,"[\\-\\.\\_\\~]",je),Ke=e(T+r(T,H,"[\\+\\-\\.]")+"*"),Be=e(e(qe+"|"+r(z,ie,"[\\:]"))+"*"),jr=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),Mt=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),tr=e(Mt+"\\."+Mt+"\\."+Mt+"\\."+Mt),he=e(le+"{1,4}"),at=e(e(he+"\\:"+he)+"|"+tr),Vt=e(e(he+"\\:")+"{6}"+at),ur=e("\\:\\:"+e(he+"\\:")+"{5}"+at),Er=e(e(he)+"?\\:\\:"+e(he+"\\:")+"{4}"+at),rr=e(e(e(he+"\\:")+"{0,1}"+he)+"?\\:\\:"+e(he+"\\:")+"{3}"+at),cr=e(e(e(he+"\\:")+"{0,2}"+he)+"?\\:\\:"+e(he+"\\:")+"{2}"+at),ne=e(e(e(he+"\\:")+"{0,3}"+he)+"?\\:\\:"+he+"\\:"+at),gn=e(e(e(he+"\\:")+"{0,4}"+he)+"?\\:\\:"+at),_r=e(e(e(he+"\\:")+"{0,5}"+he)+"?\\:\\:"+he),Ar=e(e(e(he+"\\:")+"{0,6}"+he)+"?\\:\\:"),Ot=e([Vt,ur,Er,rr,cr,ne,gn,_r,Ar].join("|")),rn=e(e(z+"|"+qe)+"+"),Kn=e(Ot+"\\%25"+rn),$r=e(Ot+e("\\%25|\\%(?!"+le+"{2})")+rn),Wn=e("[vV]"+le+"+\\."+r(z,ie,"[\\:]")+"+"),Zn=e("\\["+e($r+"|"+Ot+"|"+Wn)+"\\]"),On=e(e(qe+"|"+r(z,ie))+"*"),yn=e(Zn+"|"+tr+"(?!"+On+")|"+On),Br=e(H+"*"),Ai=e(e(Be+"@")+"?"+yn+e("\\:"+Br)+"?"),nn=e(qe+"|"+r(z,ie,"[\\:\\@]")),Jn=e(nn+"*"),zr=e(nn+"+"),Qn=e(e(qe+"|"+r(z,ie,"[\\@]"))+"+"),qt=e(e("\\/"+Jn)+"*"),Dt=e("\\/"+e(zr+qt)+"?"),Xn=e(Qn+qt),bn=e(zr+qt),_t="(?!"+nn+")",$n=e(qt+"|"+Dt+"|"+Xn+"|"+bn+"|"+_t),Mr=e(e(nn+"|"+r("[\\/\\?]",Ge))+"*"),wn=e(e(nn+"|[\\/\\?]")+"*"),Si=e(e("\\/\\/"+Ai+qt)+"|"+Dt+"|"+bn+"|"+_t),vn=e(Ke+"\\:"+Si+e("\\?"+Mr)+"?"+e("\\#"+wn)+"?"),oo=e(e("\\/\\/"+Ai+qt)+"|"+Dt+"|"+Xn+"|"+_t),so=e(oo+e("\\?"+Mr)+"?"+e("\\#"+wn)+"?"),Go=e(vn+"|"+so),Ko=e(Ke+"\\:"+Si+e("\\?"+Mr)+"?"),ao="^("+Ke+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+yn+")"+e("\\:("+Br+")")+"?)")+"?("+qt+"|"+Dt+"|"+bn+"|"+_t+")")+e("\\?("+Mr+")")+"?"+e("\\#("+wn+")")+"?$",lo="^(){0}"+e(e("\\/\\/("+e("("+Be+")@")+"?("+yn+")"+e("\\:("+Br+")")+"?)")+"?("+qt+"|"+Dt+"|"+Xn+"|"+_t+")")+e("\\?("+Mr+")")+"?"+e("\\#("+wn+")")+"?$",uo="^("+Ke+")\\:"+e(e("\\/\\/("+e("("+Be+")@")+"?("+yn+")"+e("\\:("+Br+")")+"?)")+"?("+qt+"|"+Dt+"|"+bn+"|"+_t+")")+e("\\?("+Mr+")")+"?$",At="^"+e("\\#("+wn+")")+"?$",We="^"+e("("+Be+")@")+"?("+yn+")"+e("\\:("+Br+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",T,H,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",z,ie),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",z,ie),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",z,ie),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",z,ie),"g"),NOT_QUERY:new RegExp(r("[^\\%]",z,ie,"[\\:\\@\\/\\?]",Ge),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",z,ie,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",z,ie),"g"),UNRESERVED:new RegExp(z,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",z,Le),"g"),PCT_ENCODED:new RegExp(qe,"g"),IPV4ADDRESS:new RegExp("^("+tr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Ot+")"+e(e("\\%25|\\%(?!"+le+"{2})")+"("+rn+")")+"?\\]?$")}}var c=u(!1),m=u(!0),p=function(){function F(T,j){var H=[],G=!0,le=!1,ke=void 0;try{for(var Se=T[Symbol.iterator](),qe;!(G=(qe=Se.next()).done)&&(H.push(qe.value),!(j&&H.length===j));G=!0);}catch(d){le=!0,ke=d}finally{try{!G&&Se.return&&Se.return()}finally{if(le)throw ke}}return H}return function(T,j){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return F(T,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(F){if(Array.isArray(F)){for(var T=0,j=Array(F.length);T<F.length;T++)j[T]=F[T];return j}else return Array.from(F)},v=2147483647,w=36,x=1,P=26,N=38,D=700,X=72,ee=128,de="-",fe=/^xn--/,Z=/[^\0-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,we={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ve=w-x,Fe=Math.floor,xe=String.fromCharCode;function Ce(F){throw new RangeError(we[F])}function ue(F,T){for(var j=[],H=F.length;H--;)j[H]=T(F[H]);return j}function $e(F,T){var j=F.split("@"),H="";j.length>1&&(H=j[0]+"@",F=j[1]),F=F.replace(me,".");var G=F.split("."),le=ue(G,T).join(".");return H+le}function He(F){for(var T=[],j=0,H=F.length;j<H;){var G=F.charCodeAt(j++);if(G>=55296&&G<=56319&&j<H){var le=F.charCodeAt(j++);(le&64512)==56320?T.push(((G&1023)<<10)+(le&1023)+65536):(T.push(G),j--)}else T.push(G)}return T}var U=function(T){return String.fromCodePoint.apply(String,b(T))},st=function(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:w},Re=function(T,j){return T+22+75*(T<26)-((j!=0)<<5)},et=function(T,j,H){var G=0;for(T=H?Fe(T/D):T>>1,T+=Fe(T/j);T>ve*P>>1;G+=w)T=Fe(T/ve);return Fe(G+(ve+1)*T/(T+N))},Ue=function(T){var j=[],H=T.length,G=0,le=ee,ke=X,Se=T.lastIndexOf(de);Se<0&&(Se=0);for(var qe=0;qe<Se;++qe)T.charCodeAt(qe)>=128&&Ce("not-basic"),j.push(T.charCodeAt(qe));for(var d=Se>0?Se+1:0;d<H;){for(var ie=G,Le=1,je=w;;je+=w){d>=H&&Ce("invalid-input");var Ge=st(T.charCodeAt(d++));(Ge>=w||Ge>Fe((v-G)/Le))&&Ce("overflow"),G+=Ge*Le;var z=je<=ke?x:je>=ke+P?P:je-ke;if(Ge<z)break;var Ke=w-z;Le>Fe(v/Ke)&&Ce("overflow"),Le*=Ke}var Be=j.length+1;ke=et(G-ie,Be,ie==0),Fe(G/Be)>v-le&&Ce("overflow"),le+=Fe(G/Be),G%=Be,j.splice(G++,0,le)}return String.fromCodePoint.apply(String,j)},O=function(T){var j=[];T=He(T);var H=T.length,G=ee,le=0,ke=X,Se=!0,qe=!1,d=void 0;try{for(var ie=T[Symbol.iterator](),Le;!(Se=(Le=ie.next()).done);Se=!0){var je=Le.value;je<128&&j.push(xe(je))}}catch($r){qe=!0,d=$r}finally{try{!Se&&ie.return&&ie.return()}finally{if(qe)throw d}}var Ge=j.length,z=Ge;for(Ge&&j.push(de);z<H;){var Ke=v,Be=!0,jr=!1,Mt=void 0;try{for(var tr=T[Symbol.iterator](),he;!(Be=(he=tr.next()).done);Be=!0){var at=he.value;at>=G&&at<Ke&&(Ke=at)}}catch($r){jr=!0,Mt=$r}finally{try{!Be&&tr.return&&tr.return()}finally{if(jr)throw Mt}}var Vt=z+1;Ke-G>Fe((v-le)/Vt)&&Ce("overflow"),le+=(Ke-G)*Vt,G=Ke;var ur=!0,Er=!1,rr=void 0;try{for(var cr=T[Symbol.iterator](),ne;!(ur=(ne=cr.next()).done);ur=!0){var gn=ne.value;if(gn<G&&++le>v&&Ce("overflow"),gn==G){for(var _r=le,Ar=w;;Ar+=w){var Ot=Ar<=ke?x:Ar>=ke+P?P:Ar-ke;if(_r<Ot)break;var rn=_r-Ot,Kn=w-Ot;j.push(xe(Re(Ot+rn%Kn,0))),_r=Fe(rn/Kn)}j.push(xe(Re(_r,0))),ke=et(le,Vt,z==Ge),le=0,++z}}}catch($r){Er=!0,rr=$r}finally{try{!ur&&cr.return&&cr.return()}finally{if(Er)throw rr}}++le,++G}return j.join("")},q=function(T){return $e(T,function(j){return fe.test(j)?Ue(j.slice(4).toLowerCase()):j})},Bt=function(T){return $e(T,function(j){return Z.test(j)?"xn--"+O(j):j})},vt={version:"2.1.0",ucs2:{decode:He,encode:U},decode:Ue,encode:O,toASCII:Bt,toUnicode:q},nt={};function ut(F){var T=F.charCodeAt(0),j=void 0;return T<16?j="%0"+T.toString(16).toUpperCase():T<128?j="%"+T.toString(16).toUpperCase():T<2048?j="%"+(T>>6|192).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase():j="%"+(T>>12|224).toString(16).toUpperCase()+"%"+(T>>6&63|128).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase(),j}function ct(F){for(var T="",j=0,H=F.length;j<H;){var G=parseInt(F.substr(j+1,2),16);if(G<128)T+=String.fromCharCode(G),j+=3;else if(G>=194&&G<224){if(H-j>=6){var le=parseInt(F.substr(j+4,2),16);T+=String.fromCharCode((G&31)<<6|le&63)}else T+=F.substr(j,6);j+=6}else if(G>=224){if(H-j>=9){var ke=parseInt(F.substr(j+4,2),16),Se=parseInt(F.substr(j+7,2),16);T+=String.fromCharCode((G&15)<<12|(ke&63)<<6|Se&63)}else T+=F.substr(j,9);j+=9}else T+=F.substr(j,3),j+=3}return T}function be(F,T){function j(H){var G=ct(H);return G.match(T.UNRESERVED)?G:H}return F.scheme&&(F.scheme=String(F.scheme).replace(T.PCT_ENCODED,j).toLowerCase().replace(T.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(T.PCT_ENCODED,j).replace(T.NOT_USERINFO,ut).replace(T.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(T.PCT_ENCODED,j).toLowerCase().replace(T.NOT_HOST,ut).replace(T.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(T.PCT_ENCODED,j).replace(F.scheme?T.NOT_PATH:T.NOT_PATH_NOSCHEME,ut).replace(T.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(T.PCT_ENCODED,j).replace(T.NOT_QUERY,ut).replace(T.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(T.PCT_ENCODED,j).replace(T.NOT_FRAGMENT,ut).replace(T.PCT_ENCODED,i)),F}function br(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Ct(F,T){var j=F.match(T.IPV4ADDRESS)||[],H=p(j,2),G=H[1];return G?G.split(".").map(br).join("."):F}function It(F,T){var j=F.match(T.IPV6ADDRESS)||[],H=p(j,3),G=H[1],le=H[2];if(G){for(var ke=G.toLowerCase().split("::").reverse(),Se=p(ke,2),qe=Se[0],d=Se[1],ie=d?d.split(":").map(br):[],Le=qe.split(":").map(br),je=T.IPV4ADDRESS.test(Le[Le.length-1]),Ge=je?7:8,z=Le.length-Ge,Ke=Array(Ge),Be=0;Be<Ge;++Be)Ke[Be]=ie[Be]||Le[z+Be]||"";je&&(Ke[Ge-1]=Ct(Ke[Ge-1],T));var jr=Ke.reduce(function(Vt,ur,Er){if(!ur||ur==="0"){var rr=Vt[Vt.length-1];rr&&rr.index+rr.length===Er?rr.length++:Vt.push({index:Er,length:1})}return Vt},[]),Mt=jr.sort(function(Vt,ur){return ur.length-Vt.length})[0],tr=void 0;if(Mt&&Mt.length>1){var he=Ke.slice(0,Mt.index),at=Ke.slice(Mt.index+Mt.length);tr=he.join(":")+"::"+at.join(":")}else tr=Ke.join(":");return le&&(tr+="%"+le),tr}else return F}var Yt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,lr="".match(/(){0}/)[1]===void 0;function zt(F){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j={},H=T.iri!==!1?m:c;T.reference==="suffix"&&(F=(T.scheme?T.scheme+":":"")+"//"+F);var G=F.match(Yt);if(G){lr?(j.scheme=G[1],j.userinfo=G[3],j.host=G[4],j.port=parseInt(G[5],10),j.path=G[6]||"",j.query=G[7],j.fragment=G[8],isNaN(j.port)&&(j.port=G[5])):(j.scheme=G[1]||void 0,j.userinfo=F.indexOf("@")!==-1?G[3]:void 0,j.host=F.indexOf("//")!==-1?G[4]:void 0,j.port=parseInt(G[5],10),j.path=G[6]||"",j.query=F.indexOf("?")!==-1?G[7]:void 0,j.fragment=F.indexOf("#")!==-1?G[8]:void 0,isNaN(j.port)&&(j.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?G[4]:void 0)),j.host&&(j.host=It(Ct(j.host,H),H)),j.scheme===void 0&&j.userinfo===void 0&&j.host===void 0&&j.port===void 0&&!j.path&&j.query===void 0?j.reference="same-document":j.scheme===void 0?j.reference="relative":j.fragment===void 0?j.reference="absolute":j.reference="uri",T.reference&&T.reference!=="suffix"&&T.reference!==j.reference&&(j.error=j.error||"URI is not a "+T.reference+" reference.");var le=nt[(T.scheme||j.scheme||"").toLowerCase()];if(!T.unicodeSupport&&(!le||!le.unicodeSupport)){if(j.host&&(T.domainHost||le&&le.domainHost))try{j.host=vt.toASCII(j.host.replace(H.PCT_ENCODED,ct).toLowerCase())}catch(ke){j.error=j.error||"Host's domain name can not be converted to ASCII via punycode: "+ke}be(j,c)}else be(j,H);le&&le.parse&&le.parse(j,T)}else j.error=j.error||"URI can not be parsed.";return j}function Hn(F,T){var j=T.iri!==!1?m:c,H=[];return F.userinfo!==void 0&&(H.push(F.userinfo),H.push("@")),F.host!==void 0&&H.push(It(Ct(String(F.host),j),j).replace(j.IPV6ADDRESS,function(G,le,ke){return"["+le+(ke?"%25"+ke:"")+"]"})),(typeof F.port=="number"||typeof F.port=="string")&&(H.push(":"),H.push(String(F.port))),H.length?H.join(""):void 0}var Tn=/^\.\.?\//,ft=/^\/\.(\/|$)/,pt=/^\/\.\.(\/|$)/,Ft=/^\/?(?:.|\n)*?(?=\/|$)/;function dt(F){for(var T=[];F.length;)if(F.match(Tn))F=F.replace(Tn,"");else if(F.match(ft))F=F.replace(ft,"/");else if(F.match(pt))F=F.replace(pt,"/"),T.pop();else if(F==="."||F==="..")F="";else{var j=F.match(Ft);if(j){var H=j[0];F=F.slice(H.length),T.push(H)}else throw new Error("Unexpected dot segment condition")}return T.join("")}function kt(F){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=T.iri?m:c,H=[],G=nt[(T.scheme||F.scheme||"").toLowerCase()];if(G&&G.serialize&&G.serialize(F,T),F.host&&!j.IPV6ADDRESS.test(F.host)){if(T.domainHost||G&&G.domainHost)try{F.host=T.iri?vt.toUnicode(F.host):vt.toASCII(F.host.replace(j.PCT_ENCODED,ct).toLowerCase())}catch(Se){F.error=F.error||"Host's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+Se}}be(F,j),T.reference!=="suffix"&&F.scheme&&(H.push(F.scheme),H.push(":"));var le=Hn(F,T);if(le!==void 0&&(T.reference!=="suffix"&&H.push("//"),H.push(le),F.path&&F.path.charAt(0)!=="/"&&H.push("/")),F.path!==void 0){var ke=F.path;!T.absolutePath&&(!G||!G.absolutePath)&&(ke=dt(ke)),le===void 0&&(ke=ke.replace(/^\/\//,"/%2F")),H.push(ke)}return F.query!==void 0&&(H.push("?"),H.push(F.query)),F.fragment!==void 0&&(H.push("#"),H.push(F.fragment)),H.join("")}function Or(F,T){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],G={};return H||(F=zt(kt(F,j),j),T=zt(kt(T,j),j)),j=j||{},!j.tolerant&&T.scheme?(G.scheme=T.scheme,G.userinfo=T.userinfo,G.host=T.host,G.port=T.port,G.path=dt(T.path||""),G.query=T.query):(T.userinfo!==void 0||T.host!==void 0||T.port!==void 0?(G.userinfo=T.userinfo,G.host=T.host,G.port=T.port,G.path=dt(T.path||""),G.query=T.query):(T.path?(T.path.charAt(0)==="/"?G.path=dt(T.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?G.path="/"+T.path:F.path?G.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+T.path:G.path=T.path,G.path=dt(G.path)),G.query=T.query):(G.path=F.path,T.query!==void 0?G.query=T.query:G.query=F.query),G.userinfo=F.userinfo,G.host=F.host,G.port=F.port),G.scheme=F.scheme),G.fragment=T.fragment,G}function qr(F,T,j){var H=a({scheme:"null"},j);return kt(Or(zt(F,H),zt(T,H),H,!0),H)}function Dr(F,T){return typeof F=="string"?F=kt(zt(F,T),T):n(F)==="object"&&(F=zt(kt(F,T),T)),F}function Nr(F,T,j){return typeof F=="string"?F=kt(zt(F,j),j):n(F)==="object"&&(F=kt(F,j)),typeof T=="string"?T=kt(zt(T,j),j):n(T)==="object"&&(T=kt(T,j)),F===T}function Rr(F,T){return F&&F.toString().replace(!T||!T.iri?c.ESCAPE:m.ESCAPE,ut)}function er(F,T){return F&&F.toString().replace(!T||!T.iri?c.PCT_ENCODED:m.PCT_ENCODED,ct)}var K={scheme:"http",domainHost:!0,parse:function(T,j){return T.host||(T.error=T.error||"HTTP URIs must have a host."),T},serialize:function(T,j){var H=String(T.scheme).toLowerCase()==="https";return(T.port===(H?443:80)||T.port==="")&&(T.port=void 0),T.path||(T.path="/"),T}},re={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function ge(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Ae={scheme:"ws",domainHost:!0,parse:function(T,j){var H=T;return H.secure=ge(H),H.resourceName=(H.path||"/")+(H.query?"?"+H.query:""),H.path=void 0,H.query=void 0,H},serialize:function(T,j){if((T.port===(ge(T)?443:80)||T.port==="")&&(T.port=void 0),typeof T.secure=="boolean"&&(T.scheme=T.secure?"wss":"ws",T.secure=void 0),T.resourceName){var H=T.resourceName.split("?"),G=p(H,2),le=G[0],ke=G[1];T.path=le&&le!=="/"?le:void 0,T.query=ke,T.resourceName=void 0}return T.fragment=void 0,T}},xt={scheme:"wss",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize},xr={},ze=!0,it="[A-Za-z0-9\\-\\.\\_\\~"+(ze?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",mt="[0-9A-Fa-f]",Lr=e(e("%[EFef]"+mt+"%"+mt+mt+"%"+mt+mt)+"|"+e("%[89A-Fa-f]"+mt+"%"+mt+mt)+"|"+e("%"+mt+mt)),Qe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Et=r(tn,'[\\"\\\\]'),Pn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ro=new RegExp(it,"g"),Cr=new RegExp(Lr,"g"),In=new RegExp(r("[^]",Qe,"[\\.]",'[\\"]',Et),"g"),Ei=new RegExp(r("[^]",it,Pn),"g"),no=Ei;function Fn(F){var T=ct(F);return T.match(ro)?T:F}var _i={scheme:"mailto",parse:function(T,j){var H=T,G=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var le=!1,ke={},Se=H.query.split("&"),qe=0,d=Se.length;qe<d;++qe){var ie=Se[qe].split("=");switch(ie[0]){case"to":for(var Le=ie[1].split(","),je=0,Ge=Le.length;je<Ge;++je)G.push(Le[je]);break;case"subject":H.subject=er(ie[1],j);break;case"body":H.body=er(ie[1],j);break;default:le=!0,ke[er(ie[0],j)]=er(ie[1],j);break}}le&&(H.headers=ke)}H.query=void 0;for(var z=0,Ke=G.length;z<Ke;++z){var Be=G[z].split("@");if(Be[0]=er(Be[0]),j.unicodeSupport)Be[1]=er(Be[1],j).toLowerCase();else try{Be[1]=vt.toASCII(er(Be[1],j).toLowerCase())}catch(jr){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+jr}G[z]=Be.join("@")}return H},serialize:function(T,j){var H=T,G=o(T.to);if(G){for(var le=0,ke=G.length;le<ke;++le){var Se=String(G[le]),qe=Se.lastIndexOf("@"),d=Se.slice(0,qe).replace(Cr,Fn).replace(Cr,i).replace(In,ut),ie=Se.slice(qe+1);try{ie=j.iri?vt.toUnicode(ie):vt.toASCII(er(ie,j).toLowerCase())}catch(z){H.error=H.error||"Email address's domain name can not be converted to "+(j.iri?"Unicode":"ASCII")+" via punycode: "+z}G[le]=d+"@"+ie}H.path=G.join(",")}var Le=T.headers=T.headers||{};T.subject&&(Le.subject=T.subject),T.body&&(Le.body=T.body);var je=[];for(var Ge in Le)Le[Ge]!==xr[Ge]&&je.push(Ge.replace(Cr,Fn).replace(Cr,i).replace(Ei,ut)+"="+Le[Ge].replace(Cr,Fn).replace(Cr,i).replace(no,ut));return je.length&&(H.query=je.join("&")),H}},Gn=/^([^\:]+)\:(.*)/,mn={scheme:"urn",parse:function(T,j){var H=T.path&&T.path.match(Gn),G=T;if(H){var le=j.scheme||G.scheme||"urn",ke=H[1].toLowerCase(),Se=H[2],qe=le+":"+(j.nid||ke),d=nt[qe];G.nid=ke,G.nss=Se,G.path=void 0,d&&(G=d.parse(G,j))}else G.error=G.error||"URN can not be parsed.";return G},serialize:function(T,j){var H=j.scheme||T.scheme||"urn",G=T.nid,le=H+":"+(j.nid||G),ke=nt[le];ke&&(T=ke.serialize(T,j));var Se=T,qe=T.nss;return Se.path=(G||j.nid)+":"+qe,Se}},io=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,hn={scheme:"urn:uuid",parse:function(T,j){var H=T;return H.uuid=H.nss,H.nss=void 0,!j.tolerant&&(!H.uuid||!H.uuid.match(io))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(T,j){var H=T;return H.nss=(T.uuid||"").toLowerCase(),H}};nt[K.scheme]=K,nt[re.scheme]=re,nt[Ae.scheme]=Ae,nt[xt.scheme]=xt,nt[_i.scheme]=_i,nt[mn.scheme]=mn,nt[hn.scheme]=hn,t.SCHEMES=nt,t.pctEncChar=ut,t.pctDecChars=ct,t.parse=zt,t.removeDotSegments=dt,t.serialize=kt,t.resolveComponents=Or,t.resolve=qr,t.normalize=Dr,t.equal=Nr,t.escapeComponent=Rr,t.unescapeComponent=er,Object.defineProperty(t,"__esModule",{value:!0})})});var xo=ce(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.getSchemaRefs=mr.resolveUrl=mr.normalizeId=mr._getFullPath=mr.getFullPath=mr.inlineRef=void 0;var Fg=lt(),Og=ko(),qg=Gc(),ys=Za(),Dg=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Ng(t,r=!0){return typeof t=="boolean"?!0:r===!0?!Ja(t):r?Wc(t)<=r:!1}mr.inlineRef=Ng;var Rg=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ja(t){for(let r in t){if(Rg.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(Ja)||typeof e=="object"&&Ja(e))return!0}return!1}function Wc(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!Dg.has(e)&&(typeof t[e]=="object"&&Fg.eachItem(t[e],n=>r+=Wc(n)),r===1/0))return 1/0}return r}function Zc(t="",r){r!==!1&&(t=Vi(t));let e=ys.parse(t);return Jc(e)}mr.getFullPath=Zc;function Jc(t){return ys.serialize(t).split("#")[0]+"#"}mr._getFullPath=Jc;var Lg=/#\/?$/;function Vi(t){return t?t.replace(Lg,""):""}mr.normalizeId=Vi;function jg(t,r){return r=Vi(r),ys.resolve(t,r)}mr.resolveUrl=jg;var Bg=/^[a-z_][-a-z0-9._]*$/i;function zg(t){if(typeof t=="boolean")return{};let r=Vi(t.$id),e={"":r},n=Zc(r,!1),i={},o=new Set;return qg(t,{allKeys:!0},(c,m,p,b)=>{if(b===void 0)return;let v=n+m,w=e[b];typeof c.$id=="string"&&(w=x.call(this,c.$id)),P.call(this,c.$anchor),P.call(this,c.$dynamicAnchor),e[m]=w;function x(N){if(N=Vi(w?ys.resolve(w,N):N),o.has(N))throw u(N);o.add(N);let D=this.refs[N];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?a(c,D.schema,N):N!==Vi(v)&&(N[0]==="#"?(a(c,i[N],N),i[N]=c):this.refs[N]=v),N}function P(N){if(typeof N=="string"){if(!Bg.test(N))throw new Error(`invalid anchor "${N}"`);x.call(this,`#${N}`)}}}),i;function a(c,m,p){if(m!==void 0&&!Og(c,m))throw u(p)}function u(c){return new Error(`reference "${c}" resolves to more than one schema`)}}mr.getSchemaRefs=zg});var vr=ce(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.checkStrictMode=cn.schemaCxtHasRules=cn.subschemaCode=cn.validateFunctionCode=void 0;var ef=Ac(),Qc=Mi(),Xc=Vc(),Oe=Te(),Ee=Wr(),Mg=xo(),tf=lt();function Vg(t){if(nf(t)&&(of(t),Qa(t))){Gg(t);return}rf(t,()=>ef.topBoolOrEmptySchema(t))}cn.validateFunctionCode=Vg;function rf({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Oe._`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code(Oe._`"use strict"; ${Yc(e,i)}`),Hg(t,i),t.code(o)}):t.func(r,Oe._`${Ee.default.data}, ${Ug(i)}`,n.$async,()=>t.code(Yc(e,i)).code(o))}function Ug(t){return Oe._`{${Ee.default.dataPath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?Oe._`, ${Ee.default.dynamicAnchors}={}`:Oe.nil}}={}`}function Hg(t,r){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.dataPath,Oe._`${Ee.default.valCxt}.${Ee.default.dataPath}`),t.var(Ee.default.parentData,Oe._`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,Oe._`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,Oe._`${Ee.default.valCxt}.${Ee.default.rootData}`),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Oe._`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.dataPath,Oe._`""`),t.var(Ee.default.parentData,Oe._`undefined`),t.var(Ee.default.parentDataProperty,Oe._`undefined`),t.var(Ee.default.rootData,Ee.default.data),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Oe._`{}`)})}function Gg(t){let{schema:r,opts:e,gen:n}=t;rf(t,()=>{e.$comment&&r.$comment&&af(t),Qg(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),e.unevaluated&&Kg(t),sf(t),ey(t)})}function Kg(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Oe._`${e}.evaluated`),r.if(Oe._`${t.evaluated}.dynamicProps`,()=>r.assign(Oe._`${t.evaluated}.props`,Oe._`undefined`)),r.if(Oe._`${t.evaluated}.dynamicItems`,()=>r.assign(Oe._`${t.evaluated}.items`,Oe._`undefined`))}function Yc(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Oe._`/*# sourceURL=${t.$id} */`:Oe.nil}function Wg(t,r){if(nf(t)&&(of(t),Qa(t))){Zg(t,r);return}ef.boolOrEmptySchema(t,r)}cn.subschemaCode=Wg;function Qa({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}cn.schemaCxtHasRules=Qa;function nf(t){return typeof t.schema!="boolean"}function Zg(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&af(t),Xg(t),Yg(t);let o=n.const("_errs",Ee.default.errors);sf(t,o),n.var(r,Oe._`${o} === ${Ee.default.errors}`)}function of(t){tf.checkUnknownRules(t),Jg(t)}function sf(t,r){if(t.opts.jtd)return Xc.schemaKeywords(t,[],!1,r);let e=Qc.getSchemaTypes(t.schema),n=Qc.coerceAndCheckDataType(t,e);Xc.schemaKeywords(t,e,!n,r)}function Jg(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&tf.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function Qg(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&lf(t,"default is ignored in the schema root")}function Xg(t){t.schema.$id&&(t.baseId=Mg.resolveUrl(t.baseId,t.schema.$id))}function Yg(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function af({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Oe._`${Ee.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Oe.str`${n}/$comment`,u=t.scopeValue("root",{ref:r.root});t.code(Oe._`${Ee.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}function ey(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Oe._`${Ee.default.errors} === 0`,()=>r.return(Ee.default.data),()=>r.throw(Oe._`new ${i}(${Ee.default.vErrors})`)):(r.assign(Oe._`${n}.errors`,Ee.default.vErrors),o.unevaluated&&ty(t),r.return(Oe._`${Ee.default.errors} === 0`))}function ty({gen:t,evaluated:r,props:e,items:n}){e instanceof Oe.Name&&t.assign(Oe._`${r}.props`,e),n instanceof Oe.Name&&t.assign(Oe._`${r}.items`,n)}function lf(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}cn.checkStrictMode=lf});var lt=ce(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.func=Me.setEvaluated=Me.evaluatedPropsToName=Me.mergeEvaluated=Me.eachItem=Me.unescapeJsonPointer=Me.escapeJsonPointer=Me.escapeFragment=Me.unescapeFragment=Me.schemaRefOrVal=Me.schemaHasRulesButRef=Me.schemaHasRules=Me.checkUnknownRules=Me.alwaysValidSchema=Me.toHash=void 0;var ht=Te(),ry=vr();function ny(t){let r={};for(let e of t)r[e]=!0;return r}Me.toHash=ny;function iy(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(cf(t,r),!ff(r,t.self.RULES.all))}Me.alwaysValidSchema=iy;function cf(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let i=n.RULES.keywords;for(let o in r)i[o]||ry.checkStrictMode(t,`unknown keyword: "${o}"`)}Me.checkUnknownRules=cf;function ff(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}Me.schemaHasRules=ff;function oy(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}Me.schemaHasRulesButRef=oy;function sy({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return ht._`${e}`}return ht._`${t}${r}${ht.getProperty(n)}`}Me.schemaRefOrVal=sy;function ay(t){return df(decodeURIComponent(t))}Me.unescapeFragment=ay;function ly(t){return encodeURIComponent(pf(t))}Me.escapeFragment=ly;function pf(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Me.escapeJsonPointer=pf;function df(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Me.unescapeJsonPointer=df;function uy(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}Me.eachItem=uy;function uf({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof ht.Name?(o instanceof ht.Name?t(i,o,a):r(i,o,a),a):o instanceof ht.Name?(r(i,a,o),o):e(o,a);return u===ht.Name&&!(c instanceof ht.Name)?n(i,c):c}}Me.mergeEvaluated={props:uf({mergeNames:(t,r,e)=>t.if(ht._`${e} !== true && ${r} !== undefined`,()=>{t.if(ht._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,ht._`${e} || {}`).code(ht._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(ht._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,ht._`${e} || {}`),Xa(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:mf}),items:uf({mergeNames:(t,r,e)=>t.if(ht._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,ht._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(ht._`${e} !== true`,()=>t.assign(e,r===!0?!0:ht._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function mf(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",ht._`{}`);return r!==void 0&&Xa(t,e,r),e}Me.evaluatedPropsToName=mf;function Xa(t,r,e){Object.keys(e).forEach(n=>t.assign(ht._`${r}${ht.getProperty(n)}`,!0))}Me.setEvaluated=Xa;function cy(t,r){return t.scopeValue("func",{ref:r,code:r.code})}Me.func=cy});var Mi=ce(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;var fy=Ca(),py=Ea(),dy=wo(),_e=Te(),hf=lt(),Co;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Co=Rt.DataType||(Rt.DataType={}));function my(t){let r=gf(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}Rt.getSchemaTypes=my;function gf(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(","))}Rt.getJSONTypes=gf;function hy(t,r){let{gen:e,data:n,opts:i}=t,o=gy(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&py.schemaHasRulesForType(t,r[0]));if(a){let u=el(r,n,i.strict,Co.Wrong);e.if(u,()=>{o.length?yy(t,r,o):tl(t)})}return a}Rt.coerceAndCheckDataType=hy;var yf=new Set(["string","number","integer","boolean","null"]);function gy(t,r){return r?t.filter(e=>yf.has(e)||r==="array"&&e==="array"):[]}function yy(t,r,e){let{gen:n,data:i,opts:o}=t,a=n.let("dataType",_e._`typeof ${i}`),u=n.let("coerced",_e._`undefined`);o.coerceTypes==="array"&&n.if(_e._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,_e._`${i}[0]`).assign(a,_e._`typeof ${i}`).if(el(r,i,o.strict),()=>n.assign(u,i))),n.if(_e._`${u} !== undefined`);for(let m of e)(yf.has(m)||m==="array"&&o.coerceTypes==="array")&&c(m);n.else(),tl(t),n.endIf(),n.if(_e._`${u} !== undefined`,()=>{n.assign(i,u),by(t,u)});function c(m){switch(m){case"string":n.elseIf(_e._`${a} == "number" || ${a} == "boolean"`).assign(u,_e._`"" + ${i}`).elseIf(_e._`${i} === null`).assign(u,_e._`""`);return;case"number":n.elseIf(_e._`${a} == "boolean" || ${i} === null
3
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,_e._`+${i}`);return;case"integer":n.elseIf(_e._`${a} === "boolean" || ${i} === null
4
+ || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,_e._`+${i}`);return;case"boolean":n.elseIf(_e._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf(_e._`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf(_e._`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf(_e._`${a} === "string" || ${a} === "number"
5
+ || ${a} === "boolean" || ${i} === null`).assign(u,_e._`[${i}]`)}}}function by({gen:t,parentData:r,parentDataProperty:e},n){t.if(_e._`${r} !== undefined`,()=>t.assign(_e._`${r}[${e}]`,n))}function Ya(t,r,e,n=Co.Correct){let i=n===Co.Correct?_e.operators.EQ:_e.operators.NEQ,o;switch(t){case"null":return _e._`${r} ${i} null`;case"array":o=_e._`Array.isArray(${r})`;break;case"object":o=_e._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=a(_e._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=a();break;default:return _e._`typeof ${r} ${i} ${t}`}return n===Co.Correct?o:_e.not(o);function a(u=_e.nil){return _e.and(_e._`typeof ${r} == "number"`,u,e?_e._`isFinite(${r})`:_e.nil)}}Rt.checkDataType=Ya;function el(t,r,e,n){if(t.length===1)return Ya(t[0],r,e,n);let i,o=hf.toHash(t);if(o.array&&o.object){let a=_e._`typeof ${r} != "object"`;i=o.null?a:_e._`!${r} || ${a}`,delete o.null,delete o.array,delete o.object}else i=_e.nil;o.number&&delete o.integer;for(let a in o)i=_e.and(i,Ya(a,r,e,n));return i}Rt.checkDataTypes=el;var $y={message:({schema:t})=>_e.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?_e._`{type: ${t}}`:_e._`{type: ${r}}`};function tl(t){let r=wy(t);dy.reportError(r,$y)}Rt.reportTypeError=tl;function wy(t){let{gen:r,data:e,schema:n}=t,i=hf.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var vo=ce(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.getData=void 0;var bf=Mi(),bs=lt(),Eo=wo(),$t=Te(),rl=Wr(),vy=li(),nl=class{constructor(r,e,n){if(xy(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=bs.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",$f(this.$data,r));else if(this.schemaCode=this.schemaValue,!ky(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",rl.default.errors))}result(r,e,n){this.gen.if($t.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($t._`${e} !== undefined && (${$t.or(this.invalid$data(),r)})`)}error(r){(r?Eo.reportExtraError:Eo.reportError)(this,this.def.error)}$dataError(){Eo.reportError(this,this.def.$dataError||Eo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Eo.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=$t.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=$t.nil,e=$t.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if($t.or($t._`${i} === undefined`,e)),r!==$t.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==$t.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return $t.or(a(),u());function a(){if(n.length){if(!(e instanceof $t.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return $t._`${bf.checkDataTypes(c,e,o.opts.strict,bf.DataType.Wrong)}`}return $t.nil}function u(){if(i.validateSchema){let c=r.scopeValue("validate$data",{ref:i.validateSchema});return $t._`!${c}(${e})`}return $t.nil}}subschema(r,e){return vy.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=bs.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=bs.mergeEvaluated.items(i,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(e,()=>this.mergeEvaluated(r,$t.Name)),!0}};_o.default=nl;function ky(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 xy({schema:t,opts:r,self:e},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[i])){let u="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(u);else throw new Error(u)}}var Cy=/^\/(?:[^~]|~0|~1)*$/,Ey=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $f(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return rl.default.rootData;if(t[0]==="/"){if(!Cy.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=rl.default.rootData}else{let m=Ey.exec(t);if(!m)throw new Error(`Invalid JSON-pointer: ${t}`);let p=+m[1];if(i=m[2],i==="#"){if(p>=r)throw new Error(c("property/index",p));return n[r-p]}if(p>r)throw new Error(c("data",p));if(o=e[r-p],!i)return o}let a=o,u=i.split("/");for(let m of u)m&&(o=$t._`${o}${$t.getProperty(bs.unescapeJsonPointer(m))}`,a=$t._`${a} && ${o}`);return a;function c(m,p){return`Cannot access ${m} ${p} levels up, current level is ${r}`}}_o.getData=$f});var vs=ce((Ui,wf)=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.MissingRefError=Ui.ValidationError=void 0;var il=xo(),$s=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};Ui.ValidationError=$s;var ws=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=il.resolveUrl(r,e),this.missingSchema=il.normalizeId(il.getFullPath(this.missingRef))}};Ui.MissingRefError=ws;wf.exports={ValidationError:$s,MissingRefError:ws}});var al=ce(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.resolveSchema=Ir.getCompilingSchema=Ir.resolveRef=Ir.compileSchema=Ir.SchemaEnv=void 0;var Jr=Te(),_y=vs(),ci=Wr(),Qr=xo(),vf=lt(),Ay=vr(),Sy=Za(),Hi=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:Qr.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={}}};Ir.SchemaEnv=Hi;function sl(t){let r=kf.call(this,t);if(r)return r;let e=Qr.getFullPath(t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Jr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;t.$async&&(u=a.scopeValue("Error",{ref:_y.ValidationError,code:Jr._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=a.scopeName("validate");t.validateName=c;let m={gen:a,allErrors:this.opts.allErrors,data:ci.default.data,parentData:ci.default.parentData,parentDataProperty:ci.default.parentDataProperty,dataNames:[ci.default.data],dataPathArr:[Jr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:Jr.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:Jr.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:Jr._`""`,opts:this.opts,self:this},p;try{this._compilations.add(t),Ay.validateFunctionCode(m),a.optimize(this.opts.code.optimize);let b=a.toString();p=`${a.scopeRefs(ci.default.scope)}return ${b}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let w=new Function(`${ci.default.self}`,`${ci.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:w}),w.errors=null,w.schema=t.schema,w.schemaEnv=t,t.$async&&(w.$async=!0),this.opts.code.source===!0&&(w.source={validateName:c,validateCode:b,scopeValues:a._values}),this.opts.unevaluated){let{props:x,items:P}=m;w.evaluated={props:x instanceof Jr.Name?void 0:x,items:P instanceof Jr.Name?void 0:P,dynamicProps:x instanceof Jr.Name,dynamicItems:P instanceof Jr.Name},w.source&&(w.source.evaluated=Jr.stringify(w.evaluated))}return t.validate=w,t}catch(b){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),b}finally{this._compilations.delete(t)}}Ir.compileSchema=sl;function Ty(t,r,e){var n;e=Qr.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=Fy.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new Hi({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=Py.call(this,o)}Ir.resolveRef=Ty;function Py(t){return Qr.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:sl.call(this,t)}function kf(t){for(let r of this._compilations)if(Iy(r,t))return r}Ir.getCompilingSchema=kf;function Iy(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function Fy(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||ks.call(this,t,r)}function ks(t,r){let e=Sy.parse(r),n=Qr._getFullPath(e),i=Qr.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return ol.call(this,e,t);let o=Qr.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=ks.call(this,t,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:ol.call(this,e,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||sl.call(this,a),o===Qr.normalizeId(r)){let{schema:u}=a;return u.$id&&(i=Qr.resolveUrl(i,u.$id)),new Hi({schema:u,root:t,baseId:i})}return ol.call(this,e,a)}}Ir.resolveSchema=ks;var Oy=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ol(t,{baseId:r,schema:e,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[vf.unescapeFragment(a)],e===void 0))return;!Oy.has(a)&&typeof e=="object"&&e.$id&&(r=Qr.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!vf.schemaHasRulesButRef(e,this.RULES)){let a=Qr.resolveUrl(r,e.$ref);o=ks.call(this,n,a)}if(o=o||new Hi({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var xf=ce((z1,qy)=>{qy.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 Sf=ce(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.CodeGen=Lt.Name=Lt.nil=Lt.stringify=Lt.str=Lt._=Lt.KeywordCxt=void 0;var Dy=vo();Lt.KeywordCxt=Dy.default;var Gi=Te();Object.defineProperty(Lt,"_",{enumerable:!0,get:function(){return Gi._}});Object.defineProperty(Lt,"str",{enumerable:!0,get:function(){return Gi.str}});Object.defineProperty(Lt,"stringify",{enumerable:!0,get:function(){return Gi.stringify}});Object.defineProperty(Lt,"nil",{enumerable:!0,get:function(){return Gi.nil}});Object.defineProperty(Lt,"Name",{enumerable:!0,get:function(){return Gi.Name}});Object.defineProperty(Lt,"CodeGen",{enumerable:!0,get:function(){return Gi.CodeGen}});var cl=vs(),Ny=Ca(),Ao=al(),Ry=Te(),xs=xo(),Cs=Mi(),ul=lt(),Cf=xf(),Ly=["removeAdditional","useDefaults","coerceTypes"],jy=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),By={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."},zy={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function My(t){var r,e,n,i,o,a,u,c,m,p,b,v;let w=(r=t.strict)!==null&&r!==void 0?r:!0,x=w?"log":!1,P=(e=t.code)===null||e===void 0?void 0:e.optimize,N=P===!0||P===void 0?1:P||0;return{strict:w,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:x,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:x,code:t.code?{...t.code,optimize:N}:{optimize:N},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(a=t.loopEnum)!==null&&a!==void 0?a:1/0,meta:(u=t.meta)!==null&&u!==void 0?u:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(p=t.addUsedSchema)!==null&&p!==void 0?p:!0,validateSchema:(b=t.validateSchema)!==null&&b!==void 0?b:!0,validateFormats:(v=t.validateFormats)!==null&&v!==void 0?v:!0}}var So=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...My(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new Ry.ValueScope({scope:{},prefixes:jy,es5:e,lines:n}),this.logger=Wy(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=Ny.getRules(),Ef.call(this,By,r,"NOT SUPPORTED"),Ef.call(this,zy,r,"DEPRECATED","warn"),this._metaOpts=Gy.call(this),r.formats&&Uy.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&Hy.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),Vy.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(Cf,Cf.$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 i=n(e);return"$async"in n||(this.errors=n.errors),i}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 i.call(this,r,e);async function i(p,b){await o.call(this,p.$schema);let v=this._addSchema(p,b);return v.validate||a.call(this,v)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(b){if(!(b instanceof cl.MissingRefError))throw b;return u.call(this,b),await c.call(this,b.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:b}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${b} cannot be resolved`)}async function c(p){let b=await m.call(this,p);this.refs[p]||await o.call(this,b.$schema),this.refs[p]||this.addSchema(b,p,e)}async function m(p){let b=this._loading[p];if(b)return b;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(r,e,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let a of r)this.addSchema(a,void 0,n,i);return this}let o;if(typeof r=="object"&&(o=r.$id,o!==void 0&&typeof o!="string"))throw new Error("schema id must be string");return e=xs.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,i,!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 i=this.validate(n,r);if(!i&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(r){let e;for(;typeof(e=_f.call(this,r))=="string";)r=e;if(e===void 0){let n=new Ao.SchemaEnv({schema:{}});if(e=Ao.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=_f.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=xs.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(Jy.call(this,n,e),!e)return ul.eachItem(n,o=>ll.call(this,o)),this;Xy.call(this,e);let i={...e,type:Cs.getJSONTypes(e.type),schemaType:Cs.getJSONTypes(e.schemaType)};return ul.eachItem(n,i.type.length===0?o=>ll.call(this,o,i):o=>i.type.forEach(a=>ll.call(this,o,i,a))),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 i=n.rules.findIndex(o=>o.keyword===r);i>=0&&n.rules.splice(i,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(i=>`${n}${i.dataPath} ${i.message}`).reduce((i,o)=>i+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of e){let o=i.split("/").slice(1),a=r;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:m}=c.definition,p=a[u];m&&p&&(a[u]=Af(p))}}return r}_removeAllSchemas(r,e){for(let n in r){let i=r[n];(!e||e.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,i=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(r);if(o!==void 0)return o;let a=xs.getSchemaRefs.call(this,r);o=new Ao.SchemaEnv({schema:r,meta:e,localRefs:a}),this._cache.set(o.schema,o);let u=o.baseId;return i&&!u.startsWith("#")&&(u&&this._checkUnique(u),this.refs[u]=o),n&&this.validateSchema(r,!0),o}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Ao.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{Ao.compileSchema.call(this,r)}finally{this.opts=e}}};Lt.default=So;So.ValidationError=cl.ValidationError;So.MissingRefError=cl.MissingRefError;function Ef(t,r,e,n="error"){for(let i in t){let o=i;o in r&&this.logger[n](`${e}: option ${i}. ${t[o]}`)}}function _f(t){return t=xs.normalizeId(t),this.schemas[t]||this.refs[t]}function Vy(){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 Uy(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function Hy(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 Gy(){let t={...this.opts};for(let r of Ly)delete t[r];return t}var Ky={log(){},warn(){},error(){}};function Wy(t){if(t===!1)return Ky;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 Zy=/^[a-z_$][a-z0-9_$:-]*$/i;function Jy(t,r){let{RULES:e}=this;if(ul.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Zy.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 ll(t,r,e){var n;let i=r==null?void 0:r.post;if(e&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let u={keyword:t,definition:{...r,type:Cs.getJSONTypes(r.type),schemaType:Cs.getJSONTypes(r.schemaType)}};r.before?Qy.call(this,a,u,r.before):a.rules.push(u),o.all[t]=u,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Qy(t,r,e){let n=t.rules.findIndex(i=>i.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Xy(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=Af(r)),t.validateSchema=this.compile(r,!0))}var Yy={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Af(t){return{anyOf:[t,Yy]}}});var Tf=ce(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var eb={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};fl.default=eb});var Of=ce(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.callRef=fi.getValidate=void 0;var tb=vs(),Pf=Zr(),hr=Te(),Ki=Wr(),If=al(),Es=lt(),rb={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n;if(e==="#"||e==="#/")return p();let m=If.resolveRef.call(c,o.root,i,e);if(m===void 0)throw new tb.MissingRefError(i,e);if(m instanceof If.SchemaEnv)return b(m);return v(m);function p(){if(o===o.root)return _s(t,a,o,o.$async);let w=r.scopeValue("root",{ref:o.root});return _s(t,hr._`${w}.validate`,o.root,o.root.$async)}function b(w){let x=Ff(t,w);_s(t,x,w,w.$async)}function v(w){let x=r.scopeValue("schema",u.code.source===!0?{ref:w,code:hr.stringify(w)}:{ref:w}),P=r.name("valid"),N=t.subschema({schema:w,dataTypes:[],schemaPath:hr.nil,topSchemaRef:x,errSchemaPath:e},P);t.mergeEvaluated(N),t.ok(P)}}};function Ff(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):hr._`${e.scopeValue("wrapper",{ref:r})}.validate`}fi.getValidate=Ff;function _s(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:u,opts:c}=o,m=c.passContext?Ki.default.this:hr.nil;n?p():b();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let x=i.let("valid");i.try(()=>{i.code(hr._`await ${Pf.callValidateCode(t,r,m)}`),w(r),a||i.assign(x,!0)},P=>{i.if(hr._`!(${P} instanceof ${o.ValidationError})`,()=>i.throw(P)),v(P),a||i.assign(x,!1)}),t.ok(x)}function b(){t.result(Pf.callValidateCode(t,r,m),()=>w(r),()=>v(r))}function v(x){let P=hr._`${x}.errors`;i.assign(Ki.default.vErrors,hr._`${Ki.default.vErrors} === null ? ${P} : ${Ki.default.vErrors}.concat(${P})`),i.assign(Ki.default.errors,hr._`${Ki.default.vErrors}.length`)}function w(x){var P;if(!o.opts.unevaluated)return;let N=(P=e==null?void 0:e.validate)===null||P===void 0?void 0:P.evaluated;if(o.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(o.props=Es.mergeEvaluated.props(i,N.props,o.props));else{let D=i.var("props",hr._`${x}.evaluated.props`);o.props=Es.mergeEvaluated.props(i,D,o.props,hr.Name)}if(o.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(o.items=Es.mergeEvaluated.items(i,N.items,o.items));else{let D=i.var("items",hr._`${x}.evaluated.items`);o.items=Es.mergeEvaluated.items(i,D,o.items,hr.Name)}}}fi.callRef=_s;fi.default=rb});var qf=ce(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var nb=Tf(),ib=Of(),ob=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",nb.default,ib.default];pl.default=ob});var Df=ce(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var As=Te(),Ln=As.operators,Ss={maximum:{okStr:"<=",ok:Ln.LTE,fail:Ln.GT},minimum:{okStr:">=",ok:Ln.GTE,fail:Ln.LT},exclusiveMaximum:{okStr:"<",ok:Ln.LT,fail:Ln.GTE},exclusiveMinimum:{okStr:">",ok:Ln.GT,fail:Ln.LTE}},sb={message:({keyword:t,schemaCode:r})=>As.str`should be ${Ss[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>As._`{comparison: ${Ss[t].okStr}, limit: ${r}}`},ab={keyword:Object.keys(Ss),type:"number",schemaType:"number",$data:!0,error:sb,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(As._`${e} ${Ss[r].fail} ${n} || isNaN(${e})`)}};dl.default=ab});var Nf=ce(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var To=Te(),lb={message:({schemaCode:t})=>To.str`should be multiple of ${t}`,params:({schemaCode:t})=>To._`{multipleOf: ${t}}`},ub={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:lb,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),u=o?To._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:To._`${a} !== parseInt(${a})`;t.fail$data(To._`(${n} === 0 || (${a} = ${e}/${n}, ${u}))`)}};ml.default=ub});var Rf=ce(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});function cb(t){let r=t.length,e=0,n=0,i;for(;n<r;)e++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<r&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return e}hl.default=cb});var Lf=ce(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var jn=Te(),fb=Rf(),pb={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return jn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>jn._`{limit: ${t}}`},db={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:pb,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?jn.operators.GT:jn.operators.LT,a;if(i.opts.unicode===!1)a=jn._`${e}.length`;else{let u=t.gen.scopeValue("func",{ref:fb.default,code:jn._`require("ajv/dist/compile/ucs2length").default`});a=jn._`${u}(${e})`}t.fail$data(jn._`${a} ${o} ${n}`)}};gl.default=db});var jf=ce(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var mb=Zr(),Ts=Te(),hb={message:({schemaCode:t})=>Ts.str`should match pattern "${t}"`,params:({schemaCode:t})=>Ts._`{pattern: ${t}}`},gb={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:hb,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?Ts._`(new RegExp(${o}, "u"))`:mb.usePattern(r,i);t.fail$data(Ts._`!${a}.test(${e})`)}};yl.default=gb});var Bf=ce(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var Po=Te(),yb={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Po.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Po._`{limit: ${t}}`},bb={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:yb,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?Po.operators.GT:Po.operators.LT;t.fail$data(Po._`Object.keys(${e}).length ${i} ${n}`)}};bl.default=bb});var zf=ce($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Io=Zr(),Fo=Te(),$b=vr(),wb={message:({params:{missingProperty:t}})=>Fo.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>Fo._`{missingProperty: ${t}}`},vb={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wb,code(t){let{gen:r,schema:e,schemaCode:n,data:i,$data:o,it:a}=t,{opts:u}=a;if(!o&&e.length===0)return;let c=e.length>=u.loopRequired;if(a.allErrors?m():p(),u.strictRequired){let w=t.parentSchema.properties,{definedProperties:x}=t.it;for(let P of e)if((w==null?void 0:w[P])===void 0&&!x.has(P)){let N=a.schemaEnv.baseId+a.errSchemaPath,D=`required property "${P}" is not defined at "${N}" (strictRequired)`;$b.checkStrictMode(a,D,a.opts.strictRequired)}}function m(){if(c||o)t.block$data(Fo.nil,b);else for(let w of e)Io.checkReportMissingProp(t,w)}function p(){let w=r.let("missing");if(c||o){let x=r.let("valid",!0);t.block$data(x,()=>v(w,x)),t.ok(x)}else r.if(Io.checkMissingProp(t,e,w)),Io.reportMissingProp(t,w),r.else()}function b(){r.forOf("prop",n,w=>{t.setParams({missingProperty:w}),r.if(Io.noPropertyInData(r,i,w,u.ownProperties),()=>t.error())})}function v(w,x){t.setParams({missingProperty:w}),r.forOf(w,n,()=>{r.assign(x,Io.propertyInData(r,i,w,u.ownProperties)),r.if(Fo.not(x),()=>{t.error(),r.break()})},Fo.nil)}}};$l.default=vb});var Mf=ce(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Oo=Te(),kb={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return Oo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Oo._`{limit: ${t}}`},xb={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:kb,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?Oo.operators.GT:Oo.operators.LT;t.fail$data(Oo._`${e}.length ${i} ${n}`)}};wl.default=xb});var Vf=ce(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var vl=Mi(),Tt=Te(),Cb=ko(),Eb={message:({params:{i:t,j:r}})=>Tt.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Tt._`{i: ${t}, j: ${r}}`},_b={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Eb,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=t;if(!n&&!i)return;let c=r.let("valid"),m=o.items?vl.getSchemaTypes(o.items):[];t.block$data(c,p,Tt._`${a} === false`),t.ok(c);function p(){let x=r.let("i",Tt._`${e}.length`),P=r.let("j");t.setParams({i:x,j:P}),r.assign(c,!0),r.if(Tt._`${x} > 1`,()=>(b()?v:w)(x,P))}function b(){return m.length>0&&!m.some(x=>x==="object"||x==="array")}function v(x,P){let N=r.name("item"),D=vl.checkDataTypes(m,N,u.opts.strict,vl.DataType.Wrong),X=r.const("indices",Tt._`{}`);r.for(Tt._`;${x}--;`,()=>{r.let(N,Tt._`${e}[${x}]`),r.if(D,Tt._`continue`),m.length>1&&r.if(Tt._`typeof ${N} == "string"`,Tt._`${N} += "_"`),r.if(Tt._`typeof ${X}[${N}] == "number"`,()=>{r.assign(P,Tt._`${X}[${N}]`),t.error(),r.assign(c,!1).break()}).code(Tt._`${X}[${N}] = ${x}`)})}function w(x,P){let N=t.gen.scopeValue("func",{ref:Cb,code:Tt._`require("ajv/dist/compile/equal")`}),D=r.name("outer");r.label(D).for(Tt._`;${x}--;`,()=>r.for(Tt._`${P} = ${x}; ${P}--;`,()=>r.if(Tt._`${N}(${e}[${x}], ${e}[${P}])`,()=>{t.error(),r.assign(c,!1).break(D)})))}}};kl.default=_b});var Uf=ce(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var xl=Te(),Ab=ko(),Sb={message:"should be equal to constant",params:({schemaCode:t})=>xl._`{allowedValue: ${t}}`},Tb={keyword:"const",$data:!0,error:Sb,code(t){let r=t.gen.scopeValue("func",{ref:Ab,code:xl._`require("ajv/dist/compile/equal")`});t.fail$data(xl._`!${r}(${t.data}, ${t.schemaCode})`)}};Cl.default=Tb});var Hf=ce(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Wi=Te(),Pb=ko(),Ib={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>Wi._`{allowedValues: ${t}}`},Fb={keyword:"enum",schemaType:"array",$data:!0,error:Ib,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o,it:a}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c=t.gen.scopeValue("func",{ref:Pb,code:Wi._`require("ajv/dist/compile/equal")`}),m;if(u||n)m=r.let("valid"),t.block$data(m,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let v=r.const("vSchema",o);m=Wi.or(...i.map((w,x)=>b(v,x)))}t.pass(m);function p(){r.assign(m,!1),r.forOf("v",o,v=>r.if(Wi._`${c}(${e}, ${v})`,()=>r.assign(m,!0).break()))}function b(v,w){let x=i[w];return x&&typeof x=="object"?Wi._`${c}(${e}, ${v}[${w}])`:Wi._`${e} === ${x}`}}};El.default=Fb});var Gf=ce(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ob=Df(),qb=Nf(),Db=Lf(),Nb=jf(),Rb=Bf(),Lb=zf(),jb=Mf(),Bb=Vf(),zb=Uf(),Mb=Hf(),Vb=[Ob.default,qb.default,Db.default,Nb.default,Rb.default,Lb.default,jb.default,Bb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},zb.default,Mb.default];_l.default=Vb});var Kf=ce(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var pi=Te(),Ub=li(),Hb=lt(),Gb=vr(),Kb={message:({params:{len:t}})=>pi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>pi._`{limit: ${t}}`},Wb={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Kb,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){Gb.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let u=r.const("len",pi._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(pi._`${u} <= ${a.length}`);else if(typeof e=="object"&&!Hb.alwaysValidSchema(o,e)){let m=r.var("valid",pi._`${u} <= ${a.length}`);r.if(pi.not(m),()=>c(m)),t.ok(m)}function c(m){r.forRange("i",a.length,u,p=>{t.subschema({keyword:"additionalItems",dataProp:p,dataPropType:Ub.Type.Num},m),o.allErrors||r.if(pi.not(m),()=>r.break())})}}};Al.default=Wb});var Zf=ce(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Wf=Te(),Sl=lt(),Zb=vr(),Jb=Zr(),Qb={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=Sl.mergeEvaluated.items(r,e.length,n.items)),i(e);else{if(n.items=!0,Sl.alwaysValidSchema(n,e))return;t.ok(Jb.validateArray(t))}function i(o){let{parentSchema:a,data:u}=t;if(n.opts.strictTuples&&!Xb(o.length,a)){let p=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;Zb.checkStrictMode(n,p,n.opts.strictTuples)}let c=r.name("valid"),m=r.const("len",Wf._`${u}.length`);o.forEach((p,b)=>{Sl.alwaysValidSchema(n,p)||(r.if(Wf._`${m} > ${b}`,()=>t.subschema({keyword:"items",schemaProp:b,dataProp:b},c)),t.ok(c))})}}};function Xb(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Tl.default=Qb});var Qf=ce(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Xr=Te(),Yb=li(),e$=lt(),Jf=vr(),t$={message:({params:{min:t,max:r}})=>r===void 0?Xr.str`should contain at least ${t} valid item(s)`:Xr.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?Xr._`{minContains: ${t}}`:Xr._`{minContains: ${t}, maxContains: ${r}}`},r$={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:t$,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,u,{minContains:c,maxContains:m}=n;o.opts.next?(a=c===void 0?1:c,u=m):a=1;let p=r.const("len",Xr._`${i}.length`);if(t.setParams({min:a,max:u}),u===void 0&&a===0){Jf.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){Jf.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(e$.alwaysValidSchema(o,e)){let x=Xr._`${p} >= ${a}`;u!==void 0&&(x=Xr._`${x} && ${p} <= ${u}`),t.pass(x);return}o.items=!0;let b=r.name("valid");if(u===void 0&&a===1)v(b,()=>r.if(b,()=>r.break()));else{r.let(b,!1);let x=r.name("_valid"),P=r.let("count",0);v(x,()=>r.if(x,()=>w(P)))}t.result(b,()=>t.reset());function v(x,P){r.forRange("i",0,p,N=>{t.subschema({keyword:"contains",dataProp:N,dataPropType:Yb.Type.Num,compositeRule:!0},x),P()})}function w(x){r.code(Xr._`${x}++`),u===void 0?r.if(Xr._`${x} >= ${a}`,()=>r.assign(b,!0).break()):(r.if(Xr._`${x} > ${u}`,()=>r.assign(b,!1).break()),a===1?r.assign(b,!0):r.if(Xr._`${x} >= ${a}`,()=>r.assign(b,!0)))}}};Pl.default=r$});var ep=ce(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.validateSchemaDeps=fn.validatePropertyDeps=fn.error=void 0;var Il=Te(),n$=lt(),qo=Zr();fn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Il.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Il._`{property: ${t},
6
+ missingProperty: ${n},
7
+ depsCount: ${r},
8
+ deps: ${e}}`};var i$={keyword:"dependencies",type:"object",schemaType:"object",error:fn.error,code(t){let[r,e]=o$(t);Xf(t,r),Yf(t,e)}};function o$({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?r:e;i[n]=t[n]}return[r,e]}function Xf(t,r=t.schema){let{gen:e,data:n,it:i}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let a in r){let u=r[a];if(u.length===0)continue;let c=qo.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?e.if(c,()=>{for(let m of u)qo.checkReportMissingProp(t,m)}):(e.if(Il._`${c} && (${qo.checkMissingProp(t,u,o)})`),qo.reportMissingProp(t,o),e.else())}}fn.validatePropertyDeps=Xf;function Yf(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let u in r)n$.alwaysValidSchema(o,r[u])||(e.if(qo.propertyInData(e,n,u,o.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:u},a);t.mergeValidEvaluated(c,a)},()=>e.var(a,!0)),t.ok(a))}fn.validateSchemaDeps=Yf;fn.default=i$});var tp=ce(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Fl=Te(),s$=lt(),a$={message:({params:t})=>Fl.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Fl._`{propertyName: ${t.propertyName}}`},l$={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:a$,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(s$.alwaysValidSchema(i,e))return;let o=r.name("valid");r.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),r.if(Fl.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};Ol.default=l$});var Nl=ce(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var Ps=Zr(),Yr=Te(),u$=Wr(),c$=li(),ql=lt(),f$={message:"should NOT have additional properties",params:({params:t})=>Yr._`{additionalProperty: ${t.additionalProperty}}`},p$={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:f$,code(t){let{gen:r,schema:e,parentSchema:n,data:i,errsCount:o,it:a}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&ql.alwaysValidSchema(a,e))return;let m=Ps.allSchemaProperties(n.properties),p=Ps.allSchemaProperties(n.patternProperties);b(),t.ok(Yr._`${o} === ${u$.default.errors}`);function b(){r.forIn("key",i,N=>{!m.length&&!p.length?x(N):r.if(v(N),()=>x(N))})}function v(N){let D;if(m.length>8){let X=ql.schemaRefOrVal(a,n.properties,"properties");D=Ps.isOwnProperty(r,X,N)}else m.length?D=Yr.or(...m.map(X=>Yr._`${N} === ${X}`)):D=Yr.nil;return p.length&&(D=Yr.or(D,...p.map(X=>Yr._`${Ps.usePattern(r,X)}.test(${N})`))),Yr.not(D)}function w(N){r.code(Yr._`delete ${i}[${N}]`)}function x(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){w(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),u||r.break();return}if(typeof e=="object"&&!ql.alwaysValidSchema(a,e)){let D=r.name("valid");c.removeAdditional==="failing"?(P(N,D,!1),r.if(Yr.not(D),()=>{t.reset(),w(N)})):(P(N,D),u||r.if(Yr.not(D),()=>r.break()))}}function P(N,D,X){let ee={keyword:"additionalProperties",dataProp:N,dataPropType:c$.Type.Str};X===!1&&Object.assign(ee,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(ee,D)}}};Dl.default=p$});var ip=ce(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var d$=vo(),rp=Zr(),Rl=lt(),np=Nl(),m$={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&np.default.code(new d$.default(o,np.default,"additionalProperties"));let a=rp.allSchemaProperties(e);for(let b of a)o.definedProperties.add(b);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Rl.mergeEvaluated.props(r,Rl.toHash(a),o.props));let u=a.filter(b=>!Rl.alwaysValidSchema(o,e[b]));if(u.length===0)return;let c=r.name("valid");for(let b of u)m(b)?p(b):(r.if(rp.propertyInData(r,i,b,o.opts.ownProperties)),p(b),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add(b),t.ok(c);function m(b){return o.opts.useDefaults&&!o.compositeRule&&e[b].default!==void 0}function p(b){t.subschema({keyword:"properties",schemaProp:b,dataProp:b},c)}}};Ll.default=m$});var sp=ce(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var op=Zr(),Is=Te(),h$=li(),g$=vr(),y$=lt(),b$={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,u=op.schemaProperties(o,e);if(u.length===0)return;let c=a.strict&&!a.allowMatchingProperties&&i.properties,m=r.name("valid");o.props!==!0&&!(o.props instanceof Is.Name)&&(o.props=y$.evaluatedPropsToName(r,o.props));let{props:p}=o;b();function b(){for(let x of u)c&&v(x),o.allErrors?w(x):(r.var(m,!0),w(x),r.if(m))}function v(x){for(let P in c)new RegExp(x).test(P)&&g$.checkStrictMode(o,`property ${P} matches pattern ${x} (use allowMatchingProperties)`)}function w(x){r.forIn("key",n,P=>{r.if(Is._`${op.usePattern(r,x)}.test(${P})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:x,dataProp:P,dataPropType:h$.Type.Str},m),o.opts.unevaluated&&p!==!0?r.assign(Is._`${p}[${P}]`,!0):o.allErrors||r.if(Is.not(m),()=>r.break())})})}}};jl.default=b$});var ap=ce(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var $$=lt(),w$={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if($$.alwaysValidSchema(n,e)){t.fail();return}let i=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.result(i,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};Bl.default=w$});var lp=ce(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var v$=Zr(),k$={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:v$.validateUnion,error:{message:"should match some schema in anyOf"}};zl.default=k$});var up=ce(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Fs=Te(),x$=lt(),C$={message:"should match exactly one schema in oneOf",params:({params:t})=>Fs._`{passingSchemas: ${t.passing}}`},E$={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:C$,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let i=e,o=r.let("valid",!1),a=r.let("passing",null),u=r.name("_valid");t.setParams({passing:a}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){i.forEach((m,p)=>{let b;x$.alwaysValidSchema(n,m)?r.var(u,!0):b=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&r.if(Fs._`${u} && ${o}`).assign(o,!1).assign(a,Fs._`[${a}, ${p}]`).else(),r.if(u,()=>{r.assign(o,!0),r.assign(a,p),b&&t.mergeEvaluated(b,Fs.Name)})})}}};Ml.default=E$});var cp=ce(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var _$=lt(),A$={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 i=r.name("valid");e.forEach((o,a)=>{if(_$.alwaysValidSchema(n,o))return;let u=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(u)})}};Vl.default=A$});var pp=ce(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Os=Te(),S$=lt(),T$=vr(),P$={message:({params:t})=>Os.str`should match "${t.ifClause}" schema`,params:({params:t})=>Os._`{failingKeyword: ${t.ifClause}}`},I$={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:P$,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&T$.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=fp(n,"then"),o=fp(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),u=r.name("_valid");if(c(),t.reset(),i&&o){let p=r.let("ifClause");t.setParams({ifClause:p}),r.if(u,m("then",p),m("else",p))}else i?r.if(u,m("then")):r.if(Os.not(u),m("else"));t.pass(a,()=>t.error(!0));function c(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(p)}function m(p,b){return()=>{let v=t.subschema({keyword:p},u);r.assign(a,u),t.mergeValidEvaluated(v,a),b?r.assign(b,Os._`${p}`):t.setParams({ifClause:p})}}}};function fp(t,r){let e=t.schema[r];return e!==void 0&&!S$.alwaysValidSchema(t,e)}Ul.default=I$});var dp=ce(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var F$=vr(),O$={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&F$.checkStrictMode(e,`"${t}" without "if" is ignored`)}};Hl.default=O$});var mp=ce(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var q$=Kf(),D$=Zf(),N$=Qf(),R$=ep(),L$=tp(),j$=Nl(),B$=ip(),z$=sp(),M$=ap(),V$=lp(),U$=up(),H$=cp(),G$=pp(),K$=dp(),W$=[M$.default,V$.default,U$.default,H$.default,G$.default,K$.default,q$.default,D$.default,N$.default,L$.default,j$.default,R$.default,B$.default,z$.default];Gl.default=W$});var hp=ce(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var wt=Te(),Z$={message:({schemaCode:t})=>wt.str`should match format "${t}"`,params:({schemaCode:t})=>wt._`{format: ${t}}`},J$={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Z$,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:u}=t,{opts:c,errSchemaPath:m,schemaEnv:p,self:b}=u;if(!c.validateFormats)return;i?v():w();function v(){let x=e.scopeValue("formats",{ref:b.formats,code:c.code.formats}),P=e.const("fDef",wt._`${x}[${a}]`),N=e.let("fType"),D=e.let("format");e.if(wt._`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>e.assign(N,wt._`${P}.type || "string"`).assign(D,wt._`${P}.validate`),()=>e.assign(N,wt._`"string"`).assign(D,P)),t.fail$data(wt.or(X(),ee()));function X(){return c.strict===!1?wt.nil:wt._`${a} && !${D}`}function ee(){let de=p.$async?wt._`(${P}.async ? await ${D}(${n}) : ${D}(${n}))`:wt._`${D}(${n})`,fe=wt._`(typeof ${D} == "function" ? ${de} : ${D}.test(${n}))`;return wt._`${D} && ${D} !== true && ${N} === ${r} && !${fe}`}}function w(){let x=b.formats[o];if(!x){X();return}if(x===!0)return;let[P,N,D]=ee(x);P===r&&t.pass(de());function X(){if(c.strict===!1){b.logger.warn(fe());return}throw new Error(fe());function fe(){return`unknown format "${o}" ignored in schema at path "${m}"`}}function ee(fe){let Z=e.scopeValue("formats",{key:o,ref:fe,code:c.code.formats?wt._`${c.code.formats}${wt.getProperty(o)}`:void 0});return typeof fe=="object"&&!(fe instanceof RegExp)?[fe.type||"string",fe.validate,wt._`${Z}.validate`]:["string",fe,Z]}function de(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!p.$async)throw new Error("async format in sync schema");return wt._`await ${D}(${n})`}return typeof N=="function"?wt._`${D}(${n})`:wt._`${D}.test(${n})`}}}};Kl.default=J$});var gp=ce(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var Q$=hp(),X$=[Q$.default];Wl.default=X$});var yp=ce(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.contentVocabulary=Zi.metadataVocabulary=void 0;Zi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Zi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var $p=ce(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var Y$=qf(),ew=Gf(),tw=mp(),rw=gp(),bp=yp(),nw=[Y$.default,ew.default,tw.default,rw.default,bp.metadataVocabulary,bp.contentVocabulary];Zl.default=nw});var wp=ce((x0,iw)=>{iw.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 kp=ce(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.CodeGen=jt.Name=jt.nil=jt.stringify=jt.str=jt._=jt.KeywordCxt=void 0;var ow=vo();jt.KeywordCxt=ow.default;var Ji=Te();Object.defineProperty(jt,"_",{enumerable:!0,get:function(){return Ji._}});Object.defineProperty(jt,"str",{enumerable:!0,get:function(){return Ji.str}});Object.defineProperty(jt,"stringify",{enumerable:!0,get:function(){return Ji.stringify}});Object.defineProperty(jt,"nil",{enumerable:!0,get:function(){return Ji.nil}});Object.defineProperty(jt,"Name",{enumerable:!0,get:function(){return Ji.Name}});Object.defineProperty(jt,"CodeGen",{enumerable:!0,get:function(){return Ji.CodeGen}});var sw=Sf(),aw=$p(),vp=wp(),lw=["/properties"],qs="http://json-schema.org/draft-07/schema",Jl=class extends sw.default{_addVocabularies(){super._addVocabularies(),aw.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(vp,lw):vp;this.addMetaSchema(r,qs,!1),this.refs["http://json-schema.org/schema"]=qs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qs)?qs:void 0)}};jt.default=Jl});var Cp=ce((E0,xp)=>{var uw=Object.prototype.hasOwnProperty,cw=Object.prototype.toString;xp.exports=function(r,e,n){if(cw.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var o=0;o<i;o++)e.call(n,r[o],o,r);else for(var a in r)uw.call(r,a)&&e.call(n,r[a],a,r)}});var _p=ce((_0,Ep)=>{"use strict";var fw=Cp();Ep.exports=Xe;function Xe(t,r,e){if(arguments.length===3)return Xe.set(t,r,e);if(arguments.length===2)return Xe.get(t,r);var n=Xe.bind(Xe,t);for(var i in Xe)Xe.hasOwnProperty(i)&&(n[i]=Xe[i].bind(n,t));return n}Xe.get=function(r,e){for(var n=Array.isArray(e)?e:Xe.parse(e),i=0;i<n.length;++i){var o=n[i];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};Xe.set=function(r,e,n){var i=Array.isArray(e)?e:Xe.parse(e),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var u=i[a];u==="__proto__"||u==="constructor"||u==="prototype"||(u==="-"&&Array.isArray(r)&&(u=r.length),o=i[a+1],u in r||(o.match(/^(\d+|-)$/)?r[u]=[]:r[u]={}),r=r[u])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};Xe.remove=function(t,r){var e=Array.isArray(r)?r:Xe.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=Xe.get(t,e.slice(0,-1));if(Array.isArray(i)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(i,o,1)}else delete i[n]};Xe.dict=function(r,e){var n={};return Xe.walk(r,function(i,o){n[o]=i},e),n};Xe.walk=function(r,e,n){var i=[];n=n||function(o){var a=Object.prototype.toString.call(o);return a==="[object Object]"||a==="[object Array]"},function o(a){fw(a,function(u,c){i.push(String(c)),n(u)?o(u):e(u,Xe.compile(i)),i.pop()})}(r)};Xe.has=function(r,e){try{Xe.get(r,e)}catch{return!1}return!0};Xe.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Xe.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};Xe.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(Xe.unescape)};Xe.compile=function(r){return r.length===0?"":"/"+r.map(Xe.escape).join("/")}});var Ap=ce((A0,pw)=>{pw.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var Sp=ce((S0,dw)=>{dw.exports={$ref:"#/definitions/AstTree",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:2,maxItems:2},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},text:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Tp=ce((T0,mw)=>{mw.exports={$ref:"#/definitions/RootBlock",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:2,maxItems:2},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},text:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var Pp=ce(Ds=>{Ds.Test=Ap();Ds.AstTree=Sp();Ds.PodliteDocument=Tp()});var Fp={};xa(Fp,{is:()=>Ip,makePlug:()=>Qi,makeRule:()=>_n,makeRulesArray:()=>Ns});function Ip(t,r){function e(i){for(var o in i)if(i.hasOwnProperty(o))return!1;return!0}if(e(t))return!0;for(var n in t)if(t===void 0&&console.warn("[pod6] undefined key!!!"),t.hasOwnProperty(n))if(r===void 0&&console.warn("[pod6] undefined node!!!"),r&&r.hasOwnProperty(n)){if(t[n]!==r[n])return!1}else return!1;return!0}var hw,Qi,_n,Ns,Do=bh(()=>{hw=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}},Qi=t=>{let r=hw(t),{name:e,type:n}=r;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};_n=(t,r)=>{return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:Ip(t,i)}},Ns=(t,r)=>{if(t instanceof Array)return t.reduce((n,i)=>(n.push(...Ns(i)),n),[]);if(t instanceof Object){let n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(_n(Qi(e),t[e]));return n}return[_n(Qi(t),r)]}});var Wp=ce((ox,Kp)=>{"use strict";function vw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function hi(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,hi)}vw(hi,Error);hi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,v;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,v=1;b<p.length;b++)p[b-1]!==p[b]&&(p[v]=p[b],v++);p.length=v}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function kw(t,r){r=r!==void 0?r:{};var e={},n={Document:lc},i=lc,o=function(l){return l},a=function(){return!!r.podMode},u=function(l){return l},c=Xm(),m=function(){return{text:Sr(),type:"ambient",location:nr()}},p=/^[ \xA0\u2001\t\f\u2008]/,b=yt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),v=/^[ \t\f]/,w=yt([" "," ","\f"],!1,!1),x=/^[\n\r]/,P=yt([`
9
+ `,"\r"],!1,!1),N=function(l){return l},D=/^[^\n\r]/,X=yt([`
3
10
  `,"\r"],!0,!1),ee=`
4
11
  `,de=tt(`
5
- `,!1),fe="\r",Z=tt("\r",!1),me=function(){return{type:"blankline"}},we="=begin ",ke=tt("=begin ",!1),Fe="=end ",Ce=tt("=end ",!1),xe="=for ",ce=tt("=for ",!1),$e="=config",Ge=tt("=config",!1),U="=alias",st=tt("=alias",!1),je=function(l){return Vh(l)},et=function(l){return l},He="=",F=tt("=",!1),q=cs("text"),zt=function(){return Or()},kt=function(){return{type:"para",value:Or(),error:!0,location:or()}},nt=function(l,f){return Hi([l,f])},ut=function(l){return[l]},ct=",",ve=tt(",",!1),wr=function(l,f){return Hi([l,f])},xt=/^[a-zA-Z0-9]/,Ft=yt([["a","z"],["A","Z"],["0","9"]],!1,!1),tr=/^[a-zA-Z0-9_\-]/,fr=yt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Vt="=>",Wn=tt("=>",!1),Fn=function(l,f){return{[l]:f}},ft=function(l,f){return{...l,...f}},pt=function(l){return l},qt=":",dt=tt(":",!1),_t="allow",Rr=tt("allow",!1),jr="<",Lr=tt("<",!1),Br=">",Mr=tt(">",!1),rr=function(l,f){return{value:f,type:"array"}},K=function(l,f){return{name:"allow",...f}},ne=function(l){return l},ge=function(l){return l},Se=function(l){return[l]},Ct=function(){return[]},Ar=/^[!]/,ze=yt(["!"],!1,!1),it="{",mt=tt("{",!1),zr="}",Xe=tt("}",!1),nn=function(l,f,g){return{value:g}},Et="[",qn=tt("[",!1),co=function(l,f,g){return g},Sr="]",Dn=tt("]",!1),qi=function(l,f){return[Or()]},fo=function(l,f,g){return{value:g,type:"array"}},Nn=function(l,f,g){return{value:g,type:"array"}},Di=function(l,f,g){return{value:g,type:"string"}},Zn="(",gn=tt("(",!1),po=function(l,f,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},yn=")",O=tt(")",!1),P=function(l,f){return{value:Or()}},L=function(l,f,g){return{type:"value",...g}},H=function(l,f){return{value:!l,type:"boolean"}},G=function(l,f,g){return{name:f,...g}},ue=function(l,f){return f},_e=function(l,f){return Hi([...l,...f])},Pe=/^[^'"]/,De=yt(["'",'"'],!0,!1),d=function(l){return l},oe=/^[0-9]/,Le=yt([["0","9"]],!1,!1),Be=/^[\-+]/,Ke=yt(["-","+"],!1,!1),M="True",We=tt("True",!1),Me=function(){return!0},Vr="False",Ut=tt("False",!1),nr=function(){return!1},he=".",at=tt(".",!1),Ht=/^[eE]/,pr=yt(["e","E"],!1,!1),Pr=/^["]/,ir=yt(['"'],!1,!1),dr=/^[^"]/,ie=yt(['"'],!0,!1),bn=/^[']/,Tr=yt(["'"],!1,!1),Ir=/^[^']/,Dt=yt(["'"],!0,!1),on=function(l){return parseFloat(l)},Jn=function(l){return parseInt(l,10)},kr=function(l,f,g){return f.match(/code|comment|output|input|data/)||hs(f)},Qn=function(l,f,g,y,k){return l.length===y.length&&f===k},Xn=function(l,f,g,y,k){return Uh(l,`${y}${k}`)},Rn=function(l,f,g,y,k,$){return f===$},vn=function(l,f,g,y,k,$){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:f,margin:l}},Ur=function(l,f,g,y,k,$){return!0},Ni=function(l,f,g,y,k,$){return{...$,text:Or(),config:g,location:or()}},sn=/^[+-=_|]/,Yn=yt([["+","="],"_","|"],!1,!1),Hr=function(){return{type:"separator",text:Or()}},ei=function(){return r.isDelimited},Nt=function(){return{type:"separator",text:Or()}},Rt=function(l){return{name:"row",type:"text",value:l}},ti=function(){return r.separators=[],!0},$n=function(l,f){return r.separators.push(f.text),f},At=function(l,f,g,y){return r.separators.push(y.text),y},wn=function(l,f,g,y){return[{name:"row",type:"text",value:g},y]},Gr=function(l,f,g){return[g]},kn=function(l,f,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Ri=function(l,f,g){return[{name:"head",type:"text",value:l},f,...Hi(g)]},_n=function(l,f){return[{name:"row",type:"text",value:l},f]},mo=function(l){return[...Hi(l)]},ho=function(l,f,g){return f==="table"},is=function(l,f,g){return r.isDelimited=!0,!0},os=function(l,f,g,y){return y},go=function(l,f,g,y,k,$){return{type:"block",content:y,name:f,margin:l}},yo=function(l,f,g,y,k,$){return{...$,text:Or(),config:g,location:or()}},bo=function(l,f,g,y){return y},St=function(l,f,g,y,k){let $=f.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:k,margin:y,type:$,content:[{type:$==="code"?"verbatim":"text",value:k}],location:or()}},Ze=function(l,f,g,y,k,$){return{type:"block",content:y,name:f,margin:l}},ji=function(l,f,g,y,k,$){return{...$,config:g,location:or()}},_c=function(){return{text:Or(),type:"para",margin:"",content:[{type:"text",value:Or()}],location:or()}},Cn=function(){return{empty:1}},Kr=/^[s]/,Wr=yt(["s"],!1,!1),Li=function(l){return{text:Or(),type:"ambient1"}},h=function(l,f){return f.match(/code|comment|output|input|data/)||hs(f)},C=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:f,config:[],location:or()}},E=function(l,f){return f==="table"},A=function(l,f){return r.isDelimited=!1,!0},S=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:g,name:f,config:[],location:or()}},z=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:or()}],name:f,location:or()}},W="= ",ae=tt("= ",!1),Gt=function(l,f,g,y){return{name:g,type:"alias",replacement:y,margin:l}},Pt=/^[A-Z]/,mr=yt([["A","Z"]],!1,!1),Cc="<>",bh=tt("<>",!1),vh=function(l,f,g,y){return{name:g,type:"config",config:y,margin:l}},$h=function(l,f,g,y){return g.match(/code|comment|output|input|data/)||hs(g)},wh=function(l,f,g,y,k){return{type:"block",content:k===""?[]:[{type:"verbatim",value:k}],name:g,margin:l,config:y,location:or()}},kh=function(l,f,g,y){return g==="table"},_h=function(l,f,g,y){return r.isDelimited=!1,!0},Ch=function(l,f,g,y,k){return{type:"block",content:k===""?[]:k,name:g,margin:l,config:y,location:or()}},xh=function(l,f,g,y,k){return{type:"block",content:k===""?[]:[{type:"para",content:[{type:"text",value:k}],margin:l,text:k,location:or()}],name:g,margin:l,config:y,location:or()}},Eh=/^[a-zA-Z]/,Ah=yt([["a","z"],["A","Z"]],!1,!1),Sh=cs("whitespace"),ss=/^[\r\n \t\f]/,as=yt(["\r",`
6
- `," "," ","\f"],!1,!1),Ph=cs("space characters"),s=0,Q=0,ls=[{line:1,column:1}],an=0,$a=[],B=0,us;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Or(){return t.substring(Q,s)}function or(){return vo(Q,s)}function X1(l,f){throw f=f!==void 0?f:vo(Q,s),Ec([cs(l)],t.substring(Q,s),f)}function Y1(l,f){throw f=f!==void 0?f:vo(Q,s),Oh(l,f)}function tt(l,f){return{type:"literal",text:l,ignoreCase:f}}function yt(l,f,g){return{type:"class",parts:l,inverted:f,ignoreCase:g}}function Th(){return{type:"any"}}function Ih(){return{type:"end"}}function cs(l){return{type:"other",description:l}}function xc(l){var f=ls[l],g;if(f)return f;for(g=l-1;!ls[g];)g--;for(f=ls[g],f={line:f.line,column:f.column};g<l;)t.charCodeAt(g)===10?(f.line++,f.column=1):f.column++,g++;return ls[l]=f,f}function vo(l,f){var g=xc(l),y=xc(f);return{start:{offset:l,line:g.line,column:g.column},end:{offset:f,line:y.line,column:y.column}}}function X(l){s<an||(s>an&&(an=s,$a=[]),$a.push(l))}function Oh(l,f){return new mi(l,null,null,f)}function Ec(l,f,g){return new mi(mi.buildMessage(l,f),l,f,g)}function Ac(){var l,f,g;for(l=s,f=[],g=Sc();g!==e;)f.push(g),g=Sc();return f!==e&&(Q=l,f=o(f)),l=f,l}function Sc(){var l,f,g,y,k,$,R,V;if(l=wa(),l===e&&(l=_a(),l===e&&(l=Ca(),l===e&&(l=Ta(),l===e&&(l=Ia(),l===e&&(l=Oa(),l===e&&(l=Sa(),l===e&&(l=Pa(),l===e&&(l=xa(),l===e&&(l=Ea(),l===e&&(l=Aa(),l===e&&(l=s,Q=s,f=a(),f?f=void 0:f=e,f!==e?(g=Bh(),g===e&&(g=ln(),g===e&&(g=Dh())),g!==e?(Q=l,f=u(g),l=f):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,f=s,g=[],y=s,k=s,B++,$=s,R=xn(),R!==e?(V=Kt(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ii()),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&X(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,k=s,B++,$=s,R=xn(),R!==e?(V=Kt(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ii()),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&X(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=m()),l=f}return l}function bt(){var l;return p.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(b)),l}function pe(){var l,f;for(l=[],v.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(w));f!==e;)l.push(f),v.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(w));return l}function ri(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(T)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function e_(){var l,f,g,y;if(l=s,f=s,g=[],y=$o(),y!==e)for(;y!==e;)g.push(y),y=$o();else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Bi(),g!==e?(Q=l,f=N(f),l=f):(s=l,l=e)):(s=l,l=e),l}function $o(){var l;return D.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(Y)),l}function ni(){var l,f,g;return t.charCodeAt(s)===10?(l=ee,s++):(l=e,B===0&&X(de)),l===e&&(l=s,t.charCodeAt(s)===13?(f=fe,s++):(f=e,B===0&&X(Z)),f!==e?(t.charCodeAt(s)===10?(g=ee,s++):(g=e,B===0&&X(de)),g===e&&(g=null),g!==e?(f=[f,g],l=f):(s=l,l=e)):(s=l,l=e)),l}function Bi(){var l,f;return l=ni(),l===e&&(l=s,B++,t.length>s?(f=t.charAt(s),s++):(f=e,B===0&&X(c)),B--,f===e?l=void 0:(s=l,l=e)),l}function _r(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(_.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(T)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function ln(){var l,f,g,y,k;for(l=s,f=s,g=s,y=[],k=bt();k!==e;)y.push(k),k=bt();return y!==e?(_.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(T)),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=me()),l=f,l}function fs(){var l;return t.substr(s,7)===we?(l=we,s+=7):(l=e,B===0&&X(ke)),l}function Mi(){var l;return t.substr(s,5)===Fe?(l=Fe,s+=5):(l=e,B===0&&X(Ce)),l}function ps(){var l;return t.substr(s,5)===xe?(l=xe,s+=5):(l=e,B===0&&X(ce)),l}function Fh(){var l;return t.substr(s,7)===$e?(l=$e,s+=7):(l=e,B===0&&X(Ge)),l}function qh(){var l;return t.substr(s,6)===U?(l=U,s+=6):(l=e,B===0&&X(st)),l}function Kt(){var l,f,g;return l=s,f=Fa(),f!==e?(Q=s,g=je(f),g?g=void 0:g=e,g!==e?(Q=l,f=et(f),l=f):(s=l,l=e)):(s=l,l=e),l}function ii(){var l,f,g;return l=s,t.charCodeAt(s)===61?(f=He,s++):(f=e,B===0&&X(F)),f!==e?(g=Kt(),g!==e?(Q=l,f=et(g),l=f):(s=l,l=e)):(s=l,l=e),l}function xn(){var l;return l=fs(),l===e&&(l=Mi(),l===e&&(l=ps(),l===e&&(l=Fh(),l===e&&(l=qh())))),l}function un(){var l,f,g;if(B++,l=s,f=[],g=$o(),g!==e)for(;g!==e;)f.push(g),g=$o();else f=e;return f!==e?l=t.substring(l,s):l=f,B--,l===e&&(f=e,B===0&&X(q)),l}function jt(){var l,f,g,y,k,$,R;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(k=s,$=xn(),$!==e?(R=Kt(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k===e&&(k=ii()),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?f=void 0:(s=f,f=e),f!==e){if(g=s,y=[],k=un(),k!==e)for(;k!==e;)y.push(k),k=un();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Bi(),y!==e?(Q=l,f=zt(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function Dh(){var l,f,g,y,k,$;if(l=s,f=s,g=[],y=s,k=s,B++,$=Bi(),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&X(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,k=s,B++,$=Bi(),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&X(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Bi(),g!==e?(Q=l,f=kt(),l=f):(s=l,l=e)):(s=l,l=e),l}function Pc(){var l,f,g,y;if(l=s,f=Tc(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g!==e?(y=Pc(),y!==e?(Q=l,f=nt(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=Tc(),f!==e&&(Q=l,f=ut(f)),l=f),l}function Tc(){var l,f;return l=s,f=$o(),f!==e?l=t.substring(l,s):l=f,l}function ds(){var l,f,g,y,k,$;if(l=s,f=Vi(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(k=ct,s++):(k=e,B===0&&X(ve)),k!==e?($=pe(),$!==e?(y=[y,k,$],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=ds(),y!==e?(Q=l,f=wr(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=Vi(),f!==e&&(Q=l,f=ut(f)),l=f),l}function Nh(){var l,f,g,y,k;if(l=s,f=s,g=[],xt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Ft)),y!==e)for(;y!==e;)g.push(y),xt.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Ft));else g=e;if(g!==e){for(y=[],tr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(fr));k!==e;)y.push(k),tr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(fr));y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function Ic(){var l,f,g,y,k,$;return l=s,f=Nh(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X(ve)),y===e&&(t.substr(s,2)===Vt?(y=Vt,s+=2):(y=e,B===0&&X(Wn))),y!==e?(k=pe(),k!==e?($=Vi(),$!==e?(Q=l,f=Fn(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Oc(){var l,f,g,y,k,$;return l=s,f=Ic(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X(ve)),y!==e?(k=pe(),k!==e?($=Oc(),$!==e?(Q=l,f=ft(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,f=Ic(),f!==e&&(Q=l,f=pt(f)),l=f),l}function Rh(){var l,f,g,y,k,$,R,V,x,I;return l=s,f=pe(),f!==e?(t.charCodeAt(s)===58?(g=qt,s++):(g=e,B===0&&X(dt)),g!==e?(t.substr(s,5)===_t?(y=_t,s+=5):(y=e,B===0&&X(Rr)),y!==e?(k=s,t.charCodeAt(s)===60?($=jr,s++):($=e,B===0&&X(Lr)),$!==e?(R=pe(),R!==e?(V=Pc(),V!==e?(x=pe(),x!==e?(t.charCodeAt(s)===62?(I=Br,s++):(I=e,B===0&&X(Mr)),I!==e?(Q=k,$=rr(y,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)):(s=k,k=e),k!==e?($=pe(),$!==e?(Q=l,f=K(y,k),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function t_(){var l,f,g,y,k,$;for(l=s,f=[],g=s,y=pe(),y!==e?(k=Vi(),k!==e?($=pe(),$!==e?(Q=g,y=ne(k),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)f.push(g),g=s,y=pe(),y!==e?(k=Vi(),k!==e?($=pe(),$!==e?(Q=g,y=ne(k),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return f!==e&&(Q=l,f=ge(f)),l=f,l===e&&(l=s,f=Vi(),f!==e&&(Q=l,f=Se(f)),l=f,l===e&&(l=s,f=pe(),f!==e&&(Q=l,f=Ct()),l=f)),l}function zi(){var l,f,g,y,k,$,R,V,x,I,j,J,te,se;if(l=Rh(),l===e)if(l=s,f=pe(),f!==e)if(t.charCodeAt(s)===58?(g=qt,s++):(g=e,B===0&&X(dt)),g!==e)if(Ar.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(ze)),y===e&&(y=null),y!==e)if(k=Fa(),k!==e){if($=s,t.charCodeAt(s)===123?(R=it,s++):(R=e,B===0&&X(mt)),R!==e?(V=pe(),V!==e?(x=Oc(),x!==e?(I=pe(),I!==e?(t.charCodeAt(s)===125?(j=zr,s++):(j=e,B===0&&X(Xe)),j!==e?(Q=$,R=nn(y,k,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e){if($=s,t.charCodeAt(s)===91?(R=Et,s++):(R=e,B===0&&X(qn)),R!==e)if(V=pe(),V!==e){if(x=s,I=ds(),I!==e&&(Q=x,I=co(y,k,I)),x=I,x===e){if(x=s,I=s,j=[],J=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(Dn)),se===e&&(t.charCodeAt(s)===91?(se=Et,s++):(se=e,B===0&&X(qn))),B--,se===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,B===0&&X(c)),se!==e?(te=[te,se],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)j.push(J),J=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(Dn)),se===e&&(t.charCodeAt(s)===91?(se=Et,s++):(se=e,B===0&&X(qn))),B--,se===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,B===0&&X(c)),se!==e?(te=[te,se],J=te):(s=J,J=e)):(s=J,J=e);else j=e;j!==e?I=t.substring(I,s):I=j,I!==e&&(Q=x,I=qi(y,k)),x=I}x!==e?(I=pe(),I!==e?(t.charCodeAt(s)===93?(j=Sr,s++):(j=e,B===0&&X(Dn)),j!==e?(Q=$,R=fo(y,k,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e&&($=s,t.charCodeAt(s)===60?(R=jr,s++):(R=e,B===0&&X(Lr)),R!==e?(V=pe(),V!==e?(x=ds(),x!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(j=Br,s++):(j=e,B===0&&X(Mr)),j!==e?(Q=$,R=Nn(y,k,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e)){if($=s,t.charCodeAt(s)===60?(R=jr,s++):(R=e,B===0&&X(Lr)),R!==e)if(V=pe(),V!==e){if(x=s,I=[],j=s,J=s,B++,t.charCodeAt(s)===60?(te=jr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=Br,s++):(te=e,B===0&&X(Mr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(c)),te!==e?(J=[J,te],j=J):(s=j,j=e)):(s=j,j=e),j!==e)for(;j!==e;)I.push(j),j=s,J=s,B++,t.charCodeAt(s)===60?(te=jr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=Br,s++):(te=e,B===0&&X(Mr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(c)),te!==e?(J=[J,te],j=J):(s=j,j=e)):(s=j,j=e);else I=e;I!==e?x=t.substring(x,s):x=I,x!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(j=Br,s++):(j=e,B===0&&X(Mr)),j!==e?(Q=$,R=Di(y,k,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e){if($=s,t.charCodeAt(s)===40?(R=Zn,s++):(R=e,B===0&&X(gn)),R!==e)if(V=pe(),V!==e){if(x=s,I=ds(),I!==e&&(Q=x,I=po(y,k,I)),x=I,x===e){if(x=s,I=s,j=[],J=s,te=s,B++,t.charCodeAt(s)===41?(se=yn,s++):(se=e,B===0&&X(O)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(gn))),B--,se===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,B===0&&X(c)),se!==e?(te=[te,se],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)j.push(J),J=s,te=s,B++,t.charCodeAt(s)===41?(se=yn,s++):(se=e,B===0&&X(O)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(gn))),B--,se===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(se=t.charAt(s),s++):(se=e,B===0&&X(c)),se!==e?(te=[te,se],J=te):(s=J,J=e)):(s=J,J=e);else j=e;j!==e?I=t.substring(I,s):I=j,I!==e&&(Q=x,I=P(y,k)),x=I}x!==e?(I=pe(),I!==e?(t.charCodeAt(s)===41?(j=yn,s++):(j=e,B===0&&X(O)),j!==e?(Q=$,R=L(y,k,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;$===e&&($=s,R=pe(),R!==e&&(Q=$,R=H(y,k)),$=R)}}}$!==e?(R=pe(),R!==e?(Q=l,f=G(y,k,$),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function oi(){var l,f,g,y,k,$,R,V,x,I;for(l=s,f=[],g=zi();g!==e;)f.push(g),g=zi();if(f!==e)if(g=ni(),g!==e){if(y=[],k=s,t.charCodeAt(s)===61?($=He,s++):($=e,B===0&&X(F)),$!==e)if(R=pe(),R!==e){if(V=[],x=zi(),x!==e)for(;x!==e;)V.push(x),x=zi();else V=e;V!==e?(x=pe(),x!==e?(I=ni(),I!==e?(Q=k,$=ue(f,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;for(;k!==e;)if(y.push(k),k=s,t.charCodeAt(s)===61?($=He,s++):($=e,B===0&&X(F)),$!==e)if(R=pe(),R!==e){if(V=[],x=zi(),x!==e)for(;x!==e;)V.push(x),x=zi();else V=e;V!==e?(x=pe(),x!==e?(I=ni(),I!==e?(Q=k,$=ue(f,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;y!==e?(Q=l,f=_e(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function r_(){var l,f,g,y;if(l=s,f=s,g=[],Pe.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(De)),y!==e)for(;y!==e;)g.push(y),Pe.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(De));else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=d(f)),l=f,l}function Fc(){var l,f,g;if(l=s,f=[],oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Le)),g!==e)for(;g!==e;)f.push(g),oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Le));else f=e;return f!==e?l=t.substring(l,s):l=f,l}function ms(){var l,f,g,y,k;if(l=s,f=s,Be.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Ke)),g===e&&(g=null),g!==e){if(y=[],oe.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(Le)),k!==e)for(;k!==e;)y.push(k),oe.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(Le));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function jh(){var l,f;return l=s,t.substr(s,4)===M?(f=M,s+=4):(f=e,B===0&&X(We)),f!==e&&(Q=l,f=Me()),l=f,l===e&&(l=s,t.substr(s,5)===Vr?(f=Vr,s+=5):(f=e,B===0&&X(Ut)),f!==e&&(Q=l,f=nr()),l=f),l}function Lh(){var l,f,g,y,k,$;return l=s,f=s,g=ms(),g!==e?(y=s,t.charCodeAt(s)===46?(k=he,s++):(k=e,B===0&&X(at)),k!==e?($=Fc(),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(Ht.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(pr)),k!==e?($=ms(),$!==e?(g=[g,y,k,$],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l===e&&(l=s,f=s,g=ms(),g!==e?(t.charCodeAt(s)===46?(y=he,s++):(y=e,B===0&&X(at)),y!==e?(k=Fc(),k!==e?(g=[g,y,k],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f),l}function Vi(){var l,f,g,y,k;if(l=s,Pr.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(ir)),f!==e){for(g=s,y=[],dr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(ie));k!==e;)y.push(k),dr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(ie));y!==e?g=t.substring(g,s):g=y,g!==e?(Pr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(ir)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,bn.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(Tr)),f!==e){for(g=s,y=[],Ir.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(Dt));k!==e;)y.push(k),Ir.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(Dt));y!==e?g=t.substring(g,s):g=y,g!==e?(bn.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Tr)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=jh(),l===e&&(l=s,f=Lh(),f!==e&&(Q=l,f=on(f)),l=f,l===e&&(l=s,f=ms(),f!==e&&(Q=l,f=Jn(f)),l=f)))}return l}function wa(){var l,f,g,y,k,$,R,V,x,I,j,J,te,se,rt,jn,qr;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=fs(),g!==e)if(y=Kt(),y!==e)if(k=pe(),k!==e)if($=oi(),$!==e)if(Q=s,R=kr(f,y,$),R?R=void 0:R=e,R!==e){if(V=[],x=s,I=s,j=pe(),j!==e?I=t.substring(I,s):I=j,I!==e?(j=s,J=ri(),J===e&&(J=s,te=s,B++,se=xn(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,rt=Mi(),rt!==e?(jn=Kt(),jn!==e?(Q=s,qr=Qn(f,y,$,I,jn),qr?qr=void 0:qr=e,qr!==e?(rt=[rt,jn,qr],se=rt):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),B--,se===e?te=void 0:(s=te,te=e)),te!==e?(se=un(),se!==e?(rt=ri(),rt===e&&(rt=null),rt!==e?(te=[te,se,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?j=t.substring(j,s):j=J,j!==e?(Q=x,I=Xn(f,y,$,I,j),x=I):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,I=s,j=pe(),j!==e?I=t.substring(I,s):I=j,I!==e?(j=s,J=ri(),J===e&&(J=s,te=s,B++,se=xn(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,rt=Mi(),rt!==e?(jn=Kt(),jn!==e?(Q=s,qr=Qn(f,y,$,I,jn),qr?qr=void 0:qr=e,qr!==e?(rt=[rt,jn,qr],se=rt):(s=se,se=e)):(s=se,se=e)):(s=se,se=e),B--,se===e?te=void 0:(s=te,te=e)),te!==e?(se=un(),se!==e?(rt=ri(),rt===e&&(rt=null),rt!==e?(te=[te,se,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?j=t.substring(j,s):j=J,j!==e?(Q=x,I=Xn(f,y,$,I,j),x=I):(s=x,x=e)):(s=x,x=e);else V=e;V!==e?(x=s,I=pe(),I!==e?x=t.substring(x,s):x=I,x!==e?(I=s,j=Mi(),j!==e?(J=Kt(),J!==e?(Q=s,te=Rn(f,y,$,V,x,J),te?te=void 0:te=e,te!==e?(se=ri(),se===e&&(se=null),se!==e?(Q=I,j=vn(f,y,$,V,x,J),I=j):(s=I,I=e)):(s=I,I=e)):(s=I,I=e)):(s=I,I=e),I!==e?(Q=s,j=Ur(f,y,$,V,x,I),j?j=void 0:j=e,j!==e?(Q=l,f=Ni(f,y,$,V,x,I),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ui(){var l,f,g,y,k,$,R,V,x;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(k=xn(),k===e&&(k=ii()),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?f=void 0:(s=f,f=e),f!==e){for(g=[],y=bt();y!==e;)g.push(y),y=bt();if(g!==e){if(y=s,k=[],$=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(Yn)),R!==e){for(V=[],x=bt();x!==e;)V.push(x),x=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;if($!==e)for(;$!==e;)if(k.push($),$=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(Yn)),R!==e){for(V=[],x=bt();x!==e;)V.push(x),x=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;else k=e;k!==e?y=t.substring(y,s):y=k,y!==e?(k=Bi(),k!==e?(Q=l,f=Hr(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function hr(){var l,f,g,y,k;return l=s,f=s,g=Ui(),g===e&&(g=s,Q=s,y=ei(),y?y=void 0:y=e,y!==e?(k=ln(),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=Nt()),l=f,l}function Fr(){var l,f;return l=s,f=jt(),f!==e&&(Q=l,f=Rt(f)),l=f,l}function ka(){var l,f,g,y,k,$,R,V,x,I,j;if(l=s,Q=s,f=ti(),f?f=void 0:f=e,f!==e){if(g=s,y=[],k=s,$=s,B++,R=Ui(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Fr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e)for(;k!==e;)y.push(k),k=s,$=s,B++,R=Ui(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Fr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,k=Ui(),k!==e&&(Q=y,k=$n(g,k)),y=k,y!==e){if(k=[],$=s,R=s,V=[],x=s,I=s,B++,j=hr(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=Fr(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,I=s,B++,j=hr(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=Fr(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);else V=e;if(V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,x=hr(),x!==e&&(Q=V,x=At(g,y,R,x)),V=x,V!==e?(Q=$,R=wn(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=hr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Fr(),x!==e?(Q=$,R=Gr(g,y,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)),$!==e)for(;$!==e;){if(k.push($),$=s,R=s,V=[],x=s,I=s,B++,j=hr(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=Fr(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,I=s,B++,j=hr(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=Fr(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);else V=e;V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,x=hr(),x!==e&&(Q=V,x=At(g,y,R,x)),V=x,V!==e?(Q=$,R=wn(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=hr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Fr(),x!==e?(Q=$,R=Gr(g,y,x),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e))}else k=e;k!==e?(Q=s,$=kn(g,y,k),$?$=void 0:$=e,$!==e?(Q=l,f=Ri(g,y,k),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e}else s=l,l=e;if(l===e){if(l=s,f=[],g=s,y=s,k=s,$=s,B++,R=hr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Fr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e?y=t.substring(y,s):y=k,y!==e){for(k=[],$=hr();$!==e;)k.push($),$=hr();k!==e?(Q=g,y=_n(y,k),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(f.push(g),g=s,y=s,k=s,$=s,B++,R=hr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Fr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e?y=t.substring(y,s):y=k,y!==e){for(k=[],$=hr();$!==e;)k.push($),$=hr();k!==e?(Q=g,y=_n(y,k),g=y):(s=g,g=e)}else s=g,g=e;else f=e;if(f!==e&&(Q=l,f=mo(f)),l=f,l===e)if(l=[],f=Fr(),f!==e)for(;f!==e;)l.push(f),f=Fr();else l=e}return l}function _a(){var l,f,g,y,k,$,R,V,x,I,j,J,te,se,rt;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=fs(),g!==e)if(y=Kt(),y!==e)if(k=pe(),k!==e)if($=oi(),$!==e)if(Q=s,R=ho(f,y,$),R?R=void 0:R=e,R!==e)if(Q=s,V=is(f,y,$),V?V=void 0:V=e,V!==e){for(x=s,I=[],j=ln();j!==e;)I.push(j),j=ln();if(I!==e)if(j=ka(),j!==e){for(J=[],te=ln();te!==e;)J.push(te),te=ln();J!==e?(Q=x,I=os(f,y,$,j),x=I):(s=x,x=e)}else s=x,x=e;else s=x,x=e;x!==e?(I=s,j=pe(),j!==e?I=t.substring(I,s):I=j,I!==e?(j=s,J=Mi(),J!==e?(te=Kt(),te!==e?(Q=s,se=Rn(f,y,$,x,I,te),se?se=void 0:se=e,se!==e?(rt=ri(),rt===e&&(rt=null),rt!==e?(Q=j,J=go(f,y,$,x,I,te),j=J):(s=j,j=e)):(s=j,j=e)):(s=j,j=e)):(s=j,j=e),j!==e?(Q=s,J=Ur(f,y,$,x,I,j),J?J=void 0:J=e,J!==e?(Q=l,f=yo(f,y,$,x,I,j),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ca(){var l,f,g,y,k,$,R,V,x,I,j,J,te;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=fs(),g!==e)if(y=Kt(),y!==e)if(k=pe(),k!==e)if($=oi(),$!==e){if(R=[],V=s,x=ln(),x===e&&(x=wa(),x===e&&(x=_a(),x===e&&(x=Ca(),x===e&&(x=Ta(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Sa(),x===e&&(x=Pa(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Aa()))))))))))),x!==e&&(Q=V,x=bo(f,y,$,x)),V=x,V===e){for(V=s,x=s,I=[],j=bt();j!==e;)I.push(j),j=bt();if(I!==e?x=t.substring(x,s):x=I,x!==e){if(I=s,j=[],J=jt(),J!==e)for(;J!==e;)j.push(J),J=jt();else j=e;j!==e?I=t.substring(I,s):I=j,I!==e?(Q=V,x=St(f,y,$,x,I),V=x):(s=V,V=e)}else s=V,V=e}for(;V!==e;)if(R.push(V),V=s,x=ln(),x===e&&(x=wa(),x===e&&(x=_a(),x===e&&(x=Ca(),x===e&&(x=Ta(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Sa(),x===e&&(x=Pa(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Aa()))))))))))),x!==e&&(Q=V,x=bo(f,y,$,x)),V=x,V===e){for(V=s,x=s,I=[],j=bt();j!==e;)I.push(j),j=bt();if(I!==e?x=t.substring(x,s):x=I,x!==e){if(I=s,j=[],J=jt(),J!==e)for(;J!==e;)j.push(J),J=jt();else j=e;j!==e?I=t.substring(I,s):I=j,I!==e?(Q=V,x=St(f,y,$,x,I),V=x):(s=V,V=e)}else s=V,V=e}R!==e?(V=s,x=pe(),x!==e?V=t.substring(V,s):V=x,V!==e?(x=s,I=Mi(),I!==e?(j=Kt(),j!==e?(Q=s,J=Rn(f,y,$,R,V,j),J?J=void 0:J=e,J!==e?(te=ri(),te===e&&(te=null),te!==e?(Q=x,I=Ze(f,y,$,R,V,j),x=I):(s=x,x=e)):(s=x,x=e)):(s=x,x=e)):(s=x,x=e),x!==e?(Q=s,I=Ur(f,y,$,R,V,x),I?I=void 0:I=e,I!==e?(Q=l,f=ji(f,y,$,R,V,x),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Bh(){var l,f,g;if(l=s,f=[],g=jt(),g!==e)for(;g!==e;)f.push(g),g=jt();else f=e;return f!==e&&(Q=l,f=_c()),l=f,l}function n_(){var l,f,g,y;if(l=s,f=[],g=s,y=_r(),y!==e&&(Q=g,y=Cn()),g=y,g===e){if(g=[],Kr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Wr)),y!==e)for(;y!==e;)g.push(y),Kr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Wr));else g=e;g===e&&(g=jt())}if(g!==e){for(;g!==e;)if(f.push(g),g=s,y=_r(),y!==e&&(Q=g,y=Cn()),g=y,g===e){if(g=[],Kr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Wr)),y!==e)for(;y!==e;)g.push(y),Kr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Wr));else g=e;g===e&&(g=jt())}}else f=e;return f!==e&&(Q=l,f=Li(f)),l=f,l}function xa(){var l,f,g,y,k,$,R,V,x,I,j,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ii(),y!==e)if(k=pe(),k!==e)if($=_r(),$===e&&($=null),$!==e)if(Q=s,R=h(f,y),R?R=void 0:R=e,R!==e){for(V=s,x=[],I=s,j=s,B++,J=_r(),B--,J===e?j=void 0:(s=j,j=e),j!==e?(J=jt(),J!==e?(j=[j,J],I=j):(s=I,I=e)):(s=I,I=e);I!==e;)x.push(I),I=s,j=s,B++,J=_r(),B--,J===e?j=void 0:(s=j,j=e),j!==e?(J=jt(),J!==e?(j=[j,J],I=j):(s=I,I=e)):(s=I,I=e);x!==e?V=t.substring(V,s):V=x,V!==e?(Q=l,f=C(f,y,V),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ea(){var l,f,g,y,k,$,R,V,x;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e?(y=ii(),y!==e?(k=pe(),k!==e?($=_r(),$===e&&($=null),$!==e?(Q=s,R=E(f,y),R?R=void 0:R=e,R!==e?(Q=s,V=A(f,y),V?V=void 0:V=e,V!==e?(x=ka(),x!==e?(Q=l,f=S(f,y,x),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Aa(){var l,f,g,y,k,$,R,V,x,I,j;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ii(),y!==e)if(k=pe(),k!==e)if($=_r(),$===e&&($=null),$!==e){for(R=s,V=[],x=s,I=s,B++,j=_r(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=jt(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,I=s,B++,j=_r(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=jt(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=z(f,y,R),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Mh(){var l,f,g,y,k,$,R,V,x,I,j;for(l=s,f=[],g=un();g!==e;)f.push(g),g=un();if(f!==e)if(g=ni(),g!==e){if(y=[],k=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],I=un(),I!==e)for(;I!==e;)x.push(I),I=un();else x=e;x!==e?(I=pe(),I!==e?(j=ni(),j!==e?(Q=k,$=ue(f,x),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;else s=k,k=e;for(;k!==e;)if(y.push(k),k=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],I=un(),I!==e)for(;I!==e;)x.push(I),I=un();else x=e;x!==e?(I=pe(),I!==e?(j=ni(),j!==e?(Q=k,$=ue(f,x),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;else s=k,k=e;y!==e?(Q=l,f=_e(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function Sa(){var l,f,g,y,k,$,R;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,6)===U?(g=U,s+=6):(g=e,B===0&&X(st)),g!==e?(y=pe(),y!==e?(k=s,$=Fa(),$!==e?k=t.substring(k,s):k=$,k!==e?($=pe(),$!==e?(R=Mh(),R!==e?(Q=l,f=Gt(f,g,k,R),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Pa(){var l,f,g,y,k,$,R,V;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,7)===$e?(g=$e,s+=7):(g=e,B===0&&X(Ge)),g!==e?(y=pe(),y!==e?(k=s,$=Kt(),$===e&&($=s,Pt.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(mr)),R!==e?(t.substr(s,2)===Cc?(V=Cc,s+=2):(V=e,B===0&&X(bh)),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e)),$!==e?k=t.substring(k,s):k=$,k!==e?($=pe(),$!==e?(R=oi(),R!==e?(Q=l,f=vh(f,g,k,R),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ta(){var l,f,g,y,k,$,R,V,x,I,j,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=ps(),g!==e)if(y=Kt(),y!==e)if(k=pe(),k!==e)if($=oi(),$!==e)if(Q=s,R=$h(f,g,y,$),R?R=void 0:R=e,R!==e){for(V=s,x=[],I=s,j=s,B++,J=_r(),B--,J===e?j=void 0:(s=j,j=e),j!==e?(J=jt(),J!==e?(j=[j,J],I=j):(s=I,I=e)):(s=I,I=e);I!==e;)x.push(I),I=s,j=s,B++,J=_r(),B--,J===e?j=void 0:(s=j,j=e),j!==e?(J=jt(),J!==e?(j=[j,J],I=j):(s=I,I=e)):(s=I,I=e);x!==e?V=t.substring(V,s):V=x,V!==e?(Q=l,f=wh(f,g,y,$,V),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Ia(){var l,f,g,y,k,$,R,V,x;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=ps(),g!==e?(y=Kt(),y!==e?(k=pe(),k!==e?($=oi(),$!==e?(Q=s,R=kh(f,g,y,$),R?R=void 0:R=e,R!==e?(Q=s,V=_h(f,g,y,$),V?V=void 0:V=e,V!==e?(x=ka(),x!==e?(Q=l,f=Ch(f,g,y,$,x),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Oa(){var l,f,g,y,k,$,R,V,x,I,j;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=ps(),g!==e)if(y=Kt(),y!==e)if(k=pe(),k!==e)if($=oi(),$!==e){for(R=s,V=[],x=s,I=s,B++,j=_r(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=jt(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,I=s,B++,j=_r(),B--,j===e?I=void 0:(s=I,I=e),I!==e?(j=jt(),j!==e?(I=[I,j],x=I):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=xh(f,g,y,$,R),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Fa(){var l,f,g,y,k;if(l=s,f=s,Eh.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Ah)),g!==e){if(y=[],tr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(fr)),k!==e)for(;k!==e;)y.push(k),tr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&X(fr));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function i_(){var l,f;for(B++,l=[],ss.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(as));f!==e;)l.push(f),ss.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(as));return B--,l===e&&(f=e,B===0&&X(Sh)),l}function o_(){var l,f;for(B++,l=[],ss.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(as));f!==e;)l.push(f),ss.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&X(as));return B--,l===e&&(f=e,B===0&&X(Ph)),l}function hs(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function zh(l){return l===l.toUpperCase()}function Hi(l){return l.reduce((f,g)=>Array.isArray(g)?f.concat(Hi(g)):f.concat(g),[])}function Vh(l){return["code","comment","data","defn","head","input","item","nested","output","para","pod","table"].includes(l)||zh(l)||l.match(/^(head|item)\d+$/)||hs(l)}function Uh(l,f){return l.length==0?f:f.indexOf(l)==0?f.replace(l,""):f.replace(/^\s+/,"")}if(us=i(),us!==e&&s===t.length)return us;throw us!==e&&s<t.length&&X(Ih()),Ec($a,an<t.length?t.charAt(an):null,an<t.length?vo(an,an+1):vo(an,an))}yp.exports={SyntaxError:mi,parse:Bb}});var vp=re(To=>{"use strict";var Dl=To&&To.__assign||function(){return Dl=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Dl.apply(this,arguments)};Object.defineProperty(To,"__esModule",{value:!0});var Mb=function(){return function(t){var r=function(n,i){if(i===void 0&&(i={}),(n.type=="code"||n.type=="text")&&(n.margin&&i.margin&&i.margin.length>0&&i.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var o=new RegExp("^[ ]{0,".concat(n.margin.length,"}"),"gm");n.text=n.text.replace(o,"")}if(n.type==="block"){i.margin=typeof n.margin!="string"?"":n.margin;var a=Dl({},i);a.nest=(a.nest||0)+1,n.content.map(function(u){r(u,i)})}},e={};return t.forEach(function(n){return r(n,e)}),t}};To.default=Mb});var wp=re((rP,$p)=>{"use strict";function zb(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function hi(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,hi)}zb(hi,Error);hi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,v;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,v=1;b<p.length;b++)p[b-1]!==p[b]&&(p[v]=p[b],v++);p.length=v}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function Vb(t,r){r=r!==void 0?r:{};var e={},n={Expression:Ir},i=Ir,o="A",a=he("A",!1),u="V",c=he("V",!1),m="R",p=he("R",!1),b="B",v=he("B",!1),w="I",_=he("I",!1),T="C",N=he("C",!1),D="D",Y=he("D",!1),ee="E",de=he("E",!1),fe="K",Z=he("K",!1),me="L",we=he("L",!1),ke="S",Fe=he("S",!1),Ce="T",xe=he("T",!1),ce="U",$e=he("U",!1),Ge="Z",U=he("Z",!1),st="N",je=he("N",!1),et="X",He=he("X",!1),F=/^[a-zA-Z]/,q=at([["a","z"],["A","Z"]],!1,!1),zt=/^[a-zA-Z0-9_\-]/,kt=at([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),nt=/^[ \t\f]/,ut=at([" "," ","\f"],!1,!1),ct=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},ve=Ht(),wr=function(h){return h},xt=function(h){return h==="A"},Ft=function(h,C){return{content:C,type:"fcode",name:h}},tr=function(h){return h==="D"},fr=function(h,C,E){return Li(E)},Vt=function(h,C,E){return{content:C,type:"fcode",name:h,synonyms:E}},Wn=function(h){return h==="V"},Fn=function(h,C){return{content:C,type:"fcode",name:h}},ft="<",pt=he("<",!1),qt=">",dt=he(">",!1),_t=function(){return Me()},Rr=function(h){return h},jr=function(h){return h==="C"},Lr="|",Br=he("|",!1),Mr=function(h){return h==="L"},rr=function(h,C,E){return E},K=function(h,C,E){return{content:C,type:"fcode",name:h,meta:E}},ne=";",ge=he(";",!1),Se=/^[ \xA0\u2001\t\f\u2008]/,Ct=at([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Ar=function(h,C){return Li([h,C])},ze=function(h){return[h]},it=function(h){return h==="X"},mt=function(h,C,E){return{content:C,type:"fcode",name:h,entry:E}},zr=function(h){return h==="S"},Xe=function(h){return h==="Z"},nn=/^[0-9]/,Et=at([["0","9"]],!1,!1),qn="0d",co=he("0d",!1),Sr=function(h){return parseInt(h,10)},Dn="0o",qi=he("0o",!1),fo=function(h){return parseInt(h,8)},Nn="0b",Di=he("0b",!1),Zn=function(h){return parseInt(h,2)},gn="0x",po=he("0x",!1),yn=/^[0-9A-Fa-f]/,O=at([["0","9"],["A","F"],["a","f"]],!1,!1),P=function(){return parseInt(Me())},L=function(h){return{type:"number",value:parseInt(h,10)}},H=function(h){return h==="E"},G=function(h,C){return Li(C)},ue=function(h,C){return{content:C||[],type:"fcode",name:h}},_e=function(h){return h},Pe=function(h){return h!=="C"},De=function(h,C){return{content:C,type:"fcode",name:h}},d=0,oe=0,Le=[{line:1,column:1}],Be=0,Ke=[],M=0,We;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Me(){return t.substring(oe,d)}function Vr(){return dr(oe,d)}function Ut(h,C){throw C=C!==void 0?C:dr(oe,d),Tr([Pr(h)],t.substring(oe,d),C)}function nr(h,C){throw C=C!==void 0?C:dr(oe,d),bn(h,C)}function he(h,C){return{type:"literal",text:h,ignoreCase:C}}function at(h,C,E){return{type:"class",parts:h,inverted:C,ignoreCase:E}}function Ht(){return{type:"any"}}function pr(){return{type:"end"}}function Pr(h){return{type:"other",description:h}}function ir(h){var C=Le[h],E;if(C)return C;for(E=h-1;!Le[E];)E--;for(C=Le[E],C={line:C.line,column:C.column};E<h;)t.charCodeAt(E)===10?(C.line++,C.column=1):C.column++,E++;return Le[h]=C,C}function dr(h,C){var E=ir(h),A=ir(C);return{start:{offset:h,line:E.line,column:E.column},end:{offset:C,line:A.line,column:A.column}}}function ie(h){d<Be||(d>Be&&(Be=d,Ke=[]),Ke.push(h))}function bn(h,C){return new hi(h,null,null,C)}function Tr(h,C,E){return new hi(hi.buildMessage(h,C),h,C,E)}function Ir(){var h,C;for(h=[],C=Dt(),C===e&&(C=ji(),C===e&&(C=Cn(),C===e&&(C=Xn())));C!==e;)h.push(C),C=Dt(),C===e&&(C=ji(),C===e&&(C=Cn(),C===e&&(C=Xn())));return h}function Dt(){var h;return h=vn(),h===e&&(h=kn(),h===e&&(h=ei(),h===e&&(h=Ur(),h===e&&(h=bo(),h===e&&(h=Ni(),h===e&&(h=ti(),h===e&&(h=Gr(),h===e&&(h=Ri())))))))),h}function on(){var h;return t.charCodeAt(d)===65?(h=o,d++):(h=e,M===0&&ie(a)),h===e&&(t.charCodeAt(d)===86?(h=u,d++):(h=e,M===0&&ie(c)),h===e&&(t.charCodeAt(d)===82?(h=m,d++):(h=e,M===0&&ie(p)),h===e&&(t.charCodeAt(d)===66?(h=b,d++):(h=e,M===0&&ie(v)),h===e&&(t.charCodeAt(d)===73?(h=w,d++):(h=e,M===0&&ie(_)),h===e&&(t.charCodeAt(d)===67?(h=T,d++):(h=e,M===0&&ie(N)),h===e&&(t.charCodeAt(d)===68?(h=D,d++):(h=e,M===0&&ie(Y)),h===e&&(t.charCodeAt(d)===69?(h=ee,d++):(h=e,M===0&&ie(de)),h===e&&(t.charCodeAt(d)===75?(h=fe,d++):(h=e,M===0&&ie(Z)),h===e&&(t.charCodeAt(d)===76?(h=me,d++):(h=e,M===0&&ie(we)),h===e&&(t.charCodeAt(d)===83?(h=ke,d++):(h=e,M===0&&ie(Fe)),h===e&&(t.charCodeAt(d)===84?(h=Ce,d++):(h=e,M===0&&ie(xe)),h===e&&(t.charCodeAt(d)===85?(h=ce,d++):(h=e,M===0&&ie($e)),h===e&&(t.charCodeAt(d)===90?(h=Ge,d++):(h=e,M===0&&ie(U)),h===e&&(t.charCodeAt(d)===78?(h=st,d++):(h=e,M===0&&ie(je)),h===e&&(t.charCodeAt(d)===88?(h=et,d++):(h=e,M===0&&ie(He))))))))))))))))),h}function Jn(){var h,C,E,A,S;if(h=d,C=d,F.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(q)),E!==e){if(A=[],zt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,M===0&&ie(kt)),S!==e)for(;S!==e;)A.push(S),zt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,M===0&&ie(kt));else A=e;A!==e?(E=[E,A],C=E):(d=C,C=e)}else d=C,C=e;return C!==e?h=t.substring(h,d):h=C,h}function kr(){var h,C;for(h=[],nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ut));C!==e;)h.push(C),nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ut));return h}function Qn(){var h,C,E;return h=d,C=on(),C!==e?(oe=d,E=ct(C),E?E=void 0:E=e,E!==e?(C=[C,E],h=C):(d=h,h=e)):(d=h,h=e),h}function Xn(){var h,C;return h=d,t.length>d?(C=t.charAt(d),d++):(C=e,M===0&&ie(ve)),C!==e?h=t.substring(h,d):h=C,h}function Rn(){var h,C,E,A,S;return h=d,C=d,M++,E=Ze(),M--,E===e?C=void 0:(d=C,C=e),C!==e?(E=kr(),E!==e?(A=d,S=Jn(),S===e&&(S=null),S!==e?A=t.substring(A,d):A=S,A!==e?(S=kr(),S!==e?(oe=h,C=wr(A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h===e&&(h=null),h}function vn(){var h,C,E,A,S;return h=d,C=St(),C!==e?(oe=d,E=xt(C),E?E=void 0:E=e,E!==e?(A=Rn(),A!==e?(S=Ze(),S!==e?(oe=h,C=Ft(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Ur(){var h,C,E,A,S,z,W,ae;if(h=d,C=St(),C!==e)if(oe=d,E=tr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Rt(),S!==e)for(;S!==e;)A.push(S),S=Rt();else A=e;if(A!==e){if(S=d,z=Nt(),z!==e){for(W=[],ae=wn();ae!==e;)W.push(ae),ae=wn();W!==e?(oe=S,z=fr(C,A,W),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Ze(),z!==e?(oe=h,C=Vt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function Ni(){var h,C,E,A,S,z;if(h=d,C=St(),C!==e)if(oe=d,E=Wn(C),E?E=void 0:E=e,E!==e){if(A=d,S=[],z=Hr(),z!==e)for(;z!==e;)S.push(z),z=Hr();else S=e;S!==e?A=t.substring(A,d):A=S,A!==e?(S=Ze(),S!==e?(oe=h,C=Fn(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function sn(){var h;return t.charCodeAt(d)===66?(h=b,d++):(h=e,M===0&&ie(v)),h}function Yn(){var h,C,E,A,S;return h=d,C=d,E=d,M++,A=sn(),M--,A===e?E=void 0:(d=E,E=e),E!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,M===0&&ie(ve)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=ft,d++):(E=e,M===0&&ie(pt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=qt,d++):(S=e,M===0&&ie(dt)),S!==e?(oe=h,C=_t(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Hr(){var h,C,E,A,S,z,W,ae;if(h=d,C=d,E=[],A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,M===0&&ie(pt)),M--,W===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,M===0&&ie(ve)),W!==e?(z=[z,W],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=ft,d++):(z=e,M===0&&ie(pt)),z!==e?(W=Hr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(ae=qt,d++):(ae=e,M===0&&ie(dt)),ae!==e?(S=[S,z,W,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Yn(),A===e&&(A=Kr())),A!==e)for(;A!==e;)E.push(A),A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,M===0&&ie(pt)),M--,W===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,M===0&&ie(ve)),W!==e?(z=[z,W],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=ft,d++):(z=e,M===0&&ie(pt)),z!==e?(W=Hr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(ae=qt,d++):(ae=e,M===0&&ie(dt)),ae!==e?(S=[S,z,W,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Yn(),A===e&&(A=Kr()));else E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=Rr(C)),h=C,h}function ei(){var h,C,E,A,S;if(h=d,C=St(),C!==e)if(oe=d,E=jr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Hr(),S!==e)for(;S!==e;)A.push(S),S=Hr();else A=e;A!==e?(S=Ze(),S!==e?(oe=h,C=Ft(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function Nt(){var h;return t.charCodeAt(d)===124?(h=Lr,d++):(h=e,M===0&&ie(Br)),h}function Rt(){var h,C,E,A,S,z,W,ae;if(h=d,C=[],E=d,A=d,S=d,M++,t.charCodeAt(d)===60?(z=ft,d++):(z=e,M===0&&ie(pt)),M--,z===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(z=t.charAt(d),d++):(z=e,M===0&&ie(ve)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,M===0&&ie(pt)),S!==e?(z=Rt(),z!==e?(t.charCodeAt(d)===62?(W=qt,d++):(W=e,M===0&&ie(dt)),W!==e?(A=[A,S,z,W],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e),E===e&&(E=d,A=d,M++,S=Nt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,W=St(),M--,W===e?z=void 0:(d=z,z=e),z!==e?(W=d,M++,ae=Wr(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(A=[A,S,z,W,ae],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)),E!==e)for(;E!==e;)C.push(E),E=d,A=d,S=d,M++,t.charCodeAt(d)===60?(z=ft,d++):(z=e,M===0&&ie(pt)),M--,z===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(z=t.charAt(d),d++):(z=e,M===0&&ie(ve)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,M===0&&ie(pt)),S!==e?(z=Rt(),z!==e?(t.charCodeAt(d)===62?(W=qt,d++):(W=e,M===0&&ie(dt)),W!==e?(A=[A,S,z,W],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e),E===e&&(E=d,A=d,M++,S=Nt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,W=St(),M--,W===e?z=void 0:(d=z,z=e),z!==e?(W=d,M++,ae=Wr(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(A=[A,S,z,W,ae],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e)):(d=E,E=e));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function ti(){var h,C,E,A,S,z,W,ae,Gt,Pt,mr;if(h=d,C=St(),C!==e)if(oe=d,E=Mr(C),E?E=void 0:E=e,E!==e){if(A=[],S=ei(),S===e&&(S=Rt()),S!==e)for(;S!==e;)A.push(S),S=ei(),S===e&&(S=Rt());else A=e;if(A!==e){if(S=d,z=Nt(),z!==e){for(W=d,ae=[],Gt=d,Pt=d,M++,mr=Ze(),M--,mr===e?Pt=void 0:(d=Pt,Pt=e),Pt!==e?(t.length>d?(mr=t.charAt(d),d++):(mr=e,M===0&&ie(ve)),mr!==e?(Pt=[Pt,mr],Gt=Pt):(d=Gt,Gt=e)):(d=Gt,Gt=e);Gt!==e;)ae.push(Gt),Gt=d,Pt=d,M++,mr=Ze(),M--,mr===e?Pt=void 0:(d=Pt,Pt=e),Pt!==e?(t.length>d?(mr=t.charAt(d),d++):(mr=e,M===0&&ie(ve)),mr!==e?(Pt=[Pt,mr],Gt=Pt):(d=Gt,Gt=e)):(d=Gt,Gt=e);ae!==e?W=t.substring(W,d):W=ae,W!==e?(oe=S,z=rr(C,A,W),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Ze(),z!==e?(oe=h,C=K(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function $n(){var h,C,E,A,S,z;if(h=d,C=[],E=d,A=d,M++,t.charCodeAt(d)===59?(S=ne,d++):(S=e,M===0&&ie(ge)),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(z=t.charAt(d),d++):(z=e,M===0&&ie(ve)),z!==e?(A=[A,S,z],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e),E!==e)for(;E!==e;)C.push(E),E=d,A=d,M++,t.charCodeAt(d)===59?(S=ne,d++):(S=e,M===0&&ie(ge)),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(z=t.charAt(d),d++):(z=e,M===0&&ie(ve)),z!==e?(A=[A,S,z],E=A):(d=E,E=e)):(d=E,E=e)):(d=E,E=e);else C=e;return C!==e?h=t.substring(h,d):h=C,h}function At(){var h;return Se.test(t.charAt(d))?(h=t.charAt(d),d++):(h=e,M===0&&ie(Ct)),h}function wn(){var h,C,E,A,S,z;if(h=d,C=$n(),C!==e){for(E=[],A=At();A!==e;)E.push(A),A=At();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=At();z!==e;)S.push(z),z=At();S!==e?(z=wn(),z!==e?(oe=h,C=Ar(C,z),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=$n(),C!==e&&(oe=h,C=ze(C)),h=C),h}function Gr(){var h,C,E,A,S,z,W,ae;if(h=d,C=St(),C!==e)if(oe=d,E=it(C),E?E=void 0:E=e,E!==e){for(A=[],S=Rt();S!==e;)A.push(S),S=Rt();if(A!==e){if(S=d,z=Nt(),z!==e){for(W=[],ae=wn();ae!==e;)W.push(ae),ae=wn();W!==e?(oe=S,z=fr(C,A,W),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Ze(),z!==e?(oe=h,C=mt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function kn(){var h,C,E,A,S,z,W,ae;if(h=d,C=St(),C!==e)if(oe=d,E=zr(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,W=d,M++,ae=Ze(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(W=[W,ae],z=W):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,W=d,M++,ae=Ze(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(W=[W,ae],z=W):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Ze(),S!==e?(oe=h,C=Ft(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function Ri(){var h,C,E,A,S,z,W,ae;if(h=d,C=St(),C!==e)if(oe=d,E=Xe(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,W=d,M++,ae=Ze(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(W=[W,ae],z=W):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,W=d,M++,ae=Ze(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(W=[W,ae],z=W):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Ze(),S!==e?(oe=h,C=Ft(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function _n(){var h,C,E;if(h=d,C=[],nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(Et)),E!==e)for(;E!==e;)C.push(E),nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(Et));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function mo(){var h,C,E;return h=d,t.substr(d,2)===qn?(C=qn,d+=2):(C=e,M===0&&ie(co)),C!==e?(E=_n(),E!==e?(oe=h,C=Sr(E),h=C):(d=h,h=e)):(d=h,h=e),h}function ho(){var h,C,E;return h=d,t.substr(d,2)===Dn?(C=Dn,d+=2):(C=e,M===0&&ie(qi)),C!==e?(E=_n(),E!==e?(oe=h,C=fo(E),h=C):(d=h,h=e)):(d=h,h=e),h}function is(){var h,C,E;return h=d,t.substr(d,2)===Nn?(C=Nn,d+=2):(C=e,M===0&&ie(Di)),C!==e?(E=_n(),E!==e?(oe=h,C=Zn(E),h=C):(d=h,h=e)):(d=h,h=e),h}function os(){var h,C,E,A,S,z;if(h=d,C=d,E=d,t.substr(d,2)===gn?(A=gn,d+=2):(A=e,M===0&&ie(po)),A!==e){if(S=[],yn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(O)),z!==e)for(;z!==e;)S.push(z),yn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(O));else S=e;S!==e?(A=[A,S],E=A):(d=E,E=e)}else d=E,E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=P()),h=C,h}function go(){var h,C,E;return h=d,C=kr(),C!==e?(E=ho(),E===e&&(E=mo(),E===e&&(E=is(),E===e&&(E=os(),E===e&&(E=_n())))),E!==e?(oe=h,C=L(E),h=C):(d=h,h=e)):(d=h,h=e),h}function yo(){var h,C,E,A,S,z;if(h=d,C=go(),C!==e){for(E=[],A=At();A!==e;)E.push(A),A=At();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=At();z!==e;)S.push(z),z=At();S!==e?(z=yo(),z!==e?(oe=h,C=Ar(C,z),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=go(),C!==e&&(oe=h,C=ze(C)),h=C),h}function bo(){var h,C,E,A,S;return h=d,C=St(),C!==e?(oe=d,E=H(C),E?E=void 0:E=e,E!==e?(A=d,S=yo(),S!==e&&(oe=A,S=G(C,S)),A=S,A===e&&(A=null),A!==e?(S=Ze(),S!==e?(oe=h,C=ue(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function St(){var h,C,E;return h=d,C=d,E=Qn(),E!==e?C=t.substring(C,d):C=E,C!==e?(t.charCodeAt(d)===60?(E=ft,d++):(E=e,M===0&&ie(pt)),E!==e?(oe=h,C=_e(C),h=C):(d=h,h=e)):(d=h,h=e),h}function Ze(){var h;return t.charCodeAt(d)===62?(h=qt,d++):(h=e,M===0&&ie(dt)),h}function ji(){var h,C,E,A,S;if(h=d,C=St(),C!==e)if(oe=d,E=Pe(C),E?E=void 0:E=e,E!==e){for(A=[],S=Dt(),S===e&&(S=ji(),S===e&&(S=Cn()));S!==e;)A.push(S),S=Dt(),S===e&&(S=ji(),S===e&&(S=Cn()));A!==e?(S=Ze(),S!==e?(oe=h,C=De(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function _c(){var h,C,E,A,S;for(h=d,C=[],E=d,A=d,M++,S=Ze(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,M===0&&ie(ve)),S!==e?(A=[A,S],E=A):(d=E,E=e)):(d=E,E=e);E!==e;)C.push(E),E=d,A=d,M++,S=Ze(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,M===0&&ie(ve)),S!==e?(A=[A,S],E=A):(d=E,E=e)):(d=E,E=e);return C!==e?h=t.substring(h,d):h=C,h}function Cn(){var h,C,E,A,S,z,W;if(h=d,C=d,E=[],A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,M===0&&ie(pt)),S!==e?(z=Cn(),z!==e?(t.charCodeAt(d)===62?(W=qt,d++):(W=e,M===0&&ie(dt)),W!==e?(S=[S,z,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Wr(),A===e&&(A=Kr())),A!==e)for(;A!==e;)E.push(A),A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,M===0&&ie(pt)),S!==e?(z=Cn(),z!==e?(t.charCodeAt(d)===62?(W=qt,d++):(W=e,M===0&&ie(dt)),W!==e?(S=[S,z,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Wr(),A===e&&(A=Kr()));else E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=Rr(C)),h=C,h}function Kr(){var h,C,E,A,S,z,W,ae;if(h=d,C=d,E=[],A=d,S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,W=St(),M--,W===e?z=void 0:(d=z,z=e),z!==e?(W=d,M++,ae=Wr(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(S=[S,z,W,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A!==e)for(;A!==e;)E.push(A),A=d,S=d,M++,z=Ze(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,W=St(),M--,W===e?z=void 0:(d=z,z=e),z!==e?(W=d,M++,ae=Wr(),M--,ae===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie(ve)),ae!==e?(S=[S,z,W,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e);else E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=Rr(C)),h=C,h}function Wr(){var h,C,E,A,S;return h=d,C=d,E=d,M++,A=Qn(),M--,A===e?E=void 0:(d=E,E=e),E!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,M===0&&ie(ve)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=ft,d++):(E=e,M===0&&ie(pt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=qt,d++):(S=e,M===0&&ie(dt)),S!==e?(oe=h,C=_t(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Li(h){return h.reduce((C,E)=>Array.isArray(E)?C.concat(Li(E)):C.concat(E),[])}if(We=i(),We!==e&&d===t.length)return We;throw We!==e&&d<t.length&&ie(pr()),Tr(Ke,Be<t.length?t.charAt(Be):null,Be<t.length?dr(Be,Be+1):dr(Be,Be))}$p.exports={SyntaxError:hi,parse:Vb}});var zn=re(An=>{"use strict";var Nl=An&&An.__assign||function(){return Nl=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Nl.apply(this,arguments)};Object.defineProperty(An,"__esModule",{value:!0});An.isSemanticBlock=An.isNamedBlock=void 0;var kp=So(),Ub=kp.makeRule,Hb=kp.makePlug;function Gb(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}An.isNamedBlock=Gb;function Kb(t){var r=t.name||"",e=(t.type||"")==="block";return e&&r===r.toUpperCase()}An.isSemanticBlock=Kb;function _p(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(_p(e)):r.concat(e)},[])}var Wb=function(t){var r=[];function e(i,o){if(i instanceof Array&&console.warn("[pod] Unsupported param for ".concat(i)),i instanceof Object){for(var a in i)i.hasOwnProperty(a)&&e(a,i[a]);return[]}r.push(Ub(Hb(i),o))}function n(i,o){if(o===void 0&&(o={}),i instanceof Array)return _p(i.map(function(m){return n(m,o)}));if(typeof i=="string")return i;var a=r.slice();a.reverse();var u=a.findIndex(function(m){return m.isFor(i)});if(u!==-1)return a[u].fn(i,o,n);var c=Nl({},i);return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}return e(t),n.rules=r,n};An.default=Wb});var yi=re(gi=>{"use strict";var Cp=gi&&gi.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};Object.defineProperty(gi,"__esModule",{value:!0});gi.getNodeId=void 0;var Zb=function(t,r){var e=xp(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};gi.getNodeId=Zb;var xp=function(t,r){r===void 0&&(r={});var e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);var i={};Cp(Cp([],e,!0),n,!0).map(function(a){var u;i.hasOwnProperty(a.name)||(i[a.name]=[]),a.type==="array"?(u=i[a.name]).push.apply(u,a.value):i[a.name].push(a.value)});var o=function(){};return o.exists=function(a){return i.hasOwnProperty(a)},o.getAllValues=function(a){return o.exists(a)?i[a]:[]},o.getFirstValue=function(a){return o.exists(a)?o.getAllValues(a)[0]:void 0},o.asHash=function(){return i},o};gi.default=xp});var Ap=re(bi=>{"use strict";var Sn=bi&&bi.__assign||function(){return Sn=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Sn.apply(this,arguments)},Ep=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bi,"__esModule",{value:!0});var Ns=wp(),Rl=Ep(zn()),Jb=zn(),Qb=Ep(yi()),Xb=function(){return function(t){var r=(0,Rl.default)({":para":function(e,n,i){return(0,Rl.default)({":text":function(o,a){return Ns.parse(o.value)},":verbatim":function(o,a){return Ns.parse(o.value)}})(e,Sn({},n))},":block":function(e,n,i){if("name"in e&&e.name==="pod")return Sn(Sn({},e),{content:i(e.content,n,i)});var o=(0,Qb.default)(e,n),a="name"in e&&e.name==="code",u="name"in e&&e.name==="data",c=o.getAllValues("allow");if((a||u)&&c.length==0)return e;var m=c.sort(),p=(0,Rl.default)({":verbatim":function(b,v){return Ns.parse(b.value,{allowed:m})},":text":function(b,v){return Ns.parse(b.value,{allowed:m})},":block":function(b,v){return(0,Jb.isNamedBlock)(b.name)?b:Sn(Sn({},b),{content:p(b.content,Sn({},v))})}});return p(e,Sn({},n))}});return r(t,{})}};bi.default=Xb});var Sp=re(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.default=function(){return function(t){var r=function(e){if(Array.isArray(e))e.forEach(function(u){r(u)});else if(e&&e.type==="block"){var n=/^item(\d+)?/.exec(e.name);if(n&&(e.name="item",e.level=n[1]||1,e.content[0])){var i=e.content[0];if(i.text){var o=/^(\s*#\s*)/,a=o.exec(i.text);a&&(i.text=i.text.replace(o,""),i.type==="para"&&(i.content=[i.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}r(e.content)}};return r(t),t}}});var Pp=re(Io=>{"use strict";var Rs=Io&&Io.__assign||function(){return Rs=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Rs.apply(this,arguments)};Object.defineProperty(Io,"__esModule",{value:!0});Io.default=function(){return function(t){var r=function(e){if(Array.isArray(e))e.forEach(function(u){r(u)});else if(e&&e.type==="block"){var n=/^head(\d+)?/.exec(e.name);if(n&&(e.name="head",e.level=n[1]||1,e.content[0])){var i=e.content[0];if(i.text){var o=/(\s*#\s*)/,a=o.exec(i.text);a&&(i.text=i.text.replace(o,""),e.config=Rs(Rs({},e.config),{numbered:!0}))}}r(e.content)}};return r(t),t}}});var Tp=re(Oo=>{"use strict";var Yb=Oo&&Oo.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=function(){return function(t){var r=function(o,a){return(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a)},e=function(o){return Boolean(o.config&&o.config.numbered)},n=function(o){var a={},u=o.reduce(function(c,m){return m.name==="defn"?r(a,m)?c[c.length-1].push(m):c.push([m]):c.push(m),a=m,c},[]);return u.map(function(c){if(c instanceof Array){if(c[0].name!=="defn")return c;var m=c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized";return{type:"list",list:m,level:1,content:Yb([],c,!0)}}return c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c})},i=function(o){return Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o)};return t=i(t),t}}});var Op=re(vi=>{"use strict";var Ip=vi&&vi.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},ev=vi&&vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vi,"__esModule",{value:!0});var tv=ev(yi());vi.default=function(){return function(t){var r=function(o,a){return(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a)},e=function(o){return Boolean((0,tv.default)(o,{}).exists("numbered"))},n=function(o,a){a===void 0&&(a=1);var u=function(v){return v.length>0&&v[v.length-1].type==="list"},c=function(v){if(u(v))return v[v.length-1]},m=function(v,w){return w.name&&w.name==="item"&&w.type&&w.type==="block"||w.type==="blankline"},p={},b=o.reduce(function(v,w){return w.name==="item"&&w.type==="block"&&w.level<a?Ip(Ip([],v,!0),[w],!1):(w.name==="item"&&w.type==="block"&&(!u(v)||w.level===a&&c(v).list!==(e(w)?"ordered":"itemized"))&&v.push({type:"list",level:w.level,content:[],list:e(w)?"ordered":"itemized"}),u(v)&&m(c(v),w)?c(v).content.push(w):v.push(w),v)},[]);return b.map(function(v){return v.content&&v.type!=="fcode"&&(v.content=n(v.content,v.level+1)),v})},i=function(o){return Array.isArray(o)?o=n(o):o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o};return t=i(t),t}}});var Fp=re(Fo=>{"use strict";var rv=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});var nv=rv(zn());Fo.default=function(){return function(t){var r=(0,nv.default)({defn:function(e){for(var n=e.content,i=n.length,o=[],a=!1,u=0;u<i;u++){var c=n[u];if(c.type==="para"&&!a){var m=c.content[0],p=m.value,b=p.split(`
12
+ `,!1),fe="\r",Z=tt("\r",!1),me=function(){return{type:"blankline"}},we="=begin ",ve=tt("=begin ",!1),Fe="=end ",xe=tt("=end ",!1),Ce="=for ",ue=tt("=for ",!1),$e="=config",He=tt("=config",!1),U="=alias",st=tt("=alias",!1),Re=function(l){return fh(l)},et=function(l){return l},Ue="=",O=tt("=",!1),q=Xo("text"),Bt=function(){return Sr()},vt=function(){return{type:"para",value:Sr(),error:!0,location:nr()}},nt=function(l,f){return Ni([l,f])},ut=function(l){return[l]},ct=",",be=tt(",",!1),br=function(l,f){return Ni([l,f])},Ct=/^[a-zA-Z0-9]/,It=yt([["a","z"],["A","Z"],["0","9"]],!1,!1),Yt=/^[a-zA-Z0-9_\-]/,lr=yt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),zt="=>",Hn=tt("=>",!1),Tn=function(l,f){return{[l]:f}},ft=function(l,f){return{...l,...f}},pt=function(l){return l},Ft=":",dt=tt(":",!1),kt="allow",Or=tt("allow",!1),qr="<",Dr=tt("<",!1),Nr=">",Rr=tt(">",!1),er=function(l,f){return{value:f,type:"array"}},K=function(l,f){return{name:"allow",...f}},re=function(l){return l},ge=function(l){return l},Ae=function(l){return[l]},xt=function(){return[]},xr=/^[!]/,ze=yt(["!"],!1,!1),it="{",mt=tt("{",!1),Lr="}",Qe=tt("}",!1),tn=function(l,f,g){return{value:g}},Et="[",Pn=tt("[",!1),ro=function(l,f,g){return g},Cr="]",In=tt("]",!1),Ei=function(l,f){return[Sr()]},no=function(l,f,g){return{value:g,type:"array"}},Fn=function(l,f,g){return{value:g,type:"array"}},_i=function(l,f,g){return{value:g,type:"string"}},Gn="(",mn=tt("(",!1),io=function(l,f,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},hn=")",F=tt(")",!1),T=function(l,f){return{value:Sr()}},j=function(l,f,g){return{type:"value",...g}},H=function(l,f){return{value:!l,type:"boolean"}},G=function(l,f,g){return{name:f,...g}},le=function(l,f){return f},ke=function(l,f){return Ni([...l,...f])},Se=/^[^'"]/,qe=yt(["'",'"'],!0,!1),d=function(l){return l},ie=/^[0-9]/,Le=yt([["0","9"]],!1,!1),je=/^[\-+]/,Ge=yt(["-","+"],!1,!1),z="True",Ke=tt("True",!1),Be=function(){return!0},jr="False",Mt=tt("False",!1),tr=function(){return!1},he=".",at=tt(".",!1),Vt=/^[eE]/,ur=yt(["e","E"],!1,!1),Er=/^["]/,rr=yt(['"'],!1,!1),cr=/^[^"]/,ne=yt(['"'],!0,!1),gn=/^[']/,_r=yt(["'"],!1,!1),Ar=/^[^']/,Ot=yt(["'"],!0,!1),rn=function(l){return parseFloat(l)},Kn=function(l){return parseInt(l,10)},$r=function(l,f,g){return f.match(/code|comment|output|input|data/)||ns(f)},Wn=function(l,f,g,y,k){return l.length===y.length&&f===k},Zn=function(l,f,g,y,k){return ph(l,`${y}${k}`)},On=function(l,f,g,y,k,$){return f===$},yn=function(l,f,g,y,k,$){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:f,margin:l}},Br=function(l,f,g,y,k,$){return!0},Ai=function(l,f,g,y,k,$){return{...$,text:Sr(),config:g,location:nr()}},nn=/^[+-=_|]/,Jn=yt([["+","="],"_","|"],!1,!1),zr=function(){return{type:"separator",text:Sr()}},Qn=function(){return r.isDelimited},qt=function(){return{type:"separator",text:Sr()}},Dt=function(l){return{name:"row",type:"text",value:l}},Xn=function(){return r.separators=[],!0},bn=function(l,f){return r.separators.push(f.text),f},_t=function(l,f,g,y){return r.separators.push(y.text),y},$n=function(l,f,g,y){return[{name:"row",type:"text",value:g},y]},Mr=function(l,f,g){return[g]},wn=function(l,f,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Si=function(l,f,g){return[{name:"head",type:"text",value:l},f,...Ni(g)]},vn=function(l,f){return[{name:"row",type:"text",value:l},f]},oo=function(l){return[...Ni(l)]},so=function(l,f,g){return f==="table"},Go=function(l,f,g){return r.isDelimited=!0,!0},Ko=function(l,f,g,y){return y},ao=function(l,f,g,y,k,$){return{type:"block",content:y,name:f,margin:l}},lo=function(l,f,g,y,k,$){return{...$,text:Sr(),config:g,location:nr()}},uo=function(l,f,g,y){return y},At=function(l,f,g,y,k){let $=f.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:k,margin:y,type:$,content:[{type:$==="code"?"verbatim":"text",value:k}],location:nr()}},We=function(l,f,g,y,k,$){return{type:"block",content:y,name:f,margin:l}},Ti=function(l,f,g,y,k,$){return{...$,config:g,location:nr()}},ic=function(){return{text:Sr(),type:"para",margin:"",content:[{type:"text",value:Sr()}],location:nr()}},kn=function(){return{empty:1}},Vr=/^[s]/,Ur=yt(["s"],!1,!1),Pi=function(l){return{text:Sr(),type:"ambient1"}},h=function(l,f){return f.match(/code|comment|output|input|data/)||ns(f)},C=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:f,config:[],location:nr()}},_=function(l,f){return f==="table"},A=function(l,f){return r.isDelimited=!1,!0},S=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:g,name:f,config:[],location:nr()}},M=function(l,f,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:nr()}],name:f,location:nr()}},W="= ",se=tt("= ",!1),Ut=function(l,f,g,y){return{name:g,type:"alias",replacement:y,margin:l}},St=/^[A-Z]/,fr=yt([["A","Z"]],!1,!1),oc="<>",Bm=tt("<>",!1),zm=function(l,f,g,y){return{name:g,type:"config",config:y,margin:l}},Mm=function(l,f,g,y){return g.match(/code|comment|output|input|data/)||ns(g)},Vm=function(l,f,g,y,k){return{type:"block",content:k===""?[]:[{type:"verbatim",value:k}],name:g,margin:l,config:y,location:nr()}},Um=function(l,f,g,y){return g==="table"},Hm=function(l,f,g,y){return r.isDelimited=!1,!0},Gm=function(l,f,g,y,k){return{type:"block",content:k===""?[]:k,name:g,margin:l,config:y,location:nr()}},Km=function(l,f,g,y,k){return{type:"block",content:k===""?[]:[{type:"para",content:[{type:"text",value:k}],margin:l,text:k,location:nr()}],name:g,margin:l,config:y,location:nr()}},Wm=/^[a-zA-Z]/,Zm=yt([["a","z"],["A","Z"]],!1,!1),Jm=Xo("whitespace"),Wo=/^[\r\n \t\f]/,Zo=yt(["\r",`
13
+ `," "," ","\f"],!1,!1),Qm=Xo("space characters"),s=0,Q=0,Jo=[{line:1,column:1}],on=0,ua=[],B=0,Qo;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Sr(){return t.substring(Q,s)}function nr(){return co(Q,s)}function f1(l,f){throw f=f!==void 0?f:co(Q,s),ac([Xo(l)],t.substring(Q,s),f)}function p1(l,f){throw f=f!==void 0?f:co(Q,s),eh(l,f)}function tt(l,f){return{type:"literal",text:l,ignoreCase:f}}function yt(l,f,g){return{type:"class",parts:l,inverted:f,ignoreCase:g}}function Xm(){return{type:"any"}}function Ym(){return{type:"end"}}function Xo(l){return{type:"other",description:l}}function sc(l){var f=Jo[l],g;if(f)return f;for(g=l-1;!Jo[g];)g--;for(f=Jo[g],f={line:f.line,column:f.column};g<l;)t.charCodeAt(g)===10?(f.line++,f.column=1):f.column++,g++;return Jo[l]=f,f}function co(l,f){var g=sc(l),y=sc(f);return{start:{offset:l,line:g.line,column:g.column},end:{offset:f,line:y.line,column:y.column}}}function Y(l){s<on||(s>on&&(on=s,ua=[]),ua.push(l))}function eh(l,f){return new hi(l,null,null,f)}function ac(l,f,g){return new hi(hi.buildMessage(l,f),l,f,g)}function lc(){var l,f,g;for(l=s,f=[],g=uc();g!==e;)f.push(g),g=uc();return f!==e&&(Q=l,f=o(f)),l=f,l}function uc(){var l,f,g,y,k,$,R,V;if(l=ca(),l===e&&(l=pa(),l===e&&(l=da(),l===e&&(l=$a(),l===e&&(l=wa(),l===e&&(l=va(),l===e&&(l=ya(),l===e&&(l=ba(),l===e&&(l=ma(),l===e&&(l=ha(),l===e&&(l=ga(),l===e&&(l=s,Q=s,f=a(),f?f=void 0:f=e,f!==e?(g=lh(),g===e&&(g=sn(),g===e&&(g=nh())),g!==e?(Q=l,f=u(g),l=f):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,f=s,g=[],y=s,k=s,B++,$=s,R=xn(),R!==e?(V=Ht(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ti()),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,k=s,B++,$=s,R=xn(),R!==e?(V=Ht(),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=ti()),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=m()),l=f}return l}function bt(){var l;return p.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&Y(b)),l}function pe(){var l,f;for(l=[],v.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(w));f!==e;)l.push(f),v.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(w));return l}function Yn(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(x.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(P)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function d1(){var l,f,g,y;if(l=s,f=s,g=[],y=fo(),y!==e)for(;y!==e;)g.push(y),y=fo();else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Ii(),g!==e?(Q=l,f=N(f),l=f):(s=l,l=e)):(s=l,l=e),l}function fo(){var l;return D.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&Y(X)),l}function ei(){var l,f,g;return t.charCodeAt(s)===10?(l=ee,s++):(l=e,B===0&&Y(de)),l===e&&(l=s,t.charCodeAt(s)===13?(f=fe,s++):(f=e,B===0&&Y(Z)),f!==e?(t.charCodeAt(s)===10?(g=ee,s++):(g=e,B===0&&Y(de)),g===e&&(g=null),g!==e?(f=[f,g],l=f):(s=l,l=e)):(s=l,l=e)),l}function Ii(){var l,f;return l=ei(),l===e&&(l=s,B++,t.length>s?(f=t.charAt(s),s++):(f=e,B===0&&Y(c)),B--,f===e?l=void 0:(s=l,l=e)),l}function wr(){var l,f,g,y;for(l=s,f=s,g=[],y=bt();y!==e;)g.push(y),y=bt();return g!==e?(x.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(P)),y!==e?(g=[g,y],f=g):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l}function sn(){var l,f,g,y,k;for(l=s,f=s,g=s,y=[],k=bt();k!==e;)y.push(k),k=bt();return y!==e?(x.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(P)),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=me()),l=f,l}function Yo(){var l;return t.substr(s,7)===we?(l=we,s+=7):(l=e,B===0&&Y(ve)),l}function Fi(){var l;return t.substr(s,5)===Fe?(l=Fe,s+=5):(l=e,B===0&&Y(xe)),l}function es(){var l;return t.substr(s,5)===Ce?(l=Ce,s+=5):(l=e,B===0&&Y(ue)),l}function th(){var l;return t.substr(s,7)===$e?(l=$e,s+=7):(l=e,B===0&&Y(He)),l}function rh(){var l;return t.substr(s,6)===U?(l=U,s+=6):(l=e,B===0&&Y(st)),l}function Ht(){var l,f,g;return l=s,f=ka(),f!==e?(Q=s,g=Re(f),g?g=void 0:g=e,g!==e?(Q=l,f=et(f),l=f):(s=l,l=e)):(s=l,l=e),l}function ti(){var l,f,g;return l=s,t.charCodeAt(s)===61?(f=Ue,s++):(f=e,B===0&&Y(O)),f!==e?(g=Ht(),g!==e?(Q=l,f=et(g),l=f):(s=l,l=e)):(s=l,l=e),l}function xn(){var l;return l=Yo(),l===e&&(l=Fi(),l===e&&(l=es(),l===e&&(l=th(),l===e&&(l=rh())))),l}function an(){var l,f,g;if(B++,l=s,f=[],g=fo(),g!==e)for(;g!==e;)f.push(g),g=fo();else f=e;return f!==e?l=t.substring(l,s):l=f,B--,l===e&&(f=e,B===0&&Y(q)),l}function Nt(){var l,f,g,y,k,$,R;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(k=s,$=xn(),$!==e?(R=Ht(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k===e&&(k=ti()),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=sn()),B--,g===e?f=void 0:(s=f,f=e),f!==e){if(g=s,y=[],k=an(),k!==e)for(;k!==e;)y.push(k),k=an();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Ii(),y!==e?(Q=l,f=Bt(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function nh(){var l,f,g,y,k,$;if(l=s,f=s,g=[],y=s,k=s,B++,$=Ii(),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,k=s,B++,$=Ii(),B--,$===e?k=void 0:(s=k,k=e),k!==e?(t.length>s?($=t.charAt(s),s++):($=e,B===0&&Y(c)),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e?(g=Ii(),g!==e?(Q=l,f=vt(),l=f):(s=l,l=e)):(s=l,l=e),l}function cc(){var l,f,g,y;if(l=s,f=fc(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g!==e?(y=cc(),y!==e?(Q=l,f=nt(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=fc(),f!==e&&(Q=l,f=ut(f)),l=f),l}function fc(){var l,f;return l=s,f=fo(),f!==e?l=t.substring(l,s):l=f,l}function ts(){var l,f,g,y,k,$;if(l=s,f=qi(),f!==e){if(g=[],y=bt(),y!==e)for(;y!==e;)g.push(y),y=bt();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(k=ct,s++):(k=e,B===0&&Y(be)),k!==e?($=pe(),$!==e?(y=[y,k,$],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=ts(),y!==e?(Q=l,f=br(f,y),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,f=qi(),f!==e&&(Q=l,f=ut(f)),l=f),l}function ih(){var l,f,g,y,k;if(l=s,f=s,g=[],Ct.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(It)),y!==e)for(;y!==e;)g.push(y),Ct.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(It));else g=e;if(g!==e){for(y=[],Yt.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(lr));k!==e;)y.push(k),Yt.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(lr));y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function pc(){var l,f,g,y,k,$;return l=s,f=ih(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&Y(be)),y===e&&(t.substr(s,2)===zt?(y=zt,s+=2):(y=e,B===0&&Y(Hn))),y!==e?(k=pe(),k!==e?($=qi(),$!==e?(Q=l,f=Tn(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function dc(){var l,f,g,y,k,$;return l=s,f=pc(),f!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&Y(be)),y!==e?(k=pe(),k!==e?($=dc(),$!==e?(Q=l,f=ft(f,$),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,f=pc(),f!==e&&(Q=l,f=pt(f)),l=f),l}function oh(){var l,f,g,y,k,$,R,V,E,I;return l=s,f=pe(),f!==e?(t.charCodeAt(s)===58?(g=Ft,s++):(g=e,B===0&&Y(dt)),g!==e?(t.substr(s,5)===kt?(y=kt,s+=5):(y=e,B===0&&Y(Or)),y!==e?(k=s,t.charCodeAt(s)===60?($=qr,s++):($=e,B===0&&Y(Dr)),$!==e?(R=pe(),R!==e?(V=cc(),V!==e?(E=pe(),E!==e?(t.charCodeAt(s)===62?(I=Nr,s++):(I=e,B===0&&Y(Rr)),I!==e?(Q=k,$=er(y,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)):(s=k,k=e),k!==e?($=pe(),$!==e?(Q=l,f=K(y,k),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function m1(){var l,f,g,y,k,$;for(l=s,f=[],g=s,y=pe(),y!==e?(k=qi(),k!==e?($=pe(),$!==e?(Q=g,y=re(k),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)f.push(g),g=s,y=pe(),y!==e?(k=qi(),k!==e?($=pe(),$!==e?(Q=g,y=re(k),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return f!==e&&(Q=l,f=ge(f)),l=f,l===e&&(l=s,f=qi(),f!==e&&(Q=l,f=Ae(f)),l=f,l===e&&(l=s,f=pe(),f!==e&&(Q=l,f=xt()),l=f)),l}function Oi(){var l,f,g,y,k,$,R,V,E,I,L,J,te,oe;if(l=oh(),l===e)if(l=s,f=pe(),f!==e)if(t.charCodeAt(s)===58?(g=Ft,s++):(g=e,B===0&&Y(dt)),g!==e)if(xr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(ze)),y===e&&(y=null),y!==e)if(k=ka(),k!==e){if($=s,t.charCodeAt(s)===123?(R=it,s++):(R=e,B===0&&Y(mt)),R!==e?(V=pe(),V!==e?(E=dc(),E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===125?(L=Lr,s++):(L=e,B===0&&Y(Qe)),L!==e?(Q=$,R=tn(y,k,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e){if($=s,t.charCodeAt(s)===91?(R=Et,s++):(R=e,B===0&&Y(Pn)),R!==e)if(V=pe(),V!==e){if(E=s,I=ts(),I!==e&&(Q=E,I=ro(y,k,I)),E=I,E===e){if(E=s,I=s,L=[],J=s,te=s,B++,t.charCodeAt(s)===93?(oe=Cr,s++):(oe=e,B===0&&Y(In)),oe===e&&(t.charCodeAt(s)===91?(oe=Et,s++):(oe=e,B===0&&Y(Pn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)L.push(J),J=s,te=s,B++,t.charCodeAt(s)===93?(oe=Cr,s++):(oe=e,B===0&&Y(In)),oe===e&&(t.charCodeAt(s)===91?(oe=Et,s++):(oe=e,B===0&&Y(Pn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e);else L=e;L!==e?I=t.substring(I,s):I=L,I!==e&&(Q=E,I=Ei(y,k)),E=I}E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===93?(L=Cr,s++):(L=e,B===0&&Y(In)),L!==e?(Q=$,R=no(y,k,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e&&($=s,t.charCodeAt(s)===60?(R=qr,s++):(R=e,B===0&&Y(Dr)),R!==e?(V=pe(),V!==e?(E=ts(),E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(L=Nr,s++):(L=e,B===0&&Y(Rr)),L!==e?(Q=$,R=Fn(y,k,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)):(s=$,$=e),$===e)){if($=s,t.charCodeAt(s)===60?(R=qr,s++):(R=e,B===0&&Y(Dr)),R!==e)if(V=pe(),V!==e){if(E=s,I=[],L=s,J=s,B++,t.charCodeAt(s)===60?(te=qr,s++):(te=e,B===0&&Y(Dr)),te===e&&(t.charCodeAt(s)===62?(te=Nr,s++):(te=e,B===0&&Y(Rr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&Y(c)),te!==e?(J=[J,te],L=J):(s=L,L=e)):(s=L,L=e),L!==e)for(;L!==e;)I.push(L),L=s,J=s,B++,t.charCodeAt(s)===60?(te=qr,s++):(te=e,B===0&&Y(Dr)),te===e&&(t.charCodeAt(s)===62?(te=Nr,s++):(te=e,B===0&&Y(Rr))),B--,te===e?J=void 0:(s=J,J=e),J!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&Y(c)),te!==e?(J=[J,te],L=J):(s=L,L=e)):(s=L,L=e);else I=e;I!==e?E=t.substring(E,s):E=I,E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===62?(L=Nr,s++):(L=e,B===0&&Y(Rr)),L!==e?(Q=$,R=_i(y,k,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;if($===e){if($=s,t.charCodeAt(s)===40?(R=Gn,s++):(R=e,B===0&&Y(mn)),R!==e)if(V=pe(),V!==e){if(E=s,I=ts(),I!==e&&(Q=E,I=io(y,k,I)),E=I,E===e){if(E=s,I=s,L=[],J=s,te=s,B++,t.charCodeAt(s)===41?(oe=hn,s++):(oe=e,B===0&&Y(F)),oe===e&&(t.charCodeAt(s)===40?(oe=Gn,s++):(oe=e,B===0&&Y(mn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e),J!==e)for(;J!==e;)L.push(J),J=s,te=s,B++,t.charCodeAt(s)===41?(oe=hn,s++):(oe=e,B===0&&Y(F)),oe===e&&(t.charCodeAt(s)===40?(oe=Gn,s++):(oe=e,B===0&&Y(mn))),B--,oe===e?te=void 0:(s=te,te=e),te!==e?(t.length>s?(oe=t.charAt(s),s++):(oe=e,B===0&&Y(c)),oe!==e?(te=[te,oe],J=te):(s=J,J=e)):(s=J,J=e);else L=e;L!==e?I=t.substring(I,s):I=L,I!==e&&(Q=E,I=T(y,k)),E=I}E!==e?(I=pe(),I!==e?(t.charCodeAt(s)===41?(L=hn,s++):(L=e,B===0&&Y(F)),L!==e?(Q=$,R=j(y,k,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)}else s=$,$=e;else s=$,$=e;$===e&&($=s,R=pe(),R!==e&&(Q=$,R=H(y,k)),$=R)}}}$!==e?(R=pe(),R!==e?(Q=l,f=G(y,k,$),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function ri(){var l,f,g,y,k,$,R,V,E,I;for(l=s,f=[],g=Oi();g!==e;)f.push(g),g=Oi();if(f!==e)if(g=ei(),g!==e){if(y=[],k=s,t.charCodeAt(s)===61?($=Ue,s++):($=e,B===0&&Y(O)),$!==e)if(R=pe(),R!==e){if(V=[],E=Oi(),E!==e)for(;E!==e;)V.push(E),E=Oi();else V=e;V!==e?(E=pe(),E!==e?(I=ei(),I!==e?(Q=k,$=le(f,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;for(;k!==e;)if(y.push(k),k=s,t.charCodeAt(s)===61?($=Ue,s++):($=e,B===0&&Y(O)),$!==e)if(R=pe(),R!==e){if(V=[],E=Oi(),E!==e)for(;E!==e;)V.push(E),E=Oi();else V=e;V!==e?(E=pe(),E!==e?(I=ei(),I!==e?(Q=k,$=le(f,V),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;y!==e?(Q=l,f=ke(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function h1(){var l,f,g,y;if(l=s,f=s,g=[],Se.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(qe)),y!==e)for(;y!==e;)g.push(y),Se.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(qe));else g=e;return g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=d(f)),l=f,l}function mc(){var l,f,g;if(l=s,f=[],ie.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Le)),g!==e)for(;g!==e;)f.push(g),ie.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Le));else f=e;return f!==e?l=t.substring(l,s):l=f,l}function rs(){var l,f,g,y,k;if(l=s,f=s,je.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Ge)),g===e&&(g=null),g!==e){if(y=[],ie.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(Le)),k!==e)for(;k!==e;)y.push(k),ie.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(Le));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function sh(){var l,f;return l=s,t.substr(s,4)===z?(f=z,s+=4):(f=e,B===0&&Y(Ke)),f!==e&&(Q=l,f=Be()),l=f,l===e&&(l=s,t.substr(s,5)===jr?(f=jr,s+=5):(f=e,B===0&&Y(Mt)),f!==e&&(Q=l,f=tr()),l=f),l}function ah(){var l,f,g,y,k,$;return l=s,f=s,g=rs(),g!==e?(y=s,t.charCodeAt(s)===46?(k=he,s++):(k=e,B===0&&Y(at)),k!==e?($=mc(),$!==e?(k=[k,$],y=k):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(Vt.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(ur)),k!==e?($=rs(),$!==e?(g=[g,y,k,$],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f,l===e&&(l=s,f=s,g=rs(),g!==e?(t.charCodeAt(s)===46?(y=he,s++):(y=e,B===0&&Y(at)),y!==e?(k=mc(),k!==e?(g=[g,y,k],f=g):(s=f,f=e)):(s=f,f=e)):(s=f,f=e),f!==e?l=t.substring(l,s):l=f),l}function qi(){var l,f,g,y,k;if(l=s,Er.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(rr)),f!==e){for(g=s,y=[],cr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(ne));k!==e;)y.push(k),cr.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(ne));y!==e?g=t.substring(g,s):g=y,g!==e?(Er.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(rr)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,gn.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(_r)),f!==e){for(g=s,y=[],Ar.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(Ot));k!==e;)y.push(k),Ar.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(Ot));y!==e?g=t.substring(g,s):g=y,g!==e?(gn.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(_r)),y!==e?(Q=l,f=d(g),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=sh(),l===e&&(l=s,f=ah(),f!==e&&(Q=l,f=rn(f)),l=f,l===e&&(l=s,f=rs(),f!==e&&(Q=l,f=Kn(f)),l=f)))}return l}function ca(){var l,f,g,y,k,$,R,V,E,I,L,J,te,oe,rt,qn,Pr;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(k=pe(),k!==e)if($=ri(),$!==e)if(Q=s,R=$r(f,y,$),R?R=void 0:R=e,R!==e){if(V=[],E=s,I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Yn(),J===e&&(J=s,te=s,B++,oe=xn(),B--,oe===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,oe=s,rt=Fi(),rt!==e?(qn=Ht(),qn!==e?(Q=s,Pr=Wn(f,y,$,I,qn),Pr?Pr=void 0:Pr=e,Pr!==e?(rt=[rt,qn,Pr],oe=rt):(s=oe,oe=e)):(s=oe,oe=e)):(s=oe,oe=e),B--,oe===e?te=void 0:(s=te,te=e)),te!==e?(oe=an(),oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(te=[te,oe,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?L=t.substring(L,s):L=J,L!==e?(Q=E,I=Zn(f,y,$,I,L),E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Yn(),J===e&&(J=s,te=s,B++,oe=xn(),B--,oe===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,oe=s,rt=Fi(),rt!==e?(qn=Ht(),qn!==e?(Q=s,Pr=Wn(f,y,$,I,qn),Pr?Pr=void 0:Pr=e,Pr!==e?(rt=[rt,qn,Pr],oe=rt):(s=oe,oe=e)):(s=oe,oe=e)):(s=oe,oe=e),B--,oe===e?te=void 0:(s=te,te=e)),te!==e?(oe=an(),oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(te=[te,oe,rt],J=te):(s=J,J=e)):(s=J,J=e)):(s=J,J=e)),J!==e?L=t.substring(L,s):L=J,L!==e?(Q=E,I=Zn(f,y,$,I,L),E=I):(s=E,E=e)):(s=E,E=e);else V=e;V!==e?(E=s,I=pe(),I!==e?E=t.substring(E,s):E=I,E!==e?(I=s,L=Fi(),L!==e?(J=Ht(),J!==e?(Q=s,te=On(f,y,$,V,E,J),te?te=void 0:te=e,te!==e?(oe=Yn(),oe===e&&(oe=null),oe!==e?(Q=I,L=yn(f,y,$,V,E,J),I=L):(s=I,I=e)):(s=I,I=e)):(s=I,I=e)):(s=I,I=e),I!==e?(Q=s,L=Br(f,y,$,V,E,I),L?L=void 0:L=e,L!==e?(Q=l,f=Ai(f,y,$,V,E,I),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function Di(){var l,f,g,y,k,$,R,V,E;if(l=s,f=s,B++,g=s,y=pe(),y!==e?(k=xn(),k===e&&(k=ti()),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=sn()),B--,g===e?f=void 0:(s=f,f=e),f!==e){for(g=[],y=bt();y!==e;)g.push(y),y=bt();if(g!==e){if(y=s,k=[],$=s,nn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(Jn)),R!==e){for(V=[],E=bt();E!==e;)V.push(E),E=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;if($!==e)for(;$!==e;)if(k.push($),$=s,nn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(Jn)),R!==e){for(V=[],E=bt();E!==e;)V.push(E),E=bt();V!==e?(R=[R,V],$=R):(s=$,$=e)}else s=$,$=e;else k=e;k!==e?y=t.substring(y,s):y=k,y!==e?(k=Ii(),k!==e?(Q=l,f=zr(),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function pr(){var l,f,g,y,k;return l=s,f=s,g=Di(),g===e&&(g=s,Q=s,y=Qn(),y?y=void 0:y=e,y!==e?(k=sn(),k!==e?(y=[y,k],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?f=t.substring(f,s):f=g,f!==e&&(Q=l,f=qt()),l=f,l}function Tr(){var l,f;return l=s,f=Nt(),f!==e&&(Q=l,f=Dt(f)),l=f,l}function fa(){var l,f,g,y,k,$,R,V,E,I,L;if(l=s,Q=s,f=Xn(),f?f=void 0:f=e,f!==e){if(g=s,y=[],k=s,$=s,B++,R=Di(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Tr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e)for(;k!==e;)y.push(k),k=s,$=s,B++,R=Di(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Tr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,k=Di(),k!==e&&(Q=y,k=bn(g,k)),y=k,y!==e){if(k=[],$=s,R=s,V=[],E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Tr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Tr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);else V=e;if(V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,E=pr(),E!==e&&(Q=V,E=_t(g,y,R,E)),V=E,V!==e?(Q=$,R=$n(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Di(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,E=pr(),B--,E===e?V=void 0:(s=V,V=e),V!==e?(E=Tr(),E!==e?(Q=$,R=Mr(g,y,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e)),$!==e)for(;$!==e;){if(k.push($),$=s,R=s,V=[],E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Tr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e),E!==e)for(;E!==e;)V.push(E),E=s,I=s,B++,L=pr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Tr(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);else V=e;V!==e?R=t.substring(R,s):R=V,R!==e?(V=s,E=pr(),E!==e&&(Q=V,E=_t(g,y,R,E)),V=E,V!==e?(Q=$,R=$n(g,y,R,V),$=R):(s=$,$=e)):(s=$,$=e),$===e&&($=s,R=s,B++,V=Di(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,E=pr(),B--,E===e?V=void 0:(s=V,V=e),V!==e?(E=Tr(),E!==e?(Q=$,R=Mr(g,y,E),$=R):(s=$,$=e)):(s=$,$=e)):(s=$,$=e))}else k=e;k!==e?(Q=s,$=wn(g,y,k),$?$=void 0:$=e,$!==e?(Q=l,f=Si(g,y,k),l=f):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e}else s=l,l=e;if(l===e){if(l=s,f=[],g=s,y=s,k=s,$=s,B++,R=pr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Tr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e?y=t.substring(y,s):y=k,y!==e){for(k=[],$=pr();$!==e;)k.push($),$=pr();k!==e?(Q=g,y=vn(y,k),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(f.push(g),g=s,y=s,k=s,$=s,B++,R=pr(),B--,R===e?$=void 0:(s=$,$=e),$!==e?(R=Tr(),R!==e?($=[$,R],k=$):(s=k,k=e)):(s=k,k=e),k!==e?y=t.substring(y,s):y=k,y!==e){for(k=[],$=pr();$!==e;)k.push($),$=pr();k!==e?(Q=g,y=vn(y,k),g=y):(s=g,g=e)}else s=g,g=e;else f=e;if(f!==e&&(Q=l,f=oo(f)),l=f,l===e)if(l=[],f=Tr(),f!==e)for(;f!==e;)l.push(f),f=Tr();else l=e}return l}function pa(){var l,f,g,y,k,$,R,V,E,I,L,J,te,oe,rt;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(k=pe(),k!==e)if($=ri(),$!==e)if(Q=s,R=so(f,y,$),R?R=void 0:R=e,R!==e)if(Q=s,V=Go(f,y,$),V?V=void 0:V=e,V!==e){for(E=s,I=[],L=sn();L!==e;)I.push(L),L=sn();if(I!==e)if(L=fa(),L!==e){for(J=[],te=sn();te!==e;)J.push(te),te=sn();J!==e?(Q=E,I=Ko(f,y,$,L),E=I):(s=E,E=e)}else s=E,E=e;else s=E,E=e;E!==e?(I=s,L=pe(),L!==e?I=t.substring(I,s):I=L,I!==e?(L=s,J=Fi(),J!==e?(te=Ht(),te!==e?(Q=s,oe=On(f,y,$,E,I,te),oe?oe=void 0:oe=e,oe!==e?(rt=Yn(),rt===e&&(rt=null),rt!==e?(Q=L,J=ao(f,y,$,E,I,te),L=J):(s=L,L=e)):(s=L,L=e)):(s=L,L=e)):(s=L,L=e),L!==e?(Q=s,J=Br(f,y,$,E,I,L),J?J=void 0:J=e,J!==e?(Q=l,f=lo(f,y,$,E,I,L),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function da(){var l,f,g,y,k,$,R,V,E,I,L,J,te;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=Yo(),g!==e)if(y=Ht(),y!==e)if(k=pe(),k!==e)if($=ri(),$!==e){if(R=[],V=s,E=sn(),E===e&&(E=ca(),E===e&&(E=pa(),E===e&&(E=da(),E===e&&(E=$a(),E===e&&(E=wa(),E===e&&(E=va(),E===e&&(E=ya(),E===e&&(E=ba(),E===e&&(E=ma(),E===e&&(E=ha(),E===e&&(E=ga()))))))))))),E!==e&&(Q=V,E=uo(f,y,$,E)),V=E,V===e){for(V=s,E=s,I=[],L=bt();L!==e;)I.push(L),L=bt();if(I!==e?E=t.substring(E,s):E=I,E!==e){if(I=s,L=[],J=Nt(),J!==e)for(;J!==e;)L.push(J),J=Nt();else L=e;L!==e?I=t.substring(I,s):I=L,I!==e?(Q=V,E=At(f,y,$,E,I),V=E):(s=V,V=e)}else s=V,V=e}for(;V!==e;)if(R.push(V),V=s,E=sn(),E===e&&(E=ca(),E===e&&(E=pa(),E===e&&(E=da(),E===e&&(E=$a(),E===e&&(E=wa(),E===e&&(E=va(),E===e&&(E=ya(),E===e&&(E=ba(),E===e&&(E=ma(),E===e&&(E=ha(),E===e&&(E=ga()))))))))))),E!==e&&(Q=V,E=uo(f,y,$,E)),V=E,V===e){for(V=s,E=s,I=[],L=bt();L!==e;)I.push(L),L=bt();if(I!==e?E=t.substring(E,s):E=I,E!==e){if(I=s,L=[],J=Nt(),J!==e)for(;J!==e;)L.push(J),J=Nt();else L=e;L!==e?I=t.substring(I,s):I=L,I!==e?(Q=V,E=At(f,y,$,E,I),V=E):(s=V,V=e)}else s=V,V=e}R!==e?(V=s,E=pe(),E!==e?V=t.substring(V,s):V=E,V!==e?(E=s,I=Fi(),I!==e?(L=Ht(),L!==e?(Q=s,J=On(f,y,$,R,V,L),J?J=void 0:J=e,J!==e?(te=Yn(),te===e&&(te=null),te!==e?(Q=E,I=We(f,y,$,R,V,L),E=I):(s=E,E=e)):(s=E,E=e)):(s=E,E=e)):(s=E,E=e),E!==e?(Q=s,I=Br(f,y,$,R,V,E),I?I=void 0:I=e,I!==e?(Q=l,f=Ti(f,y,$,R,V,E),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function lh(){var l,f,g;if(l=s,f=[],g=Nt(),g!==e)for(;g!==e;)f.push(g),g=Nt();else f=e;return f!==e&&(Q=l,f=ic()),l=f,l}function g1(){var l,f,g,y;if(l=s,f=[],g=s,y=wr(),y!==e&&(Q=g,y=kn()),g=y,g===e){if(g=[],Vr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Ur)),y!==e)for(;y!==e;)g.push(y),Vr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Ur));else g=e;g===e&&(g=Nt())}if(g!==e){for(;g!==e;)if(f.push(g),g=s,y=wr(),y!==e&&(Q=g,y=kn()),g=y,g===e){if(g=[],Vr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Ur)),y!==e)for(;y!==e;)g.push(y),Vr.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&Y(Ur));else g=e;g===e&&(g=Nt())}}else f=e;return f!==e&&(Q=l,f=Pi(f)),l=f,l}function ma(){var l,f,g,y,k,$,R,V,E,I,L,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ti(),y!==e)if(k=pe(),k!==e)if($=wr(),$===e&&($=null),$!==e)if(Q=s,R=h(f,y),R?R=void 0:R=e,R!==e){for(V=s,E=[],I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);I!==e;)E.push(I),I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);E!==e?V=t.substring(V,s):V=E,V!==e?(Q=l,f=C(f,y,V),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function ha(){var l,f,g,y,k,$,R,V,E;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e?(y=ti(),y!==e?(k=pe(),k!==e?($=wr(),$===e&&($=null),$!==e?(Q=s,R=_(f,y),R?R=void 0:R=e,R!==e?(Q=s,V=A(f,y),V?V=void 0:V=e,V!==e?(E=fa(),E!==e?(Q=l,f=S(f,y,E),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function ga(){var l,f,g,y,k,$,R,V,E,I,L;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=s,B++,y=xn(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=ti(),y!==e)if(k=pe(),k!==e)if($=wr(),$===e&&($=null),$!==e){for(R=s,V=[],E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);E!==e;)V.push(E),E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=M(f,y,R),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function uh(){var l,f,g,y,k,$,R,V,E,I,L;for(l=s,f=[],g=an();g!==e;)f.push(g),g=an();if(f!==e)if(g=ei(),g!==e){if(y=[],k=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&Y(se)),R!==e)if(V=pe(),V!==e){if(E=[],I=an(),I!==e)for(;I!==e;)E.push(I),I=an();else E=e;E!==e?(I=pe(),I!==e?(L=ei(),L!==e?(Q=k,$=le(f,E),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;else s=k,k=e;for(;k!==e;)if(y.push(k),k=s,$=pe(),$!==e)if(t.substr(s,2)===W?(R=W,s+=2):(R=e,B===0&&Y(se)),R!==e)if(V=pe(),V!==e){if(E=[],I=an(),I!==e)for(;I!==e;)E.push(I),I=an();else E=e;E!==e?(I=pe(),I!==e?(L=ei(),L!==e?(Q=k,$=le(f,E),k=$):(s=k,k=e)):(s=k,k=e)):(s=k,k=e)}else s=k,k=e;else s=k,k=e;else s=k,k=e;y!==e?(Q=l,f=ke(f,y),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function ya(){var l,f,g,y,k,$,R;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,6)===U?(g=U,s+=6):(g=e,B===0&&Y(st)),g!==e?(y=pe(),y!==e?(k=s,$=ka(),$!==e?k=t.substring(k,s):k=$,k!==e?($=pe(),$!==e?(R=uh(),R!==e?(Q=l,f=Ut(f,g,k,R),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function ba(){var l,f,g,y,k,$,R,V;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(t.substr(s,7)===$e?(g=$e,s+=7):(g=e,B===0&&Y(He)),g!==e?(y=pe(),y!==e?(k=s,$=Ht(),$===e&&($=s,St.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&Y(fr)),R!==e?(t.substr(s,2)===oc?(V=oc,s+=2):(V=e,B===0&&Y(Bm)),V!==e?(R=[R,V],$=R):(s=$,$=e)):(s=$,$=e)),$!==e?k=t.substring(k,s):k=$,k!==e?($=pe(),$!==e?(R=ri(),R!==e?(Q=l,f=zm(f,g,k,R),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function $a(){var l,f,g,y,k,$,R,V,E,I,L,J;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=es(),g!==e)if(y=Ht(),y!==e)if(k=pe(),k!==e)if($=ri(),$!==e)if(Q=s,R=Mm(f,g,y,$),R?R=void 0:R=e,R!==e){for(V=s,E=[],I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);I!==e;)E.push(I),I=s,L=s,B++,J=wr(),B--,J===e?L=void 0:(s=L,L=e),L!==e?(J=Nt(),J!==e?(L=[L,J],I=L):(s=I,I=e)):(s=I,I=e);E!==e?V=t.substring(V,s):V=E,V!==e?(Q=l,f=Vm(f,g,y,$,V),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function wa(){var l,f,g,y,k,$,R,V,E;return l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e?(g=es(),g!==e?(y=Ht(),y!==e?(k=pe(),k!==e?($=ri(),$!==e?(Q=s,R=Um(f,g,y,$),R?R=void 0:R=e,R!==e?(Q=s,V=Hm(f,g,y,$),V?V=void 0:V=e,V!==e?(E=fa(),E!==e?(Q=l,f=Gm(f,g,y,$,E),l=f):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function va(){var l,f,g,y,k,$,R,V,E,I,L;if(l=s,f=s,g=pe(),g!==e?f=t.substring(f,s):f=g,f!==e)if(g=es(),g!==e)if(y=Ht(),y!==e)if(k=pe(),k!==e)if($=ri(),$!==e){for(R=s,V=[],E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);E!==e;)V.push(E),E=s,I=s,B++,L=wr(),B--,L===e?I=void 0:(s=I,I=e),I!==e?(L=Nt(),L!==e?(I=[I,L],E=I):(s=E,E=e)):(s=E,E=e);V!==e?R=t.substring(R,s):R=V,R!==e?(Q=l,f=Km(f,g,y,$,R),l=f):(s=l,l=e)}else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;else s=l,l=e;return l}function ka(){var l,f,g,y,k;if(l=s,f=s,Wm.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&Y(Zm)),g!==e){if(y=[],Yt.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(lr)),k!==e)for(;k!==e;)y.push(k),Yt.test(t.charAt(s))?(k=t.charAt(s),s++):(k=e,B===0&&Y(lr));else y=e;y!==e?(g=[g,y],f=g):(s=f,f=e)}else s=f,f=e;return f!==e?l=t.substring(l,s):l=f,l}function y1(){var l,f;for(B++,l=[],Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));f!==e;)l.push(f),Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));return B--,l===e&&(f=e,B===0&&Y(Jm)),l}function b1(){var l,f;for(B++,l=[],Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));f!==e;)l.push(f),Wo.test(t.charAt(s))?(f=t.charAt(s),s++):(f=e,B===0&&Y(Zo));return B--,l===e&&(f=e,B===0&&Y(Qm)),l}function ns(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function ch(l){return l===l.toUpperCase()}function Ni(l){return l.reduce((f,g)=>Array.isArray(g)?f.concat(Ni(g)):f.concat(g),[])}function fh(l){return["code","comment","data","defn","head","input","item","nested","output","para","pod","table"].includes(l)||ch(l)||l.match(/^(head|item)\d+$/)||ns(l)}function ph(l,f){return l.length==0?f:f.indexOf(l)==0?f.replace(l,""):f.replace(/^\s+/,"")}if(Qo=i(),Qo!==e&&s===t.length)return Qo;throw Qo!==e&&s<t.length&&Y(Ym()),ac(ua,on<t.length?t.charAt(on):null,on<t.length?co(on,on+1):co(on,on))}Kp.exports={SyntaxError:hi,parse:kw}});var Qp=ce((ax,Jp)=>{"use strict";function Cw(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function gi(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,gi)}Cw(gi,Error);gi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",b;for(b=0;b<m.parts.length;b++)p+=m.parts[b]instanceof Array?o(m.parts[b][0])+"-"+o(m.parts[b][1]):o(m.parts[b]);return"["+(m.inverted?"^":"")+p+"]"},any:function(m){return"any character"},end:function(m){return"end of input"},other:function(m){return m.description}};function n(m){return m.charCodeAt(0).toString(16).toUpperCase()}function i(m){return m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function o(m){return m.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function a(m){return e[m.type](m)}function u(m){var p=new Array(m.length),b,v;for(b=0;b<m.length;b++)p[b]=a(m[b]);if(p.sort(),p.length>0){for(b=1,v=1;b<p.length;b++)p[b-1]!==p[b]&&(p[v]=p[b],v++);p.length=v}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+c(r)+" found."};function Ew(t,r){r=r!==void 0?r:{};var e={},n={Expression:Ar},i=Ar,o="A",a=he("A",!1),u="V",c=he("V",!1),m="R",p=he("R",!1),b="B",v=he("B",!1),w="I",x=he("I",!1),P="C",N=he("C",!1),D="D",X=he("D",!1),ee="E",de=he("E",!1),fe="K",Z=he("K",!1),me="L",we=he("L",!1),ve="S",Fe=he("S",!1),xe="T",Ce=he("T",!1),ue="U",$e=he("U",!1),He="Z",U=he("Z",!1),st="N",Re=he("N",!1),et="X",Ue=he("X",!1),O=/^[a-zA-Z]/,q=at([["a","z"],["A","Z"]],!1,!1),Bt=/^[a-zA-Z0-9_\-]/,vt=at([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),nt=/^[ \t\f]/,ut=at([" "," ","\f"],!1,!1),ct=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},be=Vt(),br=function(h){return h},Ct=function(h){return h==="A"},It=function(h,C){return{content:C,type:"fcode",name:h}},Yt=function(h){return h==="D"},lr=function(h,C,_){return Pi(_)},zt=function(h,C,_){return{content:C,type:"fcode",name:h,synonyms:_}},Hn=function(h){return h==="V"},Tn=function(h,C){return{content:C,type:"fcode",name:h}},ft="<",pt=he("<",!1),Ft=">",dt=he(">",!1),kt=function(){return Be()},Or=function(h){return h},qr=function(h){return h==="C"},Dr="|",Nr=he("|",!1),Rr=function(h){return h==="L"},er=function(h,C,_){return _},K=function(h,C,_){return{content:C,type:"fcode",name:h,meta:_}},re=";",ge=he(";",!1),Ae=/^[ \xA0\u2001\t\f\u2008]/,xt=at([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),xr=function(h,C){return Pi([h,C])},ze=function(h){return[h]},it=function(h){return h==="X"},mt=function(h,C,_){return{content:C,type:"fcode",name:h,entry:_}},Lr=function(h){return h==="S"},Qe=function(h){return h==="Z"},tn=/^[0-9]/,Et=at([["0","9"]],!1,!1),Pn="0d",ro=he("0d",!1),Cr=function(h){return parseInt(h,10)},In="0o",Ei=he("0o",!1),no=function(h){return parseInt(h,8)},Fn="0b",_i=he("0b",!1),Gn=function(h){return parseInt(h,2)},mn="0x",io=he("0x",!1),hn=/^[0-9A-Fa-f]/,F=at([["0","9"],["A","F"],["a","f"]],!1,!1),T=function(){return parseInt(Be())},j=function(h){return{type:"number",value:parseInt(h,10)}},H=function(h){return h==="E"},G=function(h,C){return Pi(C)},le=function(h,C){return{content:C||[],type:"fcode",name:h}},ke=function(h){return h},Se=function(h){return h!=="C"},qe=function(h,C){return{content:C,type:"fcode",name:h}},d=0,ie=0,Le=[{line:1,column:1}],je=0,Ge=[],z=0,Ke;if("startRule"in r){if(!(r.startRule in n))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');i=n[r.startRule]}function Be(){return t.substring(ie,d)}function jr(){return cr(ie,d)}function Mt(h,C){throw C=C!==void 0?C:cr(ie,d),_r([Er(h)],t.substring(ie,d),C)}function tr(h,C){throw C=C!==void 0?C:cr(ie,d),gn(h,C)}function he(h,C){return{type:"literal",text:h,ignoreCase:C}}function at(h,C,_){return{type:"class",parts:h,inverted:C,ignoreCase:_}}function Vt(){return{type:"any"}}function ur(){return{type:"end"}}function Er(h){return{type:"other",description:h}}function rr(h){var C=Le[h],_;if(C)return C;for(_=h-1;!Le[_];)_--;for(C=Le[_],C={line:C.line,column:C.column};_<h;)t.charCodeAt(_)===10?(C.line++,C.column=1):C.column++,_++;return Le[h]=C,C}function cr(h,C){var _=rr(h),A=rr(C);return{start:{offset:h,line:_.line,column:_.column},end:{offset:C,line:A.line,column:A.column}}}function ne(h){d<je||(d>je&&(je=d,Ge=[]),Ge.push(h))}function gn(h,C){return new gi(h,null,null,C)}function _r(h,C,_){return new gi(gi.buildMessage(h,C),h,C,_)}function Ar(){var h,C;for(h=[],C=Ot(),C===e&&(C=Ti(),C===e&&(C=kn(),C===e&&(C=Zn())));C!==e;)h.push(C),C=Ot(),C===e&&(C=Ti(),C===e&&(C=kn(),C===e&&(C=Zn())));return h}function Ot(){var h;return h=yn(),h===e&&(h=wn(),h===e&&(h=Qn(),h===e&&(h=Br(),h===e&&(h=uo(),h===e&&(h=Ai(),h===e&&(h=Xn(),h===e&&(h=Mr(),h===e&&(h=Si())))))))),h}function rn(){var h;return t.charCodeAt(d)===65?(h=o,d++):(h=e,z===0&&ne(a)),h===e&&(t.charCodeAt(d)===86?(h=u,d++):(h=e,z===0&&ne(c)),h===e&&(t.charCodeAt(d)===82?(h=m,d++):(h=e,z===0&&ne(p)),h===e&&(t.charCodeAt(d)===66?(h=b,d++):(h=e,z===0&&ne(v)),h===e&&(t.charCodeAt(d)===73?(h=w,d++):(h=e,z===0&&ne(x)),h===e&&(t.charCodeAt(d)===67?(h=P,d++):(h=e,z===0&&ne(N)),h===e&&(t.charCodeAt(d)===68?(h=D,d++):(h=e,z===0&&ne(X)),h===e&&(t.charCodeAt(d)===69?(h=ee,d++):(h=e,z===0&&ne(de)),h===e&&(t.charCodeAt(d)===75?(h=fe,d++):(h=e,z===0&&ne(Z)),h===e&&(t.charCodeAt(d)===76?(h=me,d++):(h=e,z===0&&ne(we)),h===e&&(t.charCodeAt(d)===83?(h=ve,d++):(h=e,z===0&&ne(Fe)),h===e&&(t.charCodeAt(d)===84?(h=xe,d++):(h=e,z===0&&ne(Ce)),h===e&&(t.charCodeAt(d)===85?(h=ue,d++):(h=e,z===0&&ne($e)),h===e&&(t.charCodeAt(d)===90?(h=He,d++):(h=e,z===0&&ne(U)),h===e&&(t.charCodeAt(d)===78?(h=st,d++):(h=e,z===0&&ne(Re)),h===e&&(t.charCodeAt(d)===88?(h=et,d++):(h=e,z===0&&ne(Ue))))))))))))))))),h}function Kn(){var h,C,_,A,S;if(h=d,C=d,O.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(q)),_!==e){if(A=[],Bt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,z===0&&ne(vt)),S!==e)for(;S!==e;)A.push(S),Bt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,z===0&&ne(vt));else A=e;A!==e?(_=[_,A],C=_):(d=C,C=e)}else d=C,C=e;return C!==e?h=t.substring(h,d):h=C,h}function $r(){var h,C;for(h=[],nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,z===0&&ne(ut));C!==e;)h.push(C),nt.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,z===0&&ne(ut));return h}function Wn(){var h,C,_;return h=d,C=rn(),C!==e?(ie=d,_=ct(C),_?_=void 0:_=e,_!==e?(C=[C,_],h=C):(d=h,h=e)):(d=h,h=e),h}function Zn(){var h,C;return h=d,t.length>d?(C=t.charAt(d),d++):(C=e,z===0&&ne(be)),C!==e?h=t.substring(h,d):h=C,h}function On(){var h,C,_,A,S;return h=d,C=d,z++,_=We(),z--,_===e?C=void 0:(d=C,C=e),C!==e?(_=$r(),_!==e?(A=d,S=Kn(),S===e&&(S=null),S!==e?A=t.substring(A,d):A=S,A!==e?(S=$r(),S!==e?(ie=h,C=br(A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h===e&&(h=null),h}function yn(){var h,C,_,A,S;return h=d,C=At(),C!==e?(ie=d,_=Ct(C),_?_=void 0:_=e,_!==e?(A=On(),A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Br(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=Yt(C),_?_=void 0:_=e,_!==e){if(A=[],S=Dt(),S!==e)for(;S!==e;)A.push(S),S=Dt();else A=e;if(A!==e){if(S=d,M=qt(),M!==e){for(W=[],se=$n();se!==e;)W.push(se),se=$n();W!==e?(ie=S,M=lr(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=zt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function Ai(){var h,C,_,A,S,M;if(h=d,C=At(),C!==e)if(ie=d,_=Hn(C),_?_=void 0:_=e,_!==e){if(A=d,S=[],M=zr(),M!==e)for(;M!==e;)S.push(M),M=zr();else S=e;S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=Tn(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function nn(){var h;return t.charCodeAt(d)===66?(h=b,d++):(h=e,z===0&&ne(v)),h}function Jn(){var h,C,_,A,S;return h=d,C=d,_=d,z++,A=nn(),z--,A===e?_=void 0:(d=_,_=e),_!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,z===0&&ne(be)),A!==e?(_=[_,A],C=_):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(A=Vr(),A!==e?(t.charCodeAt(d)===62?(S=Ft,d++):(S=e,z===0&&ne(dt)),S!==e?(ie=h,C=kt(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function zr(){var h,C,_,A,S,M,W,se;if(h=d,C=d,_=[],A=d,S=d,M=d,z++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,z===0&&ne(pt)),z--,W===e?M=void 0:(d=M,M=e),M!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,z===0&&ne(be)),W!==e?(M=[M,W],S=M):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),M!==e?(W=zr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(se=Ft,d++):(se=e,z===0&&ne(dt)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Jn(),A===e&&(A=Vr())),A!==e)for(;A!==e;)_.push(A),A=d,S=d,M=d,z++,t.charCodeAt(d)===60?(W=ft,d++):(W=e,z===0&&ne(pt)),z--,W===e?M=void 0:(d=M,M=e),M!==e?(t.length>d?(W=t.charAt(d),d++):(W=e,z===0&&ne(be)),W!==e?(M=[M,W],S=M):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),M!==e?(W=zr(),W===e&&(W=null),W!==e?(t.charCodeAt(d)===62?(se=Ft,d++):(se=e,z===0&&ne(dt)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Jn(),A===e&&(A=Vr()));else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=Or(C)),h=C,h}function Qn(){var h,C,_,A,S;if(h=d,C=At(),C!==e)if(ie=d,_=qr(C),_?_=void 0:_=e,_!==e){if(A=[],S=zr(),S!==e)for(;S!==e;)A.push(S),S=zr();else A=e;A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function qt(){var h;return t.charCodeAt(d)===124?(h=Dr,d++):(h=e,z===0&&ne(Nr)),h}function Dt(){var h,C,_,A,S,M,W,se;if(h=d,C=[],_=d,A=d,S=d,z++,t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(S=[S,M],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=Dt(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(A=[A,S,M,W],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_===e&&(_=d,A=d,z++,S=qt(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Ur(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(A=[A,S,M,W,se],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)),_!==e)for(;_!==e;)C.push(_),_=d,A=d,S=d,z++,t.charCodeAt(d)===60?(M=ft,d++):(M=e,z===0&&ne(pt)),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(S=[S,M],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=Dt(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(A=[A,S,M,W],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_===e&&(_=d,A=d,z++,S=qt(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Ur(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(A=[A,S,M,W,se],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e)):(d=_,_=e));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function Xn(){var h,C,_,A,S,M,W,se,Ut,St,fr;if(h=d,C=At(),C!==e)if(ie=d,_=Rr(C),_?_=void 0:_=e,_!==e){if(A=[],S=Qn(),S===e&&(S=Dt()),S!==e)for(;S!==e;)A.push(S),S=Qn(),S===e&&(S=Dt());else A=e;if(A!==e){if(S=d,M=qt(),M!==e){for(W=d,se=[],Ut=d,St=d,z++,fr=We(),z--,fr===e?St=void 0:(d=St,St=e),St!==e?(t.length>d?(fr=t.charAt(d),d++):(fr=e,z===0&&ne(be)),fr!==e?(St=[St,fr],Ut=St):(d=Ut,Ut=e)):(d=Ut,Ut=e);Ut!==e;)se.push(Ut),Ut=d,St=d,z++,fr=We(),z--,fr===e?St=void 0:(d=St,St=e),St!==e?(t.length>d?(fr=t.charAt(d),d++):(fr=e,z===0&&ne(be)),fr!==e?(St=[St,fr],Ut=St):(d=Ut,Ut=e)):(d=Ut,Ut=e);se!==e?W=t.substring(W,d):W=se,W!==e?(ie=S,M=er(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=K(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function bn(){var h,C,_,A,S,M;if(h=d,C=[],_=d,A=d,z++,t.charCodeAt(d)===59?(S=re,d++):(S=e,z===0&&ne(ge)),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(A=[A,S,M],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e),_!==e)for(;_!==e;)C.push(_),_=d,A=d,z++,t.charCodeAt(d)===59?(S=re,d++):(S=e,z===0&&ne(ge)),z--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,z===0&&ne(be)),M!==e?(A=[A,S,M],_=A):(d=_,_=e)):(d=_,_=e)):(d=_,_=e);else C=e;return C!==e?h=t.substring(h,d):h=C,h}function _t(){var h;return Ae.test(t.charAt(d))?(h=t.charAt(d),d++):(h=e,z===0&&ne(xt)),h}function $n(){var h,C,_,A,S,M;if(h=d,C=bn(),C!==e){for(_=[],A=_t();A!==e;)_.push(A),A=_t();if(_!==e)if(t.charCodeAt(d)===59?(A=re,d++):(A=e,z===0&&ne(ge)),A!==e){for(S=[],M=_t();M!==e;)S.push(M),M=_t();S!==e?(M=$n(),M!==e?(ie=h,C=xr(C,M),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=bn(),C!==e&&(ie=h,C=ze(C)),h=C),h}function Mr(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=it(C),_?_=void 0:_=e,_!==e){for(A=[],S=Dt();S!==e;)A.push(S),S=Dt();if(A!==e){if(S=d,M=qt(),M!==e){for(W=[],se=$n();se!==e;)W.push(se),se=$n();W!==e?(ie=S,M=lr(C,A,W),S=M):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(M=We(),M!==e?(ie=h,C=mt(C,A,S),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e}else d=h,h=e;else d=h,h=e;return h}function wn(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=Lr(C),_?_=void 0:_=e,_!==e){for(A=d,S=[],M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);M!==e;)S.push(M),M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function Si(){var h,C,_,A,S,M,W,se;if(h=d,C=At(),C!==e)if(ie=d,_=Qe(C),_?_=void 0:_=e,_!==e){for(A=d,S=[],M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);M!==e;)S.push(M),M=d,W=d,z++,se=We(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(W=[W,se],M=W):(d=M,M=e)):(d=M,M=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=We(),S!==e?(ie=h,C=It(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function vn(){var h,C,_;if(h=d,C=[],tn.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(Et)),_!==e)for(;_!==e;)C.push(_),tn.test(t.charAt(d))?(_=t.charAt(d),d++):(_=e,z===0&&ne(Et));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function oo(){var h,C,_;return h=d,t.substr(d,2)===Pn?(C=Pn,d+=2):(C=e,z===0&&ne(ro)),C!==e?(_=vn(),_!==e?(ie=h,C=Cr(_),h=C):(d=h,h=e)):(d=h,h=e),h}function so(){var h,C,_;return h=d,t.substr(d,2)===In?(C=In,d+=2):(C=e,z===0&&ne(Ei)),C!==e?(_=vn(),_!==e?(ie=h,C=no(_),h=C):(d=h,h=e)):(d=h,h=e),h}function Go(){var h,C,_;return h=d,t.substr(d,2)===Fn?(C=Fn,d+=2):(C=e,z===0&&ne(_i)),C!==e?(_=vn(),_!==e?(ie=h,C=Gn(_),h=C):(d=h,h=e)):(d=h,h=e),h}function Ko(){var h,C,_,A,S,M;if(h=d,C=d,_=d,t.substr(d,2)===mn?(A=mn,d+=2):(A=e,z===0&&ne(io)),A!==e){if(S=[],hn.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,z===0&&ne(F)),M!==e)for(;M!==e;)S.push(M),hn.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,z===0&&ne(F));else S=e;S!==e?(A=[A,S],_=A):(d=_,_=e)}else d=_,_=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=T()),h=C,h}function ao(){var h,C,_;return h=d,C=$r(),C!==e?(_=so(),_===e&&(_=oo(),_===e&&(_=Go(),_===e&&(_=Ko(),_===e&&(_=vn())))),_!==e?(ie=h,C=j(_),h=C):(d=h,h=e)):(d=h,h=e),h}function lo(){var h,C,_,A,S,M;if(h=d,C=ao(),C!==e){for(_=[],A=_t();A!==e;)_.push(A),A=_t();if(_!==e)if(t.charCodeAt(d)===59?(A=re,d++):(A=e,z===0&&ne(ge)),A!==e){for(S=[],M=_t();M!==e;)S.push(M),M=_t();S!==e?(M=lo(),M!==e?(ie=h,C=xr(C,M),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e}else d=h,h=e;return h===e&&(h=d,C=ao(),C!==e&&(ie=h,C=ze(C)),h=C),h}function uo(){var h,C,_,A,S;return h=d,C=At(),C!==e?(ie=d,_=H(C),_?_=void 0:_=e,_!==e?(A=d,S=lo(),S!==e&&(ie=A,S=G(C,S)),A=S,A===e&&(A=null),A!==e?(S=We(),S!==e?(ie=h,C=le(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function At(){var h,C,_;return h=d,C=d,_=Wn(),_!==e?C=t.substring(C,d):C=_,C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(ie=h,C=ke(C),h=C):(d=h,h=e)):(d=h,h=e),h}function We(){var h;return t.charCodeAt(d)===62?(h=Ft,d++):(h=e,z===0&&ne(dt)),h}function Ti(){var h,C,_,A,S;if(h=d,C=At(),C!==e)if(ie=d,_=Se(C),_?_=void 0:_=e,_!==e){for(A=[],S=Ot(),S===e&&(S=Ti(),S===e&&(S=kn()));S!==e;)A.push(S),S=Ot(),S===e&&(S=Ti(),S===e&&(S=kn()));A!==e?(S=We(),S!==e?(ie=h,C=qe(C,A),h=C):(d=h,h=e)):(d=h,h=e)}else d=h,h=e;else d=h,h=e;return h}function ic(){var h,C,_,A,S;for(h=d,C=[],_=d,A=d,z++,S=We(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,z===0&&ne(be)),S!==e?(A=[A,S],_=A):(d=_,_=e)):(d=_,_=e);_!==e;)C.push(_),_=d,A=d,z++,S=We(),z--,S===e?A=void 0:(d=A,A=e),A!==e?(t.length>d?(S=t.charAt(d),d++):(S=e,z===0&&ne(be)),S!==e?(A=[A,S],_=A):(d=_,_=e)):(d=_,_=e);return C!==e?h=t.substring(h,d):h=C,h}function kn(){var h,C,_,A,S,M,W;if(h=d,C=d,_=[],A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=kn(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(S=[S,M,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Ur(),A===e&&(A=Vr())),A!==e)for(;A!==e;)_.push(A),A=d,t.charCodeAt(d)===60?(S=ft,d++):(S=e,z===0&&ne(pt)),S!==e?(M=kn(),M!==e?(t.charCodeAt(d)===62?(W=Ft,d++):(W=e,z===0&&ne(dt)),W!==e?(S=[S,M,W],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=Ur(),A===e&&(A=Vr()));else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=Or(C)),h=C,h}function Vr(){var h,C,_,A,S,M,W,se;if(h=d,C=d,_=[],A=d,S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Ur(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A!==e)for(;A!==e;)_.push(A),A=d,S=d,z++,M=We(),z--,M===e?S=void 0:(d=S,S=e),S!==e?(M=d,z++,W=At(),z--,W===e?M=void 0:(d=M,M=e),M!==e?(W=d,z++,se=Ur(),z--,se===e?W=void 0:(d=W,W=e),W!==e?(t.length>d?(se=t.charAt(d),d++):(se=e,z===0&&ne(be)),se!==e?(S=[S,M,W,se],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e);else _=e;return _!==e?C=t.substring(C,d):C=_,C!==e&&(ie=h,C=Or(C)),h=C,h}function Ur(){var h,C,_,A,S;return h=d,C=d,_=d,z++,A=Wn(),z--,A===e?_=void 0:(d=_,_=e),_!==e?(t.length>d?(A=t.charAt(d),d++):(A=e,z===0&&ne(be)),A!==e?(_=[_,A],C=_):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(_=ft,d++):(_=e,z===0&&ne(pt)),_!==e?(A=Vr(),A!==e?(t.charCodeAt(d)===62?(S=Ft,d++):(S=e,z===0&&ne(dt)),S!==e?(ie=h,C=kt(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Pi(h){return h.reduce((C,_)=>Array.isArray(_)?C.concat(Pi(_)):C.concat(_),[])}if(Ke=i(),Ke!==e&&d===t.length)return Ke;throw Ke!==e&&d<t.length&&ne(ur()),_r(Ge,je<t.length?t.charAt(je):null,je<t.length?cr(je,je+1):cr(je,je))}Jp.exports={SyntaxError:gi,parse:Ew}});var od=ce((qx,Sw)=>{Sw.exports={name:"@podlite/schema",version:"0.0.12",description:"podlite schema",main:"src/index.ts",types:"./lib/index.d.ts",license:"MIT",files:["lib/**/*.js","lib/**/*.d.ts","schema/*","README.md","CHANGELOG.md"],engines:{node:">=14"},engineStrict:!0,publishConfig:{access:"public",main:"index.js",module:"index.js",types:"./lib/index.d.ts"},scripts:{clean:"rm -rf lib tsconfig.tsbuildinfo",build:"run-s build:ts build:ast build:pegjs","build:ast":"ts-node scripts/make-ast-scheme.ts","build:ts":"yarn g:tsc --build $INIT_CWD","build:pegjs":"pegjs -o src/grammar.js src/grammar.pegjs && pegjs -o src/grammarfc.js src/grammarfc.pegjs",watch:"npx nodemon -e js,ts --exec 'yarn' build",test:"yarn g:jest --passWithNoTests"},keywords:["markdown","podlite","markup","markup-language"],dependencies:{ajv:"^7.2.3",events:"^3.1.0","json-pointer":"^0.6.1",nanoid:"3.1.30"},devDependencies:{"@types/node":"^17.0.7",glob:"^7.2.0","npm-run-all":"^4.1.5",pegjs:"^0.10.0","ts-node":"^9.1.1",typescript:"4.5.5","typescript-json-schema":"0.53.0"}}});var ud=ce((fC,ld)=>{ld.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var bd=ce((pC,yd)=>{"use strict";var Vs=Object.prototype.hasOwnProperty,gd=Object.prototype.toString,cd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,pd=function(r){return typeof Array.isArray=="function"?Array.isArray(r):gd.call(r)==="[object Array]"},dd=function(r){if(!r||gd.call(r)!=="[object Object]")return!1;var e=Vs.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&Vs.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!n)return!1;var i;for(i in r);return typeof i>"u"||Vs.call(r,i)},md=function(r,e){cd&&e.name==="__proto__"?cd(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},hd=function(r,e){if(e==="__proto__")if(Vs.call(r,e)){if(fd)return fd(r,e).value}else return;return r[e]};yd.exports=function t(){var r,e,n,i,o,a,u=arguments[0],c=1,m=arguments.length,p=!1;for(typeof u=="boolean"&&(p=u,u=arguments[1]||{},c=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});c<m;++c)if(r=arguments[c],r!=null)for(e in r)n=hd(u,e),i=hd(r,e),u!==i&&(p&&i&&(dd(i)||(o=pd(i)))?(o?(o=!1,a=n&&pd(n)?n:[]):a=n&&dd(n)?n:{},md(u,{name:e,newValue:t(p,a,i)})):typeof i<"u"&&md(u,{name:e,newValue:i}));return u}});var vd=ce((hC,wd)=>{wd.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var c1={};xa(c1,{PluginRegister:()=>l1,default:()=>u1,parseMd:()=>la,plugin:()=>nc});module.exports=gc(c1);var sd=Hr(kp()),Pw=Hr(_p()),jx=Hr(Pp());Do();var Ql=Hr(require("crypto"),1);var Op="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var gw=128,di,Xi,yw=t=>{!di||di.length<t?(di=Buffer.allocUnsafe(t*gw),Ql.default.randomFillSync(di),Xi=0):Xi+t>di.length&&(Ql.default.randomFillSync(di),Xi=0),Xi+=t};var qp=(t=21)=>{yw(t);let r="";for(let e=Xi-t;e<Xi;e++)r+=Op[di[e]&63];return r};var No=t=>({...t}),Xl=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},gr=(t,r)=>{let e="block",n=t.name,i={id:qp(),margin:"",...t};var o=No({type:e,...i,content:Xl(r)});return o};var Rs=(t,r)=>No({type:"fcode",...t,content:r}),Yl=(t,r)=>No({...t,type:"fcode",name:"L",content:Xl(r)}),Dp=t=>No({type:"fcode",name:"Delete",content:Xl(t)}),Ls=t=>No({type:"verbatim",value:t});var Np=t=>({type:"block",name:"caption",content:t}),Rp=(t,r)=>({type:"image",src:t,alt:r}),Lp=({margin:t=""},r)=>gr({name:"root",margin:t},r);var jp=(t,r={})=>{let e=t.config instanceof Array?t.config:[],n=[];r.config&&r.config.hasOwnProperty(t.name)&&(n=r.config[t.name]);let i={};[...e,...n].map(a=>{i.hasOwnProperty(a.name)||(i[a.name]=[]),a.type==="array"?i[a.name].push(...a.value):i[a.name].push(a.value)});let o=function(){};return o.exists=a=>i.hasOwnProperty(a),o.getAllValues=a=>o.exists(a)?i[a]:[],o.getFirstValue=a=>o.exists(a)?o.getAllValues(a)[0]:void 0,o.asHash=()=>i,o},en=jp;var Bp=(t,r)=>{let e=en(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};Do();function zp(t){return Array.isArray(t)?t.reduce((r,e)=>Array.isArray(e)?r.concat(zp(e)):r.concat(e),[]):t}function bw(t){function r(e,n){if(e instanceof Array)return zp(e.map(a=>r(a,n))).filter(Boolean);if(typeof e=="string")return r({type:"text",value:e},n);let i=t.slice();i.reverse();let o=i.findIndex(a=>a.isFor(e));if(o!==-1){let a=i.slice(o+1),u=a.findIndex(m=>m.isFor(e)),c=(m=e,p=n,b=r)=>{if(u!==-1)a[u].fn(m,p,b,()=>{});else return};return typeof i[o].fn!="function"&&console.warn("[pod6] bad fn for "+JSON.stringify(e,null,2)),i[o].fn(e,n,r,c)}else{let a={...e};if(a.hasOwnProperty("content"))return r(a.content,n)}}return r.rules=t,r}var js=bw;var Ye=(t,r)=>(e,n)=>(i,o,a)=>{e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)},An=()=>()=>()=>{},Bn=(t,r)=>(e,n,i)=>{if(e.content)return i(e.content,n)},zn=t=>(r,e)=>(n,i,o)=>t(n,i)(r,e)(n,i,o);var tu=(t,r)=>{let e=Ns(t).reverse();return(n,i)=>{let o=e.map(c=>_n(c.rule,c.fn(n,i))).reverse(),a=r(n,i),u;return(c,m,p)=>(u||(u=js([...p.rules,...o])),a(c,m,u))}},mi=(t,r)=>(e,n)=>{let i=t(e,n);return(o,a,u)=>{let c=en(o,a).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),i(o,a,u),c!==void 0&&e.removeLevel(c)}};var{makeRule:$w,makePlug:ww}=(Do(),gc(Fp));function Bs(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}function Mp(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Mp(e)):r.concat(e),[])}var eu=t=>{let r=[];function e(i,o){if(i instanceof Array&&console.warn(`[pod] Unsupported param for ${i}`),i instanceof Object){for(var a in i)i.hasOwnProperty(a)&&e(a,i[a]);return[]}r.push($w(ww(i),o))}function n(i,o={}){if(i instanceof Array)return Mp(i.map(c=>n(c,o)));if(typeof i=="string")return i;let a=r.slice();a.reverse();let u=a.findIndex(c=>c.isFor(i));if(u!==-1)return a[u].fn(i,o,n);{let c={...i};return c.hasOwnProperty("content")&&(c.content=n(c.content,o)),c}}return e(t),n.rules=r,n},kr=eu;Do();var Vp=Hr(require("events")),ru=class extends Vp.EventEmitter{constructor(e){super();this.endWrite=()=>{this.emit("end")};this.INDEXTERMS=[],this.FOOTNOTES=[],this.output=e,this.ons=[],this.emit("ready")}escape(e){return e}write(e){return this.writeRaw(this.escape(e))}writeRaw(e){typeof this.output=="function"?this.output(e):console.log(e)}getStr(){return{errors:this.errors,toString:()=>this.out,valueOf:()=>this.out}}startWrite(e){(this.ons||[]).map(n=>super.on(...n)),this.emit("start",e),this.addListener("errors",n=>{this.errors=this.errors||[],this.errors.push(n)})}on(...e){return this.ons=this.ons||[],this.ons.unshift([...e]),this}_add_nesting(e){}_remove_nesting(e){}addLevel(e){this._add_nesting(e)}removeLevel(e){this._remove_nesting(e)}},zs=ru;var Ro=(t={},r=[])=>{let e=r,n=t.processor||Up,i=t.writer;return o.use=a,o.run=u,o.getPlugins=()=>e,o;function o(c){}function a(c,m){if(c instanceof Array)return Ro(t,[...e,...m]);if(c instanceof Object){for(var p in c)c.hasOwnProperty(p)&&a(p,c[p]);return o}return e.push(_n(Qi(c),m)),o}function u(c,m){let p="",b=m||i||new zs(X=>{p=p+X}),v=typeof b=="function"?new b(X=>{p=p+X}):b,w=typeof c=="string"?n(c):c,x=e.slice();x.reverse();let P=js(x.map(X=>_n(X.rule,X.fn(v,n,w))).reverse()),N={};v.startWrite(w);let D=P(w,N);return v.endWrite(),{errors:v.errors,toString:()=>p,valueOf:()=>p,indexingTerms:v.INDEXTERMS,annotations:v.FOOTNOTES,defenitions:v.DEFINITIONS,interator:D}}};var Hp=()=>t=>kr({"*":(e,n,i)=>(e.content&&(e.content=i(e.content,n,i)),delete e.location,e)})(t,{}),Gp=Hp;var ad=Hr(Wp());var xw=()=>t=>{let r=(n,i={})=>{if((n.type=="code"||n.type=="text")&&(n.margin&&i.margin&&i.margin.length>0&&i.margin.length==n.margin.length&&(n.type="para"),n.type==="code")){var o=new RegExp(`^[ ]{0,${n.margin.length}}`,"gm");n.text=n.text.replace(o,"")}if(n.type==="block"){i.margin=typeof n.margin!="string"?"":n.margin;let a={...i};a.nest=(a.nest||0)+1,n.content.map(u=>{r(u,i)})}};var e={};return t.forEach(n=>r(n,e)),t},Zp=xw;var Ms=Qp(),_w=()=>t=>kr({":para":(e,n,i)=>kr({":text":(o,a)=>Ms.parse(o.value),":verbatim":(o,a)=>Ms.parse(o.value)})(e,{...n}),":block":(e,n,i)=>{if("name"in e&&e.name==="pod")return{...e,content:i(e.content,n,i)};let o=en(e,n),a="name"in e&&e.name==="code",u="name"in e&&e.name==="data",c=o.getAllValues("allow");if((a||u)&&c.length==0)return e;let m=c.sort(),p=kr({":verbatim":(b,v)=>Ms.parse(b.value,{allowed:m}),":text":(b,v)=>Ms.parse(b.value,{allowed:m}),":block":(b,v)=>Bs(b.name)?b:{...b,content:p(b.content,{...v})}});return p(e,{...n})}})(t,{}),Xp=_w;var Yp=()=>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,e.content[0])){let i=e.content[0];if(i.text){let o=/^(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),i.type==="para"&&(i.content=[i.text]),e.config=e.config||[],e.config.push({name:"numbered",value:!0,type:"boolean"}))}}r(e.content)}};return r(t),t};var ed=()=>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 i=e.content[0];if(i.text){let o=/(\s*#\s*)/;o.exec(i.text)&&(i.text=i.text.replace(o,""),e.config={...e.config,numbered:!0})}}r(e.content)}};return r(t),t};var td=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(o.config&&o.config.numbered),n=o=>{let a={};return o.reduce((c,m)=>(m.name==="defn"?r(a,m)?c[c.length-1].push(m):c.push([m]):c.push(m),a=m,c),[]).map(c=>c instanceof Array?c[0].name!=="defn"?c:{type:"list",list:c[0].name==="defn"?"variable":e(c[0])?"ordered":"itemized",level:1,content:[...c]}:(c.content&&c.type!=="fcode"&&(c.content=n(c.content)),c))};return t=(o=>Array.isArray(o)?n(o):(o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var rd=()=>t=>{let r=(o,a)=>(o.name==="item"||o.name==="defn")&&a.name===o.name&&o.level===a.level&&e(o)===e(a),e=o=>Boolean(en(o,{}).exists("numbered")),n=(o,a=1)=>{let u=v=>v.length>0&&v[v.length-1].type==="list",c=v=>{if(u(v))return v[v.length-1]},m=(v,w)=>w.name&&w.name==="item"&&w.type&&w.type==="block"||w.type==="blankline",p={};return o.reduce((v,w)=>w.name==="item"&&w.type==="block"&&w.level<a?[...v,w]:(w.name==="item"&&w.type==="block"&&(!u(v)||w.level===a&&c(v).list!==(e(w)?"ordered":"itemized"))&&v.push({type:"list",level:w.level,content:[],list:e(w)?"ordered":"itemized"}),u(v)&&m(c(v),w)?c(v).content.push(w):v.push(w),v),[]).map(v=>(v.content&&v.type!=="fcode"&&(v.content=n(v.content,v.level+1)),v))};return t=(o=>(Array.isArray(o)?o=n(o):o.type==="block"&&o.name!=="table"&&(o.content=n(o.content)),o))(t),t};var nd=()=>t=>kr({defn:e=>{let n=e.content,i=n.length,o=[],a=!1;for(let u=0;u<i;u++){let c=n[u];if(c.type==="para"&&!a){let m=c.content[0],b=m.value.split(`
7
14
  `),v=b.shift(),w={type:"para",name:"term",text:v,content:[{type:"text",value:v}]};o.push(w),b.length==1&&b[0]===""||(m.value=b.join(`
8
- `),c.text=m.value,o.push(c)),a=!0}else o.push(c)}return e.content=o,e}});return r(t,{})}}});var Np=re(Pn=>{"use strict";var js=Pn&&Pn.__assign||function(){return js=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},js.apply(this,arguments)},qp=Pn&&Pn.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},iv=Pn&&Pn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pn,"__esModule",{value:!0});var Ll=iv(zn());function Ls(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(Ls(e)):r.concat(e)},[])}var Bl=function(t,r,e){for(var n=[],i=0;t.length>i;i++)n.push(e(parseInt(t[i],10),parseInt(r[i],10)));return n.join("")},ov=function(t,r){var e=Math.max.apply(Math,qp(qp([],t,!0),r,!0).map(function(a){return a.length})),n=t.map(function(a){for(var u=a+" ".repeat(e-a.length),c=[],m=/\s+[+|\s]\s/g,p;(p=m.exec(u))!=null;){var b="1".repeat(p.index)+"0".repeat(p[0].length);c.push(b+"1".repeat(e-b.length))}return c.reduce(function(v,w){return Bl(v,w,function(_,T){return _&T})},"1".repeat(e))}),i=n.map(function(a){return Bl(a,"",function(u){return u==0?1:0})}),o=i.reduce(function(a,u){return Bl(a,u,function(c,m){return c&m})},"1".repeat(e));return o},Dp=function(t,r){var e=Ls(t.split(/\n/).filter(function(o){return o.length>0})),n=e.map(function(o){for(var a=/((1+|0+))/g,u=[],c;(c=a.exec(r))!=null;)if(c[0][0]!=1){var m=o.substring(c.index,c.index+c[0].length);u.push(m)}return u}),i=[];return i=n.reduce(function(o,a){for(var u=0;u<a.length;u++)o[u]=(o[u]===void 0?"":o[u])+" "+a[u];return o},[]),i};Pn.default=function(){return function(t){var r=(0,Ll.default)({table:function(e){var n=[],i=function(v){n.push(v.value)},o=[];if((0,Ll.default)({"row:text":i,"head:text":i,":separator":function(v){o.push(v.text)}})(e),!n.length)return e;var a=function(v){return v.split(/\n/).filter(function(w){return w.length>0})},u=Ls(n.map(a)),c=Ls(o.map(a)),m=ov(u,c),p=function(v,w){for(var _=[],T=2;T<arguments.length;T++)_[T-2]=arguments[T];return js(js({},_),{name:v,type:"block",content:Array.isArray(w)?w:[w]})},b=(0,Ll.default)({"row:text":function(v){var w=Dp(v.value,m);return p("table_row",w.map(function(_){return p("table_cell",{type:"text",value:_})}))},"head:text":function(v){var w=Dp(v.value,m);return p("table_head",w.map(function(_){return p("table_cell",{type:"text",value:_})}))}})(e);return b}});return r(t,{})}}});var Ml=re(vt=>{"use strict";var Rp=vt&&vt.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},Lp=vt&&vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0});vt.handleNested=vt.subUse=vt.setContext=vt.setFn=vt.content=vt.emptyContent=vt.wrapContent=void 0;var jp=So(),sv=Lp(Fl()),av=Lp(yi()),lv=function(t,r){return function(e,n){return function(i,o,a){e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)}}};vt.wrapContent=lv;var uv=function(){return function(){return function(){}}};vt.emptyContent=uv;var cv=function(t,r){return function(e,n,i){if(e.content)return i(e.content,n)}};vt.content=cv;var fv=function(t){return function(r,e){return function(n,i,o){return t(n,i)(r,e)(n,i,o)}}};vt.setFn=fv;var pv=function(t,r){return function(e,n){return function(i,o,a){return r(e,n)(i,t,a)}}};vt.setContext=pv;var dv=function(t,r){var e=(0,jp.makeRulesArray)(t).reverse();return function(n,i){var o=e.map(function(c){return(0,jp.makeRule)(c.rule,c.fn(n,i))}).reverse(),a=r(n,i),u;return function(c,m,p){return u||(u=(0,sv.default)(Rp(Rp([],p.rules,!0),o,!0))),a(c,m,u)}}};vt.subUse=dv;var mv=function(t,r){return function(e,n){var i=t(e,n);return function(o,a,u){var c=(0,av.default)(o,a).getFirstValue("nested")||r;c!==void 0&&e.addLevel(c),i(o,a,u),c!==void 0&&e.removeLevel(c)}}};vt.handleNested=mv});var Bp=re($i=>{"use strict";var hv=$i&&$i.__extends||function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gv=$i&&$i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});var yv=gv(ql()),bv=function(t){hv(r,t);function r(e){return t.call(this,e)||this}return r.prototype.escape=function(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};return(e+"").replace(/[&<>"'\/`]/g,function(i){return n[i]})},r.prototype._add_nesting=function(e){this.writeRaw("<blockquote>".repeat(e))},r.prototype._remove_nesting=function(e){this.writeRaw("</blockquote>".repeat(e))},r}(yv.default);$i.default=bv});var Mp=re(qo=>{"use strict";var vv=qo&&qo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qo,"__esModule",{value:!0});var $v=vv(zn());qo.default=function(){return function(t){var r=(0,$v.default)({"*":function(e,n,i){return e.content&&(e.content=i(e.content,n,i)),delete e.location,e}});return r(t,{})}}});var Vp=re(wi=>{"use strict";var zl=wi&&wi.__assign||function(){return zl=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},zl.apply(this,arguments)},Bs=wi&&wi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wi,"__esModule",{value:!0});var wv=Bs(Vl()),be=Ml(),kv=zn(),zp=Bs(yi()),_v=Bs(Bp()),Cv=Bs(Mp()),xv=yi(),Ev={":text":function(t,r){return function(e,n,i){e.value?t.write(e.value):i(e.content,n)}},"A<>":function(t,r){return function(e,n,i){if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write("A<".concat(e.content,">"));else{var o=n.alias[e.content].join(`
9
- `),a=r(o),u=(0,Cv.default)()(a);u[0].type==="para"?i(u[0].content,n):i(u,n)}}},"C<>":(0,be.wrapContent)("<code>","</code>"),"D<>":function(t,r){return function(e,n,i){var o={node:e},a=[e.content[0]];o&&(a=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:a}),t.writeRaw("<dfn>"),i(e.content,n),t.writeRaw("</dfn>")}},"B<>":(0,be.wrapContent)("<strong>","</strong>"),"I<>":(0,be.wrapContent)("<em>","</em>"),"R<>":(0,be.wrapContent)("<var>","</var>"),"K<>":(0,be.wrapContent)("<kbd>","</kbd>"),"L<>":(0,be.setFn)(function(t,r){var e=t.meta;return e===null&&(e=t.content),(0,be.wrapContent)('<a href="'.concat(e,'">'),"</a>")}),"N<>":function(t,r){return t.addListener("end",function(){if(!!t.hasOwnProperty("FOOTNOTES")){var e=t.FOOTNOTES;e.length<1||(t.writeRaw('<div class="footnotes">'),e.map(function(n){t.writeRaw('<p><sup id="'.concat(n.fnId,'" class="footnote"><a href="#').concat(n.fnRefId,'">[').concat(n.gid,"]</a></sup> ")),n.make(),t.writeRaw("</p>")}),t.writeRaw("</div>"))}}),function(e,n,i){if(!(e.content.length<1)){t.hasOwnProperty("gid")||(t.gid=1);var o=t.gid++,a="fnref:".concat(o),u="fn:".concat(o);t.writeRaw('<sup id="'.concat(a,'" class="footnote"><a href="#').concat(u,'">[').concat(o,"]</a></sup>")),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:a,fnId:u,make:function(){i(e.content,n)}})}}},"S<>":function(t,r){return function(e,n,i){var o=e.content||"",a=o.replace(/ /g,"&nbsp;"),u=a.replace(/\n/g,"</br>");t.writeRaw(u)}},"T<>":(0,be.wrapContent)("<samp>","</samp>"),"U<>":(0,be.wrapContent)("<u>","</u>"),"V<>":be.content,"X<>":function(t,r){return function(e,n,i){i(e.content,n);var o=e.entry;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})}},"Z<>":be.emptyContent,pod:be.content,":code":(0,be.wrapContent)("<pre><code>","</code></pre>"),code:(0,be.handleNested)((0,be.wrapContent)("<pre><code>","</code></pre>")),data:be.emptyContent,":verbatim":function(t,r){return function(e,n,i){e.error&&t.emit("errors",e.location),i(e.value)}},":blankline":be.emptyContent,":ambient":be.emptyContent,":config":(0,be.setFn)(function(t,r){return r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,be.emptyContent}),":alias":(0,be.setFn)(function(t,r){return r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,be.emptyContent}),para:(0,be.handleNested)(be.content),":para":(0,be.wrapContent)("<p>","</p>"),"head:block":(0,be.subUse)({":para":be.content},(0,be.setFn)(function(t,r){var e=t.level,n=(0,xv.getNodeId)(t,r);return(0,be.wrapContent)("<h".concat(e).concat(n?' id="'.concat(n,'"'):"",">"),"</h".concat(e,">"))})),":list":(0,be.setFn)(function(t,r){return t.list==="ordered"?(0,be.wrapContent)("<ol>","</ol>"):t.list==="variable"?(0,be.wrapContent)("<dl>","</dl>"):(0,be.wrapContent)("<ul>","</ul>")}),"item:block":function(t,r){return function(e,n,i){e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e));var o=e.content,a=o[0],u=o.slice(1);t.writeRaw("<li>"),i(e.content,n),t.writeRaw("</li>")}},"comment:block":be.emptyContent,defn:(0,be.wrapContent)("","</dd>"),"term:para":(0,be.wrapContent)("<dt>","</dt><dd>"),nested:(0,be.handleNested)(be.content,1),output:(0,be.handleNested)((0,be.wrapContent)("<pre><samp>","</samp></pre>"),1),input:(0,be.handleNested)((0,be.wrapContent)("<pre><kbd>","</kbd></pre>"),1),"table:block":(0,be.handleNested)(function(t,r){return function(e,n,i){var o=(0,zp.default)(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>")),i(e.content,n),t.writeRaw("</table>")}}),":separator":be.emptyContent,table_row:(0,be.wrapContent)("<tr>","</tr>"),table_cell:(0,be.wrapContent)("<td>","</td>"),table_head:(0,be.subUse)({table_cell:(0,be.wrapContent)("<th>","</th>")},(0,be.wrapContent)("<tr>","</tr>")),":toc":function(t,r){return function(e,n,i){t.writeRaw('<div className="toc">');var o=(0,zp.default)(e,n);if(o.exists("title")){var a=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(a),t.writeRaw("</div>")}i(e.content,n),t.writeRaw("</div>")}},":toc-list":(0,be.setFn)(function(t,r){return(0,be.wrapContent)('<ul class="toc-list listlevel'.concat(t.level,'">'),"</ul>")}),":toc-item":(0,be.setFn)(function(t,r){return(0,be.wrapContent)('<li class="toc-item">',"</li>")}),":image":function(t,r){return function(e,n,i){t.writeRaw('<img src="'.concat(e.src,'" alt="').concat(e.alt,'"/>'))}}},Av=function(t){return(0,wv.default)(zl({writer:_v.default},t)).use("*",function(r,e){return function(n,i,o){var a=function(c){var m=c.name||"",p=(c.type||"")==="block";return p&&m===m.toUpperCase()};if((0,kv.isNamedBlock)(n.name))return!0;if(a(n)){var u=n.name;r.writeRaw('<h1 class="'),r.write(u),r.writeRaw('">'),r.write(u),r.writeRaw("</h1>")}else console.warn("[pod6] Unhandled node"+JSON.stringify(n,null,2));n.hasOwnProperty("content")&&o(n.content,i)}}).use(Ev)};wi.default=Av});var Up=re((gP,Sv)=>{Sv.exports={name:"pod6",version:"0.0.48",description:"Pod6 is an easy-to-use markup language",main:"built/index.js",types:"./built/index.d.ts",scripts:{postversion:'git commit package.json CHANGELOG.md -m "v$npm_package_version" && npm run tag && git push && git push --tags',clean:"rm -rf built",test:"yarn build && jest",build:"run-s build:ts build:pegjs","build:ts":"tsc","build:pegjs":"pegjs -o built/grammar.js src/grammar.pegjs && pegjs -o built/grammarfc.js src/grammarfc.pegjs",watch:"run-p -r watch:*","watch:ts":"tsc -w --pretty","watch:tests":'jest --watch -t "test"',"watch:pegjs":"nodemon"},bin:{pod6html:"bin/pod6html"},files:["built/**/*.js","built/**/*.d.ts","README.md","CHANGELOG.md"],keywords:["pod6","raku"],repository:{type:"git",url:"https://github.com/zag/js-pod6"},author:"Alexandr Zahatski",license:"MIT",devDependencies:{"@types/jest":"^29.1.1","@types/node":"^14.11.1",glob:"^7.1.6",jest:"26","jest-extended":"^0.11.2",nodemon:"^2.0.2","npm-run-all":"^4.1.5",pegjs:"^0.10.0",prettier:"^2.2.1","ts-jest":"^26.5.6",typescript:"^4.8.4"},dependencies:{events:"^3.1.0"}}});var Gp=re(It=>{"use strict";var Pv=It&&It.__createBinding||(Object.create?function(t,r,e,n){n===void 0&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}),Tv=It&&It.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),Iv=It&&It.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&Pv(r,t,e);return Tv(r,t),r},Tn=It&&It.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(It,"__esModule",{value:!0});It.version=It.toHtml=It.parse=It.toTree=void 0;var Ov=Iv(bp()),Fv=Tn(vp()),qv=Tn(Ap()),Dv=Tn(Sp()),Nv=Tn(Pp()),Rv=Tn(Tp()),jv=Tn(Op()),Lv=Tn(Fp()),Bv=Tn(Np());function Hp(){var t=[];return r.use=e,r.parse=n,r.use(Fv.default),r.use(Dv.default),r.use(Nv.default),r.use(Lv.default),r.use(Bv.default),r.use(qv.default),r.use(jv.default),r.use(Rv.default),r;function r(){}function e(i){if(!["function"].includes(typeof i))throw i;return t.push(i),r}function n(i,o){o===void 0&&(o={skipChain:0,podMode:1});var a=Ov.parse(i,{podMode:o.podMode});if(!o.skipChain)for(var u=0;u<t.length;u++){var c=t[u],m=c(o);a=m(a)}return a}}It.toTree=Hp;var Mv=Hp().parse;It.parse=Mv;var zv=Vp();Object.defineProperty(It,"toHtml",{enumerable:!0,get:function(){return Tn(zv).default}});var Vv=Up().version;It.version=Vv});var Vl=re(ki=>{"use strict";var Kp=ki&&ki.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))},Wp=ki&&ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ki,"__esModule",{value:!0});var Ul=So(),Uv=Wp(Fl()),Hv=Wp(ql()),Gv=Gp(),Zp=function(t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var e=r,n=t.processor||Gv.parse,i=t.writer;return o.use=a,o.run=u,o.getPlugins=function(){return e},o;function o(c){}function a(c,m){if(c instanceof Array)return Zp(t,Kp(Kp([],e,!0),m,!0));if(c instanceof Object){for(var p in c)c.hasOwnProperty(p)&&a(p,c[p]);return o}return e.push((0,Ul.makeRule)((0,Ul.makePlug)(c),m)),o}function u(c,m){var p="",b=m||i||new Hv.default(function(Y){p=p+Y}),v=typeof b=="function"?new b(function(Y){p=p+Y}):b,w=typeof c=="string"?n(c):c,_=e.slice();_.reverse();var T=(0,Uv.default)(_.map(function(Y){return(0,Ul.makeRule)(Y.rule,Y.fn(v,n,w))}).reverse()),N={};v.startWrite(w);var D=T(w,N);return v.endWrite(),{errors:v.errors,toString:function(){return p},valueOf:function(){return p},indexingTerms:v.INDEXTERMS,annotations:v.FOOTNOTES,defenitions:v.DEFINITIONS,interator:D}}};ki.default=Zp});var Hl=re(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.getRules=Zi.isJSONType=void 0;var Kv=["string","number","integer","boolean","null","object","array"],Wv=new Set(Kv);function Zv(t){return typeof t=="string"&&Wv.has(t)}Zi.isJSONType=Zv;function Jv(){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:{}}}Zi.getRules=Jv});var Gl=re(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.shouldUseRule=Vn.shouldUseGroup=Vn.schemaHasRulesForType=void 0;function Qv({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&Jp(t,n)}Vn.schemaHasRulesForType=Qv;function Jp(t,r){return r.rules.some(e=>Qp(t,e))}Vn.shouldUseGroup=Jp;function Qp(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))}Vn.shouldUseRule=Qp});var Ms=re(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.getProperty=Je.safeStringify=Je.stringify=Je.strConcat=Je.addCodeArg=Je.str=Je._=Je.nil=Je._Code=Je.Name=Je.IDENTIFIER=Je._CodeOrName=void 0;var Do=class{};Je._CodeOrName=Do;Je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _i=class extends Do{constructor(r){if(super(),!Je.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}}};Je.Name=_i;var pn=class extends Do{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 _i&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Je._Code=pn;Je.nil=new pn("");function Xp(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Wl(e,r[n]),e.push(t[++n]);return new pn(e)}Je._=Xp;var Kl=new pn("+");function Yp(t,...r){let e=[No(t[0])],n=0;for(;n<r.length;)e.push(Kl),Wl(e,r[n]),e.push(Kl,No(t[++n]));return Xv(e),new pn(e)}Je.str=Yp;function Wl(t,r){r instanceof pn?t.push(...r._items):r instanceof _i?t.push(r):t.push(t$(r))}Je.addCodeArg=Wl;function Xv(t){let r=1;for(;r<t.length-1;){if(t[r]===Kl){let e=Yv(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function Yv(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof _i||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 _i))return`"${t}${r.slice(1)}`}function e$(t,r){return r.emptyStr()?t:t.emptyStr()?r:Yp`${t}${r}`}Je.strConcat=e$;function t$(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:No(Array.isArray(t)?t.join(","):t)}function r$(t){return new pn(No(t))}Je.stringify=r$;function No(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Je.safeStringify=No;function n$(t){return typeof t=="string"&&Je.IDENTIFIER.test(t)?new pn(`.${t}`):Xp`[${t}]`}Je.getProperty=n$});var Xl=re(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ValueScope=ur.ValueScopeName=ur.Scope=ur.varKinds=ur.UsedValueState=void 0;var yr=Ms(),Zl=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},Jl;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Jl=ur.UsedValueState||(ur.UsedValueState={}));ur.varKinds={const:new yr.Name("const"),let:new yr.Name("let"),var:new yr.Name("var")};var zs=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof yr.Name?r:this.name(r)}name(r){return new yr.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}}};ur.Scope=zs;var Vs=class extends yr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=yr._`.${new yr.Name(e)}[${n}]`}};ur.ValueScopeName=Vs;var i$=yr._`\n`,Ql=class extends zs{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?i$:yr.nil}}get(){return this._scope}name(r){return new Vs(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 i=this.toName(r),{prefix:o}=i,a=(n=e.key)!==null&&n!==void 0?n:e.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),m=c.length;return c[m]=e.ref,i.setValue(e,{property:o,itemIndex:m}),i}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 yr._`${r}${n.scopePath}`})}scopeCode(r=this._values,e,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},e,n)}_reduceValues(r,e,n={},i){let o=yr.nil;for(let a in r){let u=r[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(m=>{if(c.has(m))return;c.set(m,Jl.Started);let p=e(m);if(p){let b=this.opts.es5?ur.varKinds.var:ur.varKinds.const;o=yr._`${o}${b} ${m} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(m))o=yr._`${o}${p}${this.opts._n}`;else throw new Zl(m);c.set(m,Jl.Completed)})}return o}};ur.ValueScope=Ql});var Te=re(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var Ne=Ms(),Zr=Xl(),Ei=Ms();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Ei._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Ei.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Ei.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Ei.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Ei.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Ei.stringify}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Ei.Name}});var Ks=Xl();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return Ks.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return Ks.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return Ks.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return Ks.varKinds}});Oe.operators={GT:new Ne._Code(">"),GTE:new Ne._Code(">="),LT:new Ne._Code("<"),LTE:new Ne._Code("<="),EQ:new Ne._Code("==="),NEQ:new Ne._Code("!=="),NOT:new Ne._Code("!"),OR:new Ne._Code("||"),AND:new Ne._Code("&&"),ADD:new Ne._Code("+")};var In=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},Yl=class extends In{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Zr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+e}optimizeNames(r,e){if(!!r[this.name.str])return this.rhs&&(this.rhs=Qi(this.rhs,r,e)),this}get names(){return this.rhs instanceof Ne._CodeOrName?this.rhs.names:{}}},Us=class extends In{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 Ne.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Qi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof Ne.Name?{}:{...this.lhs.names};return Gs(r,this.rhs)}},eu=class extends Us{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},tu=class extends In{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},ru=class extends In{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},nu=class extends In{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},iu=class extends In{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=Qi(this.code,r,e),this}get names(){return this.code instanceof Ne._CodeOrName?this.code.names:{}}},Ro=class extends In{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,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(r,e)||(o$(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>xi(r,e.names),{})}},On=class extends Ro{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},ou=class extends Ro{},Ji=class extends On{};Ji.kind="else";var Jr=class extends On{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 Ji(n):n}if(e)return r===!1?e instanceof Jr?e:e.nodes:this.nodes.length?this:new Jr(ed(r),e instanceof Jr?[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=Qi(this.condition,r,e),this}get names(){let r=super.names;return Gs(r,this.condition),this.else&&xi(r,this.else.names),r}};Jr.kind="if";var Ci=class extends On{};Ci.kind="for";var su=class extends Ci{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=Qi(this.iteration,r,e),this}get names(){return xi(super.names,this.iteration.names)}},au=class extends Ci{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Zr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${e} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(r)}get names(){let r=Gs(super.names,this.from);return Gs(r,this.to)}},Hs=class extends Ci{constructor(r,e,n,i){super(),this.loop=r,this.varKind=e,this.name=n,this.iterable=i}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=Qi(this.iterable,r,e),this}get names(){return xi(super.names,this.iterable.names)}},jo=class extends On{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)}};jo.kind="func";var Lo=class extends Ro{render(r){return"return "+super.render(r)}};Lo.kind="return";var lu=class extends On{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,i;return super.optimizeNames(r,e),(n=this.catch)===null||n===void 0||n.optimizeNames(r,e),(i=this.finally)===null||i===void 0||i.optimizeNames(r,e),this}get names(){let r=super.names;return this.catch&&xi(r,this.catch.names),this.finally&&xi(r,this.finally.names),r}},Bo=class extends On{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Bo.kind="catch";var Mo=class extends On{render(r){return"finally"+super.render(r)}};Mo.kind="finally";var uu=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
10
- `:""},this._extScope=r,this._scope=new Zr.Scope({parent:r}),this._nodes=[new ou]}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,i){let o=this._scope.toName(e);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Yl(r,o,n)),o}const(r,e,n){return this._def(Zr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Zr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Zr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Us(r,e,n))}add(r,e){return this._leafNode(new eu(r,Oe.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==Ne.nil&&this._leafNode(new iu(r)),this}object(...r){let e=["{"];for(let[n,i]of r)e.length>1&&e.push(","),e.push(n),(n!==i||this.opts.es5)&&(e.push(":"),Ne.addCodeArg(e,i));return e.push("}"),new Ne._Code(e)}if(r,e,n){if(this._blockNode(new Jr(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 Jr(r))}else(){return this._elseNode(new Ji)}endIf(){return this._endBlockNode(Jr,Ji)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new su(r),e)}forRange(r,e,n,i,o=this.opts.es5?Zr.varKinds.var:Zr.varKinds.let){let a=this._scope.toName(r);return this._for(new au(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Zr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof Ne.Name?e:this.var("_arr",e);return this.forRange("_i",0,Ne._`${a}.length`,u=>{this.var(o,Ne._`${a}[${u}]`),n(o)})}return this._for(new Hs("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Zr.varKinds.var:Zr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,Ne._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new Hs("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(Ci)}label(r){return this._leafNode(new tu(r))}break(r){return this._leafNode(new ru(r))}return(r){let e=new Lo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Lo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new lu;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new Bo(o),e(o)}return n&&(this._currNode=i.finally=new Mo,this.code(n)),this._endBlockNode(Bo,Mo)}throw(r){return this._leafNode(new nu(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=Ne.nil,n,i){return this._blockNode(new jo(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(jo)}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 Jr))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}};Oe.CodeGen=uu;function xi(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Gs(t,r){return r instanceof Ne._CodeOrName?xi(t,r.names):t}function Qi(t,r,e){if(t instanceof Ne.Name)return n(t);if(!i(t))return t;return new Ne._Code(t._items.reduce((o,a)=>(a instanceof Ne.Name&&(a=n(a)),a instanceof Ne._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=e[o.str];return a===void 0||r[o.str]!==1?o:(delete r[o.str],a)}function i(o){return o instanceof Ne._Code&&o._items.some(a=>a instanceof Ne.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function o$(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function ed(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:Ne._`!${cu(t)}`}Oe.not=ed;var s$=td(Oe.operators.AND);function a$(...t){return t.reduce(s$)}Oe.and=a$;var l$=td(Oe.operators.OR);function u$(...t){return t.reduce(l$)}Oe.or=u$;function td(t){return(r,e)=>r===Ne.nil?e:e===Ne.nil?r:Ne._`${cu(r)} ${t} ${cu(e)}`}function cu(t){return t instanceof Ne.Name?t:Ne._`(${t})`}});var Qr=re(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Qt=Te(),c$={data:new Qt.Name("data"),valCxt:new Qt.Name("valCxt"),dataPath:new Qt.Name("dataPath"),parentData:new Qt.Name("parentData"),parentDataProperty:new Qt.Name("parentDataProperty"),rootData:new Qt.Name("rootData"),dynamicAnchors:new Qt.Name("dynamicAnchors"),vErrors:new Qt.Name("vErrors"),errors:new Qt.Name("errors"),this:new Qt.Name("this"),self:new Qt.Name("self"),scope:new Qt.Name("scope"),json:new Qt.Name("json"),jsonPos:new Qt.Name("jsonPos"),jsonLen:new Qt.Name("jsonLen"),jsonPart:new Qt.Name("jsonPart")};fu.default=c$});var zo=re(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.extendErrors=Xt.resetErrorsCount=Xt.reportExtraError=Xt.reportError=Xt.keyword$DataError=Xt.keywordError=void 0;var Re=Te(),Yt=Qr();Xt.keywordError={message:({keyword:t})=>Re.str`should pass "${t}" keyword validation`};Xt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Re.str`"${t}" keyword must be ${r} ($data)`:Re.str`"${t}" keyword is invalid ($data)`};function f$(t,r=Xt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,u=id(t,r);e??(o||a)?rd(i,u):nd(n,Re._`[${u}]`)}Xt.reportError=f$;function p$(t,r=Xt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=id(t,r);rd(n,a),i||o||nd(e,Yt.default.vErrors)}Xt.reportExtraError=p$;function d$(t,r){t.assign(Yt.default.errors,r),t.if(Re._`${Yt.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Re._`${Yt.default.vErrors}.length`,r),()=>t.assign(Yt.default.vErrors,null)))}Xt.resetErrorsCount=d$;function m$({gen:t,keyword:r,schemaValue:e,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",i,Yt.default.errors,u=>{t.const(a,Re._`${Yt.default.vErrors}[${u}]`),t.if(Re._`${a}.dataPath === undefined`,()=>t.assign(Re._`${a}.dataPath`,Re.strConcat(Yt.default.dataPath,o.errorPath))),t.assign(Re._`${a}.schemaPath`,Re.str`${o.errSchemaPath}/${r}`),o.opts.verbose&&(t.assign(Re._`${a}.schema`,e),t.assign(Re._`${a}.data`,n))})}Xt.extendErrors=m$;function rd(t,r){let e=t.const("err",r);t.if(Re._`${Yt.default.vErrors} === null`,()=>t.assign(Yt.default.vErrors,Re._`[${e}]`),Re._`${Yt.default.vErrors}.push(${e})`),t.code(Re._`${Yt.default.errors}++`)}function nd(t,r){let{gen:e,validateName:n,schemaEnv:i}=t;i.$async?e.throw(Re._`new ${t.ValidationError}(${r})`):(e.assign(Re._`${n}.errors`,r),e.return(!1))}var dn={keyword:new Re.Name("keyword"),schemaPath:new Re.Name("schemaPath"),params:new Re.Name("params"),propertyName:new Re.Name("propertyName"),message:new Re.Name("message"),schema:new Re.Name("schema"),parentSchema:new Re.Name("parentSchema"),instancePath:new Re.Name("instancePath")};function id(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Re._`{}`:(n.jtd&&!n.ajvErrors?h$:g$)(t,r)}function h$(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:u}=i,c=[[dn.instancePath,Re.strConcat(Yt.default.dataPath,o)],[dn.schemaPath,Re.str`${a}/${n}`]];return u.messages&&c.push([dn.message,typeof r=="function"?r(t):r]),e.object(...c)}function g$(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:u,schemaPath:c,errorPath:m,errSchemaPath:p,propertyName:b,opts:v}=a,{params:w,message:_}=r,T=[[dn.keyword,n],[Yt.default.dataPath,Re.strConcat(Yt.default.dataPath,m)],[dn.schemaPath,Re.str`${p}/${n}`],[dn.params,typeof w=="function"?w(t):w||Re._`{}`]];return b&&T.push([dn.propertyName,b]),v.messages&&T.push([dn.message,typeof _=="function"?_(t):_]),v.verbose&&T.push([dn.schema,o],[dn.parentSchema,Re._`${u}${c}`],[Yt.default.data,i]),e.object(...T)}});var sd=re(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.boolOrEmptySchema=Xi.topBoolOrEmptySchema=void 0;var y$=zo(),b$=Te(),v$=Qr(),$$={message:"boolean schema is false"};function w$(t){let{gen:r,schema:e,validateName:n}=t;e===!1?od(t,!1):typeof e=="object"&&e.$async===!0?r.return(v$.default.data):(r.assign(b$._`${n}.errors`,null),r.return(!0))}Xi.topBoolOrEmptySchema=w$;function k$(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),od(t)):e.var(r,!0)}Xi.boolOrEmptySchema=k$;function od(t,r){let{gen:e,data:n}=t,i={gen:e,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};y$.reportError(i,$$,r)}});var ld=re(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.assignDefaults=void 0;var Yi=Te(),_$=Er();function C$(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)ad(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>ad(t,o,i.default))}Ws.assignDefaults=C$;function ad(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let u=Yi._`${o}${Yi.getProperty(r)}`;if(i){_$.checkStrictMode(t,`default is ignored for: ${u}`);return}let c=Yi._`${u} === undefined`;a.useDefaults==="empty"&&(c=Yi._`${c} || ${u} === null || ${u} === ""`),n.if(c,Yi._`${u} = ${Yi.stringify(e)}`)}});var Si=re(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.applySubschema=Ai.Type=void 0;var x$=Er(),ud=lt(),er=Te(),cd;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(cd=Ai.Type||(Ai.Type={}));function E$(t,r,e){let n=A$(t,r);S$(n,t,r),P$(n,r);let i={...t,...n,items:void 0,props:void 0};return x$.subschemaCode(i,e),i}Ai.applySubschema=E$;function A$(t,{keyword:r,schemaProp:e,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let u=t.schema[r];return e===void 0?{schema:u,schemaPath:er._`${t.schemaPath}${er.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:u[e],schemaPath:er._`${t.schemaPath}${er.getProperty(r)}${er.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${ud.escapeFragment(e)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function S$(t,r,{dataProp:e,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&e!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=r;if(e!==void 0){let{errorPath:m,dataPathArr:p,opts:b}=r,v=u.let("data",er._`${r.data}${er.getProperty(e)}`,!0);c(v),t.errorPath=er.str`${m}${T$(e,n,b.jsPropertySyntax)}`,t.parentDataProperty=er._`${e}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let m=i instanceof er.Name?i:u.let("data",i,!0);c(m),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function c(m){t.data=m,t.dataLevel=r.dataLevel+1,t.dataTypes=[],r.definedProperties=new Set,t.parentData=r.data,t.dataNames=[...r.dataNames,m]}}function P$(t,{jtdDiscriminator:r,jtdMetadata:e,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=r,t.jtdMetadata=e}function T$(t,r,e){if(t instanceof er.Name){let n=r===cd.Num;return e?n?er._`"[" + ${t} + "]"`:er._`"['" + ${t} + "']"`:n?er._`"/" + ${t}`:er._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?er.getProperty(t).toString():"/"+ud.escapeJsonPointer(t)}});var Xr=re(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.validateUnion=Qe.validateArray=Qe.usePattern=Qe.callValidateCode=Qe.schemaProperties=Qe.allSchemaProperties=Qe.noPropertyInData=Qe.propertyInData=Qe.isOwnProperty=Qe.hasPropFunc=Qe.reportMissingProp=Qe.checkMissingProp=Qe.checkReportMissingProp=void 0;var ot=Te(),fd=lt(),I$=Si(),Un=Qr();function O$(t,r){let{gen:e,data:n,it:i}=t;e.if(du(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:ot._`${r}`},!0),t.error()})}Qe.checkReportMissingProp=O$;function F$({gen:t,data:r,it:{opts:e}},n,i){return ot.or(...n.map(o=>ot.and(du(t,r,o,e.ownProperties),ot._`${i} = ${o}`)))}Qe.checkMissingProp=F$;function q$(t,r){t.setParams({missingProperty:r},!0),t.error()}Qe.reportMissingProp=q$;function pd(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ot._`Object.prototype.hasOwnProperty`})}Qe.hasPropFunc=pd;function pu(t,r,e){return ot._`${pd(t)}.call(${r}, ${e})`}Qe.isOwnProperty=pu;function D$(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} !== undefined`;return n?ot._`${i} && ${pu(t,r,e)}`:i}Qe.propertyInData=D$;function du(t,r,e,n){let i=ot._`${r}${ot.getProperty(e)} === undefined`;return n?ot.or(i,ot.not(pu(t,r,e))):i}Qe.noPropertyInData=du;function dd(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Qe.allSchemaProperties=dd;function N$(t,r){return dd(r).filter(e=>!fd.alwaysValidSchema(t,r[e]))}Qe.schemaProperties=N$;function R$({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,m){let p=m?ot._`${t}, ${r}, ${n}${i}`:r,b=[[Un.default.dataPath,ot.strConcat(Un.default.dataPath,o)],[Un.default.parentData,a.parentData],[Un.default.parentDataProperty,a.parentDataProperty],[Un.default.rootData,Un.default.rootData]];a.opts.dynamicRef&&b.push([Un.default.dynamicAnchors,Un.default.dynamicAnchors]);let v=ot._`${p}, ${e.object(...b)}`;return c!==ot.nil?ot._`${u}.call(${c}, ${v})`:ot._`${u}(${v})`}Qe.callValidateCode=R$;function j$(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:ot._`new RegExp(${r}, "u")`})}Qe.usePattern=j$;function L$(t){let{gen:r,data:e,keyword:n,it:i}=t,o=r.name("valid");if(i.allErrors){let u=r.let("valid",!0);return a(()=>r.assign(u,!1)),u}return r.var(o,!0),a(()=>r.break()),o;function a(u){let c=r.const("len",ot._`${e}.length`);r.forRange("i",0,c,m=>{t.subschema({keyword:n,dataProp:m,dataPropType:I$.Type.Num},o),r.if(ot.not(o),u)})}}Qe.validateArray=L$;function B$(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(c=>fd.alwaysValidSchema(i,c))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),u=r.name("_valid");r.block(()=>e.forEach((c,m)=>{let p=t.subschema({keyword:n,schemaProp:m,compositeRule:!0},u);r.assign(a,ot._`${a} || ${u}`),t.mergeValidEvaluated(p,u)||r.if(ot.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Qe.validateUnion=B$});var yd=re(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.keywordCode=void 0;var M$=Vo(),z$=zo(),V$=Xr(),cr=Te(),Pi=Qr();function U$(t,r,e,n){let i=new M$.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?md(i,e):"macro"in e?H$(i,e):(e.compile||e.validate)&&md(i,e)}Zs.keywordCode=U$;function H$(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,u=r.macro.call(a.self,i,o,a),c=gd(e,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let m=e.name("valid");t.subschema({schema:u,schemaPath:cr.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}function md(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=t;K$(c,r);let m=!u&&r.compile?r.compile.call(c.self,o,a,c):r.validate,p=gd(n,i,m),b=n.let("valid");t.block$data(b,v),t.ok((e=r.valid)!==null&&e!==void 0?e:b);function v(){if(r.errors===!1)T(),r.modifying&&hd(t),N(()=>t.error());else{let D=r.async?w():_();r.modifying&&hd(t),N(()=>G$(t,D))}}function w(){let D=n.let("ruleErrs",null);return n.try(()=>T(cr._`await `),Y=>n.assign(b,!1).if(cr._`${Y} instanceof ${c.ValidationError}`,()=>n.assign(D,cr._`${Y}.errors`),()=>n.throw(Y))),D}function _(){let D=cr._`${p}.errors`;return n.assign(D,null),T(cr.nil),D}function T(D=r.async?cr._`await `:cr.nil){let Y=c.opts.passContext?Pi.default.this:Pi.default.self,ee=!("compile"in r&&!u||r.schema===!1);n.assign(b,cr._`${D}${V$.callValidateCode(t,p,Y,ee)}`,r.modifying)}function N(D){var Y;n.if(cr.not((Y=r.valid)!==null&&Y!==void 0?Y:b),D)}}function hd(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,cr._`${n.parentData}[${n.parentDataProperty}]`))}function G$(t,r){let{gen:e}=t;e.if(cr._`Array.isArray(${r})`,()=>{e.assign(Pi.default.vErrors,cr._`${Pi.default.vErrors} === null ? ${r} : ${Pi.default.vErrors}.concat(${r})`).assign(Pi.default.errors,cr._`${Pi.default.vErrors}.length`),z$.extendErrors(t)},()=>t.error())}function K$({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function gd(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:cr.stringify(e)})}});var kd=re(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.schemaKeywords=void 0;var mu=Gl(),bd=eo(),W$=ld(),wd=yd(),Z$=lt(),J$=Er(),Q$=Te(),X$=Qr();function Y$(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:m}=t,{RULES:p}=m;if(o.$ref&&(c.ignoreKeywordsWithRef||!Z$.schemaHasRulesButRef(o,p))){i.block(()=>wd.keywordCode(t,"$ref",p.all.$ref.definition));return}c.jtd||ew(t,r),i.block(()=>{for(let v of p.rules)b(v);b(p.post)});function b(v){!mu.shouldUseGroup(o,v)||(v.type?(i.if(bd.checkDataType(v.type,a,c.strict)),vd(t,v),r.length===1&&r[0]===v.type&&e&&(i.else(),bd.reportTypeError(t)),i.endIf()):vd(t,v),u||i.if(Q$._`${X$.default.errors} === ${n||0}`))}}Js.schemaKeywords=Y$;function vd(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&W$.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)mu.shouldUseRule(n,o)&&wd.keywordCode(t,o.keyword,o.definition,r.type)})}function ew(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(tw(t,r),t.opts.allowUnionTypes||rw(t,r),nw(t,t.dataTypes))}function tw(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{$d(t.dataTypes,e)||hu(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>$d(r,e))}}function rw(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&hu(t,"use allowUnionTypes to allow union type keyword")}function nw(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&mu.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>iw(r,a))&&hu(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function iw(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function $d(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function hu(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,J$.checkStrictMode(t,r,t.opts.strictTypes)}});var Uo=re((OP,_d)=>{"use strict";_d.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,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}});var xd=re((FP,Cd)=>{"use strict";var Hn=Cd.exports=function(t,r,e){typeof r=="function"&&(e=r,r={}),e=r.cb||e;var n=typeof e=="function"?e:e.pre||function(){},i=e.post||function(){};Qs(r,n,i,t,"",t)};Hn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Hn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Hn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Hn.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 Qs(t,r,e,n,i,o,a,u,c,m){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,u,c,m);for(var p in n){var b=n[p];if(Array.isArray(b)){if(p in Hn.arrayKeywords)for(var v=0;v<b.length;v++)Qs(t,r,e,b[v],i+"/"+p+"/"+v,o,i,p,n,v)}else if(p in Hn.propsKeywords){if(b&&typeof b=="object")for(var w in b)Qs(t,r,e,b[w],i+"/"+p+"/"+ow(w),o,i,p,n,w)}else(p in Hn.keywords||t.allKeys&&!(p in Hn.skipKeywords))&&Qs(t,r,e,b,i+"/"+p,o,i,p,n)}e(n,i,o,a,u,c,m)}}function ow(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var gu=re((Xs,Ed)=>{(function(t,r){typeof Xs=="object"&&typeof Ed<"u"?r(Xs):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(Xs,function(t){"use strict";function r(){for(var O=arguments.length,P=Array(O),L=0;L<O;L++)P[L]=arguments[L];if(P.length>1){P[0]=P[0].slice(0,-1);for(var H=P.length-1,G=1;G<H;++G)P[G]=P[G].slice(1,-1);return P[H]=P[H].slice(1),P.join("")}else return P[0]}function e(O){return"(?:"+O+")"}function n(O){return O===void 0?"undefined":O===null?"null":Object.prototype.toString.call(O).split(" ").pop().split("]").shift().toLowerCase()}function i(O){return O.toUpperCase()}function o(O){return O!=null?O instanceof Array?O:typeof O.length!="number"||O.split||O.setInterval||O.call?[O]:Array.prototype.slice.call(O):[]}function a(O,P){var L=O;if(P)for(var H in P)L[H]=P[H];return L}function u(O){var P="[A-Za-z]",L="[\\x0D]",H="[0-9]",G="[\\x22]",ue=r(H,"[A-Fa-f]"),_e="[\\x0A]",Pe="[\\x20]",De=e(e("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+e("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+e("%"+ue+ue)),d="[\\:\\/\\?\\#\\[\\]\\@]",oe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=r(d,oe),Be=O?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ke=O?"[\\uE000-\\uF8FF]":"[]",M=r(P,H,"[\\-\\.\\_\\~]",Be),We=e(P+r(P,H,"[\\+\\-\\.]")+"*"),Me=e(e(De+"|"+r(M,oe,"[\\:]"))+"*"),Vr=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),Ut=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),nr=e(Ut+"\\."+Ut+"\\."+Ut+"\\."+Ut),he=e(ue+"{1,4}"),at=e(e(he+"\\:"+he)+"|"+nr),Ht=e(e(he+"\\:")+"{6}"+at),pr=e("\\:\\:"+e(he+"\\:")+"{5}"+at),Pr=e(e(he)+"?\\:\\:"+e(he+"\\:")+"{4}"+at),ir=e(e(e(he+"\\:")+"{0,1}"+he)+"?\\:\\:"+e(he+"\\:")+"{3}"+at),dr=e(e(e(he+"\\:")+"{0,2}"+he)+"?\\:\\:"+e(he+"\\:")+"{2}"+at),ie=e(e(e(he+"\\:")+"{0,3}"+he)+"?\\:\\:"+he+"\\:"+at),bn=e(e(e(he+"\\:")+"{0,4}"+he)+"?\\:\\:"+at),Tr=e(e(e(he+"\\:")+"{0,5}"+he)+"?\\:\\:"+he),Ir=e(e(e(he+"\\:")+"{0,6}"+he)+"?\\:\\:"),Dt=e([Ht,pr,Pr,ir,dr,ie,bn,Tr,Ir].join("|")),on=e(e(M+"|"+De)+"+"),Jn=e(Dt+"\\%25"+on),kr=e(Dt+e("\\%25|\\%(?!"+ue+"{2})")+on),Qn=e("[vV]"+ue+"+\\."+r(M,oe,"[\\:]")+"+"),Xn=e("\\["+e(kr+"|"+Dt+"|"+Qn)+"\\]"),Rn=e(e(De+"|"+r(M,oe))+"*"),vn=e(Xn+"|"+nr+"(?!"+Rn+")|"+Rn),Ur=e(H+"*"),Ni=e(e(Me+"@")+"?"+vn+e("\\:"+Ur)+"?"),sn=e(De+"|"+r(M,oe,"[\\:\\@]")),Yn=e(sn+"*"),Hr=e(sn+"+"),ei=e(e(De+"|"+r(M,oe,"[\\@]"))+"+"),Nt=e(e("\\/"+Yn)+"*"),Rt=e("\\/"+e(Hr+Nt)+"?"),ti=e(ei+Nt),$n=e(Hr+Nt),At="(?!"+sn+")",wn=e(Nt+"|"+Rt+"|"+ti+"|"+$n+"|"+At),Gr=e(e(sn+"|"+r("[\\/\\?]",Ke))+"*"),kn=e(e(sn+"|[\\/\\?]")+"*"),Ri=e(e("\\/\\/"+Ni+Nt)+"|"+Rt+"|"+$n+"|"+At),_n=e(We+"\\:"+Ri+e("\\?"+Gr)+"?"+e("\\#"+kn)+"?"),mo=e(e("\\/\\/"+Ni+Nt)+"|"+Rt+"|"+ti+"|"+At),ho=e(mo+e("\\?"+Gr)+"?"+e("\\#"+kn)+"?"),is=e(_n+"|"+ho),os=e(We+"\\:"+Ri+e("\\?"+Gr)+"?"),go="^("+We+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+vn+")"+e("\\:("+Ur+")")+"?)")+"?("+Nt+"|"+Rt+"|"+$n+"|"+At+")")+e("\\?("+Gr+")")+"?"+e("\\#("+kn+")")+"?$",yo="^(){0}"+e(e("\\/\\/("+e("("+Me+")@")+"?("+vn+")"+e("\\:("+Ur+")")+"?)")+"?("+Nt+"|"+Rt+"|"+ti+"|"+At+")")+e("\\?("+Gr+")")+"?"+e("\\#("+kn+")")+"?$",bo="^("+We+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+vn+")"+e("\\:("+Ur+")")+"?)")+"?("+Nt+"|"+Rt+"|"+$n+"|"+At+")")+e("\\?("+Gr+")")+"?$",St="^"+e("\\#("+kn+")")+"?$",Ze="^"+e("("+Me+")@")+"?("+vn+")"+e("\\:("+Ur+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",P,H,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",M,oe),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",M,oe),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",M,oe),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",M,oe),"g"),NOT_QUERY:new RegExp(r("[^\\%]",M,oe,"[\\:\\@\\/\\?]",Ke),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",M,oe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",M,oe),"g"),UNRESERVED:new RegExp(M,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",M,Le),"g"),PCT_ENCODED:new RegExp(De,"g"),IPV4ADDRESS:new RegExp("^("+nr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Dt+")"+e(e("\\%25|\\%(?!"+ue+"{2})")+"("+on+")")+"?\\]?$")}}var c=u(!1),m=u(!0),p=function(){function O(P,L){var H=[],G=!0,ue=!1,_e=void 0;try{for(var Pe=P[Symbol.iterator](),De;!(G=(De=Pe.next()).done)&&(H.push(De.value),!(L&&H.length===L));G=!0);}catch(d){ue=!0,_e=d}finally{try{!G&&Pe.return&&Pe.return()}finally{if(ue)throw _e}}return H}return function(P,L){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return O(P,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(O){if(Array.isArray(O)){for(var P=0,L=Array(O.length);P<O.length;P++)L[P]=O[P];return L}else return Array.from(O)},v=2147483647,w=36,_=1,T=26,N=38,D=700,Y=72,ee=128,de="-",fe=/^xn--/,Z=/[^\0-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,we={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=w-_,Fe=Math.floor,Ce=String.fromCharCode;function xe(O){throw new RangeError(we[O])}function ce(O,P){for(var L=[],H=O.length;H--;)L[H]=P(O[H]);return L}function $e(O,P){var L=O.split("@"),H="";L.length>1&&(H=L[0]+"@",O=L[1]),O=O.replace(me,".");var G=O.split("."),ue=ce(G,P).join(".");return H+ue}function Ge(O){for(var P=[],L=0,H=O.length;L<H;){var G=O.charCodeAt(L++);if(G>=55296&&G<=56319&&L<H){var ue=O.charCodeAt(L++);(ue&64512)==56320?P.push(((G&1023)<<10)+(ue&1023)+65536):(P.push(G),L--)}else P.push(G)}return P}var U=function(P){return String.fromCodePoint.apply(String,b(P))},st=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:w},je=function(P,L){return P+22+75*(P<26)-((L!=0)<<5)},et=function(P,L,H){var G=0;for(P=H?Fe(P/D):P>>1,P+=Fe(P/L);P>ke*T>>1;G+=w)P=Fe(P/ke);return Fe(G+(ke+1)*P/(P+N))},He=function(P){var L=[],H=P.length,G=0,ue=ee,_e=Y,Pe=P.lastIndexOf(de);Pe<0&&(Pe=0);for(var De=0;De<Pe;++De)P.charCodeAt(De)>=128&&xe("not-basic"),L.push(P.charCodeAt(De));for(var d=Pe>0?Pe+1:0;d<H;){for(var oe=G,Le=1,Be=w;;Be+=w){d>=H&&xe("invalid-input");var Ke=st(P.charCodeAt(d++));(Ke>=w||Ke>Fe((v-G)/Le))&&xe("overflow"),G+=Ke*Le;var M=Be<=_e?_:Be>=_e+T?T:Be-_e;if(Ke<M)break;var We=w-M;Le>Fe(v/We)&&xe("overflow"),Le*=We}var Me=L.length+1;_e=et(G-oe,Me,oe==0),Fe(G/Me)>v-ue&&xe("overflow"),ue+=Fe(G/Me),G%=Me,L.splice(G++,0,ue)}return String.fromCodePoint.apply(String,L)},F=function(P){var L=[];P=Ge(P);var H=P.length,G=ee,ue=0,_e=Y,Pe=!0,De=!1,d=void 0;try{for(var oe=P[Symbol.iterator](),Le;!(Pe=(Le=oe.next()).done);Pe=!0){var Be=Le.value;Be<128&&L.push(Ce(Be))}}catch(kr){De=!0,d=kr}finally{try{!Pe&&oe.return&&oe.return()}finally{if(De)throw d}}var Ke=L.length,M=Ke;for(Ke&&L.push(de);M<H;){var We=v,Me=!0,Vr=!1,Ut=void 0;try{for(var nr=P[Symbol.iterator](),he;!(Me=(he=nr.next()).done);Me=!0){var at=he.value;at>=G&&at<We&&(We=at)}}catch(kr){Vr=!0,Ut=kr}finally{try{!Me&&nr.return&&nr.return()}finally{if(Vr)throw Ut}}var Ht=M+1;We-G>Fe((v-ue)/Ht)&&xe("overflow"),ue+=(We-G)*Ht,G=We;var pr=!0,Pr=!1,ir=void 0;try{for(var dr=P[Symbol.iterator](),ie;!(pr=(ie=dr.next()).done);pr=!0){var bn=ie.value;if(bn<G&&++ue>v&&xe("overflow"),bn==G){for(var Tr=ue,Ir=w;;Ir+=w){var Dt=Ir<=_e?_:Ir>=_e+T?T:Ir-_e;if(Tr<Dt)break;var on=Tr-Dt,Jn=w-Dt;L.push(Ce(je(Dt+on%Jn,0))),Tr=Fe(on/Jn)}L.push(Ce(je(Tr,0))),_e=et(ue,Ht,M==Ke),ue=0,++M}}}catch(kr){Pr=!0,ir=kr}finally{try{!pr&&dr.return&&dr.return()}finally{if(Pr)throw ir}}++ue,++G}return L.join("")},q=function(P){return $e(P,function(L){return fe.test(L)?He(L.slice(4).toLowerCase()):L})},zt=function(P){return $e(P,function(L){return Z.test(L)?"xn--"+F(L):L})},kt={version:"2.1.0",ucs2:{decode:Ge,encode:U},decode:He,encode:F,toASCII:zt,toUnicode:q},nt={};function ut(O){var P=O.charCodeAt(0),L=void 0;return P<16?L="%0"+P.toString(16).toUpperCase():P<128?L="%"+P.toString(16).toUpperCase():P<2048?L="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():L="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),L}function ct(O){for(var P="",L=0,H=O.length;L<H;){var G=parseInt(O.substr(L+1,2),16);if(G<128)P+=String.fromCharCode(G),L+=3;else if(G>=194&&G<224){if(H-L>=6){var ue=parseInt(O.substr(L+4,2),16);P+=String.fromCharCode((G&31)<<6|ue&63)}else P+=O.substr(L,6);L+=6}else if(G>=224){if(H-L>=9){var _e=parseInt(O.substr(L+4,2),16),Pe=parseInt(O.substr(L+7,2),16);P+=String.fromCharCode((G&15)<<12|(_e&63)<<6|Pe&63)}else P+=O.substr(L,9);L+=9}else P+=O.substr(L,3),L+=3}return P}function ve(O,P){function L(H){var G=ct(H);return G.match(P.UNRESERVED)?G:H}return O.scheme&&(O.scheme=String(O.scheme).replace(P.PCT_ENCODED,L).toLowerCase().replace(P.NOT_SCHEME,"")),O.userinfo!==void 0&&(O.userinfo=String(O.userinfo).replace(P.PCT_ENCODED,L).replace(P.NOT_USERINFO,ut).replace(P.PCT_ENCODED,i)),O.host!==void 0&&(O.host=String(O.host).replace(P.PCT_ENCODED,L).toLowerCase().replace(P.NOT_HOST,ut).replace(P.PCT_ENCODED,i)),O.path!==void 0&&(O.path=String(O.path).replace(P.PCT_ENCODED,L).replace(O.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,ut).replace(P.PCT_ENCODED,i)),O.query!==void 0&&(O.query=String(O.query).replace(P.PCT_ENCODED,L).replace(P.NOT_QUERY,ut).replace(P.PCT_ENCODED,i)),O.fragment!==void 0&&(O.fragment=String(O.fragment).replace(P.PCT_ENCODED,L).replace(P.NOT_FRAGMENT,ut).replace(P.PCT_ENCODED,i)),O}function wr(O){return O.replace(/^0*(.*)/,"$1")||"0"}function xt(O,P){var L=O.match(P.IPV4ADDRESS)||[],H=p(L,2),G=H[1];return G?G.split(".").map(wr).join("."):O}function Ft(O,P){var L=O.match(P.IPV6ADDRESS)||[],H=p(L,3),G=H[1],ue=H[2];if(G){for(var _e=G.toLowerCase().split("::").reverse(),Pe=p(_e,2),De=Pe[0],d=Pe[1],oe=d?d.split(":").map(wr):[],Le=De.split(":").map(wr),Be=P.IPV4ADDRESS.test(Le[Le.length-1]),Ke=Be?7:8,M=Le.length-Ke,We=Array(Ke),Me=0;Me<Ke;++Me)We[Me]=oe[Me]||Le[M+Me]||"";Be&&(We[Ke-1]=xt(We[Ke-1],P));var Vr=We.reduce(function(Ht,pr,Pr){if(!pr||pr==="0"){var ir=Ht[Ht.length-1];ir&&ir.index+ir.length===Pr?ir.length++:Ht.push({index:Pr,length:1})}return Ht},[]),Ut=Vr.sort(function(Ht,pr){return pr.length-Ht.length})[0],nr=void 0;if(Ut&&Ut.length>1){var he=We.slice(0,Ut.index),at=We.slice(Ut.index+Ut.length);nr=he.join(":")+"::"+at.join(":")}else nr=We.join(":");return ue&&(nr+="%"+ue),nr}else return O}var tr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fr="".match(/(){0}/)[1]===void 0;function Vt(O){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L={},H=P.iri!==!1?m:c;P.reference==="suffix"&&(O=(P.scheme?P.scheme+":":"")+"//"+O);var G=O.match(tr);if(G){fr?(L.scheme=G[1],L.userinfo=G[3],L.host=G[4],L.port=parseInt(G[5],10),L.path=G[6]||"",L.query=G[7],L.fragment=G[8],isNaN(L.port)&&(L.port=G[5])):(L.scheme=G[1]||void 0,L.userinfo=O.indexOf("@")!==-1?G[3]:void 0,L.host=O.indexOf("//")!==-1?G[4]:void 0,L.port=parseInt(G[5],10),L.path=G[6]||"",L.query=O.indexOf("?")!==-1?G[7]:void 0,L.fragment=O.indexOf("#")!==-1?G[8]:void 0,isNaN(L.port)&&(L.port=O.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?G[4]:void 0)),L.host&&(L.host=Ft(xt(L.host,H),H)),L.scheme===void 0&&L.userinfo===void 0&&L.host===void 0&&L.port===void 0&&!L.path&&L.query===void 0?L.reference="same-document":L.scheme===void 0?L.reference="relative":L.fragment===void 0?L.reference="absolute":L.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==L.reference&&(L.error=L.error||"URI is not a "+P.reference+" reference.");var ue=nt[(P.scheme||L.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!ue||!ue.unicodeSupport)){if(L.host&&(P.domainHost||ue&&ue.domainHost))try{L.host=kt.toASCII(L.host.replace(H.PCT_ENCODED,ct).toLowerCase())}catch(_e){L.error=L.error||"Host's domain name can not be converted to ASCII via punycode: "+_e}ve(L,c)}else ve(L,H);ue&&ue.parse&&ue.parse(L,P)}else L.error=L.error||"URI can not be parsed.";return L}function Wn(O,P){var L=P.iri!==!1?m:c,H=[];return O.userinfo!==void 0&&(H.push(O.userinfo),H.push("@")),O.host!==void 0&&H.push(Ft(xt(String(O.host),L),L).replace(L.IPV6ADDRESS,function(G,ue,_e){return"["+ue+(_e?"%25"+_e:"")+"]"})),(typeof O.port=="number"||typeof O.port=="string")&&(H.push(":"),H.push(String(O.port))),H.length?H.join(""):void 0}var Fn=/^\.\.?\//,ft=/^\/\.(\/|$)/,pt=/^\/\.\.(\/|$)/,qt=/^\/?(?:.|\n)*?(?=\/|$)/;function dt(O){for(var P=[];O.length;)if(O.match(Fn))O=O.replace(Fn,"");else if(O.match(ft))O=O.replace(ft,"/");else if(O.match(pt))O=O.replace(pt,"/"),P.pop();else if(O==="."||O==="..")O="";else{var L=O.match(qt);if(L){var H=L[0];O=O.slice(H.length),P.push(H)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function _t(O){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=P.iri?m:c,H=[],G=nt[(P.scheme||O.scheme||"").toLowerCase()];if(G&&G.serialize&&G.serialize(O,P),O.host&&!L.IPV6ADDRESS.test(O.host)){if(P.domainHost||G&&G.domainHost)try{O.host=P.iri?kt.toUnicode(O.host):kt.toASCII(O.host.replace(L.PCT_ENCODED,ct).toLowerCase())}catch(Pe){O.error=O.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}ve(O,L),P.reference!=="suffix"&&O.scheme&&(H.push(O.scheme),H.push(":"));var ue=Wn(O,P);if(ue!==void 0&&(P.reference!=="suffix"&&H.push("//"),H.push(ue),O.path&&O.path.charAt(0)!=="/"&&H.push("/")),O.path!==void 0){var _e=O.path;!P.absolutePath&&(!G||!G.absolutePath)&&(_e=dt(_e)),ue===void 0&&(_e=_e.replace(/^\/\//,"/%2F")),H.push(_e)}return O.query!==void 0&&(H.push("?"),H.push(O.query)),O.fragment!==void 0&&(H.push("#"),H.push(O.fragment)),H.join("")}function Rr(O,P){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],G={};return H||(O=Vt(_t(O,L),L),P=Vt(_t(P,L),L)),L=L||{},!L.tolerant&&P.scheme?(G.scheme=P.scheme,G.userinfo=P.userinfo,G.host=P.host,G.port=P.port,G.path=dt(P.path||""),G.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(G.userinfo=P.userinfo,G.host=P.host,G.port=P.port,G.path=dt(P.path||""),G.query=P.query):(P.path?(P.path.charAt(0)==="/"?G.path=dt(P.path):((O.userinfo!==void 0||O.host!==void 0||O.port!==void 0)&&!O.path?G.path="/"+P.path:O.path?G.path=O.path.slice(0,O.path.lastIndexOf("/")+1)+P.path:G.path=P.path,G.path=dt(G.path)),G.query=P.query):(G.path=O.path,P.query!==void 0?G.query=P.query:G.query=O.query),G.userinfo=O.userinfo,G.host=O.host,G.port=O.port),G.scheme=O.scheme),G.fragment=P.fragment,G}function jr(O,P,L){var H=a({scheme:"null"},L);return _t(Rr(Vt(O,H),Vt(P,H),H,!0),H)}function Lr(O,P){return typeof O=="string"?O=_t(Vt(O,P),P):n(O)==="object"&&(O=Vt(_t(O,P),P)),O}function Br(O,P,L){return typeof O=="string"?O=_t(Vt(O,L),L):n(O)==="object"&&(O=_t(O,L)),typeof P=="string"?P=_t(Vt(P,L),L):n(P)==="object"&&(P=_t(P,L)),O===P}function Mr(O,P){return O&&O.toString().replace(!P||!P.iri?c.ESCAPE:m.ESCAPE,ut)}function rr(O,P){return O&&O.toString().replace(!P||!P.iri?c.PCT_ENCODED:m.PCT_ENCODED,ct)}var K={scheme:"http",domainHost:!0,parse:function(P,L){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,L){var H=String(P.scheme).toLowerCase()==="https";return(P.port===(H?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}},ne={scheme:"https",domainHost:K.domainHost,parse:K.parse,serialize:K.serialize};function ge(O){return typeof O.secure=="boolean"?O.secure:String(O.scheme).toLowerCase()==="wss"}var Se={scheme:"ws",domainHost:!0,parse:function(P,L){var H=P;return H.secure=ge(H),H.resourceName=(H.path||"/")+(H.query?"?"+H.query:""),H.path=void 0,H.query=void 0,H},serialize:function(P,L){if((P.port===(ge(P)?443:80)||P.port==="")&&(P.port=void 0),typeof P.secure=="boolean"&&(P.scheme=P.secure?"wss":"ws",P.secure=void 0),P.resourceName){var H=P.resourceName.split("?"),G=p(H,2),ue=G[0],_e=G[1];P.path=ue&&ue!=="/"?ue:void 0,P.query=_e,P.resourceName=void 0}return P.fragment=void 0,P}},Ct={scheme:"wss",domainHost:Se.domainHost,parse:Se.parse,serialize:Se.serialize},Ar={},ze=!0,it="[A-Za-z0-9\\-\\.\\_\\~"+(ze?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",mt="[0-9A-Fa-f]",zr=e(e("%[EFef]"+mt+"%"+mt+mt+"%"+mt+mt)+"|"+e("%[89A-Fa-f]"+mt+"%"+mt+mt)+"|"+e("%"+mt+mt)),Xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Et=r(nn,'[\\"\\\\]'),qn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",co=new RegExp(it,"g"),Sr=new RegExp(zr,"g"),Dn=new RegExp(r("[^]",Xe,"[\\.]",'[\\"]',Et),"g"),qi=new RegExp(r("[^]",it,qn),"g"),fo=qi;function Nn(O){var P=ct(O);return P.match(co)?P:O}var Di={scheme:"mailto",parse:function(P,L){var H=P,G=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var ue=!1,_e={},Pe=H.query.split("&"),De=0,d=Pe.length;De<d;++De){var oe=Pe[De].split("=");switch(oe[0]){case"to":for(var Le=oe[1].split(","),Be=0,Ke=Le.length;Be<Ke;++Be)G.push(Le[Be]);break;case"subject":H.subject=rr(oe[1],L);break;case"body":H.body=rr(oe[1],L);break;default:ue=!0,_e[rr(oe[0],L)]=rr(oe[1],L);break}}ue&&(H.headers=_e)}H.query=void 0;for(var M=0,We=G.length;M<We;++M){var Me=G[M].split("@");if(Me[0]=rr(Me[0]),L.unicodeSupport)Me[1]=rr(Me[1],L).toLowerCase();else try{Me[1]=kt.toASCII(rr(Me[1],L).toLowerCase())}catch(Vr){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+Vr}G[M]=Me.join("@")}return H},serialize:function(P,L){var H=P,G=o(P.to);if(G){for(var ue=0,_e=G.length;ue<_e;++ue){var Pe=String(G[ue]),De=Pe.lastIndexOf("@"),d=Pe.slice(0,De).replace(Sr,Nn).replace(Sr,i).replace(Dn,ut),oe=Pe.slice(De+1);try{oe=L.iri?kt.toUnicode(oe):kt.toASCII(rr(oe,L).toLowerCase())}catch(M){H.error=H.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+M}G[ue]=d+"@"+oe}H.path=G.join(",")}var Le=P.headers=P.headers||{};P.subject&&(Le.subject=P.subject),P.body&&(Le.body=P.body);var Be=[];for(var Ke in Le)Le[Ke]!==Ar[Ke]&&Be.push(Ke.replace(Sr,Nn).replace(Sr,i).replace(qi,ut)+"="+Le[Ke].replace(Sr,Nn).replace(Sr,i).replace(fo,ut));return Be.length&&(H.query=Be.join("&")),H}},Zn=/^([^\:]+)\:(.*)/,gn={scheme:"urn",parse:function(P,L){var H=P.path&&P.path.match(Zn),G=P;if(H){var ue=L.scheme||G.scheme||"urn",_e=H[1].toLowerCase(),Pe=H[2],De=ue+":"+(L.nid||_e),d=nt[De];G.nid=_e,G.nss=Pe,G.path=void 0,d&&(G=d.parse(G,L))}else G.error=G.error||"URN can not be parsed.";return G},serialize:function(P,L){var H=L.scheme||P.scheme||"urn",G=P.nid,ue=H+":"+(L.nid||G),_e=nt[ue];_e&&(P=_e.serialize(P,L));var Pe=P,De=P.nss;return Pe.path=(G||L.nid)+":"+De,Pe}},po=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,yn={scheme:"urn:uuid",parse:function(P,L){var H=P;return H.uuid=H.nss,H.nss=void 0,!L.tolerant&&(!H.uuid||!H.uuid.match(po))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(P,L){var H=P;return H.nss=(P.uuid||"").toLowerCase(),H}};nt[K.scheme]=K,nt[ne.scheme]=ne,nt[Se.scheme]=Se,nt[Ct.scheme]=Ct,nt[Di.scheme]=Di,nt[gn.scheme]=gn,nt[yn.scheme]=yn,t.SCHEMES=nt,t.pctEncChar=ut,t.pctDecChars=ct,t.parse=Vt,t.removeDotSegments=dt,t.serialize=_t,t.resolveComponents=Rr,t.resolve=jr,t.normalize=Lr,t.equal=Br,t.escapeComponent=Mr,t.unescapeComponent=rr,Object.defineProperty(t,"__esModule",{value:!0})})});var Ho=re(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.getSchemaRefs=br.resolveUrl=br.normalizeId=br._getFullPath=br.getFullPath=br.inlineRef=void 0;var sw=lt(),aw=Uo(),lw=xd(),Ys=gu(),uw=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function cw(t,r=!0){return typeof t=="boolean"?!0:r===!0?!yu(t):r?Ad(t)<=r:!1}br.inlineRef=cw;var fw=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yu(t){for(let r in t){if(fw.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(yu)||typeof e=="object"&&yu(e))return!0}return!1}function Ad(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!uw.has(e)&&(typeof t[e]=="object"&&sw.eachItem(t[e],n=>r+=Ad(n)),r===1/0))return 1/0}return r}function Sd(t="",r){r!==!1&&(t=to(t));let e=Ys.parse(t);return Pd(e)}br.getFullPath=Sd;function Pd(t){return Ys.serialize(t).split("#")[0]+"#"}br._getFullPath=Pd;var pw=/#\/?$/;function to(t){return t?t.replace(pw,""):""}br.normalizeId=to;function dw(t,r){return r=to(r),Ys.resolve(t,r)}br.resolveUrl=dw;var mw=/^[a-z_][-a-z0-9._]*$/i;function hw(t){if(typeof t=="boolean")return{};let r=to(t.$id),e={"":r},n=Sd(r,!1),i={},o=new Set;return lw(t,{allKeys:!0},(c,m,p,b)=>{if(b===void 0)return;let v=n+m,w=e[b];typeof c.$id=="string"&&(w=_.call(this,c.$id)),T.call(this,c.$anchor),T.call(this,c.$dynamicAnchor),e[m]=w;function _(N){if(N=to(w?Ys.resolve(w,N):N),o.has(N))throw u(N);o.add(N);let D=this.refs[N];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?a(c,D.schema,N):N!==to(v)&&(N[0]==="#"?(a(c,i[N],N),i[N]=c):this.refs[N]=v),N}function T(N){if(typeof N=="string"){if(!mw.test(N))throw new Error(`invalid anchor "${N}"`);_.call(this,`#${N}`)}}}),i;function a(c,m,p){if(m!==void 0&&!aw(c,m))throw u(p)}function u(c){return new Error(`reference "${c}" resolves to more than one schema`)}}br.getSchemaRefs=hw});var Er=re(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.checkStrictMode=mn.schemaCxtHasRules=mn.subschemaCode=mn.validateFunctionCode=void 0;var Fd=sd(),Td=eo(),Id=kd(),qe=Te(),Ee=Qr(),gw=Ho(),qd=lt();function yw(t){if(Nd(t)&&(Rd(t),bu(t))){$w(t);return}Dd(t,()=>Fd.topBoolOrEmptySchema(t))}mn.validateFunctionCode=yw;function Dd({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,qe._`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code(qe._`"use strict"; ${Od(e,i)}`),vw(t,i),t.code(o)}):t.func(r,qe._`${Ee.default.data}, ${bw(i)}`,n.$async,()=>t.code(Od(e,i)).code(o))}function bw(t){return qe._`{${Ee.default.dataPath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?qe._`, ${Ee.default.dynamicAnchors}={}`:qe.nil}}={}`}function vw(t,r){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.dataPath,qe._`${Ee.default.valCxt}.${Ee.default.dataPath}`),t.var(Ee.default.parentData,qe._`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,qe._`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,qe._`${Ee.default.valCxt}.${Ee.default.rootData}`),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,qe._`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.dataPath,qe._`""`),t.var(Ee.default.parentData,qe._`undefined`),t.var(Ee.default.parentDataProperty,qe._`undefined`),t.var(Ee.default.rootData,Ee.default.data),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,qe._`{}`)})}function $w(t){let{schema:r,opts:e,gen:n}=t;Dd(t,()=>{e.$comment&&r.$comment&&Ld(t),xw(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),e.unevaluated&&ww(t),jd(t),Sw(t)})}function ww(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",qe._`${e}.evaluated`),r.if(qe._`${t.evaluated}.dynamicProps`,()=>r.assign(qe._`${t.evaluated}.props`,qe._`undefined`)),r.if(qe._`${t.evaluated}.dynamicItems`,()=>r.assign(qe._`${t.evaluated}.items`,qe._`undefined`))}function Od(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?qe._`/*# sourceURL=${t.$id} */`:qe.nil}function kw(t,r){if(Nd(t)&&(Rd(t),bu(t))){_w(t,r);return}Fd.boolOrEmptySchema(t,r)}mn.subschemaCode=kw;function bu({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}mn.schemaCxtHasRules=bu;function Nd(t){return typeof t.schema!="boolean"}function _w(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&Ld(t),Ew(t),Aw(t);let o=n.const("_errs",Ee.default.errors);jd(t,o),n.var(r,qe._`${o} === ${Ee.default.errors}`)}function Rd(t){qd.checkUnknownRules(t),Cw(t)}function jd(t,r){if(t.opts.jtd)return Id.schemaKeywords(t,[],!1,r);let e=Td.getSchemaTypes(t.schema),n=Td.coerceAndCheckDataType(t,e);Id.schemaKeywords(t,e,!n,r)}function Cw(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&qd.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function xw(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&Bd(t,"default is ignored in the schema root")}function Ew(t){t.schema.$id&&(t.baseId=gw.resolveUrl(t.baseId,t.schema.$id))}function Aw(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ld({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(qe._`${Ee.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=qe.str`${n}/$comment`,u=t.scopeValue("root",{ref:r.root});t.code(qe._`${Ee.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}function Sw(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(qe._`${Ee.default.errors} === 0`,()=>r.return(Ee.default.data),()=>r.throw(qe._`new ${i}(${Ee.default.vErrors})`)):(r.assign(qe._`${n}.errors`,Ee.default.vErrors),o.unevaluated&&Pw(t),r.return(qe._`${Ee.default.errors} === 0`))}function Pw({gen:t,evaluated:r,props:e,items:n}){e instanceof qe.Name&&t.assign(qe._`${r}.props`,e),n instanceof qe.Name&&t.assign(qe._`${r}.items`,n)}function Bd(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}mn.checkStrictMode=Bd});var lt=re(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.func=Ue.setEvaluated=Ue.evaluatedPropsToName=Ue.mergeEvaluated=Ue.eachItem=Ue.unescapeJsonPointer=Ue.escapeJsonPointer=Ue.escapeFragment=Ue.unescapeFragment=Ue.schemaRefOrVal=Ue.schemaHasRulesButRef=Ue.schemaHasRules=Ue.checkUnknownRules=Ue.alwaysValidSchema=Ue.toHash=void 0;var gt=Te(),Tw=Er();function Iw(t){let r={};for(let e of t)r[e]=!0;return r}Ue.toHash=Iw;function Ow(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(zd(t,r),!Vd(r,t.self.RULES.all))}Ue.alwaysValidSchema=Ow;function zd(t,r=t.schema){let{opts:e,self:n}=t;if(!e.strict||typeof r=="boolean")return;let i=n.RULES.keywords;for(let o in r)i[o]||Tw.checkStrictMode(t,`unknown keyword: "${o}"`)}Ue.checkUnknownRules=zd;function Vd(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}Ue.schemaHasRules=Vd;function Fw(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(e!=="$ref"&&r.all[e])return!0;return!1}Ue.schemaHasRulesButRef=Fw;function qw({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return gt._`${e}`}return gt._`${t}${r}${gt.getProperty(n)}`}Ue.schemaRefOrVal=qw;function Dw(t){return Hd(decodeURIComponent(t))}Ue.unescapeFragment=Dw;function Nw(t){return encodeURIComponent(Ud(t))}Ue.escapeFragment=Nw;function Ud(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Ue.escapeJsonPointer=Ud;function Hd(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Ue.unescapeJsonPointer=Hd;function Rw(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}Ue.eachItem=Rw;function Md({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof gt.Name?(o instanceof gt.Name?t(i,o,a):r(i,o,a),a):o instanceof gt.Name?(r(i,a,o),o):e(o,a);return u===gt.Name&&!(c instanceof gt.Name)?n(i,c):c}}Ue.mergeEvaluated={props:Md({mergeNames:(t,r,e)=>t.if(gt._`${e} !== true && ${r} !== undefined`,()=>{t.if(gt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,gt._`${e} || {}`).code(gt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(gt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,gt._`${e} || {}`),vu(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:Gd}),items:Md({mergeNames:(t,r,e)=>t.if(gt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,gt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(gt._`${e} !== true`,()=>t.assign(e,r===!0?!0:gt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function Gd(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",gt._`{}`);return r!==void 0&&vu(t,e,r),e}Ue.evaluatedPropsToName=Gd;function vu(t,r,e){Object.keys(e).forEach(n=>t.assign(gt._`${r}${gt.getProperty(n)}`,!0))}Ue.setEvaluated=vu;function jw(t,r){return t.scopeValue("func",{ref:r,code:r.code})}Ue.func=jw});var eo=re(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.reportTypeError=Lt.checkDataTypes=Lt.checkDataType=Lt.coerceAndCheckDataType=Lt.getJSONTypes=Lt.getSchemaTypes=Lt.DataType=void 0;var Lw=Hl(),Bw=Gl(),Mw=zo(),Ae=Te(),Kd=lt(),Go;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Go=Lt.DataType||(Lt.DataType={}));function zw(t){let r=Wd(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}Lt.getSchemaTypes=zw;function Wd(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(Lw.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Lt.getJSONTypes=Wd;function Vw(t,r){let{gen:e,data:n,opts:i}=t,o=Uw(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&Bw.schemaHasRulesForType(t,r[0]));if(a){let u=wu(r,n,i.strict,Go.Wrong);e.if(u,()=>{o.length?Hw(t,r,o):ku(t)})}return a}Lt.coerceAndCheckDataType=Vw;var Zd=new Set(["string","number","integer","boolean","null"]);function Uw(t,r){return r?t.filter(e=>Zd.has(e)||r==="array"&&e==="array"):[]}function Hw(t,r,e){let{gen:n,data:i,opts:o}=t,a=n.let("dataType",Ae._`typeof ${i}`),u=n.let("coerced",Ae._`undefined`);o.coerceTypes==="array"&&n.if(Ae._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,Ae._`${i}[0]`).assign(a,Ae._`typeof ${i}`).if(wu(r,i,o.strict),()=>n.assign(u,i))),n.if(Ae._`${u} !== undefined`);for(let m of e)(Zd.has(m)||m==="array"&&o.coerceTypes==="array")&&c(m);n.else(),ku(t),n.endIf(),n.if(Ae._`${u} !== undefined`,()=>{n.assign(i,u),Gw(t,u)});function c(m){switch(m){case"string":n.elseIf(Ae._`${a} == "number" || ${a} == "boolean"`).assign(u,Ae._`"" + ${i}`).elseIf(Ae._`${i} === null`).assign(u,Ae._`""`);return;case"number":n.elseIf(Ae._`${a} == "boolean" || ${i} === null
11
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,Ae._`+${i}`);return;case"integer":n.elseIf(Ae._`${a} === "boolean" || ${i} === null
12
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,Ae._`+${i}`);return;case"boolean":n.elseIf(Ae._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf(Ae._`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf(Ae._`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf(Ae._`${a} === "string" || ${a} === "number"
13
- || ${a} === "boolean" || ${i} === null`).assign(u,Ae._`[${i}]`)}}}function Gw({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ae._`${r} !== undefined`,()=>t.assign(Ae._`${r}[${e}]`,n))}function $u(t,r,e,n=Go.Correct){let i=n===Go.Correct?Ae.operators.EQ:Ae.operators.NEQ,o;switch(t){case"null":return Ae._`${r} ${i} null`;case"array":o=Ae._`Array.isArray(${r})`;break;case"object":o=Ae._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":o=a(Ae._`!(${r} % 1) && !isNaN(${r})`);break;case"number":o=a();break;default:return Ae._`typeof ${r} ${i} ${t}`}return n===Go.Correct?o:Ae.not(o);function a(u=Ae.nil){return Ae.and(Ae._`typeof ${r} == "number"`,u,e?Ae._`isFinite(${r})`:Ae.nil)}}Lt.checkDataType=$u;function wu(t,r,e,n){if(t.length===1)return $u(t[0],r,e,n);let i,o=Kd.toHash(t);if(o.array&&o.object){let a=Ae._`typeof ${r} != "object"`;i=o.null?a:Ae._`!${r} || ${a}`,delete o.null,delete o.array,delete o.object}else i=Ae.nil;o.number&&delete o.integer;for(let a in o)i=Ae.and(i,$u(a,r,e,n));return i}Lt.checkDataTypes=wu;var Kw={message:({schema:t})=>Ae.str`should be ${t}`,params:({schema:t,schemaValue:r})=>typeof t=="string"?Ae._`{type: ${t}}`:Ae._`{type: ${r}}`};function ku(t){let r=Ww(t);Mw.reportError(r,Kw)}Lt.reportTypeError=ku;function Ww(t){let{gen:r,data:e,schema:n}=t,i=Kd.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Vo=re(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.getData=void 0;var Jd=eo(),ea=lt(),Ko=zo(),$t=Te(),_u=Qr(),Zw=Si(),Cu=class{constructor(r,e,n){if(Qw(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=ea.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",Qd(this.$data,r));else if(this.schemaCode=this.schemaValue,!Jw(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",_u.default.errors))}result(r,e,n){this.gen.if($t.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($t._`${e} !== undefined && (${$t.or(this.invalid$data(),r)})`)}error(r){(r?Ko.reportExtraError:Ko.reportError)(this,this.def.error)}$dataError(){Ko.reportError(this,this.def.$dataError||Ko.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Ko.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=$t.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=$t.nil,e=$t.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if($t.or($t._`${i} === undefined`,e)),r!==$t.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==$t.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return $t.or(a(),u());function a(){if(n.length){if(!(e instanceof $t.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return $t._`${Jd.checkDataTypes(c,e,o.opts.strict,Jd.DataType.Wrong)}`}return $t.nil}function u(){if(i.validateSchema){let c=r.scopeValue("validate$data",{ref:i.validateSchema});return $t._`!${c}(${e})`}return $t.nil}}subschema(r,e){return Zw.applySubschema(this.it,r,e)}mergeEvaluated(r,e){let{it:n,gen:i}=this;!n.opts.unevaluated||(n.props!==!0&&r.props!==void 0&&(n.props=ea.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=ea.mergeEvaluated.items(i,r.items,n.items,e)))}mergeValidEvaluated(r,e){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(e,()=>this.mergeEvaluated(r,$t.Name)),!0}};Wo.default=Cu;function Jw(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 Qw({schema:t,opts:r,self:e},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");let o=n.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[i])){let u="keyword value is invalid: "+e.errorsText(n.validateSchema.errors);if(r.validateSchema==="log")e.logger.error(u);else throw new Error(u)}}var Xw=/^\/(?:[^~]|~0|~1)*$/,Yw=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Qd(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return _u.default.rootData;if(t[0]==="/"){if(!Xw.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=_u.default.rootData}else{let m=Yw.exec(t);if(!m)throw new Error(`Invalid JSON-pointer: ${t}`);let p=+m[1];if(i=m[2],i==="#"){if(p>=r)throw new Error(c("property/index",p));return n[r-p]}if(p>r)throw new Error(c("data",p));if(o=e[r-p],!i)return o}let a=o,u=i.split("/");for(let m of u)m&&(o=$t._`${o}${$t.getProperty(ea.unescapeJsonPointer(m))}`,a=$t._`${a} && ${o}`);return a;function c(m,p){return`Cannot access ${m} ${p} levels up, current level is ${r}`}}Wo.getData=Qd});var na=re((ro,Xd)=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.MissingRefError=ro.ValidationError=void 0;var xu=Ho(),ta=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};ro.ValidationError=ta;var ra=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=xu.resolveUrl(r,e),this.missingSchema=xu.normalizeId(xu.getFullPath(this.missingRef))}};ro.MissingRefError=ra;Xd.exports={ValidationError:ta,MissingRefError:ra}});var Su=re(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.resolveSchema=Nr.getCompilingSchema=Nr.resolveRef=Nr.compileSchema=Nr.SchemaEnv=void 0;var Yr=Te(),ek=na(),Ti=Qr(),en=Ho(),Yd=lt(),tk=Er(),rk=gu(),no=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:en.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={}}};Nr.SchemaEnv=no;function Au(t){let r=em.call(this,t);if(r)return r;let e=en.getFullPath(t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Yr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;t.$async&&(u=a.scopeValue("Error",{ref:ek.ValidationError,code:Yr._`require("ajv/dist/compile/error_classes").ValidationError`}));let c=a.scopeName("validate");t.validateName=c;let m={gen:a,allErrors:this.opts.allErrors,data:Ti.default.data,parentData:Ti.default.parentData,parentDataProperty:Ti.default.parentDataProperty,dataNames:[Ti.default.data],dataPathArr:[Yr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:Yr.stringify(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:e,baseId:t.baseId||e,schemaPath:Yr.nil,errSchemaPath:this.opts.jtd?"":"#",errorPath:Yr._`""`,opts:this.opts,self:this},p;try{this._compilations.add(t),tk.validateFunctionCode(m),a.optimize(this.opts.code.optimize);let b=a.toString();p=`${a.scopeRefs(Ti.default.scope)}return ${b}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let w=new Function(`${Ti.default.self}`,`${Ti.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:w}),w.errors=null,w.schema=t.schema,w.schemaEnv=t,t.$async&&(w.$async=!0),this.opts.code.source===!0&&(w.source={validateName:c,validateCode:b,scopeValues:a._values}),this.opts.unevaluated){let{props:_,items:T}=m;w.evaluated={props:_ instanceof Yr.Name?void 0:_,items:T instanceof Yr.Name?void 0:T,dynamicProps:_ instanceof Yr.Name,dynamicItems:T instanceof Yr.Name},w.source&&(w.source.evaluated=Yr.stringify(w.evaluated))}return t.validate=w,t}catch(b){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),b}finally{this._compilations.delete(t)}}Nr.compileSchema=Au;function nk(t,r,e){var n;e=en.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=sk.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new no({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=ik.call(this,o)}Nr.resolveRef=nk;function ik(t){return en.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Au.call(this,t)}function em(t){for(let r of this._compilations)if(ok(r,t))return r}Nr.getCompilingSchema=em;function ok(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function sk(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||ia.call(this,t,r)}function ia(t,r){let e=rk.parse(r),n=en._getFullPath(e),i=en.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return Eu.call(this,e,t);let o=en.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=ia.call(this,t,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Eu.call(this,e,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Au.call(this,a),o===en.normalizeId(r)){let{schema:u}=a;return u.$id&&(i=en.resolveUrl(i,u.$id)),new no({schema:u,root:t,baseId:i})}return Eu.call(this,e,a)}}Nr.resolveSchema=ia;var ak=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Eu(t,{baseId:r,schema:e,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof e=="boolean"||(e=e[Yd.unescapeFragment(a)],e===void 0))return;!ak.has(a)&&typeof e=="object"&&e.$id&&(r=en.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!Yd.schemaHasRulesButRef(e,this.RULES)){let a=en.resolveUrl(r,e.$ref);o=ia.call(this,n,a)}if(o=o||new no({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var tm=re((BP,lk)=>{lk.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 sm=re(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.CodeGen=Bt.Name=Bt.nil=Bt.stringify=Bt.str=Bt._=Bt.KeywordCxt=void 0;var uk=Vo();Bt.KeywordCxt=uk.default;var io=Te();Object.defineProperty(Bt,"_",{enumerable:!0,get:function(){return io._}});Object.defineProperty(Bt,"str",{enumerable:!0,get:function(){return io.str}});Object.defineProperty(Bt,"stringify",{enumerable:!0,get:function(){return io.stringify}});Object.defineProperty(Bt,"nil",{enumerable:!0,get:function(){return io.nil}});Object.defineProperty(Bt,"Name",{enumerable:!0,get:function(){return io.Name}});Object.defineProperty(Bt,"CodeGen",{enumerable:!0,get:function(){return io.CodeGen}});var Iu=na(),ck=Hl(),Zo=Su(),fk=Te(),oa=Ho(),sa=eo(),Tu=lt(),rm=tm(),pk=["removeAdditional","useDefaults","coerceTypes"],dk=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),mk={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."},hk={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function gk(t){var r,e,n,i,o,a,u,c,m,p,b,v;let w=(r=t.strict)!==null&&r!==void 0?r:!0,_=w?"log":!1,T=(e=t.code)===null||e===void 0?void 0:e.optimize,N=T===!0||T===void 0?1:T||0;return{strict:w,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:_,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:_,code:t.code?{...t.code,optimize:N}:{optimize:N},loopRequired:(o=t.loopRequired)!==null&&o!==void 0?o:1/0,loopEnum:(a=t.loopEnum)!==null&&a!==void 0?a:1/0,meta:(u=t.meta)!==null&&u!==void 0?u:!0,messages:(c=t.messages)!==null&&c!==void 0?c:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(p=t.addUsedSchema)!==null&&p!==void 0?p:!0,validateSchema:(b=t.validateSchema)!==null&&b!==void 0?b:!0,validateFormats:(v=t.validateFormats)!==null&&v!==void 0?v:!0}}var Jo=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...gk(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new fk.ValueScope({scope:{},prefixes:dk,es5:e,lines:n}),this.logger=kk(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=ck.getRules(),nm.call(this,mk,r,"NOT SUPPORTED"),nm.call(this,hk,r,"DEPRECATED","warn"),this._metaOpts=$k.call(this),r.formats&&bk.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&vk.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),yk.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(rm,rm.$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 i=n(e);return"$async"in n||(this.errors=n.errors),i}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 i.call(this,r,e);async function i(p,b){await o.call(this,p.$schema);let v=this._addSchema(p,b);return v.validate||a.call(this,v)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(b){if(!(b instanceof Iu.MissingRefError))throw b;return u.call(this,b),await c.call(this,b.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:b}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${b} cannot be resolved`)}async function c(p){let b=await m.call(this,p);this.refs[p]||await o.call(this,b.$schema),this.refs[p]||this.addSchema(b,p,e)}async function m(p){let b=this._loading[p];if(b)return b;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(r,e,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let a of r)this.addSchema(a,void 0,n,i);return this}let o;if(typeof r=="object"&&(o=r.$id,o!==void 0&&typeof o!="string"))throw new Error("schema id must be string");return e=oa.normalizeId(e||o),this._checkUnique(e),this.schemas[e]=this._addSchema(r,n,i,!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 i=this.validate(n,r);if(!i&&e){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(r){let e;for(;typeof(e=im.call(this,r))=="string";)r=e;if(e===void 0){let n=new Zo.SchemaEnv({schema:{}});if(e=Zo.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=im.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=oa.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(Ck.call(this,n,e),!e)return Tu.eachItem(n,o=>Pu.call(this,o)),this;Ek.call(this,e);let i={...e,type:sa.getJSONTypes(e.type),schemaType:sa.getJSONTypes(e.schemaType)};return Tu.eachItem(n,i.type.length===0?o=>Pu.call(this,o,i):o=>i.type.forEach(a=>Pu.call(this,o,i,a))),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 i=n.rules.findIndex(o=>o.keyword===r);i>=0&&n.rules.splice(i,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(i=>`${n}${i.dataPath} ${i.message}`).reduce((i,o)=>i+e+o)}$dataMetaSchema(r,e){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of e){let o=i.split("/").slice(1),a=r;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:m}=c.definition,p=a[u];m&&p&&(a[u]=om(p))}}return r}_removeAllSchemas(r,e){for(let n in r){let i=r[n];(!e||e.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,e,n=this.opts.validateSchema,i=this.opts.addUsedSchema){if(typeof r!="object"){if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(r);if(o!==void 0)return o;let a=oa.getSchemaRefs.call(this,r);o=new Zo.SchemaEnv({schema:r,meta:e,localRefs:a}),this._cache.set(o.schema,o);let u=o.baseId;return i&&!u.startsWith("#")&&(u&&this._checkUnique(u),this.refs[u]=o),n&&this.validateSchema(r,!0),o}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):Zo.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{Zo.compileSchema.call(this,r)}finally{this.opts=e}}};Bt.default=Jo;Jo.ValidationError=Iu.ValidationError;Jo.MissingRefError=Iu.MissingRefError;function nm(t,r,e,n="error"){for(let i in t){let o=i;o in r&&this.logger[n](`${e}: option ${i}. ${t[o]}`)}}function im(t){return t=oa.normalizeId(t),this.schemas[t]||this.refs[t]}function yk(){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 bk(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function vk(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 $k(){let t={...this.opts};for(let r of pk)delete t[r];return t}var wk={log(){},warn(){},error(){}};function kk(t){if(t===!1)return wk;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 _k=/^[a-z_$][a-z0-9_$:-]*$/i;function Ck(t,r){let{RULES:e}=this;if(Tu.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!_k.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 Pu(t,r,e){var n;let i=r==null?void 0:r.post;if(e&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let u={keyword:t,definition:{...r,type:sa.getJSONTypes(r.type),schemaType:sa.getJSONTypes(r.schemaType)}};r.before?xk.call(this,a,u,r.before):a.rules.push(u),o.all[t]=u,(n=r.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function xk(t,r,e){let n=t.rules.findIndex(i=>i.keyword===e);n>=0?t.rules.splice(n,0,r):(t.rules.push(r),this.logger.warn(`rule ${e} is not defined`))}function Ek(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=om(r)),t.validateSchema=this.compile(r,!0))}var Ak={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function om(t){return{anyOf:[t,Ak]}}});var am=re(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var Sk={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ou.default=Sk});var fm=re(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.callRef=Ii.getValidate=void 0;var Pk=na(),lm=Xr(),vr=Te(),oo=Qr(),um=Su(),aa=lt(),Tk={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n;if(e==="#"||e==="#/")return p();let m=um.resolveRef.call(c,o.root,i,e);if(m===void 0)throw new Pk.MissingRefError(i,e);if(m instanceof um.SchemaEnv)return b(m);return v(m);function p(){if(o===o.root)return la(t,a,o,o.$async);let w=r.scopeValue("root",{ref:o.root});return la(t,vr._`${w}.validate`,o.root,o.root.$async)}function b(w){let _=cm(t,w);la(t,_,w,w.$async)}function v(w){let _=r.scopeValue("schema",u.code.source===!0?{ref:w,code:vr.stringify(w)}:{ref:w}),T=r.name("valid"),N=t.subschema({schema:w,dataTypes:[],schemaPath:vr.nil,topSchemaRef:_,errSchemaPath:e},T);t.mergeEvaluated(N),t.ok(T)}}};function cm(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):vr._`${e.scopeValue("wrapper",{ref:r})}.validate`}Ii.getValidate=cm;function la(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:u,opts:c}=o,m=c.passContext?oo.default.this:vr.nil;n?p():b();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let _=i.let("valid");i.try(()=>{i.code(vr._`await ${lm.callValidateCode(t,r,m)}`),w(r),a||i.assign(_,!0)},T=>{i.if(vr._`!(${T} instanceof ${o.ValidationError})`,()=>i.throw(T)),v(T),a||i.assign(_,!1)}),t.ok(_)}function b(){t.result(lm.callValidateCode(t,r,m),()=>w(r),()=>v(r))}function v(_){let T=vr._`${_}.errors`;i.assign(oo.default.vErrors,vr._`${oo.default.vErrors} === null ? ${T} : ${oo.default.vErrors}.concat(${T})`),i.assign(oo.default.errors,vr._`${oo.default.vErrors}.length`)}function w(_){var T;if(!o.opts.unevaluated)return;let N=(T=e==null?void 0:e.validate)===null||T===void 0?void 0:T.evaluated;if(o.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(o.props=aa.mergeEvaluated.props(i,N.props,o.props));else{let D=i.var("props",vr._`${_}.evaluated.props`);o.props=aa.mergeEvaluated.props(i,D,o.props,vr.Name)}if(o.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(o.items=aa.mergeEvaluated.items(i,N.items,o.items));else{let D=i.var("items",vr._`${_}.evaluated.items`);o.items=aa.mergeEvaluated.items(i,D,o.items,vr.Name)}}}Ii.callRef=la;Ii.default=Tk});var pm=re(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Ik=am(),Ok=fm(),Fk=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ik.default,Ok.default];Fu.default=Fk});var dm=re(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var ua=Te(),Gn=ua.operators,ca={maximum:{okStr:"<=",ok:Gn.LTE,fail:Gn.GT},minimum:{okStr:">=",ok:Gn.GTE,fail:Gn.LT},exclusiveMaximum:{okStr:"<",ok:Gn.LT,fail:Gn.GTE},exclusiveMinimum:{okStr:">",ok:Gn.GT,fail:Gn.LTE}},qk={message:({keyword:t,schemaCode:r})=>ua.str`should be ${ca[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>ua._`{comparison: ${ca[t].okStr}, limit: ${r}}`},Dk={keyword:Object.keys(ca),type:"number",schemaType:"number",$data:!0,error:qk,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(ua._`${e} ${ca[r].fail} ${n} || isNaN(${e})`)}};qu.default=Dk});var mm=re(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var Qo=Te(),Nk={message:({schemaCode:t})=>Qo.str`should be multiple of ${t}`,params:({schemaCode:t})=>Qo._`{multipleOf: ${t}}`},Rk={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Nk,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),u=o?Qo._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:Qo._`${a} !== parseInt(${a})`;t.fail$data(Qo._`(${n} === 0 || (${a} = ${e}/${n}, ${u}))`)}};Du.default=Rk});var hm=re(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});function jk(t){let r=t.length,e=0,n=0,i;for(;n<r;)e++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<r&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return e}Nu.default=jk});var gm=re(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var Kn=Te(),Lk=hm(),Bk={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Kn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Kn._`{limit: ${t}}`},Mk={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Bk,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?Kn.operators.GT:Kn.operators.LT,a;if(i.opts.unicode===!1)a=Kn._`${e}.length`;else{let u=t.gen.scopeValue("func",{ref:Lk.default,code:Kn._`require("ajv/dist/compile/ucs2length").default`});a=Kn._`${u}(${e})`}t.fail$data(Kn._`${a} ${o} ${n}`)}};Ru.default=Mk});var ym=re(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var zk=Xr(),fa=Te(),Vk={message:({schemaCode:t})=>fa.str`should match pattern "${t}"`,params:({schemaCode:t})=>fa._`{pattern: ${t}}`},Uk={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Vk,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?fa._`(new RegExp(${o}, "u"))`:zk.usePattern(r,i);t.fail$data(fa._`!${a}.test(${e})`)}};ju.default=Uk});var bm=re(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Xo=Te(),Hk={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return Xo.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>Xo._`{limit: ${t}}`},Gk={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Hk,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?Xo.operators.GT:Xo.operators.LT;t.fail$data(Xo._`Object.keys(${e}).length ${i} ${n}`)}};Lu.default=Gk});var vm=re(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var Yo=Xr(),es=Te(),Kk=Er(),Wk={message:({params:{missingProperty:t}})=>es.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>es._`{missingProperty: ${t}}`},Zk={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Wk,code(t){let{gen:r,schema:e,schemaCode:n,data:i,$data:o,it:a}=t,{opts:u}=a;if(!o&&e.length===0)return;let c=e.length>=u.loopRequired;if(a.allErrors?m():p(),u.strictRequired){let w=t.parentSchema.properties,{definedProperties:_}=t.it;for(let T of e)if((w==null?void 0:w[T])===void 0&&!_.has(T)){let N=a.schemaEnv.baseId+a.errSchemaPath,D=`required property "${T}" is not defined at "${N}" (strictRequired)`;Kk.checkStrictMode(a,D,a.opts.strictRequired)}}function m(){if(c||o)t.block$data(es.nil,b);else for(let w of e)Yo.checkReportMissingProp(t,w)}function p(){let w=r.let("missing");if(c||o){let _=r.let("valid",!0);t.block$data(_,()=>v(w,_)),t.ok(_)}else r.if(Yo.checkMissingProp(t,e,w)),Yo.reportMissingProp(t,w),r.else()}function b(){r.forOf("prop",n,w=>{t.setParams({missingProperty:w}),r.if(Yo.noPropertyInData(r,i,w,u.ownProperties),()=>t.error())})}function v(w,_){t.setParams({missingProperty:w}),r.forOf(w,n,()=>{r.assign(_,Yo.propertyInData(r,i,w,u.ownProperties)),r.if(es.not(_),()=>{t.error(),r.break()})},es.nil)}}};Bu.default=Zk});var $m=re(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var ts=Te(),Jk={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return ts.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>ts._`{limit: ${t}}`},Qk={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Jk,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?ts.operators.GT:ts.operators.LT;t.fail$data(ts._`${e}.length ${i} ${n}`)}};Mu.default=Qk});var wm=re(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var zu=eo(),Ot=Te(),Xk=Uo(),Yk={message:({params:{i:t,j:r}})=>Ot.str`should NOT have duplicate items (items ## ${r} and ${t} are identical)`,params:({params:{i:t,j:r}})=>Ot._`{i: ${t}, j: ${r}}`},e0={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Yk,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=t;if(!n&&!i)return;let c=r.let("valid"),m=o.items?zu.getSchemaTypes(o.items):[];t.block$data(c,p,Ot._`${a} === false`),t.ok(c);function p(){let _=r.let("i",Ot._`${e}.length`),T=r.let("j");t.setParams({i:_,j:T}),r.assign(c,!0),r.if(Ot._`${_} > 1`,()=>(b()?v:w)(_,T))}function b(){return m.length>0&&!m.some(_=>_==="object"||_==="array")}function v(_,T){let N=r.name("item"),D=zu.checkDataTypes(m,N,u.opts.strict,zu.DataType.Wrong),Y=r.const("indices",Ot._`{}`);r.for(Ot._`;${_}--;`,()=>{r.let(N,Ot._`${e}[${_}]`),r.if(D,Ot._`continue`),m.length>1&&r.if(Ot._`typeof ${N} == "string"`,Ot._`${N} += "_"`),r.if(Ot._`typeof ${Y}[${N}] == "number"`,()=>{r.assign(T,Ot._`${Y}[${N}]`),t.error(),r.assign(c,!1).break()}).code(Ot._`${Y}[${N}] = ${_}`)})}function w(_,T){let N=t.gen.scopeValue("func",{ref:Xk,code:Ot._`require("ajv/dist/compile/equal")`}),D=r.name("outer");r.label(D).for(Ot._`;${_}--;`,()=>r.for(Ot._`${T} = ${_}; ${T}--;`,()=>r.if(Ot._`${N}(${e}[${_}], ${e}[${T}])`,()=>{t.error(),r.assign(c,!1).break(D)})))}}};Vu.default=e0});var km=re(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var Uu=Te(),t0=Uo(),r0={message:"should be equal to constant",params:({schemaCode:t})=>Uu._`{allowedValue: ${t}}`},n0={keyword:"const",$data:!0,error:r0,code(t){let r=t.gen.scopeValue("func",{ref:t0,code:Uu._`require("ajv/dist/compile/equal")`});t.fail$data(Uu._`!${r}(${t.data}, ${t.schemaCode})`)}};Hu.default=n0});var _m=re(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var so=Te(),i0=Uo(),o0={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>so._`{allowedValues: ${t}}`},s0={keyword:"enum",schemaType:"array",$data:!0,error:o0,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o,it:a}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c=t.gen.scopeValue("func",{ref:i0,code:so._`require("ajv/dist/compile/equal")`}),m;if(u||n)m=r.let("valid"),t.block$data(m,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let v=r.const("vSchema",o);m=so.or(...i.map((w,_)=>b(v,_)))}t.pass(m);function p(){r.assign(m,!1),r.forOf("v",o,v=>r.if(so._`${c}(${e}, ${v})`,()=>r.assign(m,!0).break()))}function b(v,w){let _=i[w];return _&&typeof _=="object"?so._`${c}(${e}, ${v}[${w}])`:so._`${e} === ${_}`}}};Gu.default=s0});var Cm=re(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var a0=dm(),l0=mm(),u0=gm(),c0=ym(),f0=bm(),p0=vm(),d0=$m(),m0=wm(),h0=km(),g0=_m(),y0=[a0.default,l0.default,u0.default,c0.default,f0.default,p0.default,d0.default,m0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h0.default,g0.default];Ku.default=y0});var xm=re(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Oi=Te(),b0=Si(),v0=lt(),$0=Er(),w0={message:({params:{len:t}})=>Oi.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Oi._`{limit: ${t}}`},k0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:w0,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){$0.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let u=r.const("len",Oi._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(Oi._`${u} <= ${a.length}`);else if(typeof e=="object"&&!v0.alwaysValidSchema(o,e)){let m=r.var("valid",Oi._`${u} <= ${a.length}`);r.if(Oi.not(m),()=>c(m)),t.ok(m)}function c(m){r.forRange("i",a.length,u,p=>{t.subschema({keyword:"additionalItems",dataProp:p,dataPropType:b0.Type.Num},m),o.allErrors||r.if(Oi.not(m),()=>r.break())})}}};Wu.default=k0});var Am=re(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var Em=Te(),Zu=lt(),_0=Er(),C0=Xr(),x0={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=Zu.mergeEvaluated.items(r,e.length,n.items)),i(e);else{if(n.items=!0,Zu.alwaysValidSchema(n,e))return;t.ok(C0.validateArray(t))}function i(o){let{parentSchema:a,data:u}=t;if(n.opts.strictTuples&&!E0(o.length,a)){let p=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;_0.checkStrictMode(n,p,n.opts.strictTuples)}let c=r.name("valid"),m=r.const("len",Em._`${u}.length`);o.forEach((p,b)=>{Zu.alwaysValidSchema(n,p)||(r.if(Em._`${m} > ${b}`,()=>t.subschema({keyword:"items",schemaProp:b,dataProp:b},c)),t.ok(c))})}}};function E0(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Ju.default=x0});var Pm=re(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var tn=Te(),A0=Si(),S0=lt(),Sm=Er(),P0={message:({params:{min:t,max:r}})=>r===void 0?tn.str`should contain at least ${t} valid item(s)`:tn.str`should contain at least ${t} and no more than ${r} valid item(s)`,params:({params:{min:t,max:r}})=>r===void 0?tn._`{minContains: ${t}}`:tn._`{minContains: ${t}, maxContains: ${r}}`},T0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:P0,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,u,{minContains:c,maxContains:m}=n;o.opts.next?(a=c===void 0?1:c,u=m):a=1;let p=r.const("len",tn._`${i}.length`);if(t.setParams({min:a,max:u}),u===void 0&&a===0){Sm.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){Sm.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(S0.alwaysValidSchema(o,e)){let _=tn._`${p} >= ${a}`;u!==void 0&&(_=tn._`${_} && ${p} <= ${u}`),t.pass(_);return}o.items=!0;let b=r.name("valid");if(u===void 0&&a===1)v(b,()=>r.if(b,()=>r.break()));else{r.let(b,!1);let _=r.name("_valid"),T=r.let("count",0);v(_,()=>r.if(_,()=>w(T)))}t.result(b,()=>t.reset());function v(_,T){r.forRange("i",0,p,N=>{t.subschema({keyword:"contains",dataProp:N,dataPropType:A0.Type.Num,compositeRule:!0},_),T()})}function w(_){r.code(tn._`${_}++`),u===void 0?r.if(tn._`${_} >= ${a}`,()=>r.assign(b,!0).break()):(r.if(tn._`${_} > ${u}`,()=>r.assign(b,!1).break()),a===1?r.assign(b,!0):r.if(tn._`${_} >= ${a}`,()=>r.assign(b,!0)))}}};Qu.default=T0});var Om=re(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.validateSchemaDeps=hn.validatePropertyDeps=hn.error=void 0;var Xu=Te(),I0=lt(),rs=Xr();hn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Xu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Xu._`{property: ${t},
14
- missingProperty: ${n},
15
- depsCount: ${r},
16
- deps: ${e}}`};var O0={keyword:"dependencies",type:"object",schemaType:"object",error:hn.error,code(t){let[r,e]=F0(t);Tm(t,r),Im(t,e)}};function F0({schema:t}){let r={},e={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?r:e;i[n]=t[n]}return[r,e]}function Tm(t,r=t.schema){let{gen:e,data:n,it:i}=t;if(Object.keys(r).length===0)return;let o=e.let("missing");for(let a in r){let u=r[a];if(u.length===0)continue;let c=rs.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?e.if(c,()=>{for(let m of u)rs.checkReportMissingProp(t,m)}):(e.if(Xu._`${c} && (${rs.checkMissingProp(t,u,o)})`),rs.reportMissingProp(t,o),e.else())}}hn.validatePropertyDeps=Tm;function Im(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let u in r)I0.alwaysValidSchema(o,r[u])||(e.if(rs.propertyInData(e,n,u,o.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:u},a);t.mergeValidEvaluated(c,a)},()=>e.var(a,!0)),t.ok(a))}hn.validateSchemaDeps=Im;hn.default=O0});var Fm=re(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var Yu=Te(),q0=lt(),D0={message:({params:t})=>Yu.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>Yu._`{propertyName: ${t.propertyName}}`},N0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D0,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(q0.alwaysValidSchema(i,e))return;let o=r.name("valid");r.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),r.if(Yu.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};ec.default=N0});var nc=re(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var pa=Xr(),rn=Te(),R0=Qr(),j0=Si(),tc=lt(),L0={message:"should NOT have additional properties",params:({params:t})=>rn._`{additionalProperty: ${t.additionalProperty}}`},B0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:L0,code(t){let{gen:r,schema:e,parentSchema:n,data:i,errsCount:o,it:a}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&tc.alwaysValidSchema(a,e))return;let m=pa.allSchemaProperties(n.properties),p=pa.allSchemaProperties(n.patternProperties);b(),t.ok(rn._`${o} === ${R0.default.errors}`);function b(){r.forIn("key",i,N=>{!m.length&&!p.length?_(N):r.if(v(N),()=>_(N))})}function v(N){let D;if(m.length>8){let Y=tc.schemaRefOrVal(a,n.properties,"properties");D=pa.isOwnProperty(r,Y,N)}else m.length?D=rn.or(...m.map(Y=>rn._`${N} === ${Y}`)):D=rn.nil;return p.length&&(D=rn.or(D,...p.map(Y=>rn._`${pa.usePattern(r,Y)}.test(${N})`))),rn.not(D)}function w(N){r.code(rn._`delete ${i}[${N}]`)}function _(N){if(c.removeAdditional==="all"||c.removeAdditional&&e===!1){w(N);return}if(e===!1){t.setParams({additionalProperty:N}),t.error(),u||r.break();return}if(typeof e=="object"&&!tc.alwaysValidSchema(a,e)){let D=r.name("valid");c.removeAdditional==="failing"?(T(N,D,!1),r.if(rn.not(D),()=>{t.reset(),w(N)})):(T(N,D),u||r.if(rn.not(D),()=>r.break()))}}function T(N,D,Y){let ee={keyword:"additionalProperties",dataProp:N,dataPropType:j0.Type.Str};Y===!1&&Object.assign(ee,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(ee,D)}}};rc.default=B0});var Nm=re(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var M0=Vo(),qm=Xr(),ic=lt(),Dm=nc(),z0={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Dm.default.code(new M0.default(o,Dm.default,"additionalProperties"));let a=qm.allSchemaProperties(e);for(let b of a)o.definedProperties.add(b);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=ic.mergeEvaluated.props(r,ic.toHash(a),o.props));let u=a.filter(b=>!ic.alwaysValidSchema(o,e[b]));if(u.length===0)return;let c=r.name("valid");for(let b of u)m(b)?p(b):(r.if(qm.propertyInData(r,i,b,o.opts.ownProperties)),p(b),o.allErrors||r.else().var(c,!0),r.endIf()),t.it.definedProperties.add(b),t.ok(c);function m(b){return o.opts.useDefaults&&!o.compositeRule&&e[b].default!==void 0}function p(b){t.subschema({keyword:"properties",schemaProp:b,dataProp:b},c)}}};oc.default=z0});var jm=re(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Rm=Xr(),da=Te(),V0=Si(),U0=Er(),H0=lt(),G0={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,u=Rm.schemaProperties(o,e);if(u.length===0)return;let c=a.strict&&!a.allowMatchingProperties&&i.properties,m=r.name("valid");o.props!==!0&&!(o.props instanceof da.Name)&&(o.props=H0.evaluatedPropsToName(r,o.props));let{props:p}=o;b();function b(){for(let _ of u)c&&v(_),o.allErrors?w(_):(r.var(m,!0),w(_),r.if(m))}function v(_){for(let T in c)new RegExp(_).test(T)&&U0.checkStrictMode(o,`property ${T} matches pattern ${_} (use allowMatchingProperties)`)}function w(_){r.forIn("key",n,T=>{r.if(da._`${Rm.usePattern(r,_)}.test(${T})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:T,dataPropType:V0.Type.Str},m),o.opts.unevaluated&&p!==!0?r.assign(da._`${p}[${T}]`,!0):o.allErrors||r.if(da.not(m),()=>r.break())})})}}};sc.default=G0});var Lm=re(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var K0=lt(),W0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(K0.alwaysValidSchema(n,e)){t.fail();return}let i=r.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.result(i,()=>t.error(),()=>t.reset())},error:{message:"should NOT be valid"}};ac.default=W0});var Bm=re(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Z0=Xr(),J0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Z0.validateUnion,error:{message:"should match some schema in anyOf"}};lc.default=J0});var Mm=re(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var ma=Te(),Q0=lt(),X0={message:"should match exactly one schema in oneOf",params:({params:t})=>ma._`{passingSchemas: ${t.passing}}`},Y0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:X0,code(t){let{gen:r,schema:e,it:n}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");let i=e,o=r.let("valid",!1),a=r.let("passing",null),u=r.name("_valid");t.setParams({passing:a}),r.block(c),t.result(o,()=>t.reset(),()=>t.error(!0));function c(){i.forEach((m,p)=>{let b;Q0.alwaysValidSchema(n,m)?r.var(u,!0):b=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&r.if(ma._`${u} && ${o}`).assign(o,!1).assign(a,ma._`[${a}, ${p}]`).else(),r.if(u,()=>{r.assign(o,!0),r.assign(a,p),b&&t.mergeEvaluated(b,ma.Name)})})}}};uc.default=Y0});var zm=re(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var e1=lt(),t1={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 i=r.name("valid");e.forEach((o,a)=>{if(e1.alwaysValidSchema(n,o))return;let u=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(u)})}};cc.default=t1});var Um=re(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var ha=Te(),r1=lt(),n1=Er(),i1={message:({params:t})=>ha.str`should match "${t.ifClause}" schema`,params:({params:t})=>ha._`{failingKeyword: ${t.ifClause}}`},o1={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:i1,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&n1.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=Vm(n,"then"),o=Vm(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),u=r.name("_valid");if(c(),t.reset(),i&&o){let p=r.let("ifClause");t.setParams({ifClause:p}),r.if(u,m("then",p),m("else",p))}else i?r.if(u,m("then")):r.if(ha.not(u),m("else"));t.pass(a,()=>t.error(!0));function c(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(p)}function m(p,b){return()=>{let v=t.subschema({keyword:p},u);r.assign(a,u),t.mergeValidEvaluated(v,a),b?r.assign(b,ha._`${p}`):t.setParams({ifClause:p})}}}};function Vm(t,r){let e=t.schema[r];return e!==void 0&&!r1.alwaysValidSchema(t,e)}fc.default=o1});var Hm=re(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var s1=Er(),a1={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&s1.checkStrictMode(e,`"${t}" without "if" is ignored`)}};pc.default=a1});var Gm=re(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var l1=xm(),u1=Am(),c1=Pm(),f1=Om(),p1=Fm(),d1=nc(),m1=Nm(),h1=jm(),g1=Lm(),y1=Bm(),b1=Mm(),v1=zm(),$1=Um(),w1=Hm(),k1=[g1.default,y1.default,b1.default,v1.default,$1.default,w1.default,l1.default,u1.default,c1.default,p1.default,d1.default,f1.default,m1.default,h1.default];dc.default=k1});var Km=re(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var wt=Te(),_1={message:({schemaCode:t})=>wt.str`should match format "${t}"`,params:({schemaCode:t})=>wt._`{format: ${t}}`},C1={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:_1,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:u}=t,{opts:c,errSchemaPath:m,schemaEnv:p,self:b}=u;if(!c.validateFormats)return;i?v():w();function v(){let _=e.scopeValue("formats",{ref:b.formats,code:c.code.formats}),T=e.const("fDef",wt._`${_}[${a}]`),N=e.let("fType"),D=e.let("format");e.if(wt._`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>e.assign(N,wt._`${T}.type || "string"`).assign(D,wt._`${T}.validate`),()=>e.assign(N,wt._`"string"`).assign(D,T)),t.fail$data(wt.or(Y(),ee()));function Y(){return c.strict===!1?wt.nil:wt._`${a} && !${D}`}function ee(){let de=p.$async?wt._`(${T}.async ? await ${D}(${n}) : ${D}(${n}))`:wt._`${D}(${n})`,fe=wt._`(typeof ${D} == "function" ? ${de} : ${D}.test(${n}))`;return wt._`${D} && ${D} !== true && ${N} === ${r} && !${fe}`}}function w(){let _=b.formats[o];if(!_){Y();return}if(_===!0)return;let[T,N,D]=ee(_);T===r&&t.pass(de());function Y(){if(c.strict===!1){b.logger.warn(fe());return}throw new Error(fe());function fe(){return`unknown format "${o}" ignored in schema at path "${m}"`}}function ee(fe){let Z=e.scopeValue("formats",{key:o,ref:fe,code:c.code.formats?wt._`${c.code.formats}${wt.getProperty(o)}`:void 0});return typeof fe=="object"&&!(fe instanceof RegExp)?[fe.type||"string",fe.validate,wt._`${Z}.validate`]:["string",fe,Z]}function de(){if(typeof _=="object"&&!(_ instanceof RegExp)&&_.async){if(!p.$async)throw new Error("async format in sync schema");return wt._`await ${D}(${n})`}return typeof N=="function"?wt._`${D}(${n})`:wt._`${D}.test(${n})`}}}};mc.default=C1});var Wm=re(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var x1=Km(),E1=[x1.default];hc.default=E1});var Zm=re(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.contentVocabulary=ao.metadataVocabulary=void 0;ao.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ao.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Qm=re(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var A1=pm(),S1=Cm(),P1=Gm(),T1=Wm(),Jm=Zm(),I1=[A1.default,S1.default,P1.default,T1.default,Jm.metadataVocabulary,Jm.contentVocabulary];gc.default=I1});var Xm=re((kT,O1)=>{O1.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 eh=re(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.CodeGen=Mt.Name=Mt.nil=Mt.stringify=Mt.str=Mt._=Mt.KeywordCxt=void 0;var F1=Vo();Mt.KeywordCxt=F1.default;var lo=Te();Object.defineProperty(Mt,"_",{enumerable:!0,get:function(){return lo._}});Object.defineProperty(Mt,"str",{enumerable:!0,get:function(){return lo.str}});Object.defineProperty(Mt,"stringify",{enumerable:!0,get:function(){return lo.stringify}});Object.defineProperty(Mt,"nil",{enumerable:!0,get:function(){return lo.nil}});Object.defineProperty(Mt,"Name",{enumerable:!0,get:function(){return lo.Name}});Object.defineProperty(Mt,"CodeGen",{enumerable:!0,get:function(){return lo.CodeGen}});var q1=sm(),D1=Qm(),Ym=Xm(),N1=["/properties"],ga="http://json-schema.org/draft-07/schema",yc=class extends q1.default{_addVocabularies(){super._addVocabularies(),D1.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(Ym,N1):Ym;this.addMetaSchema(r,ga,!1),this.refs["http://json-schema.org/schema"]=ga}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ga)?ga:void 0)}};Mt.default=yc});var rh=re((CT,th)=>{var R1=Object.prototype.hasOwnProperty,j1=Object.prototype.toString;th.exports=function(r,e,n){if(j1.call(e)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var o=0;o<i;o++)e.call(n,r[o],o,r);else for(var a in r)R1.call(r,a)&&e.call(n,r[a],a,r)}});var ih=re((xT,nh)=>{"use strict";var L1=rh();nh.exports=Ye;function Ye(t,r,e){if(arguments.length===3)return Ye.set(t,r,e);if(arguments.length===2)return Ye.get(t,r);var n=Ye.bind(Ye,t);for(var i in Ye)Ye.hasOwnProperty(i)&&(n[i]=Ye[i].bind(n,t));return n}Ye.get=function(r,e){for(var n=Array.isArray(e)?e:Ye.parse(e),i=0;i<n.length;++i){var o=n[i];if(!(typeof r=="object"&&o in r))throw new Error("Invalid reference token: "+o);r=r[o]}return r};Ye.set=function(r,e,n){var i=Array.isArray(e)?e:Ye.parse(e),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var u=i[a];u==="__proto__"||u==="constructor"||u==="prototype"||(u==="-"&&Array.isArray(r)&&(u=r.length),o=i[a+1],u in r||(o.match(/^(\d+|-)$/)?r[u]=[]:r[u]={}),r=r[u])}return o==="-"&&Array.isArray(r)&&(o=r.length),r[o]=n,this};Ye.remove=function(t,r){var e=Array.isArray(r)?r:Ye.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=Ye.get(t,e.slice(0,-1));if(Array.isArray(i)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(i,o,1)}else delete i[n]};Ye.dict=function(r,e){var n={};return Ye.walk(r,function(i,o){n[o]=i},e),n};Ye.walk=function(r,e,n){var i=[];n=n||function(o){var a=Object.prototype.toString.call(o);return a==="[object Object]"||a==="[object Array]"},function o(a){L1(a,function(u,c){i.push(String(c)),n(u)?o(u):e(u,Ye.compile(i)),i.pop()})}(r)};Ye.has=function(r,e){try{Ye.get(r,e)}catch{return!1}return!0};Ye.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Ye.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};Ye.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(Ye.unescape)};Ye.compile=function(r){return r.length===0?"":"/"+r.map(Ye.escape).join("/")}});var oh=re((ET,B1)=>{B1.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var sh=re((AT,M1)=>{M1.exports={$ref:"#/definitions/AstTree",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:2,maxItems:2},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},text:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var ah=re((ST,z1)=>{z1.exports={$ref:"#/definitions/RootBlock",definitions:{Image:{type:"object",properties:{type:{type:"string",enum:["image"]},src:{type:"string"},alt:{type:"string"}},required:["src","type"]},Toc:{type:"object",properties:{type:{type:"string",enum:["toc"]},title:{type:"string"},content:{$ref:"#/definitions/TocList"}},required:["content","type"]},TocList:{type:"object",properties:{type:{type:"string",enum:["toc-list"]},level:{type:"number"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/TocList"},{$ref:"#/definitions/TocItem"}]}}},required:["content","level","type"]},TocItem:{type:"object",properties:{type:{type:"string",enum:["toc-item"]},node:{$ref:"#/definitions/PodNode"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["content","node","type"]},PodNode:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]},BlockImage:{type:"object",properties:{name:{type:"string",enum:["image"]},caption:{type:"string"},link:{type:"string"},content:{type:"array",items:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}],minItems:2,maxItems:2},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCaption:{type:"object",properties:{name:{type:"string",enum:["caption"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},type:{type:"string",enum:["block"]}},required:["content","name","type"]},Location:{type:"object",properties:{start:{$ref:"#/definitions/Position"},end:{$ref:"#/definitions/Position"}},required:["end","start"]},Position:{type:"object",properties:{line:{type:"number"},column:{type:"number"},offset:{type:"number"}},required:["column","line","offset"]},BrokenConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]}},required:["name","value"]},ConfigItemKV:{type:"object",additionalProperties:{type:["string","number","boolean"]}},ConfigItem:{type:"object",properties:{name:{type:"string"},value:{anyOf:[{$ref:"#/definitions/ConfigItemKV"},{type:"array",items:{type:["string","number","boolean"]}},{type:["string","number","boolean"]}]},type:{type:"string"}},required:["name","type","value"]},RootBlock:{type:"object",properties:{name:{type:"string",enum:["root"]},content:{$ref:"#/definitions/AstTree"},type:{type:"string",enum:["block"]},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","margin","name","type"]},AstTree:{type:"array",items:{$ref:"#/definitions/PodNode"}},FormattingCodeB:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["B"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}}},required:["name","type"]},FormattingCodeC:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["C"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeE:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["E"]},content:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]}}},required:["content","name","type"]},FormattingCodeN:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["N"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},FormattingCodeX:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["X"]},entry:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["entry","name","type"]},FormattingCodeZ:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["Z"]},content:{type:"string"}},required:["name","type"]},FormattingCodeV:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["V"]},content:{type:"string"}},required:["name","type"]},FormattingCodeS:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["S"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["name","type"]},Text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},FormattingCodeA:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["A"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","name","type"]},FormattingCodeD:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["D"]},synonyms:{type:"array",items:{type:"string"}},content:{type:"string"}},required:["content","name","synonyms","type"]},FormattingCodeL:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["L"]},meta:{type:["null","string"]},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeI:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string",enum:["I"]},meta:{type:"string"},content:{anyOf:[{$ref:"#/definitions/Text"},{type:"string"}]}},required:["content","meta","name","type"]},FormattingCodeAny:{type:"object",properties:{type:{type:"string",enum:["fcode"]},name:{type:"string"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{type:"string"}]}}},required:["name","type"]},Ambient:{type:"object",properties:{type:{type:"string",enum:["ambient"]},text:{type:"string"},location:{$ref:"#/definitions/Location"}},required:["location","text","type"]},Verbatim:{type:"object",properties:{type:{type:"string",enum:["verbatim"]},value:{type:"string"}},required:["type","value"]},Para:{type:"object",properties:{type:{type:"string",enum:["para"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/Toc"},{$ref:"#/definitions/BlockImage"},{$ref:"#/definitions/BlockCaption"},{$ref:"#/definitions/RootBlock"},{$ref:"#/definitions/FormattingCodeB"},{$ref:"#/definitions/FormattingCodeC"},{$ref:"#/definitions/FormattingCodeE"},{$ref:"#/definitions/FormattingCodeN"},{$ref:"#/definitions/FormattingCodeX"},{$ref:"#/definitions/FormattingCodeZ"},{$ref:"#/definitions/FormattingCodeV"},{$ref:"#/definitions/FormattingCodeS"},{$ref:"#/definitions/FormattingCodeA"},{$ref:"#/definitions/FormattingCodeD"},{$ref:"#/definitions/FormattingCodeL"},{$ref:"#/definitions/FormattingCodeI"},{$ref:"#/definitions/FormattingCodeAny"},{$ref:"#/definitions/Ambient"},{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Text"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"},{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockConfig"},{$ref:"#/definitions/Alias"},{$ref:"#/definitions/Separator"},{$ref:"#/definitions/BlockPod"},{$ref:"#/definitions/BlockData"},{$ref:"#/definitions/BlockComment"},{$ref:"#/definitions/BlockDefn"},{$ref:"#/definitions/BlockItem"},{$ref:"#/definitions/BlockOutput"},{$ref:"#/definitions/BlockInput"},{$ref:"#/definitions/BlockPara"},{$ref:"#/definitions/BlockCode"},{$ref:"#/definitions/BlockNested"},{$ref:"#/definitions/BlockHead"},{$ref:"#/definitions/BlockTable"},{$ref:"#/definitions/BlockNamed"},{type:"string"}]}}},required:["content","location","margin","text","type"]},Code:{type:"object",properties:{type:{type:"string",enum:["code"]},text:{type:"string"},margin:{type:"string"},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/Verbatim"},{type:"string"}]}}},required:["content","location","margin","text","type"]},BlankLine:{type:"object",properties:{type:{type:"string",enum:["blankline"]}},required:["type"]},List:{type:"object",properties:{type:{type:"string",enum:["list"]},level:{type:["string","number"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/List"},{$ref:"#/definitions/BlockItem"}]}},list:{type:"string",enum:["itemized"]}},required:["content","level","list","type"]},BlockItem:{type:"object",properties:{name:{type:"string",enum:["item"]},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockConfig:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["config"]},config:{type:"array",items:{$ref:"#/definitions/ConfigItem"}},margin:{type:"string"}},required:["config","margin","name","type"]},Alias:{type:"object",properties:{name:{type:"string"},type:{type:"string",enum:["alias"]},replacement:{type:"array",items:{type:"string"}},margin:{type:"string"}},required:["margin","name","replacement","type"]},Separator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockPod:{type:"object",properties:{name:{type:"string",enum:["pod"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockData:{type:"object",properties:{name:{type:"string",enum:["data"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockComment:{type:"object",properties:{name:{type:"string",enum:["comment"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockDefn:{type:"object",properties:{name:{type:"string",enum:["defn"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockOutput:{type:"object",properties:{name:{type:"string",enum:["output"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockInput:{type:"object",properties:{name:{type:"string",enum:["input"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockPara:{type:"object",properties:{name:{type:"string",enum:["para"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockCode:{type:"object",properties:{name:{type:"string",enum:["code"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockNested:{type:"object",properties:{name:{type:"string",enum:["nested"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},BlockHead:{type:"object",properties:{name:{type:"string",enum:["head"]},level:{type:["string","number"]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},content:{type:"array",items:{$ref:"#/definitions/PodNode"}},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","level","location","margin","name","type"]},BlockTable:{type:"object",properties:{name:{type:"string",enum:["table"]},content:{type:"array",items:{anyOf:[{$ref:"#/definitions/BlankLine"},{$ref:"#/definitions/TableRow"},{$ref:"#/definitions/TableHead"},{$ref:"#/definitions/TableSeparator"}]}},text:{type:"string"},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]},TableRow:{type:"object",properties:{name:{type:"string",enum:["table_row"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableCell:{type:"object",properties:{name:{type:"string",enum:["table_cell"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{type:"string"}}},required:["content","name","type"]},TableHead:{type:"object",properties:{name:{type:"string",enum:["table_head"]},type:{type:"string",enum:["block"]},content:{type:"array",items:{$ref:"#/definitions/TableCell"}}},required:["content","name","type"]},TableSeparator:{type:"object",properties:{type:{type:"string",enum:["separator"]},text:{type:"string"}},required:["text","type"]},BlockNamed:{type:"object",properties:{name:{type:"string"},content:{anyOf:[{$ref:"#/definitions/RootBlock"},{type:"array",items:[{anyOf:[{$ref:"#/definitions/Verbatim"},{$ref:"#/definitions/Para"},{$ref:"#/definitions/Code"}]}],minItems:0,maxItems:1},{type:"array",items:{anyOf:[{$ref:"#/definitions/Image"},{$ref:"#/definitions/BlockCaption"}]}}]},type:{type:"string",enum:["block"]},location:{$ref:"#/definitions/Location"},margin:{type:"string"},config:{type:"array",items:{anyOf:[{$ref:"#/definitions/BrokenConfigItem"},{$ref:"#/definitions/ConfigItem"}]}},id:{type:"string"}},required:["content","location","margin","name","type"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var lh=re(ya=>{ya.Test=oh();ya.AstTree=sh();ya.PodliteDocument=ah()});var Q1={};qc(Q1,{PluginRegister:()=>Z1,default:()=>J1,plugin:()=>kc});module.exports=Jh(Q1);function qa(t){if(t)throw t}var nf=Cr(Rc(),1),Ua=Cr(Gc(),1);function wo(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 Kc(){let t=[],r={run:e,use:n};return r;function e(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);u(null,...i);function u(c,...m){let p=t[++o],b=-1;if(c){a(c);return}for(;++b<i.length;)(m[b]===null||m[b]===void 0)&&(m[b]=i[b]);i=m,p?Qh(p,u)(...m):a(null,...m)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),r}}function Qh(t,r){let e;return n;function n(...a){let u=t.length>a.length,c;u&&a.push(i);try{c=t.apply(this,a)}catch(m){let p=m;if(u&&e)throw p;return i(p)}u||(c instanceof Promise?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...u){e||(e=!0,r(a,...u))}function o(a){i(null,a)}}var Yc=Cr(Zc(),1);function si(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Jc(t.position):"start"in t||"end"in t?Jc(t):"line"in t||"column"in t?Da(t):""}function Da(t){return Qc(t&&t.line)+":"+Qc(t&&t.column)}function Jc(t){return Da(t&&t.start)+"-"+Da(t&&t.end)}function Qc(t){return t&&typeof t=="number"?t:1}var sr=class extends Error{constructor(r,e,n){let i=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let a=n.indexOf(":");a===-1?i[1]=n:(i[0]=n.slice(0,a),i[1]=n.slice(a+1))}e&&("type"in e||"position"in e?e.position&&(o=e.position):"start"in e||"end"in e?o=e:("line"in e||"column"in e)&&(o.start=e)),this.name=si(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=i[0],this.ruleId=i[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};sr.prototype.file="";sr.prototype.name="";sr.prototype.reason="";sr.prototype.message="";sr.prototype.stack="";sr.prototype.fatal=null;sr.prototype.column=null;sr.prototype.line=null;sr.prototype.source=null;sr.prototype.ruleId=null;sr.prototype.position=null;var Dr=Cr(require("path"),1);var Na=Cr(require("process"),1);var Ra=require("url");function bs(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var ja=["history","path","basename","stem","extname","dirname"],ko=class{constructor(r){let e;r?typeof r=="string"||(0,Yc.default)(r)?e={value:r}:bs(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Na.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<ja.length;){let o=ja[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)ja.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){bs(r)&&(r=(0,Ra.fileURLToPath)(r)),Ba(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Dr.default.dirname(this.path):void 0}set dirname(r){Xc(this.basename,"dirname"),this.path=Dr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Dr.default.basename(this.path):void 0}set basename(r){Ba(r,"basename"),La(r,"basename"),this.path=Dr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Dr.default.extname(this.path):void 0}set extname(r){if(La(r,"extname"),Xc(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=Dr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Dr.default.basename(this.path,this.extname):void 0}set stem(r){Ba(r,"stem"),La(r,"stem"),this.path=Dr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new sr(r,e,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(r,e,n){let i=this.message(r,e,n);return i.fatal=null,i}fail(r,e,n){let i=this.message(r,e,n);throw i.fatal=!0,i}};function La(t,r){if(t&&t.includes(Dr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Dr.default.sep+"`")}function Ba(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Xc(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Ha=sf().freeze(),of={}.hasOwnProperty;function sf(){let t=Kc(),r=[],e={},n,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=u,o.attachers=r,o.use=c,o.parse=m,o.stringify=p,o.run=b,o.runSync=v,o.process=w,o.processSync=_,o;function o(){let T=sf(),N=-1;for(;++N<r.length;)T.use(...r[N]);return T.data((0,Ua.default)(!0,{},e)),T}function a(T,N){return typeof T=="string"?arguments.length===2?(Va("data",n),e[T]=N,o):of.call(e,T)&&e[T]||null:T?(Va("data",n),e=T,o):e}function u(){if(n)return o;for(;++i<r.length;){let[T,...N]=r[i];if(N[0]===!1)continue;N[0]===!0&&(N[0]=void 0);let D=T.call(o,...N);typeof D=="function"&&t.use(D)}return n=!0,i=Number.POSITIVE_INFINITY,o}function c(T,...N){let D;if(Va("use",n),T!=null)if(typeof T=="function")fe(T,...N);else if(typeof T=="object")Array.isArray(T)?de(T):ee(T);else throw new TypeError("Expected usable value, not `"+T+"`");return D&&(e.settings=Object.assign(e.settings||{},D)),o;function Y(Z){if(typeof Z=="function")fe(Z);else if(typeof Z=="object")if(Array.isArray(Z)){let[me,...we]=Z;fe(me,...we)}else ee(Z);else throw new TypeError("Expected usable value, not `"+Z+"`")}function ee(Z){de(Z.plugins),Z.settings&&(D=Object.assign(D||{},Z.settings))}function de(Z){let me=-1;if(Z!=null)if(Array.isArray(Z))for(;++me<Z.length;){let we=Z[me];Y(we)}else throw new TypeError("Expected a list of plugins, not `"+Z+"`")}function fe(Z,me){let we=-1,ke;for(;++we<r.length;)if(r[we][0]===Z){ke=r[we];break}ke?(wo(ke[1])&&wo(me)&&(me=(0,Ua.default)(!0,ke[1],me)),ke[1]=me):r.push([...arguments])}}function m(T){o.freeze();let N=_o(T),D=o.Parser;return Ma("parse",D),ef(D,"parse")?new D(String(N),N).parse():D(String(N),N)}function p(T,N){o.freeze();let D=_o(N),Y=o.Compiler;return za("stringify",Y),tf(T),ef(Y,"compile")?new Y(T,D).compile():Y(T,D)}function b(T,N,D){if(tf(T),o.freeze(),!D&&typeof N=="function"&&(D=N,N=void 0),!D)return new Promise(Y);Y(null,D);function Y(ee,de){t.run(T,_o(N),fe);function fe(Z,me,we){me=me||T,Z?de(Z):ee?ee(me):D(null,me,we)}}}function v(T,N){let D,Y;return o.run(T,N,ee),rf("runSync","run",Y),D;function ee(de,fe){qa(de),D=fe,Y=!0}}function w(T,N){if(o.freeze(),Ma("process",o.Parser),za("process",o.Compiler),!N)return new Promise(D);D(null,N);function D(Y,ee){let de=_o(T);o.run(o.parse(de),de,(Z,me,we)=>{if(Z||!me||!we)fe(Z);else{let ke=o.stringify(me,we);ke==null||(eg(ke)?we.value=ke:we.result=ke),fe(Z,we)}});function fe(Z,me){Z||!me?ee(Z):Y?Y(me):N(null,me)}}}function _(T){let N;o.freeze(),Ma("processSync",o.Parser),za("processSync",o.Compiler);let D=_o(T);return o.process(D,Y),rf("processSync","process",N),D;function Y(ee){N=!0,qa(ee)}}}function ef(t,r){return typeof t=="function"&&t.prototype&&(Xh(t.prototype)||r in t.prototype)}function Xh(t){let r;for(r in t)if(of.call(t,r))return!0;return!1}function Ma(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Va(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 tf(t){if(!wo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function rf(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function _o(t){return Yh(t)?t:new ko(t)}function Yh(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function eg(t){return typeof t=="string"||(0,nf.default)(t)}function lf(t,r){var{includeImageAlt:e=!0}=r||{};return uf(t,e)}function uf(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&af(t.children,r)||Array.isArray(t)&&af(t,r))||""}function af(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=uf(t[n],r);return e.join("")}function ht(t,r,e,n){let i=t.length,o=0,a;if(r<0?r=-r>i?0:i+r:r=r>i?i:r,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(r,e),[].splice.apply(t,a);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(r,0),[].splice.apply(t,a),o+=1e4,r+=1e4}function ar(t,r){return t.length>0?(ht(t,t.length,0,r),t):r}var cf={}.hasOwnProperty;function vs(t){let r={},e=-1;for(;++e<t.length;)tg(r,t[e]);return r}function tg(t,r){let e;for(e in r){let i=(cf.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){cf.call(i,a)||(i[a]=[]);let u=o[a];rg(i[a],Array.isArray(u)?u:u?[u]:[])}}}function rg(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);ht(t,0,0,n)}var ff=/[!-/:-@[-`{-~\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 Wt=Bn(/[A-Za-z]/),ai=Bn(/\d/),pf=Bn(/[\dA-Fa-f]/),Tt=Bn(/[\dA-Za-z]/),df=Bn(/[!-/:-@[-`{-~]/),Ga=Bn(/[#-'*+\--9=?A-Z^-~]/);function Ln(t){return t!==null&&(t<32||t===127)}function Ve(t){return t!==null&&(t<0||t===32)}function le(t){return t!==null&&t<-2}function Ie(t){return t===-2||t===-1||t===32}var li=Bn(/\s/),ui=Bn(ff);function Bn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ye(t,r,e,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Ie(c)?(t.enter(e),u(c)):r(c)}function u(c){return Ie(c)&&o++<i?(t.consume(c),u):(t.exit(e),r(c))}}var mf={tokenize:ng};function ng(t){let r=t.attempt(this.parser.constructs.contentInitial,n,i),e;return r;function n(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ye(t,r,"linePrefix")}function i(u){return t.enter("paragraph"),o(u)}function o(u){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,a(u)}function a(u){if(u===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(u);return}return le(u)?(t.consume(u),t.exit("chunkText"),o):(t.consume(u),a)}}var gf={tokenize:ig},hf={tokenize:og};function ig(t){let r=this,e=[],n=0,i,o,a;return u;function u(ee){if(n<e.length){let de=e[n];return r.containerState=de[1],t.attempt(de[0].continuation,c,m)(ee)}return m(ee)}function c(ee){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&Y();let de=r.events.length,fe=de,Z;for(;fe--;)if(r.events[fe][0]==="exit"&&r.events[fe][1].type==="chunkFlow"){Z=r.events[fe][1].end;break}D(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},Z),me++;return ht(r.events,fe+1,0,r.events.slice(de)),r.events.length=me,m(ee)}return u(ee)}function m(ee){if(n===e.length){if(!i)return v(ee);if(i.currentConstruct&&i.currentConstruct.concrete)return _(ee);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(hf,p,b)(ee)}function p(ee){return i&&Y(),D(n),v(ee)}function b(ee){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,_(ee)}function v(ee){return r.containerState={},t.attempt(hf,w,_)(ee)}function w(ee){return n++,e.push([r.currentConstruct,r.containerState]),v(ee)}function _(ee){if(ee===null){i&&Y(),D(0),t.consume(ee);return}return i=i||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),T(ee)}function T(ee){if(ee===null){N(t.exit("chunkFlow"),!0),D(0),t.consume(ee);return}return le(ee)?(t.consume(ee),N(t.exit("chunkFlow")),n=0,r.interrupt=void 0,u):(t.consume(ee),T)}function N(ee,de){let fe=r.sliceStream(ee);if(de&&fe.push(null),ee.previous=o,o&&(o.next=ee),o=ee,i.defineSkip(ee.start),i.write(fe),r.parser.lazy[ee.start.line]){let Z=i.events.length;for(;Z--;)if(i.events[Z][1].start.offset<a&&(!i.events[Z][1].end||i.events[Z][1].end.offset>a))return;let me=r.events.length,we=me,ke,Fe;for(;we--;)if(r.events[we][0]==="exit"&&r.events[we][1].type==="chunkFlow"){if(ke){Fe=r.events[we][1].end;break}ke=!0}for(D(n),Z=me;Z<r.events.length;)r.events[Z][1].end=Object.assign({},Fe),Z++;ht(r.events,we+1,0,r.events.slice(me)),r.events.length=Z}}function D(ee){let de=e.length;for(;de-- >ee;){let fe=e[de];r.containerState=fe[1],fe[0].exit.call(r,t)}e.length=ee}function Y(){i.write([null]),o=void 0,i=void 0,r.containerState._closeFlow=void 0}}function og(t,r,e){return ye(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gi(t){if(t===null||Ve(t)||li(t))return 1;if(ui(t))return 2}function Mn(t,r,e){let n=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var Co={name:"attention",tokenize:ag,resolveAll:sg};function sg(t,r){let e=-1,n,i,o,a,u,c,m,p;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let b=Object.assign({},t[n][1].end),v=Object.assign({},t[e][1].start);yf(b,-c),yf(v,c),a={type:c>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},t[n][1].end)},u={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:v},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},u.end)},t[n][1].end=Object.assign({},a.start),t[e][1].start=Object.assign({},u.end),m=[],t[n][1].end.offset-t[n][1].start.offset&&(m=ar(m,[["enter",t[n][1],r],["exit",t[n][1],r]])),m=ar(m,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),m=ar(m,Mn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),m=ar(m,[["exit",o,r],["enter",u,r],["exit",u,r],["exit",i,r]]),t[e][1].end.offset-t[e][1].start.offset?(p=2,m=ar(m,[["enter",t[e][1],r],["exit",t[e][1],r]])):p=0,ht(t,n-1,e-n+3,m),e=n+m.length-p-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function ag(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Gi(n),o;return a;function a(c){return t.enter("attentionSequence"),o=c,u(c)}function u(c){if(c===o)return t.consume(c),u;let m=t.exit("attentionSequence"),p=Gi(c),b=!p||p===2&&i||e.includes(c),v=!i||i===2&&p||e.includes(n);return m._open=Boolean(o===42?b:b&&(i||!v)),m._close=Boolean(o===42?v:v&&(p||!b)),r(c)}}function yf(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Ka={name:"autolink",tokenize:lg};function lg(t,r,e){let n=1;return i;function i(_){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(_){return Wt(_)?(t.consume(_),a):Ga(_)?m(_):e(_)}function a(_){return _===43||_===45||_===46||Tt(_)?u(_):m(_)}function u(_){return _===58?(t.consume(_),c):(_===43||_===45||_===46||Tt(_))&&n++<32?(t.consume(_),u):m(_)}function c(_){return _===62?(t.exit("autolinkProtocol"),w(_)):_===null||_===32||_===60||Ln(_)?e(_):(t.consume(_),c)}function m(_){return _===64?(t.consume(_),n=0,p):Ga(_)?(t.consume(_),m):e(_)}function p(_){return Tt(_)?b(_):e(_)}function b(_){return _===46?(t.consume(_),n=0,p):_===62?(t.exit("autolinkProtocol").type="autolinkEmail",w(_)):v(_)}function v(_){return(_===45||Tt(_))&&n++<63?(t.consume(_),_===45?v:b):e(_)}function w(_){return t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),r}}var cn={tokenize:ug,partial:!0};function ug(t,r,e){return ye(t,n,"linePrefix");function n(i){return i===null||le(i)?r(i):e(i)}}var $s={name:"blockQuote",tokenize:cg,continuation:{tokenize:fg},exit:pg};function cg(t,r,e){let n=this;return i;function i(a){if(a===62){let u=n.containerState;return u.open||(t.enter("blockQuote",{_container:!0}),u.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return e(a)}function o(a){return Ie(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function fg(t,r,e){return ye(t,t.attempt($s,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pg(t){t.exit("blockQuote")}var ws={name:"characterEscape",tokenize:dg};function dg(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return df(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var Wa={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:`
17
- `,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 mg={}.hasOwnProperty;function Ki(t){return mg.call(Wa,t)?Wa[t]:!1}var ks={name:"characterReference",tokenize:hg};function hg(t,r,e){let n=this,i=0,o,a;return u;function u(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),c}function c(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,a=Tt,p(b))}function m(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=pf,p):(t.enter("characterReferenceValue"),o=7,a=ai,p(b))}function p(b){let v;return b===59&&i?(v=t.exit("characterReferenceValue"),a===Tt&&!Ki(n.sliceSerialize(v))?e(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(b)&&i++<o?(t.consume(b),p):e(b)}}var _s={name:"codeFenced",tokenize:gg,concrete:!0};function gg(t,r,e){let n=this,i={tokenize:fe,partial:!0},o={tokenize:de,partial:!0},a=this.events[this.events.length-1],u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,c=0,m;return p;function p(Z){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m=Z,b(Z)}function b(Z){return Z===m?(t.consume(Z),c++,b):(t.exit("codeFencedFenceSequence"),c<3?e(Z):ye(t,v,"whitespace")(Z))}function v(Z){return Z===null||le(Z)?N(Z):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(Z))}function w(Z){return Z===null||Ve(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ye(t,_,"whitespace")(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),w)}function _(Z){return Z===null||le(Z)?N(Z):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),T(Z))}function T(Z){return Z===null||le(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),N(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),T)}function N(Z){return t.exit("codeFencedFence"),n.interrupt?r(Z):D(Z)}function D(Z){return Z===null?ee(Z):le(Z)?t.attempt(o,t.attempt(i,ee,u?ye(t,D,"linePrefix",u+1):D),ee)(Z):(t.enter("codeFlowValue"),Y(Z))}function Y(Z){return Z===null||le(Z)?(t.exit("codeFlowValue"),D(Z)):(t.consume(Z),Y)}function ee(Z){return t.exit("codeFenced"),r(Z)}function de(Z,me,we){let ke=this;return Fe;function Fe(xe){return Z.enter("lineEnding"),Z.consume(xe),Z.exit("lineEnding"),Ce}function Ce(xe){return ke.parser.lazy[ke.now().line]?we(xe):me(xe)}}function fe(Z,me,we){let ke=0;return ye(Z,Fe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Fe(ce){return Z.enter("codeFencedFence"),Z.enter("codeFencedFenceSequence"),Ce(ce)}function Ce(ce){return ce===m?(Z.consume(ce),ke++,Ce):ke<c?we(ce):(Z.exit("codeFencedFenceSequence"),ye(Z,xe,"whitespace")(ce))}function xe(ce){return ce===null||le(ce)?(Z.exit("codeFencedFence"),me(ce)):we(ce)}}}var xo={name:"codeIndented",tokenize:bg},yg={tokenize:vg,partial:!0};function bg(t,r,e){let n=this;return i;function i(m){return t.enter("codeIndented"),ye(t,o,"linePrefix",4+1)(m)}function o(m){let p=n.events[n.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(m):e(m)}function a(m){return m===null?c(m):le(m)?t.attempt(yg,a,c)(m):(t.enter("codeFlowValue"),u(m))}function u(m){return m===null||le(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),u)}function c(m){return t.exit("codeIndented"),r(m)}}function vg(t,r,e){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):le(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ye(t,o,"linePrefix",4+1)(a)}function o(a){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?r(a):le(a)?i(a):e(a)}}var Za={name:"codeText",tokenize:kg,resolve:$g,previous:wg};function $g(t){let r=t.length-4,e=3,n,i;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;)i===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(i=n):(n===r||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),r-=n-i-2,n=i+2),i=void 0);return t}function wg(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kg(t,r,e){let n=this,i=0,o,a;return u;function u(v){return t.enter("codeText"),t.enter("codeTextSequence"),c(v)}function c(v){return v===96?(t.consume(v),i++,c):(t.exit("codeTextSequence"),m(v))}function m(v){return v===null?e(v):v===96?(a=t.enter("codeTextSequence"),o=0,b(v)):v===32?(t.enter("space"),t.consume(v),t.exit("space"),m):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(v))}function p(v){return v===null||v===32||v===96||le(v)?(t.exit("codeTextData"),m(v)):(t.consume(v),p)}function b(v){return v===96?(t.consume(v),o++,b):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(v)):(a.type="codeTextData",p(v))}}function Cs(t){let r={},e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,_g(t,e)),e=r[e],m=!0);else if(n[1]._container){for(o=e,i=void 0;o--&&(a=t[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(n[1].end=Object.assign({},t[i][1].start),u=t.slice(i,e),u.unshift(n),ht(t,i,e-i+1,u))}}return!m}function _g(t,r){let e=t[r][1],n=t[r][2],i=r-1,o=[],a=e._tokenizer||n.parser[e.contentType](e.start),u=a.events,c=[],m={},p,b,v=-1,w=e,_=0,T=0,N=[T];for(;w;){for(;t[++i][1]!==w;);o.push(i),w._tokenizer||(p=n.sliceStream(w),w.next||p.push(null),b&&a.defineSkip(w.start),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),b=w,w=w.next}for(w=e;++v<u.length;)u[v][0]==="exit"&&u[v-1][0]==="enter"&&u[v][1].type===u[v-1][1].type&&u[v][1].start.line!==u[v][1].end.line&&(T=v+1,N.push(T),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(a.events=[],w?(w._tokenizer=void 0,w.previous=void 0):N.pop(),v=N.length;v--;){let D=u.slice(N[v],N[v+1]),Y=o.pop();c.unshift([Y,Y+D.length-1]),ht(t,Y,2,D)}for(v=-1;++v<c.length;)m[_+c[v][0]]=_+c[v][1],_+=c[v][1]-c[v][0]-1;return m}var Ja={tokenize:Eg,resolve:xg},Cg={tokenize:Ag,partial:!0};function xg(t){return Cs(t),t}function Eg(t,r){let e;return n;function n(u){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):le(u)?t.check(Cg,a,o)(u):(t.consume(u),i)}function o(u){return t.exit("chunkContent"),t.exit("content"),r(u)}function a(u){return t.consume(u),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function Ag(t,r,e){let n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ye(t,o,"linePrefix")}function o(a){if(a===null||le(a))return e(a);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?r(a):t.interrupt(n.parser.constructs.flow,e,r)(a)}}function xs(t,r,e,n,i,o,a,u,c){let m=c||Number.POSITIVE_INFINITY,p=0;return b;function b(D){return D===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(D),t.exit(o),v):D===null||D===41||Ln(D)?e(D):(t.enter(n),t.enter(a),t.enter(u),t.enter("chunkString",{contentType:"string"}),T(D))}function v(D){return D===62?(t.enter(o),t.consume(D),t.exit(o),t.exit(i),t.exit(n),r):(t.enter(u),t.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===62?(t.exit("chunkString"),t.exit(u),v(D)):D===null||D===60||le(D)?e(D):(t.consume(D),D===92?_:w)}function _(D){return D===60||D===62||D===92?(t.consume(D),w):w(D)}function T(D){return D===40?++p>m?e(D):(t.consume(D),T):D===41?p--?(t.consume(D),T):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):D===null||Ve(D)?p?e(D):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):Ln(D)?e(D):(t.consume(D),D===92?N:T)}function N(D){return D===40||D===41||D===92?(t.consume(D),T):T(D)}}function Es(t,r,e,n,i,o){let a=this,u=0,c;return m;function m(w){return t.enter(n),t.enter(i),t.consume(w),t.exit(i),t.enter(o),p}function p(w){return w===null||w===91||w===93&&!c||w===94&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs||u>999?e(w):w===93?(t.exit(o),t.enter(i),t.consume(w),t.exit(i),t.exit(n),r):le(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),p):(t.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||w===91||w===93||le(w)||u++>999?(t.exit("chunkString"),p(w)):(t.consume(w),c=c||!Ie(w),w===92?v:b)}function v(w){return w===91||w===92||w===93?(t.consume(w),u++,b):b(w)}}function As(t,r,e,n,i,o){let a;return u;function u(v){return t.enter(n),t.enter(i),t.consume(v),t.exit(i),a=v===40?41:v,c}function c(v){return v===a?(t.enter(i),t.consume(v),t.exit(i),t.exit(n),r):(t.enter(o),m(v))}function m(v){return v===a?(t.exit(o),c(a)):v===null?e(v):le(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),ye(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===a||v===null||le(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?b:p)}function b(v){return v===a||v===92?(t.consume(v),p):p(v)}}function ci(t,r){let e;return n;function n(i){return le(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,n):Ie(i)?ye(t,n,e?"linePrefix":"lineSuffix")(i):r(i)}}function Zt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Qa={name:"definition",tokenize:Pg},Sg={tokenize:Tg,partial:!0};function Pg(t,r,e){let n=this,i;return o;function o(c){return t.enter("definition"),Es.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function a(c){return i=Zt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),ci(t,xs(t,t.attempt(Sg,ye(t,u,"whitespace"),ye(t,u,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function u(c){return c===null||le(c)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(c)):e(c)}}function Tg(t,r,e){return n;function n(a){return Ve(a)?ci(t,i)(a):e(a)}function i(a){return a===34||a===39||a===40?As(t,ye(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):e(a)}function o(a){return a===null||le(a)?r(a):e(a)}}var Xa={name:"hardBreakEscape",tokenize:Ig};function Ig(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),i}function i(o){return le(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var Ya={name:"headingAtx",tokenize:Fg,resolve:Og};function Og(t,r){let e=t.length-2,n=3,i,o;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},o={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},ht(t,n,e-n+1,[["enter",i,r],["enter",o,r],["exit",o,r],["exit",i,r]])),t}function Fg(t,r,e){let n=this,i=0;return o;function o(p){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(t.consume(p),a):p===null||Ve(p)?(t.exit("atxHeadingSequence"),n.interrupt?r(p):u(p)):e(p)}function u(p){return p===35?(t.enter("atxHeadingSequence"),c(p)):p===null||le(p)?(t.exit("atxHeading"),r(p)):Ie(p)?ye(t,u,"whitespace")(p):(t.enter("atxHeadingText"),m(p))}function c(p){return p===35?(t.consume(p),c):(t.exit("atxHeadingSequence"),u(p))}function m(p){return p===null||p===35||Ve(p)?(t.exit("atxHeadingText"),u(p)):(t.consume(p),m)}}var bf=["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"],el=["pre","script","style","textarea"];var tl={name:"htmlFlow",tokenize:Ng,resolveTo:Dg,concrete:!0},qg={tokenize:Rg,partial:!0};function Dg(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 Ng(t,r,e){let n=this,i,o,a,u,c;return m;function m(q){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(q),p}function p(q){return q===33?(t.consume(q),b):q===47?(t.consume(q),_):q===63?(t.consume(q),i=3,n.interrupt?r:et):Wt(q)?(t.consume(q),a=String.fromCharCode(q),o=!0,T):e(q)}function b(q){return q===45?(t.consume(q),i=2,v):q===91?(t.consume(q),i=5,a="CDATA[",u=0,w):Wt(q)?(t.consume(q),i=4,n.interrupt?r:et):e(q)}function v(q){return q===45?(t.consume(q),n.interrupt?r:et):e(q)}function w(q){return q===a.charCodeAt(u++)?(t.consume(q),u===a.length?n.interrupt?r:Ce:w):e(q)}function _(q){return Wt(q)?(t.consume(q),a=String.fromCharCode(q),T):e(q)}function T(q){return q===null||q===47||q===62||Ve(q)?q!==47&&o&&el.includes(a.toLowerCase())?(i=1,n.interrupt?r(q):Ce(q)):bf.includes(a.toLowerCase())?(i=6,q===47?(t.consume(q),N):n.interrupt?r(q):Ce(q)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(q):o?Y(q):D(q)):q===45||Tt(q)?(t.consume(q),a+=String.fromCharCode(q),T):e(q)}function N(q){return q===62?(t.consume(q),n.interrupt?r:Ce):e(q)}function D(q){return Ie(q)?(t.consume(q),D):ke(q)}function Y(q){return q===47?(t.consume(q),ke):q===58||q===95||Wt(q)?(t.consume(q),ee):Ie(q)?(t.consume(q),Y):ke(q)}function ee(q){return q===45||q===46||q===58||q===95||Tt(q)?(t.consume(q),ee):de(q)}function de(q){return q===61?(t.consume(q),fe):Ie(q)?(t.consume(q),de):Y(q)}function fe(q){return q===null||q===60||q===61||q===62||q===96?e(q):q===34||q===39?(t.consume(q),c=q,Z):Ie(q)?(t.consume(q),fe):(c=null,me(q))}function Z(q){return q===null||le(q)?e(q):q===c?(t.consume(q),we):(t.consume(q),Z)}function me(q){return q===null||q===34||q===39||q===60||q===61||q===62||q===96||Ve(q)?de(q):(t.consume(q),me)}function we(q){return q===47||q===62||Ie(q)?Y(q):e(q)}function ke(q){return q===62?(t.consume(q),Fe):e(q)}function Fe(q){return Ie(q)?(t.consume(q),Fe):q===null||le(q)?Ce(q):e(q)}function Ce(q){return q===45&&i===2?(t.consume(q),Ge):q===60&&i===1?(t.consume(q),U):q===62&&i===4?(t.consume(q),He):q===63&&i===3?(t.consume(q),et):q===93&&i===5?(t.consume(q),je):le(q)&&(i===6||i===7)?t.check(qg,He,xe)(q):q===null||le(q)?xe(q):(t.consume(q),Ce)}function xe(q){return t.exit("htmlFlowData"),ce(q)}function ce(q){return q===null?F(q):le(q)?t.attempt({tokenize:$e,partial:!0},ce,F)(q):(t.enter("htmlFlowData"),Ce(q))}function $e(q,zt,kt){return nt;function nt(ct){return q.enter("lineEnding"),q.consume(ct),q.exit("lineEnding"),ut}function ut(ct){return n.parser.lazy[n.now().line]?kt(ct):zt(ct)}}function Ge(q){return q===45?(t.consume(q),et):Ce(q)}function U(q){return q===47?(t.consume(q),a="",st):Ce(q)}function st(q){return q===62&&el.includes(a.toLowerCase())?(t.consume(q),He):Wt(q)&&a.length<8?(t.consume(q),a+=String.fromCharCode(q),st):Ce(q)}function je(q){return q===93?(t.consume(q),et):Ce(q)}function et(q){return q===62?(t.consume(q),He):q===45&&i===2?(t.consume(q),et):Ce(q)}function He(q){return q===null||le(q)?(t.exit("htmlFlowData"),F(q)):(t.consume(q),He)}function F(q){return t.exit("htmlFlow"),r(q)}}function Rg(t,r,e){return n;function n(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(cn,r,e)}}var rl={name:"htmlText",tokenize:jg};function jg(t,r,e){let n=this,i,o,a,u;return c;function c(F){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(F),m}function m(F){return F===33?(t.consume(F),p):F===47?(t.consume(F),me):F===63?(t.consume(F),fe):Wt(F)?(t.consume(F),Fe):e(F)}function p(F){return F===45?(t.consume(F),b):F===91?(t.consume(F),o="CDATA[",a=0,N):Wt(F)?(t.consume(F),de):e(F)}function b(F){return F===45?(t.consume(F),v):e(F)}function v(F){return F===null||F===62?e(F):F===45?(t.consume(F),w):_(F)}function w(F){return F===null||F===62?e(F):_(F)}function _(F){return F===null?e(F):F===45?(t.consume(F),T):le(F)?(u=_,je(F)):(t.consume(F),_)}function T(F){return F===45?(t.consume(F),He):_(F)}function N(F){return F===o.charCodeAt(a++)?(t.consume(F),a===o.length?D:N):e(F)}function D(F){return F===null?e(F):F===93?(t.consume(F),Y):le(F)?(u=D,je(F)):(t.consume(F),D)}function Y(F){return F===93?(t.consume(F),ee):D(F)}function ee(F){return F===62?He(F):F===93?(t.consume(F),ee):D(F)}function de(F){return F===null||F===62?He(F):le(F)?(u=de,je(F)):(t.consume(F),de)}function fe(F){return F===null?e(F):F===63?(t.consume(F),Z):le(F)?(u=fe,je(F)):(t.consume(F),fe)}function Z(F){return F===62?He(F):fe(F)}function me(F){return Wt(F)?(t.consume(F),we):e(F)}function we(F){return F===45||Tt(F)?(t.consume(F),we):ke(F)}function ke(F){return le(F)?(u=ke,je(F)):Ie(F)?(t.consume(F),ke):He(F)}function Fe(F){return F===45||Tt(F)?(t.consume(F),Fe):F===47||F===62||Ve(F)?Ce(F):e(F)}function Ce(F){return F===47?(t.consume(F),He):F===58||F===95||Wt(F)?(t.consume(F),xe):le(F)?(u=Ce,je(F)):Ie(F)?(t.consume(F),Ce):He(F)}function xe(F){return F===45||F===46||F===58||F===95||Tt(F)?(t.consume(F),xe):ce(F)}function ce(F){return F===61?(t.consume(F),$e):le(F)?(u=ce,je(F)):Ie(F)?(t.consume(F),ce):Ce(F)}function $e(F){return F===null||F===60||F===61||F===62||F===96?e(F):F===34||F===39?(t.consume(F),i=F,Ge):le(F)?(u=$e,je(F)):Ie(F)?(t.consume(F),$e):(t.consume(F),i=void 0,st)}function Ge(F){return F===i?(t.consume(F),U):F===null?e(F):le(F)?(u=Ge,je(F)):(t.consume(F),Ge)}function U(F){return F===62||F===47||Ve(F)?Ce(F):e(F)}function st(F){return F===null||F===34||F===39||F===60||F===61||F===96?e(F):F===62||Ve(F)?Ce(F):(t.consume(F),st)}function je(F){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),ye(t,et,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function et(F){return t.enter("htmlTextData"),u(F)}function He(F){return F===62?(t.consume(F),t.exit("htmlTextData"),t.exit("htmlText"),r):e(F)}}var fi={name:"labelEnd",tokenize:Ug,resolveTo:Vg,resolveAll:zg},Lg={tokenize:Hg},Bg={tokenize:Gg},Mg={tokenize:Kg};function zg(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 Vg(t,r){let e=t.length,n=0,i,o,a,u;for(;e--;)if(i=t[e][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=e,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=e);let c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},m={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[a][1].end)},p={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[a-2][1].start)};return u=[["enter",c,r],["enter",m,r]],u=ar(u,t.slice(o+1,o+n+3)),u=ar(u,[["enter",p,r]]),u=ar(u,Mn(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),u=ar(u,[["exit",p,r],t[a-2],t[a-1],["exit",m,r]]),u=ar(u,t.slice(a+1)),u=ar(u,[["exit",c,r]]),ht(t,o,t.length,u),t}function Ug(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return u;function u(p){return o?o._inactive?m(p):(a=n.parser.defined.includes(Zt(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),c):e(p)}function c(p){return p===40?t.attempt(Lg,r,a?r:m)(p):p===91?t.attempt(Bg,r,a?t.attempt(Mg,r,m):m)(p):a?r(p):m(p)}function m(p){return o._balanced=!0,e(p)}}function Hg(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),ci(t,i)}function i(c){return c===41?u(c):xs(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Ve(c)?ci(t,a)(c):u(c)}function a(c){return c===34||c===39||c===40?As(t,ci(t,u),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function u(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function Gg(t,r,e){let n=this;return i;function i(a){return Es.call(n,t,o,e,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Zt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(a):e(a)}}function Kg(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var nl={name:"labelStartImage",tokenize:Wg,resolveAll:fi.resolveAll};function Wg(t,r,e){let n=this;return i;function i(u){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(u),t.exit("labelImageMarker"),o}function o(u){return u===91?(t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelImage"),a):e(u)}function a(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(u):r(u)}}var il={name:"labelStartLink",tokenize:Zg,resolveAll:fi.resolveAll};function Zg(t,r,e){let n=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):r(a)}}var Eo={name:"lineEnding",tokenize:Jg};function Jg(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ye(t,r,"linePrefix")}}var pi={name:"thematicBreak",tokenize:Qg};function Qg(t,r,e){let n=0,i;return o;function o(c){return t.enter("thematicBreak"),i=c,a(c)}function a(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):Ie(c)?ye(t,a,"whitespace")(c):n<3||c!==null&&!le(c)?e(c):(t.exit("thematicBreak"),r(c))}function u(c){return c===i?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),a(c))}}var Jt={name:"list",tokenize:ey,continuation:{tokenize:ty},exit:ny},Xg={tokenize:iy,partial:!0},Yg={tokenize:ry,partial:!0};function ey(t,r,e){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return u;function u(w){let _=n.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!n.containerState.marker||w===n.containerState.marker:ai(w)){if(n.containerState.type||(n.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(pi,e,m)(w):m(w);if(!n.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(w)}return e(w)}function c(w){return ai(w)&&++a<10?(t.consume(w),c):(!n.interrupt||a<2)&&(n.containerState.marker?w===n.containerState.marker:w===41||w===46)?(t.exit("listItemValue"),m(w)):e(w)}function m(w){return t.enter("listItemMarker"),t.consume(w),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||w,t.check(cn,n.interrupt?e:p,t.attempt(Xg,v,b))}function p(w){return n.containerState.initialBlankLine=!0,o++,v(w)}function b(w){return Ie(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),v):e(w)}function v(w){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(w)}}function ty(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(cn,i,o);function i(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ye(t,r,"listItemIndent",n.containerState.size+1)(u)}function o(u){return n.containerState.furtherBlankLines||!Ie(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Yg,r,a)(u))}function a(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,ye(t,t.attempt(Jt,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function ry(t,r,e){let n=this;return ye(t,i,"listItemIndent",n.containerState.size+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?r(o):e(o)}}function ny(t){t.exit(this.containerState.type)}function iy(t,r,e){let n=this;return ye(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=n.events[n.events.length-1];return!Ie(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ss={name:"setextUnderline",tokenize:sy,resolveTo:oy};function oy(t,r){let e=t.length,n,i,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(i=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let a={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=a,t.push(["exit",a,r]),t}function sy(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if(n.events[i][1].type!=="lineEnding"&&n.events[i][1].type!=="linePrefix"&&n.events[i][1].type!=="content"){a=n.events[i][1].type==="paragraph";break}return u;function u(p){return!n.parser.lazy[n.now().line]&&(n.interrupt||a)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=p,c(p)):e(p)}function c(p){return p===o?(t.consume(p),c):(t.exit("setextHeadingLineSequence"),ye(t,m,"lineSuffix")(p))}function m(p){return p===null||le(p)?(t.exit("setextHeadingLine"),r(p)):e(p)}}var vf={tokenize:ay};function ay(t){let r=this,e=t.attempt(cn,n,t.attempt(this.parser.constructs.flowInitial,i,ye(t,t.attempt(this.parser.constructs.flow,i,t.attempt(Ja,i)),"linePrefix")));return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var $f={resolveAll:Cf()},wf=_f("string"),kf=_f("text");function _f(t){return{tokenize:r,resolveAll:Cf(t==="text"?ly:void 0)};function r(e){let n=this,i=this.parser.constructs[t],o=e.attempt(i,a,u);return a;function a(p){return m(p)?o(p):u(p)}function u(p){if(p===null){e.consume(p);return}return e.enter("data"),e.consume(p),c}function c(p){return m(p)?(e.exit("data"),o(p)):(e.consume(p),c)}function m(p){if(p===null)return!0;let b=i[p],v=-1;if(b)for(;++v<b.length;){let w=b[v];if(!w.previous||w.previous.call(n,n.previous))return!0}return!1}}}function Cf(t){return r;function r(e,n){let i=-1,o;for(;++i<=e.length;)o===void 0?e[i]&&e[i][1].type==="data"&&(o=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(e,n):e}}function ly(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],i=r.sliceStream(n),o=i.length,a=-1,u=0,c;for(;o--;){let m=i[o];if(typeof m=="string"){for(a=m.length;m.charCodeAt(a-1)===32;)u++,a--;if(a)break;a=-1}else if(m===-2)c=!0,u++;else if(m!==-1){o++;break}}if(u){let m={type:e===t.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-u,offset:n.end.offset-u,_index:n.start._index+o,_bufferIndex:o?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},m.start),n.start.offset===n.end.offset?Object.assign(n,m):(t.splice(e,0,["enter",m,r],["exit",m,r]),e+=2)}e++}return t}function xf(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],u=[],c=!0,m={consume:de,enter:fe,exit:Z,attempt:ke(me),check:ke(we),interrupt:ke(we,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:T,sliceSerialize:_,now:N,defineSkip:D,write:w},b=r.tokenize.call(p,m),v;return r.resolveAll&&o.push(r),p;function w(ce){return a=ar(a,ce),Y(),a[a.length-1]!==null?[]:(Fe(r,0),p.events=Mn(o,p.events,p),p.events)}function _(ce,$e){return cy(T(ce),$e)}function T(ce){return uy(a,ce)}function N(){return Object.assign({},n)}function D(ce){i[ce.line]=ce.column,xe()}function Y(){let ce;for(;n._index<a.length;){let $e=a[n._index];if(typeof $e=="string")for(ce=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ce&&n._bufferIndex<$e.length;)ee($e.charCodeAt(n._bufferIndex));else ee($e)}}function ee(ce){c=void 0,v=ce,b=b(ce)}function de(ce){le(ce)?(n.line++,n.column=1,n.offset+=ce===-3?2:1,xe()):ce!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=ce,c=!0}function fe(ce,$e){let Ge=$e||{};return Ge.type=ce,Ge.start=N(),p.events.push(["enter",Ge,p]),u.push(Ge),Ge}function Z(ce){let $e=u.pop();return $e.end=N(),p.events.push(["exit",$e,p]),$e}function me(ce,$e){Fe(ce,$e.from)}function we(ce,$e){$e.restore()}function ke(ce,$e){return Ge;function Ge(U,st,je){let et,He,F,q;return Array.isArray(U)?kt(U):"tokenize"in U?kt([U]):zt(U);function zt(ve){return wr;function wr(xt){let Ft=xt!==null&&ve[xt],tr=xt!==null&&ve.null,fr=[...Array.isArray(Ft)?Ft:Ft?[Ft]:[],...Array.isArray(tr)?tr:tr?[tr]:[]];return kt(fr)(xt)}}function kt(ve){return et=ve,He=0,ve.length===0?je:nt(ve[He])}function nt(ve){return wr;function wr(xt){return q=Ce(),F=ve,ve.partial||(p.currentConstruct=ve),ve.name&&p.parser.constructs.disable.null.includes(ve.name)?ct(xt):ve.tokenize.call($e?Object.assign(Object.create(p),$e):p,m,ut,ct)(xt)}}function ut(ve){return c=!0,ce(F,q),st}function ct(ve){return c=!0,q.restore(),++He<et.length?nt(et[He]):je}}}function Fe(ce,$e){ce.resolveAll&&!o.includes(ce)&&o.push(ce),ce.resolve&&ht(p.events,$e,p.events.length-$e,ce.resolve(p.events.slice($e),p)),ce.resolveTo&&(p.events=ce.resolveTo(p.events,p))}function Ce(){let ce=N(),$e=p.previous,Ge=p.currentConstruct,U=p.events.length,st=Array.from(u);return{restore:je,from:U};function je(){n=ce,p.previous=$e,p.currentConstruct=Ge,p.events.length=U,u=st,xe()}}function xe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function uy(t,r){let e=r.start._index,n=r.start._bufferIndex,i=r.end._index,o=r.end._bufferIndex,a;return e===i?a=[t[e].slice(n,o)]:(a=t.slice(e,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(t[i].slice(0,o))),a}function cy(t,r){let e=-1,n=[],i;for(;++e<t.length;){let o=t[e],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
15
+ `),c.text=m.value,o.push(c)),a=!0}else o.push(c)}return e.content=o,e}})(t,{});function Lo(t){return t.reduce((r,e)=>Array.isArray(e)?r.concat(Lo(e)):r.concat(e),[])}var nu=(t,r,e)=>{let n=[];for(let i=0;t.length>i;i++)n.push(e(parseInt(t[i],10),parseInt(r[i],10)));return n.join("")},Aw=(t,r)=>{let e=Math.max(...[...t,...r].map(a=>a.length));return t.map(a=>{let u=a+" ".repeat(e-a.length),c=[],m=/\s+[+|\s]\s/g,p;for(;(p=m.exec(u))!=null;){let b="1".repeat(p.index)+"0".repeat(p[0].length);c.push(b+"1".repeat(e-b.length))}return c.reduce((b,v)=>nu(b,v,(w,x)=>w&x),"1".repeat(e))}).map(a=>nu(a,"",u=>u==0?1:0)).reduce((a,u)=>nu(a,u,(c,m)=>c&m),"1".repeat(e))},iu=(t,r)=>{let n=Lo(t.split(/\n/).filter(o=>o.length>0)).map(o=>{let a=/((1+|0+))/g,u=[],c;for(;(c=a.exec(r))!=null;){if(c[0][0]==1)continue;let m=o.substring(c.index,c.index+c[0].length);u.push(m)}return u}),i=[];return i=n.reduce((o,a)=>{for(let u=0;u<a.length;u++)o[u]=(o[u]===void 0?"":o[u])+" "+a[u];return o},[]),i},id=()=>t=>kr({table:e=>{let n=[],i=w=>{n.push(w.value)},o=[];if(kr({"row:text":i,"head:text":i,":separator":w=>{o.push(w.text)}})(e),!n.length)return e;let a=w=>w.split(/\n/).filter(x=>x.length>0),u=Lo(n.map(a)),c=Lo(o.map(a)),m=[];kr({"row:text":w=>{m.push(w.value)}})(e);let p=Aw(u,c),b=(w,x,...P)=>({...P,name:w,type:"block",content:Array.isArray(x)?x:[x]});return kr({"row:text":w=>{if(m.length==1)return Lo([w.value].map(a)).map(N=>{let D=iu(N,p);return b("table_row",D.map(X=>b("table_cell",{type:"text",value:X})))});let x=iu(w.value,p);return b("table_row",x.map(P=>b("table_cell",{type:"text",value:P})))},"head:text":w=>{let x=iu(w.value,p);return b("table_head",x.map(P=>b("table_cell",{type:"text",value:P})))}})(e)}})(t,{});var Fx={":text":(t,r)=>(e,n,i)=>{e.value?t.write(e.value):i(e.content,n)},"A<>":(t,r)=>(e,n,i)=>{if(!(n.alias&&n.alias.hasOwnProperty(e.content)))t.write(`A<${e.content}>`);else{let o=n.alias[e.content].join(`
16
+ `),a=r(o),u=Gp()(a);u[0].type==="para"?i(u[0].content,n):i(u,n)}},"C<>":Ye("<code>","</code>"),"D<>":(t,r)=>(e,n,i)=>{let o={node:e},a=[e.content[0]];o&&(a=o),t.hasOwnProperty("DEFINITIONS")||(t.DEFINITIONS=[]),t.DEFINITIONS.push({definition:a}),t.writeRaw("<dfn>"),i(e.content,n),t.writeRaw("</dfn>")},"B<>":Ye("<strong>","</strong>"),"I<>":Ye("<em>","</em>"),"R<>":Ye("<var>","</var>"),"K<>":Ye("<kbd>","</kbd>"),"L<>":zn((t,r)=>{let{meta:e}=t;return e===null&&(e=t.content),Ye(`<a href="${e}">`,"</a>")}),"N<>":(t,r)=>(t.addListener("end",()=>{if(!t.hasOwnProperty("FOOTNOTES"))return;let e=t.FOOTNOTES;e.length<1||(t.writeRaw('<div class="footnotes">'),e.map(n=>{t.writeRaw(`<p><sup id="${n.fnId}" class="footnote"><a href="#${n.fnRefId}">[${n.gid}]</a></sup> `),n.make(),t.writeRaw("</p>")}),t.writeRaw("</div>"))}),(e,n,i)=>{if(e.content.length<1)return;t.hasOwnProperty("gid")||(t.gid=1);let o=t.gid++,a=`fnref:${o}`,u=`fn:${o}`;t.writeRaw(`<sup id="${a}" class="footnote"><a href="#${u}">[${o}]</a></sup>`),t.hasOwnProperty("FOOTNOTES")||(t.FOOTNOTES=[]),t.FOOTNOTES.push({gid:o,fnRefId:a,fnId:u,make:()=>{i(e.content,n)}})}),"S<>":(t,r)=>(e,n,i)=>{let u=(e.content||"").replace(/ /g,"&nbsp;").replace(/\n/g,"</br>");t.writeRaw(u)},"T<>":Ye("<samp>","</samp>"),"U<>":Ye("<u>","</u>"),"V<>":Bn,"X<>":(t,r)=>(e,n,i)=>{i(e.content,n);let{entry:o}=e;if(o===null&&e.content.length>0)o=[e.content[0]];else return;t.hasOwnProperty("INDEXTERMS")||(t.INDEXTERMS=[]),t.INDEXTERMS.push({entry:o})},"Z<>":An,pod:Bn,":code":Ye("<pre><code>","</code></pre>"),code:mi(Ye("<pre><code>","</code></pre>")),data:An,":verbatim":(t,r)=>(e,n,i)=>{e.error&&t.emit("errors",e.location),i(e.value)},":blankline":An,":ambient":An,":config":zn((t,r)=>(r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,An)),":alias":zn((t,r)=>(r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,An)),para:mi(Bn),":para":Ye("<p>","</p>"),"head:block":tu({":para":Bn},zn((t,r)=>{let{level:e}=t,n=Bp(t,r);return Ye(`<h${e}${n?` id="${n}"`:""}>`,`</h${e}>`)})),":list":zn((t,r)=>t.list==="ordered"?Ye("<ol>","</ol>"):t.list==="variable"?Ye("<dl>","</dl>"):Ye("<ul>","</ul>")),"item:block":(t,r)=>(e,n,i)=>{e.content instanceof Array||console.error("[pod6] item:block : Error in content of "+JSON.stringify(e));let[o,...a]=e.content;t.writeRaw("<li>"),i(e.content,n),t.writeRaw("</li>")},"comment:block":An,defn:Ye("","</dd>"),"term:para":Ye("<dt>","</dt><dd>"),nested:mi(Bn,1),output:mi(Ye("<pre><samp>","</samp></pre>"),1),input:mi(Ye("<pre><kbd>","</kbd></pre>"),1),"table:block":mi((t,r)=>(e,n,i)=>{let o=en(e,n);t.writeRaw("<table>"),o.exists("caption")&&(t.writeRaw("<caption>"),t.write(o.getFirstValue("caption")),t.writeRaw("</caption>")),i(e.content,n),t.writeRaw("</table>")}),":separator":An,table_row:Ye("<tr>","</tr>"),table_cell:Ye("<td>","</td>"),table_head:tu({table_cell:Ye("<th>","</th>")},Ye("<tr>","</tr>")),":toc":(t,r)=>(e,n,i)=>{t.writeRaw('<div className="toc">');let o=en(e,n);if(o.exists("title")){let a=o.getFirstValue("title");t.writeRaw('<div className="toctitle">'),t.write(a),t.writeRaw("</div>")}i(e.content,n),t.writeRaw("</div>")},":toc-list":zn((t,r)=>Ye(`<ul class="toc-list listlevel${t.level}">`,"</ul>")),":toc-item":zn((t,r)=>Ye('<li class="toc-item">',"</li>")),":image":(t,r)=>(e,n,i)=>{t.writeRaw(`<img src="${e.src}" alt="${e.alt}"/>`)}};var Zx=new sd.default({strict:!0,allowUnionTypes:!0});function Iw(){var t=[];return r.use=e,r.parse=n,r.use(Zp),r.use(Yp),r.use(ed),r.use(nd),r.use(id),r.use(Xp),r.use(rd),r.use(td),r;function r(){}function e(i){if(!["function"].includes(typeof i))throw i;return t.push(i),r}function n(i,o={skipChain:0,podMode:1}){let a=ad.parse(i,{podMode:o.podMode});if(!o.skipChain)for(let u=0;u<t.length;u++){let c=t[u];a=c(o)(a)}return a}}var Up=Iw().parse;var{version:Jx}=od();function ou(t){if(t)throw t}var Td=Hr(ud(),1),hu=Hr(bd(),1);function jo(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 $d(){let t=[],r={run:e,use:n};return r;function e(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);u(null,...i);function u(c,...m){let p=t[++o],b=-1;if(c){a(c);return}for(;++b<i.length;)(m[b]===null||m[b]===void 0)&&(m[b]=i[b]);i=m,p?Fw(p,u)(...m):a(null,...m)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),r}}function Fw(t,r){let e;return n;function n(...a){let u=t.length>a.length,c;u&&a.push(i);try{c=t.apply(this,a)}catch(m){let p=m;if(u&&e)throw p;return i(p)}u||(c instanceof Promise?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...u){e||(e=!0,r(a,...u))}function o(a){i(null,a)}}var Ed=Hr(vd(),1);function yi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?kd(t.position):"start"in t||"end"in t?kd(t):"line"in t||"column"in t?su(t):""}function su(t){return xd(t&&t.line)+":"+xd(t&&t.column)}function kd(t){return su(t&&t.start)+"-"+su(t&&t.end)}function xd(t){return t&&typeof t=="number"?t:1}var sr=class extends Error{constructor(r,e,n){let i=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(n=e,e=void 0),typeof n=="string"){let a=n.indexOf(":");a===-1?i[1]=n:(i[0]=n.slice(0,a),i[1]=n.slice(a+1))}e&&("type"in e||"position"in e?e.position&&(o=e.position):"start"in e||"end"in e?o=e:("line"in e||"column"in e)&&(o.start=e)),this.name=yi(e)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=i[0],this.ruleId=i[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}};sr.prototype.file="";sr.prototype.name="";sr.prototype.reason="";sr.prototype.message="";sr.prototype.stack="";sr.prototype.fatal=null;sr.prototype.column=null;sr.prototype.line=null;sr.prototype.source=null;sr.prototype.ruleId=null;sr.prototype.position=null;var Fr=Hr(require("path"),1);var au=Hr(require("process"),1);var lu=require("url");function Us(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}var uu=["history","path","basename","stem","extname","dirname"],Bo=class{constructor(r){let e;r?typeof r=="string"||(0,Ed.default)(r)?e={value:r}:Us(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=au.default.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<uu.length;){let o=uu[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)uu.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){Us(r)&&(r=(0,lu.fileURLToPath)(r)),fu(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Fr.default.dirname(this.path):void 0}set dirname(r){Cd(this.basename,"dirname"),this.path=Fr.default.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Fr.default.basename(this.path):void 0}set basename(r){fu(r,"basename"),cu(r,"basename"),this.path=Fr.default.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Fr.default.extname(this.path):void 0}set extname(r){if(cu(r,"extname"),Cd(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=Fr.default.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Fr.default.basename(this.path,this.extname):void 0}set stem(r){fu(r,"stem"),cu(r,"stem"),this.path=Fr.default.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new sr(r,e,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(r,e,n){let i=this.message(r,e,n);return i.fatal=null,i}fail(r,e,n){let i=this.message(r,e,n);throw i.fatal=!0,i}};function cu(t,r){if(t&&t.includes(Fr.default.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Fr.default.sep+"`")}function fu(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Cd(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var gu=Id().freeze(),Pd={}.hasOwnProperty;function Id(){let t=$d(),r=[],e={},n,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=u,o.attachers=r,o.use=c,o.parse=m,o.stringify=p,o.run=b,o.runSync=v,o.process=w,o.processSync=x,o;function o(){let P=Id(),N=-1;for(;++N<r.length;)P.use(...r[N]);return P.data((0,hu.default)(!0,{},e)),P}function a(P,N){return typeof P=="string"?arguments.length===2?(mu("data",n),e[P]=N,o):Pd.call(e,P)&&e[P]||null:P?(mu("data",n),e=P,o):e}function u(){if(n)return o;for(;++i<r.length;){let[P,...N]=r[i];if(N[0]===!1)continue;N[0]===!0&&(N[0]=void 0);let D=P.call(o,...N);typeof D=="function"&&t.use(D)}return n=!0,i=Number.POSITIVE_INFINITY,o}function c(P,...N){let D;if(mu("use",n),P!=null)if(typeof P=="function")fe(P,...N);else if(typeof P=="object")Array.isArray(P)?de(P):ee(P);else throw new TypeError("Expected usable value, not `"+P+"`");return D&&(e.settings=Object.assign(e.settings||{},D)),o;function X(Z){if(typeof Z=="function")fe(Z);else if(typeof Z=="object")if(Array.isArray(Z)){let[me,...we]=Z;fe(me,...we)}else ee(Z);else throw new TypeError("Expected usable value, not `"+Z+"`")}function ee(Z){de(Z.plugins),Z.settings&&(D=Object.assign(D||{},Z.settings))}function de(Z){let me=-1;if(Z!=null)if(Array.isArray(Z))for(;++me<Z.length;){let we=Z[me];X(we)}else throw new TypeError("Expected a list of plugins, not `"+Z+"`")}function fe(Z,me){let we=-1,ve;for(;++we<r.length;)if(r[we][0]===Z){ve=r[we];break}ve?(jo(ve[1])&&jo(me)&&(me=(0,hu.default)(!0,ve[1],me)),ve[1]=me):r.push([...arguments])}}function m(P){o.freeze();let N=zo(P),D=o.Parser;return pu("parse",D),_d(D,"parse")?new D(String(N),N).parse():D(String(N),N)}function p(P,N){o.freeze();let D=zo(N),X=o.Compiler;return du("stringify",X),Ad(P),_d(X,"compile")?new X(P,D).compile():X(P,D)}function b(P,N,D){if(Ad(P),o.freeze(),!D&&typeof N=="function"&&(D=N,N=void 0),!D)return new Promise(X);X(null,D);function X(ee,de){t.run(P,zo(N),fe);function fe(Z,me,we){me=me||P,Z?de(Z):ee?ee(me):D(null,me,we)}}}function v(P,N){let D,X;return o.run(P,N,ee),Sd("runSync","run",X),D;function ee(de,fe){ou(de),D=fe,X=!0}}function w(P,N){if(o.freeze(),pu("process",o.Parser),du("process",o.Compiler),!N)return new Promise(D);D(null,N);function D(X,ee){let de=zo(P);o.run(o.parse(de),de,(Z,me,we)=>{if(Z||!me||!we)fe(Z);else{let ve=o.stringify(me,we);ve==null||(Dw(ve)?we.value=ve:we.result=ve),fe(Z,we)}});function fe(Z,me){Z||!me?ee(Z):X?X(me):N(null,me)}}}function x(P){let N;o.freeze(),pu("processSync",o.Parser),du("processSync",o.Compiler);let D=zo(P);return o.process(D,X),Sd("processSync","process",N),D;function X(ee){N=!0,ou(ee)}}}function _d(t,r){return typeof t=="function"&&t.prototype&&(Ow(t.prototype)||r in t.prototype)}function Ow(t){let r;for(r in t)if(Pd.call(t,r))return!0;return!1}function pu(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function du(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 Ad(t){if(!jo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Sd(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function zo(t){return qw(t)?t:new Bo(t)}function qw(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Dw(t){return typeof t=="string"||(0,Td.default)(t)}function Od(t,r){var{includeImageAlt:e=!0}=r||{};return qd(t,e)}function qd(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&Fd(t.children,r)||Array.isArray(t)&&Fd(t,r))||""}function Fd(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=qd(t[n],r);return e.join("")}function gt(t,r,e,n){let i=t.length,o=0,a;if(r<0?r=-r>i?0:i+r:r=r>i?i:r,e=e>0?e:0,n.length<1e4)a=Array.from(n),a.unshift(r,e),[].splice.apply(t,a);else for(e&&[].splice.apply(t,[r,e]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(r,0),[].splice.apply(t,a),o+=1e4,r+=1e4}function ar(t,r){return t.length>0?(gt(t,t.length,0,r),t):r}var Dd={}.hasOwnProperty;function Hs(t){let r={},e=-1;for(;++e<t.length;)Nw(r,t[e]);return r}function Nw(t,r){let e;for(e in r){let i=(Dd.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){Dd.call(i,a)||(i[a]=[]);let u=o[a];Rw(i[a],Array.isArray(u)?u:u?[u]:[])}}}function Rw(t,r){let e=-1,n=[];for(;++e<r.length;)(r[e].add==="after"?t:n).push(r[e]);gt(t,0,0,n)}var Nd=/[!-/:-@[-`{-~\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 Jt=Vn(/[A-Za-z]/),bi=Vn(/\d/),Rd=Vn(/[\dA-Fa-f]/),Pt=Vn(/[\dA-Za-z]/),Ld=Vn(/[!-/:-@[-`{-~]/),yu=Vn(/[#-'*+\--9=?A-Z^-~]/);function Mn(t){return t!==null&&(t<32||t===127)}function Ve(t){return t!==null&&(t<0||t===32)}function ae(t){return t!==null&&t<-2}function Ie(t){return t===-2||t===-1||t===32}var $i=Vn(/\s/),wi=Vn(Nd);function Vn(t){return r;function r(e){return e!==null&&t.test(String.fromCharCode(e))}}function ye(t,r,e,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Ie(c)?(t.enter(e),u(c)):r(c)}function u(c){return Ie(c)&&o++<i?(t.consume(c),u):(t.exit(e),r(c))}}var jd={tokenize:Lw};function Lw(t){let r=t.attempt(this.parser.constructs.contentInitial,n,i),e;return r;function n(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ye(t,r,"linePrefix")}function i(u){return t.enter("paragraph"),o(u)}function o(u){let c=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=c),e=c,a(u)}function a(u){if(u===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(u);return}return ae(u)?(t.consume(u),t.exit("chunkText"),o):(t.consume(u),a)}}var zd={tokenize:jw},Bd={tokenize:Bw};function jw(t){let r=this,e=[],n=0,i,o,a;return u;function u(ee){if(n<e.length){let de=e[n];return r.containerState=de[1],t.attempt(de[0].continuation,c,m)(ee)}return m(ee)}function c(ee){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&X();let de=r.events.length,fe=de,Z;for(;fe--;)if(r.events[fe][0]==="exit"&&r.events[fe][1].type==="chunkFlow"){Z=r.events[fe][1].end;break}D(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},Z),me++;return gt(r.events,fe+1,0,r.events.slice(de)),r.events.length=me,m(ee)}return u(ee)}function m(ee){if(n===e.length){if(!i)return v(ee);if(i.currentConstruct&&i.currentConstruct.concrete)return x(ee);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(Bd,p,b)(ee)}function p(ee){return i&&X(),D(n),v(ee)}function b(ee){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,x(ee)}function v(ee){return r.containerState={},t.attempt(Bd,w,x)(ee)}function w(ee){return n++,e.push([r.currentConstruct,r.containerState]),v(ee)}function x(ee){if(ee===null){i&&X(),D(0),t.consume(ee);return}return i=i||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),P(ee)}function P(ee){if(ee===null){N(t.exit("chunkFlow"),!0),D(0),t.consume(ee);return}return ae(ee)?(t.consume(ee),N(t.exit("chunkFlow")),n=0,r.interrupt=void 0,u):(t.consume(ee),P)}function N(ee,de){let fe=r.sliceStream(ee);if(de&&fe.push(null),ee.previous=o,o&&(o.next=ee),o=ee,i.defineSkip(ee.start),i.write(fe),r.parser.lazy[ee.start.line]){let Z=i.events.length;for(;Z--;)if(i.events[Z][1].start.offset<a&&(!i.events[Z][1].end||i.events[Z][1].end.offset>a))return;let me=r.events.length,we=me,ve,Fe;for(;we--;)if(r.events[we][0]==="exit"&&r.events[we][1].type==="chunkFlow"){if(ve){Fe=r.events[we][1].end;break}ve=!0}for(D(n),Z=me;Z<r.events.length;)r.events[Z][1].end=Object.assign({},Fe),Z++;gt(r.events,we+1,0,r.events.slice(me)),r.events.length=Z}}function D(ee){let de=e.length;for(;de-- >ee;){let fe=e[de];r.containerState=fe[1],fe[0].exit.call(r,t)}e.length=ee}function X(){i.write([null]),o=void 0,i=void 0,r.containerState._closeFlow=void 0}}function Bw(t,r,e){return ye(t,t.attempt(this.parser.constructs.document,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yi(t){if(t===null||Ve(t)||$i(t))return 1;if(wi(t))return 2}function Un(t,r,e){let n=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!n.includes(o)&&(r=o(r,e),n.push(o))}return r}var Mo={name:"attention",tokenize:Mw,resolveAll:zw};function zw(t,r){let e=-1,n,i,o,a,u,c,m,p;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(n=e;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&r.sliceSerialize(t[n][1]).charCodeAt(0)===r.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[n][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let b=Object.assign({},t[n][1].end),v=Object.assign({},t[e][1].start);Md(b,-c),Md(v,c),a={type:c>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},t[n][1].end)},u={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:v},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},u.end)},t[n][1].end=Object.assign({},a.start),t[e][1].start=Object.assign({},u.end),m=[],t[n][1].end.offset-t[n][1].start.offset&&(m=ar(m,[["enter",t[n][1],r],["exit",t[n][1],r]])),m=ar(m,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),m=ar(m,Un(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),m=ar(m,[["exit",o,r],["enter",u,r],["exit",u,r],["exit",i,r]]),t[e][1].end.offset-t[e][1].start.offset?(p=2,m=ar(m,[["enter",t[e][1],r],["exit",t[e][1],r]])):p=0,gt(t,n-1,e-n+3,m),e=n+m.length-p-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function Mw(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Yi(n),o;return a;function a(c){return t.enter("attentionSequence"),o=c,u(c)}function u(c){if(c===o)return t.consume(c),u;let m=t.exit("attentionSequence"),p=Yi(c),b=!p||p===2&&i||e.includes(c),v=!i||i===2&&p||e.includes(n);return m._open=Boolean(o===42?b:b&&(i||!v)),m._close=Boolean(o===42?v:v&&(p||!b)),r(c)}}function Md(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var bu={name:"autolink",tokenize:Vw};function Vw(t,r,e){let n=1;return i;function i(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(x){return Jt(x)?(t.consume(x),a):yu(x)?m(x):e(x)}function a(x){return x===43||x===45||x===46||Pt(x)?u(x):m(x)}function u(x){return x===58?(t.consume(x),c):(x===43||x===45||x===46||Pt(x))&&n++<32?(t.consume(x),u):m(x)}function c(x){return x===62?(t.exit("autolinkProtocol"),w(x)):x===null||x===32||x===60||Mn(x)?e(x):(t.consume(x),c)}function m(x){return x===64?(t.consume(x),n=0,p):yu(x)?(t.consume(x),m):e(x)}function p(x){return Pt(x)?b(x):e(x)}function b(x){return x===46?(t.consume(x),n=0,p):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",w(x)):v(x)}function v(x){return(x===45||Pt(x))&&n++<63?(t.consume(x),x===45?v:b):e(x)}function w(x){return t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),r}}var pn={tokenize:Uw,partial:!0};function Uw(t,r,e){return ye(t,n,"linePrefix");function n(i){return i===null||ae(i)?r(i):e(i)}}var Gs={name:"blockQuote",tokenize:Hw,continuation:{tokenize:Gw},exit:Kw};function Hw(t,r,e){let n=this;return i;function i(a){if(a===62){let u=n.containerState;return u.open||(t.enter("blockQuote",{_container:!0}),u.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return e(a)}function o(a){return Ie(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Gw(t,r,e){return ye(t,t.attempt(Gs,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kw(t){t.exit("blockQuote")}var Ks={name:"characterEscape",tokenize:Ww};function Ww(t,r,e){return n;function n(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return Ld(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var $u={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:`
17
+ `,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 Zw={}.hasOwnProperty;function eo(t){return Zw.call($u,t)?$u[t]:!1}var Ws={name:"characterReference",tokenize:Jw};function Jw(t,r,e){let n=this,i=0,o,a;return u;function u(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),c}function c(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,a=Pt,p(b))}function m(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=Rd,p):(t.enter("characterReferenceValue"),o=7,a=bi,p(b))}function p(b){let v;return b===59&&i?(v=t.exit("characterReferenceValue"),a===Pt&&!eo(n.sliceSerialize(v))?e(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(b)&&i++<o?(t.consume(b),p):e(b)}}var Zs={name:"codeFenced",tokenize:Qw,concrete:!0};function Qw(t,r,e){let n=this,i={tokenize:fe,partial:!0},o={tokenize:de,partial:!0},a=this.events[this.events.length-1],u=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,c=0,m;return p;function p(Z){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m=Z,b(Z)}function b(Z){return Z===m?(t.consume(Z),c++,b):(t.exit("codeFencedFenceSequence"),c<3?e(Z):ye(t,v,"whitespace")(Z))}function v(Z){return Z===null||ae(Z)?N(Z):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(Z))}function w(Z){return Z===null||Ve(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ye(t,x,"whitespace")(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),w)}function x(Z){return Z===null||ae(Z)?N(Z):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),P(Z))}function P(Z){return Z===null||ae(Z)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),N(Z)):Z===96&&Z===m?e(Z):(t.consume(Z),P)}function N(Z){return t.exit("codeFencedFence"),n.interrupt?r(Z):D(Z)}function D(Z){return Z===null?ee(Z):ae(Z)?t.attempt(o,t.attempt(i,ee,u?ye(t,D,"linePrefix",u+1):D),ee)(Z):(t.enter("codeFlowValue"),X(Z))}function X(Z){return Z===null||ae(Z)?(t.exit("codeFlowValue"),D(Z)):(t.consume(Z),X)}function ee(Z){return t.exit("codeFenced"),r(Z)}function de(Z,me,we){let ve=this;return Fe;function Fe(Ce){return Z.enter("lineEnding"),Z.consume(Ce),Z.exit("lineEnding"),xe}function xe(Ce){return ve.parser.lazy[ve.now().line]?we(Ce):me(Ce)}}function fe(Z,me,we){let ve=0;return ye(Z,Fe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Fe(ue){return Z.enter("codeFencedFence"),Z.enter("codeFencedFenceSequence"),xe(ue)}function xe(ue){return ue===m?(Z.consume(ue),ve++,xe):ve<c?we(ue):(Z.exit("codeFencedFenceSequence"),ye(Z,Ce,"whitespace")(ue))}function Ce(ue){return ue===null||ae(ue)?(Z.exit("codeFencedFence"),me(ue)):we(ue)}}}var Vo={name:"codeIndented",tokenize:Yw},Xw={tokenize:ev,partial:!0};function Yw(t,r,e){let n=this;return i;function i(m){return t.enter("codeIndented"),ye(t,o,"linePrefix",4+1)(m)}function o(m){let p=n.events[n.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(m):e(m)}function a(m){return m===null?c(m):ae(m)?t.attempt(Xw,a,c)(m):(t.enter("codeFlowValue"),u(m))}function u(m){return m===null||ae(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),u)}function c(m){return t.exit("codeIndented"),r(m)}}function ev(t,r,e){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?e(a):ae(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):ye(t,o,"linePrefix",4+1)(a)}function o(a){let u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?r(a):ae(a)?i(a):e(a)}}var wu={name:"codeText",tokenize:nv,resolve:tv,previous:rv};function tv(t){let r=t.length-4,e=3,n,i;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;)i===void 0?n!==r&&t[n][1].type!=="lineEnding"&&(i=n):(n===r||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),r-=n-i-2,n=i+2),i=void 0);return t}function rv(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nv(t,r,e){let n=this,i=0,o,a;return u;function u(v){return t.enter("codeText"),t.enter("codeTextSequence"),c(v)}function c(v){return v===96?(t.consume(v),i++,c):(t.exit("codeTextSequence"),m(v))}function m(v){return v===null?e(v):v===96?(a=t.enter("codeTextSequence"),o=0,b(v)):v===32?(t.enter("space"),t.consume(v),t.exit("space"),m):ae(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(v))}function p(v){return v===null||v===32||v===96||ae(v)?(t.exit("codeTextData"),m(v)):(t.consume(v),p)}function b(v){return v===96?(t.consume(v),o++,b):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(v)):(a.type="codeTextData",p(v))}}function Js(t){let r={},e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){for(;e in r;)e=r[e];if(n=t[e],e&&n[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(c=n[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,iv(t,e)),e=r[e],m=!0);else if(n[1]._container){for(o=e,i=void 0;o--&&(a=t[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(n[1].end=Object.assign({},t[i][1].start),u=t.slice(i,e),u.unshift(n),gt(t,i,e-i+1,u))}}return!m}function iv(t,r){let e=t[r][1],n=t[r][2],i=r-1,o=[],a=e._tokenizer||n.parser[e.contentType](e.start),u=a.events,c=[],m={},p,b,v=-1,w=e,x=0,P=0,N=[P];for(;w;){for(;t[++i][1]!==w;);o.push(i),w._tokenizer||(p=n.sliceStream(w),w.next||p.push(null),b&&a.defineSkip(w.start),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),b=w,w=w.next}for(w=e;++v<u.length;)u[v][0]==="exit"&&u[v-1][0]==="enter"&&u[v][1].type===u[v-1][1].type&&u[v][1].start.line!==u[v][1].end.line&&(P=v+1,N.push(P),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(a.events=[],w?(w._tokenizer=void 0,w.previous=void 0):N.pop(),v=N.length;v--;){let D=u.slice(N[v],N[v+1]),X=o.pop();c.unshift([X,X+D.length-1]),gt(t,X,2,D)}for(v=-1;++v<c.length;)m[x+c[v][0]]=x+c[v][1],x+=c[v][1]-c[v][0]-1;return m}var vu={tokenize:av,resolve:sv},ov={tokenize:lv,partial:!0};function sv(t){return Js(t),t}function av(t,r){let e;return n;function n(u){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):ae(u)?t.check(ov,a,o)(u):(t.consume(u),i)}function o(u){return t.exit("chunkContent"),t.exit("content"),r(u)}function a(u){return t.consume(u),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function lv(t,r,e){let n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ye(t,o,"linePrefix")}function o(a){if(a===null||ae(a))return e(a);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?r(a):t.interrupt(n.parser.constructs.flow,e,r)(a)}}function Qs(t,r,e,n,i,o,a,u,c){let m=c||Number.POSITIVE_INFINITY,p=0;return b;function b(D){return D===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(D),t.exit(o),v):D===null||D===41||Mn(D)?e(D):(t.enter(n),t.enter(a),t.enter(u),t.enter("chunkString",{contentType:"string"}),P(D))}function v(D){return D===62?(t.enter(o),t.consume(D),t.exit(o),t.exit(i),t.exit(n),r):(t.enter(u),t.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===62?(t.exit("chunkString"),t.exit(u),v(D)):D===null||D===60||ae(D)?e(D):(t.consume(D),D===92?x:w)}function x(D){return D===60||D===62||D===92?(t.consume(D),w):w(D)}function P(D){return D===40?++p>m?e(D):(t.consume(D),P):D===41?p--?(t.consume(D),P):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):D===null||Ve(D)?p?e(D):(t.exit("chunkString"),t.exit(u),t.exit(a),t.exit(n),r(D)):Mn(D)?e(D):(t.consume(D),D===92?N:P)}function N(D){return D===40||D===41||D===92?(t.consume(D),P):P(D)}}function Xs(t,r,e,n,i,o){let a=this,u=0,c;return m;function m(w){return t.enter(n),t.enter(i),t.consume(w),t.exit(i),t.enter(o),p}function p(w){return w===null||w===91||w===93&&!c||w===94&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs||u>999?e(w):w===93?(t.exit(o),t.enter(i),t.consume(w),t.exit(i),t.exit(n),r):ae(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),p):(t.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||w===91||w===93||ae(w)||u++>999?(t.exit("chunkString"),p(w)):(t.consume(w),c=c||!Ie(w),w===92?v:b)}function v(w){return w===91||w===92||w===93?(t.consume(w),u++,b):b(w)}}function Ys(t,r,e,n,i,o){let a;return u;function u(v){return t.enter(n),t.enter(i),t.consume(v),t.exit(i),a=v===40?41:v,c}function c(v){return v===a?(t.enter(i),t.consume(v),t.exit(i),t.exit(n),r):(t.enter(o),m(v))}function m(v){return v===a?(t.exit(o),c(a)):v===null?e(v):ae(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),ye(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===a||v===null||ae(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?b:p)}function b(v){return v===a||v===92?(t.consume(v),p):p(v)}}function vi(t,r){let e;return n;function n(i){return ae(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,n):Ie(i)?ye(t,n,e?"linePrefix":"lineSuffix")(i):r(i)}}function Qt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ku={name:"definition",tokenize:cv},uv={tokenize:fv,partial:!0};function cv(t,r,e){let n=this,i;return o;function o(c){return t.enter("definition"),Xs.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function a(c){return i=Qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),c===58?(t.enter("definitionMarker"),t.consume(c),t.exit("definitionMarker"),vi(t,Qs(t,t.attempt(uv,ye(t,u,"whitespace"),ye(t,u,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(c)}function u(c){return c===null||ae(c)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(c)):e(c)}}function fv(t,r,e){return n;function n(a){return Ve(a)?vi(t,i)(a):e(a)}function i(a){return a===34||a===39||a===40?Ys(t,ye(t,o,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):e(a)}function o(a){return a===null||ae(a)?r(a):e(a)}}var xu={name:"hardBreakEscape",tokenize:pv};function pv(t,r,e){return n;function n(o){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(o),i}function i(o){return ae(o)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),r(o)):e(o)}}var Cu={name:"headingAtx",tokenize:mv,resolve:dv};function dv(t,r){let e=t.length-2,n=3,i,o;return t[n][1].type==="whitespace"&&(n+=2),e-2>n&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(n===e-1||e-4>n&&t[e-2][1].type==="whitespace")&&(e-=n+1===e?2:4),e>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[e][1].end},o={type:"chunkText",start:t[n][1].start,end:t[e][1].end,contentType:"text"},gt(t,n,e-n+1,[["enter",i,r],["enter",o,r],["exit",o,r],["exit",i,r]])),t}function mv(t,r,e){let n=this,i=0;return o;function o(p){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(t.consume(p),a):p===null||Ve(p)?(t.exit("atxHeadingSequence"),n.interrupt?r(p):u(p)):e(p)}function u(p){return p===35?(t.enter("atxHeadingSequence"),c(p)):p===null||ae(p)?(t.exit("atxHeading"),r(p)):Ie(p)?ye(t,u,"whitespace")(p):(t.enter("atxHeadingText"),m(p))}function c(p){return p===35?(t.consume(p),c):(t.exit("atxHeadingSequence"),u(p))}function m(p){return p===null||p===35||Ve(p)?(t.exit("atxHeadingText"),u(p)):(t.consume(p),m)}}var Vd=["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"],Eu=["pre","script","style","textarea"];var _u={name:"htmlFlow",tokenize:yv,resolveTo:gv,concrete:!0},hv={tokenize:bv,partial:!0};function gv(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 yv(t,r,e){let n=this,i,o,a,u,c;return m;function m(q){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(q),p}function p(q){return q===33?(t.consume(q),b):q===47?(t.consume(q),x):q===63?(t.consume(q),i=3,n.interrupt?r:et):Jt(q)?(t.consume(q),a=String.fromCharCode(q),o=!0,P):e(q)}function b(q){return q===45?(t.consume(q),i=2,v):q===91?(t.consume(q),i=5,a="CDATA[",u=0,w):Jt(q)?(t.consume(q),i=4,n.interrupt?r:et):e(q)}function v(q){return q===45?(t.consume(q),n.interrupt?r:et):e(q)}function w(q){return q===a.charCodeAt(u++)?(t.consume(q),u===a.length?n.interrupt?r:xe:w):e(q)}function x(q){return Jt(q)?(t.consume(q),a=String.fromCharCode(q),P):e(q)}function P(q){return q===null||q===47||q===62||Ve(q)?q!==47&&o&&Eu.includes(a.toLowerCase())?(i=1,n.interrupt?r(q):xe(q)):Vd.includes(a.toLowerCase())?(i=6,q===47?(t.consume(q),N):n.interrupt?r(q):xe(q)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(q):o?X(q):D(q)):q===45||Pt(q)?(t.consume(q),a+=String.fromCharCode(q),P):e(q)}function N(q){return q===62?(t.consume(q),n.interrupt?r:xe):e(q)}function D(q){return Ie(q)?(t.consume(q),D):ve(q)}function X(q){return q===47?(t.consume(q),ve):q===58||q===95||Jt(q)?(t.consume(q),ee):Ie(q)?(t.consume(q),X):ve(q)}function ee(q){return q===45||q===46||q===58||q===95||Pt(q)?(t.consume(q),ee):de(q)}function de(q){return q===61?(t.consume(q),fe):Ie(q)?(t.consume(q),de):X(q)}function fe(q){return q===null||q===60||q===61||q===62||q===96?e(q):q===34||q===39?(t.consume(q),c=q,Z):Ie(q)?(t.consume(q),fe):(c=null,me(q))}function Z(q){return q===null||ae(q)?e(q):q===c?(t.consume(q),we):(t.consume(q),Z)}function me(q){return q===null||q===34||q===39||q===60||q===61||q===62||q===96||Ve(q)?de(q):(t.consume(q),me)}function we(q){return q===47||q===62||Ie(q)?X(q):e(q)}function ve(q){return q===62?(t.consume(q),Fe):e(q)}function Fe(q){return Ie(q)?(t.consume(q),Fe):q===null||ae(q)?xe(q):e(q)}function xe(q){return q===45&&i===2?(t.consume(q),He):q===60&&i===1?(t.consume(q),U):q===62&&i===4?(t.consume(q),Ue):q===63&&i===3?(t.consume(q),et):q===93&&i===5?(t.consume(q),Re):ae(q)&&(i===6||i===7)?t.check(hv,Ue,Ce)(q):q===null||ae(q)?Ce(q):(t.consume(q),xe)}function Ce(q){return t.exit("htmlFlowData"),ue(q)}function ue(q){return q===null?O(q):ae(q)?t.attempt({tokenize:$e,partial:!0},ue,O)(q):(t.enter("htmlFlowData"),xe(q))}function $e(q,Bt,vt){return nt;function nt(ct){return q.enter("lineEnding"),q.consume(ct),q.exit("lineEnding"),ut}function ut(ct){return n.parser.lazy[n.now().line]?vt(ct):Bt(ct)}}function He(q){return q===45?(t.consume(q),et):xe(q)}function U(q){return q===47?(t.consume(q),a="",st):xe(q)}function st(q){return q===62&&Eu.includes(a.toLowerCase())?(t.consume(q),Ue):Jt(q)&&a.length<8?(t.consume(q),a+=String.fromCharCode(q),st):xe(q)}function Re(q){return q===93?(t.consume(q),et):xe(q)}function et(q){return q===62?(t.consume(q),Ue):q===45&&i===2?(t.consume(q),et):xe(q)}function Ue(q){return q===null||ae(q)?(t.exit("htmlFlowData"),O(q)):(t.consume(q),Ue)}function O(q){return t.exit("htmlFlow"),r(q)}}function bv(t,r,e){return n;function n(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(pn,r,e)}}var Au={name:"htmlText",tokenize:$v};function $v(t,r,e){let n=this,i,o,a,u;return c;function c(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),m}function m(O){return O===33?(t.consume(O),p):O===47?(t.consume(O),me):O===63?(t.consume(O),fe):Jt(O)?(t.consume(O),Fe):e(O)}function p(O){return O===45?(t.consume(O),b):O===91?(t.consume(O),o="CDATA[",a=0,N):Jt(O)?(t.consume(O),de):e(O)}function b(O){return O===45?(t.consume(O),v):e(O)}function v(O){return O===null||O===62?e(O):O===45?(t.consume(O),w):x(O)}function w(O){return O===null||O===62?e(O):x(O)}function x(O){return O===null?e(O):O===45?(t.consume(O),P):ae(O)?(u=x,Re(O)):(t.consume(O),x)}function P(O){return O===45?(t.consume(O),Ue):x(O)}function N(O){return O===o.charCodeAt(a++)?(t.consume(O),a===o.length?D:N):e(O)}function D(O){return O===null?e(O):O===93?(t.consume(O),X):ae(O)?(u=D,Re(O)):(t.consume(O),D)}function X(O){return O===93?(t.consume(O),ee):D(O)}function ee(O){return O===62?Ue(O):O===93?(t.consume(O),ee):D(O)}function de(O){return O===null||O===62?Ue(O):ae(O)?(u=de,Re(O)):(t.consume(O),de)}function fe(O){return O===null?e(O):O===63?(t.consume(O),Z):ae(O)?(u=fe,Re(O)):(t.consume(O),fe)}function Z(O){return O===62?Ue(O):fe(O)}function me(O){return Jt(O)?(t.consume(O),we):e(O)}function we(O){return O===45||Pt(O)?(t.consume(O),we):ve(O)}function ve(O){return ae(O)?(u=ve,Re(O)):Ie(O)?(t.consume(O),ve):Ue(O)}function Fe(O){return O===45||Pt(O)?(t.consume(O),Fe):O===47||O===62||Ve(O)?xe(O):e(O)}function xe(O){return O===47?(t.consume(O),Ue):O===58||O===95||Jt(O)?(t.consume(O),Ce):ae(O)?(u=xe,Re(O)):Ie(O)?(t.consume(O),xe):Ue(O)}function Ce(O){return O===45||O===46||O===58||O===95||Pt(O)?(t.consume(O),Ce):ue(O)}function ue(O){return O===61?(t.consume(O),$e):ae(O)?(u=ue,Re(O)):Ie(O)?(t.consume(O),ue):xe(O)}function $e(O){return O===null||O===60||O===61||O===62||O===96?e(O):O===34||O===39?(t.consume(O),i=O,He):ae(O)?(u=$e,Re(O)):Ie(O)?(t.consume(O),$e):(t.consume(O),i=void 0,st)}function He(O){return O===i?(t.consume(O),U):O===null?e(O):ae(O)?(u=He,Re(O)):(t.consume(O),He)}function U(O){return O===62||O===47||Ve(O)?xe(O):e(O)}function st(O){return O===null||O===34||O===39||O===60||O===61||O===96?e(O):O===62||Ve(O)?xe(O):(t.consume(O),st)}function Re(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),ye(t,et,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function et(O){return t.enter("htmlTextData"),u(O)}function Ue(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),r):e(O)}}var ki={name:"labelEnd",tokenize:Ev,resolveTo:Cv,resolveAll:xv},wv={tokenize:_v},vv={tokenize:Av},kv={tokenize:Sv};function xv(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 Cv(t,r){let e=t.length,n=0,i,o,a,u;for(;e--;)if(i=t[e][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=e,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=e);let c={type:t[o][1].type==="labelLink"?"link":"image",start:Object.assign({},t[o][1].start),end:Object.assign({},t[t.length-1][1].end)},m={type:"label",start:Object.assign({},t[o][1].start),end:Object.assign({},t[a][1].end)},p={type:"labelText",start:Object.assign({},t[o+n+2][1].end),end:Object.assign({},t[a-2][1].start)};return u=[["enter",c,r],["enter",m,r]],u=ar(u,t.slice(o+1,o+n+3)),u=ar(u,[["enter",p,r]]),u=ar(u,Un(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),u=ar(u,[["exit",p,r],t[a-2],t[a-1],["exit",m,r]]),u=ar(u,t.slice(a+1)),u=ar(u,[["exit",c,r]]),gt(t,o,t.length,u),t}function Ev(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return u;function u(p){return o?o._inactive?m(p):(a=n.parser.defined.includes(Qt(n.sliceSerialize({start:o.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),c):e(p)}function c(p){return p===40?t.attempt(wv,r,a?r:m)(p):p===91?t.attempt(vv,r,a?t.attempt(kv,r,m):m)(p):a?r(p):m(p)}function m(p){return o._balanced=!0,e(p)}}function _v(t,r,e){return n;function n(c){return t.enter("resource"),t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),vi(t,i)}function i(c){return c===41?u(c):Qs(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Ve(c)?vi(t,a)(c):u(c)}function a(c){return c===34||c===39||c===40?Ys(t,vi(t,u),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function u(c){return c===41?(t.enter("resourceMarker"),t.consume(c),t.exit("resourceMarker"),t.exit("resource"),r):e(c)}}function Av(t,r,e){let n=this;return i;function i(a){return Xs.call(n,t,o,e,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Qt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?r(a):e(a)}}function Sv(t,r,e){return n;function n(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),r):e(o)}}var Su={name:"labelStartImage",tokenize:Tv,resolveAll:ki.resolveAll};function Tv(t,r,e){let n=this;return i;function i(u){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(u),t.exit("labelImageMarker"),o}function o(u){return u===91?(t.enter("labelMarker"),t.consume(u),t.exit("labelMarker"),t.exit("labelImage"),a):e(u)}function a(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(u):r(u)}}var Tu={name:"labelStartLink",tokenize:Pv,resolveAll:ki.resolveAll};function Pv(t,r,e){let n=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?e(a):r(a)}}var Uo={name:"lineEnding",tokenize:Iv};function Iv(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ye(t,r,"linePrefix")}}var xi={name:"thematicBreak",tokenize:Fv};function Fv(t,r,e){let n=0,i;return o;function o(c){return t.enter("thematicBreak"),i=c,a(c)}function a(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):Ie(c)?ye(t,a,"whitespace")(c):n<3||c!==null&&!ae(c)?e(c):(t.exit("thematicBreak"),r(c))}function u(c){return c===i?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),a(c))}}var Xt={name:"list",tokenize:Dv,continuation:{tokenize:Nv},exit:Lv},Ov={tokenize:jv,partial:!0},qv={tokenize:Rv,partial:!0};function Dv(t,r,e){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return u;function u(w){let x=n.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||w===n.containerState.marker:bi(w)){if(n.containerState.type||(n.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(xi,e,m)(w):m(w);if(!n.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(w)}return e(w)}function c(w){return bi(w)&&++a<10?(t.consume(w),c):(!n.interrupt||a<2)&&(n.containerState.marker?w===n.containerState.marker:w===41||w===46)?(t.exit("listItemValue"),m(w)):e(w)}function m(w){return t.enter("listItemMarker"),t.consume(w),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||w,t.check(pn,n.interrupt?e:p,t.attempt(Ov,v,b))}function p(w){return n.containerState.initialBlankLine=!0,o++,v(w)}function b(w){return Ie(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),v):e(w)}function v(w){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(w)}}function Nv(t,r,e){let n=this;return n.containerState._closeFlow=void 0,t.check(pn,i,o);function i(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ye(t,r,"listItemIndent",n.containerState.size+1)(u)}function o(u){return n.containerState.furtherBlankLines||!Ie(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(qv,r,a)(u))}function a(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,ye(t,t.attempt(Xt,r,e),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Rv(t,r,e){let n=this;return ye(t,i,"listItemIndent",n.containerState.size+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?r(o):e(o)}}function Lv(t){t.exit(this.containerState.type)}function jv(t,r,e){let n=this;return ye(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=n.events[n.events.length-1];return!Ie(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var ea={name:"setextUnderline",tokenize:zv,resolveTo:Bv};function Bv(t,r){let e=t.length,n,i,o;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){n=e;break}t[e][1].type==="paragraph"&&(i=e)}else t[e][1].type==="content"&&t.splice(e,1),!o&&t[e][1].type==="definition"&&(o=e);let a={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,r]),t.splice(o+1,0,["exit",t[n][1],r]),t[n][1].end=Object.assign({},t[o][1].end)):t[n][1]=a,t.push(["exit",a,r]),t}function zv(t,r,e){let n=this,i=n.events.length,o,a;for(;i--;)if(n.events[i][1].type!=="lineEnding"&&n.events[i][1].type!=="linePrefix"&&n.events[i][1].type!=="content"){a=n.events[i][1].type==="paragraph";break}return u;function u(p){return!n.parser.lazy[n.now().line]&&(n.interrupt||a)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),o=p,c(p)):e(p)}function c(p){return p===o?(t.consume(p),c):(t.exit("setextHeadingLineSequence"),ye(t,m,"lineSuffix")(p))}function m(p){return p===null||ae(p)?(t.exit("setextHeadingLine"),r(p)):e(p)}}var Ud={tokenize:Mv};function Mv(t){let r=this,e=t.attempt(pn,n,t.attempt(this.parser.constructs.flowInitial,i,ye(t,t.attempt(this.parser.constructs.flow,i,t.attempt(vu,i)),"linePrefix")));return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),r.currentConstruct=void 0,e}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r.currentConstruct=void 0,e}}var Hd={resolveAll:Zd()},Gd=Wd("string"),Kd=Wd("text");function Wd(t){return{tokenize:r,resolveAll:Zd(t==="text"?Vv:void 0)};function r(e){let n=this,i=this.parser.constructs[t],o=e.attempt(i,a,u);return a;function a(p){return m(p)?o(p):u(p)}function u(p){if(p===null){e.consume(p);return}return e.enter("data"),e.consume(p),c}function c(p){return m(p)?(e.exit("data"),o(p)):(e.consume(p),c)}function m(p){if(p===null)return!0;let b=i[p],v=-1;if(b)for(;++v<b.length;){let w=b[v];if(!w.previous||w.previous.call(n,n.previous))return!0}return!1}}}function Zd(t){return r;function r(e,n){let i=-1,o;for(;++i<=e.length;)o===void 0?e[i]&&e[i][1].type==="data"&&(o=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(e,n):e}}function Vv(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],i=r.sliceStream(n),o=i.length,a=-1,u=0,c;for(;o--;){let m=i[o];if(typeof m=="string"){for(a=m.length;m.charCodeAt(a-1)===32;)u++,a--;if(a)break;a=-1}else if(m===-2)c=!0,u++;else if(m!==-1){o++;break}}if(u){let m={type:e===t.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-u,offset:n.end.offset-u,_index:n.start._index+o,_bufferIndex:o?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},m.start),n.start.offset===n.end.offset?Object.assign(n,m):(t.splice(e,0,["enter",m,r],["exit",m,r]),e+=2)}e++}return t}function Jd(t,r,e){let n=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],u=[],c=!0,m={consume:de,enter:fe,exit:Z,attempt:ve(me),check:ve(we),interrupt:ve(we,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:P,sliceSerialize:x,now:N,defineSkip:D,write:w},b=r.tokenize.call(p,m),v;return r.resolveAll&&o.push(r),p;function w(ue){return a=ar(a,ue),X(),a[a.length-1]!==null?[]:(Fe(r,0),p.events=Un(o,p.events,p),p.events)}function x(ue,$e){return Hv(P(ue),$e)}function P(ue){return Uv(a,ue)}function N(){return Object.assign({},n)}function D(ue){i[ue.line]=ue.column,Ce()}function X(){let ue;for(;n._index<a.length;){let $e=a[n._index];if(typeof $e=="string")for(ue=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===ue&&n._bufferIndex<$e.length;)ee($e.charCodeAt(n._bufferIndex));else ee($e)}}function ee(ue){c=void 0,v=ue,b=b(ue)}function de(ue){ae(ue)?(n.line++,n.column=1,n.offset+=ue===-3?2:1,Ce()):ue!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=ue,c=!0}function fe(ue,$e){let He=$e||{};return He.type=ue,He.start=N(),p.events.push(["enter",He,p]),u.push(He),He}function Z(ue){let $e=u.pop();return $e.end=N(),p.events.push(["exit",$e,p]),$e}function me(ue,$e){Fe(ue,$e.from)}function we(ue,$e){$e.restore()}function ve(ue,$e){return He;function He(U,st,Re){let et,Ue,O,q;return Array.isArray(U)?vt(U):"tokenize"in U?vt([U]):Bt(U);function Bt(be){return br;function br(Ct){let It=Ct!==null&&be[Ct],Yt=Ct!==null&&be.null,lr=[...Array.isArray(It)?It:It?[It]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return vt(lr)(Ct)}}function vt(be){return et=be,Ue=0,be.length===0?Re:nt(be[Ue])}function nt(be){return br;function br(Ct){return q=xe(),O=be,be.partial||(p.currentConstruct=be),be.name&&p.parser.constructs.disable.null.includes(be.name)?ct(Ct):be.tokenize.call($e?Object.assign(Object.create(p),$e):p,m,ut,ct)(Ct)}}function ut(be){return c=!0,ue(O,q),st}function ct(be){return c=!0,q.restore(),++Ue<et.length?nt(et[Ue]):Re}}}function Fe(ue,$e){ue.resolveAll&&!o.includes(ue)&&o.push(ue),ue.resolve&&gt(p.events,$e,p.events.length-$e,ue.resolve(p.events.slice($e),p)),ue.resolveTo&&(p.events=ue.resolveTo(p.events,p))}function xe(){let ue=N(),$e=p.previous,He=p.currentConstruct,U=p.events.length,st=Array.from(u);return{restore:Re,from:U};function Re(){n=ue,p.previous=$e,p.currentConstruct=He,p.events.length=U,u=st,Ce()}}function Ce(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Uv(t,r){let e=r.start._index,n=r.start._bufferIndex,i=r.end._index,o=r.end._bufferIndex,a;return e===i?a=[t[e].slice(n,o)]:(a=t.slice(e,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(t[i].slice(0,o))),a}function Hv(t,r){let e=-1,n=[],i;for(;++e<t.length;){let o=t[e],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
18
18
  `;break}case-3:{a=`\r
19
- `;break}case-2:{a=r?" ":" ";break}case-1:{if(!r&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,n.push(a)}return n.join("")}var ol={};qc(ol,{attentionMarkers:()=>by,contentInitial:()=>py,disable:()=>vy,document:()=>fy,flow:()=>my,flowInitial:()=>dy,insideSpan:()=>yy,string:()=>hy,text:()=>gy});var fy={[42]:Jt,[43]:Jt,[45]:Jt,[48]:Jt,[49]:Jt,[50]:Jt,[51]:Jt,[52]:Jt,[53]:Jt,[54]:Jt,[55]:Jt,[56]:Jt,[57]:Jt,[62]:$s},py={[91]:Qa},dy={[-2]:xo,[-1]:xo,[32]:xo},my={[35]:Ya,[42]:pi,[45]:[Ss,pi],[60]:tl,[61]:Ss,[95]:pi,[96]:_s,[126]:_s},hy={[38]:ks,[92]:ws},gy={[-5]:Eo,[-4]:Eo,[-3]:Eo,[33]:nl,[38]:ks,[42]:Co,[60]:[Ka,rl],[91]:il,[92]:[Xa,ws],[93]:fi,[95]:Co,[96]:Za},yy={null:[Co,$f]},by={null:[42,95]},vy={null:[]};function Ef(t={}){let r=vs([ol].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(mf),document:n(gf),flow:n(vf),string:n(wf),text:n(kf)};return e;function n(i){return o;function o(a){return xf(e,i,a)}}}var Af=/[\0\t\n\r]/g;function Sf(){let t=1,r="",e=!0,n;return i;function i(o,a,u){let c=[],m,p,b,v,w;for(o=r+o.toString(a),b=0,r="",e&&(o.charCodeAt(0)===65279&&b++,e=void 0);b<o.length;){if(Af.lastIndex=b,m=Af.exec(o),v=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt(v),!m){r=o.slice(b);break}if(w===10&&b===v&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),b<v&&(c.push(o.slice(b,v)),t+=v-b),w){case 0:{c.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,c.push(-2);t++<p;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}b=v+1}return u&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function Pf(t){for(;!Cs(t););return t}function Ps(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 $y=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ts(t){return t.replace($y,wy)}function wy(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),o=i===120||i===88;return Ps(e.slice(o?2:1),o?16:10)}return Ki(e)||t}var sl={}.hasOwnProperty,al=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),ky(e)(Pf(Ef(e).document().write(Sf()(t,r,!0))))};function ky(t={}){let r=If({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(_t),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:c(ft),blockQuote:c(tr),characterEscape:xe,characterReference:xe,codeFenced:c(fr),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:c(fr,m),codeText:c(Vt,m),codeTextData:xe,data:xe,codeFlowValue:xe,definition:c(Wn),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:c(Fn),hardBreakEscape:c(pt),hardBreakTrailing:c(pt),htmlFlow:c(qt,m),htmlFlowData:xe,htmlText:c(qt,m),htmlTextData:xe,image:c(dt),label:m,link:c(_t),listItem:c(jr),listItemValue:T,listOrdered:c(Rr,_),listUnordered:c(Rr),paragraph:c(Lr),reference:ut,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:c(ft),strong:c(Br),thematicBreak:c(rr)},exit:{atxHeading:b(),atxHeadingSequence:we,autolink:b(),autolinkEmail:Ft,autolinkProtocol:xt,blockQuote:b(),characterEscapeValue:ce,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:wr,codeFenced:b(ee),codeFencedFence:Y,codeFencedFenceInfo:N,codeFencedFenceMeta:D,codeFlowValue:ce,codeIndented:b(de),codeText:b(je),codeTextData:ce,data:ce,definition:b(),definitionDestinationString:me,definitionLabelString:fe,definitionTitleString:Z,emphasis:b(),hardBreakEscape:b(Ge),hardBreakTrailing:b(Ge),htmlFlow:b(U),htmlFlowData:ce,htmlText:b(st),htmlTextData:ce,image:b(He),label:q,labelText:F,lineEnding:$e,link:b(et),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:ct,resourceDestinationString:zt,resourceTitleString:kt,resource:nt,setextHeading:b(Ce),setextHeadingLineSequence:Fe,setextHeadingText:ke,strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),e={};return n;function n(K){let ne={type:"root",children:[]},ge=[ne],Se=[],Ct=[],Ar={stack:ge,tokenStack:Se,config:r,enter:p,exit:v,buffer:m,resume:w,setData:o,getData:a},ze=-1;for(;++ze<K.length;)if(K[ze][1].type==="listOrdered"||K[ze][1].type==="listUnordered")if(K[ze][0]==="enter")Ct.push(ze);else{let it=Ct.pop();ze=i(K,it,ze)}for(ze=-1;++ze<K.length;){let it=r[K[ze][0]];sl.call(it,K[ze][1].type)&&it[K[ze][1].type].call(Object.assign({sliceSerialize:K[ze][2].sliceSerialize},Ar),K[ze][1])}if(Se.length>0){let it=Se[Se.length-1];(it[1]||Tf).call(Ar,void 0,it[0])}for(ne.position={start:u(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:u(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<r.transforms.length;)ne=r.transforms[ze](ne)||ne;return ne}function i(K,ne,ge){let Se=ne-1,Ct=-1,Ar=!1,ze,it,mt,zr;for(;++Se<=ge;){let Xe=K[Se];if(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered"||Xe[1].type==="blockQuote"?(Xe[0]==="enter"?Ct++:Ct--,zr=void 0):Xe[1].type==="lineEndingBlank"?Xe[0]==="enter"&&(ze&&!zr&&!Ct&&!mt&&(mt=Se),zr=void 0):Xe[1].type==="linePrefix"||Xe[1].type==="listItemValue"||Xe[1].type==="listItemMarker"||Xe[1].type==="listItemPrefix"||Xe[1].type==="listItemPrefixWhitespace"||(zr=void 0),!Ct&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||Ct===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(ze){let nn=Se;for(it=void 0;nn--;){let Et=K[nn];if(Et[1].type==="lineEnding"||Et[1].type==="lineEndingBlank"){if(Et[0]==="exit")continue;it&&(K[it][1].type="lineEndingBlank",Ar=!0),Et[1].type="lineEnding",it=nn}else if(!(Et[1].type==="linePrefix"||Et[1].type==="blockQuotePrefix"||Et[1].type==="blockQuotePrefixWhitespace"||Et[1].type==="blockQuoteMarker"||Et[1].type==="listItemIndent"))break}mt&&(!it||mt<it)&&(ze._spread=!0),ze.end=Object.assign({},it?K[it][1].start:Xe[1].end),K.splice(it||Se,0,["exit",ze,Xe[2]]),Se++,ge++}Xe[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start)},K.splice(Se,0,["enter",ze,Xe[2]]),Se++,ge++,mt=void 0,zr=!0)}}return K[ne][1]._spread=Ar,ge}function o(K,ne){e[K]=ne}function a(K){return e[K]}function u(K){return{line:K.line,column:K.column,offset:K.offset}}function c(K,ne){return ge;function ge(Se){p.call(this,K(Se),Se),ne&&ne.call(this,Se)}}function m(){this.stack.push({type:"fragment",children:[]})}function p(K,ne,ge){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ne,ge]),K.position={start:u(ne.start)},K}function b(K){return ne;function ne(ge){K&&K.call(this,ge),v.call(this,ge)}}function v(K,ne){let ge=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==K.type&&(ne?ne.call(this,K,Se[0]):(Se[1]||Tf).call(this,K,Se[0]));else throw new Error("Cannot close `"+K.type+"` ("+si({start:K.start,end:K.end})+"): it\u2019s not open");return ge.position.end=u(K.end),ge}function w(){return lf(this.stack.pop())}function _(){o("expectingFirstListItemValue",!0)}function T(K){if(a("expectingFirstListItemValue")){let ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(K),10),o("expectingFirstListItemValue")}}function N(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=K}function D(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=K}function Y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function ee(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K.replace(/(\r?\n|\r)$/g,"")}function fe(K){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(K)).toLowerCase()}function Z(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.title=K}function me(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.url=K}function we(K){let ne=this.stack[this.stack.length-1];if(!ne.depth){let ge=this.sliceSerialize(K).length;ne.depth=ge}}function ke(){o("setextHeadingSlurpLineEnding",!0)}function Fe(K){let ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function Ce(){o("setextHeadingSlurpLineEnding")}function xe(K){let ne=this.stack[this.stack.length-1],ge=ne.children[ne.children.length-1];(!ge||ge.type!=="text")&&(ge=Mr(),ge.position={start:u(K.start)},ne.children.push(ge)),this.stack.push(ge)}function ce(K){let ne=this.stack.pop();ne.value+=this.sliceSerialize(K),ne.position.end=u(K.end)}function $e(K){let ne=this.stack[this.stack.length-1];if(a("atHardBreak")){let ge=ne.children[ne.children.length-1];ge.position.end=u(K.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ne.type)&&(xe.call(this,K),ce.call(this,K))}function Ge(){o("atHardBreak",!0)}function U(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function st(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function je(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.value=K}function et(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function He(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function F(K){let ne=this.stack[this.stack.length-2],ge=this.sliceSerialize(K);ne.label=Ts(ge),ne.identifier=Zt(ge).toLowerCase()}function q(){let K=this.stack[this.stack.length-1],ne=this.resume(),ge=this.stack[this.stack.length-1];o("inReference",!0),ge.type==="link"?ge.children=K.children:ge.alt=ne}function zt(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.url=K}function kt(){let K=this.resume(),ne=this.stack[this.stack.length-1];ne.title=K}function nt(){o("inReference")}function ut(){o("referenceType","collapsed")}function ct(K){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(K)).toLowerCase(),o("referenceType","full")}function ve(K){o("characterReferenceType",K.type)}function wr(K){let ne=this.sliceSerialize(K),ge=a("characterReferenceType"),Se;ge?(Se=Ps(ne,ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Se=Ki(ne);let Ct=this.stack.pop();Ct.value+=Se,Ct.position.end=u(K.end)}function xt(K){ce.call(this,K);let ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(K)}function Ft(K){ce.call(this,K);let ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(K)}function tr(){return{type:"blockquote",children:[]}}function fr(){return{type:"code",lang:null,meta:null,value:""}}function Vt(){return{type:"inlineCode",value:""}}function Wn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fn(){return{type:"emphasis",children:[]}}function ft(){return{type:"heading",depth:void 0,children:[]}}function pt(){return{type:"break"}}function qt(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function Rr(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function jr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function Br(){return{type:"strong",children:[]}}function Mr(){return{type:"text",value:""}}function rr(){return{type:"thematicBreak"}}}function If(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?If(t,n):_y(t,n)}return t}function _y(t,r){let e;for(e in r)if(sl.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(sl.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),a=r[e];a&&(n?t[e]=[...o,...a]:Object.assign(o,a))}}function Tf(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+si({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+si({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+si({start:r.start,end:r.end})+") is still open")}function ll(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return al(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Of=ll;var Cy={tokenize:Sy,partial:!0},qf={tokenize:Py,partial:!0},Df={tokenize:Ty,partial:!0},Wi={tokenize:Oy,partial:!0},Nf={tokenize:Iy,partial:!0},Rf={tokenize:Ey,previous:Bf},jf={tokenize:Ay,previous:fl},En={tokenize:xy,previous:Mf},fn={},ul={text:fn},di=48;for(;di<123;)fn[di]=En,di++,di===58?di=65:di===91&&(di=97);fn[43]=En;fn[45]=En;fn[46]=En;fn[95]=En;fn[72]=[En,jf];fn[104]=[En,jf];fn[87]=[En,Rf];fn[119]=[En,Rf];function xy(t,r,e){let n=this,i,o;return a;function a(w){return!Ff(w)||!Mf(n.previous)||pl(n.events)?e(w):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(w))}function u(w){return Ff(w)?(t.consume(w),u):w===64?(t.consume(w),c):e(w)}function c(w){return w===46?t.check(Wi,v,m)(w):w===45||w===95?t.check(Wi,e,p)(w):Tt(w)?(!o&&ai(w)&&(o=!0),t.consume(w),c):v(w)}function m(w){return t.consume(w),i=!0,o=void 0,c}function p(w){return t.consume(w),b}function b(w){return w===46?t.check(Wi,e,m)(w):c(w)}function v(w){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(w)):e(w)}}function Ey(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!Bf(n.previous)||pl(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Cy,t.attempt(qf,t.attempt(Df,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function Ay(t,r,e){let n=this;return i;function i(_){return _!==72&&_!==104||!fl(n.previous)||pl(n.events)?e(_):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(_),o)}function o(_){return _===84||_===116?(t.consume(_),a):e(_)}function a(_){return _===84||_===116?(t.consume(_),u):e(_)}function u(_){return _===80||_===112?(t.consume(_),c):e(_)}function c(_){return _===83||_===115?(t.consume(_),m):m(_)}function m(_){return _===58?(t.consume(_),p):e(_)}function p(_){return _===47?(t.consume(_),b):e(_)}function b(_){return _===47?(t.consume(_),v):e(_)}function v(_){return _===null||Ln(_)||li(_)||ui(_)?e(_):t.attempt(qf,t.attempt(Df,w),e)(_)}function w(_){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(_)}}function Sy(t,r,e){return n;function n(c){return t.consume(c),i}function i(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),a):e(c)}function a(c){return c===46?(t.consume(c),u):e(c)}function u(c){return c===null||le(c)?e(c):r(c)}}function Py(t,r,e){let n,i;return o;function o(c){return c===38?t.check(Nf,u,a)(c):c===46||c===95?t.check(Wi,u,a)(c):c===null||Ln(c)||li(c)||c!==45&&ui(c)?u(c):(t.consume(c),o)}function a(c){return c===46?(i=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function u(c){return!i&&!n?r(c):e(c)}}function Ty(t,r){let e=0;return n;function n(a){return a===38?t.check(Nf,r,i)(a):(a===40&&e++,a===41?t.check(Wi,o,i)(a):cl(a)?r(a):Lf(a)?t.check(Wi,r,i)(a):(t.consume(a),n))}function i(a){return t.consume(a),n}function o(a){return e--,e<0?r(a):i(a)}}function Iy(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return Wt(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return cl(a)?r(a):e(a)}}function Oy(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return Lf(o)?(t.consume(o),i):cl(o)?r(o):e(o)}}function Lf(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 cl(t){return t===null||t===60||Ve(t)}function Ff(t){return t===43||t===45||t===46||t===95||Tt(t)}function Bf(t){return t===null||t===40||t===42||t===95||t===126||Ve(t)}function fl(t){return t===null||!Wt(t)}function Mf(t){return t!==47&&fl(t)}function pl(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 Fy={tokenize:By,partial:!0};function dl(){return{document:{[91]:{tokenize:Ry,continuation:{tokenize:jy},exit:Ly}},text:{[91]:{tokenize:Ny},[93]:{add:"after",tokenize:qy,resolveTo:Dy}}}}function qy(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let c=n.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!a||!a._balanced)return e(c);let m=Zt(n.sliceSerialize({start:a.end,end:n.now()}));return m.charCodeAt(0)!==94||!o.includes(m.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}function Dy(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 i={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[t[e+1],t[e+2],["enter",i,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",a,r],["enter",u,r],["exit",u,r],["exit",a,r],t[t.length-2],t[t.length-1],["exit",i,r]];return t.splice(e,t.length-e+1,...c),t}function Ny(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return u;function u(v){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),c}function c(v){return v!==94?e(v):(t.enter("gfmFootnoteCallMarker"),t.consume(v),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(v){let w;return v===null||v===91||o++>999?e(v):v===93?a?(t.exit("chunkString"),w=t.exit("gfmFootnoteCallString"),i.includes(Zt(n.sliceSerialize(w)))?b(v):e(v)):e(v):(t.consume(v),Ve(v)||(a=!0),v===92?p:m)}function p(v){return v===91||v===92||v===93?(t.consume(v),o++,m):m(v)}function b(v){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function Ry(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,u;return c;function c(T){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),p):e(T)}function p(T){let N;return T===null||T===91||a>999?e(T):T===93?u?(N=t.exit("gfmFootnoteDefinitionLabelString"),o=Zt(n.sliceSerialize(N)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(T),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w):e(T):le(T)?(t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),a++,p):(t.enter("chunkString").contentType="string",b(T))}function b(T){return T===null||le(T)||T===91||T===93||a>999?(t.exit("chunkString"),p(T)):(Ve(T)||(u=!0),a++,t.consume(T),T===92?v:b)}function v(T){return T===91||T===92||T===93?(t.consume(T),a++,b):b(T)}function w(T){return T===58?(t.enter("definitionMarker"),t.consume(T),t.exit("definitionMarker"),ye(t,_,"gfmFootnoteDefinitionWhitespace")):e(T)}function _(T){return i.includes(o)||i.push(o),r(T)}}function jy(t,r,e){return t.check(cn,r,t.attempt(Fy,r,e))}function Ly(t){t.exit("gfmFootnoteDefinition")}function By(t,r,e){let n=this;return ye(t,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?r(o):e(o)}}function ml(t={}){let r=t.singleTilde,e={tokenize:i,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,a){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},p={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},b=[["enter",m,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",p,a]];ht(b,b.length,0,Mn(a.parser.constructs.insideSpan.null,o.slice(c+1,u),a)),ht(b,b.length,0,[["exit",p,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",m,a]]),ht(o,c-1,u-c+3,b),u=c+b.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function i(o,a,u){let c=this.previous,m=this.events,p=0;return b;function b(w){return c===126&&m[m.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),v(w))}function v(w){let _=Gi(c);if(w===126)return p>1?u(w):(o.consume(w),p++,v);if(p<2&&!r)return u(w);let T=o.exit("strikethroughSequenceTemporary"),N=Gi(w);return T._open=!N||N===2&&Boolean(_),T._close=!_||_===2&&Boolean(N),a(w)}}}var hl={flow:{null:{tokenize:zy,resolve:My}}},zf={tokenize:Vy,partial:!0};function My(t,r){let e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){let p=t[e][1];if(o&&(p.type==="temporaryTableCellContent"&&(a=a||e,u=e),(p.type==="tableCellDivider"||p.type==="tableRow")&&u)){let b={type:"tableContent",start:t[a][1].start,end:t[u][1].end},v={type:"chunkText",start:b.start,end:b.end,contentType:"text"};t.splice(a,u-a+1,["enter",b,r],["enter",v,r],["exit",v,r],["exit",b,r]),e-=u-a-3,a=void 0,u=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(m?0:1)<e&&(p.type==="tableCellDivider"||p.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let b={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(p.type==="tableCellDivider"?1:0),0,["exit",b,r]),t.splice(c,0,["enter",b,r]),e+=2,c=e+1,m=!0}p.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,m=!1)),p.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(c=e+1,m=!1)),p.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function zy(t,r,e){let n=this,i=[],o=0,a,u;return c;function c(U){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),U===124?m(U):(o++,t.enter("temporaryTableCellContent"),v(U))}function m(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),a=!0,p}function p(U){return U===null||le(U)?_(U):Ie(U)?(t.enter("whitespace"),t.consume(U),b):(a&&(a=void 0,o++),U===124?m(U):(t.enter("temporaryTableCellContent"),v(U)))}function b(U){return Ie(U)?(t.consume(U),b):(t.exit("whitespace"),p(U))}function v(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),p(U)):(t.consume(U),U===92?w:v)}function w(U){return U===92||U===124?(t.consume(U),v):v(U)}function _(U){if(U===null)return e(U);t.exit("tableRow"),t.exit("tableHead");let st=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Ge,partial:!0},function(je){return n.interrupt=st,t.enter("tableDelimiterRow"),T(je)},function(je){return n.interrupt=st,e(je)})(U)}function T(U){return U===null||le(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,i.push("none"),D):U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i.push("left"),Y):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):e(U)}function N(U){return Ie(U)?(t.consume(U),N):(t.exit("whitespace"),T(U))}function D(U){return U===45?(t.consume(U),D):(t.exit("tableDelimiterFiller"),U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",ee):T(U))}function Y(U){return U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,D):e(U)}function ee(U){return U===null||le(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):e(U)}function de(U){return t.exit("tableDelimiterRow"),!u||o!==i.length?e(U):U===null?fe(U):t.check(zf,fe,t.attempt({tokenize:Ge,partial:!0},ye(t,Z,"linePrefix",4),fe))(U)}function fe(U){return t.exit("table"),r(U)}function Z(U){return t.enter("tableBody"),me(U)}function me(U){return t.enter("tableRow"),U===124?we(U):(t.enter("temporaryTableCellContent"),Ce(U))}function we(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),ke}function ke(U){return U===null||le(U)?ce(U):Ie(U)?(t.enter("whitespace"),t.consume(U),Fe):U===124?we(U):(t.enter("temporaryTableCellContent"),Ce(U))}function Fe(U){return Ie(U)?(t.consume(U),Fe):(t.exit("whitespace"),ke(U))}function Ce(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),ke(U)):(t.consume(U),U===92?xe:Ce)}function xe(U){return U===92||U===124?(t.consume(U),Ce):Ce(U)}function ce(U){return t.exit("tableRow"),U===null?$e(U):t.check(zf,$e,t.attempt({tokenize:Ge,partial:!0},ye(t,me,"linePrefix",4),$e))(U)}function $e(U){return t.exit("tableBody"),fe(U)}function Ge(U,st,je){return et;function et(F){return U.enter("lineEnding"),U.consume(F),U.exit("lineEnding"),ye(U,He,"linePrefix")}function He(F){if(n.parser.lazy[n.now().line]||F===null||le(F))return je(F);let q=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&q&&q[1].type==="linePrefix"&&q[2].sliceSerialize(q[1],!0).length>=4?je(F):(n._gfmTableDynamicInterruptHack=!0,U.check(n.parser.constructs.flow,function(zt){return n._gfmTableDynamicInterruptHack=!1,je(zt)},function(zt){return n._gfmTableDynamicInterruptHack=!1,st(zt)})(F))}}}function Vy(t,r,e){let n=0;return i;function i(a){return t.enter("check"),t.consume(a),o}function o(a){return a===-1||a===32?(t.consume(a),n++,n===4?r:o):a===null||Ve(a)?r(a):e(a)}}var Uy={tokenize:Hy},gl={text:{[91]:Uy}};function Hy(t,r,e){let n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),o)}function o(u){return Ve(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):e(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:Gy},r,e)):e(u)}}function Gy(t,r,e){let n=this;return ye(t,i,"whitespace");function i(o){let a=n.events[n.events.length-1];return(a&&a[1].type==="whitespace"||le(o))&&o!==null?r(o):e(o)}}function Vf(t){return vs([ul,dl(),ml(t),hl,gl])}function yl(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function bl(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ao=function(t){if(t==null)return Jy;if(typeof t=="string")return Zy(t);if(typeof t=="object")return Array.isArray(t)?Ky(t):Wy(t);if(typeof t=="function")return Is(t);throw new Error("Expected function, string, or object as test")};function Ky(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Ao(t[e]);return Is(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function Wy(t){return Is(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function Zy(t){return Is(r);function r(e){return e&&e.type===t}}function Is(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function Jy(){return!0}function Uf(t){return"\x1B[33m"+t+"\x1B[39m"}var Qy=!0,Xy="skip",Hf=!1,Gf=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Ao(r),o=n?-1:1;a(t,null,[])();function a(u,c,m){let p=typeof u=="object"&&u!==null?u:{},b;return typeof p.type=="string"&&(b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0,Object.defineProperty(v,"name",{value:"node ("+Uf(p.type+(b?"<"+b+">":""))+")"})),v;function v(){let w=[],_,T,N;if((!r||i(u,c,m[m.length-1]||null))&&(w=Yy(e(u,m)),w[0]===Hf))return w;if(u.children&&w[0]!==Xy)for(T=(n?u.children.length:-1)+o,N=m.concat(u);T>-1&&T<u.children.length;){if(_=a(u.children[T],T,N)(),_[0]===Hf)return _;T=typeof _[1]=="number"?_[1]:T+o}return w}}};function Yy(t){return Array.isArray(t)?t:typeof t=="number"?[Qy,t]:[t]}var eb={}.hasOwnProperty,vl=function(t,r,e,n){let i,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],i=n):(o=r,i=e),i||(i={});let a=Ao(i.ignore||[]),u=tb(o),c=-1;for(;++c<u.length;)Gf(t,"text",m);return t;function m(b,v){let w=-1,_;for(;++w<v.length;){let T=v[w];if(a(T,_?_.children.indexOf(T):void 0,_))return;_=T}if(_)return p(b,v)}function p(b,v){let w=v[v.length-1],_=u[c][0],T=u[c][1],N=0,D=w.children.indexOf(b),Y=!1,ee=[],de;_.lastIndex=0;let fe=_.exec(b.value);for(;fe;){de=fe.index;let Z={index:fe.index,input:fe.input,stack:[...v,b]},me=T(...fe,Z);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(N!==de&&ee.push({type:"text",value:b.value.slice(N,de)}),Array.isArray(me)?ee.push(...me):me&&ee.push(me),N=de+fe[0].length,Y=!0),!_.global)break;fe=_.exec(b.value)}return Y?(N<b.value.length&&ee.push({type:"text",value:b.value.slice(N)}),w.children.splice(D,1,...ee)):ee=[b],D+ee.length}};function tb(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([Kf(t[e][0]),Wf(t[e][1])])}else{let e;for(e in t)eb.call(t,e)&&r.push([Kf(e),Wf(t[e])])}return r}function Kf(t){return typeof t=="string"?new RegExp(bl(t),"g"):t}function Wf(t){return typeof t=="function"?t:()=>t}var $l="phrasing",wl=["autolink","link","image","label"],Zf={transforms:[ab],enter:{literalAutolink:rb,literalAutolinkEmail:kl,literalAutolinkHttp:kl,literalAutolinkWww:kl},exit:{literalAutolink:sb,literalAutolinkEmail:ob,literalAutolinkHttp:nb,literalAutolinkWww:ib}},Jf={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$l,notInConstruct:wl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$l,notInConstruct:wl},{character:":",before:"[ps]",after:"\\/",inConstruct:$l,notInConstruct:wl}]};function rb(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function kl(t){this.config.enter.autolinkProtocol.call(this,t)}function nb(t){this.config.exit.autolinkProtocol.call(this,t)}function ib(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function ob(t){this.config.exit.autolinkEmail.call(this,t)}function sb(t){this.exit(t)}function ab(t){vl(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lb],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ub]],{ignore:["link","linkReference"]})}function lb(t,r,e,n,i){let o="";if(!Qf(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!cb(e)))return!1;let a=fb(e+n);if(!a[0])return!1;let u={type:"link",title:null,url:o+r+a[0],children:[{type:"text",value:r+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function ub(t,r,e,n){return!Qf(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function cb(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 fb(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,i,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=yl(t,"("),i=yl(t,")");e!==-1&&n>i;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),i++;return[t,o]}function Qf(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||li(e)||ui(e))&&(!r||e!==47)}function _l(t){return t.label||!t.identifier?t.label||"":Ts(t.identifier)}function gr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,i=e.line||1,o=e.column||1;return{move:c,current:a,shift:u};function a(){return{now:{line:i,column:o},lineShift:n}}function u(m){n+=m}function c(m=""){let p=m.split(/\r?\n|\r/g),b=p[p.length-1];return i+=p.length-1,o=p.length===1?o+b.length:1+b.length+n,m}}function Os(t,r,e){let n=r.indexStack,i=t.children||[],o=gr(e),a=[],u=-1;for(n.push(-1);++u<i.length;){let m=i[u];n[n.length-1]=u,a.push(o.move(r.handle(m,t,r,{before:`
19
+ `;break}case-2:{a=r?" ":" ";break}case-1:{if(!r&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,n.push(a)}return n.join("")}var Pu={};xa(Pu,{attentionMarkers:()=>Yv,contentInitial:()=>Kv,disable:()=>ek,document:()=>Gv,flow:()=>Zv,flowInitial:()=>Wv,insideSpan:()=>Xv,string:()=>Jv,text:()=>Qv});var Gv={[42]:Xt,[43]:Xt,[45]:Xt,[48]:Xt,[49]:Xt,[50]:Xt,[51]:Xt,[52]:Xt,[53]:Xt,[54]:Xt,[55]:Xt,[56]:Xt,[57]:Xt,[62]:Gs},Kv={[91]:ku},Wv={[-2]:Vo,[-1]:Vo,[32]:Vo},Zv={[35]:Cu,[42]:xi,[45]:[ea,xi],[60]:_u,[61]:ea,[95]:xi,[96]:Zs,[126]:Zs},Jv={[38]:Ws,[92]:Ks},Qv={[-5]:Uo,[-4]:Uo,[-3]:Uo,[33]:Su,[38]:Ws,[42]:Mo,[60]:[bu,Au],[91]:Tu,[92]:[xu,Ks],[93]:ki,[95]:Mo,[96]:wu},Xv={null:[Mo,Hd]},Yv={null:[42,95]},ek={null:[]};function Qd(t={}){let r=Hs([Pu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(jd),document:n(zd),flow:n(Ud),string:n(Gd),text:n(Kd)};return e;function n(i){return o;function o(a){return Jd(e,i,a)}}}var Xd=/[\0\t\n\r]/g;function Yd(){let t=1,r="",e=!0,n;return i;function i(o,a,u){let c=[],m,p,b,v,w;for(o=r+o.toString(a),b=0,r="",e&&(o.charCodeAt(0)===65279&&b++,e=void 0);b<o.length;){if(Xd.lastIndex=b,m=Xd.exec(o),v=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt(v),!m){r=o.slice(b);break}if(w===10&&b===v&&n)c.push(-3),n=void 0;else switch(n&&(c.push(-5),n=void 0),b<v&&(c.push(o.slice(b,v)),t+=v-b),w){case 0:{c.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,c.push(-2);t++<p;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:n=!0,t=1}b=v+1}return u&&(n&&c.push(-5),r&&c.push(r),c.push(null)),c}}function em(t){for(;!Js(t););return t}function ta(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 tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ra(t){return t.replace(tk,rk)}function rk(t,r,e){if(r)return r;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),o=i===120||i===88;return ta(e.slice(o?2:1),o?16:10)}return eo(e)||t}var Iu={}.hasOwnProperty,Fu=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),nk(e)(em(Qd(e).document().write(Yd()(t,r,!0))))};function nk(t={}){let r=rm({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(kt),autolinkProtocol:Ce,autolinkEmail:Ce,atxHeading:c(ft),blockQuote:c(Yt),characterEscape:Ce,characterReference:Ce,codeFenced:c(lr),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:c(lr,m),codeText:c(zt,m),codeTextData:Ce,data:Ce,codeFlowValue:Ce,definition:c(Hn),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:c(Tn),hardBreakEscape:c(pt),hardBreakTrailing:c(pt),htmlFlow:c(Ft,m),htmlFlowData:Ce,htmlText:c(Ft,m),htmlTextData:Ce,image:c(dt),label:m,link:c(kt),listItem:c(qr),listItemValue:P,listOrdered:c(Or,x),listUnordered:c(Or),paragraph:c(Dr),reference:ut,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:c(ft),strong:c(Nr),thematicBreak:c(er)},exit:{atxHeading:b(),atxHeadingSequence:we,autolink:b(),autolinkEmail:It,autolinkProtocol:Ct,blockQuote:b(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:br,codeFenced:b(ee),codeFencedFence:X,codeFencedFenceInfo:N,codeFencedFenceMeta:D,codeFlowValue:ue,codeIndented:b(de),codeText:b(Re),codeTextData:ue,data:ue,definition:b(),definitionDestinationString:me,definitionLabelString:fe,definitionTitleString:Z,emphasis:b(),hardBreakEscape:b(He),hardBreakTrailing:b(He),htmlFlow:b(U),htmlFlowData:ue,htmlText:b(st),htmlTextData:ue,image:b(Ue),label:q,labelText:O,lineEnding:$e,link:b(et),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:ct,resourceDestinationString:Bt,resourceTitleString:vt,resource:nt,setextHeading:b(xe),setextHeadingLineSequence:Fe,setextHeadingText:ve,strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),e={};return n;function n(K){let re={type:"root",children:[]},ge=[re],Ae=[],xt=[],xr={stack:ge,tokenStack:Ae,config:r,enter:p,exit:v,buffer:m,resume:w,setData:o,getData:a},ze=-1;for(;++ze<K.length;)if(K[ze][1].type==="listOrdered"||K[ze][1].type==="listUnordered")if(K[ze][0]==="enter")xt.push(ze);else{let it=xt.pop();ze=i(K,it,ze)}for(ze=-1;++ze<K.length;){let it=r[K[ze][0]];Iu.call(it,K[ze][1].type)&&it[K[ze][1].type].call(Object.assign({sliceSerialize:K[ze][2].sliceSerialize},xr),K[ze][1])}if(Ae.length>0){let it=Ae[Ae.length-1];(it[1]||tm).call(xr,void 0,it[0])}for(re.position={start:u(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:u(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<r.transforms.length;)re=r.transforms[ze](re)||re;return re}function i(K,re,ge){let Ae=re-1,xt=-1,xr=!1,ze,it,mt,Lr;for(;++Ae<=ge;){let Qe=K[Ae];if(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered"||Qe[1].type==="blockQuote"?(Qe[0]==="enter"?xt++:xt--,Lr=void 0):Qe[1].type==="lineEndingBlank"?Qe[0]==="enter"&&(ze&&!Lr&&!xt&&!mt&&(mt=Ae),Lr=void 0):Qe[1].type==="linePrefix"||Qe[1].type==="listItemValue"||Qe[1].type==="listItemMarker"||Qe[1].type==="listItemPrefix"||Qe[1].type==="listItemPrefixWhitespace"||(Lr=void 0),!xt&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||xt===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(ze){let tn=Ae;for(it=void 0;tn--;){let Et=K[tn];if(Et[1].type==="lineEnding"||Et[1].type==="lineEndingBlank"){if(Et[0]==="exit")continue;it&&(K[it][1].type="lineEndingBlank",xr=!0),Et[1].type="lineEnding",it=tn}else if(!(Et[1].type==="linePrefix"||Et[1].type==="blockQuotePrefix"||Et[1].type==="blockQuotePrefixWhitespace"||Et[1].type==="blockQuoteMarker"||Et[1].type==="listItemIndent"))break}mt&&(!it||mt<it)&&(ze._spread=!0),ze.end=Object.assign({},it?K[it][1].start:Qe[1].end),K.splice(it||Ae,0,["exit",ze,Qe[2]]),Ae++,ge++}Qe[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start)},K.splice(Ae,0,["enter",ze,Qe[2]]),Ae++,ge++,mt=void 0,Lr=!0)}}return K[re][1]._spread=xr,ge}function o(K,re){e[K]=re}function a(K){return e[K]}function u(K){return{line:K.line,column:K.column,offset:K.offset}}function c(K,re){return ge;function ge(Ae){p.call(this,K(Ae),Ae),re&&re.call(this,Ae)}}function m(){this.stack.push({type:"fragment",children:[]})}function p(K,re,ge){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,ge]),K.position={start:u(re.start)},K}function b(K){return re;function re(ge){K&&K.call(this,ge),v.call(this,ge)}}function v(K,re){let ge=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==K.type&&(re?re.call(this,K,Ae[0]):(Ae[1]||tm).call(this,K,Ae[0]));else throw new Error("Cannot close `"+K.type+"` ("+yi({start:K.start,end:K.end})+"): it\u2019s not open");return ge.position.end=u(K.end),ge}function w(){return Od(this.stack.pop())}function x(){o("expectingFirstListItemValue",!0)}function P(K){if(a("expectingFirstListItemValue")){let re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),o("expectingFirstListItemValue")}}function N(){let K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function D(){let K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function X(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function ee(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function fe(K){let re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=re,ge.identifier=Qt(this.sliceSerialize(K)).toLowerCase()}function Z(){let K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function me(){let K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function we(K){let re=this.stack[this.stack.length-1];if(!re.depth){let ge=this.sliceSerialize(K).length;re.depth=ge}}function ve(){o("setextHeadingSlurpLineEnding",!0)}function Fe(K){let re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function xe(){o("setextHeadingSlurpLineEnding")}function Ce(K){let re=this.stack[this.stack.length-1],ge=re.children[re.children.length-1];(!ge||ge.type!=="text")&&(ge=Rr(),ge.position={start:u(K.start)},re.children.push(ge)),this.stack.push(ge)}function ue(K){let re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=u(K.end)}function $e(K){let re=this.stack[this.stack.length-1];if(a("atHardBreak")){let ge=re.children[re.children.length-1];ge.position.end=u(K.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(re.type)&&(Ce.call(this,K),ue.call(this,K))}function He(){o("atHardBreak",!0)}function U(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function st(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function Re(){let K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function et(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function Ue(){let K=this.stack[this.stack.length-1];a("inReference")?(K.type+="Reference",K.referenceType=a("referenceType")||"shortcut",delete K.url,delete K.title):(delete K.identifier,delete K.label),o("referenceType")}function O(K){let re=this.stack[this.stack.length-2],ge=this.sliceSerialize(K);re.label=ra(ge),re.identifier=Qt(ge).toLowerCase()}function q(){let K=this.stack[this.stack.length-1],re=this.resume(),ge=this.stack[this.stack.length-1];o("inReference",!0),ge.type==="link"?ge.children=K.children:ge.alt=re}function Bt(){let K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function vt(){let K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function nt(){o("inReference")}function ut(){o("referenceType","collapsed")}function ct(K){let re=this.resume(),ge=this.stack[this.stack.length-1];ge.label=re,ge.identifier=Qt(this.sliceSerialize(K)).toLowerCase(),o("referenceType","full")}function be(K){o("characterReferenceType",K.type)}function br(K){let re=this.sliceSerialize(K),ge=a("characterReferenceType"),Ae;ge?(Ae=ta(re,ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Ae=eo(re);let xt=this.stack.pop();xt.value+=Ae,xt.position.end=u(K.end)}function Ct(K){ue.call(this,K);let re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function It(K){ue.call(this,K);let re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function Yt(){return{type:"blockquote",children:[]}}function lr(){return{type:"code",lang:null,meta:null,value:""}}function zt(){return{type:"inlineCode",value:""}}function Hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function ft(){return{type:"heading",depth:void 0,children:[]}}function pt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function kt(){return{type:"link",title:null,url:"",children:[]}}function Or(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function qr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Dr(){return{type:"paragraph",children:[]}}function Nr(){return{type:"strong",children:[]}}function Rr(){return{type:"text",value:""}}function er(){return{type:"thematicBreak"}}}function rm(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?rm(t,n):ik(t,n)}return t}function ik(t,r){let e;for(e in r)if(Iu.call(r,e)){let n=e==="canContainEols"||e==="transforms",o=(Iu.call(t,e)?t[e]:void 0)||(t[e]=n?[]:{}),a=r[e];a&&(n?t[e]=[...o,...a]:Object.assign(o,a))}}function tm(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+yi({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+yi({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+yi({start:r.start,end:r.end})+") is still open")}function Ou(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return Fu(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var nm=Ou;var ok={tokenize:uk,partial:!0},om={tokenize:ck,partial:!0},sm={tokenize:fk,partial:!0},to={tokenize:dk,partial:!0},am={tokenize:pk,partial:!0},lm={tokenize:ak,previous:fm},um={tokenize:lk,previous:Nu},Sn={tokenize:sk,previous:pm},dn={},qu={text:dn},Ci=48;for(;Ci<123;)dn[Ci]=Sn,Ci++,Ci===58?Ci=65:Ci===91&&(Ci=97);dn[43]=Sn;dn[45]=Sn;dn[46]=Sn;dn[95]=Sn;dn[72]=[Sn,um];dn[104]=[Sn,um];dn[87]=[Sn,lm];dn[119]=[Sn,lm];function sk(t,r,e){let n=this,i,o;return a;function a(w){return!im(w)||!pm(n.previous)||Ru(n.events)?e(w):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(w))}function u(w){return im(w)?(t.consume(w),u):w===64?(t.consume(w),c):e(w)}function c(w){return w===46?t.check(to,v,m)(w):w===45||w===95?t.check(to,e,p)(w):Pt(w)?(!o&&bi(w)&&(o=!0),t.consume(w),c):v(w)}function m(w){return t.consume(w),i=!0,o=void 0,c}function p(w){return t.consume(w),b}function b(w){return w===46?t.check(to,e,m)(w):c(w)}function v(w){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(w)):e(w)}}function ak(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!fm(n.previous)||Ru(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(ok,t.attempt(om,t.attempt(sm,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function lk(t,r,e){let n=this;return i;function i(x){return x!==72&&x!==104||!Nu(n.previous)||Ru(n.events)?e(x):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(x),o)}function o(x){return x===84||x===116?(t.consume(x),a):e(x)}function a(x){return x===84||x===116?(t.consume(x),u):e(x)}function u(x){return x===80||x===112?(t.consume(x),c):e(x)}function c(x){return x===83||x===115?(t.consume(x),m):m(x)}function m(x){return x===58?(t.consume(x),p):e(x)}function p(x){return x===47?(t.consume(x),b):e(x)}function b(x){return x===47?(t.consume(x),v):e(x)}function v(x){return x===null||Mn(x)||$i(x)||wi(x)?e(x):t.attempt(om,t.attempt(sm,w),e)(x)}function w(x){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(x)}}function uk(t,r,e){return n;function n(c){return t.consume(c),i}function i(c){return c===87||c===119?(t.consume(c),o):e(c)}function o(c){return c===87||c===119?(t.consume(c),a):e(c)}function a(c){return c===46?(t.consume(c),u):e(c)}function u(c){return c===null||ae(c)?e(c):r(c)}}function ck(t,r,e){let n,i;return o;function o(c){return c===38?t.check(am,u,a)(c):c===46||c===95?t.check(to,u,a)(c):c===null||Mn(c)||$i(c)||c!==45&&wi(c)?u(c):(t.consume(c),o)}function a(c){return c===46?(i=n,n=void 0,t.consume(c),o):(c===95&&(n=!0),t.consume(c),o)}function u(c){return!i&&!n?r(c):e(c)}}function fk(t,r){let e=0;return n;function n(a){return a===38?t.check(am,r,i)(a):(a===40&&e++,a===41?t.check(to,o,i)(a):Du(a)?r(a):cm(a)?t.check(to,r,i)(a):(t.consume(a),n))}function i(a){return t.consume(a),n}function o(a){return e--,e<0?r(a):i(a)}}function pk(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return Jt(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return Du(a)?r(a):e(a)}}function dk(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return cm(o)?(t.consume(o),i):Du(o)?r(o):e(o)}}function cm(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 Du(t){return t===null||t===60||Ve(t)}function im(t){return t===43||t===45||t===46||t===95||Pt(t)}function fm(t){return t===null||t===40||t===42||t===95||t===126||Ve(t)}function Nu(t){return t===null||!Jt(t)}function pm(t){return t!==47&&Nu(t)}function Ru(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 mk={tokenize:vk,partial:!0};function Lu(){return{document:{[91]:{tokenize:bk,continuation:{tokenize:$k},exit:wk}},text:{[91]:{tokenize:yk},[93]:{add:"after",tokenize:hk,resolveTo:gk}}}}function hk(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let c=n.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return u;function u(c){if(!a||!a._balanced)return e(c);let m=Qt(n.sliceSerialize({start:a.end,end:n.now()}));return m.charCodeAt(0)!==94||!o.includes(m.slice(1))?e(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),r(c))}}function gk(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 i={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[t[e+1],t[e+2],["enter",i,r],t[e+3],t[e+4],["enter",o,r],["exit",o,r],["enter",a,r],["enter",u,r],["exit",u,r],["exit",a,r],t[t.length-2],t[t.length-1],["exit",i,r]];return t.splice(e,t.length-e+1,...c),t}function yk(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return u;function u(v){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),c}function c(v){return v!==94?e(v):(t.enter("gfmFootnoteCallMarker"),t.consume(v),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(v){let w;return v===null||v===91||o++>999?e(v):v===93?a?(t.exit("chunkString"),w=t.exit("gfmFootnoteCallString"),i.includes(Qt(n.sliceSerialize(w)))?b(v):e(v)):e(v):(t.consume(v),Ve(v)||(a=!0),v===92?p:m)}function p(v){return v===91||v===92||v===93?(t.consume(v),o++,m):m(v)}function b(v){return t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function bk(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,u;return c;function c(P){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(P),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(P){return P===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(P),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),p):e(P)}function p(P){let N;return P===null||P===91||a>999?e(P):P===93?u?(N=t.exit("gfmFootnoteDefinitionLabelString"),o=Qt(n.sliceSerialize(N)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(P),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w):e(P):ae(P)?(t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),a++,p):(t.enter("chunkString").contentType="string",b(P))}function b(P){return P===null||ae(P)||P===91||P===93||a>999?(t.exit("chunkString"),p(P)):(Ve(P)||(u=!0),a++,t.consume(P),P===92?v:b)}function v(P){return P===91||P===92||P===93?(t.consume(P),a++,b):b(P)}function w(P){return P===58?(t.enter("definitionMarker"),t.consume(P),t.exit("definitionMarker"),ye(t,x,"gfmFootnoteDefinitionWhitespace")):e(P)}function x(P){return i.includes(o)||i.push(o),r(P)}}function $k(t,r,e){return t.check(pn,r,t.attempt(mk,r,e))}function wk(t){t.exit("gfmFootnoteDefinition")}function vk(t,r,e){let n=this;return ye(t,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?r(o):e(o)}}function ju(t={}){let r=t.singleTilde,e={tokenize:i,resolveAll:n};return r==null&&(r=!0),{text:{[126]:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function n(o,a){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},p={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},b=[["enter",m,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",p,a]];gt(b,b.length,0,Un(a.parser.constructs.insideSpan.null,o.slice(c+1,u),a)),gt(b,b.length,0,[["exit",p,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",m,a]]),gt(o,c-1,u-c+3,b),u=c+b.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function i(o,a,u){let c=this.previous,m=this.events,p=0;return b;function b(w){return c===126&&m[m.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),v(w))}function v(w){let x=Yi(c);if(w===126)return p>1?u(w):(o.consume(w),p++,v);if(p<2&&!r)return u(w);let P=o.exit("strikethroughSequenceTemporary"),N=Yi(w);return P._open=!N||N===2&&Boolean(x),P._close=!x||x===2&&Boolean(N),a(w)}}}var Bu={flow:{null:{tokenize:xk,resolve:kk}}},dm={tokenize:Ck,partial:!0};function kk(t,r){let e=-1,n,i,o,a,u,c,m;for(;++e<t.length;){let p=t[e][1];if(o&&(p.type==="temporaryTableCellContent"&&(a=a||e,u=e),(p.type==="tableCellDivider"||p.type==="tableRow")&&u)){let b={type:"tableContent",start:t[a][1].start,end:t[u][1].end},v={type:"chunkText",start:b.start,end:b.end,contentType:"text"};t.splice(a,u-a+1,["enter",b,r],["enter",v,r],["exit",v,r],["exit",b,r]),e-=u-a-3,a=void 0,u=void 0}if(t[e][0]==="exit"&&c!==void 0&&c+(m?0:1)<e&&(p.type==="tableCellDivider"||p.type==="tableRow"&&(c+3<e||t[c][1].type!=="whitespace"))){let b={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[c][1].start,end:t[e][1].end};t.splice(e+(p.type==="tableCellDivider"?1:0),0,["exit",b,r]),t.splice(c,0,["enter",b,r]),e+=2,c=e+1,m=!0}p.type==="tableRow"&&(o=t[e][0]==="enter",o&&(c=e+1,m=!1)),p.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(c=e+1,m=!1)),p.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function xk(t,r,e){let n=this,i=[],o=0,a,u;return c;function c(U){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),U===124?m(U):(o++,t.enter("temporaryTableCellContent"),v(U))}function m(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),a=!0,p}function p(U){return U===null||ae(U)?x(U):Ie(U)?(t.enter("whitespace"),t.consume(U),b):(a&&(a=void 0,o++),U===124?m(U):(t.enter("temporaryTableCellContent"),v(U)))}function b(U){return Ie(U)?(t.consume(U),b):(t.exit("whitespace"),p(U))}function v(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),p(U)):(t.consume(U),U===92?w:v)}function w(U){return U===92||U===124?(t.consume(U),v):v(U)}function x(U){if(U===null)return e(U);t.exit("tableRow"),t.exit("tableHead");let st=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:He,partial:!0},function(Re){return n.interrupt=st,t.enter("tableDelimiterRow"),P(Re)},function(Re){return n.interrupt=st,e(Re)})(U)}function P(U){return U===null||ae(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,i.push("none"),D):U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i.push("left"),X):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),P):e(U)}function N(U){return Ie(U)?(t.consume(U),N):(t.exit("whitespace"),P(U))}function D(U){return U===45?(t.consume(U),D):(t.exit("tableDelimiterFiller"),U===58?(t.enter("tableDelimiterAlignment"),t.consume(U),t.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",ee):P(U))}function X(U){return U===45?(t.enter("tableDelimiterFiller"),t.consume(U),u=!0,D):e(U)}function ee(U){return U===null||ae(U)?de(U):Ie(U)?(t.enter("whitespace"),t.consume(U),N):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),P):e(U)}function de(U){return t.exit("tableDelimiterRow"),!u||o!==i.length?e(U):U===null?fe(U):t.check(dm,fe,t.attempt({tokenize:He,partial:!0},ye(t,Z,"linePrefix",4),fe))(U)}function fe(U){return t.exit("table"),r(U)}function Z(U){return t.enter("tableBody"),me(U)}function me(U){return t.enter("tableRow"),U===124?we(U):(t.enter("temporaryTableCellContent"),xe(U))}function we(U){return t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),ve}function ve(U){return U===null||ae(U)?ue(U):Ie(U)?(t.enter("whitespace"),t.consume(U),Fe):U===124?we(U):(t.enter("temporaryTableCellContent"),xe(U))}function Fe(U){return Ie(U)?(t.consume(U),Fe):(t.exit("whitespace"),ve(U))}function xe(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),ve(U)):(t.consume(U),U===92?Ce:xe)}function Ce(U){return U===92||U===124?(t.consume(U),xe):xe(U)}function ue(U){return t.exit("tableRow"),U===null?$e(U):t.check(dm,$e,t.attempt({tokenize:He,partial:!0},ye(t,me,"linePrefix",4),$e))(U)}function $e(U){return t.exit("tableBody"),fe(U)}function He(U,st,Re){return et;function et(O){return U.enter("lineEnding"),U.consume(O),U.exit("lineEnding"),ye(U,Ue,"linePrefix")}function Ue(O){if(n.parser.lazy[n.now().line]||O===null||ae(O))return Re(O);let q=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&q&&q[1].type==="linePrefix"&&q[2].sliceSerialize(q[1],!0).length>=4?Re(O):(n._gfmTableDynamicInterruptHack=!0,U.check(n.parser.constructs.flow,function(Bt){return n._gfmTableDynamicInterruptHack=!1,Re(Bt)},function(Bt){return n._gfmTableDynamicInterruptHack=!1,st(Bt)})(O))}}}function Ck(t,r,e){let n=0;return i;function i(a){return t.enter("check"),t.consume(a),o}function o(a){return a===-1||a===32?(t.consume(a),n++,n===4?r:o):a===null||Ve(a)?r(a):e(a)}}var Ek={tokenize:_k},zu={text:{[91]:Ek}};function _k(t,r,e){let n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?e(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),o)}function o(u){return Ve(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):e(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:Ak},r,e)):e(u)}}function Ak(t,r,e){let n=this;return ye(t,i,"whitespace");function i(o){let a=n.events[n.events.length-1];return(a&&a[1].type==="whitespace"||ae(o))&&o!==null?r(o):e(o)}}function mm(t){return Hs([qu,Lu(),ju(t),Bu,zu])}function Mu(t,r){let e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function Vu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ho=function(t){if(t==null)return Ik;if(typeof t=="string")return Pk(t);if(typeof t=="object")return Array.isArray(t)?Sk(t):Tk(t);if(typeof t=="function")return na(t);throw new Error("Expected function, string, or object as test")};function Sk(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Ho(t[e]);return na(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function Tk(t){return na(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function Pk(t){return na(r);function r(e){return e&&e.type===t}}function na(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function Ik(){return!0}function hm(t){return"\x1B[33m"+t+"\x1B[39m"}var Fk=!0,Ok="skip",gm=!1,ym=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Ho(r),o=n?-1:1;a(t,null,[])();function a(u,c,m){let p=typeof u=="object"&&u!==null?u:{},b;return typeof p.type=="string"&&(b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0,Object.defineProperty(v,"name",{value:"node ("+hm(p.type+(b?"<"+b+">":""))+")"})),v;function v(){let w=[],x,P,N;if((!r||i(u,c,m[m.length-1]||null))&&(w=qk(e(u,m)),w[0]===gm))return w;if(u.children&&w[0]!==Ok)for(P=(n?u.children.length:-1)+o,N=m.concat(u);P>-1&&P<u.children.length;){if(x=a(u.children[P],P,N)(),x[0]===gm)return x;P=typeof x[1]=="number"?x[1]:P+o}return w}}};function qk(t){return Array.isArray(t)?t:typeof t=="number"?[Fk,t]:[t]}var Dk={}.hasOwnProperty,Uu=function(t,r,e,n){let i,o;typeof r=="string"||r instanceof RegExp?(o=[[r,e]],i=n):(o=r,i=e),i||(i={});let a=Ho(i.ignore||[]),u=Nk(o),c=-1;for(;++c<u.length;)ym(t,"text",m);return t;function m(b,v){let w=-1,x;for(;++w<v.length;){let P=v[w];if(a(P,x?x.children.indexOf(P):void 0,x))return;x=P}if(x)return p(b,v)}function p(b,v){let w=v[v.length-1],x=u[c][0],P=u[c][1],N=0,D=w.children.indexOf(b),X=!1,ee=[],de;x.lastIndex=0;let fe=x.exec(b.value);for(;fe;){de=fe.index;let Z={index:fe.index,input:fe.input,stack:[...v,b]},me=P(...fe,Z);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(N!==de&&ee.push({type:"text",value:b.value.slice(N,de)}),Array.isArray(me)?ee.push(...me):me&&ee.push(me),N=de+fe[0].length,X=!0),!x.global)break;fe=x.exec(b.value)}return X?(N<b.value.length&&ee.push({type:"text",value:b.value.slice(N)}),w.children.splice(D,1,...ee)):ee=[b],D+ee.length}};function Nk(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([bm(t[e][0]),$m(t[e][1])])}else{let e;for(e in t)Dk.call(t,e)&&r.push([bm(e),$m(t[e])])}return r}function bm(t){return typeof t=="string"?new RegExp(Vu(t),"g"):t}function $m(t){return typeof t=="function"?t:()=>t}var Hu="phrasing",Gu=["autolink","link","image","label"],wm={transforms:[Mk],enter:{literalAutolink:Rk,literalAutolinkEmail:Ku,literalAutolinkHttp:Ku,literalAutolinkWww:Ku},exit:{literalAutolink:zk,literalAutolinkEmail:Bk,literalAutolinkHttp:Lk,literalAutolinkWww:jk}},vm={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Gu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Gu},{character:":",before:"[ps]",after:"\\/",inConstruct:Hu,notInConstruct:Gu}]};function Rk(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Ku(t){this.config.enter.autolinkProtocol.call(this,t)}function Lk(t){this.config.exit.autolinkProtocol.call(this,t)}function jk(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function Bk(t){this.config.exit.autolinkEmail.call(this,t)}function zk(t){this.exit(t)}function Mk(t){Uu(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Vk],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Uk]],{ignore:["link","linkReference"]})}function Vk(t,r,e,n,i){let o="";if(!km(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!Hk(e)))return!1;let a=Gk(e+n);if(!a[0])return!1;let u={type:"link",title:null,url:o+r+a[0],children:[{type:"text",value:r+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function Uk(t,r,e,n){return!km(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function Hk(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 Gk(t){let r=/[!"&'),.:;<>?\]}]+$/.exec(t),e,n,i,o;if(r)for(t=t.slice(0,r.index),o=r[0],e=o.indexOf(")"),n=Mu(t,"("),i=Mu(t,")");e!==-1&&n>i;)t+=o.slice(0,e+1),o=o.slice(e+1),e=o.indexOf(")"),i++;return[t,o]}function km(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||$i(e)||wi(e))&&(!r||e!==47)}function Wu(t){return t.label||!t.identifier?t.label||"":ra(t.identifier)}function yr(t){let r=t||{},e=r.now||{},n=r.lineShift||0,i=e.line||1,o=e.column||1;return{move:c,current:a,shift:u};function a(){return{now:{line:i,column:o},lineShift:n}}function u(m){n+=m}function c(m=""){let p=m.split(/\r?\n|\r/g),b=p[p.length-1];return i+=p.length-1,o=p.length===1?o+b.length:1+b.length+n,m}}function ia(t,r,e){let n=r.indexStack,i=t.children||[],o=yr(e),a=[],u=-1;for(n.push(-1);++u<i.length;){let m=i[u];n[n.length-1]=u,a.push(o.move(r.handle(m,t,r,{before:`
20
20
  `,after:`
21
21
  `,...o.current()}))),m.type!=="list"&&(r.bulletLastUsed=void 0),u<i.length-1&&a.push(o.move(c(m,i[u+1])))}return n.pop(),a.join("");function c(m,p){let b=r.join.length;for(;b--;){let v=r.join[b](m,p,t,r);if(v===!0||v===1)break;if(typeof v=="number")return`
22
22
  `.repeat(1+v);if(v===!1)return`
@@ -25,11 +25,11 @@ var Hh=Object.create;var gs=Object.defineProperty;var Gh=Object.getOwnPropertyDe
25
25
 
26
26
  `}return`
27
27
 
28
- `}}var pb=/\r?\n|\r/g;function Fs(t,r){let e=[],n=0,i=0,o;for(;o=pb.exec(t);)a(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,i++;return a(t.slice(n)),e.join("");function a(u){e.push(r(u,i,!u))}}function qs(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 Yf(t,r){return Xf(t,r.inConstruct,!0)&&!Xf(t,r.notInConstruct,!1)}function Xf(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 Cl(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),i=[],o=[],a={},u=-1;for(;++u<t.unsafe.length;){let p=t.unsafe[u];if(!Yf(t.stack,p))continue;let b=qs(p),v;for(;v=b.exec(n);){let w="before"in p||Boolean(p.atBreak),_="after"in p,T=v.index+(w?v[1].length:0);i.includes(T)?(a[T].before&&!w&&(a[T].before=!1),a[T].after&&!_&&(a[T].after=!1)):(i.push(T),a[T]={before:w,after:_})}}i.sort(db);let c=e.before?e.before.length:0,m=n.length-(e.after?e.after.length:0);for(u=-1;++u<i.length;){let p=i[u];p<c||p>=m||p+1<m&&i[u+1]===p+1&&a[p].after&&!a[p+1].before&&!a[p+1].after||i[u-1]===p-1&&a[p].before&&!a[p-1].before&&!a[p-1].after||(c!==p&&o.push(ep(n.slice(c,p),"\\")),c=p,/[!-/:-@[-`{-~]/.test(n.charAt(p))&&(!e.encode||!e.encode.includes(n.charAt(p)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(p).toString(16).toUpperCase()+";"),c++))}return o.push(ep(n.slice(c,m),e.after)),o.join("")}function db(t,r){return t-r}function ep(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,u=0,c;for(;c=e.exec(o);)n.push(c.index);for(;++a<n.length;)u!==n[a]&&i.push(t.slice(u,n[a])),i.push("\\"),u=n[a];return i.push(t.slice(u)),i.join("")}function tp(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:u,gfmFootnoteCallString:a}};function t(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function r(){this.buffer()}function e(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(c)).toLowerCase()}function n(c){this.exit(c)}function i(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function o(){this.buffer()}function a(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(c)).toLowerCase()}function u(c){this.exit(c)}}function rp(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,i,o,a){let u=gr(a),c=u.move("[^"),m=o.enter("footnoteReference"),p=o.enter("reference");return c+=u.move(Cl(o,_l(n),{...u.current(),before:c,after:"]"})),p(),m(),c+=u.move("]"),c}function r(){return"["}function e(n,i,o,a){let u=gr(a),c=u.move("[^"),m=o.enter("footnoteDefinition"),p=o.enter("label");return c+=u.move(Cl(o,_l(n),{...u.current(),before:c,after:"]"})),p(),c+=u.move("]:"+(n.children&&n.children.length>0?" ":"")),u.shift(4),c+=u.move(Fs(Os(n,o,u.current()),b)),m(),c;function b(v,w,_){return w?(_?"":" ")+v:v}}}function Ds(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,u=e.before;n.push(-1);let c=gr(e);for(;++a<i.length;){let m=i[a],p;if(n[n.length-1]=a,a+1<i.length){let b=r.handle.handlers[i[a+1].type];b&&b.peek&&(b=b.peek),p=b?b(i[a+1],t,r,{before:"",after:"",...c.current()}).charAt(0):""}else p=e.after;o.length>0&&(u==="\r"||u===`
29
- `)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",c=gr(e),c.move(o.join(""))),o.push(c.move(r.handle(m,t,r,{...c.current(),before:u,after:p}))),u=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var np={canContainEols:["delete"],enter:{strikethrough:mb},exit:{strikethrough:hb}},ip={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:op}};op.peek=gb;function mb(t){this.enter({type:"delete",children:[]},t)}function hb(t){this.exit(t)}function op(t,r,e,n){let i=gr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=Ds(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function gb(){return"~"}xl.peek=yb;function xl(t,r,e){let n=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let a=e.unsafe[o],u=qs(a),c;if(!!a.atBreak)for(;c=u.exec(n);){let m=c.index;n.charCodeAt(m)===10&&n.charCodeAt(m-1)===13&&m--,n=n.slice(0,m)+" "+n.slice(c.index+1)}}return i+n+i}function yb(){return"`"}function ap(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||vb,i=[],o=[],a=[],u=[],c=0,m=-1;for(;++m<t.length;){let _=[],T=[],N=-1;for(t[m].length>c&&(c=t[m].length);++N<t[m].length;){let D=bb(t[m][N]);if(r.alignDelimiters!==!1){let Y=n(D);T[N]=Y,(u[N]===void 0||Y>u[N])&&(u[N]=Y)}_.push(D)}o[m]=_,a[m]=T}let p=-1;if(typeof e=="object"&&"length"in e)for(;++p<c;)i[p]=sp(e[p]);else{let _=sp(e);for(;++p<c;)i[p]=_}p=-1;let b=[],v=[];for(;++p<c;){let _=i[p],T="",N="";_===99?(T=":",N=":"):_===108?T=":":_===114&&(N=":");let D=r.alignDelimiters===!1?1:Math.max(1,u[p]-T.length-N.length),Y=T+"-".repeat(D)+N;r.alignDelimiters!==!1&&(D=T.length+D+N.length,D>u[p]&&(u[p]=D),v[p]=D),b[p]=Y}o.splice(1,0,b),a.splice(1,0,v),m=-1;let w=[];for(;++m<o.length;){let _=o[m],T=a[m];p=-1;let N=[];for(;++p<c;){let D=_[p]||"",Y="",ee="";if(r.alignDelimiters!==!1){let de=u[p]-(T[p]||0),fe=i[p];fe===114?Y=" ".repeat(de):fe===99?de%2?(Y=" ".repeat(de/2+.5),ee=" ".repeat(de/2-.5)):(Y=" ".repeat(de/2),ee=Y):ee=" ".repeat(de)}r.delimiterStart!==!1&&!p&&N.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&D==="")&&(r.delimiterStart!==!1||p)&&N.push(" "),r.alignDelimiters!==!1&&N.push(Y),N.push(D),r.alignDelimiters!==!1&&N.push(ee),r.padding!==!1&&N.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&N.push("|")}w.push(r.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return w.join(`
30
- `)}function bb(t){return t==null?"":String(t)}function vb(t){return t.length}function sp(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 Al={enter:{table:$b,tableData:lp,tableHeader:lp,tableRow:kb},exit:{codeText:_b,table:wb,tableData:El,tableHeader:El,tableRow:El}};function $b(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function wb(t){this.exit(t),this.setData("inTable")}function kb(t){this.enter({type:"tableRow",children:[]},t)}function El(t){this.exit(t)}function lp(t){this.enter({type:"tableCell",children:[]},t)}function _b(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,Cb));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function Cb(t,r){return r==="|"?r:t}function Sl(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,i=r.stringLength,o=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
31
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:u,tableCell:c,inlineCode:v}};function a(w,_,T,N){return m(p(w,T,N),w.align)}function u(w,_,T,N){let D=b(w,T,N),Y=m([D]);return Y.slice(0,Y.indexOf(`
32
- `))}function c(w,_,T,N){let D=T.enter("tableCell"),Y=T.enter("phrasing"),ee=Ds(w,T,{...N,before:o,after:o});return Y(),D(),ee}function m(w,_){return ap(w,{align:_,alignDelimiters:n,padding:e,stringLength:i})}function p(w,_,T){let N=w.children,D=-1,Y=[],ee=_.enter("table");for(;++D<N.length;)Y[D]=b(N[D],_,T);return ee(),Y}function b(w,_,T){let N=w.children,D=-1,Y=[],ee=_.enter("tableRow");for(;++D<N.length;)Y[D]=c(N[D],w,_,T);return ee(),Y}function v(w,_,T){let N=xl(w,_,T);return T.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function up(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 cp(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 fp(t,r,e,n){let i=cp(e),o=e.bulletCurrent||up(e);r&&r.type==="list"&&r.ordered&&(o=(typeof r.start=="number"&&r.start>-1?r.start:1)+(e.options.incrementListMarker===!1?0:r.children.indexOf(t))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(a=Math.ceil(a/4)*4);let u=gr(n);u.move(o+" ".repeat(a-o.length)),u.shift(a);let c=e.enter("listItem"),m=Fs(Os(t,e,u.current()),p);return c(),m;function p(b,v,w){return v?(w?"":" ".repeat(a))+b:(w?o:o+" ".repeat(a-o.length))+b}}var dp={exit:{taskListCheckValueChecked:pp,taskListCheckValueUnchecked:pp,paragraph:xb}},mp={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Eb}};function pp(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function xb(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,i=e.children[0],o=-1,a;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&i&&i.type==="text"){for(;++o<n.length;){let u=n[o];if(u.type==="paragraph"){a=u;break}}a===e&&(i.value=i.value.slice(1),i.value.length===0?e.children.shift():e.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}this.exit(t)}function Eb(t,r,e,n){let i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",u=gr(n);o&&u.move(a);let c=fp(t,r,e,{...n,...u.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),c;function m(p){return p+a}}function Pl(){return[Zf,tp(),np,Al,dp]}function Tl(t){return{extensions:[Jf,rp(),ip,Sl(t),mp]}}function Il(t={}){let r=this.data();e("micromarkExtensions",Vf(t)),e("fromMarkdownExtensions",Pl()),e("toMarkdownExtensions",Tl(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var wc=Cr(Vl());var hh=Cr(eh()),W1=Cr(ih()),zT=Cr(lh());var{makeRule:TT,makePlug:IT}=So();var bc=Cr(require("crypto"),1);var uh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var V1=128,Fi,uo,U1=t=>{!Fi||Fi.length<t?(Fi=Buffer.allocUnsafe(t*V1),bc.default.randomFillSync(Fi),uo=0):uo+t>Fi.length&&(bc.default.randomFillSync(Fi),uo=0),uo+=t};var ch=(t=21)=>{U1(t);let r="";for(let e=uo-t;e<uo;e++)r+=uh[Fi[e]&63];return r};var ns=t=>({...t}),vc=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},$r=(t,r)=>{let e="block",n=t.name,i={id:ch(),margin:"",...t};var o=ns({type:e,...i,content:vc(r)});return o};var ba=(t,r)=>ns({type:"fcode",...t,content:r}),$c=(t,r)=>ns({...t,type:"fcode",name:"L",content:vc(r)}),fh=t=>ns({type:"fcode",name:"Delete",content:vc(t)}),va=t=>ns({type:"verbatim",value:t});var ph=t=>({type:"block",name:"caption",content:t}),dh=(t,r)=>({type:"image",src:t,alt:r}),mh=({margin:t=""},r)=>$r({name:"root",margin:t},r);var H1=Cr(zn());var G1=Cr(yi());var UT=new hh.default({strict:!0,allowUnionTypes:!0});var gh=(t,{lineOffset:r}={lineOffset:0})=>{let e=Ha().use(Of).use(Il).parse(t),n={},i=(u=>c=>{let{start:m,end:p}=c;return{start:{...m,line:m.line+u},end:{...p,line:p.line+u}}})(r);(0,wc.default)({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{m.children&&b(m.children,{...p})}}).use({":definition":(u,c)=>(m,p,b)=>{n[m.identifier]=m}}).run(e);let o=[];return(0,wc.default)({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(m,null,2)),m.children&&b(m.children,{...p})}}).use({":root":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return mh({},b(v,p))},":heading":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({type:"block",level:m.depth,name:"head",location:i(w)},b(v,p))},":text":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return m.value},":list":(u,c)=>(m,p,b)=>{let v=p.listLevel||0,{children:w,position:_,...T}=m;return $r({type:"list",level:v+1,list:m.ordered?"ordered":"itemized"},b(w,{...p,listLevel:v+1,ordered:m.ordered}))},":listItem":(u,c)=>(m,p,b)=>{let v=p.listLevel||0,{children:w,position:_,...T}=m;return $r({name:"item",type:"block",level:p.listLevel,location:i(_)},b(w,{...p,listLevel:v,ordered:m.ordered}))},":paragraph":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({type:"para",location:i(w),text:"text",margin:""},b(v,{...p}))},":linkReference":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m,T=n[_.identifier],N=(T==null?void 0:T.url)||"";return $c({meta:N},b(v,{...p}))},":definition":(u,c)=>(m,p,b)=>null,":inlineCode":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return ba({name:"C"},[m.value])},":strong":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return ba({name:"B"},b(v,{...p}))},":emphasis":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return ba({name:"I"},b(v,{...p}))},":link":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $c({meta:m.url},b(v,{...p}))},":html":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({type:"block",name:"Html",location:i(w)},[va(m.value)])},":code":(u,c)=>(m,p,b)=>{let{children:v,position:w,lang:_,meta:T,...N}=m;if(_==="mermaid"||_==="diagram")return $r({type:"block",name:"Diagram",config:[],location:i(w)},[va(m.value)]);let D=[];return _&&D.push({name:"lang",value:_,type:"string"}),T&&D.push({name:"meta",value:T,type:"string"}),$r({type:"block",name:"code",config:D,location:i(w)},[va(m.value)])},":image":(u,c)=>(m,p,b)=>{let{title:v,alt:w,url:_,position:T,...N}=m;return $r({type:"block",name:"Image",config:[],location:i(T)},[dh(_,w),ph([v])])},":thematicBreak":(u,c)=>(m,p,b)=>null,":blockquote":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({name:"nested",location:i(w)},b(v,{...p}))},":table":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({name:"table",location:i(w)},b(v,{...p}))},":tableRow":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({name:"table_row",location:i(w)},b(v,{...p}))},":tableCell":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return $r({name:"table_cell",location:i(w)},b(v,{...p}))},":delete":(u,c)=>(m,p,b)=>{let{children:v,position:w,..._}=m;return fh(b(v,{...p}))},":break":(u,c)=>(m,p,b)=>null}).run(e).interator};var yh=Cr(Ml()),kc={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let i=e.content[0];if(i&&typeof i!="string"&&"location"in e&&"value"in i){let o=e.location.start.line;return{...e,content:gh(i,{lineOffset:o})}}return e}},toJSX:t=>yh.content},Z1={Markdown:kc},J1=kc;0&&(module.exports={PluginRegister,plugin});
28
+ `}}var Kk=/\r?\n|\r/g;function oa(t,r){let e=[],n=0,i=0,o;for(;o=Kk.exec(t);)a(t.slice(n,o.index)),e.push(o[0]),n=o.index+o[0].length,i++;return a(t.slice(n)),e.join("");function a(u){e.push(r(u,i,!u))}}function sa(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 Cm(t,r){return xm(t,r.inConstruct,!0)&&!xm(t,r.notInConstruct,!1)}function xm(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 Zu(t,r,e){let n=(e.before||"")+(r||"")+(e.after||""),i=[],o=[],a={},u=-1;for(;++u<t.unsafe.length;){let p=t.unsafe[u];if(!Cm(t.stack,p))continue;let b=sa(p),v;for(;v=b.exec(n);){let w="before"in p||Boolean(p.atBreak),x="after"in p,P=v.index+(w?v[1].length:0);i.includes(P)?(a[P].before&&!w&&(a[P].before=!1),a[P].after&&!x&&(a[P].after=!1)):(i.push(P),a[P]={before:w,after:x})}}i.sort(Wk);let c=e.before?e.before.length:0,m=n.length-(e.after?e.after.length:0);for(u=-1;++u<i.length;){let p=i[u];p<c||p>=m||p+1<m&&i[u+1]===p+1&&a[p].after&&!a[p+1].before&&!a[p+1].after||i[u-1]===p-1&&a[p].before&&!a[p-1].before&&!a[p-1].after||(c!==p&&o.push(Em(n.slice(c,p),"\\")),c=p,/[!-/:-@[-`{-~]/.test(n.charAt(p))&&(!e.encode||!e.encode.includes(n.charAt(p)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(p).toString(16).toUpperCase()+";"),c++))}return o.push(Em(n.slice(c,m),e.after)),o.join("")}function Wk(t,r){return t-r}function Em(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,u=0,c;for(;c=e.exec(o);)n.push(c.index);for(;++a<n.length;)u!==n[a]&&i.push(t.slice(u,n[a])),i.push("\\"),u=n[a];return i.push(t.slice(u)),i.join("")}function _m(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:u,gfmFootnoteCallString:a}};function t(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function r(){this.buffer()}function e(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Qt(this.sliceSerialize(c)).toLowerCase()}function n(c){this.exit(c)}function i(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function o(){this.buffer()}function a(c){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Qt(this.sliceSerialize(c)).toLowerCase()}function u(c){this.exit(c)}}function Am(){return t.peek=r,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e,footnoteReference:t}};function t(n,i,o,a){let u=yr(a),c=u.move("[^"),m=o.enter("footnoteReference"),p=o.enter("reference");return c+=u.move(Zu(o,Wu(n),{...u.current(),before:c,after:"]"})),p(),m(),c+=u.move("]"),c}function r(){return"["}function e(n,i,o,a){let u=yr(a),c=u.move("[^"),m=o.enter("footnoteDefinition"),p=o.enter("label");return c+=u.move(Zu(o,Wu(n),{...u.current(),before:c,after:"]"})),p(),c+=u.move("]:"+(n.children&&n.children.length>0?" ":"")),u.shift(4),c+=u.move(oa(ia(n,o,u.current()),b)),m(),c;function b(v,w,x){return w?(x?"":" ")+v:v}}}function aa(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,u=e.before;n.push(-1);let c=yr(e);for(;++a<i.length;){let m=i[a],p;if(n[n.length-1]=a,a+1<i.length){let b=r.handle.handlers[i[a+1].type];b&&b.peek&&(b=b.peek),p=b?b(i[a+1],t,r,{before:"",after:"",...c.current()}).charAt(0):""}else p=e.after;o.length>0&&(u==="\r"||u===`
29
+ `)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",c=yr(e),c.move(o.join(""))),o.push(c.move(r.handle(m,t,r,{...c.current(),before:u,after:p}))),u=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var Sm={canContainEols:["delete"],enter:{strikethrough:Zk},exit:{strikethrough:Jk}},Tm={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Pm}};Pm.peek=Qk;function Zk(t){this.enter({type:"delete",children:[]},t)}function Jk(t){this.exit(t)}function Pm(t,r,e,n){let i=yr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=aa(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Qk(){return"~"}Ju.peek=Xk;function Ju(t,r,e){let n=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<e.unsafe.length;){let a=e.unsafe[o],u=sa(a),c;if(!!a.atBreak)for(;c=u.exec(n);){let m=c.index;n.charCodeAt(m)===10&&n.charCodeAt(m-1)===13&&m--,n=n.slice(0,m)+" "+n.slice(c.index+1)}}return i+n+i}function Xk(){return"`"}function Fm(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||e1,i=[],o=[],a=[],u=[],c=0,m=-1;for(;++m<t.length;){let x=[],P=[],N=-1;for(t[m].length>c&&(c=t[m].length);++N<t[m].length;){let D=Yk(t[m][N]);if(r.alignDelimiters!==!1){let X=n(D);P[N]=X,(u[N]===void 0||X>u[N])&&(u[N]=X)}x.push(D)}o[m]=x,a[m]=P}let p=-1;if(typeof e=="object"&&"length"in e)for(;++p<c;)i[p]=Im(e[p]);else{let x=Im(e);for(;++p<c;)i[p]=x}p=-1;let b=[],v=[];for(;++p<c;){let x=i[p],P="",N="";x===99?(P=":",N=":"):x===108?P=":":x===114&&(N=":");let D=r.alignDelimiters===!1?1:Math.max(1,u[p]-P.length-N.length),X=P+"-".repeat(D)+N;r.alignDelimiters!==!1&&(D=P.length+D+N.length,D>u[p]&&(u[p]=D),v[p]=D),b[p]=X}o.splice(1,0,b),a.splice(1,0,v),m=-1;let w=[];for(;++m<o.length;){let x=o[m],P=a[m];p=-1;let N=[];for(;++p<c;){let D=x[p]||"",X="",ee="";if(r.alignDelimiters!==!1){let de=u[p]-(P[p]||0),fe=i[p];fe===114?X=" ".repeat(de):fe===99?de%2?(X=" ".repeat(de/2+.5),ee=" ".repeat(de/2-.5)):(X=" ".repeat(de/2),ee=X):ee=" ".repeat(de)}r.delimiterStart!==!1&&!p&&N.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&D==="")&&(r.delimiterStart!==!1||p)&&N.push(" "),r.alignDelimiters!==!1&&N.push(X),N.push(D),r.alignDelimiters!==!1&&N.push(ee),r.padding!==!1&&N.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&N.push("|")}w.push(r.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return w.join(`
30
+ `)}function Yk(t){return t==null?"":String(t)}function e1(t){return t.length}function Im(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 Xu={enter:{table:t1,tableData:Om,tableHeader:Om,tableRow:n1},exit:{codeText:i1,table:r1,tableData:Qu,tableHeader:Qu,tableRow:Qu}};function t1(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function r1(t){this.exit(t),this.setData("inTable")}function n1(t){this.enter({type:"tableRow",children:[]},t)}function Qu(t){this.exit(t)}function Om(t){this.enter({type:"tableCell",children:[]},t)}function i1(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,o1));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function o1(t,r){return r==="|"?r:t}function Yu(t){let r=t||{},e=r.tableCellPadding,n=r.tablePipeAlign,i=r.stringLength,o=e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
31
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:u,tableCell:c,inlineCode:v}};function a(w,x,P,N){return m(p(w,P,N),w.align)}function u(w,x,P,N){let D=b(w,P,N),X=m([D]);return X.slice(0,X.indexOf(`
32
+ `))}function c(w,x,P,N){let D=P.enter("tableCell"),X=P.enter("phrasing"),ee=aa(w,P,{...N,before:o,after:o});return X(),D(),ee}function m(w,x){return Fm(w,{align:x,alignDelimiters:n,padding:e,stringLength:i})}function p(w,x,P){let N=w.children,D=-1,X=[],ee=x.enter("table");for(;++D<N.length;)X[D]=b(N[D],x,P);return ee(),X}function b(w,x,P){let N=w.children,D=-1,X=[],ee=x.enter("tableRow");for(;++D<N.length;)X[D]=c(N[D],w,x,P);return ee(),X}function v(w,x,P){let N=Ju(w,x,P);return P.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function qm(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 Dm(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 Nm(t,r,e,n){let i=Dm(e),o=e.bulletCurrent||qm(e);r&&r.type==="list"&&r.ordered&&(o=(typeof r.start=="number"&&r.start>-1?r.start:1)+(e.options.incrementListMarker===!1?0:r.children.indexOf(t))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(a=Math.ceil(a/4)*4);let u=yr(n);u.move(o+" ".repeat(a-o.length)),u.shift(a);let c=e.enter("listItem"),m=oa(ia(t,e,u.current()),p);return c(),m;function p(b,v,w){return v?(w?"":" ".repeat(a))+b:(w?o:o+" ".repeat(a-o.length))+b}}var Lm={exit:{taskListCheckValueChecked:Rm,taskListCheckValueUnchecked:Rm,paragraph:s1}},jm={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:a1}};function Rm(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function s1(t){let r=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],n=r.children,i=e.children[0],o=-1,a;if(r&&r.type==="listItem"&&typeof r.checked=="boolean"&&i&&i.type==="text"){for(;++o<n.length;){let u=n[o];if(u.type==="paragraph"){a=u;break}}a===e&&(i.value=i.value.slice(1),i.value.length===0?e.children.shift():e.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}this.exit(t)}function a1(t,r,e,n){let i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",u=yr(n);o&&u.move(a);let c=Nm(t,r,e,{...n,...u.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),c;function m(p){return p+a}}function ec(){return[wm,_m(),Sm,Xu,Lm]}function tc(t){return{extensions:[vm,Am(),Tm,Yu(t),jm]}}function rc(t={}){let r=this.data();e("micromarkExtensions",mm(t)),e("fromMarkdownExtensions",ec()),e("toMarkdownExtensions",tc(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var la=(t,{lineOffset:r}={lineOffset:0})=>{let e=gu().use(nm).use(rc).parse(t),n={},i=(u=>c=>{let{start:m,end:p}=c;return{start:{...m,line:m.line+u},end:{...p,line:p.line+u}}})(r);Ro({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{m.children&&b(m.children,{...p})}}).use({":definition":(u,c)=>(m,p,b)=>{n[m.identifier]=m}}).run(e);let o=[];return Ro({processor:1}).use({"*:*":(u,c)=>(m,p,b)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(m,null,2)),m.children&&b(m.children,{...p})}}).use({":root":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Lp({},b(v,p))},":heading":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({type:"block",level:m.depth,name:"head",location:i(w)},b(v,p))},":text":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return m.value},":list":(u,c)=>(m,p,b)=>{let v=p.listLevel||0,{children:w,position:x,...P}=m;return gr({type:"list",level:v+1,list:m.ordered?"ordered":"itemized"},b(w,{...p,listLevel:v+1,ordered:m.ordered}))},":listItem":(u,c)=>(m,p,b)=>{let v=p.listLevel||0,{children:w,position:x,...P}=m;return gr({name:"item",type:"block",level:p.listLevel,location:i(x)},b(w,{...p,listLevel:v,ordered:m.ordered}))},":paragraph":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({type:"para",location:i(w),text:"text",margin:""},b(v,{...p}))},":linkReference":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m,P=n[x.identifier],N=(P==null?void 0:P.url)||"";return Yl({meta:N},b(v,{...p}))},":definition":(u,c)=>(m,p,b)=>null,":inlineCode":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Rs({name:"C"},[m.value])},":strong":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Rs({name:"B"},b(v,{...p}))},":emphasis":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Rs({name:"I"},b(v,{...p}))},":link":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Yl({meta:m.url},b(v,{...p}))},":html":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({type:"block",name:"Html",location:i(w)},[Ls(m.value)])},":code":(u,c)=>(m,p,b)=>{let{children:v,position:w,lang:x,meta:P,...N}=m;if(x==="mermaid"||x==="diagram")return gr({type:"block",name:"Diagram",config:[],location:i(w)},[Ls(m.value)]);let D=[];return x&&D.push({name:"lang",value:x,type:"string"}),P&&D.push({name:"meta",value:P,type:"string"}),gr({type:"block",name:"code",config:D,location:i(w)},[Ls(m.value)])},":image":(u,c)=>(m,p,b)=>{let{title:v,alt:w,url:x,position:P,...N}=m;return gr({type:"block",name:"Image",config:[],location:i(P)},[Rp(x,w),Np([v])])},":thematicBreak":(u,c)=>(m,p,b)=>null,":blockquote":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({name:"nested",location:i(w)},b(v,{...p}))},":table":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({name:"table",location:i(w)},b(v,{...p}))},":tableRow":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({name:"table_row",location:i(w)},b(v,{...p}))},":tableCell":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return gr({name:"table_cell",location:i(w)},b(v,{...p}))},":delete":(u,c)=>(m,p,b)=>{let{children:v,position:w,...x}=m;return Dp(b(v,{...p}))},":break":(u,c)=>(m,p,b)=>null}).run(e).interator};var nc={toAst:(t,r)=>(e,n)=>{if(typeof e!="string"&&"type"in e&&"content"in e&&e.type==="block"){let i=e.content[0];if(i&&typeof i!="string"&&"location"in e&&"value"in i){let o=e.location.start.line;return{...e,content:la(i,{lineOffset:o})}}return e}},toJSX:t=>Bn},l1={Markdown:nc},u1=nc;0&&(module.exports={PluginRegister,parseMd,plugin});
33
33
  /*!
34
34
  * Determine if an object is a Buffer
35
35
  *