@podlite/markdown 0.0.2 → 0.0.4

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/esm/index.js CHANGED
@@ -1,21 +1,21 @@
1
- var tg=Object.create;var ja=Object.defineProperty;var rg=Object.getOwnPropertyDescriptor;var ng=Object.getOwnPropertyNames;var ig=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var re=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),sg=(t,r)=>{for(var e in r)ja(t,e,{get:r[e],enumerable:!0})},ag=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ng(r))!og.call(t,i)&&i!==e&&ja(t,i,{get:()=>r[i],enumerable:!(n=rg(r,i))||n.enumerable});return t};var fn=(t,r,e)=>(e=t!=null?tg(ig(t)):{},ag(r||!t||!t.__esModule?ja(e,"default",{value:t,enumerable:!0}):e,t));var Df=re((Ak,Nf)=>{Nf.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Uf=re((Sk,Vf)=>{"use strict";var vs=Object.prototype.hasOwnProperty,zf=Object.prototype.toString,jf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Lf=function(r){return typeof Array.isArray=="function"?Array.isArray(r):zf.call(r)==="[object Array]"},qf=function(r){if(!r||zf.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)},Bf=function(r,e){jf&&e.name==="__proto__"?jf(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},Mf=function(r,e){if(e==="__proto__")if(vs.call(r,e)){if(Rf)return Rf(r,e).value}else return;return r[e]};Vf.exports=function t(){var r,e,n,i,o,a,u=arguments[0],f=1,m=arguments.length,p=!1;for(typeof u=="boolean"&&(p=u,u=arguments[1]||{},f=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});f<m;++f)if(r=arguments[f],r!=null)for(e in r)n=Mf(u,e),i=Mf(r,e),u!==i&&(p&&i&&(qf(i)||(o=Lf(i)))?(o?(o=!1,a=n&&Lf(n)?n:[]):a=n&&qf(n)?n:{},Bf(u,{name:e,newValue:t(p,a,i)})):typeof i<"u"&&Bf(u,{name:e,newValue:i}));return u}});var Wf=re((Ok,Kf)=>{Kf.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Io=re(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.makeRulesArray=ur.makeRule=ur.is=ur.makePlug=void 0;var Hv=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}},Kv=function(t){var r=Hv(t),e=r.name,n=r.type;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};ur.makePlug=Kv;function mp(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}ur.is=mp;var Wv=function(t,r){return e.rule=t,e.isFor=n,e.fn=r,e;function e(){}function n(i){return typeof i=="string"?!1:mp(t,i)}};ur.makeRule=Wv;var Gv=function(t,r){if(t instanceof Array)return t.reduce(function(i,o){return i.push.apply(i,(0,ur.makeRulesArray)(o)),i},[]);if(t instanceof Object){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push((0,ur.makeRule)((0,ur.makePlug)(n),t[n]));return e}return[(0,ur.makeRule)((0,ur.makePlug)(t),r)]};ur.makeRulesArray=Gv});var Tl=re(Oo=>{"use strict";var Fl=Oo&&Oo.__assign||function(){return Fl=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},Fl.apply(this,arguments)};Object.defineProperty(Oo,"__esModule",{value:!0});function hp(t){return Array.isArray(t)?t.reduce(function(r,e){return Array.isArray(e)?r.concat(hp(e)):r.concat(e)},[]):t}function Qv(t){function r(e,n){if(e instanceof Array)return hp(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)}),f=function(p,v,$){if(p===void 0&&(p=e),v===void 0&&(v=n),$===void 0&&($=r),u!==-1)a[u].fn(p,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,f)}else{var m=Fl({},e);if(m.hasOwnProperty("content"))return r(m.content,n)}}return r.rules=t,r}Oo.default=Qv});var Ep=re((hP,Nl)=>{"use strict";var Zi=typeof Reflect=="object"?Reflect:null,gp=Zi&&typeof Zi.apply=="function"?Zi.apply:function(r,e,n){return Function.prototype.apply.call(r,e,n)},js;Zi&&typeof Zi.ownKeys=="function"?js=Zi.ownKeys:Object.getOwnPropertySymbols?js=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:js=function(r){return Object.getOwnPropertyNames(r)};function Zv(t){console&&console.warn&&console.warn(t)}var vp=Number.isNaN||function(r){return r!==r};function Ze(){Ze.init.call(this)}Nl.exports=Ze;Nl.exports.once=e$;Ze.EventEmitter=Ze;Ze.prototype._events=void 0;Ze.prototype._eventsCount=0;Ze.prototype._maxListeners=void 0;var yp=10;function Rs(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ze,"defaultMaxListeners",{enumerable:!0,get:function(){return yp},set:function(t){if(typeof t!="number"||t<0||vp(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");yp=t}});Ze.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ze.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||vp(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function $p(t){return t._maxListeners===void 0?Ze.defaultMaxListeners:t._maxListeners}Ze.prototype.getMaxListeners=function(){return $p(this)};Ze.prototype.emit=function(r){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=r==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var f=o[r];if(f===void 0)return!1;if(typeof f=="function")gp(f,this,e);else for(var m=f.length,p=Cp(f,m),n=0;n<m;++n)gp(p[n],this,e);return!0};function bp(t,r,e,n){var i,o,a;if(Rs(e),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",r,e.listener?e.listener:e),o=t._events),a=o[r]),a===void 0)a=o[r]=e,++t._eventsCount;else if(typeof a=="function"?a=o[r]=n?[e,a]:[a,e]:n?a.unshift(e):a.push(e),i=$p(t),i>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=r,u.count=a.length,Zv(u)}return t}Ze.prototype.addListener=function(r,e){return bp(this,r,e,!1)};Ze.prototype.on=Ze.prototype.addListener;Ze.prototype.prependListener=function(r,e){return bp(this,r,e,!0)};function Jv(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wp(t,r,e){var n={fired:!1,wrapFn:void 0,target:t,type:r,listener:e},i=Jv.bind(n);return i.listener=e,n.wrapFn=i,i}Ze.prototype.once=function(r,e){return Rs(e),this.on(r,wp(this,r,e)),this};Ze.prototype.prependOnceListener=function(r,e){return Rs(e),this.prependListener(r,wp(this,r,e)),this};Ze.prototype.removeListener=function(r,e){var n,i,o,a,u;if(Rs(e),i=this._events,i===void 0)return this;if(n=i[r],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[r],i.removeListener&&this.emit("removeListener",r,n.listener||e));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===e||n[a].listener===e){u=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():Xv(n,o),n.length===1&&(i[r]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",r,u||e)}return this};Ze.prototype.off=Ze.prototype.removeListener;Ze.prototype.removeAllListeners=function(r){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[r],typeof e=="function")this.removeListener(r,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(r,e[i]);return this};function _p(t,r,e){var n=t._events;if(n===void 0)return[];var i=n[r];return i===void 0?[]:typeof i=="function"?e?[i.listener||i]:[i]:e?Yv(i):Cp(i,i.length)}Ze.prototype.listeners=function(r){return _p(this,r,!0)};Ze.prototype.rawListeners=function(r){return _p(this,r,!1)};Ze.listenerCount=function(t,r){return typeof t.listenerCount=="function"?t.listenerCount(r):kp.call(t,r)};Ze.prototype.listenerCount=kp;function kp(t){var r=this._events;if(r!==void 0){var e=r[t];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Ze.prototype.eventNames=function(){return this._eventsCount>0?js(this._events):[]};function Cp(t,r){for(var e=new Array(r),n=0;n<r;++n)e[n]=t[n];return e}function Xv(t,r){for(;r+1<t.length;r++)t[r]=t[r+1];t.pop()}function Yv(t){for(var r=new Array(t.length),e=0;e<r.length;++e)r[e]=t[e].listener||t[e];return r}function e$(t,r){return new Promise(function(e,n){function i(a){t.removeListener(r,o),n(a)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",i),e([].slice.call(arguments))}xp(t,r,o,{once:!0}),r!=="error"&&t$(t,i,{once:!0})})}function t$(t,r,e){typeof t.on=="function"&&xp(t,"error",r,e)}function xp(t,r,e,n){if(typeof t.on=="function")n.once?t.once(r,e):t.on(r,e);else if(typeof t.addEventListener=="function")t.addEventListener(r,function i(o){n.once&&t.removeEventListener(r,i),e(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Dl=re(xr=>{"use strict";var r$=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)}}(),n$=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]}),i$=xr&&xr.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),o$=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)&&n$(r,t,e);return i$(r,t),r},s$=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 a$=o$(Ep()),l$=function(t){r$(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(s$([],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}(a$.EventEmitter);xr.default=l$});var Sp=re((yP,Ap)=>{"use strict";function u$(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)}u$(hi,Error);hi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",v;for(v=0;v<m.parts.length;v++)p+=m.parts[v]instanceof Array?o(m.parts[v][0])+"-"+o(m.parts[v][1]):o(m.parts[v]);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),v,$;for(v=0;v<m.length;v++)p[v]=a(m[v]);if(p.sort(),p.length>0){for(v=1,$=1;v<p.length;v++)p[v-1]!==p[v]&&(p[$]=p[v],$++);p.length=$}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 f(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+f(r)+" found."};function f$(t,r){r=r!==void 0?r:{};var e={},n={Document:Af},i=Af,o=function(l){return l},a=function(){return!!r.podMode},u=function(l){return l},f=Bh(),m=function(){return{text:Fr(),type:"ambient",location:sr()}},p=/^[ \xA0\u2001\t\f\u2008]/,v=vt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),$=/^[ \t\f]/,w=vt([" "," ","\f"],!1,!1),k=/^[\n\r]/,I=vt([`
1
+ var tg=Object.create;var ja=Object.defineProperty;var rg=Object.getOwnPropertyDescriptor;var ng=Object.getOwnPropertyNames;var ig=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var re=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),sg=(t,r)=>{for(var e in r)ja(t,e,{get:r[e],enumerable:!0})},ag=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ng(r))!og.call(t,i)&&i!==e&&ja(t,i,{get:()=>r[i],enumerable:!(n=rg(r,i))||n.enumerable});return t};var fn=(t,r,e)=>(e=t!=null?tg(ig(t)):{},ag(r||!t||!t.__esModule?ja(e,"default",{value:t,enumerable:!0}):e,t));var jf=re((Ak,Df)=>{Df.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Hf=re((Sk,Uf)=>{"use strict";var vs=Object.prototype.hasOwnProperty,Vf=Object.prototype.toString,Rf=Object.defineProperty,Lf=Object.getOwnPropertyDescriptor,qf=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Vf.call(r)==="[object Array]"},Bf=function(r){if(!r||Vf.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)},Mf=function(r,e){Rf&&e.name==="__proto__"?Rf(r,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):r[e.name]=e.newValue},zf=function(r,e){if(e==="__proto__")if(vs.call(r,e)){if(Lf)return Lf(r,e).value}else return;return r[e]};Uf.exports=function t(){var r,e,n,i,o,a,u=arguments[0],f=1,m=arguments.length,p=!1;for(typeof u=="boolean"&&(p=u,u=arguments[1]||{},f=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});f<m;++f)if(r=arguments[f],r!=null)for(e in r)n=zf(u,e),i=zf(r,e),u!==i&&(p&&i&&(Bf(i)||(o=qf(i)))?(o?(o=!1,a=n&&qf(n)?n:[]):a=n&&Bf(n)?n:{},Mf(u,{name:e,newValue:t(p,a,i)})):typeof i<"u"&&Mf(u,{name:e,newValue:i}));return u}});var Gf=re((Ok,Wf)=>{Wf.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Io=re(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.makeRulesArray=ur.makeRule=ur.is=ur.makePlug=void 0;var Hv=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}},Kv=function(t){var r=Hv(t),e=r.name,n=r.type;return n&&n==="*"?{name:e}:e&&e==="*"?{type:n}:r};ur.makePlug=Kv;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}ur.is=hp;var Wv=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)}};ur.makeRule=Wv;var Gv=function(t,r){if(t instanceof Array)return t.reduce(function(i,o){return i.push.apply(i,(0,ur.makeRulesArray)(o)),i},[]);if(t instanceof Object){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push((0,ur.makeRule)((0,ur.makePlug)(n),t[n]));return e}return[(0,ur.makeRule)((0,ur.makePlug)(t),r)]};ur.makeRulesArray=Gv});var Tl=re(Oo=>{"use strict";var Fl=Oo&&Oo.__assign||function(){return Fl=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},Fl.apply(this,arguments)};Object.defineProperty(Oo,"__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 Qv(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)}),f=function(p,v,$){if(p===void 0&&(p=e),v===void 0&&(v=n),$===void 0&&($=r),u!==-1)a[u].fn(p,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,f)}else{var m=Fl({},e);if(m.hasOwnProperty("content"))return r(m.content,n)}}return r.rules=t,r}Oo.default=Qv});var Ap=re((hP,Nl)=>{"use strict";var Zi=typeof Reflect=="object"?Reflect:null,yp=Zi&&typeof Zi.apply=="function"?Zi.apply:function(r,e,n){return Function.prototype.apply.call(r,e,n)},js;Zi&&typeof Zi.ownKeys=="function"?js=Zi.ownKeys:Object.getOwnPropertySymbols?js=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:js=function(r){return Object.getOwnPropertyNames(r)};function Zv(t){console&&console.warn&&console.warn(t)}var $p=Number.isNaN||function(r){return r!==r};function Ze(){Ze.init.call(this)}Nl.exports=Ze;Nl.exports.once=e$;Ze.EventEmitter=Ze;Ze.prototype._events=void 0;Ze.prototype._eventsCount=0;Ze.prototype._maxListeners=void 0;var vp=10;function Rs(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ze,"defaultMaxListeners",{enumerable:!0,get:function(){return vp},set:function(t){if(typeof t!="number"||t<0||$p(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");vp=t}});Ze.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ze.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||$p(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function bp(t){return t._maxListeners===void 0?Ze.defaultMaxListeners:t._maxListeners}Ze.prototype.getMaxListeners=function(){return bp(this)};Ze.prototype.emit=function(r){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=r==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var f=o[r];if(f===void 0)return!1;if(typeof f=="function")yp(f,this,e);else for(var m=f.length,p=xp(f,m),n=0;n<m;++n)yp(p[n],this,e);return!0};function wp(t,r,e,n){var i,o,a;if(Rs(e),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",r,e.listener?e.listener:e),o=t._events),a=o[r]),a===void 0)a=o[r]=e,++t._eventsCount;else if(typeof a=="function"?a=o[r]=n?[e,a]:[a,e]:n?a.unshift(e):a.push(e),i=bp(t),i>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=r,u.count=a.length,Zv(u)}return t}Ze.prototype.addListener=function(r,e){return wp(this,r,e,!1)};Ze.prototype.on=Ze.prototype.addListener;Ze.prototype.prependListener=function(r,e){return wp(this,r,e,!0)};function Jv(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _p(t,r,e){var n={fired:!1,wrapFn:void 0,target:t,type:r,listener:e},i=Jv.bind(n);return i.listener=e,n.wrapFn=i,i}Ze.prototype.once=function(r,e){return Rs(e),this.on(r,_p(this,r,e)),this};Ze.prototype.prependOnceListener=function(r,e){return Rs(e),this.prependListener(r,_p(this,r,e)),this};Ze.prototype.removeListener=function(r,e){var n,i,o,a,u;if(Rs(e),i=this._events,i===void 0)return this;if(n=i[r],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[r],i.removeListener&&this.emit("removeListener",r,n.listener||e));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===e||n[a].listener===e){u=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():Xv(n,o),n.length===1&&(i[r]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",r,u||e)}return this};Ze.prototype.off=Ze.prototype.removeListener;Ze.prototype.removeAllListeners=function(r){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[r],typeof e=="function")this.removeListener(r,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(r,e[i]);return this};function kp(t,r,e){var n=t._events;if(n===void 0)return[];var i=n[r];return i===void 0?[]:typeof i=="function"?e?[i.listener||i]:[i]:e?Yv(i):xp(i,i.length)}Ze.prototype.listeners=function(r){return kp(this,r,!0)};Ze.prototype.rawListeners=function(r){return kp(this,r,!1)};Ze.listenerCount=function(t,r){return typeof t.listenerCount=="function"?t.listenerCount(r):Cp.call(t,r)};Ze.prototype.listenerCount=Cp;function Cp(t){var r=this._events;if(r!==void 0){var e=r[t];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Ze.prototype.eventNames=function(){return this._eventsCount>0?js(this._events):[]};function xp(t,r){for(var e=new Array(r),n=0;n<r;++n)e[n]=t[n];return e}function Xv(t,r){for(;r+1<t.length;r++)t[r]=t[r+1];t.pop()}function Yv(t){for(var r=new Array(t.length),e=0;e<r.length;++e)r[e]=t[e].listener||t[e];return r}function e$(t,r){return new Promise(function(e,n){function i(a){t.removeListener(r,o),n(a)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",i),e([].slice.call(arguments))}Ep(t,r,o,{once:!0}),r!=="error"&&t$(t,i,{once:!0})})}function t$(t,r,e){typeof t.on=="function"&&Ep(t,"error",r,e)}function Ep(t,r,e,n){if(typeof t.on=="function")n.once?t.once(r,e):t.on(r,e);else if(typeof t.addEventListener=="function")t.addEventListener(r,function i(o){n.once&&t.removeEventListener(r,i),e(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Dl=re(xr=>{"use strict";var r$=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)}}(),n$=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]}),i$=xr&&xr.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),o$=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)&&n$(r,t,e);return i$(r,t),r},s$=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 a$=o$(Ap()),l$=function(t){r$(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(s$([],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}(a$.EventEmitter);xr.default=l$});var Pp=re((yP,Sp)=>{"use strict";function u$(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)}u$(hi,Error);hi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",v;for(v=0;v<m.parts.length;v++)p+=m.parts[v]instanceof Array?o(m.parts[v][0])+"-"+o(m.parts[v][1]):o(m.parts[v]);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),v,$;for(v=0;v<m.length;v++)p[v]=a(m[v]);if(p.sort(),p.length>0){for(v=1,$=1;v<p.length;v++)p[v-1]!==p[v]&&(p[$]=p[v],$++);p.length=$}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 f(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+f(r)+" found."};function f$(t,r){r=r!==void 0?r:{};var e={},n={Document:Sf},i=Sf,o=function(l){return l},a=function(){return!!r.podMode},u=function(l){return l},f=Bh(),m=function(){return{text:Fr(),type:"ambient",location:sr()}},p=/^[ \xA0\u2001\t\f\u2008]/,v=vt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),$=/^[ \t\f]/,w=vt([" "," ","\f"],!1,!1),k=/^[\n\r]/,I=vt([`
2
2
  `,"\r"],!1,!1),j=function(l){return l},D=/^[^\n\r]/,Y=vt([`
3
3
  `,"\r"],!0,!1),ee=`
4
4
  `,de=rt(`
5
- `,!1),ce="\r",Q=rt("\r",!1),me=function(){return{type:"blankline"}},we="=begin ",_e=rt("=begin ",!1),Te="=end ",Ce=rt("=end ",!1),xe="=for ",fe=rt("=for ",!1),be="=config",Ke=rt("=config",!1),U="=alias",at=rt("=alias",!1),Le=function(l){return Yh(l)},tt=function(l){return l},He="=",T=rt("=",!1),N=ps("text"),Vt=function(){return Fr()},kt=function(){return{type:"para",value:Fr(),error:!0,location:sr()}},it=function(l,c){return Hi([l,c])},ft=function(l){return[l]},ct=",",$e=rt(",",!1),_r=function(l,c){return Hi([l,c])},Et=/^[a-zA-Z0-9]/,Nt=vt([["a","z"],["A","Z"],["0","9"]],!1,!1),rr=/^[a-zA-Z0-9_\-]/,pr=vt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Ut="=>",Qn=rt("=>",!1),Nn=function(l,c){return{[l]:c}},pt=function(l,c){return{...l,...c}},dt=function(l){return l},Dt=":",mt=rt(":",!1),Ct="allow",jr=rt("allow",!1),Rr="<",Lr=rt("<",!1),qr=">",Br=rt(">",!1),nr=function(l,c){return{value:c,type:"array"}},W=function(l,c){return{name:"allow",...c}},ne=function(l){return l},ge=function(l){return l},Se=function(l){return[l]},xt=function(){return[]},Ar=/^[!]/,ze=vt(["!"],!1,!1),ot="{",ht=rt("{",!1),Mr="}",Ye=rt("}",!1),nn=function(l,c,g){return{value:g}},At="[",Dn=rt("[",!1),co=function(l,c,g){return g},Sr="]",jn=rt("]",!1),Ni=function(l,c){return[Fr()]},po=function(l,c,g){return{value:g,type:"array"}},Rn=function(l,c,g){return{value:g,type:"array"}},Di=function(l,c,g){return{value:g,type:"string"}},Zn="(",yn=rt("(",!1),mo=function(l,c,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},vn=")",F=rt(")",!1),P=function(l,c){return{value:Fr()}},q=function(l,c,g){return{type:"value",...g}},H=function(l,c){return{value:!l,type:"boolean"}},K=function(l,c,g){return{name:c,...g}},ue=function(l,c){return c},ke=function(l,c){return Hi([...l,...c])},Pe=/^[^'"]/,De=vt(["'",'"'],!0,!1),d=function(l){return l},oe=/^[0-9]/,qe=vt([["0","9"]],!1,!1),Be=/^[\-+]/,We=vt(["-","+"],!1,!1),M="True",Ge=rt("True",!1),Me=function(){return!0},zr="False",Ht=rt("False",!1),ir=function(){return!1},he=".",lt=rt(".",!1),Kt=/^[eE]/,dr=vt(["e","E"],!1,!1),Pr=/^["]/,or=vt(['"'],!1,!1),mr=/^[^"]/,ie=vt(['"'],!0,!1),$n=/^[']/,Ir=vt(["'"],!1,!1),Or=/^[^']/,jt=vt(["'"],!0,!1),on=function(l){return parseFloat(l)},Jn=function(l){return parseInt(l,10)},kr=function(l,c,g){return c.match(/code|comment|output|input|data/)||ys(c)},Xn=function(l,c,g,y,_){return l.length===y.length&&c===_},Yn=function(l,c,g,y,_){return eg(l,`${y}${_}`)},Ln=function(l,c,g,y,_,b){return c===b},bn=function(l,c,g,y,_,b){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:c,margin:l}},Vr=function(l,c,g,y,_,b){return!0},ji=function(l,c,g,y,_,b){return{...b,text:Fr(),config:g,location:sr()}},sn=/^[+-=_|]/,ei=vt([["+","="],"_","|"],!1,!1),Ur=function(){return{type:"separator",text:Fr()}},ti=function(){return r.isDelimited},Rt=function(){return{type:"separator",text:Fr()}},Lt=function(l){return{name:"row",type:"text",value:l}},ri=function(){return r.separators=[],!0},wn=function(l,c){return r.separators.push(c.text),c},St=function(l,c,g,y){return r.separators.push(y.text),y},_n=function(l,c,g,y){return[{name:"row",type:"text",value:g},y]},Hr=function(l,c,g){return[g]},kn=function(l,c,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Ri=function(l,c,g){return[{name:"head",type:"text",value:l},c,...Hi(g)]},Cn=function(l,c){return[{name:"row",type:"text",value:l},c]},ho=function(l){return[...Hi(l)]},go=function(l,c,g){return c==="table"},ss=function(l,c,g){return r.isDelimited=!0,!0},as=function(l,c,g,y){return y},yo=function(l,c,g,y,_,b){return{type:"block",content:y,name:c,margin:l}},vo=function(l,c,g,y,_,b){return{...b,text:Fr(),config:g,location:sr()}},$o=function(l,c,g,y){return y},Pt=function(l,c,g,y,_){let b=c.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:_,margin:y,type:b,content:[{type:b==="code"?"verbatim":"text",value:_}],location:sr()}},Qe=function(l,c,g,y,_,b){return{type:"block",content:y,name:c,margin:l}},Li=function(l,c,g,y,_,b){return{...b,config:g,location:sr()}},kf=function(){return{text:Fr(),type:"para",margin:"",content:[{type:"text",value:Fr()}],location:sr()}},xn=function(){return{empty:1}},Kr=/^[s]/,Wr=vt(["s"],!1,!1),qi=function(l){return{text:Fr(),type:"ambient1"}},h=function(l,c){return c.match(/code|comment|output|input|data/)||ys(c)},C=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:c,config:[],location:sr()}},E=function(l,c){return c==="table"},A=function(l,c){return r.isDelimited=!1,!0},S=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:g,name:c,config:[],location:sr()}},z=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:sr()}],name:c,location:sr()}},G="= ",ae=rt("= ",!1),Wt=function(l,c,g,y){return{name:g,type:"alias",replacement:y,margin:l}},It=/^[A-Z]/,hr=vt([["A","Z"]],!1,!1),Cf="<>",Sh=rt("<>",!1),Ph=function(l,c,g,y){return{name:g,type:"config",config:y,margin:l}},Ih=function(l,c,g,y){return g.match(/code|comment|output|input|data/)||ys(g)},Oh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:[{type:"verbatim",value:_}],name:g,margin:l,config:y,location:sr()}},Fh=function(l,c,g,y){return g==="table"},Th=function(l,c,g,y){return r.isDelimited=!1,!0},Nh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:_,name:g,margin:l,config:y,location:sr()}},Dh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:[{type:"para",content:[{type:"text",value:_}],margin:l,text:_,location:sr()}],name:g,margin:l,config:y,location:sr()}},jh=/^[a-zA-Z]/,Rh=vt([["a","z"],["A","Z"]],!1,!1),Lh=ps("whitespace"),ls=/^[\r\n \t\f]/,us=vt(["\r",`
6
- `," "," ","\f"],!1,!1),qh=ps("space characters"),s=0,J=0,fs=[{line:1,column:1}],an=0,_a=[],B=0,cs;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 Fr(){return t.substring(J,s)}function sr(){return bo(J,s)}function yk(l,c){throw c=c!==void 0?c:bo(J,s),Ef([ps(l)],t.substring(J,s),c)}function vk(l,c){throw c=c!==void 0?c:bo(J,s),zh(l,c)}function rt(l,c){return{type:"literal",text:l,ignoreCase:c}}function vt(l,c,g){return{type:"class",parts:l,inverted:c,ignoreCase:g}}function Bh(){return{type:"any"}}function Mh(){return{type:"end"}}function ps(l){return{type:"other",description:l}}function xf(l){var c=fs[l],g;if(c)return c;for(g=l-1;!fs[g];)g--;for(c=fs[g],c={line:c.line,column:c.column};g<l;)t.charCodeAt(g)===10?(c.line++,c.column=1):c.column++,g++;return fs[l]=c,c}function bo(l,c){var g=xf(l),y=xf(c);return{start:{offset:l,line:g.line,column:g.column},end:{offset:c,line:y.line,column:y.column}}}function X(l){s<an||(s>an&&(an=s,_a=[]),_a.push(l))}function zh(l,c){return new hi(l,null,null,c)}function Ef(l,c,g){return new hi(hi.buildMessage(l,c),l,c,g)}function Af(){var l,c,g;for(l=s,c=[],g=Sf();g!==e;)c.push(g),g=Sf();return c!==e&&(J=l,c=o(c)),l=c,l}function Sf(){var l,c,g,y,_,b,R,V;if(l=ka(),l===e&&(l=xa(),l===e&&(l=Ea(),l===e&&(l=Fa(),l===e&&(l=Ta(),l===e&&(l=Na(),l===e&&(l=Ia(),l===e&&(l=Oa(),l===e&&(l=Aa(),l===e&&(l=Sa(),l===e&&(l=Pa(),l===e&&(l=s,J=s,c=a(),c?c=void 0:c=e,c!==e?(g=Zh(),g===e&&(g=ln(),g===e&&(g=Hh())),g!==e?(J=l,c=u(g),l=c):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,c=s,g=[],y=s,_=s,B++,b=s,R=En(),R!==e?(V=Gt(),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=oi()),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,_=s,B++,b=s,R=En(),R!==e?(V=Gt(),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=oi()),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=m()),l=c}return l}function $t(){var l;return p.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(v)),l}function pe(){var l,c;for(l=[],$.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(w));c!==e;)l.push(c),$.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(w));return l}function ni(){var l,c,g,y;for(l=s,c=s,g=[],y=$t();y!==e;)g.push(y),y=$t();return g!==e?(k.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(I)),y!==e?(g=[g,y],c=g):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l}function $k(){var l,c,g,y;if(l=s,c=s,g=[],y=wo(),y!==e)for(;y!==e;)g.push(y),y=wo();else g=e;return g!==e?c=t.substring(c,s):c=g,c!==e?(g=Bi(),g!==e?(J=l,c=j(c),l=c):(s=l,l=e)):(s=l,l=e),l}function wo(){var l;return D.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(Y)),l}function ii(){var l,c,g;return t.charCodeAt(s)===10?(l=ee,s++):(l=e,B===0&&X(de)),l===e&&(l=s,t.charCodeAt(s)===13?(c=ce,s++):(c=e,B===0&&X(Q)),c!==e?(t.charCodeAt(s)===10?(g=ee,s++):(g=e,B===0&&X(de)),g===e&&(g=null),g!==e?(c=[c,g],l=c):(s=l,l=e)):(s=l,l=e)),l}function Bi(){var l,c;return l=ii(),l===e&&(l=s,B++,t.length>s?(c=t.charAt(s),s++):(c=e,B===0&&X(f)),B--,c===e?l=void 0:(s=l,l=e)),l}function Cr(){var l,c,g,y;for(l=s,c=s,g=[],y=$t();y!==e;)g.push(y),y=$t();return g!==e?(k.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(I)),y!==e?(g=[g,y],c=g):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l}function ln(){var l,c,g,y,_;for(l=s,c=s,g=s,y=[],_=$t();_!==e;)y.push(_),_=$t();return y!==e?(k.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(I)),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=me()),l=c,l}function ds(){var l;return t.substr(s,7)===we?(l=we,s+=7):(l=e,B===0&&X(_e)),l}function Mi(){var l;return t.substr(s,5)===Te?(l=Te,s+=5):(l=e,B===0&&X(Ce)),l}function ms(){var l;return t.substr(s,5)===xe?(l=xe,s+=5):(l=e,B===0&&X(fe)),l}function Vh(){var l;return t.substr(s,7)===be?(l=be,s+=7):(l=e,B===0&&X(Ke)),l}function Uh(){var l;return t.substr(s,6)===U?(l=U,s+=6):(l=e,B===0&&X(at)),l}function Gt(){var l,c,g;return l=s,c=Da(),c!==e?(J=s,g=Le(c),g?g=void 0:g=e,g!==e?(J=l,c=tt(c),l=c):(s=l,l=e)):(s=l,l=e),l}function oi(){var l,c,g;return l=s,t.charCodeAt(s)===61?(c=He,s++):(c=e,B===0&&X(T)),c!==e?(g=Gt(),g!==e?(J=l,c=tt(g),l=c):(s=l,l=e)):(s=l,l=e),l}function En(){var l;return l=ds(),l===e&&(l=Mi(),l===e&&(l=ms(),l===e&&(l=Vh(),l===e&&(l=Uh())))),l}function un(){var l,c,g;if(B++,l=s,c=[],g=wo(),g!==e)for(;g!==e;)c.push(g),g=wo();else c=e;return c!==e?l=t.substring(l,s):l=c,B--,l===e&&(c=e,B===0&&X(N)),l}function qt(){var l,c,g,y,_,b,R;if(l=s,c=s,B++,g=s,y=pe(),y!==e?(_=s,b=En(),b!==e?(R=Gt(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_===e&&(_=oi()),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?c=void 0:(s=c,c=e),c!==e){if(g=s,y=[],_=un(),_!==e)for(;_!==e;)y.push(_),_=un();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Bi(),y!==e?(J=l,c=Vt(),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function Hh(){var l,c,g,y,_,b;if(l=s,c=s,g=[],y=s,_=s,B++,b=Bi(),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,_=s,B++,b=Bi(),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?c=t.substring(c,s):c=g,c!==e?(g=Bi(),g!==e?(J=l,c=kt(),l=c):(s=l,l=e)):(s=l,l=e),l}function Pf(){var l,c,g,y;if(l=s,c=If(),c!==e){if(g=[],y=$t(),y!==e)for(;y!==e;)g.push(y),y=$t();else g=e;g!==e?(y=Pf(),y!==e?(J=l,c=it(c,y),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,c=If(),c!==e&&(J=l,c=ft(c)),l=c),l}function If(){var l,c;return l=s,c=wo(),c!==e?l=t.substring(l,s):l=c,l}function hs(){var l,c,g,y,_,b;if(l=s,c=Vi(),c!==e){if(g=[],y=$t(),y!==e)for(;y!==e;)g.push(y),y=$t();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(_=ct,s++):(_=e,B===0&&X($e)),_!==e?(b=pe(),b!==e?(y=[y,_,b],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=hs(),y!==e?(J=l,c=_r(c,y),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,c=Vi(),c!==e&&(J=l,c=ft(c)),l=c),l}function Kh(){var l,c,g,y,_;if(l=s,c=s,g=[],Et.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Nt)),y!==e)for(;y!==e;)g.push(y),Et.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Nt));else g=e;if(g!==e){for(y=[],rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));_!==e;)y.push(_),rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function Of(){var l,c,g,y,_,b;return l=s,c=Kh(),c!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X($e)),y===e&&(t.substr(s,2)===Ut?(y=Ut,s+=2):(y=e,B===0&&X(Qn))),y!==e?(_=pe(),_!==e?(b=Vi(),b!==e?(J=l,c=Nn(c,b),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Ff(){var l,c,g,y,_,b;return l=s,c=Of(),c!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X($e)),y!==e?(_=pe(),_!==e?(b=Ff(),b!==e?(J=l,c=pt(c,b),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,c=Of(),c!==e&&(J=l,c=dt(c)),l=c),l}function Wh(){var l,c,g,y,_,b,R,V,x,O;return l=s,c=pe(),c!==e?(t.charCodeAt(s)===58?(g=Dt,s++):(g=e,B===0&&X(mt)),g!==e?(t.substr(s,5)===Ct?(y=Ct,s+=5):(y=e,B===0&&X(jr)),y!==e?(_=s,t.charCodeAt(s)===60?(b=Rr,s++):(b=e,B===0&&X(Lr)),b!==e?(R=pe(),R!==e?(V=Pf(),V!==e?(x=pe(),x!==e?(t.charCodeAt(s)===62?(O=qr,s++):(O=e,B===0&&X(Br)),O!==e?(J=_,b=nr(y,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)):(s=_,_=e),_!==e?(b=pe(),b!==e?(J=l,c=W(y,_),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function bk(){var l,c,g,y,_,b;for(l=s,c=[],g=s,y=pe(),y!==e?(_=Vi(),_!==e?(b=pe(),b!==e?(J=g,y=ne(_),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)c.push(g),g=s,y=pe(),y!==e?(_=Vi(),_!==e?(b=pe(),b!==e?(J=g,y=ne(_),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return c!==e&&(J=l,c=ge(c)),l=c,l===e&&(l=s,c=Vi(),c!==e&&(J=l,c=Se(c)),l=c,l===e&&(l=s,c=pe(),c!==e&&(J=l,c=xt()),l=c)),l}function zi(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se;if(l=Wh(),l===e)if(l=s,c=pe(),c!==e)if(t.charCodeAt(s)===58?(g=Dt,s++):(g=e,B===0&&X(mt)),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(_=Da(),_!==e){if(b=s,t.charCodeAt(s)===123?(R=ot,s++):(R=e,B===0&&X(ht)),R!==e?(V=pe(),V!==e?(x=Ff(),x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===125?(L=Mr,s++):(L=e,B===0&&X(Ye)),L!==e?(J=b,R=nn(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e),b===e){if(b=s,t.charCodeAt(s)===91?(R=At,s++):(R=e,B===0&&X(Dn)),R!==e)if(V=pe(),V!==e){if(x=s,O=hs(),O!==e&&(J=x,O=co(y,_,O)),x=O,x===e){if(x=s,O=s,L=[],Z=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(jn)),se===e&&(t.charCodeAt(s)===91?(se=At,s++):(se=e,B===0&&X(Dn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e),Z!==e)for(;Z!==e;)L.push(Z),Z=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(jn)),se===e&&(t.charCodeAt(s)===91?(se=At,s++):(se=e,B===0&&X(Dn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e);else L=e;L!==e?O=t.substring(O,s):O=L,O!==e&&(J=x,O=Ni(y,_)),x=O}x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===93?(L=Sr,s++):(L=e,B===0&&X(jn)),L!==e?(J=b,R=po(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;if(b===e&&(b=s,t.charCodeAt(s)===60?(R=Rr,s++):(R=e,B===0&&X(Lr)),R!==e?(V=pe(),V!==e?(x=hs(),x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===62?(L=qr,s++):(L=e,B===0&&X(Br)),L!==e?(J=b,R=Rn(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e),b===e)){if(b=s,t.charCodeAt(s)===60?(R=Rr,s++):(R=e,B===0&&X(Lr)),R!==e)if(V=pe(),V!==e){if(x=s,O=[],L=s,Z=s,B++,t.charCodeAt(s)===60?(te=Rr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=qr,s++):(te=e,B===0&&X(Br))),B--,te===e?Z=void 0:(s=Z,Z=e),Z!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(f)),te!==e?(Z=[Z,te],L=Z):(s=L,L=e)):(s=L,L=e),L!==e)for(;L!==e;)O.push(L),L=s,Z=s,B++,t.charCodeAt(s)===60?(te=Rr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=qr,s++):(te=e,B===0&&X(Br))),B--,te===e?Z=void 0:(s=Z,Z=e),Z!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(f)),te!==e?(Z=[Z,te],L=Z):(s=L,L=e)):(s=L,L=e);else O=e;O!==e?x=t.substring(x,s):x=O,x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===62?(L=qr,s++):(L=e,B===0&&X(Br)),L!==e?(J=b,R=Di(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;if(b===e){if(b=s,t.charCodeAt(s)===40?(R=Zn,s++):(R=e,B===0&&X(yn)),R!==e)if(V=pe(),V!==e){if(x=s,O=hs(),O!==e&&(J=x,O=mo(y,_,O)),x=O,x===e){if(x=s,O=s,L=[],Z=s,te=s,B++,t.charCodeAt(s)===41?(se=vn,s++):(se=e,B===0&&X(F)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(yn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e),Z!==e)for(;Z!==e;)L.push(Z),Z=s,te=s,B++,t.charCodeAt(s)===41?(se=vn,s++):(se=e,B===0&&X(F)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(yn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e);else L=e;L!==e?O=t.substring(O,s):O=L,O!==e&&(J=x,O=P(y,_)),x=O}x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===41?(L=vn,s++):(L=e,B===0&&X(F)),L!==e?(J=b,R=q(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;b===e&&(b=s,R=pe(),R!==e&&(J=b,R=H(y,_)),b=R)}}}b!==e?(R=pe(),R!==e?(J=l,c=K(y,_,b),l=c):(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 si(){var l,c,g,y,_,b,R,V,x,O;for(l=s,c=[],g=zi();g!==e;)c.push(g),g=zi();if(c!==e)if(g=ii(),g!==e){if(y=[],_=s,t.charCodeAt(s)===61?(b=He,s++):(b=e,B===0&&X(T)),b!==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?(O=ii(),O!==e?(J=_,b=ue(c,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;for(;_!==e;)if(y.push(_),_=s,t.charCodeAt(s)===61?(b=He,s++):(b=e,B===0&&X(T)),b!==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?(O=ii(),O!==e?(J=_,b=ue(c,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;y!==e?(J=l,c=ke(c,y),l=c):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function wk(){var l,c,g,y;if(l=s,c=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?c=t.substring(c,s):c=g,c!==e&&(J=l,c=d(c)),l=c,l}function Tf(){var l,c,g;if(l=s,c=[],oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(qe)),g!==e)for(;g!==e;)c.push(g),oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(qe));else c=e;return c!==e?l=t.substring(l,s):l=c,l}function gs(){var l,c,g,y,_;if(l=s,c=s,Be.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(We)),g===e&&(g=null),g!==e){if(y=[],oe.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(qe)),_!==e)for(;_!==e;)y.push(_),oe.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(qe));else y=e;y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function Gh(){var l,c;return l=s,t.substr(s,4)===M?(c=M,s+=4):(c=e,B===0&&X(Ge)),c!==e&&(J=l,c=Me()),l=c,l===e&&(l=s,t.substr(s,5)===zr?(c=zr,s+=5):(c=e,B===0&&X(Ht)),c!==e&&(J=l,c=ir()),l=c),l}function Qh(){var l,c,g,y,_,b;return l=s,c=s,g=gs(),g!==e?(y=s,t.charCodeAt(s)===46?(_=he,s++):(_=e,B===0&&X(lt)),_!==e?(b=Tf(),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(Kt.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(dr)),_!==e?(b=gs(),b!==e?(g=[g,y,_,b],c=g):(s=c,c=e)):(s=c,c=e)):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l===e&&(l=s,c=s,g=gs(),g!==e?(t.charCodeAt(s)===46?(y=he,s++):(y=e,B===0&&X(lt)),y!==e?(_=Tf(),_!==e?(g=[g,y,_],c=g):(s=c,c=e)):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c),l}function Vi(){var l,c,g,y,_;if(l=s,Pr.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(or)),c!==e){for(g=s,y=[],mr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(ie));_!==e;)y.push(_),mr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=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(or)),y!==e?(J=l,c=d(g),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,$n.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(Ir)),c!==e){for(g=s,y=[],Or.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(jt));_!==e;)y.push(_),Or.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(jt));y!==e?g=t.substring(g,s):g=y,g!==e?($n.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Ir)),y!==e?(J=l,c=d(g),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=Gh(),l===e&&(l=s,c=Qh(),c!==e&&(J=l,c=on(c)),l=c,l===e&&(l=s,c=gs(),c!==e&&(J=l,c=Jn(c)),l=c)))}return l}function ka(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se,nt,qn,Nr;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=kr(c,y,b),R?R=void 0:R=e,R!==e){if(V=[],x=s,O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=ni(),Z===e&&(Z=s,te=s,B++,se=En(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,nt=Mi(),nt!==e?(qn=Gt(),qn!==e?(J=s,Nr=Xn(c,y,b,O,qn),Nr?Nr=void 0:Nr=e,Nr!==e?(nt=[nt,qn,Nr],se=nt):(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?(nt=ni(),nt===e&&(nt=null),nt!==e?(te=[te,se,nt],Z=te):(s=Z,Z=e)):(s=Z,Z=e)):(s=Z,Z=e)),Z!==e?L=t.substring(L,s):L=Z,L!==e?(J=x,O=Yn(c,y,b,O,L),x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=ni(),Z===e&&(Z=s,te=s,B++,se=En(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,nt=Mi(),nt!==e?(qn=Gt(),qn!==e?(J=s,Nr=Xn(c,y,b,O,qn),Nr?Nr=void 0:Nr=e,Nr!==e?(nt=[nt,qn,Nr],se=nt):(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?(nt=ni(),nt===e&&(nt=null),nt!==e?(te=[te,se,nt],Z=te):(s=Z,Z=e)):(s=Z,Z=e)):(s=Z,Z=e)),Z!==e?L=t.substring(L,s):L=Z,L!==e?(J=x,O=Yn(c,y,b,O,L),x=O):(s=x,x=e)):(s=x,x=e);else V=e;V!==e?(x=s,O=pe(),O!==e?x=t.substring(x,s):x=O,x!==e?(O=s,L=Mi(),L!==e?(Z=Gt(),Z!==e?(J=s,te=Ln(c,y,b,V,x,Z),te?te=void 0:te=e,te!==e?(se=ni(),se===e&&(se=null),se!==e?(J=O,L=bn(c,y,b,V,x,Z),O=L):(s=O,O=e)):(s=O,O=e)):(s=O,O=e)):(s=O,O=e),O!==e?(J=s,L=Vr(c,y,b,V,x,O),L?L=void 0:L=e,L!==e?(J=l,c=ji(c,y,b,V,x,O),l=c):(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,c,g,y,_,b,R,V,x;if(l=s,c=s,B++,g=s,y=pe(),y!==e?(_=En(),_===e&&(_=oi()),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?c=void 0:(s=c,c=e),c!==e){for(g=[],y=$t();y!==e;)g.push(y),y=$t();if(g!==e){if(y=s,_=[],b=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(ei)),R!==e){for(V=[],x=$t();x!==e;)V.push(x),x=$t();V!==e?(R=[R,V],b=R):(s=b,b=e)}else s=b,b=e;if(b!==e)for(;b!==e;)if(_.push(b),b=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(ei)),R!==e){for(V=[],x=$t();x!==e;)V.push(x),x=$t();V!==e?(R=[R,V],b=R):(s=b,b=e)}else s=b,b=e;else _=e;_!==e?y=t.substring(y,s):y=_,y!==e?(_=Bi(),_!==e?(J=l,c=Ur(),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function gr(){var l,c,g,y,_;return l=s,c=s,g=Ui(),g===e&&(g=s,J=s,y=ti(),y?y=void 0:y=e,y!==e?(_=ln(),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=Rt()),l=c,l}function Tr(){var l,c;return l=s,c=qt(),c!==e&&(J=l,c=Lt(c)),l=c,l}function Ca(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,J=s,c=ri(),c?c=void 0:c=e,c!==e){if(g=s,y=[],_=s,b=s,B++,R=Ui(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e)for(;_!==e;)y.push(_),_=s,b=s,B++,R=Ui(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,_=Ui(),_!==e&&(J=y,_=wn(g,_)),y=_,y!==e){if(_=[],b=s,R=s,V=[],x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(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=gr(),x!==e&&(J=V,x=St(g,y,R,x)),V=x,V!==e?(J=b,R=_n(g,y,R,V),b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=gr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Tr(),x!==e?(J=b,R=Hr(g,y,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)),b!==e)for(;b!==e;){if(_.push(b),b=s,R=s,V=[],x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(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=gr(),x!==e&&(J=V,x=St(g,y,R,x)),V=x,V!==e?(J=b,R=_n(g,y,R,V),b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=gr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Tr(),x!==e?(J=b,R=Hr(g,y,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e))}else _=e;_!==e?(J=s,b=kn(g,y,_),b?b=void 0:b=e,b!==e?(J=l,c=Ri(g,y,_),l=c):(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,c=[],g=s,y=s,_=s,b=s,B++,R=gr(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e?y=t.substring(y,s):y=_,y!==e){for(_=[],b=gr();b!==e;)_.push(b),b=gr();_!==e?(J=g,y=Cn(y,_),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(c.push(g),g=s,y=s,_=s,b=s,B++,R=gr(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e?y=t.substring(y,s):y=_,y!==e){for(_=[],b=gr();b!==e;)_.push(b),b=gr();_!==e?(J=g,y=Cn(y,_),g=y):(s=g,g=e)}else s=g,g=e;else c=e;if(c!==e&&(J=l,c=ho(c)),l=c,l===e)if(l=[],c=Tr(),c!==e)for(;c!==e;)l.push(c),c=Tr();else l=e}return l}function xa(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se,nt;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=go(c,y,b),R?R=void 0:R=e,R!==e)if(J=s,V=ss(c,y,b),V?V=void 0:V=e,V!==e){for(x=s,O=[],L=ln();L!==e;)O.push(L),L=ln();if(O!==e)if(L=Ca(),L!==e){for(Z=[],te=ln();te!==e;)Z.push(te),te=ln();Z!==e?(J=x,O=as(c,y,b,L),x=O):(s=x,x=e)}else s=x,x=e;else s=x,x=e;x!==e?(O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=Mi(),Z!==e?(te=Gt(),te!==e?(J=s,se=Ln(c,y,b,x,O,te),se?se=void 0:se=e,se!==e?(nt=ni(),nt===e&&(nt=null),nt!==e?(J=L,Z=yo(c,y,b,x,O,te),L=Z):(s=L,L=e)):(s=L,L=e)):(s=L,L=e)):(s=L,L=e),L!==e?(J=s,Z=Vr(c,y,b,x,O,L),Z?Z=void 0:Z=e,Z!==e?(J=l,c=vo(c,y,b,x,O,L),l=c):(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 Ea(){var l,c,g,y,_,b,R,V,x,O,L,Z,te;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e){if(R=[],V=s,x=ln(),x===e&&(x=ka(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Fa(),x===e&&(x=Ta(),x===e&&(x=Na(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Aa(),x===e&&(x=Sa(),x===e&&(x=Pa()))))))))))),x!==e&&(J=V,x=$o(c,y,b,x)),V=x,V===e){for(V=s,x=s,O=[],L=$t();L!==e;)O.push(L),L=$t();if(O!==e?x=t.substring(x,s):x=O,x!==e){if(O=s,L=[],Z=qt(),Z!==e)for(;Z!==e;)L.push(Z),Z=qt();else L=e;L!==e?O=t.substring(O,s):O=L,O!==e?(J=V,x=Pt(c,y,b,x,O),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=ka(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Fa(),x===e&&(x=Ta(),x===e&&(x=Na(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Aa(),x===e&&(x=Sa(),x===e&&(x=Pa()))))))))))),x!==e&&(J=V,x=$o(c,y,b,x)),V=x,V===e){for(V=s,x=s,O=[],L=$t();L!==e;)O.push(L),L=$t();if(O!==e?x=t.substring(x,s):x=O,x!==e){if(O=s,L=[],Z=qt(),Z!==e)for(;Z!==e;)L.push(Z),Z=qt();else L=e;L!==e?O=t.substring(O,s):O=L,O!==e?(J=V,x=Pt(c,y,b,x,O),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,O=Mi(),O!==e?(L=Gt(),L!==e?(J=s,Z=Ln(c,y,b,R,V,L),Z?Z=void 0:Z=e,Z!==e?(te=ni(),te===e&&(te=null),te!==e?(J=x,O=Qe(c,y,b,R,V,L),x=O):(s=x,x=e)):(s=x,x=e)):(s=x,x=e)):(s=x,x=e),x!==e?(J=s,O=Vr(c,y,b,R,V,x),O?O=void 0:O=e,O!==e?(J=l,c=Li(c,y,b,R,V,x),l=c):(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 Zh(){var l,c,g;if(l=s,c=[],g=qt(),g!==e)for(;g!==e;)c.push(g),g=qt();else c=e;return c!==e&&(J=l,c=kf()),l=c,l}function _k(){var l,c,g,y;if(l=s,c=[],g=s,y=Cr(),y!==e&&(J=g,y=xn()),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=qt())}if(g!==e){for(;g!==e;)if(c.push(g),g=s,y=Cr(),y!==e&&(J=g,y=xn()),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=qt())}}else c=e;return c!==e&&(J=l,c=qi(c)),l=c,l}function Aa(){var l,c,g,y,_,b,R,V,x,O,L,Z;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=oi(),y!==e)if(_=pe(),_!==e)if(b=Cr(),b===e&&(b=null),b!==e)if(J=s,R=h(c,y),R?R=void 0:R=e,R!==e){for(V=s,x=[],O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);O!==e;)x.push(O),O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);x!==e?V=t.substring(V,s):V=x,V!==e?(J=l,c=C(c,y,V),l=c):(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 Sa(){var l,c,g,y,_,b,R,V,x;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e?(y=oi(),y!==e?(_=pe(),_!==e?(b=Cr(),b===e&&(b=null),b!==e?(J=s,R=E(c,y),R?R=void 0:R=e,R!==e?(J=s,V=A(c,y),V?V=void 0:V=e,V!==e?(x=Ca(),x!==e?(J=l,c=S(c,y,x),l=c):(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 Pa(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=oi(),y!==e)if(_=pe(),_!==e)if(b=Cr(),b===e&&(b=null),b!==e){for(R=s,V=[],x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(J=l,c=z(c,y,R),l=c):(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 Jh(){var l,c,g,y,_,b,R,V,x,O,L;for(l=s,c=[],g=un();g!==e;)c.push(g),g=un();if(c!==e)if(g=ii(),g!==e){if(y=[],_=s,b=pe(),b!==e)if(t.substr(s,2)===G?(R=G,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],O=un(),O!==e)for(;O!==e;)x.push(O),O=un();else x=e;x!==e?(O=pe(),O!==e?(L=ii(),L!==e?(J=_,b=ue(c,x),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;else s=_,_=e;for(;_!==e;)if(y.push(_),_=s,b=pe(),b!==e)if(t.substr(s,2)===G?(R=G,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],O=un(),O!==e)for(;O!==e;)x.push(O),O=un();else x=e;x!==e?(O=pe(),O!==e?(L=ii(),L!==e?(J=_,b=ue(c,x),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;else s=_,_=e;y!==e?(J=l,c=ke(c,y),l=c):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function Ia(){var l,c,g,y,_,b,R;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(t.substr(s,6)===U?(g=U,s+=6):(g=e,B===0&&X(at)),g!==e?(y=pe(),y!==e?(_=s,b=Da(),b!==e?_=t.substring(_,s):_=b,_!==e?(b=pe(),b!==e?(R=Jh(),R!==e?(J=l,c=Wt(c,g,_,R),l=c):(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,c,g,y,_,b,R,V;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(t.substr(s,7)===be?(g=be,s+=7):(g=e,B===0&&X(Ke)),g!==e?(y=pe(),y!==e?(_=s,b=Gt(),b===e&&(b=s,It.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(hr)),R!==e?(t.substr(s,2)===Cf?(V=Cf,s+=2):(V=e,B===0&&X(Sh)),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e)),b!==e?_=t.substring(_,s):_=b,_!==e?(b=pe(),b!==e?(R=si(),R!==e?(J=l,c=Ph(c,g,_,R),l=c):(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 Fa(){var l,c,g,y,_,b,R,V,x,O,L,Z;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ms(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=Ih(c,g,y,b),R?R=void 0:R=e,R!==e){for(V=s,x=[],O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);O!==e;)x.push(O),O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);x!==e?V=t.substring(V,s):V=x,V!==e?(J=l,c=Oh(c,g,y,b,V),l=c):(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 Ta(){var l,c,g,y,_,b,R,V,x;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(g=ms(),g!==e?(y=Gt(),y!==e?(_=pe(),_!==e?(b=si(),b!==e?(J=s,R=Fh(c,g,y,b),R?R=void 0:R=e,R!==e?(J=s,V=Th(c,g,y,b),V?V=void 0:V=e,V!==e?(x=Ca(),x!==e?(J=l,c=Nh(c,g,y,b,x),l=c):(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 Na(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ms(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e){for(R=s,V=[],x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(J=l,c=Dh(c,g,y,b,R),l=c):(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,c,g,y,_;if(l=s,c=s,jh.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Rh)),g!==e){if(y=[],rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr)),_!==e)for(;_!==e;)y.push(_),rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));else y=e;y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function kk(){var l,c;for(B++,l=[],ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));c!==e;)l.push(c),ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));return B--,l===e&&(c=e,B===0&&X(Lh)),l}function Ck(){var l,c;for(B++,l=[],ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));c!==e;)l.push(c),ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));return B--,l===e&&(c=e,B===0&&X(qh)),l}function ys(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function Xh(l){return l===l.toUpperCase()}function Hi(l){return l.reduce((c,g)=>Array.isArray(g)?c.concat(Hi(g)):c.concat(g),[])}function Yh(l){return["code","comment","data","defn","head","input","item","nested","output","para","pod","table"].includes(l)||Xh(l)||l.match(/^(head|item)\d+$/)||ys(l)}function eg(l,c){return l.length==0?c:c.indexOf(l)==0?c.replace(l,""):c.replace(/^\s+/,"")}if(cs=i(),cs!==e&&s===t.length)return cs;throw cs!==e&&s<t.length&&X(Mh()),Ef(_a,an<t.length?t.charAt(an):null,an<t.length?bo(an,an+1):bo(an,an))}Ap.exports={SyntaxError:hi,parse:f$}});var Pp=re(Fo=>{"use strict";var jl=Fo&&Fo.__assign||function(){return jl=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},jl.apply(this,arguments)};Object.defineProperty(Fo,"__esModule",{value:!0});var c$=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=jl({},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}};Fo.default=c$});var Op=re(($P,Ip)=>{"use strict";function p$(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)}p$(gi,Error);gi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",v;for(v=0;v<m.parts.length;v++)p+=m.parts[v]instanceof Array?o(m.parts[v][0])+"-"+o(m.parts[v][1]):o(m.parts[v]);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),v,$;for(v=0;v<m.length;v++)p[v]=a(m[v]);if(p.sort(),p.length>0){for(v=1,$=1;v<p.length;v++)p[v-1]!==p[v]&&(p[$]=p[v],$++);p.length=$}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 f(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+f(r)+" found."};function d$(t,r){r=r!==void 0?r:{};var e={},n={Expression:Or},i=Or,o="A",a=he("A",!1),u="V",f=he("V",!1),m="R",p=he("R",!1),v="B",$=he("B",!1),w="I",k=he("I",!1),I="C",j=he("C",!1),D="D",Y=he("D",!1),ee="E",de=he("E",!1),ce="K",Q=he("K",!1),me="L",we=he("L",!1),_e="S",Te=he("S",!1),Ce="T",xe=he("T",!1),fe="U",be=he("U",!1),Ke="Z",U=he("Z",!1),at="N",Le=he("N",!1),tt="X",He=he("X",!1),T=/^[a-zA-Z]/,N=lt([["a","z"],["A","Z"]],!1,!1),Vt=/^[a-zA-Z0-9_\-]/,kt=lt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),it=/^[ \t\f]/,ft=lt([" "," ","\f"],!1,!1),ct=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},$e=Kt(),_r=function(h){return h},Et=function(h){return h==="A"},Nt=function(h,C){return{content:C,type:"fcode",name:h}},rr=function(h){return h==="D"},pr=function(h,C,E){return qi(E)},Ut=function(h,C,E){return{content:C,type:"fcode",name:h,synonyms:E}},Qn=function(h){return h==="V"},Nn=function(h,C){return{content:C,type:"fcode",name:h}},pt="<",dt=he("<",!1),Dt=">",mt=he(">",!1),Ct=function(){return Me()},jr=function(h){return h},Rr=function(h){return h==="C"},Lr="|",qr=he("|",!1),Br=function(h){return h==="L"},nr=function(h,C,E){return E},W=function(h,C,E){return{content:C,type:"fcode",name:h,meta:E}},ne=";",ge=he(";",!1),Se=/^[ \xA0\u2001\t\f\u2008]/,xt=lt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Ar=function(h,C){return qi([h,C])},ze=function(h){return[h]},ot=function(h){return h==="X"},ht=function(h,C,E){return{content:C,type:"fcode",name:h,entry:E}},Mr=function(h){return h==="S"},Ye=function(h){return h==="Z"},nn=/^[0-9]/,At=lt([["0","9"]],!1,!1),Dn="0d",co=he("0d",!1),Sr=function(h){return parseInt(h,10)},jn="0o",Ni=he("0o",!1),po=function(h){return parseInt(h,8)},Rn="0b",Di=he("0b",!1),Zn=function(h){return parseInt(h,2)},yn="0x",mo=he("0x",!1),vn=/^[0-9A-Fa-f]/,F=lt([["0","9"],["A","F"],["a","f"]],!1,!1),P=function(){return parseInt(Me())},q=function(h){return{type:"number",value:parseInt(h,10)}},H=function(h){return h==="E"},K=function(h,C){return qi(C)},ue=function(h,C){return{content:C||[],type:"fcode",name:h}},ke=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,qe=[{line:1,column:1}],Be=0,We=[],M=0,Ge;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 zr(){return mr(oe,d)}function Ht(h,C){throw C=C!==void 0?C:mr(oe,d),Ir([Pr(h)],t.substring(oe,d),C)}function ir(h,C){throw C=C!==void 0?C:mr(oe,d),$n(h,C)}function he(h,C){return{type:"literal",text:h,ignoreCase:C}}function lt(h,C,E){return{type:"class",parts:h,inverted:C,ignoreCase:E}}function Kt(){return{type:"any"}}function dr(){return{type:"end"}}function Pr(h){return{type:"other",description:h}}function or(h){var C=qe[h],E;if(C)return C;for(E=h-1;!qe[E];)E--;for(C=qe[E],C={line:C.line,column:C.column};E<h;)t.charCodeAt(E)===10?(C.line++,C.column=1):C.column++,E++;return qe[h]=C,C}function mr(h,C){var E=or(h),A=or(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,We=[]),We.push(h))}function $n(h,C){return new gi(h,null,null,C)}function Ir(h,C,E){return new gi(gi.buildMessage(h,C),h,C,E)}function Or(){var h,C;for(h=[],C=jt(),C===e&&(C=Li(),C===e&&(C=xn(),C===e&&(C=Yn())));C!==e;)h.push(C),C=jt(),C===e&&(C=Li(),C===e&&(C=xn(),C===e&&(C=Yn())));return h}function jt(){var h;return h=bn(),h===e&&(h=kn(),h===e&&(h=ti(),h===e&&(h=Vr(),h===e&&(h=$o(),h===e&&(h=ji(),h===e&&(h=ri(),h===e&&(h=Hr(),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(f)),h===e&&(t.charCodeAt(d)===82?(h=m,d++):(h=e,M===0&&ie(p)),h===e&&(t.charCodeAt(d)===66?(h=v,d++):(h=e,M===0&&ie($)),h===e&&(t.charCodeAt(d)===73?(h=w,d++):(h=e,M===0&&ie(k)),h===e&&(t.charCodeAt(d)===67?(h=I,d++):(h=e,M===0&&ie(j)),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=ce,d++):(h=e,M===0&&ie(Q)),h===e&&(t.charCodeAt(d)===76?(h=me,d++):(h=e,M===0&&ie(we)),h===e&&(t.charCodeAt(d)===83?(h=_e,d++):(h=e,M===0&&ie(Te)),h===e&&(t.charCodeAt(d)===84?(h=Ce,d++):(h=e,M===0&&ie(xe)),h===e&&(t.charCodeAt(d)===85?(h=fe,d++):(h=e,M===0&&ie(be)),h===e&&(t.charCodeAt(d)===90?(h=Ke,d++):(h=e,M===0&&ie(U)),h===e&&(t.charCodeAt(d)===78?(h=at,d++):(h=e,M===0&&ie(Le)),h===e&&(t.charCodeAt(d)===88?(h=tt,d++):(h=e,M===0&&ie(He))))))))))))))))),h}function Jn(){var h,C,E,A,S;if(h=d,C=d,T.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(N)),E!==e){if(A=[],Vt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,M===0&&ie(kt)),S!==e)for(;S!==e;)A.push(S),Vt.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=[],it.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ft));C!==e;)h.push(C),it.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ft));return h}function Xn(){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 Yn(){var h,C;return h=d,t.length>d?(C=t.charAt(d),d++):(C=e,M===0&&ie($e)),C!==e?h=t.substring(h,d):h=C,h}function Ln(){var h,C,E,A,S;return h=d,C=d,M++,E=Qe(),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=_r(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 bn(){var h,C,E,A,S;return h=d,C=Pt(),C!==e?(oe=d,E=Et(C),E?E=void 0:E=e,E!==e?(A=Ln(),A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Vr(){var h,C,E,A,S,z,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=rr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Lt(),S!==e)for(;S!==e;)A.push(S),S=Lt();else A=e;if(A!==e){if(S=d,z=Rt(),z!==e){for(G=[],ae=_n();ae!==e;)G.push(ae),ae=_n();G!==e?(oe=S,z=pr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=Ut(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 ji(){var h,C,E,A,S,z;if(h=d,C=Pt(),C!==e)if(oe=d,E=Qn(C),E?E=void 0:E=e,E!==e){if(A=d,S=[],z=Ur(),z!==e)for(;z!==e;)S.push(z),z=Ur();else S=e;S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nn(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=v,d++):(h=e,M===0&&ie($)),h}function ei(){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($e)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=Dt,d++):(S=e,M===0&&ie(mt)),S!==e?(oe=h,C=Ct(),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,G,ae;if(h=d,C=d,E=[],A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(G=pt,d++):(G=e,M===0&&ie(dt)),M--,G===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(G=t.charAt(d),d++):(G=e,M===0&&ie($e)),G!==e?(z=[z,G],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),z!==e?(G=Ur(),G===e&&(G=null),G!==e?(t.charCodeAt(d)===62?(ae=Dt,d++):(ae=e,M===0&&ie(mt)),ae!==e?(S=[S,z,G,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=ei(),A===e&&(A=Kr())),A!==e)for(;A!==e;)E.push(A),A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(G=pt,d++):(G=e,M===0&&ie(dt)),M--,G===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(G=t.charAt(d),d++):(G=e,M===0&&ie($e)),G!==e?(z=[z,G],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),z!==e?(G=Ur(),G===e&&(G=null),G!==e?(t.charCodeAt(d)===62?(ae=Dt,d++):(ae=e,M===0&&ie(mt)),ae!==e?(S=[S,z,G,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=ei(),A===e&&(A=Kr()));else E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=jr(C)),h=C,h}function ti(){var h,C,E,A,S;if(h=d,C=Pt(),C!==e)if(oe=d,E=Rr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Ur(),S!==e)for(;S!==e;)A.push(S),S=Ur();else A=e;A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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 Rt(){var h;return t.charCodeAt(d)===124?(h=Lr,d++):(h=e,M===0&&ie(qr)),h}function Lt(){var h,C,E,A,S,z,G,ae;if(h=d,C=[],E=d,A=d,S=d,M++,t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),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($e)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=Lt(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(A=[A,S,z,G],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=Rt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(A=[A,S,z,G,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=pt,d++):(z=e,M===0&&ie(dt)),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($e)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=Lt(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(A=[A,S,z,G],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=Rt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(A=[A,S,z,G,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 ri(){var h,C,E,A,S,z,G,ae,Wt,It,hr;if(h=d,C=Pt(),C!==e)if(oe=d,E=Br(C),E?E=void 0:E=e,E!==e){if(A=[],S=ti(),S===e&&(S=Lt()),S!==e)for(;S!==e;)A.push(S),S=ti(),S===e&&(S=Lt());else A=e;if(A!==e){if(S=d,z=Rt(),z!==e){for(G=d,ae=[],Wt=d,It=d,M++,hr=Qe(),M--,hr===e?It=void 0:(d=It,It=e),It!==e?(t.length>d?(hr=t.charAt(d),d++):(hr=e,M===0&&ie($e)),hr!==e?(It=[It,hr],Wt=It):(d=Wt,Wt=e)):(d=Wt,Wt=e);Wt!==e;)ae.push(Wt),Wt=d,It=d,M++,hr=Qe(),M--,hr===e?It=void 0:(d=It,It=e),It!==e?(t.length>d?(hr=t.charAt(d),d++):(hr=e,M===0&&ie($e)),hr!==e?(It=[It,hr],Wt=It):(d=Wt,Wt=e)):(d=Wt,Wt=e);ae!==e?G=t.substring(G,d):G=ae,G!==e?(oe=S,z=nr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=W(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,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=Qe(),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($e)),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=Qe(),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($e)),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 St(){var h;return Se.test(t.charAt(d))?(h=t.charAt(d),d++):(h=e,M===0&&ie(xt)),h}function _n(){var h,C,E,A,S,z;if(h=d,C=wn(),C!==e){for(E=[],A=St();A!==e;)E.push(A),A=St();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=St();z!==e;)S.push(z),z=St();S!==e?(z=_n(),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=wn(),C!==e&&(oe=h,C=ze(C)),h=C),h}function Hr(){var h,C,E,A,S,z,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=ot(C),E?E=void 0:E=e,E!==e){for(A=[],S=Lt();S!==e;)A.push(S),S=Lt();if(A!==e){if(S=d,z=Rt(),z!==e){for(G=[],ae=_n();ae!==e;)G.push(ae),ae=_n();G!==e?(oe=S,z=pr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=ht(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,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=Mr(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=Ye(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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 Cn(){var h,C,E;if(h=d,C=[],nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(At)),E!==e)for(;E!==e;)C.push(E),nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(At));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function ho(){var h,C,E;return h=d,t.substr(d,2)===Dn?(C=Dn,d+=2):(C=e,M===0&&ie(co)),C!==e?(E=Cn(),E!==e?(oe=h,C=Sr(E),h=C):(d=h,h=e)):(d=h,h=e),h}function go(){var h,C,E;return h=d,t.substr(d,2)===jn?(C=jn,d+=2):(C=e,M===0&&ie(Ni)),C!==e?(E=Cn(),E!==e?(oe=h,C=po(E),h=C):(d=h,h=e)):(d=h,h=e),h}function ss(){var h,C,E;return h=d,t.substr(d,2)===Rn?(C=Rn,d+=2):(C=e,M===0&&ie(Di)),C!==e?(E=Cn(),E!==e?(oe=h,C=Zn(E),h=C):(d=h,h=e)):(d=h,h=e),h}function as(){var h,C,E,A,S,z;if(h=d,C=d,E=d,t.substr(d,2)===yn?(A=yn,d+=2):(A=e,M===0&&ie(mo)),A!==e){if(S=[],vn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(F)),z!==e)for(;z!==e;)S.push(z),vn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(F));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 yo(){var h,C,E;return h=d,C=kr(),C!==e?(E=go(),E===e&&(E=ho(),E===e&&(E=ss(),E===e&&(E=as(),E===e&&(E=Cn())))),E!==e?(oe=h,C=q(E),h=C):(d=h,h=e)):(d=h,h=e),h}function vo(){var h,C,E,A,S,z;if(h=d,C=yo(),C!==e){for(E=[],A=St();A!==e;)E.push(A),A=St();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=St();z!==e;)S.push(z),z=St();S!==e?(z=vo(),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=yo(),C!==e&&(oe=h,C=ze(C)),h=C),h}function $o(){var h,C,E,A,S;return h=d,C=Pt(),C!==e?(oe=d,E=H(C),E?E=void 0:E=e,E!==e?(A=d,S=vo(),S!==e&&(oe=A,S=K(C,S)),A=S,A===e&&(A=null),A!==e?(S=Qe(),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 Pt(){var h,C,E;return h=d,C=d,E=Xn(),E!==e?C=t.substring(C,d):C=E,C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(oe=h,C=ke(C),h=C):(d=h,h=e)):(d=h,h=e),h}function Qe(){var h;return t.charCodeAt(d)===62?(h=Dt,d++):(h=e,M===0&&ie(mt)),h}function Li(){var h,C,E,A,S;if(h=d,C=Pt(),C!==e)if(oe=d,E=Pe(C),E?E=void 0:E=e,E!==e){for(A=[],S=jt(),S===e&&(S=Li(),S===e&&(S=xn()));S!==e;)A.push(S),S=jt(),S===e&&(S=Li(),S===e&&(S=xn()));A!==e?(S=Qe(),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 kf(){var h,C,E,A,S;for(h=d,C=[],E=d,A=d,M++,S=Qe(),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($e)),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=Qe(),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($e)),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 xn(){var h,C,E,A,S,z,G;if(h=d,C=d,E=[],A=d,t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=xn(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(S=[S,z,G],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=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=xn(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(S=[S,z,G],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=jr(C)),h=C,h}function Kr(){var h,C,E,A,S,z,G,ae;if(h=d,C=d,E=[],A=d,S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(S=[S,z,G,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=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(S=[S,z,G,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=jr(C)),h=C,h}function Wr(){var h,C,E,A,S;return h=d,C=d,E=d,M++,A=Xn(),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($e)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=Dt,d++):(S=e,M===0&&ie(mt)),S!==e?(oe=h,C=Ct(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function qi(h){return h.reduce((C,E)=>Array.isArray(E)?C.concat(qi(E)):C.concat(E),[])}if(Ge=i(),Ge!==e&&d===t.length)return Ge;throw Ge!==e&&d<t.length&&ie(dr()),Ir(We,Be<t.length?t.charAt(Be):null,Be<t.length?mr(Be,Be+1):mr(Be,Be))}Ip.exports={SyntaxError:gi,parse:d$}});var Vn=re(Sn=>{"use strict";var Rl=Sn&&Sn.__assign||function(){return Rl=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},Rl.apply(this,arguments)};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isSemanticBlock=Sn.isNamedBlock=void 0;var Fp=Io(),m$=Fp.makeRule,h$=Fp.makePlug;function g$(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}Sn.isNamedBlock=g$;function y$(t){var r=t.name||"",e=(t.type||"")==="block";return e&&r===r.toUpperCase()}Sn.isSemanticBlock=y$;function Tp(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(Tp(e)):r.concat(e)},[])}var v$=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(m$(h$(i),o))}function n(i,o){if(o===void 0&&(o={}),i instanceof Array)return Tp(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 f=Rl({},i);return f.hasOwnProperty("content")&&(f.content=n(f.content,o)),f}return e(t),n.rules=r,n};Sn.default=v$});var vi=re(yi=>{"use strict";var Np=yi&&yi.__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(yi,"__esModule",{value:!0});yi.getNodeId=void 0;var $$=function(t,r){var e=Dp(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};yi.getNodeId=$$;var Dp=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={};Np(Np([],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};yi.default=Dp});var Rp=re($i=>{"use strict";var Pn=$i&&$i.__assign||function(){return Pn=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},Pn.apply(this,arguments)},jp=$i&&$i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});var Ls=Op(),Ll=jp(Vn()),b$=Vn(),w$=jp(vi()),_$=function(){return function(t){var r=(0,Ll.default)({":para":function(e,n,i){return(0,Ll.default)({":text":function(o,a){return Ls.parse(o.value)},":verbatim":function(o,a){return Ls.parse(o.value)}})(e,Pn({},n))},":block":function(e,n,i){if("name"in e&&e.name==="pod")return Pn(Pn({},e),{content:i(e.content,n,i)});var o=(0,w$.default)(e,n),a="name"in e&&e.name==="code",u="name"in e&&e.name==="data",f=o.getAllValues("allow");if((a||u)&&f.length==0)return e;var m=f.sort(),p=(0,Ll.default)({":verbatim":function(v,$){return Ls.parse(v.value,{allowed:m})},":text":function(v,$){return Ls.parse(v.value,{allowed:m})},":block":function(v,$){return(0,b$.isNamedBlock)(v.name)?v:Pn(Pn({},v),{content:p(v.content,Pn({},$))})}});return p(e,Pn({},n))}});return r(t,{})}};$i.default=_$});var Lp=re(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.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 qp=re(To=>{"use strict";var qs=To&&To.__assign||function(){return qs=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},qs.apply(this,arguments)};Object.defineProperty(To,"__esModule",{value:!0});To.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=qs(qs({},e.config),{numbered:!0}))}}r(e.content)}};return r(t),t}}});var Bp=re(No=>{"use strict";var k$=No&&No.__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(No,"__esModule",{value:!0});No.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(f,m){return m.name==="defn"?r(a,m)?f[f.length-1].push(m):f.push([m]):f.push(m),a=m,f},[]);return u.map(function(f){if(f instanceof Array){if(f[0].name!=="defn")return f;var m=f[0].name==="defn"?"variable":e(f[0])?"ordered":"itemized";return{type:"list",list:m,level:1,content:k$([],f,!0)}}return f.content&&f.type!=="fcode"&&(f.content=n(f.content)),f})},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 zp=re(bi=>{"use strict";var Mp=bi&&bi.__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))},C$=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bi,"__esModule",{value:!0});var x$=C$(vi());bi.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,x$.default)(o,{}).exists("numbered"))},n=function(o,a){a===void 0&&(a=1);var u=function($){return $.length>0&&$[$.length-1].type==="list"},f=function($){if(u($))return $[$.length-1]},m=function($,w){return w.name&&w.name==="item"&&w.type&&w.type==="block"||w.type==="blankline"},p={},v=o.reduce(function($,w){return w.name==="item"&&w.type==="block"&&w.level<a?Mp(Mp([],$,!0),[w],!1):(w.name==="item"&&w.type==="block"&&(!u($)||w.level===a&&f($).list!==(e(w)?"ordered":"itemized"))&&$.push({type:"list",level:w.level,content:[],list:e(w)?"ordered":"itemized"}),u($)&&m(f($),w)?f($).content.push(w):$.push(w),$)},[]);return v.map(function($){return $.content&&$.type!=="fcode"&&($.content=n($.content,$.level+1)),$})},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 Vp=re(Do=>{"use strict";var E$=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});var A$=E$(Vn());Do.default=function(){return function(t){var r=(0,A$.default)({defn:function(e){for(var n=e.content,i=n.length,o=[],a=!1,u=0;u<i;u++){var f=n[u];if(f.type==="para"&&!a){var m=f.content[0],p=m.value,v=p.split(`
5
+ `,!1),ce="\r",Q=rt("\r",!1),me=function(){return{type:"blankline"}},we="=begin ",_e=rt("=begin ",!1),Te="=end ",Ce=rt("=end ",!1),xe="=for ",fe=rt("=for ",!1),be="=config",Ke=rt("=config",!1),U="=alias",at=rt("=alias",!1),Le=function(l){return Yh(l)},tt=function(l){return l},He="=",T=rt("=",!1),N=ps("text"),Vt=function(){return Fr()},kt=function(){return{type:"para",value:Fr(),error:!0,location:sr()}},it=function(l,c){return Hi([l,c])},ft=function(l){return[l]},ct=",",$e=rt(",",!1),_r=function(l,c){return Hi([l,c])},Et=/^[a-zA-Z0-9]/,Nt=vt([["a","z"],["A","Z"],["0","9"]],!1,!1),rr=/^[a-zA-Z0-9_\-]/,pr=vt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Ut="=>",Qn=rt("=>",!1),Nn=function(l,c){return{[l]:c}},pt=function(l,c){return{...l,...c}},dt=function(l){return l},Dt=":",mt=rt(":",!1),Ct="allow",jr=rt("allow",!1),Rr="<",Lr=rt("<",!1),qr=">",Br=rt(">",!1),nr=function(l,c){return{value:c,type:"array"}},W=function(l,c){return{name:"allow",...c}},ne=function(l){return l},ge=function(l){return l},Se=function(l){return[l]},xt=function(){return[]},Ar=/^[!]/,ze=vt(["!"],!1,!1),ot="{",ht=rt("{",!1),Mr="}",Ye=rt("}",!1),nn=function(l,c,g){return{value:g}},At="[",Dn=rt("[",!1),co=function(l,c,g){return g},Sr="]",jn=rt("]",!1),Ni=function(l,c){return[Fr()]},po=function(l,c,g){return{value:g,type:"array"}},Rn=function(l,c,g){return{value:g,type:"array"}},Di=function(l,c,g){return{value:g,type:"string"}},Zn="(",yn=rt("(",!1),mo=function(l,c,g){return g.length>1?{type:"array",value:g}:{type:"value",value:g[0]}},vn=")",F=rt(")",!1),P=function(l,c){return{value:Fr()}},q=function(l,c,g){return{type:"value",...g}},H=function(l,c){return{value:!l,type:"boolean"}},K=function(l,c,g){return{name:c,...g}},ue=function(l,c){return c},ke=function(l,c){return Hi([...l,...c])},Pe=/^[^'"]/,De=vt(["'",'"'],!0,!1),d=function(l){return l},oe=/^[0-9]/,qe=vt([["0","9"]],!1,!1),Be=/^[\-+]/,We=vt(["-","+"],!1,!1),M="True",Ge=rt("True",!1),Me=function(){return!0},zr="False",Ht=rt("False",!1),ir=function(){return!1},he=".",lt=rt(".",!1),Kt=/^[eE]/,dr=vt(["e","E"],!1,!1),Pr=/^["]/,or=vt(['"'],!1,!1),mr=/^[^"]/,ie=vt(['"'],!0,!1),$n=/^[']/,Ir=vt(["'"],!1,!1),Or=/^[^']/,jt=vt(["'"],!0,!1),on=function(l){return parseFloat(l)},Jn=function(l){return parseInt(l,10)},kr=function(l,c,g){return c.match(/code|comment|output|input|data/)||ys(c)},Xn=function(l,c,g,y,_){return l.length===y.length&&c===_},Yn=function(l,c,g,y,_){return eg(l,`${y}${_}`)},Ln=function(l,c,g,y,_,b){return c===b},bn=function(l,c,g,y,_,b){return{type:"block",content:y===""?[]:[{type:"verbatim",value:y.join("")}],name:c,margin:l}},Vr=function(l,c,g,y,_,b){return!0},ji=function(l,c,g,y,_,b){return{...b,text:Fr(),config:g,location:sr()}},sn=/^[+-=_|]/,ei=vt([["+","="],"_","|"],!1,!1),Ur=function(){return{type:"separator",text:Fr()}},ti=function(){return r.isDelimited},Rt=function(){return{type:"separator",text:Fr()}},Lt=function(l){return{name:"row",type:"text",value:l}},ri=function(){return r.separators=[],!0},wn=function(l,c){return r.separators.push(c.text),c},St=function(l,c,g,y){return r.separators.push(y.text),y},_n=function(l,c,g,y){return[{name:"row",type:"text",value:g},y]},Hr=function(l,c,g){return[g]},kn=function(l,c,g){return r.separators.length>1?!r.separators.every(y=>y===r.separators[0]):!0},Ri=function(l,c,g){return[{name:"head",type:"text",value:l},c,...Hi(g)]},Cn=function(l,c){return[{name:"row",type:"text",value:l},c]},ho=function(l){return[...Hi(l)]},go=function(l,c,g){return c==="table"},ss=function(l,c,g){return r.isDelimited=!0,!0},as=function(l,c,g,y){return y},yo=function(l,c,g,y,_,b){return{type:"block",content:y,name:c,margin:l}},vo=function(l,c,g,y,_,b){return{...b,text:Fr(),config:g,location:sr()}},$o=function(l,c,g,y){return y},Pt=function(l,c,g,y,_){let b=c.match(/pod|nested|item|code|defn/)&&y.length-l.length>0?"code":"para";return{text:_,margin:y,type:b,content:[{type:b==="code"?"verbatim":"text",value:_}],location:sr()}},Qe=function(l,c,g,y,_,b){return{type:"block",content:y,name:c,margin:l}},Li=function(l,c,g,y,_,b){return{...b,config:g,location:sr()}},Cf=function(){return{text:Fr(),type:"para",margin:"",content:[{type:"text",value:Fr()}],location:sr()}},xn=function(){return{empty:1}},Kr=/^[s]/,Wr=vt(["s"],!1,!1),qi=function(l){return{text:Fr(),type:"ambient1"}},h=function(l,c){return c.match(/code|comment|output|input|data/)||ys(c)},C=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:[{type:"verbatim",value:g}],name:c,config:[],location:sr()}},E=function(l,c){return c==="table"},A=function(l,c){return r.isDelimited=!1,!0},S=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:g,name:c,config:[],location:sr()}},z=function(l,c,g){return{margin:l,type:"block",content:g===""?[]:[{type:"para",text:g,margin:"",content:[{type:"text",value:g}],location:sr()}],name:c,location:sr()}},G="= ",ae=rt("= ",!1),Wt=function(l,c,g,y){return{name:g,type:"alias",replacement:y,margin:l}},It=/^[A-Z]/,hr=vt([["A","Z"]],!1,!1),xf="<>",Sh=rt("<>",!1),Ph=function(l,c,g,y){return{name:g,type:"config",config:y,margin:l}},Ih=function(l,c,g,y){return g.match(/code|comment|output|input|data/)||ys(g)},Oh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:[{type:"verbatim",value:_}],name:g,margin:l,config:y,location:sr()}},Fh=function(l,c,g,y){return g==="table"},Th=function(l,c,g,y){return r.isDelimited=!1,!0},Nh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:_,name:g,margin:l,config:y,location:sr()}},Dh=function(l,c,g,y,_){return{type:"block",content:_===""?[]:[{type:"para",content:[{type:"text",value:_}],margin:l,text:_,location:sr()}],name:g,margin:l,config:y,location:sr()}},jh=/^[a-zA-Z]/,Rh=vt([["a","z"],["A","Z"]],!1,!1),Lh=ps("whitespace"),ls=/^[\r\n \t\f]/,us=vt(["\r",`
6
+ `," "," ","\f"],!1,!1),qh=ps("space characters"),s=0,J=0,fs=[{line:1,column:1}],an=0,_a=[],B=0,cs;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 Fr(){return t.substring(J,s)}function sr(){return bo(J,s)}function yk(l,c){throw c=c!==void 0?c:bo(J,s),Af([ps(l)],t.substring(J,s),c)}function vk(l,c){throw c=c!==void 0?c:bo(J,s),zh(l,c)}function rt(l,c){return{type:"literal",text:l,ignoreCase:c}}function vt(l,c,g){return{type:"class",parts:l,inverted:c,ignoreCase:g}}function Bh(){return{type:"any"}}function Mh(){return{type:"end"}}function ps(l){return{type:"other",description:l}}function Ef(l){var c=fs[l],g;if(c)return c;for(g=l-1;!fs[g];)g--;for(c=fs[g],c={line:c.line,column:c.column};g<l;)t.charCodeAt(g)===10?(c.line++,c.column=1):c.column++,g++;return fs[l]=c,c}function bo(l,c){var g=Ef(l),y=Ef(c);return{start:{offset:l,line:g.line,column:g.column},end:{offset:c,line:y.line,column:y.column}}}function X(l){s<an||(s>an&&(an=s,_a=[]),_a.push(l))}function zh(l,c){return new hi(l,null,null,c)}function Af(l,c,g){return new hi(hi.buildMessage(l,c),l,c,g)}function Sf(){var l,c,g;for(l=s,c=[],g=Pf();g!==e;)c.push(g),g=Pf();return c!==e&&(J=l,c=o(c)),l=c,l}function Pf(){var l,c,g,y,_,b,R,V;if(l=ka(),l===e&&(l=xa(),l===e&&(l=Ea(),l===e&&(l=Fa(),l===e&&(l=Ta(),l===e&&(l=Na(),l===e&&(l=Ia(),l===e&&(l=Oa(),l===e&&(l=Aa(),l===e&&(l=Sa(),l===e&&(l=Pa(),l===e&&(l=s,J=s,c=a(),c?c=void 0:c=e,c!==e?(g=Zh(),g===e&&(g=ln(),g===e&&(g=Hh())),g!==e?(J=l,c=u(g),l=c):(s=l,l=e)):(s=l,l=e),l===e)))))))))))){if(l=s,c=s,g=[],y=s,_=s,B++,b=s,R=En(),R!==e?(V=Gt(),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=oi()),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,_=s,B++,b=s,R=En(),R!==e?(V=Gt(),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=oi()),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e);else g=e;g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=m()),l=c}return l}function $t(){var l;return p.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(v)),l}function pe(){var l,c;for(l=[],$.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(w));c!==e;)l.push(c),$.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(w));return l}function ni(){var l,c,g,y;for(l=s,c=s,g=[],y=$t();y!==e;)g.push(y),y=$t();return g!==e?(k.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(I)),y!==e?(g=[g,y],c=g):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l}function $k(){var l,c,g,y;if(l=s,c=s,g=[],y=wo(),y!==e)for(;y!==e;)g.push(y),y=wo();else g=e;return g!==e?c=t.substring(c,s):c=g,c!==e?(g=Bi(),g!==e?(J=l,c=j(c),l=c):(s=l,l=e)):(s=l,l=e),l}function wo(){var l;return D.test(t.charAt(s))?(l=t.charAt(s),s++):(l=e,B===0&&X(Y)),l}function ii(){var l,c,g;return t.charCodeAt(s)===10?(l=ee,s++):(l=e,B===0&&X(de)),l===e&&(l=s,t.charCodeAt(s)===13?(c=ce,s++):(c=e,B===0&&X(Q)),c!==e?(t.charCodeAt(s)===10?(g=ee,s++):(g=e,B===0&&X(de)),g===e&&(g=null),g!==e?(c=[c,g],l=c):(s=l,l=e)):(s=l,l=e)),l}function Bi(){var l,c;return l=ii(),l===e&&(l=s,B++,t.length>s?(c=t.charAt(s),s++):(c=e,B===0&&X(f)),B--,c===e?l=void 0:(s=l,l=e)),l}function Cr(){var l,c,g,y;for(l=s,c=s,g=[],y=$t();y!==e;)g.push(y),y=$t();return g!==e?(k.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(I)),y!==e?(g=[g,y],c=g):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l}function ln(){var l,c,g,y,_;for(l=s,c=s,g=s,y=[],_=$t();_!==e;)y.push(_),_=$t();return y!==e?(k.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(I)),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=me()),l=c,l}function ds(){var l;return t.substr(s,7)===we?(l=we,s+=7):(l=e,B===0&&X(_e)),l}function Mi(){var l;return t.substr(s,5)===Te?(l=Te,s+=5):(l=e,B===0&&X(Ce)),l}function ms(){var l;return t.substr(s,5)===xe?(l=xe,s+=5):(l=e,B===0&&X(fe)),l}function Vh(){var l;return t.substr(s,7)===be?(l=be,s+=7):(l=e,B===0&&X(Ke)),l}function Uh(){var l;return t.substr(s,6)===U?(l=U,s+=6):(l=e,B===0&&X(at)),l}function Gt(){var l,c,g;return l=s,c=Da(),c!==e?(J=s,g=Le(c),g?g=void 0:g=e,g!==e?(J=l,c=tt(c),l=c):(s=l,l=e)):(s=l,l=e),l}function oi(){var l,c,g;return l=s,t.charCodeAt(s)===61?(c=He,s++):(c=e,B===0&&X(T)),c!==e?(g=Gt(),g!==e?(J=l,c=tt(g),l=c):(s=l,l=e)):(s=l,l=e),l}function En(){var l;return l=ds(),l===e&&(l=Mi(),l===e&&(l=ms(),l===e&&(l=Vh(),l===e&&(l=Uh())))),l}function un(){var l,c,g;if(B++,l=s,c=[],g=wo(),g!==e)for(;g!==e;)c.push(g),g=wo();else c=e;return c!==e?l=t.substring(l,s):l=c,B--,l===e&&(c=e,B===0&&X(N)),l}function qt(){var l,c,g,y,_,b,R;if(l=s,c=s,B++,g=s,y=pe(),y!==e?(_=s,b=En(),b!==e?(R=Gt(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_===e&&(_=oi()),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?c=void 0:(s=c,c=e),c!==e){if(g=s,y=[],_=un(),_!==e)for(;_!==e;)y.push(_),_=un();else y=e;y!==e?g=t.substring(g,s):g=y,g!==e?(y=Bi(),y!==e?(J=l,c=Vt(),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l}function Hh(){var l,c,g,y,_,b;if(l=s,c=s,g=[],y=s,_=s,B++,b=Bi(),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y!==e)for(;y!==e;)g.push(y),y=s,_=s,B++,b=Bi(),B--,b===e?_=void 0:(s=_,_=e),_!==e?(t.length>s?(b=t.charAt(s),s++):(b=e,B===0&&X(f)),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e);else g=e;return g!==e?c=t.substring(c,s):c=g,c!==e?(g=Bi(),g!==e?(J=l,c=kt(),l=c):(s=l,l=e)):(s=l,l=e),l}function If(){var l,c,g,y;if(l=s,c=Of(),c!==e){if(g=[],y=$t(),y!==e)for(;y!==e;)g.push(y),y=$t();else g=e;g!==e?(y=If(),y!==e?(J=l,c=it(c,y),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,c=Of(),c!==e&&(J=l,c=ft(c)),l=c),l}function Of(){var l,c;return l=s,c=wo(),c!==e?l=t.substring(l,s):l=c,l}function hs(){var l,c,g,y,_,b;if(l=s,c=Vi(),c!==e){if(g=[],y=$t(),y!==e)for(;y!==e;)g.push(y),y=$t();else g=e;g===e&&(g=s,y=pe(),y!==e?(t.charCodeAt(s)===44?(_=ct,s++):(_=e,B===0&&X($e)),_!==e?(b=pe(),b!==e?(y=[y,_,b],g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e)),g!==e?(y=hs(),y!==e?(J=l,c=_r(c,y),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;return l===e&&(l=s,c=Vi(),c!==e&&(J=l,c=ft(c)),l=c),l}function Kh(){var l,c,g,y,_;if(l=s,c=s,g=[],Et.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Nt)),y!==e)for(;y!==e;)g.push(y),Et.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Nt));else g=e;if(g!==e){for(y=[],rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));_!==e;)y.push(_),rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function Ff(){var l,c,g,y,_,b;return l=s,c=Kh(),c!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X($e)),y===e&&(t.substr(s,2)===Ut?(y=Ut,s+=2):(y=e,B===0&&X(Qn))),y!==e?(_=pe(),_!==e?(b=Vi(),b!==e?(J=l,c=Nn(c,b),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function Tf(){var l,c,g,y,_,b;return l=s,c=Ff(),c!==e?(g=pe(),g!==e?(t.charCodeAt(s)===44?(y=ct,s++):(y=e,B===0&&X($e)),y!==e?(_=pe(),_!==e?(b=Tf(),b!==e?(J=l,c=pt(c,b),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l===e&&(l=s,c=Ff(),c!==e&&(J=l,c=dt(c)),l=c),l}function Wh(){var l,c,g,y,_,b,R,V,x,O;return l=s,c=pe(),c!==e?(t.charCodeAt(s)===58?(g=Dt,s++):(g=e,B===0&&X(mt)),g!==e?(t.substr(s,5)===Ct?(y=Ct,s+=5):(y=e,B===0&&X(jr)),y!==e?(_=s,t.charCodeAt(s)===60?(b=Rr,s++):(b=e,B===0&&X(Lr)),b!==e?(R=pe(),R!==e?(V=If(),V!==e?(x=pe(),x!==e?(t.charCodeAt(s)===62?(O=qr,s++):(O=e,B===0&&X(Br)),O!==e?(J=_,b=nr(y,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)):(s=_,_=e),_!==e?(b=pe(),b!==e?(J=l,c=W(y,_),l=c):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e)):(s=l,l=e),l}function bk(){var l,c,g,y,_,b;for(l=s,c=[],g=s,y=pe(),y!==e?(_=Vi(),_!==e?(b=pe(),b!==e?(J=g,y=ne(_),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);g!==e;)c.push(g),g=s,y=pe(),y!==e?(_=Vi(),_!==e?(b=pe(),b!==e?(J=g,y=ne(_),g=y):(s=g,g=e)):(s=g,g=e)):(s=g,g=e);return c!==e&&(J=l,c=ge(c)),l=c,l===e&&(l=s,c=Vi(),c!==e&&(J=l,c=Se(c)),l=c,l===e&&(l=s,c=pe(),c!==e&&(J=l,c=xt()),l=c)),l}function zi(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se;if(l=Wh(),l===e)if(l=s,c=pe(),c!==e)if(t.charCodeAt(s)===58?(g=Dt,s++):(g=e,B===0&&X(mt)),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(_=Da(),_!==e){if(b=s,t.charCodeAt(s)===123?(R=ot,s++):(R=e,B===0&&X(ht)),R!==e?(V=pe(),V!==e?(x=Tf(),x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===125?(L=Mr,s++):(L=e,B===0&&X(Ye)),L!==e?(J=b,R=nn(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e),b===e){if(b=s,t.charCodeAt(s)===91?(R=At,s++):(R=e,B===0&&X(Dn)),R!==e)if(V=pe(),V!==e){if(x=s,O=hs(),O!==e&&(J=x,O=co(y,_,O)),x=O,x===e){if(x=s,O=s,L=[],Z=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(jn)),se===e&&(t.charCodeAt(s)===91?(se=At,s++):(se=e,B===0&&X(Dn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e),Z!==e)for(;Z!==e;)L.push(Z),Z=s,te=s,B++,t.charCodeAt(s)===93?(se=Sr,s++):(se=e,B===0&&X(jn)),se===e&&(t.charCodeAt(s)===91?(se=At,s++):(se=e,B===0&&X(Dn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e);else L=e;L!==e?O=t.substring(O,s):O=L,O!==e&&(J=x,O=Ni(y,_)),x=O}x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===93?(L=Sr,s++):(L=e,B===0&&X(jn)),L!==e?(J=b,R=po(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;if(b===e&&(b=s,t.charCodeAt(s)===60?(R=Rr,s++):(R=e,B===0&&X(Lr)),R!==e?(V=pe(),V!==e?(x=hs(),x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===62?(L=qr,s++):(L=e,B===0&&X(Br)),L!==e?(J=b,R=Rn(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)):(s=b,b=e),b===e)){if(b=s,t.charCodeAt(s)===60?(R=Rr,s++):(R=e,B===0&&X(Lr)),R!==e)if(V=pe(),V!==e){if(x=s,O=[],L=s,Z=s,B++,t.charCodeAt(s)===60?(te=Rr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=qr,s++):(te=e,B===0&&X(Br))),B--,te===e?Z=void 0:(s=Z,Z=e),Z!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(f)),te!==e?(Z=[Z,te],L=Z):(s=L,L=e)):(s=L,L=e),L!==e)for(;L!==e;)O.push(L),L=s,Z=s,B++,t.charCodeAt(s)===60?(te=Rr,s++):(te=e,B===0&&X(Lr)),te===e&&(t.charCodeAt(s)===62?(te=qr,s++):(te=e,B===0&&X(Br))),B--,te===e?Z=void 0:(s=Z,Z=e),Z!==e?(t.length>s?(te=t.charAt(s),s++):(te=e,B===0&&X(f)),te!==e?(Z=[Z,te],L=Z):(s=L,L=e)):(s=L,L=e);else O=e;O!==e?x=t.substring(x,s):x=O,x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===62?(L=qr,s++):(L=e,B===0&&X(Br)),L!==e?(J=b,R=Di(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;if(b===e){if(b=s,t.charCodeAt(s)===40?(R=Zn,s++):(R=e,B===0&&X(yn)),R!==e)if(V=pe(),V!==e){if(x=s,O=hs(),O!==e&&(J=x,O=mo(y,_,O)),x=O,x===e){if(x=s,O=s,L=[],Z=s,te=s,B++,t.charCodeAt(s)===41?(se=vn,s++):(se=e,B===0&&X(F)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(yn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e),Z!==e)for(;Z!==e;)L.push(Z),Z=s,te=s,B++,t.charCodeAt(s)===41?(se=vn,s++):(se=e,B===0&&X(F)),se===e&&(t.charCodeAt(s)===40?(se=Zn,s++):(se=e,B===0&&X(yn))),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(f)),se!==e?(te=[te,se],Z=te):(s=Z,Z=e)):(s=Z,Z=e);else L=e;L!==e?O=t.substring(O,s):O=L,O!==e&&(J=x,O=P(y,_)),x=O}x!==e?(O=pe(),O!==e?(t.charCodeAt(s)===41?(L=vn,s++):(L=e,B===0&&X(F)),L!==e?(J=b,R=q(y,_,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)}else s=b,b=e;else s=b,b=e;b===e&&(b=s,R=pe(),R!==e&&(J=b,R=H(y,_)),b=R)}}}b!==e?(R=pe(),R!==e?(J=l,c=K(y,_,b),l=c):(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 si(){var l,c,g,y,_,b,R,V,x,O;for(l=s,c=[],g=zi();g!==e;)c.push(g),g=zi();if(c!==e)if(g=ii(),g!==e){if(y=[],_=s,t.charCodeAt(s)===61?(b=He,s++):(b=e,B===0&&X(T)),b!==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?(O=ii(),O!==e?(J=_,b=ue(c,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;for(;_!==e;)if(y.push(_),_=s,t.charCodeAt(s)===61?(b=He,s++):(b=e,B===0&&X(T)),b!==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?(O=ii(),O!==e?(J=_,b=ue(c,V),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;y!==e?(J=l,c=ke(c,y),l=c):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function wk(){var l,c,g,y;if(l=s,c=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?c=t.substring(c,s):c=g,c!==e&&(J=l,c=d(c)),l=c,l}function Nf(){var l,c,g;if(l=s,c=[],oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(qe)),g!==e)for(;g!==e;)c.push(g),oe.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(qe));else c=e;return c!==e?l=t.substring(l,s):l=c,l}function gs(){var l,c,g,y,_;if(l=s,c=s,Be.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(We)),g===e&&(g=null),g!==e){if(y=[],oe.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(qe)),_!==e)for(;_!==e;)y.push(_),oe.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(qe));else y=e;y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function Gh(){var l,c;return l=s,t.substr(s,4)===M?(c=M,s+=4):(c=e,B===0&&X(Ge)),c!==e&&(J=l,c=Me()),l=c,l===e&&(l=s,t.substr(s,5)===zr?(c=zr,s+=5):(c=e,B===0&&X(Ht)),c!==e&&(J=l,c=ir()),l=c),l}function Qh(){var l,c,g,y,_,b;return l=s,c=s,g=gs(),g!==e?(y=s,t.charCodeAt(s)===46?(_=he,s++):(_=e,B===0&&X(lt)),_!==e?(b=Nf(),b!==e?(_=[_,b],y=_):(s=y,y=e)):(s=y,y=e),y===e&&(y=null),y!==e?(Kt.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(dr)),_!==e?(b=gs(),b!==e?(g=[g,y,_,b],c=g):(s=c,c=e)):(s=c,c=e)):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c,l===e&&(l=s,c=s,g=gs(),g!==e?(t.charCodeAt(s)===46?(y=he,s++):(y=e,B===0&&X(lt)),y!==e?(_=Nf(),_!==e?(g=[g,y,_],c=g):(s=c,c=e)):(s=c,c=e)):(s=c,c=e),c!==e?l=t.substring(l,s):l=c),l}function Vi(){var l,c,g,y,_;if(l=s,Pr.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(or)),c!==e){for(g=s,y=[],mr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(ie));_!==e;)y.push(_),mr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=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(or)),y!==e?(J=l,c=d(g),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;if(l===e){if(l=s,$n.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(Ir)),c!==e){for(g=s,y=[],Or.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(jt));_!==e;)y.push(_),Or.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(jt));y!==e?g=t.substring(g,s):g=y,g!==e?($n.test(t.charAt(s))?(y=t.charAt(s),s++):(y=e,B===0&&X(Ir)),y!==e?(J=l,c=d(g),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e;l===e&&(l=Gh(),l===e&&(l=s,c=Qh(),c!==e&&(J=l,c=on(c)),l=c,l===e&&(l=s,c=gs(),c!==e&&(J=l,c=Jn(c)),l=c)))}return l}function ka(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se,nt,qn,Nr;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=kr(c,y,b),R?R=void 0:R=e,R!==e){if(V=[],x=s,O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=ni(),Z===e&&(Z=s,te=s,B++,se=En(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,nt=Mi(),nt!==e?(qn=Gt(),qn!==e?(J=s,Nr=Xn(c,y,b,O,qn),Nr?Nr=void 0:Nr=e,Nr!==e?(nt=[nt,qn,Nr],se=nt):(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?(nt=ni(),nt===e&&(nt=null),nt!==e?(te=[te,se,nt],Z=te):(s=Z,Z=e)):(s=Z,Z=e)):(s=Z,Z=e)),Z!==e?L=t.substring(L,s):L=Z,L!==e?(J=x,O=Yn(c,y,b,O,L),x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=ni(),Z===e&&(Z=s,te=s,B++,se=En(),B--,se===e?te=void 0:(s=te,te=e),te===e&&(te=s,B++,se=s,nt=Mi(),nt!==e?(qn=Gt(),qn!==e?(J=s,Nr=Xn(c,y,b,O,qn),Nr?Nr=void 0:Nr=e,Nr!==e?(nt=[nt,qn,Nr],se=nt):(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?(nt=ni(),nt===e&&(nt=null),nt!==e?(te=[te,se,nt],Z=te):(s=Z,Z=e)):(s=Z,Z=e)):(s=Z,Z=e)),Z!==e?L=t.substring(L,s):L=Z,L!==e?(J=x,O=Yn(c,y,b,O,L),x=O):(s=x,x=e)):(s=x,x=e);else V=e;V!==e?(x=s,O=pe(),O!==e?x=t.substring(x,s):x=O,x!==e?(O=s,L=Mi(),L!==e?(Z=Gt(),Z!==e?(J=s,te=Ln(c,y,b,V,x,Z),te?te=void 0:te=e,te!==e?(se=ni(),se===e&&(se=null),se!==e?(J=O,L=bn(c,y,b,V,x,Z),O=L):(s=O,O=e)):(s=O,O=e)):(s=O,O=e)):(s=O,O=e),O!==e?(J=s,L=Vr(c,y,b,V,x,O),L?L=void 0:L=e,L!==e?(J=l,c=ji(c,y,b,V,x,O),l=c):(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,c,g,y,_,b,R,V,x;if(l=s,c=s,B++,g=s,y=pe(),y!==e?(_=En(),_===e&&(_=oi()),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e),g===e&&(g=ln()),B--,g===e?c=void 0:(s=c,c=e),c!==e){for(g=[],y=$t();y!==e;)g.push(y),y=$t();if(g!==e){if(y=s,_=[],b=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(ei)),R!==e){for(V=[],x=$t();x!==e;)V.push(x),x=$t();V!==e?(R=[R,V],b=R):(s=b,b=e)}else s=b,b=e;if(b!==e)for(;b!==e;)if(_.push(b),b=s,sn.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(ei)),R!==e){for(V=[],x=$t();x!==e;)V.push(x),x=$t();V!==e?(R=[R,V],b=R):(s=b,b=e)}else s=b,b=e;else _=e;_!==e?y=t.substring(y,s):y=_,y!==e?(_=Bi(),_!==e?(J=l,c=Ur(),l=c):(s=l,l=e)):(s=l,l=e)}else s=l,l=e}else s=l,l=e;return l}function gr(){var l,c,g,y,_;return l=s,c=s,g=Ui(),g===e&&(g=s,J=s,y=ti(),y?y=void 0:y=e,y!==e?(_=ln(),_!==e?(y=[y,_],g=y):(s=g,g=e)):(s=g,g=e)),g!==e?c=t.substring(c,s):c=g,c!==e&&(J=l,c=Rt()),l=c,l}function Tr(){var l,c;return l=s,c=qt(),c!==e&&(J=l,c=Lt(c)),l=c,l}function Ca(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,J=s,c=ri(),c?c=void 0:c=e,c!==e){if(g=s,y=[],_=s,b=s,B++,R=Ui(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e)for(;_!==e;)y.push(_),_=s,b=s,B++,R=Ui(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e);else y=e;if(y!==e?g=t.substring(g,s):g=y,g!==e)if(y=s,_=Ui(),_!==e&&(J=y,_=wn(g,_)),y=_,y!==e){if(_=[],b=s,R=s,V=[],x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(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=gr(),x!==e&&(J=V,x=St(g,y,R,x)),V=x,V!==e?(J=b,R=_n(g,y,R,V),b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=gr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Tr(),x!==e?(J=b,R=Hr(g,y,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e)),b!==e)for(;b!==e;){if(_.push(b),b=s,R=s,V=[],x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e),x!==e)for(;x!==e;)V.push(x),x=s,O=s,B++,L=gr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=Tr(),L!==e?(O=[O,L],x=O):(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=gr(),x!==e&&(J=V,x=St(g,y,R,x)),V=x,V!==e?(J=b,R=_n(g,y,R,V),b=R):(s=b,b=e)):(s=b,b=e),b===e&&(b=s,R=s,B++,V=Ui(),B--,V===e?R=void 0:(s=R,R=e),R!==e?(V=s,B++,x=gr(),B--,x===e?V=void 0:(s=V,V=e),V!==e?(x=Tr(),x!==e?(J=b,R=Hr(g,y,x),b=R):(s=b,b=e)):(s=b,b=e)):(s=b,b=e))}else _=e;_!==e?(J=s,b=kn(g,y,_),b?b=void 0:b=e,b!==e?(J=l,c=Ri(g,y,_),l=c):(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,c=[],g=s,y=s,_=s,b=s,B++,R=gr(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e?y=t.substring(y,s):y=_,y!==e){for(_=[],b=gr();b!==e;)_.push(b),b=gr();_!==e?(J=g,y=Cn(y,_),g=y):(s=g,g=e)}else s=g,g=e;if(g!==e)for(;g!==e;)if(c.push(g),g=s,y=s,_=s,b=s,B++,R=gr(),B--,R===e?b=void 0:(s=b,b=e),b!==e?(R=Tr(),R!==e?(b=[b,R],_=b):(s=_,_=e)):(s=_,_=e),_!==e?y=t.substring(y,s):y=_,y!==e){for(_=[],b=gr();b!==e;)_.push(b),b=gr();_!==e?(J=g,y=Cn(y,_),g=y):(s=g,g=e)}else s=g,g=e;else c=e;if(c!==e&&(J=l,c=ho(c)),l=c,l===e)if(l=[],c=Tr(),c!==e)for(;c!==e;)l.push(c),c=Tr();else l=e}return l}function xa(){var l,c,g,y,_,b,R,V,x,O,L,Z,te,se,nt;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=go(c,y,b),R?R=void 0:R=e,R!==e)if(J=s,V=ss(c,y,b),V?V=void 0:V=e,V!==e){for(x=s,O=[],L=ln();L!==e;)O.push(L),L=ln();if(O!==e)if(L=Ca(),L!==e){for(Z=[],te=ln();te!==e;)Z.push(te),te=ln();Z!==e?(J=x,O=as(c,y,b,L),x=O):(s=x,x=e)}else s=x,x=e;else s=x,x=e;x!==e?(O=s,L=pe(),L!==e?O=t.substring(O,s):O=L,O!==e?(L=s,Z=Mi(),Z!==e?(te=Gt(),te!==e?(J=s,se=Ln(c,y,b,x,O,te),se?se=void 0:se=e,se!==e?(nt=ni(),nt===e&&(nt=null),nt!==e?(J=L,Z=yo(c,y,b,x,O,te),L=Z):(s=L,L=e)):(s=L,L=e)):(s=L,L=e)):(s=L,L=e),L!==e?(J=s,Z=Vr(c,y,b,x,O,L),Z?Z=void 0:Z=e,Z!==e?(J=l,c=vo(c,y,b,x,O,L),l=c):(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 Ea(){var l,c,g,y,_,b,R,V,x,O,L,Z,te;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ds(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e){if(R=[],V=s,x=ln(),x===e&&(x=ka(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Fa(),x===e&&(x=Ta(),x===e&&(x=Na(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Aa(),x===e&&(x=Sa(),x===e&&(x=Pa()))))))))))),x!==e&&(J=V,x=$o(c,y,b,x)),V=x,V===e){for(V=s,x=s,O=[],L=$t();L!==e;)O.push(L),L=$t();if(O!==e?x=t.substring(x,s):x=O,x!==e){if(O=s,L=[],Z=qt(),Z!==e)for(;Z!==e;)L.push(Z),Z=qt();else L=e;L!==e?O=t.substring(O,s):O=L,O!==e?(J=V,x=Pt(c,y,b,x,O),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=ka(),x===e&&(x=xa(),x===e&&(x=Ea(),x===e&&(x=Fa(),x===e&&(x=Ta(),x===e&&(x=Na(),x===e&&(x=Ia(),x===e&&(x=Oa(),x===e&&(x=Aa(),x===e&&(x=Sa(),x===e&&(x=Pa()))))))))))),x!==e&&(J=V,x=$o(c,y,b,x)),V=x,V===e){for(V=s,x=s,O=[],L=$t();L!==e;)O.push(L),L=$t();if(O!==e?x=t.substring(x,s):x=O,x!==e){if(O=s,L=[],Z=qt(),Z!==e)for(;Z!==e;)L.push(Z),Z=qt();else L=e;L!==e?O=t.substring(O,s):O=L,O!==e?(J=V,x=Pt(c,y,b,x,O),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,O=Mi(),O!==e?(L=Gt(),L!==e?(J=s,Z=Ln(c,y,b,R,V,L),Z?Z=void 0:Z=e,Z!==e?(te=ni(),te===e&&(te=null),te!==e?(J=x,O=Qe(c,y,b,R,V,L),x=O):(s=x,x=e)):(s=x,x=e)):(s=x,x=e)):(s=x,x=e),x!==e?(J=s,O=Vr(c,y,b,R,V,x),O?O=void 0:O=e,O!==e?(J=l,c=Li(c,y,b,R,V,x),l=c):(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 Zh(){var l,c,g;if(l=s,c=[],g=qt(),g!==e)for(;g!==e;)c.push(g),g=qt();else c=e;return c!==e&&(J=l,c=Cf()),l=c,l}function _k(){var l,c,g,y;if(l=s,c=[],g=s,y=Cr(),y!==e&&(J=g,y=xn()),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=qt())}if(g!==e){for(;g!==e;)if(c.push(g),g=s,y=Cr(),y!==e&&(J=g,y=xn()),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=qt())}}else c=e;return c!==e&&(J=l,c=qi(c)),l=c,l}function Aa(){var l,c,g,y,_,b,R,V,x,O,L,Z;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=oi(),y!==e)if(_=pe(),_!==e)if(b=Cr(),b===e&&(b=null),b!==e)if(J=s,R=h(c,y),R?R=void 0:R=e,R!==e){for(V=s,x=[],O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);O!==e;)x.push(O),O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);x!==e?V=t.substring(V,s):V=x,V!==e?(J=l,c=C(c,y,V),l=c):(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 Sa(){var l,c,g,y,_,b,R,V,x;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e?(y=oi(),y!==e?(_=pe(),_!==e?(b=Cr(),b===e&&(b=null),b!==e?(J=s,R=E(c,y),R?R=void 0:R=e,R!==e?(J=s,V=A(c,y),V?V=void 0:V=e,V!==e?(x=Ca(),x!==e?(J=l,c=S(c,y,x),l=c):(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 Pa(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=s,B++,y=En(),B--,y===e?g=void 0:(s=g,g=e),g!==e)if(y=oi(),y!==e)if(_=pe(),_!==e)if(b=Cr(),b===e&&(b=null),b!==e){for(R=s,V=[],x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(J=l,c=z(c,y,R),l=c):(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 Jh(){var l,c,g,y,_,b,R,V,x,O,L;for(l=s,c=[],g=un();g!==e;)c.push(g),g=un();if(c!==e)if(g=ii(),g!==e){if(y=[],_=s,b=pe(),b!==e)if(t.substr(s,2)===G?(R=G,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],O=un(),O!==e)for(;O!==e;)x.push(O),O=un();else x=e;x!==e?(O=pe(),O!==e?(L=ii(),L!==e?(J=_,b=ue(c,x),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;else s=_,_=e;for(;_!==e;)if(y.push(_),_=s,b=pe(),b!==e)if(t.substr(s,2)===G?(R=G,s+=2):(R=e,B===0&&X(ae)),R!==e)if(V=pe(),V!==e){if(x=[],O=un(),O!==e)for(;O!==e;)x.push(O),O=un();else x=e;x!==e?(O=pe(),O!==e?(L=ii(),L!==e?(J=_,b=ue(c,x),_=b):(s=_,_=e)):(s=_,_=e)):(s=_,_=e)}else s=_,_=e;else s=_,_=e;else s=_,_=e;y!==e?(J=l,c=ke(c,y),l=c):(s=l,l=e)}else s=l,l=e;else s=l,l=e;return l}function Ia(){var l,c,g,y,_,b,R;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(t.substr(s,6)===U?(g=U,s+=6):(g=e,B===0&&X(at)),g!==e?(y=pe(),y!==e?(_=s,b=Da(),b!==e?_=t.substring(_,s):_=b,_!==e?(b=pe(),b!==e?(R=Jh(),R!==e?(J=l,c=Wt(c,g,_,R),l=c):(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,c,g,y,_,b,R,V;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(t.substr(s,7)===be?(g=be,s+=7):(g=e,B===0&&X(Ke)),g!==e?(y=pe(),y!==e?(_=s,b=Gt(),b===e&&(b=s,It.test(t.charAt(s))?(R=t.charAt(s),s++):(R=e,B===0&&X(hr)),R!==e?(t.substr(s,2)===xf?(V=xf,s+=2):(V=e,B===0&&X(Sh)),V!==e?(R=[R,V],b=R):(s=b,b=e)):(s=b,b=e)),b!==e?_=t.substring(_,s):_=b,_!==e?(b=pe(),b!==e?(R=si(),R!==e?(J=l,c=Ph(c,g,_,R),l=c):(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 Fa(){var l,c,g,y,_,b,R,V,x,O,L,Z;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ms(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e)if(J=s,R=Ih(c,g,y,b),R?R=void 0:R=e,R!==e){for(V=s,x=[],O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);O!==e;)x.push(O),O=s,L=s,B++,Z=Cr(),B--,Z===e?L=void 0:(s=L,L=e),L!==e?(Z=qt(),Z!==e?(L=[L,Z],O=L):(s=O,O=e)):(s=O,O=e);x!==e?V=t.substring(V,s):V=x,V!==e?(J=l,c=Oh(c,g,y,b,V),l=c):(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 Ta(){var l,c,g,y,_,b,R,V,x;return l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e?(g=ms(),g!==e?(y=Gt(),y!==e?(_=pe(),_!==e?(b=si(),b!==e?(J=s,R=Fh(c,g,y,b),R?R=void 0:R=e,R!==e?(J=s,V=Th(c,g,y,b),V?V=void 0:V=e,V!==e?(x=Ca(),x!==e?(J=l,c=Nh(c,g,y,b,x),l=c):(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 Na(){var l,c,g,y,_,b,R,V,x,O,L;if(l=s,c=s,g=pe(),g!==e?c=t.substring(c,s):c=g,c!==e)if(g=ms(),g!==e)if(y=Gt(),y!==e)if(_=pe(),_!==e)if(b=si(),b!==e){for(R=s,V=[],x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);x!==e;)V.push(x),x=s,O=s,B++,L=Cr(),B--,L===e?O=void 0:(s=O,O=e),O!==e?(L=qt(),L!==e?(O=[O,L],x=O):(s=x,x=e)):(s=x,x=e);V!==e?R=t.substring(R,s):R=V,R!==e?(J=l,c=Dh(c,g,y,b,R),l=c):(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,c,g,y,_;if(l=s,c=s,jh.test(t.charAt(s))?(g=t.charAt(s),s++):(g=e,B===0&&X(Rh)),g!==e){if(y=[],rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr)),_!==e)for(;_!==e;)y.push(_),rr.test(t.charAt(s))?(_=t.charAt(s),s++):(_=e,B===0&&X(pr));else y=e;y!==e?(g=[g,y],c=g):(s=c,c=e)}else s=c,c=e;return c!==e?l=t.substring(l,s):l=c,l}function kk(){var l,c;for(B++,l=[],ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));c!==e;)l.push(c),ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));return B--,l===e&&(c=e,B===0&&X(Lh)),l}function Ck(){var l,c;for(B++,l=[],ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));c!==e;)l.push(c),ls.test(t.charAt(s))?(c=t.charAt(s),s++):(c=e,B===0&&X(us));return B--,l===e&&(c=e,B===0&&X(qh)),l}function ys(l){return l!==l.toLowerCase()&&l!==l.toUpperCase()}function Xh(l){return l===l.toUpperCase()}function Hi(l){return l.reduce((c,g)=>Array.isArray(g)?c.concat(Hi(g)):c.concat(g),[])}function Yh(l){return["code","comment","data","defn","head","input","item","nested","output","para","pod","table"].includes(l)||Xh(l)||l.match(/^(head|item)\d+$/)||ys(l)}function eg(l,c){return l.length==0?c:c.indexOf(l)==0?c.replace(l,""):c.replace(/^\s+/,"")}if(cs=i(),cs!==e&&s===t.length)return cs;throw cs!==e&&s<t.length&&X(Mh()),Af(_a,an<t.length?t.charAt(an):null,an<t.length?bo(an,an+1):bo(an,an))}Sp.exports={SyntaxError:hi,parse:f$}});var Ip=re(Fo=>{"use strict";var jl=Fo&&Fo.__assign||function(){return jl=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},jl.apply(this,arguments)};Object.defineProperty(Fo,"__esModule",{value:!0});var c$=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=jl({},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}};Fo.default=c$});var Fp=re(($P,Op)=>{"use strict";function p$(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)}p$(gi,Error);gi.buildMessage=function(t,r){var e={literal:function(m){return'"'+i(m.text)+'"'},class:function(m){var p="",v;for(v=0;v<m.parts.length;v++)p+=m.parts[v]instanceof Array?o(m.parts[v][0])+"-"+o(m.parts[v][1]):o(m.parts[v]);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),v,$;for(v=0;v<m.length;v++)p[v]=a(m[v]);if(p.sort(),p.length>0){for(v=1,$=1;v<p.length;v++)p[v-1]!==p[v]&&(p[$]=p[v],$++);p.length=$}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 f(m){return m?'"'+i(m)+'"':"end of input"}return"Expected "+u(t)+" but "+f(r)+" found."};function d$(t,r){r=r!==void 0?r:{};var e={},n={Expression:Or},i=Or,o="A",a=he("A",!1),u="V",f=he("V",!1),m="R",p=he("R",!1),v="B",$=he("B",!1),w="I",k=he("I",!1),I="C",j=he("C",!1),D="D",Y=he("D",!1),ee="E",de=he("E",!1),ce="K",Q=he("K",!1),me="L",we=he("L",!1),_e="S",Te=he("S",!1),Ce="T",xe=he("T",!1),fe="U",be=he("U",!1),Ke="Z",U=he("Z",!1),at="N",Le=he("N",!1),tt="X",He=he("X",!1),T=/^[a-zA-Z]/,N=lt([["a","z"],["A","Z"]],!1,!1),Vt=/^[a-zA-Z0-9_\-]/,kt=lt([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),it=/^[ \t\f]/,ft=lt([" "," ","\f"],!1,!1),ct=function(h){return!(r.allowed||[]).length||(r.allowed||[]).includes(h)},$e=Kt(),_r=function(h){return h},Et=function(h){return h==="A"},Nt=function(h,C){return{content:C,type:"fcode",name:h}},rr=function(h){return h==="D"},pr=function(h,C,E){return qi(E)},Ut=function(h,C,E){return{content:C,type:"fcode",name:h,synonyms:E}},Qn=function(h){return h==="V"},Nn=function(h,C){return{content:C,type:"fcode",name:h}},pt="<",dt=he("<",!1),Dt=">",mt=he(">",!1),Ct=function(){return Me()},jr=function(h){return h},Rr=function(h){return h==="C"},Lr="|",qr=he("|",!1),Br=function(h){return h==="L"},nr=function(h,C,E){return E},W=function(h,C,E){return{content:C,type:"fcode",name:h,meta:E}},ne=";",ge=he(";",!1),Se=/^[ \xA0\u2001\t\f\u2008]/,xt=lt([" ","\xA0","\u2001"," ","\f","\u2008"],!1,!1),Ar=function(h,C){return qi([h,C])},ze=function(h){return[h]},ot=function(h){return h==="X"},ht=function(h,C,E){return{content:C,type:"fcode",name:h,entry:E}},Mr=function(h){return h==="S"},Ye=function(h){return h==="Z"},nn=/^[0-9]/,At=lt([["0","9"]],!1,!1),Dn="0d",co=he("0d",!1),Sr=function(h){return parseInt(h,10)},jn="0o",Ni=he("0o",!1),po=function(h){return parseInt(h,8)},Rn="0b",Di=he("0b",!1),Zn=function(h){return parseInt(h,2)},yn="0x",mo=he("0x",!1),vn=/^[0-9A-Fa-f]/,F=lt([["0","9"],["A","F"],["a","f"]],!1,!1),P=function(){return parseInt(Me())},q=function(h){return{type:"number",value:parseInt(h,10)}},H=function(h){return h==="E"},K=function(h,C){return qi(C)},ue=function(h,C){return{content:C||[],type:"fcode",name:h}},ke=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,qe=[{line:1,column:1}],Be=0,We=[],M=0,Ge;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 zr(){return mr(oe,d)}function Ht(h,C){throw C=C!==void 0?C:mr(oe,d),Ir([Pr(h)],t.substring(oe,d),C)}function ir(h,C){throw C=C!==void 0?C:mr(oe,d),$n(h,C)}function he(h,C){return{type:"literal",text:h,ignoreCase:C}}function lt(h,C,E){return{type:"class",parts:h,inverted:C,ignoreCase:E}}function Kt(){return{type:"any"}}function dr(){return{type:"end"}}function Pr(h){return{type:"other",description:h}}function or(h){var C=qe[h],E;if(C)return C;for(E=h-1;!qe[E];)E--;for(C=qe[E],C={line:C.line,column:C.column};E<h;)t.charCodeAt(E)===10?(C.line++,C.column=1):C.column++,E++;return qe[h]=C,C}function mr(h,C){var E=or(h),A=or(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,We=[]),We.push(h))}function $n(h,C){return new gi(h,null,null,C)}function Ir(h,C,E){return new gi(gi.buildMessage(h,C),h,C,E)}function Or(){var h,C;for(h=[],C=jt(),C===e&&(C=Li(),C===e&&(C=xn(),C===e&&(C=Yn())));C!==e;)h.push(C),C=jt(),C===e&&(C=Li(),C===e&&(C=xn(),C===e&&(C=Yn())));return h}function jt(){var h;return h=bn(),h===e&&(h=kn(),h===e&&(h=ti(),h===e&&(h=Vr(),h===e&&(h=$o(),h===e&&(h=ji(),h===e&&(h=ri(),h===e&&(h=Hr(),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(f)),h===e&&(t.charCodeAt(d)===82?(h=m,d++):(h=e,M===0&&ie(p)),h===e&&(t.charCodeAt(d)===66?(h=v,d++):(h=e,M===0&&ie($)),h===e&&(t.charCodeAt(d)===73?(h=w,d++):(h=e,M===0&&ie(k)),h===e&&(t.charCodeAt(d)===67?(h=I,d++):(h=e,M===0&&ie(j)),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=ce,d++):(h=e,M===0&&ie(Q)),h===e&&(t.charCodeAt(d)===76?(h=me,d++):(h=e,M===0&&ie(we)),h===e&&(t.charCodeAt(d)===83?(h=_e,d++):(h=e,M===0&&ie(Te)),h===e&&(t.charCodeAt(d)===84?(h=Ce,d++):(h=e,M===0&&ie(xe)),h===e&&(t.charCodeAt(d)===85?(h=fe,d++):(h=e,M===0&&ie(be)),h===e&&(t.charCodeAt(d)===90?(h=Ke,d++):(h=e,M===0&&ie(U)),h===e&&(t.charCodeAt(d)===78?(h=at,d++):(h=e,M===0&&ie(Le)),h===e&&(t.charCodeAt(d)===88?(h=tt,d++):(h=e,M===0&&ie(He))))))))))))))))),h}function Jn(){var h,C,E,A,S;if(h=d,C=d,T.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(N)),E!==e){if(A=[],Vt.test(t.charAt(d))?(S=t.charAt(d),d++):(S=e,M===0&&ie(kt)),S!==e)for(;S!==e;)A.push(S),Vt.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=[],it.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ft));C!==e;)h.push(C),it.test(t.charAt(d))?(C=t.charAt(d),d++):(C=e,M===0&&ie(ft));return h}function Xn(){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 Yn(){var h,C;return h=d,t.length>d?(C=t.charAt(d),d++):(C=e,M===0&&ie($e)),C!==e?h=t.substring(h,d):h=C,h}function Ln(){var h,C,E,A,S;return h=d,C=d,M++,E=Qe(),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=_r(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 bn(){var h,C,E,A,S;return h=d,C=Pt(),C!==e?(oe=d,E=Et(C),E?E=void 0:E=e,E!==e?(A=Ln(),A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(C,A),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function Vr(){var h,C,E,A,S,z,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=rr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Lt(),S!==e)for(;S!==e;)A.push(S),S=Lt();else A=e;if(A!==e){if(S=d,z=Rt(),z!==e){for(G=[],ae=_n();ae!==e;)G.push(ae),ae=_n();G!==e?(oe=S,z=pr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=Ut(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 ji(){var h,C,E,A,S,z;if(h=d,C=Pt(),C!==e)if(oe=d,E=Qn(C),E?E=void 0:E=e,E!==e){if(A=d,S=[],z=Ur(),z!==e)for(;z!==e;)S.push(z),z=Ur();else S=e;S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nn(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=v,d++):(h=e,M===0&&ie($)),h}function ei(){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($e)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=Dt,d++):(S=e,M===0&&ie(mt)),S!==e?(oe=h,C=Ct(),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,G,ae;if(h=d,C=d,E=[],A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(G=pt,d++):(G=e,M===0&&ie(dt)),M--,G===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(G=t.charAt(d),d++):(G=e,M===0&&ie($e)),G!==e?(z=[z,G],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),z!==e?(G=Ur(),G===e&&(G=null),G!==e?(t.charCodeAt(d)===62?(ae=Dt,d++):(ae=e,M===0&&ie(mt)),ae!==e?(S=[S,z,G,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=ei(),A===e&&(A=Kr())),A!==e)for(;A!==e;)E.push(A),A=d,S=d,z=d,M++,t.charCodeAt(d)===60?(G=pt,d++):(G=e,M===0&&ie(dt)),M--,G===e?z=void 0:(d=z,z=e),z!==e?(t.length>d?(G=t.charAt(d),d++):(G=e,M===0&&ie($e)),G!==e?(z=[z,G],S=z):(d=S,S=e)):(d=S,S=e),S===e&&(S=null),S!==e?(t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),z!==e?(G=Ur(),G===e&&(G=null),G!==e?(t.charCodeAt(d)===62?(ae=Dt,d++):(ae=e,M===0&&ie(mt)),ae!==e?(S=[S,z,G,ae],A=S):(d=A,A=e)):(d=A,A=e)):(d=A,A=e)):(d=A,A=e),A===e&&(A=ei(),A===e&&(A=Kr()));else E=e;return E!==e?C=t.substring(C,d):C=E,C!==e&&(oe=h,C=jr(C)),h=C,h}function ti(){var h,C,E,A,S;if(h=d,C=Pt(),C!==e)if(oe=d,E=Rr(C),E?E=void 0:E=e,E!==e){if(A=[],S=Ur(),S!==e)for(;S!==e;)A.push(S),S=Ur();else A=e;A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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 Rt(){var h;return t.charCodeAt(d)===124?(h=Lr,d++):(h=e,M===0&&ie(qr)),h}function Lt(){var h,C,E,A,S,z,G,ae;if(h=d,C=[],E=d,A=d,S=d,M++,t.charCodeAt(d)===60?(z=pt,d++):(z=e,M===0&&ie(dt)),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($e)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=Lt(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(A=[A,S,z,G],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=Rt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(A=[A,S,z,G,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=pt,d++):(z=e,M===0&&ie(dt)),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($e)),z!==e?(S=[S,z],A=S):(d=A,A=e)):(d=A,A=e),A!==e?(t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=Lt(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(A=[A,S,z,G],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=Rt(),M--,S===e?A=void 0:(d=A,A=e),A!==e?(S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(A=[A,S,z,G,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 ri(){var h,C,E,A,S,z,G,ae,Wt,It,hr;if(h=d,C=Pt(),C!==e)if(oe=d,E=Br(C),E?E=void 0:E=e,E!==e){if(A=[],S=ti(),S===e&&(S=Lt()),S!==e)for(;S!==e;)A.push(S),S=ti(),S===e&&(S=Lt());else A=e;if(A!==e){if(S=d,z=Rt(),z!==e){for(G=d,ae=[],Wt=d,It=d,M++,hr=Qe(),M--,hr===e?It=void 0:(d=It,It=e),It!==e?(t.length>d?(hr=t.charAt(d),d++):(hr=e,M===0&&ie($e)),hr!==e?(It=[It,hr],Wt=It):(d=Wt,Wt=e)):(d=Wt,Wt=e);Wt!==e;)ae.push(Wt),Wt=d,It=d,M++,hr=Qe(),M--,hr===e?It=void 0:(d=It,It=e),It!==e?(t.length>d?(hr=t.charAt(d),d++):(hr=e,M===0&&ie($e)),hr!==e?(It=[It,hr],Wt=It):(d=Wt,Wt=e)):(d=Wt,Wt=e);ae!==e?G=t.substring(G,d):G=ae,G!==e?(oe=S,z=nr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=W(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,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=Qe(),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($e)),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=Qe(),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($e)),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 St(){var h;return Se.test(t.charAt(d))?(h=t.charAt(d),d++):(h=e,M===0&&ie(xt)),h}function _n(){var h,C,E,A,S,z;if(h=d,C=wn(),C!==e){for(E=[],A=St();A!==e;)E.push(A),A=St();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=St();z!==e;)S.push(z),z=St();S!==e?(z=_n(),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=wn(),C!==e&&(oe=h,C=ze(C)),h=C),h}function Hr(){var h,C,E,A,S,z,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=ot(C),E?E=void 0:E=e,E!==e){for(A=[],S=Lt();S!==e;)A.push(S),S=Lt();if(A!==e){if(S=d,z=Rt(),z!==e){for(G=[],ae=_n();ae!==e;)G.push(ae),ae=_n();G!==e?(oe=S,z=pr(C,A,G),S=z):(d=S,S=e)}else d=S,S=e;S===e&&(S=null),S!==e?(z=Qe(),z!==e?(oe=h,C=ht(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,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=Mr(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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,G,ae;if(h=d,C=Pt(),C!==e)if(oe=d,E=Ye(C),E?E=void 0:E=e,E!==e){for(A=d,S=[],z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);z!==e;)S.push(z),z=d,G=d,M++,ae=Qe(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(G=[G,ae],z=G):(d=z,z=e)):(d=z,z=e);S!==e?A=t.substring(A,d):A=S,A!==e?(S=Qe(),S!==e?(oe=h,C=Nt(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 Cn(){var h,C,E;if(h=d,C=[],nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(At)),E!==e)for(;E!==e;)C.push(E),nn.test(t.charAt(d))?(E=t.charAt(d),d++):(E=e,M===0&&ie(At));else C=e;return C!==e?h=t.substring(h,d):h=C,h}function ho(){var h,C,E;return h=d,t.substr(d,2)===Dn?(C=Dn,d+=2):(C=e,M===0&&ie(co)),C!==e?(E=Cn(),E!==e?(oe=h,C=Sr(E),h=C):(d=h,h=e)):(d=h,h=e),h}function go(){var h,C,E;return h=d,t.substr(d,2)===jn?(C=jn,d+=2):(C=e,M===0&&ie(Ni)),C!==e?(E=Cn(),E!==e?(oe=h,C=po(E),h=C):(d=h,h=e)):(d=h,h=e),h}function ss(){var h,C,E;return h=d,t.substr(d,2)===Rn?(C=Rn,d+=2):(C=e,M===0&&ie(Di)),C!==e?(E=Cn(),E!==e?(oe=h,C=Zn(E),h=C):(d=h,h=e)):(d=h,h=e),h}function as(){var h,C,E,A,S,z;if(h=d,C=d,E=d,t.substr(d,2)===yn?(A=yn,d+=2):(A=e,M===0&&ie(mo)),A!==e){if(S=[],vn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(F)),z!==e)for(;z!==e;)S.push(z),vn.test(t.charAt(d))?(z=t.charAt(d),d++):(z=e,M===0&&ie(F));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 yo(){var h,C,E;return h=d,C=kr(),C!==e?(E=go(),E===e&&(E=ho(),E===e&&(E=ss(),E===e&&(E=as(),E===e&&(E=Cn())))),E!==e?(oe=h,C=q(E),h=C):(d=h,h=e)):(d=h,h=e),h}function vo(){var h,C,E,A,S,z;if(h=d,C=yo(),C!==e){for(E=[],A=St();A!==e;)E.push(A),A=St();if(E!==e)if(t.charCodeAt(d)===59?(A=ne,d++):(A=e,M===0&&ie(ge)),A!==e){for(S=[],z=St();z!==e;)S.push(z),z=St();S!==e?(z=vo(),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=yo(),C!==e&&(oe=h,C=ze(C)),h=C),h}function $o(){var h,C,E,A,S;return h=d,C=Pt(),C!==e?(oe=d,E=H(C),E?E=void 0:E=e,E!==e?(A=d,S=vo(),S!==e&&(oe=A,S=K(C,S)),A=S,A===e&&(A=null),A!==e?(S=Qe(),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 Pt(){var h,C,E;return h=d,C=d,E=Xn(),E!==e?C=t.substring(C,d):C=E,C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(oe=h,C=ke(C),h=C):(d=h,h=e)):(d=h,h=e),h}function Qe(){var h;return t.charCodeAt(d)===62?(h=Dt,d++):(h=e,M===0&&ie(mt)),h}function Li(){var h,C,E,A,S;if(h=d,C=Pt(),C!==e)if(oe=d,E=Pe(C),E?E=void 0:E=e,E!==e){for(A=[],S=jt(),S===e&&(S=Li(),S===e&&(S=xn()));S!==e;)A.push(S),S=jt(),S===e&&(S=Li(),S===e&&(S=xn()));A!==e?(S=Qe(),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 Cf(){var h,C,E,A,S;for(h=d,C=[],E=d,A=d,M++,S=Qe(),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($e)),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=Qe(),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($e)),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 xn(){var h,C,E,A,S,z,G;if(h=d,C=d,E=[],A=d,t.charCodeAt(d)===60?(S=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=xn(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(S=[S,z,G],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=pt,d++):(S=e,M===0&&ie(dt)),S!==e?(z=xn(),z!==e?(t.charCodeAt(d)===62?(G=Dt,d++):(G=e,M===0&&ie(mt)),G!==e?(S=[S,z,G],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=jr(C)),h=C,h}function Kr(){var h,C,E,A,S,z,G,ae;if(h=d,C=d,E=[],A=d,S=d,M++,z=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(S=[S,z,G,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=Qe(),M--,z===e?S=void 0:(d=S,S=e),S!==e?(z=d,M++,G=Pt(),M--,G===e?z=void 0:(d=z,z=e),z!==e?(G=d,M++,ae=Wr(),M--,ae===e?G=void 0:(d=G,G=e),G!==e?(t.length>d?(ae=t.charAt(d),d++):(ae=e,M===0&&ie($e)),ae!==e?(S=[S,z,G,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=jr(C)),h=C,h}function Wr(){var h,C,E,A,S;return h=d,C=d,E=d,M++,A=Xn(),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($e)),A!==e?(E=[E,A],C=E):(d=C,C=e)):(d=C,C=e),C!==e?(t.charCodeAt(d)===60?(E=pt,d++):(E=e,M===0&&ie(dt)),E!==e?(A=Kr(),A!==e?(t.charCodeAt(d)===62?(S=Dt,d++):(S=e,M===0&&ie(mt)),S!==e?(oe=h,C=Ct(),h=C):(d=h,h=e)):(d=h,h=e)):(d=h,h=e)):(d=h,h=e),h}function qi(h){return h.reduce((C,E)=>Array.isArray(E)?C.concat(qi(E)):C.concat(E),[])}if(Ge=i(),Ge!==e&&d===t.length)return Ge;throw Ge!==e&&d<t.length&&ie(dr()),Ir(We,Be<t.length?t.charAt(Be):null,Be<t.length?mr(Be,Be+1):mr(Be,Be))}Op.exports={SyntaxError:gi,parse:d$}});var Vn=re(Sn=>{"use strict";var Rl=Sn&&Sn.__assign||function(){return Rl=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},Rl.apply(this,arguments)};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isSemanticBlock=Sn.isNamedBlock=void 0;var Tp=Io(),m$=Tp.makeRule,h$=Tp.makePlug;function g$(t){return t&&t!==t.toLowerCase()&&t!==t.toUpperCase()}Sn.isNamedBlock=g$;function y$(t){var r=t.name||"",e=(t.type||"")==="block";return e&&r===r.toUpperCase()}Sn.isSemanticBlock=y$;function Np(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(Np(e)):r.concat(e)},[])}var v$=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(m$(h$(i),o))}function n(i,o){if(o===void 0&&(o={}),i instanceof Array)return Np(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 f=Rl({},i);return f.hasOwnProperty("content")&&(f.content=n(f.content,o)),f}return e(t),n.rules=r,n};Sn.default=v$});var vi=re(yi=>{"use strict";var Dp=yi&&yi.__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(yi,"__esModule",{value:!0});yi.getNodeId=void 0;var $$=function(t,r){var e=jp(t,r);return e.exists("id")?e.getFirstValue("id"):t.id};yi.getNodeId=$$;var jp=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={};Dp(Dp([],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};yi.default=jp});var Lp=re($i=>{"use strict";var Pn=$i&&$i.__assign||function(){return Pn=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},Pn.apply(this,arguments)},Rp=$i&&$i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});var Ls=Fp(),Ll=Rp(Vn()),b$=Vn(),w$=Rp(vi()),_$=function(){return function(t){var r=(0,Ll.default)({":para":function(e,n,i){return(0,Ll.default)({":text":function(o,a){return Ls.parse(o.value)},":verbatim":function(o,a){return Ls.parse(o.value)}})(e,Pn({},n))},":block":function(e,n,i){if("name"in e&&e.name==="pod")return Pn(Pn({},e),{content:i(e.content,n,i)});var o=(0,w$.default)(e,n),a="name"in e&&e.name==="code",u="name"in e&&e.name==="data",f=o.getAllValues("allow");if((a||u)&&f.length==0)return e;var m=f.sort(),p=(0,Ll.default)({":verbatim":function(v,$){return Ls.parse(v.value,{allowed:m})},":text":function(v,$){return Ls.parse(v.value,{allowed:m})},":block":function(v,$){return(0,b$.isNamedBlock)(v.name)?v:Pn(Pn({},v),{content:p(v.content,Pn({},$))})}});return p(e,Pn({},n))}});return r(t,{})}};$i.default=_$});var qp=re(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.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 Bp=re(To=>{"use strict";var qs=To&&To.__assign||function(){return qs=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},qs.apply(this,arguments)};Object.defineProperty(To,"__esModule",{value:!0});To.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=qs(qs({},e.config),{numbered:!0}))}}r(e.content)}};return r(t),t}}});var Mp=re(No=>{"use strict";var k$=No&&No.__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(No,"__esModule",{value:!0});No.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(f,m){return m.name==="defn"?r(a,m)?f[f.length-1].push(m):f.push([m]):f.push(m),a=m,f},[]);return u.map(function(f){if(f instanceof Array){if(f[0].name!=="defn")return f;var m=f[0].name==="defn"?"variable":e(f[0])?"ordered":"itemized";return{type:"list",list:m,level:1,content:k$([],f,!0)}}return f.content&&f.type!=="fcode"&&(f.content=n(f.content)),f})},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 Vp=re(bi=>{"use strict";var zp=bi&&bi.__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))},C$=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bi,"__esModule",{value:!0});var x$=C$(vi());bi.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,x$.default)(o,{}).exists("numbered"))},n=function(o,a){a===void 0&&(a=1);var u=function($){return $.length>0&&$[$.length-1].type==="list"},f=function($){if(u($))return $[$.length-1]},m=function($,w){return w.name&&w.name==="item"&&w.type&&w.type==="block"||w.type==="blankline"},p={},v=o.reduce(function($,w){return w.name==="item"&&w.type==="block"&&w.level<a?zp(zp([],$,!0),[w],!1):(w.name==="item"&&w.type==="block"&&(!u($)||w.level===a&&f($).list!==(e(w)?"ordered":"itemized"))&&$.push({type:"list",level:w.level,content:[],list:e(w)?"ordered":"itemized"}),u($)&&m(f($),w)?f($).content.push(w):$.push(w),$)},[]);return v.map(function($){return $.content&&$.type!=="fcode"&&($.content=n($.content,$.level+1)),$})},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 Up=re(Do=>{"use strict";var E$=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});var A$=E$(Vn());Do.default=function(){return function(t){var r=(0,A$.default)({defn:function(e){for(var n=e.content,i=n.length,o=[],a=!1,u=0;u<i;u++){var f=n[u];if(f.type==="para"&&!a){var m=f.content[0],p=m.value,v=p.split(`
7
7
  `),$=v.shift(),w={type:"para",name:"term",text:$,content:[{type:"text",value:$}]};o.push(w),v.length==1&&v[0]===""||(m.value=v.join(`
8
- `),f.text=m.value,o.push(f)),a=!0}else o.push(f)}return e.content=o,e}});return r(t,{})}}});var Kp=re(In=>{"use strict";var Bs=In&&In.__assign||function(){return Bs=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},Bs.apply(this,arguments)},Up=In&&In.__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))},S$=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});var Bl=S$(Vn());function Ms(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(Ms(e)):r.concat(e)},[])}var Ml=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("")},P$=function(t,r){var e=Math.max.apply(Math,Up(Up([],t,!0),r,!0).map(function(a){return a.length})),n=t.map(function(a){for(var u=a+" ".repeat(e-a.length),f=[],m=/\s+[+|\s]\s/g,p;(p=m.exec(u))!=null;){var v="1".repeat(p.index)+"0".repeat(p[0].length);f.push(v+"1".repeat(e-v.length))}return f.reduce(function($,w){return Ml($,w,function(k,I){return k&I})},"1".repeat(e))}),i=n.map(function(a){return Ml(a,"",function(u){return u==0?1:0})}),o=i.reduce(function(a,u){return Ml(a,u,function(f,m){return f&m})},"1".repeat(e));return o},Hp=function(t,r){var e=Ms(t.split(/\n/).filter(function(o){return o.length>0})),n=e.map(function(o){for(var a=/((1+|0+))/g,u=[],f;(f=a.exec(r))!=null;)if(f[0][0]!=1){var m=o.substring(f.index,f.index+f[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};In.default=function(){return function(t){var r=(0,Bl.default)({table:function(e){var n=[],i=function($){n.push($.value)},o=[];if((0,Bl.default)({"row:text":i,"head:text":i,":separator":function($){o.push($.text)}})(e),!n.length)return e;var a=function($){return $.split(/\n/).filter(function(w){return w.length>0})},u=Ms(n.map(a)),f=Ms(o.map(a)),m=P$(u,f),p=function($,w){for(var k=[],I=2;I<arguments.length;I++)k[I-2]=arguments[I];return Bs(Bs({},k),{name:$,type:"block",content:Array.isArray(w)?w:[w]})},v=(0,Bl.default)({"row:text":function($){var w=Hp($.value,m);return p("table_row",w.map(function(k){return p("table_cell",{type:"text",value:k})}))},"head:text":function($){var w=Hp($.value,m);return p("table_head",w.map(function(k){return p("table_cell",{type:"text",value:k})}))}})(e);return v}});return r(t,{})}}});var zl=re(bt=>{"use strict";var Wp=bt&&bt.__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))},Qp=bt&&bt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bt,"__esModule",{value:!0});bt.handleNested=bt.subUse=bt.setContext=bt.setFn=bt.content=bt.emptyContent=bt.wrapContent=void 0;var Gp=Io(),I$=Qp(Tl()),O$=Qp(vi()),F$=function(t,r){return function(e,n){return function(i,o,a){e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)}}};bt.wrapContent=F$;var T$=function(){return function(){return function(){}}};bt.emptyContent=T$;var N$=function(t,r){return function(e,n,i){if(e.content)return i(e.content,n)}};bt.content=N$;var D$=function(t){return function(r,e){return function(n,i,o){return t(n,i)(r,e)(n,i,o)}}};bt.setFn=D$;var j$=function(t,r){return function(e,n){return function(i,o,a){return r(e,n)(i,t,a)}}};bt.setContext=j$;var R$=function(t,r){var e=(0,Gp.makeRulesArray)(t).reverse();return function(n,i){var o=e.map(function(f){return(0,Gp.makeRule)(f.rule,f.fn(n,i))}).reverse(),a=r(n,i),u;return function(f,m,p){return u||(u=(0,I$.default)(Wp(Wp([],p.rules,!0),o,!0))),a(f,m,u)}}};bt.subUse=R$;var L$=function(t,r){return function(e,n){var i=t(e,n);return function(o,a,u){var f=(0,O$.default)(o,a).getFirstValue("nested")||r;f!==void 0&&e.addLevel(f),i(o,a,u),f!==void 0&&e.removeLevel(f)}}};bt.handleNested=L$});var Zp=re(wi=>{"use strict";var q$=wi&&wi.__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)}}(),B$=wi&&wi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wi,"__esModule",{value:!0});var M$=B$(Dl()),z$=function(t){q$(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}(M$.default);wi.default=z$});var Jp=re(jo=>{"use strict";var V$=jo&&jo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jo,"__esModule",{value:!0});var U$=V$(Vn());jo.default=function(){return function(t){var r=(0,U$.default)({"*":function(e,n,i){return e.content&&(e.content=i(e.content,n,i)),delete e.location,e}});return r(t,{})}}});var Yp=re(_i=>{"use strict";var Vl=_i&&_i.__assign||function(){return Vl=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},Vl.apply(this,arguments)},zs=_i&&_i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_i,"__esModule",{value:!0});var H$=zs(Ul()),ve=zl(),K$=Vn(),Xp=zs(vi()),W$=zs(Zp()),G$=zs(Jp()),Q$=vi(),Z$={":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,G$.default)()(a);u[0].type==="para"?i(u[0].content,n):i(u,n)}}},"C<>":(0,ve.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,ve.wrapContent)("<strong>","</strong>"),"I<>":(0,ve.wrapContent)("<em>","</em>"),"R<>":(0,ve.wrapContent)("<var>","</var>"),"K<>":(0,ve.wrapContent)("<kbd>","</kbd>"),"L<>":(0,ve.setFn)(function(t,r){var e=t.meta;return e===null&&(e=t.content),(0,ve.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,ve.wrapContent)("<samp>","</samp>"),"U<>":(0,ve.wrapContent)("<u>","</u>"),"V<>":ve.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<>":ve.emptyContent,pod:ve.content,":code":(0,ve.wrapContent)("<pre><code>","</code></pre>"),code:(0,ve.handleNested)((0,ve.wrapContent)("<pre><code>","</code></pre>")),data:ve.emptyContent,":verbatim":function(t,r){return function(e,n,i){e.error&&t.emit("errors",e.location),i(e.value)}},":blankline":ve.emptyContent,":ambient":ve.emptyContent,":config":(0,ve.setFn)(function(t,r){return r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,ve.emptyContent}),":alias":(0,ve.setFn)(function(t,r){return r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,ve.emptyContent}),para:(0,ve.handleNested)(ve.content),":para":(0,ve.wrapContent)("<p>","</p>"),"head:block":(0,ve.subUse)({":para":ve.content},(0,ve.setFn)(function(t,r){var e=t.level,n=(0,Q$.getNodeId)(t,r);return(0,ve.wrapContent)("<h".concat(e).concat(n?' id="'.concat(n,'"'):"",">"),"</h".concat(e,">"))})),":list":(0,ve.setFn)(function(t,r){return t.list==="ordered"?(0,ve.wrapContent)("<ol>","</ol>"):t.list==="variable"?(0,ve.wrapContent)("<dl>","</dl>"):(0,ve.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":ve.emptyContent,defn:(0,ve.wrapContent)("","</dd>"),"term:para":(0,ve.wrapContent)("<dt>","</dt><dd>"),nested:(0,ve.handleNested)(ve.content,1),output:(0,ve.handleNested)((0,ve.wrapContent)("<pre><samp>","</samp></pre>"),1),input:(0,ve.handleNested)((0,ve.wrapContent)("<pre><kbd>","</kbd></pre>"),1),"table:block":(0,ve.handleNested)(function(t,r){return function(e,n,i){var o=(0,Xp.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":ve.emptyContent,table_row:(0,ve.wrapContent)("<tr>","</tr>"),table_cell:(0,ve.wrapContent)("<td>","</td>"),table_head:(0,ve.subUse)({table_cell:(0,ve.wrapContent)("<th>","</th>")},(0,ve.wrapContent)("<tr>","</tr>")),":toc":function(t,r){return function(e,n,i){t.writeRaw('<div className="toc">');var o=(0,Xp.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,ve.setFn)(function(t,r){return(0,ve.wrapContent)('<ul class="toc-list listlevel'.concat(t.level,'">'),"</ul>")}),":toc-item":(0,ve.setFn)(function(t,r){return(0,ve.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,'"/>'))}}},J$=function(t){return(0,H$.default)(Vl({writer:W$.default},t)).use("*",function(r,e){return function(n,i,o){var a=function(f){var m=f.name||"",p=(f.type||"")==="block";return p&&m===m.toUpperCase()};if((0,K$.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(Z$)};_i.default=J$});var ed=re((TP,X$)=>{X$.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 rd=re(Ft=>{"use strict";var Y$=Ft&&Ft.__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]}),eb=Ft&&Ft.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),tb=Ft&&Ft.__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)&&Y$(r,t,e);return eb(r,t),r},On=Ft&&Ft.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.version=Ft.toHtml=Ft.parse=Ft.toTree=void 0;var rb=tb(Sp()),nb=On(Pp()),ib=On(Rp()),ob=On(Lp()),sb=On(qp()),ab=On(Bp()),lb=On(zp()),ub=On(Vp()),fb=On(Kp());function td(){var t=[];return r.use=e,r.parse=n,r.use(nb.default),r.use(ob.default),r.use(sb.default),r.use(ub.default),r.use(fb.default),r.use(ib.default),r.use(lb.default),r.use(ab.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=rb.parse(i,{podMode:o.podMode});if(!o.skipChain)for(var u=0;u<t.length;u++){var f=t[u],m=f(o);a=m(a)}return a}}Ft.toTree=td;var cb=td().parse;Ft.parse=cb;var pb=Yp();Object.defineProperty(Ft,"toHtml",{enumerable:!0,get:function(){return On(pb).default}});var db=ed().version;Ft.version=db});var Ul=re(ki=>{"use strict";var nd=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))},id=ki&&ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ki,"__esModule",{value:!0});var Hl=Io(),mb=id(Tl()),hb=id(Dl()),gb=rd(),od=function(t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var e=r,n=t.processor||gb.parse,i=t.writer;return o.use=a,o.run=u,o.getPlugins=function(){return e},o;function o(f){}function a(f,m){if(f instanceof Array)return od(t,nd(nd([],e,!0),m,!0));if(f instanceof Object){for(var p in f)f.hasOwnProperty(p)&&a(p,f[p]);return o}return e.push((0,Hl.makeRule)((0,Hl.makePlug)(f),m)),o}function u(f,m){var p="",v=m||i||new hb.default(function(Y){p=p+Y}),$=typeof v=="function"?new v(function(Y){p=p+Y}):v,w=typeof f=="string"?n(f):f,k=e.slice();k.reverse();var I=(0,mb.default)(k.map(function(Y){return(0,Hl.makeRule)(Y.rule,Y.fn($,n,w))}).reverse()),j={};$.startWrite(w);var D=I(w,j);return $.endWrite(),{errors:$.errors,toString:function(){return p},valueOf:function(){return p},indexingTerms:$.INDEXTERMS,annotations:$.FOOTNOTES,defenitions:$.DEFINITIONS,interator:D}}};ki.default=od});var Kl=re(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.getRules=Ji.isJSONType=void 0;var yb=["string","number","integer","boolean","null","object","array"],vb=new Set(yb);function $b(t){return typeof t=="string"&&vb.has(t)}Ji.isJSONType=$b;function bb(){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:{}}}Ji.getRules=bb});var Wl=re(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.shouldUseRule=Un.shouldUseGroup=Un.schemaHasRulesForType=void 0;function wb({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&sd(t,n)}Un.schemaHasRulesForType=wb;function sd(t,r){return r.rules.some(e=>ad(t,e))}Un.shouldUseGroup=sd;function ad(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Un.shouldUseRule=ad});var Vs=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 Ro=class{};Je._CodeOrName=Ro;Je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ci=class extends Ro{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=Ci;var dn=class extends Ro{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof Ci&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Je._Code=dn;Je.nil=new dn("");function ld(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Ql(e,r[n]),e.push(t[++n]);return new dn(e)}Je._=ld;var Gl=new dn("+");function ud(t,...r){let e=[Lo(t[0])],n=0;for(;n<r.length;)e.push(Gl),Ql(e,r[n]),e.push(Gl,Lo(t[++n]));return _b(e),new dn(e)}Je.str=ud;function Ql(t,r){r instanceof dn?t.push(...r._items):r instanceof Ci?t.push(r):t.push(xb(r))}Je.addCodeArg=Ql;function _b(t){let r=1;for(;r<t.length-1;){if(t[r]===Gl){let e=kb(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function kb(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof Ci||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof Ci))return`"${t}${r.slice(1)}`}function Cb(t,r){return r.emptyStr()?t:t.emptyStr()?r:ud`${t}${r}`}Je.strConcat=Cb;function xb(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Lo(Array.isArray(t)?t.join(","):t)}function Eb(t){return new dn(Lo(t))}Je.stringify=Eb;function Lo(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Je.safeStringify=Lo;function Ab(t){return typeof t=="string"&&Je.IDENTIFIER.test(t)?new dn(`.${t}`):ld`[${t}]`}Je.getProperty=Ab});var Yl=re(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ValueScope=fr.ValueScopeName=fr.Scope=fr.varKinds=fr.UsedValueState=void 0;var vr=Vs(),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=fr.UsedValueState||(fr.UsedValueState={}));fr.varKinds={const:new vr.Name("const"),let:new vr.Name("let"),var:new vr.Name("var")};var Us=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof vr.Name?r:this.name(r)}name(r){return new vr.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}}};fr.Scope=Us;var Hs=class extends vr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=vr._`.${new vr.Name(e)}[${n}]`}};fr.ValueScopeName=Hs;var Sb=vr._`\n`,Xl=class extends Us{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Sb:vr.nil}}get(){return this._scope}name(r){return new Hs(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 f=this._scope[o]||(this._scope[o]=[]),m=f.length;return f[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 vr._`${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=vr.nil;for(let a in r){let u=r[a];if(!u)continue;let f=n[a]=n[a]||new Map;u.forEach(m=>{if(f.has(m))return;f.set(m,Jl.Started);let p=e(m);if(p){let v=this.opts.es5?fr.varKinds.var:fr.varKinds.const;o=vr._`${o}${v} ${m} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(m))o=vr._`${o}${p}${this.opts._n}`;else throw new Zl(m);f.set(m,Jl.Completed)})}return o}};fr.ValueScope=Xl});var Ie=re(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.or=Fe.and=Fe.not=Fe.CodeGen=Fe.operators=Fe.varKinds=Fe.ValueScopeName=Fe.ValueScope=Fe.Scope=Fe.Name=Fe.stringify=Fe.getProperty=Fe.nil=Fe.strConcat=Fe.str=Fe._=void 0;var je=Vs(),Qr=Yl(),Ai=Vs();Object.defineProperty(Fe,"_",{enumerable:!0,get:function(){return Ai._}});Object.defineProperty(Fe,"str",{enumerable:!0,get:function(){return Ai.str}});Object.defineProperty(Fe,"strConcat",{enumerable:!0,get:function(){return Ai.strConcat}});Object.defineProperty(Fe,"nil",{enumerable:!0,get:function(){return Ai.nil}});Object.defineProperty(Fe,"getProperty",{enumerable:!0,get:function(){return Ai.getProperty}});Object.defineProperty(Fe,"stringify",{enumerable:!0,get:function(){return Ai.stringify}});Object.defineProperty(Fe,"Name",{enumerable:!0,get:function(){return Ai.Name}});var Qs=Yl();Object.defineProperty(Fe,"Scope",{enumerable:!0,get:function(){return Qs.Scope}});Object.defineProperty(Fe,"ValueScope",{enumerable:!0,get:function(){return Qs.ValueScope}});Object.defineProperty(Fe,"ValueScopeName",{enumerable:!0,get:function(){return Qs.ValueScopeName}});Object.defineProperty(Fe,"varKinds",{enumerable:!0,get:function(){return Qs.varKinds}});Fe.operators={GT:new je._Code(">"),GTE:new je._Code(">="),LT:new je._Code("<"),LTE:new je._Code("<="),EQ:new je._Code("==="),NEQ:new je._Code("!=="),NOT:new je._Code("!"),OR:new je._Code("||"),AND:new je._Code("&&"),ADD:new je._Code("+")};var Fn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},eu=class extends Fn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Qr.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=Yi(this.rhs,r,e)),this}get names(){return this.rhs instanceof je._CodeOrName?this.rhs.names:{}}},Ks=class extends Fn{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 je.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Yi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof je.Name?{}:{...this.lhs.names};return Gs(r,this.rhs)}},tu=class extends Ks{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},ru=class extends Fn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},nu=class extends Fn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},iu=class extends Fn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},ou=class extends Fn{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=Yi(this.code,r,e),this}get names(){return this.code instanceof je._CodeOrName?this.code.names:{}}},qo=class extends Fn{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)||(Pb(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>Ei(r,e.names),{})}},Tn=class extends qo{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},su=class extends qo{},Xi=class extends Tn{};Xi.kind="else";var Zr=class extends Tn{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 Xi(n):n}if(e)return r===!1?e instanceof Zr?e:e.nodes:this.nodes.length?this:new Zr(fd(r),e instanceof Zr?[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=Yi(this.condition,r,e),this}get names(){let r=super.names;return Gs(r,this.condition),this.else&&Ei(r,this.else.names),r}};Zr.kind="if";var xi=class extends Tn{};xi.kind="for";var au=class extends xi{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=Yi(this.iteration,r,e),this}get names(){return Ei(super.names,this.iteration.names)}},lu=class extends xi{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Qr.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)}},Ws=class extends xi{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=Yi(this.iterable,r,e),this}get names(){return Ei(super.names,this.iterable.names)}},Bo=class extends Tn{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)}};Bo.kind="func";var Mo=class extends qo{render(r){return"return "+super.render(r)}};Mo.kind="return";var uu=class extends Tn{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&&Ei(r,this.catch.names),this.finally&&Ei(r,this.finally.names),r}},zo=class extends Tn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};zo.kind="catch";var Vo=class extends Tn{render(r){return"finally"+super.render(r)}};Vo.kind="finally";var fu=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
10
- `:""},this._extScope=r,this._scope=new Qr.Scope({parent:r}),this._nodes=[new su]}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 eu(r,o,n)),o}const(r,e,n){return this._def(Qr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Qr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Qr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Ks(r,e,n))}add(r,e){return this._leafNode(new tu(r,Fe.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==je.nil&&this._leafNode(new ou(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(":"),je.addCodeArg(e,i));return e.push("}"),new je._Code(e)}if(r,e,n){if(this._blockNode(new Zr(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 Zr(r))}else(){return this._elseNode(new Xi)}endIf(){return this._endBlockNode(Zr,Xi)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new au(r),e)}forRange(r,e,n,i,o=this.opts.es5?Qr.varKinds.var:Qr.varKinds.let){let a=this._scope.toName(r);return this._for(new lu(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Qr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof je.Name?e:this.var("_arr",e);return this.forRange("_i",0,je._`${a}.length`,u=>{this.var(o,je._`${a}[${u}]`),n(o)})}return this._for(new Ws("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Qr.varKinds.var:Qr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,je._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new Ws("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(xi)}label(r){return this._leafNode(new ru(r))}break(r){return this._leafNode(new nu(r))}return(r){let e=new Mo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Mo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new uu;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new zo(o),e(o)}return n&&(this._currNode=i.finally=new Vo,this.code(n)),this._endBlockNode(zo,Vo)}throw(r){return this._leafNode(new iu(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=je.nil,n,i){return this._blockNode(new Bo(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Bo)}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 Zr))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}};Fe.CodeGen=fu;function Ei(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Gs(t,r){return r instanceof je._CodeOrName?Ei(t,r.names):t}function Yi(t,r,e){if(t instanceof je.Name)return n(t);if(!i(t))return t;return new je._Code(t._items.reduce((o,a)=>(a instanceof je.Name&&(a=n(a)),a instanceof je._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 je._Code&&o._items.some(a=>a instanceof je.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function Pb(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function fd(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:je._`!${cu(t)}`}Fe.not=fd;var Ib=cd(Fe.operators.AND);function Ob(...t){return t.reduce(Ib)}Fe.and=Ob;var Fb=cd(Fe.operators.OR);function Tb(...t){return t.reduce(Fb)}Fe.or=Tb;function cd(t){return(r,e)=>r===je.nil?e:e===je.nil?r:je._`${cu(r)} ${t} ${cu(e)}`}function cu(t){return t instanceof je.Name?t:je._`(${t})`}});var Jr=re(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Xt=Ie(),Nb={data:new Xt.Name("data"),valCxt:new Xt.Name("valCxt"),dataPath:new Xt.Name("dataPath"),parentData:new Xt.Name("parentData"),parentDataProperty:new Xt.Name("parentDataProperty"),rootData:new Xt.Name("rootData"),dynamicAnchors:new Xt.Name("dynamicAnchors"),vErrors:new Xt.Name("vErrors"),errors:new Xt.Name("errors"),this:new Xt.Name("this"),self:new Xt.Name("self"),scope:new Xt.Name("scope"),json:new Xt.Name("json"),jsonPos:new Xt.Name("jsonPos"),jsonLen:new Xt.Name("jsonLen"),jsonPart:new Xt.Name("jsonPart")};pu.default=Nb});var Uo=re(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendErrors=Yt.resetErrorsCount=Yt.reportExtraError=Yt.reportError=Yt.keyword$DataError=Yt.keywordError=void 0;var Re=Ie(),er=Jr();Yt.keywordError={message:({keyword:t})=>Re.str`should pass "${t}" keyword validation`};Yt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Re.str`"${t}" keyword must be ${r} ($data)`:Re.str`"${t}" keyword is invalid ($data)`};function Db(t,r=Yt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,u=md(t,r);e??(o||a)?pd(i,u):dd(n,Re._`[${u}]`)}Yt.reportError=Db;function jb(t,r=Yt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=md(t,r);pd(n,a),i||o||dd(e,er.default.vErrors)}Yt.reportExtraError=jb;function Rb(t,r){t.assign(er.default.errors,r),t.if(Re._`${er.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Re._`${er.default.vErrors}.length`,r),()=>t.assign(er.default.vErrors,null)))}Yt.resetErrorsCount=Rb;function Lb({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,er.default.errors,u=>{t.const(a,Re._`${er.default.vErrors}[${u}]`),t.if(Re._`${a}.dataPath === undefined`,()=>t.assign(Re._`${a}.dataPath`,Re.strConcat(er.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))})}Yt.extendErrors=Lb;function pd(t,r){let e=t.const("err",r);t.if(Re._`${er.default.vErrors} === null`,()=>t.assign(er.default.vErrors,Re._`[${e}]`),Re._`${er.default.vErrors}.push(${e})`),t.code(Re._`${er.default.errors}++`)}function dd(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 mn={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 md(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Re._`{}`:(n.jtd&&!n.ajvErrors?qb:Bb)(t,r)}function qb(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:u}=i,f=[[mn.instancePath,Re.strConcat(er.default.dataPath,o)],[mn.schemaPath,Re.str`${a}/${n}`]];return u.messages&&f.push([mn.message,typeof r=="function"?r(t):r]),e.object(...f)}function Bb(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:u,schemaPath:f,errorPath:m,errSchemaPath:p,propertyName:v,opts:$}=a,{params:w,message:k}=r,I=[[mn.keyword,n],[er.default.dataPath,Re.strConcat(er.default.dataPath,m)],[mn.schemaPath,Re.str`${p}/${n}`],[mn.params,typeof w=="function"?w(t):w||Re._`{}`]];return v&&I.push([mn.propertyName,v]),$.messages&&I.push([mn.message,typeof k=="function"?k(t):k]),$.verbose&&I.push([mn.schema,o],[mn.parentSchema,Re._`${u}${f}`],[er.default.data,i]),e.object(...I)}});var gd=re(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.boolOrEmptySchema=eo.topBoolOrEmptySchema=void 0;var Mb=Uo(),zb=Ie(),Vb=Jr(),Ub={message:"boolean schema is false"};function Hb(t){let{gen:r,schema:e,validateName:n}=t;e===!1?hd(t,!1):typeof e=="object"&&e.$async===!0?r.return(Vb.default.data):(r.assign(zb._`${n}.errors`,null),r.return(!0))}eo.topBoolOrEmptySchema=Hb;function Kb(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),hd(t)):e.var(r,!0)}eo.boolOrEmptySchema=Kb;function hd(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};Mb.reportError(i,Ub,r)}});var vd=re(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.assignDefaults=void 0;var to=Ie(),Wb=Er();function Gb(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)yd(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>yd(t,o,i.default))}Zs.assignDefaults=Gb;function yd(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let u=to._`${o}${to.getProperty(r)}`;if(i){Wb.checkStrictMode(t,`default is ignored for: ${u}`);return}let f=to._`${u} === undefined`;a.useDefaults==="empty"&&(f=to._`${f} || ${u} === null || ${u} === ""`),n.if(f,to._`${u} = ${to.stringify(e)}`)}});var Pi=re(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.applySubschema=Si.Type=void 0;var Qb=Er(),$d=ut(),tr=Ie(),bd;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(bd=Si.Type||(Si.Type={}));function Zb(t,r,e){let n=Jb(t,r);Xb(n,t,r),Yb(n,r);let i={...t,...n,items:void 0,props:void 0};return Qb.subschemaCode(i,e),i}Si.applySubschema=Zb;function Jb(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:tr._`${t.schemaPath}${tr.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:u[e],schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}${tr.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${$d.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 Xb(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:v}=r,$=u.let("data",tr._`${r.data}${tr.getProperty(e)}`,!0);f($),t.errorPath=tr.str`${m}${e0(e,n,v.jsPropertySyntax)}`,t.parentDataProperty=tr._`${e}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let m=i instanceof tr.Name?i:u.let("data",i,!0);f(m),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function f(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 Yb(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 e0(t,r,e){if(t instanceof tr.Name){let n=r===bd.Num;return e?n?tr._`"[" + ${t} + "]"`:tr._`"['" + ${t} + "']"`:n?tr._`"/" + ${t}`:tr._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?tr.getProperty(t).toString():"/"+$d.escapeJsonPointer(t)}});var Xr=re(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.validateUnion=Xe.validateArray=Xe.usePattern=Xe.callValidateCode=Xe.schemaProperties=Xe.allSchemaProperties=Xe.noPropertyInData=Xe.propertyInData=Xe.isOwnProperty=Xe.hasPropFunc=Xe.reportMissingProp=Xe.checkMissingProp=Xe.checkReportMissingProp=void 0;var st=Ie(),wd=ut(),t0=Pi(),Hn=Jr();function r0(t,r){let{gen:e,data:n,it:i}=t;e.if(mu(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:st._`${r}`},!0),t.error()})}Xe.checkReportMissingProp=r0;function n0({gen:t,data:r,it:{opts:e}},n,i){return st.or(...n.map(o=>st.and(mu(t,r,o,e.ownProperties),st._`${i} = ${o}`)))}Xe.checkMissingProp=n0;function i0(t,r){t.setParams({missingProperty:r},!0),t.error()}Xe.reportMissingProp=i0;function _d(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:st._`Object.prototype.hasOwnProperty`})}Xe.hasPropFunc=_d;function du(t,r,e){return st._`${_d(t)}.call(${r}, ${e})`}Xe.isOwnProperty=du;function o0(t,r,e,n){let i=st._`${r}${st.getProperty(e)} !== undefined`;return n?st._`${i} && ${du(t,r,e)}`:i}Xe.propertyInData=o0;function mu(t,r,e,n){let i=st._`${r}${st.getProperty(e)} === undefined`;return n?st.or(i,st.not(du(t,r,e))):i}Xe.noPropertyInData=mu;function kd(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Xe.allSchemaProperties=kd;function s0(t,r){return kd(r).filter(e=>!wd.alwaysValidSchema(t,r[e]))}Xe.schemaProperties=s0;function a0({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,f,m){let p=m?st._`${t}, ${r}, ${n}${i}`:r,v=[[Hn.default.dataPath,st.strConcat(Hn.default.dataPath,o)],[Hn.default.parentData,a.parentData],[Hn.default.parentDataProperty,a.parentDataProperty],[Hn.default.rootData,Hn.default.rootData]];a.opts.dynamicRef&&v.push([Hn.default.dynamicAnchors,Hn.default.dynamicAnchors]);let $=st._`${p}, ${e.object(...v)}`;return f!==st.nil?st._`${u}.call(${f}, ${$})`:st._`${u}(${$})`}Xe.callValidateCode=a0;function l0(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:st._`new RegExp(${r}, "u")`})}Xe.usePattern=l0;function u0(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 f=r.const("len",st._`${e}.length`);r.forRange("i",0,f,m=>{t.subschema({keyword:n,dataProp:m,dataPropType:t0.Type.Num},o),r.if(st.not(o),u)})}}Xe.validateArray=u0;function f0(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(f=>wd.alwaysValidSchema(i,f))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),u=r.name("_valid");r.block(()=>e.forEach((f,m)=>{let p=t.subschema({keyword:n,schemaProp:m,compositeRule:!0},u);r.assign(a,st._`${a} || ${u}`),t.mergeValidEvaluated(p,u)||r.if(st.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Xe.validateUnion=f0});var Ad=re(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.keywordCode=void 0;var c0=Ho(),p0=Uo(),d0=Xr(),cr=Ie(),Ii=Jr();function m0(t,r,e,n){let i=new c0.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?Cd(i,e):"macro"in e?h0(i,e):(e.compile||e.validate)&&Cd(i,e)}Js.keywordCode=m0;function h0(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,u=r.macro.call(a.self,i,o,a),f=Ed(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:f,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}function Cd(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:f}=t;y0(f,r);let m=!u&&r.compile?r.compile.call(f.self,o,a,f):r.validate,p=Ed(n,i,m),v=n.let("valid");t.block$data(v,$),t.ok((e=r.valid)!==null&&e!==void 0?e:v);function $(){if(r.errors===!1)I(),r.modifying&&xd(t),j(()=>t.error());else{let D=r.async?w():k();r.modifying&&xd(t),j(()=>g0(t,D))}}function w(){let D=n.let("ruleErrs",null);return n.try(()=>I(cr._`await `),Y=>n.assign(v,!1).if(cr._`${Y} instanceof ${f.ValidationError}`,()=>n.assign(D,cr._`${Y}.errors`),()=>n.throw(Y))),D}function k(){let D=cr._`${p}.errors`;return n.assign(D,null),I(cr.nil),D}function I(D=r.async?cr._`await `:cr.nil){let Y=f.opts.passContext?Ii.default.this:Ii.default.self,ee=!("compile"in r&&!u||r.schema===!1);n.assign(v,cr._`${D}${d0.callValidateCode(t,p,Y,ee)}`,r.modifying)}function j(D){var Y;n.if(cr.not((Y=r.valid)!==null&&Y!==void 0?Y:v),D)}}function xd(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,cr._`${n.parentData}[${n.parentDataProperty}]`))}function g0(t,r){let{gen:e}=t;e.if(cr._`Array.isArray(${r})`,()=>{e.assign(Ii.default.vErrors,cr._`${Ii.default.vErrors} === null ? ${r} : ${Ii.default.vErrors}.concat(${r})`).assign(Ii.default.errors,cr._`${Ii.default.vErrors}.length`),p0.extendErrors(t)},()=>t.error())}function y0({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Ed(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 Fd=re(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.schemaKeywords=void 0;var hu=Wl(),Sd=ro(),v0=vd(),Od=Ad(),$0=ut(),b0=Er(),w0=Ie(),_0=Jr();function k0(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:u,opts:f,self:m}=t,{RULES:p}=m;if(o.$ref&&(f.ignoreKeywordsWithRef||!$0.schemaHasRulesButRef(o,p))){i.block(()=>Od.keywordCode(t,"$ref",p.all.$ref.definition));return}f.jtd||C0(t,r),i.block(()=>{for(let $ of p.rules)v($);v(p.post)});function v($){!hu.shouldUseGroup(o,$)||($.type?(i.if(Sd.checkDataType($.type,a,f.strict)),Pd(t,$),r.length===1&&r[0]===$.type&&e&&(i.else(),Sd.reportTypeError(t)),i.endIf()):Pd(t,$),u||i.if(w0._`${_0.default.errors} === ${n||0}`))}}Xs.schemaKeywords=k0;function Pd(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&v0.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)hu.shouldUseRule(n,o)&&Od.keywordCode(t,o.keyword,o.definition,r.type)})}function C0(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(x0(t,r),t.opts.allowUnionTypes||E0(t,r),A0(t,t.dataTypes))}function x0(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Id(t.dataTypes,e)||gu(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Id(r,e))}}function E0(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&gu(t,"use allowUnionTypes to allow union type keyword")}function A0(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&hu.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>S0(r,a))&&gu(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function S0(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Id(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function gu(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,b0.checkStrictMode(t,r,t.opts.strictTypes)}});var Ko=re((QP,Td)=>{"use strict";Td.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 Dd=re((ZP,Nd)=>{"use strict";var Kn=Nd.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(){};Ys(r,n,i,t,"",t)};Kn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kn.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 Ys(t,r,e,n,i,o,a,u,f,m){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,u,f,m);for(var p in n){var v=n[p];if(Array.isArray(v)){if(p in Kn.arrayKeywords)for(var $=0;$<v.length;$++)Ys(t,r,e,v[$],i+"/"+p+"/"+$,o,i,p,n,$)}else if(p in Kn.propsKeywords){if(v&&typeof v=="object")for(var w in v)Ys(t,r,e,v[w],i+"/"+p+"/"+P0(w),o,i,p,n,w)}else(p in Kn.keywords||t.allKeys&&!(p in Kn.skipKeywords))&&Ys(t,r,e,v,i+"/"+p,o,i,p,n)}e(n,i,o,a,u,f,m)}}function P0(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var yu=re((ea,jd)=>{(function(t,r){typeof ea=="object"&&typeof jd<"u"?r(ea):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(ea,function(t){"use strict";function r(){for(var F=arguments.length,P=Array(F),q=0;q<F;q++)P[q]=arguments[q];if(P.length>1){P[0]=P[0].slice(0,-1);for(var H=P.length-1,K=1;K<H;++K)P[K]=P[K].slice(1,-1);return P[H]=P[H].slice(1),P.join("")}else return P[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,P){var q=F;if(P)for(var H in P)q[H]=P[H];return q}function u(F){var P="[A-Za-z]",q="[\\x0D]",H="[0-9]",K="[\\x22]",ue=r(H,"[A-Fa-f]"),ke="[\\x0A]",Pe="[\\x20]",De=e(e("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+e("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+e("%"+ue+ue)),d="[\\:\\/\\?\\#\\[\\]\\@]",oe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",qe=r(d,oe),Be=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",We=F?"[\\uE000-\\uF8FF]":"[]",M=r(P,H,"[\\-\\.\\_\\~]",Be),Ge=e(P+r(P,H,"[\\+\\-\\.]")+"*"),Me=e(e(De+"|"+r(M,oe,"[\\:]"))+"*"),zr=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),Ht=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),ir=e(Ht+"\\."+Ht+"\\."+Ht+"\\."+Ht),he=e(ue+"{1,4}"),lt=e(e(he+"\\:"+he)+"|"+ir),Kt=e(e(he+"\\:")+"{6}"+lt),dr=e("\\:\\:"+e(he+"\\:")+"{5}"+lt),Pr=e(e(he)+"?\\:\\:"+e(he+"\\:")+"{4}"+lt),or=e(e(e(he+"\\:")+"{0,1}"+he)+"?\\:\\:"+e(he+"\\:")+"{3}"+lt),mr=e(e(e(he+"\\:")+"{0,2}"+he)+"?\\:\\:"+e(he+"\\:")+"{2}"+lt),ie=e(e(e(he+"\\:")+"{0,3}"+he)+"?\\:\\:"+he+"\\:"+lt),$n=e(e(e(he+"\\:")+"{0,4}"+he)+"?\\:\\:"+lt),Ir=e(e(e(he+"\\:")+"{0,5}"+he)+"?\\:\\:"+he),Or=e(e(e(he+"\\:")+"{0,6}"+he)+"?\\:\\:"),jt=e([Kt,dr,Pr,or,mr,ie,$n,Ir,Or].join("|")),on=e(e(M+"|"+De)+"+"),Jn=e(jt+"\\%25"+on),kr=e(jt+e("\\%25|\\%(?!"+ue+"{2})")+on),Xn=e("[vV]"+ue+"+\\."+r(M,oe,"[\\:]")+"+"),Yn=e("\\["+e(kr+"|"+jt+"|"+Xn)+"\\]"),Ln=e(e(De+"|"+r(M,oe))+"*"),bn=e(Yn+"|"+ir+"(?!"+Ln+")|"+Ln),Vr=e(H+"*"),ji=e(e(Me+"@")+"?"+bn+e("\\:"+Vr)+"?"),sn=e(De+"|"+r(M,oe,"[\\:\\@]")),ei=e(sn+"*"),Ur=e(sn+"+"),ti=e(e(De+"|"+r(M,oe,"[\\@]"))+"+"),Rt=e(e("\\/"+ei)+"*"),Lt=e("\\/"+e(Ur+Rt)+"?"),ri=e(ti+Rt),wn=e(Ur+Rt),St="(?!"+sn+")",_n=e(Rt+"|"+Lt+"|"+ri+"|"+wn+"|"+St),Hr=e(e(sn+"|"+r("[\\/\\?]",We))+"*"),kn=e(e(sn+"|[\\/\\?]")+"*"),Ri=e(e("\\/\\/"+ji+Rt)+"|"+Lt+"|"+wn+"|"+St),Cn=e(Ge+"\\:"+Ri+e("\\?"+Hr)+"?"+e("\\#"+kn)+"?"),ho=e(e("\\/\\/"+ji+Rt)+"|"+Lt+"|"+ri+"|"+St),go=e(ho+e("\\?"+Hr)+"?"+e("\\#"+kn)+"?"),ss=e(Cn+"|"+go),as=e(Ge+"\\:"+Ri+e("\\?"+Hr)+"?"),yo="^("+Ge+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+wn+"|"+St+")")+e("\\?("+Hr+")")+"?"+e("\\#("+kn+")")+"?$",vo="^(){0}"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+ri+"|"+St+")")+e("\\?("+Hr+")")+"?"+e("\\#("+kn+")")+"?$",$o="^("+Ge+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+wn+"|"+St+")")+e("\\?("+Hr+")")+"?$",Pt="^"+e("\\#("+kn+")")+"?$",Qe="^"+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?$";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,"[\\:\\@\\/\\?]",We),"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,qe),"g"),PCT_ENCODED:new RegExp(De,"g"),IPV4ADDRESS:new RegExp("^("+ir+")$"),IPV6ADDRESS:new RegExp("^\\[?("+jt+")"+e(e("\\%25|\\%(?!"+ue+"{2})")+"("+on+")")+"?\\]?$")}}var f=u(!1),m=u(!0),p=function(){function F(P,q){var H=[],K=!0,ue=!1,ke=void 0;try{for(var Pe=P[Symbol.iterator](),De;!(K=(De=Pe.next()).done)&&(H.push(De.value),!(q&&H.length===q));K=!0);}catch(d){ue=!0,ke=d}finally{try{!K&&Pe.return&&Pe.return()}finally{if(ue)throw ke}}return H}return function(P,q){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return F(P,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(F){if(Array.isArray(F)){for(var P=0,q=Array(F.length);P<F.length;P++)q[P]=F[P];return q}else return Array.from(F)},$=2147483647,w=36,k=1,I=26,j=38,D=700,Y=72,ee=128,de="-",ce=/^xn--/,Q=/[^\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"},_e=w-k,Te=Math.floor,Ce=String.fromCharCode;function xe(F){throw new RangeError(we[F])}function fe(F,P){for(var q=[],H=F.length;H--;)q[H]=P(F[H]);return q}function be(F,P){var q=F.split("@"),H="";q.length>1&&(H=q[0]+"@",F=q[1]),F=F.replace(me,".");var K=F.split("."),ue=fe(K,P).join(".");return H+ue}function Ke(F){for(var P=[],q=0,H=F.length;q<H;){var K=F.charCodeAt(q++);if(K>=55296&&K<=56319&&q<H){var ue=F.charCodeAt(q++);(ue&64512)==56320?P.push(((K&1023)<<10)+(ue&1023)+65536):(P.push(K),q--)}else P.push(K)}return P}var U=function(P){return String.fromCodePoint.apply(String,v(P))},at=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:w},Le=function(P,q){return P+22+75*(P<26)-((q!=0)<<5)},tt=function(P,q,H){var K=0;for(P=H?Te(P/D):P>>1,P+=Te(P/q);P>_e*I>>1;K+=w)P=Te(P/_e);return Te(K+(_e+1)*P/(P+j))},He=function(P){var q=[],H=P.length,K=0,ue=ee,ke=Y,Pe=P.lastIndexOf(de);Pe<0&&(Pe=0);for(var De=0;De<Pe;++De)P.charCodeAt(De)>=128&&xe("not-basic"),q.push(P.charCodeAt(De));for(var d=Pe>0?Pe+1:0;d<H;){for(var oe=K,qe=1,Be=w;;Be+=w){d>=H&&xe("invalid-input");var We=at(P.charCodeAt(d++));(We>=w||We>Te(($-K)/qe))&&xe("overflow"),K+=We*qe;var M=Be<=ke?k:Be>=ke+I?I:Be-ke;if(We<M)break;var Ge=w-M;qe>Te($/Ge)&&xe("overflow"),qe*=Ge}var Me=q.length+1;ke=tt(K-oe,Me,oe==0),Te(K/Me)>$-ue&&xe("overflow"),ue+=Te(K/Me),K%=Me,q.splice(K++,0,ue)}return String.fromCodePoint.apply(String,q)},T=function(P){var q=[];P=Ke(P);var H=P.length,K=ee,ue=0,ke=Y,Pe=!0,De=!1,d=void 0;try{for(var oe=P[Symbol.iterator](),qe;!(Pe=(qe=oe.next()).done);Pe=!0){var Be=qe.value;Be<128&&q.push(Ce(Be))}}catch(kr){De=!0,d=kr}finally{try{!Pe&&oe.return&&oe.return()}finally{if(De)throw d}}var We=q.length,M=We;for(We&&q.push(de);M<H;){var Ge=$,Me=!0,zr=!1,Ht=void 0;try{for(var ir=P[Symbol.iterator](),he;!(Me=(he=ir.next()).done);Me=!0){var lt=he.value;lt>=K&&lt<Ge&&(Ge=lt)}}catch(kr){zr=!0,Ht=kr}finally{try{!Me&&ir.return&&ir.return()}finally{if(zr)throw Ht}}var Kt=M+1;Ge-K>Te(($-ue)/Kt)&&xe("overflow"),ue+=(Ge-K)*Kt,K=Ge;var dr=!0,Pr=!1,or=void 0;try{for(var mr=P[Symbol.iterator](),ie;!(dr=(ie=mr.next()).done);dr=!0){var $n=ie.value;if($n<K&&++ue>$&&xe("overflow"),$n==K){for(var Ir=ue,Or=w;;Or+=w){var jt=Or<=ke?k:Or>=ke+I?I:Or-ke;if(Ir<jt)break;var on=Ir-jt,Jn=w-jt;q.push(Ce(Le(jt+on%Jn,0))),Ir=Te(on/Jn)}q.push(Ce(Le(Ir,0))),ke=tt(ue,Kt,M==We),ue=0,++M}}}catch(kr){Pr=!0,or=kr}finally{try{!dr&&mr.return&&mr.return()}finally{if(Pr)throw or}}++ue,++K}return q.join("")},N=function(P){return be(P,function(q){return ce.test(q)?He(q.slice(4).toLowerCase()):q})},Vt=function(P){return be(P,function(q){return Q.test(q)?"xn--"+T(q):q})},kt={version:"2.1.0",ucs2:{decode:Ke,encode:U},decode:He,encode:T,toASCII:Vt,toUnicode:N},it={};function ft(F){var P=F.charCodeAt(0),q=void 0;return P<16?q="%0"+P.toString(16).toUpperCase():P<128?q="%"+P.toString(16).toUpperCase():P<2048?q="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():q="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),q}function ct(F){for(var P="",q=0,H=F.length;q<H;){var K=parseInt(F.substr(q+1,2),16);if(K<128)P+=String.fromCharCode(K),q+=3;else if(K>=194&&K<224){if(H-q>=6){var ue=parseInt(F.substr(q+4,2),16);P+=String.fromCharCode((K&31)<<6|ue&63)}else P+=F.substr(q,6);q+=6}else if(K>=224){if(H-q>=9){var ke=parseInt(F.substr(q+4,2),16),Pe=parseInt(F.substr(q+7,2),16);P+=String.fromCharCode((K&15)<<12|(ke&63)<<6|Pe&63)}else P+=F.substr(q,9);q+=9}else P+=F.substr(q,3),q+=3}return P}function $e(F,P){function q(H){var K=ct(H);return K.match(P.UNRESERVED)?K:H}return F.scheme&&(F.scheme=String(F.scheme).replace(P.PCT_ENCODED,q).toLowerCase().replace(P.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(P.PCT_ENCODED,q).replace(P.NOT_USERINFO,ft).replace(P.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(P.PCT_ENCODED,q).toLowerCase().replace(P.NOT_HOST,ft).replace(P.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(P.PCT_ENCODED,q).replace(F.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,ft).replace(P.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(P.PCT_ENCODED,q).replace(P.NOT_QUERY,ft).replace(P.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(P.PCT_ENCODED,q).replace(P.NOT_FRAGMENT,ft).replace(P.PCT_ENCODED,i)),F}function _r(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Et(F,P){var q=F.match(P.IPV4ADDRESS)||[],H=p(q,2),K=H[1];return K?K.split(".").map(_r).join("."):F}function Nt(F,P){var q=F.match(P.IPV6ADDRESS)||[],H=p(q,3),K=H[1],ue=H[2];if(K){for(var ke=K.toLowerCase().split("::").reverse(),Pe=p(ke,2),De=Pe[0],d=Pe[1],oe=d?d.split(":").map(_r):[],qe=De.split(":").map(_r),Be=P.IPV4ADDRESS.test(qe[qe.length-1]),We=Be?7:8,M=qe.length-We,Ge=Array(We),Me=0;Me<We;++Me)Ge[Me]=oe[Me]||qe[M+Me]||"";Be&&(Ge[We-1]=Et(Ge[We-1],P));var zr=Ge.reduce(function(Kt,dr,Pr){if(!dr||dr==="0"){var or=Kt[Kt.length-1];or&&or.index+or.length===Pr?or.length++:Kt.push({index:Pr,length:1})}return Kt},[]),Ht=zr.sort(function(Kt,dr){return dr.length-Kt.length})[0],ir=void 0;if(Ht&&Ht.length>1){var he=Ge.slice(0,Ht.index),lt=Ge.slice(Ht.index+Ht.length);ir=he.join(":")+"::"+lt.join(":")}else ir=Ge.join(":");return ue&&(ir+="%"+ue),ir}else return F}var rr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pr="".match(/(){0}/)[1]===void 0;function Ut(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q={},H=P.iri!==!1?m:f;P.reference==="suffix"&&(F=(P.scheme?P.scheme+":":"")+"//"+F);var K=F.match(rr);if(K){pr?(q.scheme=K[1],q.userinfo=K[3],q.host=K[4],q.port=parseInt(K[5],10),q.path=K[6]||"",q.query=K[7],q.fragment=K[8],isNaN(q.port)&&(q.port=K[5])):(q.scheme=K[1]||void 0,q.userinfo=F.indexOf("@")!==-1?K[3]:void 0,q.host=F.indexOf("//")!==-1?K[4]:void 0,q.port=parseInt(K[5],10),q.path=K[6]||"",q.query=F.indexOf("?")!==-1?K[7]:void 0,q.fragment=F.indexOf("#")!==-1?K[8]:void 0,isNaN(q.port)&&(q.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),q.host&&(q.host=Nt(Et(q.host,H),H)),q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&!q.path&&q.query===void 0?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==q.reference&&(q.error=q.error||"URI is not a "+P.reference+" reference.");var ue=it[(P.scheme||q.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!ue||!ue.unicodeSupport)){if(q.host&&(P.domainHost||ue&&ue.domainHost))try{q.host=kt.toASCII(q.host.replace(H.PCT_ENCODED,ct).toLowerCase())}catch(ke){q.error=q.error||"Host's domain name can not be converted to ASCII via punycode: "+ke}$e(q,f)}else $e(q,H);ue&&ue.parse&&ue.parse(q,P)}else q.error=q.error||"URI can not be parsed.";return q}function Qn(F,P){var q=P.iri!==!1?m:f,H=[];return F.userinfo!==void 0&&(H.push(F.userinfo),H.push("@")),F.host!==void 0&&H.push(Nt(Et(String(F.host),q),q).replace(q.IPV6ADDRESS,function(K,ue,ke){return"["+ue+(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 Nn=/^\.\.?\//,pt=/^\/\.(\/|$)/,dt=/^\/\.\.(\/|$)/,Dt=/^\/?(?:.|\n)*?(?=\/|$)/;function mt(F){for(var P=[];F.length;)if(F.match(Nn))F=F.replace(Nn,"");else if(F.match(pt))F=F.replace(pt,"/");else if(F.match(dt))F=F.replace(dt,"/"),P.pop();else if(F==="."||F==="..")F="";else{var q=F.match(Dt);if(q){var H=q[0];F=F.slice(H.length),P.push(H)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function Ct(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=P.iri?m:f,H=[],K=it[(P.scheme||F.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize(F,P),F.host&&!q.IPV6ADDRESS.test(F.host)){if(P.domainHost||K&&K.domainHost)try{F.host=P.iri?kt.toUnicode(F.host):kt.toASCII(F.host.replace(q.PCT_ENCODED,ct).toLowerCase())}catch(Pe){F.error=F.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}$e(F,q),P.reference!=="suffix"&&F.scheme&&(H.push(F.scheme),H.push(":"));var ue=Qn(F,P);if(ue!==void 0&&(P.reference!=="suffix"&&H.push("//"),H.push(ue),F.path&&F.path.charAt(0)!=="/"&&H.push("/")),F.path!==void 0){var ke=F.path;!P.absolutePath&&(!K||!K.absolutePath)&&(ke=mt(ke)),ue===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 jr(F,P){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],K={};return H||(F=Ut(Ct(F,q),q),P=Ut(Ct(P,q),q)),q=q||{},!q.tolerant&&P.scheme?(K.scheme=P.scheme,K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=mt(P.path||""),K.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=mt(P.path||""),K.query=P.query):(P.path?(P.path.charAt(0)==="/"?K.path=mt(P.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?K.path="/"+P.path:F.path?K.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+P.path:K.path=P.path,K.path=mt(K.path)),K.query=P.query):(K.path=F.path,P.query!==void 0?K.query=P.query:K.query=F.query),K.userinfo=F.userinfo,K.host=F.host,K.port=F.port),K.scheme=F.scheme),K.fragment=P.fragment,K}function Rr(F,P,q){var H=a({scheme:"null"},q);return Ct(jr(Ut(F,H),Ut(P,H),H,!0),H)}function Lr(F,P){return typeof F=="string"?F=Ct(Ut(F,P),P):n(F)==="object"&&(F=Ut(Ct(F,P),P)),F}function qr(F,P,q){return typeof F=="string"?F=Ct(Ut(F,q),q):n(F)==="object"&&(F=Ct(F,q)),typeof P=="string"?P=Ct(Ut(P,q),q):n(P)==="object"&&(P=Ct(P,q)),F===P}function Br(F,P){return F&&F.toString().replace(!P||!P.iri?f.ESCAPE:m.ESCAPE,ft)}function nr(F,P){return F&&F.toString().replace(!P||!P.iri?f.PCT_ENCODED:m.PCT_ENCODED,ct)}var W={scheme:"http",domainHost:!0,parse:function(P,q){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,q){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:W.domainHost,parse:W.parse,serialize:W.serialize};function ge(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Se={scheme:"ws",domainHost:!0,parse:function(P,q){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,q){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("?"),K=p(H,2),ue=K[0],ke=K[1];P.path=ue&&ue!=="/"?ue:void 0,P.query=ke,P.resourceName=void 0}return P.fragment=void 0,P}},xt={scheme:"wss",domainHost:Se.domainHost,parse:Se.parse,serialize:Se.serialize},Ar={},ze=!0,ot="[A-Za-z0-9\\-\\.\\_\\~"+(ze?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",ht="[0-9A-Fa-f]",Mr=e(e("%[EFef]"+ht+"%"+ht+ht+"%"+ht+ht)+"|"+e("%[89A-Fa-f]"+ht+"%"+ht+ht)+"|"+e("%"+ht+ht)),Ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",At=r(nn,'[\\"\\\\]'),Dn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",co=new RegExp(ot,"g"),Sr=new RegExp(Mr,"g"),jn=new RegExp(r("[^]",Ye,"[\\.]",'[\\"]',At),"g"),Ni=new RegExp(r("[^]",ot,Dn),"g"),po=Ni;function Rn(F){var P=ct(F);return P.match(co)?P:F}var Di={scheme:"mailto",parse:function(P,q){var H=P,K=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var ue=!1,ke={},Pe=H.query.split("&"),De=0,d=Pe.length;De<d;++De){var oe=Pe[De].split("=");switch(oe[0]){case"to":for(var qe=oe[1].split(","),Be=0,We=qe.length;Be<We;++Be)K.push(qe[Be]);break;case"subject":H.subject=nr(oe[1],q);break;case"body":H.body=nr(oe[1],q);break;default:ue=!0,ke[nr(oe[0],q)]=nr(oe[1],q);break}}ue&&(H.headers=ke)}H.query=void 0;for(var M=0,Ge=K.length;M<Ge;++M){var Me=K[M].split("@");if(Me[0]=nr(Me[0]),q.unicodeSupport)Me[1]=nr(Me[1],q).toLowerCase();else try{Me[1]=kt.toASCII(nr(Me[1],q).toLowerCase())}catch(zr){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+zr}K[M]=Me.join("@")}return H},serialize:function(P,q){var H=P,K=o(P.to);if(K){for(var ue=0,ke=K.length;ue<ke;++ue){var Pe=String(K[ue]),De=Pe.lastIndexOf("@"),d=Pe.slice(0,De).replace(Sr,Rn).replace(Sr,i).replace(jn,ft),oe=Pe.slice(De+1);try{oe=q.iri?kt.toUnicode(oe):kt.toASCII(nr(oe,q).toLowerCase())}catch(M){H.error=H.error||"Email address's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+M}K[ue]=d+"@"+oe}H.path=K.join(",")}var qe=P.headers=P.headers||{};P.subject&&(qe.subject=P.subject),P.body&&(qe.body=P.body);var Be=[];for(var We in qe)qe[We]!==Ar[We]&&Be.push(We.replace(Sr,Rn).replace(Sr,i).replace(Ni,ft)+"="+qe[We].replace(Sr,Rn).replace(Sr,i).replace(po,ft));return Be.length&&(H.query=Be.join("&")),H}},Zn=/^([^\:]+)\:(.*)/,yn={scheme:"urn",parse:function(P,q){var H=P.path&&P.path.match(Zn),K=P;if(H){var ue=q.scheme||K.scheme||"urn",ke=H[1].toLowerCase(),Pe=H[2],De=ue+":"+(q.nid||ke),d=it[De];K.nid=ke,K.nss=Pe,K.path=void 0,d&&(K=d.parse(K,q))}else K.error=K.error||"URN can not be parsed.";return K},serialize:function(P,q){var H=q.scheme||P.scheme||"urn",K=P.nid,ue=H+":"+(q.nid||K),ke=it[ue];ke&&(P=ke.serialize(P,q));var Pe=P,De=P.nss;return Pe.path=(K||q.nid)+":"+De,Pe}},mo=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,vn={scheme:"urn:uuid",parse:function(P,q){var H=P;return H.uuid=H.nss,H.nss=void 0,!q.tolerant&&(!H.uuid||!H.uuid.match(mo))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(P,q){var H=P;return H.nss=(P.uuid||"").toLowerCase(),H}};it[W.scheme]=W,it[ne.scheme]=ne,it[Se.scheme]=Se,it[xt.scheme]=xt,it[Di.scheme]=Di,it[yn.scheme]=yn,it[vn.scheme]=vn,t.SCHEMES=it,t.pctEncChar=ft,t.pctDecChars=ct,t.parse=Ut,t.removeDotSegments=mt,t.serialize=Ct,t.resolveComponents=jr,t.resolve=Rr,t.normalize=Lr,t.equal=qr,t.escapeComponent=Br,t.unescapeComponent=nr,Object.defineProperty(t,"__esModule",{value:!0})})});var Wo=re($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getSchemaRefs=$r.resolveUrl=$r.normalizeId=$r._getFullPath=$r.getFullPath=$r.inlineRef=void 0;var I0=ut(),O0=Ko(),F0=Dd(),ta=yu(),T0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function N0(t,r=!0){return typeof t=="boolean"?!0:r===!0?!vu(t):r?Rd(t)<=r:!1}$r.inlineRef=N0;var D0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function vu(t){for(let r in t){if(D0.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(vu)||typeof e=="object"&&vu(e))return!0}return!1}function Rd(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!T0.has(e)&&(typeof t[e]=="object"&&I0.eachItem(t[e],n=>r+=Rd(n)),r===1/0))return 1/0}return r}function Ld(t="",r){r!==!1&&(t=no(t));let e=ta.parse(t);return qd(e)}$r.getFullPath=Ld;function qd(t){return ta.serialize(t).split("#")[0]+"#"}$r._getFullPath=qd;var j0=/#\/?$/;function no(t){return t?t.replace(j0,""):""}$r.normalizeId=no;function R0(t,r){return r=no(r),ta.resolve(t,r)}$r.resolveUrl=R0;var L0=/^[a-z_][-a-z0-9._]*$/i;function q0(t){if(typeof t=="boolean")return{};let r=no(t.$id),e={"":r},n=Ld(r,!1),i={},o=new Set;return F0(t,{allKeys:!0},(f,m,p,v)=>{if(v===void 0)return;let $=n+m,w=e[v];typeof f.$id=="string"&&(w=k.call(this,f.$id)),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),e[m]=w;function k(j){if(j=no(w?ta.resolve(w,j):j),o.has(j))throw u(j);o.add(j);let D=this.refs[j];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?a(f,D.schema,j):j!==no($)&&(j[0]==="#"?(a(f,i[j],j),i[j]=f):this.refs[j]=$),j}function I(j){if(typeof j=="string"){if(!L0.test(j))throw new Error(`invalid anchor "${j}"`);k.call(this,`#${j}`)}}}),i;function a(f,m,p){if(m!==void 0&&!O0(f,m))throw u(p)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}$r.getSchemaRefs=q0});var Er=re(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.checkStrictMode=hn.schemaCxtHasRules=hn.subschemaCode=hn.validateFunctionCode=void 0;var Vd=gd(),Bd=ro(),Md=Fd(),Ne=Ie(),Ee=Jr(),B0=Wo(),Ud=ut();function M0(t){if(Kd(t)&&(Wd(t),$u(t))){U0(t);return}Hd(t,()=>Vd.topBoolOrEmptySchema(t))}hn.validateFunctionCode=M0;function Hd({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Ne._`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code(Ne._`"use strict"; ${zd(e,i)}`),V0(t,i),t.code(o)}):t.func(r,Ne._`${Ee.default.data}, ${z0(i)}`,n.$async,()=>t.code(zd(e,i)).code(o))}function z0(t){return Ne._`{${Ee.default.dataPath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?Ne._`, ${Ee.default.dynamicAnchors}={}`:Ne.nil}}={}`}function V0(t,r){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.dataPath,Ne._`${Ee.default.valCxt}.${Ee.default.dataPath}`),t.var(Ee.default.parentData,Ne._`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,Ne._`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,Ne._`${Ee.default.valCxt}.${Ee.default.rootData}`),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Ne._`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.dataPath,Ne._`""`),t.var(Ee.default.parentData,Ne._`undefined`),t.var(Ee.default.parentDataProperty,Ne._`undefined`),t.var(Ee.default.rootData,Ee.default.data),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Ne._`{}`)})}function U0(t){let{schema:r,opts:e,gen:n}=t;Hd(t,()=>{e.$comment&&r.$comment&&Qd(t),Q0(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),e.unevaluated&&H0(t),Gd(t),X0(t)})}function H0(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ne._`${e}.evaluated`),r.if(Ne._`${t.evaluated}.dynamicProps`,()=>r.assign(Ne._`${t.evaluated}.props`,Ne._`undefined`)),r.if(Ne._`${t.evaluated}.dynamicItems`,()=>r.assign(Ne._`${t.evaluated}.items`,Ne._`undefined`))}function zd(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ne._`/*# sourceURL=${t.$id} */`:Ne.nil}function K0(t,r){if(Kd(t)&&(Wd(t),$u(t))){W0(t,r);return}Vd.boolOrEmptySchema(t,r)}hn.subschemaCode=K0;function $u({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}hn.schemaCxtHasRules=$u;function Kd(t){return typeof t.schema!="boolean"}function W0(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&Qd(t),Z0(t),J0(t);let o=n.const("_errs",Ee.default.errors);Gd(t,o),n.var(r,Ne._`${o} === ${Ee.default.errors}`)}function Wd(t){Ud.checkUnknownRules(t),G0(t)}function Gd(t,r){if(t.opts.jtd)return Md.schemaKeywords(t,[],!1,r);let e=Bd.getSchemaTypes(t.schema),n=Bd.coerceAndCheckDataType(t,e);Md.schemaKeywords(t,e,!n,r)}function G0(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&Ud.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function Q0(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&Zd(t,"default is ignored in the schema root")}function Z0(t){t.schema.$id&&(t.baseId=B0.resolveUrl(t.baseId,t.schema.$id))}function J0(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Qd({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Ne._`${Ee.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Ne.str`${n}/$comment`,u=t.scopeValue("root",{ref:r.root});t.code(Ne._`${Ee.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}function X0(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Ne._`${Ee.default.errors} === 0`,()=>r.return(Ee.default.data),()=>r.throw(Ne._`new ${i}(${Ee.default.vErrors})`)):(r.assign(Ne._`${n}.errors`,Ee.default.vErrors),o.unevaluated&&Y0(t),r.return(Ne._`${Ee.default.errors} === 0`))}function Y0({gen:t,evaluated:r,props:e,items:n}){e instanceof Ne.Name&&t.assign(Ne._`${r}.props`,e),n instanceof Ne.Name&&t.assign(Ne._`${r}.items`,n)}function Zd(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}hn.checkStrictMode=Zd});var ut=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 yt=Ie(),e1=Er();function t1(t){let r={};for(let e of t)r[e]=!0;return r}Ue.toHash=t1;function r1(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(Xd(t,r),!Yd(r,t.self.RULES.all))}Ue.alwaysValidSchema=r1;function Xd(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]||e1.checkStrictMode(t,`unknown keyword: "${o}"`)}Ue.checkUnknownRules=Xd;function Yd(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}Ue.schemaHasRules=Yd;function n1(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=n1;function i1({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return yt._`${e}`}return yt._`${t}${r}${yt.getProperty(n)}`}Ue.schemaRefOrVal=i1;function o1(t){return tm(decodeURIComponent(t))}Ue.unescapeFragment=o1;function s1(t){return encodeURIComponent(em(t))}Ue.escapeFragment=s1;function em(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Ue.escapeJsonPointer=em;function tm(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Ue.unescapeJsonPointer=tm;function a1(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}Ue.eachItem=a1;function Jd({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,u)=>{let f=a===void 0?o:a instanceof yt.Name?(o instanceof yt.Name?t(i,o,a):r(i,o,a),a):o instanceof yt.Name?(r(i,a,o),o):e(o,a);return u===yt.Name&&!(f instanceof yt.Name)?n(i,f):f}}Ue.mergeEvaluated={props:Jd({mergeNames:(t,r,e)=>t.if(yt._`${e} !== true && ${r} !== undefined`,()=>{t.if(yt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,yt._`${e} || {}`).code(yt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(yt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,yt._`${e} || {}`),bu(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:rm}),items:Jd({mergeNames:(t,r,e)=>t.if(yt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,yt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(yt._`${e} !== true`,()=>t.assign(e,r===!0?!0:yt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function rm(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",yt._`{}`);return r!==void 0&&bu(t,e,r),e}Ue.evaluatedPropsToName=rm;function bu(t,r,e){Object.keys(e).forEach(n=>t.assign(yt._`${r}${yt.getProperty(n)}`,!0))}Ue.setEvaluated=bu;function l1(t,r){return t.scopeValue("func",{ref:r,code:r.code})}Ue.func=l1});var ro=re(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.reportTypeError=Bt.checkDataTypes=Bt.checkDataType=Bt.coerceAndCheckDataType=Bt.getJSONTypes=Bt.getSchemaTypes=Bt.DataType=void 0;var u1=Kl(),f1=Wl(),c1=Uo(),Ae=Ie(),nm=ut(),Go;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Go=Bt.DataType||(Bt.DataType={}));function p1(t){let r=im(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}Bt.getSchemaTypes=p1;function im(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(u1.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Bt.getJSONTypes=im;function d1(t,r){let{gen:e,data:n,opts:i}=t,o=m1(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&f1.schemaHasRulesForType(t,r[0]));if(a){let u=_u(r,n,i.strict,Go.Wrong);e.if(u,()=>{o.length?h1(t,r,o):ku(t)})}return a}Bt.coerceAndCheckDataType=d1;var om=new Set(["string","number","integer","boolean","null"]);function m1(t,r){return r?t.filter(e=>om.has(e)||r==="array"&&e==="array"):[]}function h1(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(_u(r,i,o.strict),()=>n.assign(u,i))),n.if(Ae._`${u} !== undefined`);for(let m of e)(om.has(m)||m==="array"&&o.coerceTypes==="array")&&f(m);n.else(),ku(t),n.endIf(),n.if(Ae._`${u} !== undefined`,()=>{n.assign(i,u),g1(t,u)});function f(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
8
+ `),f.text=m.value,o.push(f)),a=!0}else o.push(f)}return e.content=o,e}});return r(t,{})}}});var Wp=re(In=>{"use strict";var Bs=In&&In.__assign||function(){return Bs=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},Bs.apply(this,arguments)},Hp=In&&In.__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))},S$=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});var Bl=S$(Vn());function Ms(t){return t.reduce(function(r,e){return Array.isArray(e)?r.concat(Ms(e)):r.concat(e)},[])}var Ml=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("")},P$=function(t,r){var e=Math.max.apply(Math,Hp(Hp([],t,!0),r,!0).map(function(a){return a.length})),n=t.map(function(a){for(var u=a+" ".repeat(e-a.length),f=[],m=/\s+[+|\s]\s/g,p;(p=m.exec(u))!=null;){var v="1".repeat(p.index)+"0".repeat(p[0].length);f.push(v+"1".repeat(e-v.length))}return f.reduce(function($,w){return Ml($,w,function(k,I){return k&I})},"1".repeat(e))}),i=n.map(function(a){return Ml(a,"",function(u){return u==0?1:0})}),o=i.reduce(function(a,u){return Ml(a,u,function(f,m){return f&m})},"1".repeat(e));return o},Kp=function(t,r){var e=Ms(t.split(/\n/).filter(function(o){return o.length>0})),n=e.map(function(o){for(var a=/((1+|0+))/g,u=[],f;(f=a.exec(r))!=null;)if(f[0][0]!=1){var m=o.substring(f.index,f.index+f[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};In.default=function(){return function(t){var r=(0,Bl.default)({table:function(e){var n=[],i=function($){n.push($.value)},o=[];if((0,Bl.default)({"row:text":i,"head:text":i,":separator":function($){o.push($.text)}})(e),!n.length)return e;var a=function($){return $.split(/\n/).filter(function(w){return w.length>0})},u=Ms(n.map(a)),f=Ms(o.map(a)),m=P$(u,f),p=function($,w){for(var k=[],I=2;I<arguments.length;I++)k[I-2]=arguments[I];return Bs(Bs({},k),{name:$,type:"block",content:Array.isArray(w)?w:[w]})},v=(0,Bl.default)({"row:text":function($){var w=Kp($.value,m);return p("table_row",w.map(function(k){return p("table_cell",{type:"text",value:k})}))},"head:text":function($){var w=Kp($.value,m);return p("table_head",w.map(function(k){return p("table_cell",{type:"text",value:k})}))}})(e);return v}});return r(t,{})}}});var zl=re(bt=>{"use strict";var Gp=bt&&bt.__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))},Zp=bt&&bt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bt,"__esModule",{value:!0});bt.handleNested=bt.subUse=bt.setContext=bt.setFn=bt.content=bt.emptyContent=bt.wrapContent=void 0;var Qp=Io(),I$=Zp(Tl()),O$=Zp(vi()),F$=function(t,r){return function(e,n){return function(i,o,a){e.writeRaw(t),i.content&&a(i.content,o),e.writeRaw(r)}}};bt.wrapContent=F$;var T$=function(){return function(){return function(){}}};bt.emptyContent=T$;var N$=function(t,r){return function(e,n,i){if(e.content)return i(e.content,n)}};bt.content=N$;var D$=function(t){return function(r,e){return function(n,i,o){return t(n,i)(r,e)(n,i,o)}}};bt.setFn=D$;var j$=function(t,r){return function(e,n){return function(i,o,a){return r(e,n)(i,t,a)}}};bt.setContext=j$;var R$=function(t,r){var e=(0,Qp.makeRulesArray)(t).reverse();return function(n,i){var o=e.map(function(f){return(0,Qp.makeRule)(f.rule,f.fn(n,i))}).reverse(),a=r(n,i),u;return function(f,m,p){return u||(u=(0,I$.default)(Gp(Gp([],p.rules,!0),o,!0))),a(f,m,u)}}};bt.subUse=R$;var L$=function(t,r){return function(e,n){var i=t(e,n);return function(o,a,u){var f=(0,O$.default)(o,a).getFirstValue("nested")||r;f!==void 0&&e.addLevel(f),i(o,a,u),f!==void 0&&e.removeLevel(f)}}};bt.handleNested=L$});var Jp=re(wi=>{"use strict";var q$=wi&&wi.__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)}}(),B$=wi&&wi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wi,"__esModule",{value:!0});var M$=B$(Dl()),z$=function(t){q$(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}(M$.default);wi.default=z$});var Xp=re(jo=>{"use strict";var V$=jo&&jo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jo,"__esModule",{value:!0});var U$=V$(Vn());jo.default=function(){return function(t){var r=(0,U$.default)({"*":function(e,n,i){return e.content&&(e.content=i(e.content,n,i)),delete e.location,e}});return r(t,{})}}});var ed=re(_i=>{"use strict";var Vl=_i&&_i.__assign||function(){return Vl=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},Vl.apply(this,arguments)},zs=_i&&_i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_i,"__esModule",{value:!0});var H$=zs(Ul()),ve=zl(),K$=Vn(),Yp=zs(vi()),W$=zs(Jp()),G$=zs(Xp()),Q$=vi(),Z$={":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,G$.default)()(a);u[0].type==="para"?i(u[0].content,n):i(u,n)}}},"C<>":(0,ve.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,ve.wrapContent)("<strong>","</strong>"),"I<>":(0,ve.wrapContent)("<em>","</em>"),"R<>":(0,ve.wrapContent)("<var>","</var>"),"K<>":(0,ve.wrapContent)("<kbd>","</kbd>"),"L<>":(0,ve.setFn)(function(t,r){var e=t.meta;return e===null&&(e=t.content),(0,ve.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,ve.wrapContent)("<samp>","</samp>"),"U<>":(0,ve.wrapContent)("<u>","</u>"),"V<>":ve.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<>":ve.emptyContent,pod:ve.content,":code":(0,ve.wrapContent)("<pre><code>","</code></pre>"),code:(0,ve.handleNested)((0,ve.wrapContent)("<pre><code>","</code></pre>")),data:ve.emptyContent,":verbatim":function(t,r){return function(e,n,i){e.error&&t.emit("errors",e.location),i(e.value)}},":blankline":ve.emptyContent,":ambient":ve.emptyContent,":config":(0,ve.setFn)(function(t,r){return r.hasOwnProperty("config")||(r.config={}),r.config[t.name]=t.config,ve.emptyContent}),":alias":(0,ve.setFn)(function(t,r){return r.hasOwnProperty("alias")||(r.alias={}),r.alias[t.name]=t.replacement,ve.emptyContent}),para:(0,ve.handleNested)(ve.content),":para":(0,ve.wrapContent)("<p>","</p>"),"head:block":(0,ve.subUse)({":para":ve.content},(0,ve.setFn)(function(t,r){var e=t.level,n=(0,Q$.getNodeId)(t,r);return(0,ve.wrapContent)("<h".concat(e).concat(n?' id="'.concat(n,'"'):"",">"),"</h".concat(e,">"))})),":list":(0,ve.setFn)(function(t,r){return t.list==="ordered"?(0,ve.wrapContent)("<ol>","</ol>"):t.list==="variable"?(0,ve.wrapContent)("<dl>","</dl>"):(0,ve.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":ve.emptyContent,defn:(0,ve.wrapContent)("","</dd>"),"term:para":(0,ve.wrapContent)("<dt>","</dt><dd>"),nested:(0,ve.handleNested)(ve.content,1),output:(0,ve.handleNested)((0,ve.wrapContent)("<pre><samp>","</samp></pre>"),1),input:(0,ve.handleNested)((0,ve.wrapContent)("<pre><kbd>","</kbd></pre>"),1),"table:block":(0,ve.handleNested)(function(t,r){return function(e,n,i){var o=(0,Yp.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":ve.emptyContent,table_row:(0,ve.wrapContent)("<tr>","</tr>"),table_cell:(0,ve.wrapContent)("<td>","</td>"),table_head:(0,ve.subUse)({table_cell:(0,ve.wrapContent)("<th>","</th>")},(0,ve.wrapContent)("<tr>","</tr>")),":toc":function(t,r){return function(e,n,i){t.writeRaw('<div className="toc">');var o=(0,Yp.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,ve.setFn)(function(t,r){return(0,ve.wrapContent)('<ul class="toc-list listlevel'.concat(t.level,'">'),"</ul>")}),":toc-item":(0,ve.setFn)(function(t,r){return(0,ve.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,'"/>'))}}},J$=function(t){return(0,H$.default)(Vl({writer:W$.default},t)).use("*",function(r,e){return function(n,i,o){var a=function(f){var m=f.name||"",p=(f.type||"")==="block";return p&&m===m.toUpperCase()};if((0,K$.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(Z$)};_i.default=J$});var td=re((TP,X$)=>{X$.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 nd=re(Ft=>{"use strict";var Y$=Ft&&Ft.__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]}),eb=Ft&&Ft.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r}),tb=Ft&&Ft.__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)&&Y$(r,t,e);return eb(r,t),r},On=Ft&&Ft.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.version=Ft.toHtml=Ft.parse=Ft.toTree=void 0;var rb=tb(Pp()),nb=On(Ip()),ib=On(Lp()),ob=On(qp()),sb=On(Bp()),ab=On(Mp()),lb=On(Vp()),ub=On(Up()),fb=On(Wp());function rd(){var t=[];return r.use=e,r.parse=n,r.use(nb.default),r.use(ob.default),r.use(sb.default),r.use(ub.default),r.use(fb.default),r.use(ib.default),r.use(lb.default),r.use(ab.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=rb.parse(i,{podMode:o.podMode});if(!o.skipChain)for(var u=0;u<t.length;u++){var f=t[u],m=f(o);a=m(a)}return a}}Ft.toTree=rd;var cb=rd().parse;Ft.parse=cb;var pb=ed();Object.defineProperty(Ft,"toHtml",{enumerable:!0,get:function(){return On(pb).default}});var db=td().version;Ft.version=db});var Ul=re(ki=>{"use strict";var id=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))},od=ki&&ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ki,"__esModule",{value:!0});var Hl=Io(),mb=od(Tl()),hb=od(Dl()),gb=nd(),sd=function(t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var e=r,n=t.processor||gb.parse,i=t.writer;return o.use=a,o.run=u,o.getPlugins=function(){return e},o;function o(f){}function a(f,m){if(f instanceof Array)return sd(t,id(id([],e,!0),m,!0));if(f instanceof Object){for(var p in f)f.hasOwnProperty(p)&&a(p,f[p]);return o}return e.push((0,Hl.makeRule)((0,Hl.makePlug)(f),m)),o}function u(f,m){var p="",v=m||i||new hb.default(function(Y){p=p+Y}),$=typeof v=="function"?new v(function(Y){p=p+Y}):v,w=typeof f=="string"?n(f):f,k=e.slice();k.reverse();var I=(0,mb.default)(k.map(function(Y){return(0,Hl.makeRule)(Y.rule,Y.fn($,n,w))}).reverse()),j={};$.startWrite(w);var D=I(w,j);return $.endWrite(),{errors:$.errors,toString:function(){return p},valueOf:function(){return p},indexingTerms:$.INDEXTERMS,annotations:$.FOOTNOTES,defenitions:$.DEFINITIONS,interator:D}}};ki.default=sd});var Kl=re(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.getRules=Ji.isJSONType=void 0;var yb=["string","number","integer","boolean","null","object","array"],vb=new Set(yb);function $b(t){return typeof t=="string"&&vb.has(t)}Ji.isJSONType=$b;function bb(){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:{}}}Ji.getRules=bb});var Wl=re(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.shouldUseRule=Un.shouldUseGroup=Un.schemaHasRulesForType=void 0;function wb({schema:t,self:r},e){let n=r.RULES.types[e];return n&&n!==!0&&ad(t,n)}Un.schemaHasRulesForType=wb;function ad(t,r){return r.rules.some(e=>ld(t,e))}Un.shouldUseGroup=ad;function ld(t,r){var e;return t[r.keyword]!==void 0||((e=r.definition.implements)===null||e===void 0?void 0:e.some(n=>t[n]!==void 0))}Un.shouldUseRule=ld});var Vs=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 Ro=class{};Je._CodeOrName=Ro;Je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ci=class extends Ro{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=Ci;var dn=class extends Ro{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((e,n)=>`${e}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((e,n)=>(n instanceof Ci&&(e[n.str]=(e[n.str]||0)+1),e),{})}};Je._Code=dn;Je.nil=new dn("");function ud(t,...r){let e=[t[0]],n=0;for(;n<r.length;)Ql(e,r[n]),e.push(t[++n]);return new dn(e)}Je._=ud;var Gl=new dn("+");function fd(t,...r){let e=[Lo(t[0])],n=0;for(;n<r.length;)e.push(Gl),Ql(e,r[n]),e.push(Gl,Lo(t[++n]));return _b(e),new dn(e)}Je.str=fd;function Ql(t,r){r instanceof dn?t.push(...r._items):r instanceof Ci?t.push(r):t.push(xb(r))}Je.addCodeArg=Ql;function _b(t){let r=1;for(;r<t.length-1;){if(t[r]===Gl){let e=kb(t[r-1],t[r+1]);if(e!==void 0){t.splice(r-1,3,e);continue}t[r++]="+"}r++}}function kb(t,r){if(r==='""')return t;if(t==='""')return r;if(typeof t=="string")return r instanceof Ci||t[t.length-1]!=='"'?void 0:typeof r!="string"?`${t.slice(0,-1)}${r}"`:r[0]==='"'?t.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(t instanceof Ci))return`"${t}${r.slice(1)}`}function Cb(t,r){return r.emptyStr()?t:t.emptyStr()?r:fd`${t}${r}`}Je.strConcat=Cb;function xb(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Lo(Array.isArray(t)?t.join(","):t)}function Eb(t){return new dn(Lo(t))}Je.stringify=Eb;function Lo(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Je.safeStringify=Lo;function Ab(t){return typeof t=="string"&&Je.IDENTIFIER.test(t)?new dn(`.${t}`):ud`[${t}]`}Je.getProperty=Ab});var Yl=re(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ValueScope=fr.ValueScopeName=fr.Scope=fr.varKinds=fr.UsedValueState=void 0;var vr=Vs(),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=fr.UsedValueState||(fr.UsedValueState={}));fr.varKinds={const:new vr.Name("const"),let:new vr.Name("let"),var:new vr.Name("var")};var Us=class{constructor({prefixes:r,parent:e}={}){this._names={},this._prefixes=r,this._parent=e}toName(r){return r instanceof vr.Name?r:this.name(r)}name(r){return new vr.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}}};fr.Scope=Us;var Hs=class extends vr.Name{constructor(r,e){super(e),this.prefix=r}setValue(r,{property:e,itemIndex:n}){this.value=r,this.scopePath=vr._`.${new vr.Name(e)}[${n}]`}};fr.ValueScopeName=Hs;var Sb=vr._`\n`,Xl=class extends Us{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Sb:vr.nil}}get(){return this._scope}name(r){return new Hs(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 f=this._scope[o]||(this._scope[o]=[]),m=f.length;return f[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 vr._`${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=vr.nil;for(let a in r){let u=r[a];if(!u)continue;let f=n[a]=n[a]||new Map;u.forEach(m=>{if(f.has(m))return;f.set(m,Jl.Started);let p=e(m);if(p){let v=this.opts.es5?fr.varKinds.var:fr.varKinds.const;o=vr._`${o}${v} ${m} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(m))o=vr._`${o}${p}${this.opts._n}`;else throw new Zl(m);f.set(m,Jl.Completed)})}return o}};fr.ValueScope=Xl});var Ie=re(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.or=Fe.and=Fe.not=Fe.CodeGen=Fe.operators=Fe.varKinds=Fe.ValueScopeName=Fe.ValueScope=Fe.Scope=Fe.Name=Fe.stringify=Fe.getProperty=Fe.nil=Fe.strConcat=Fe.str=Fe._=void 0;var je=Vs(),Qr=Yl(),Ai=Vs();Object.defineProperty(Fe,"_",{enumerable:!0,get:function(){return Ai._}});Object.defineProperty(Fe,"str",{enumerable:!0,get:function(){return Ai.str}});Object.defineProperty(Fe,"strConcat",{enumerable:!0,get:function(){return Ai.strConcat}});Object.defineProperty(Fe,"nil",{enumerable:!0,get:function(){return Ai.nil}});Object.defineProperty(Fe,"getProperty",{enumerable:!0,get:function(){return Ai.getProperty}});Object.defineProperty(Fe,"stringify",{enumerable:!0,get:function(){return Ai.stringify}});Object.defineProperty(Fe,"Name",{enumerable:!0,get:function(){return Ai.Name}});var Qs=Yl();Object.defineProperty(Fe,"Scope",{enumerable:!0,get:function(){return Qs.Scope}});Object.defineProperty(Fe,"ValueScope",{enumerable:!0,get:function(){return Qs.ValueScope}});Object.defineProperty(Fe,"ValueScopeName",{enumerable:!0,get:function(){return Qs.ValueScopeName}});Object.defineProperty(Fe,"varKinds",{enumerable:!0,get:function(){return Qs.varKinds}});Fe.operators={GT:new je._Code(">"),GTE:new je._Code(">="),LT:new je._Code("<"),LTE:new je._Code("<="),EQ:new je._Code("==="),NEQ:new je._Code("!=="),NOT:new je._Code("!"),OR:new je._Code("||"),AND:new je._Code("&&"),ADD:new je._Code("+")};var Fn=class{optimizeNodes(){return this}optimizeNames(r,e){return this}},eu=class extends Fn{constructor(r,e,n){super(),this.varKind=r,this.name=e,this.rhs=n}render({es5:r,_n:e}){let n=r?Qr.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=Yi(this.rhs,r,e)),this}get names(){return this.rhs instanceof je._CodeOrName?this.rhs.names:{}}},Ks=class extends Fn{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 je.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Yi(this.rhs,r,e),this}get names(){let r=this.lhs instanceof je.Name?{}:{...this.lhs.names};return Gs(r,this.rhs)}},tu=class extends Ks{constructor(r,e,n,i){super(r,n,i),this.op=e}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},ru=class extends Fn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},nu=class extends Fn{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},iu=class extends Fn{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},ou=class extends Fn{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=Yi(this.code,r,e),this}get names(){return this.code instanceof je._CodeOrName?this.code.names:{}}},qo=class extends Fn{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)||(Pb(r,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,e)=>Ei(r,e.names),{})}},Tn=class extends qo{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},su=class extends qo{},Xi=class extends Tn{};Xi.kind="else";var Zr=class extends Tn{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 Xi(n):n}if(e)return r===!1?e instanceof Zr?e:e.nodes:this.nodes.length?this:new Zr(cd(r),e instanceof Zr?[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=Yi(this.condition,r,e),this}get names(){let r=super.names;return Gs(r,this.condition),this.else&&Ei(r,this.else.names),r}};Zr.kind="if";var xi=class extends Tn{};xi.kind="for";var au=class extends xi{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=Yi(this.iteration,r,e),this}get names(){return Ei(super.names,this.iteration.names)}},lu=class extends xi{constructor(r,e,n,i){super(),this.varKind=r,this.name=e,this.from=n,this.to=i}render(r){let e=r.es5?Qr.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)}},Ws=class extends xi{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=Yi(this.iterable,r,e),this}get names(){return Ei(super.names,this.iterable.names)}},Bo=class extends Tn{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)}};Bo.kind="func";var Mo=class extends qo{render(r){return"return "+super.render(r)}};Mo.kind="return";var uu=class extends Tn{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&&Ei(r,this.catch.names),this.finally&&Ei(r,this.finally.names),r}},zo=class extends Tn{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};zo.kind="catch";var Vo=class extends Tn{render(r){return"finally"+super.render(r)}};Vo.kind="finally";var fu=class{constructor(r,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?`
10
+ `:""},this._extScope=r,this._scope=new Qr.Scope({parent:r}),this._nodes=[new su]}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 eu(r,o,n)),o}const(r,e,n){return this._def(Qr.varKinds.const,r,e,n)}let(r,e,n){return this._def(Qr.varKinds.let,r,e,n)}var(r,e,n){return this._def(Qr.varKinds.var,r,e,n)}assign(r,e,n){return this._leafNode(new Ks(r,e,n))}add(r,e){return this._leafNode(new tu(r,Fe.operators.ADD,e))}code(r){return typeof r=="function"?r():r!==je.nil&&this._leafNode(new ou(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(":"),je.addCodeArg(e,i));return e.push("}"),new je._Code(e)}if(r,e,n){if(this._blockNode(new Zr(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 Zr(r))}else(){return this._elseNode(new Xi)}endIf(){return this._endBlockNode(Zr,Xi)}_for(r,e){return this._blockNode(r),e&&this.code(e).endFor(),this}for(r,e){return this._for(new au(r),e)}forRange(r,e,n,i,o=this.opts.es5?Qr.varKinds.var:Qr.varKinds.let){let a=this._scope.toName(r);return this._for(new lu(o,a,e,n),()=>i(a))}forOf(r,e,n,i=Qr.varKinds.const){let o=this._scope.toName(r);if(this.opts.es5){let a=e instanceof je.Name?e:this.var("_arr",e);return this.forRange("_i",0,je._`${a}.length`,u=>{this.var(o,je._`${a}[${u}]`),n(o)})}return this._for(new Ws("of",i,o,e),()=>n(o))}forIn(r,e,n,i=this.opts.es5?Qr.varKinds.var:Qr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,je._`Object.keys(${e})`,n);let o=this._scope.toName(r);return this._for(new Ws("in",i,o,e),()=>n(o))}endFor(){return this._endBlockNode(xi)}label(r){return this._leafNode(new ru(r))}break(r){return this._leafNode(new nu(r))}return(r){let e=new Mo;if(this._blockNode(e),this.code(r),e.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Mo)}try(r,e,n){if(!e&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new uu;if(this._blockNode(i),this.code(r),e){let o=this.name("e");this._currNode=i.catch=new zo(o),e(o)}return n&&(this._currNode=i.finally=new Vo,this.code(n)),this._endBlockNode(zo,Vo)}throw(r){return this._leafNode(new iu(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=je.nil,n,i){return this._blockNode(new Bo(r,e,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Bo)}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 Zr))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}};Fe.CodeGen=fu;function Ei(t,r){for(let e in r)t[e]=(t[e]||0)+(r[e]||0);return t}function Gs(t,r){return r instanceof je._CodeOrName?Ei(t,r.names):t}function Yi(t,r,e){if(t instanceof je.Name)return n(t);if(!i(t))return t;return new je._Code(t._items.reduce((o,a)=>(a instanceof je.Name&&(a=n(a)),a instanceof je._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 je._Code&&o._items.some(a=>a instanceof je.Name&&r[a.str]===1&&e[a.str]!==void 0)}}function Pb(t,r){for(let e in r)t[e]=(t[e]||0)-(r[e]||0)}function cd(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:je._`!${cu(t)}`}Fe.not=cd;var Ib=pd(Fe.operators.AND);function Ob(...t){return t.reduce(Ib)}Fe.and=Ob;var Fb=pd(Fe.operators.OR);function Tb(...t){return t.reduce(Fb)}Fe.or=Tb;function pd(t){return(r,e)=>r===je.nil?e:e===je.nil?r:je._`${cu(r)} ${t} ${cu(e)}`}function cu(t){return t instanceof je.Name?t:je._`(${t})`}});var Jr=re(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Xt=Ie(),Nb={data:new Xt.Name("data"),valCxt:new Xt.Name("valCxt"),dataPath:new Xt.Name("dataPath"),parentData:new Xt.Name("parentData"),parentDataProperty:new Xt.Name("parentDataProperty"),rootData:new Xt.Name("rootData"),dynamicAnchors:new Xt.Name("dynamicAnchors"),vErrors:new Xt.Name("vErrors"),errors:new Xt.Name("errors"),this:new Xt.Name("this"),self:new Xt.Name("self"),scope:new Xt.Name("scope"),json:new Xt.Name("json"),jsonPos:new Xt.Name("jsonPos"),jsonLen:new Xt.Name("jsonLen"),jsonPart:new Xt.Name("jsonPart")};pu.default=Nb});var Uo=re(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendErrors=Yt.resetErrorsCount=Yt.reportExtraError=Yt.reportError=Yt.keyword$DataError=Yt.keywordError=void 0;var Re=Ie(),er=Jr();Yt.keywordError={message:({keyword:t})=>Re.str`should pass "${t}" keyword validation`};Yt.keyword$DataError={message:({keyword:t,schemaType:r})=>r?Re.str`"${t}" keyword must be ${r} ($data)`:Re.str`"${t}" keyword is invalid ($data)`};function Db(t,r=Yt.keywordError,e){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,u=hd(t,r);e??(o||a)?dd(i,u):md(n,Re._`[${u}]`)}Yt.reportError=Db;function jb(t,r=Yt.keywordError){let{it:e}=t,{gen:n,compositeRule:i,allErrors:o}=e,a=hd(t,r);dd(n,a),i||o||md(e,er.default.vErrors)}Yt.reportExtraError=jb;function Rb(t,r){t.assign(er.default.errors,r),t.if(Re._`${er.default.vErrors} !== null`,()=>t.if(r,()=>t.assign(Re._`${er.default.vErrors}.length`,r),()=>t.assign(er.default.vErrors,null)))}Yt.resetErrorsCount=Rb;function Lb({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,er.default.errors,u=>{t.const(a,Re._`${er.default.vErrors}[${u}]`),t.if(Re._`${a}.dataPath === undefined`,()=>t.assign(Re._`${a}.dataPath`,Re.strConcat(er.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))})}Yt.extendErrors=Lb;function dd(t,r){let e=t.const("err",r);t.if(Re._`${er.default.vErrors} === null`,()=>t.assign(er.default.vErrors,Re._`[${e}]`),Re._`${er.default.vErrors}.push(${e})`),t.code(Re._`${er.default.errors}++`)}function md(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 mn={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 hd(t,r){let{createErrors:e,opts:n}=t.it;return e===!1?Re._`{}`:(n.jtd&&!n.ajvErrors?qb:Bb)(t,r)}function qb(t,{message:r}){let{gen:e,keyword:n,it:i}=t,{errorPath:o,errSchemaPath:a,opts:u}=i,f=[[mn.instancePath,Re.strConcat(er.default.dataPath,o)],[mn.schemaPath,Re.str`${a}/${n}`]];return u.messages&&f.push([mn.message,typeof r=="function"?r(t):r]),e.object(...f)}function Bb(t,r){let{gen:e,keyword:n,data:i,schemaValue:o,it:a}=t,{topSchemaRef:u,schemaPath:f,errorPath:m,errSchemaPath:p,propertyName:v,opts:$}=a,{params:w,message:k}=r,I=[[mn.keyword,n],[er.default.dataPath,Re.strConcat(er.default.dataPath,m)],[mn.schemaPath,Re.str`${p}/${n}`],[mn.params,typeof w=="function"?w(t):w||Re._`{}`]];return v&&I.push([mn.propertyName,v]),$.messages&&I.push([mn.message,typeof k=="function"?k(t):k]),$.verbose&&I.push([mn.schema,o],[mn.parentSchema,Re._`${u}${f}`],[er.default.data,i]),e.object(...I)}});var yd=re(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.boolOrEmptySchema=eo.topBoolOrEmptySchema=void 0;var Mb=Uo(),zb=Ie(),Vb=Jr(),Ub={message:"boolean schema is false"};function Hb(t){let{gen:r,schema:e,validateName:n}=t;e===!1?gd(t,!1):typeof e=="object"&&e.$async===!0?r.return(Vb.default.data):(r.assign(zb._`${n}.errors`,null),r.return(!0))}eo.topBoolOrEmptySchema=Hb;function Kb(t,r){let{gen:e,schema:n}=t;n===!1?(e.var(r,!1),gd(t)):e.var(r,!0)}eo.boolOrEmptySchema=Kb;function gd(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};Mb.reportError(i,Ub,r)}});var $d=re(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.assignDefaults=void 0;var to=Ie(),Wb=Er();function Gb(t,r){let{properties:e,items:n}=t.schema;if(r==="object"&&e)for(let i in e)vd(t,i,e[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,o)=>vd(t,o,i.default))}Zs.assignDefaults=Gb;function vd(t,r,e){let{gen:n,compositeRule:i,data:o,opts:a}=t;if(e===void 0)return;let u=to._`${o}${to.getProperty(r)}`;if(i){Wb.checkStrictMode(t,`default is ignored for: ${u}`);return}let f=to._`${u} === undefined`;a.useDefaults==="empty"&&(f=to._`${f} || ${u} === null || ${u} === ""`),n.if(f,to._`${u} = ${to.stringify(e)}`)}});var Pi=re(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.applySubschema=Si.Type=void 0;var Qb=Er(),bd=ut(),tr=Ie(),wd;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(wd=Si.Type||(Si.Type={}));function Zb(t,r,e){let n=Jb(t,r);Xb(n,t,r),Yb(n,r);let i={...t,...n,items:void 0,props:void 0};return Qb.subschemaCode(i,e),i}Si.applySubschema=Zb;function Jb(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:tr._`${t.schemaPath}${tr.getProperty(r)}`,errSchemaPath:`${t.errSchemaPath}/${r}`}:{schema:u[e],schemaPath:tr._`${t.schemaPath}${tr.getProperty(r)}${tr.getProperty(e)}`,errSchemaPath:`${t.errSchemaPath}/${r}/${bd.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 Xb(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:v}=r,$=u.let("data",tr._`${r.data}${tr.getProperty(e)}`,!0);f($),t.errorPath=tr.str`${m}${e0(e,n,v.jsPropertySyntax)}`,t.parentDataProperty=tr._`${e}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let m=i instanceof tr.Name?i:u.let("data",i,!0);f(m),a!==void 0&&(t.propertyName=a)}o&&(t.dataTypes=o);function f(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 Yb(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 e0(t,r,e){if(t instanceof tr.Name){let n=r===wd.Num;return e?n?tr._`"[" + ${t} + "]"`:tr._`"['" + ${t} + "']"`:n?tr._`"/" + ${t}`:tr._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return e?tr.getProperty(t).toString():"/"+bd.escapeJsonPointer(t)}});var Xr=re(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.validateUnion=Xe.validateArray=Xe.usePattern=Xe.callValidateCode=Xe.schemaProperties=Xe.allSchemaProperties=Xe.noPropertyInData=Xe.propertyInData=Xe.isOwnProperty=Xe.hasPropFunc=Xe.reportMissingProp=Xe.checkMissingProp=Xe.checkReportMissingProp=void 0;var st=Ie(),_d=ut(),t0=Pi(),Hn=Jr();function r0(t,r){let{gen:e,data:n,it:i}=t;e.if(mu(e,n,r,i.opts.ownProperties),()=>{t.setParams({missingProperty:st._`${r}`},!0),t.error()})}Xe.checkReportMissingProp=r0;function n0({gen:t,data:r,it:{opts:e}},n,i){return st.or(...n.map(o=>st.and(mu(t,r,o,e.ownProperties),st._`${i} = ${o}`)))}Xe.checkMissingProp=n0;function i0(t,r){t.setParams({missingProperty:r},!0),t.error()}Xe.reportMissingProp=i0;function kd(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:st._`Object.prototype.hasOwnProperty`})}Xe.hasPropFunc=kd;function du(t,r,e){return st._`${kd(t)}.call(${r}, ${e})`}Xe.isOwnProperty=du;function o0(t,r,e,n){let i=st._`${r}${st.getProperty(e)} !== undefined`;return n?st._`${i} && ${du(t,r,e)}`:i}Xe.propertyInData=o0;function mu(t,r,e,n){let i=st._`${r}${st.getProperty(e)} === undefined`;return n?st.or(i,st.not(du(t,r,e))):i}Xe.noPropertyInData=mu;function Cd(t){return t?Object.keys(t).filter(r=>r!=="__proto__"):[]}Xe.allSchemaProperties=Cd;function s0(t,r){return Cd(r).filter(e=>!_d.alwaysValidSchema(t,r[e]))}Xe.schemaProperties=s0;function a0({schemaCode:t,data:r,it:{gen:e,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,f,m){let p=m?st._`${t}, ${r}, ${n}${i}`:r,v=[[Hn.default.dataPath,st.strConcat(Hn.default.dataPath,o)],[Hn.default.parentData,a.parentData],[Hn.default.parentDataProperty,a.parentDataProperty],[Hn.default.rootData,Hn.default.rootData]];a.opts.dynamicRef&&v.push([Hn.default.dynamicAnchors,Hn.default.dynamicAnchors]);let $=st._`${p}, ${e.object(...v)}`;return f!==st.nil?st._`${u}.call(${f}, ${$})`:st._`${u}(${$})`}Xe.callValidateCode=a0;function l0(t,r){return t.scopeValue("pattern",{key:r,ref:new RegExp(r,"u"),code:st._`new RegExp(${r}, "u")`})}Xe.usePattern=l0;function u0(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 f=r.const("len",st._`${e}.length`);r.forRange("i",0,f,m=>{t.subschema({keyword:n,dataProp:m,dataPropType:t0.Type.Num},o),r.if(st.not(o),u)})}}Xe.validateArray=u0;function f0(t){let{gen:r,schema:e,keyword:n,it:i}=t;if(!Array.isArray(e))throw new Error("ajv implementation error");if(e.some(f=>_d.alwaysValidSchema(i,f))&&!i.opts.unevaluated)return;let a=r.let("valid",!1),u=r.name("_valid");r.block(()=>e.forEach((f,m)=>{let p=t.subschema({keyword:n,schemaProp:m,compositeRule:!0},u);r.assign(a,st._`${a} || ${u}`),t.mergeValidEvaluated(p,u)||r.if(st.not(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Xe.validateUnion=f0});var Sd=re(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.keywordCode=void 0;var c0=Ho(),p0=Uo(),d0=Xr(),cr=Ie(),Ii=Jr();function m0(t,r,e,n){let i=new c0.default(t,e,r);"code"in e?e.code(i,n):i.$data&&e.validate?xd(i,e):"macro"in e?h0(i,e):(e.compile||e.validate)&&xd(i,e)}Js.keywordCode=m0;function h0(t,r){let{gen:e,keyword:n,schema:i,parentSchema:o,it:a}=t,u=r.macro.call(a.self,i,o,a),f=Ad(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:f,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}function xd(t,r){var e;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:f}=t;y0(f,r);let m=!u&&r.compile?r.compile.call(f.self,o,a,f):r.validate,p=Ad(n,i,m),v=n.let("valid");t.block$data(v,$),t.ok((e=r.valid)!==null&&e!==void 0?e:v);function $(){if(r.errors===!1)I(),r.modifying&&Ed(t),j(()=>t.error());else{let D=r.async?w():k();r.modifying&&Ed(t),j(()=>g0(t,D))}}function w(){let D=n.let("ruleErrs",null);return n.try(()=>I(cr._`await `),Y=>n.assign(v,!1).if(cr._`${Y} instanceof ${f.ValidationError}`,()=>n.assign(D,cr._`${Y}.errors`),()=>n.throw(Y))),D}function k(){let D=cr._`${p}.errors`;return n.assign(D,null),I(cr.nil),D}function I(D=r.async?cr._`await `:cr.nil){let Y=f.opts.passContext?Ii.default.this:Ii.default.self,ee=!("compile"in r&&!u||r.schema===!1);n.assign(v,cr._`${D}${d0.callValidateCode(t,p,Y,ee)}`,r.modifying)}function j(D){var Y;n.if(cr.not((Y=r.valid)!==null&&Y!==void 0?Y:v),D)}}function Ed(t){let{gen:r,data:e,it:n}=t;r.if(n.parentData,()=>r.assign(e,cr._`${n.parentData}[${n.parentDataProperty}]`))}function g0(t,r){let{gen:e}=t;e.if(cr._`Array.isArray(${r})`,()=>{e.assign(Ii.default.vErrors,cr._`${Ii.default.vErrors} === null ? ${r} : ${Ii.default.vErrors}.concat(${r})`).assign(Ii.default.errors,cr._`${Ii.default.vErrors}.length`),p0.extendErrors(t)},()=>t.error())}function y0({schemaEnv:t},r){if(r.async&&!t.$async)throw new Error("async keyword in sync schema")}function Ad(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 Td=re(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.schemaKeywords=void 0;var hu=Wl(),Pd=ro(),v0=$d(),Fd=Sd(),$0=ut(),b0=Er(),w0=Ie(),_0=Jr();function k0(t,r,e,n){let{gen:i,schema:o,data:a,allErrors:u,opts:f,self:m}=t,{RULES:p}=m;if(o.$ref&&(f.ignoreKeywordsWithRef||!$0.schemaHasRulesButRef(o,p))){i.block(()=>Fd.keywordCode(t,"$ref",p.all.$ref.definition));return}f.jtd||C0(t,r),i.block(()=>{for(let $ of p.rules)v($);v(p.post)});function v($){!hu.shouldUseGroup(o,$)||($.type?(i.if(Pd.checkDataType($.type,a,f.strict)),Id(t,$),r.length===1&&r[0]===$.type&&e&&(i.else(),Pd.reportTypeError(t)),i.endIf()):Id(t,$),u||i.if(w0._`${_0.default.errors} === ${n||0}`))}}Xs.schemaKeywords=k0;function Id(t,r){let{gen:e,schema:n,opts:{useDefaults:i}}=t;i&&v0.assignDefaults(t,r.type),e.block(()=>{for(let o of r.rules)hu.shouldUseRule(n,o)&&Fd.keywordCode(t,o.keyword,o.definition,r.type)})}function C0(t,r){t.schemaEnv.meta||!t.opts.strictTypes||(x0(t,r),t.opts.allowUnionTypes||E0(t,r),A0(t,t.dataTypes))}function x0(t,r){if(!!r.length){if(!t.dataTypes.length){t.dataTypes=r;return}r.forEach(e=>{Od(t.dataTypes,e)||gu(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)}),t.dataTypes=t.dataTypes.filter(e=>Od(r,e))}}function E0(t,r){r.length>1&&!(r.length===2&&r.includes("null"))&&gu(t,"use allowUnionTypes to allow union type keyword")}function A0(t,r){let e=t.self.RULES.all;for(let n in e){let i=e[n];if(typeof i=="object"&&hu.shouldUseRule(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>S0(r,a))&&gu(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function S0(t,r){return t.includes(r)||r==="number"&&t.includes("integer")}function Od(t,r){return t.includes(r)||r==="integer"&&t.includes("number")}function gu(t,r){let e=t.schemaEnv.baseId+t.errSchemaPath;r+=` at "${e}" (strictTypes)`,b0.checkStrictMode(t,r,t.opts.strictTypes)}});var Ko=re((QP,Nd)=>{"use strict";Nd.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 jd=re((ZP,Dd)=>{"use strict";var Kn=Dd.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(){};Ys(r,n,i,t,"",t)};Kn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kn.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 Ys(t,r,e,n,i,o,a,u,f,m){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,o,a,u,f,m);for(var p in n){var v=n[p];if(Array.isArray(v)){if(p in Kn.arrayKeywords)for(var $=0;$<v.length;$++)Ys(t,r,e,v[$],i+"/"+p+"/"+$,o,i,p,n,$)}else if(p in Kn.propsKeywords){if(v&&typeof v=="object")for(var w in v)Ys(t,r,e,v[w],i+"/"+p+"/"+P0(w),o,i,p,n,w)}else(p in Kn.keywords||t.allKeys&&!(p in Kn.skipKeywords))&&Ys(t,r,e,v,i+"/"+p,o,i,p,n)}e(n,i,o,a,u,f,m)}}function P0(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var yu=re((ea,Rd)=>{(function(t,r){typeof ea=="object"&&typeof Rd<"u"?r(ea):typeof define=="function"&&define.amd?define(["exports"],r):r(t.URI=t.URI||{})})(ea,function(t){"use strict";function r(){for(var F=arguments.length,P=Array(F),q=0;q<F;q++)P[q]=arguments[q];if(P.length>1){P[0]=P[0].slice(0,-1);for(var H=P.length-1,K=1;K<H;++K)P[K]=P[K].slice(1,-1);return P[H]=P[H].slice(1),P.join("")}else return P[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,P){var q=F;if(P)for(var H in P)q[H]=P[H];return q}function u(F){var P="[A-Za-z]",q="[\\x0D]",H="[0-9]",K="[\\x22]",ue=r(H,"[A-Fa-f]"),ke="[\\x0A]",Pe="[\\x20]",De=e(e("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+e("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+e("%"+ue+ue)),d="[\\:\\/\\?\\#\\[\\]\\@]",oe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",qe=r(d,oe),Be=F?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",We=F?"[\\uE000-\\uF8FF]":"[]",M=r(P,H,"[\\-\\.\\_\\~]",Be),Ge=e(P+r(P,H,"[\\+\\-\\.]")+"*"),Me=e(e(De+"|"+r(M,oe,"[\\:]"))+"*"),zr=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("[1-9]"+H)+"|"+H),Ht=e(e("25[0-5]")+"|"+e("2[0-4]"+H)+"|"+e("1"+H+H)+"|"+e("0?[1-9]"+H)+"|0?0?"+H),ir=e(Ht+"\\."+Ht+"\\."+Ht+"\\."+Ht),he=e(ue+"{1,4}"),lt=e(e(he+"\\:"+he)+"|"+ir),Kt=e(e(he+"\\:")+"{6}"+lt),dr=e("\\:\\:"+e(he+"\\:")+"{5}"+lt),Pr=e(e(he)+"?\\:\\:"+e(he+"\\:")+"{4}"+lt),or=e(e(e(he+"\\:")+"{0,1}"+he)+"?\\:\\:"+e(he+"\\:")+"{3}"+lt),mr=e(e(e(he+"\\:")+"{0,2}"+he)+"?\\:\\:"+e(he+"\\:")+"{2}"+lt),ie=e(e(e(he+"\\:")+"{0,3}"+he)+"?\\:\\:"+he+"\\:"+lt),$n=e(e(e(he+"\\:")+"{0,4}"+he)+"?\\:\\:"+lt),Ir=e(e(e(he+"\\:")+"{0,5}"+he)+"?\\:\\:"+he),Or=e(e(e(he+"\\:")+"{0,6}"+he)+"?\\:\\:"),jt=e([Kt,dr,Pr,or,mr,ie,$n,Ir,Or].join("|")),on=e(e(M+"|"+De)+"+"),Jn=e(jt+"\\%25"+on),kr=e(jt+e("\\%25|\\%(?!"+ue+"{2})")+on),Xn=e("[vV]"+ue+"+\\."+r(M,oe,"[\\:]")+"+"),Yn=e("\\["+e(kr+"|"+jt+"|"+Xn)+"\\]"),Ln=e(e(De+"|"+r(M,oe))+"*"),bn=e(Yn+"|"+ir+"(?!"+Ln+")|"+Ln),Vr=e(H+"*"),ji=e(e(Me+"@")+"?"+bn+e("\\:"+Vr)+"?"),sn=e(De+"|"+r(M,oe,"[\\:\\@]")),ei=e(sn+"*"),Ur=e(sn+"+"),ti=e(e(De+"|"+r(M,oe,"[\\@]"))+"+"),Rt=e(e("\\/"+ei)+"*"),Lt=e("\\/"+e(Ur+Rt)+"?"),ri=e(ti+Rt),wn=e(Ur+Rt),St="(?!"+sn+")",_n=e(Rt+"|"+Lt+"|"+ri+"|"+wn+"|"+St),Hr=e(e(sn+"|"+r("[\\/\\?]",We))+"*"),kn=e(e(sn+"|[\\/\\?]")+"*"),Ri=e(e("\\/\\/"+ji+Rt)+"|"+Lt+"|"+wn+"|"+St),Cn=e(Ge+"\\:"+Ri+e("\\?"+Hr)+"?"+e("\\#"+kn)+"?"),ho=e(e("\\/\\/"+ji+Rt)+"|"+Lt+"|"+ri+"|"+St),go=e(ho+e("\\?"+Hr)+"?"+e("\\#"+kn)+"?"),ss=e(Cn+"|"+go),as=e(Ge+"\\:"+Ri+e("\\?"+Hr)+"?"),yo="^("+Ge+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+wn+"|"+St+")")+e("\\?("+Hr+")")+"?"+e("\\#("+kn+")")+"?$",vo="^(){0}"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+ri+"|"+St+")")+e("\\?("+Hr+")")+"?"+e("\\#("+kn+")")+"?$",$o="^("+Ge+")\\:"+e(e("\\/\\/("+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?)")+"?("+Rt+"|"+Lt+"|"+wn+"|"+St+")")+e("\\?("+Hr+")")+"?$",Pt="^"+e("\\#("+kn+")")+"?$",Qe="^"+e("("+Me+")@")+"?("+bn+")"+e("\\:("+Vr+")")+"?$";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,"[\\:\\@\\/\\?]",We),"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,qe),"g"),PCT_ENCODED:new RegExp(De,"g"),IPV4ADDRESS:new RegExp("^("+ir+")$"),IPV6ADDRESS:new RegExp("^\\[?("+jt+")"+e(e("\\%25|\\%(?!"+ue+"{2})")+"("+on+")")+"?\\]?$")}}var f=u(!1),m=u(!0),p=function(){function F(P,q){var H=[],K=!0,ue=!1,ke=void 0;try{for(var Pe=P[Symbol.iterator](),De;!(K=(De=Pe.next()).done)&&(H.push(De.value),!(q&&H.length===q));K=!0);}catch(d){ue=!0,ke=d}finally{try{!K&&Pe.return&&Pe.return()}finally{if(ue)throw ke}}return H}return function(P,q){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return F(P,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(F){if(Array.isArray(F)){for(var P=0,q=Array(F.length);P<F.length;P++)q[P]=F[P];return q}else return Array.from(F)},$=2147483647,w=36,k=1,I=26,j=38,D=700,Y=72,ee=128,de="-",ce=/^xn--/,Q=/[^\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"},_e=w-k,Te=Math.floor,Ce=String.fromCharCode;function xe(F){throw new RangeError(we[F])}function fe(F,P){for(var q=[],H=F.length;H--;)q[H]=P(F[H]);return q}function be(F,P){var q=F.split("@"),H="";q.length>1&&(H=q[0]+"@",F=q[1]),F=F.replace(me,".");var K=F.split("."),ue=fe(K,P).join(".");return H+ue}function Ke(F){for(var P=[],q=0,H=F.length;q<H;){var K=F.charCodeAt(q++);if(K>=55296&&K<=56319&&q<H){var ue=F.charCodeAt(q++);(ue&64512)==56320?P.push(((K&1023)<<10)+(ue&1023)+65536):(P.push(K),q--)}else P.push(K)}return P}var U=function(P){return String.fromCodePoint.apply(String,v(P))},at=function(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:w},Le=function(P,q){return P+22+75*(P<26)-((q!=0)<<5)},tt=function(P,q,H){var K=0;for(P=H?Te(P/D):P>>1,P+=Te(P/q);P>_e*I>>1;K+=w)P=Te(P/_e);return Te(K+(_e+1)*P/(P+j))},He=function(P){var q=[],H=P.length,K=0,ue=ee,ke=Y,Pe=P.lastIndexOf(de);Pe<0&&(Pe=0);for(var De=0;De<Pe;++De)P.charCodeAt(De)>=128&&xe("not-basic"),q.push(P.charCodeAt(De));for(var d=Pe>0?Pe+1:0;d<H;){for(var oe=K,qe=1,Be=w;;Be+=w){d>=H&&xe("invalid-input");var We=at(P.charCodeAt(d++));(We>=w||We>Te(($-K)/qe))&&xe("overflow"),K+=We*qe;var M=Be<=ke?k:Be>=ke+I?I:Be-ke;if(We<M)break;var Ge=w-M;qe>Te($/Ge)&&xe("overflow"),qe*=Ge}var Me=q.length+1;ke=tt(K-oe,Me,oe==0),Te(K/Me)>$-ue&&xe("overflow"),ue+=Te(K/Me),K%=Me,q.splice(K++,0,ue)}return String.fromCodePoint.apply(String,q)},T=function(P){var q=[];P=Ke(P);var H=P.length,K=ee,ue=0,ke=Y,Pe=!0,De=!1,d=void 0;try{for(var oe=P[Symbol.iterator](),qe;!(Pe=(qe=oe.next()).done);Pe=!0){var Be=qe.value;Be<128&&q.push(Ce(Be))}}catch(kr){De=!0,d=kr}finally{try{!Pe&&oe.return&&oe.return()}finally{if(De)throw d}}var We=q.length,M=We;for(We&&q.push(de);M<H;){var Ge=$,Me=!0,zr=!1,Ht=void 0;try{for(var ir=P[Symbol.iterator](),he;!(Me=(he=ir.next()).done);Me=!0){var lt=he.value;lt>=K&&lt<Ge&&(Ge=lt)}}catch(kr){zr=!0,Ht=kr}finally{try{!Me&&ir.return&&ir.return()}finally{if(zr)throw Ht}}var Kt=M+1;Ge-K>Te(($-ue)/Kt)&&xe("overflow"),ue+=(Ge-K)*Kt,K=Ge;var dr=!0,Pr=!1,or=void 0;try{for(var mr=P[Symbol.iterator](),ie;!(dr=(ie=mr.next()).done);dr=!0){var $n=ie.value;if($n<K&&++ue>$&&xe("overflow"),$n==K){for(var Ir=ue,Or=w;;Or+=w){var jt=Or<=ke?k:Or>=ke+I?I:Or-ke;if(Ir<jt)break;var on=Ir-jt,Jn=w-jt;q.push(Ce(Le(jt+on%Jn,0))),Ir=Te(on/Jn)}q.push(Ce(Le(Ir,0))),ke=tt(ue,Kt,M==We),ue=0,++M}}}catch(kr){Pr=!0,or=kr}finally{try{!dr&&mr.return&&mr.return()}finally{if(Pr)throw or}}++ue,++K}return q.join("")},N=function(P){return be(P,function(q){return ce.test(q)?He(q.slice(4).toLowerCase()):q})},Vt=function(P){return be(P,function(q){return Q.test(q)?"xn--"+T(q):q})},kt={version:"2.1.0",ucs2:{decode:Ke,encode:U},decode:He,encode:T,toASCII:Vt,toUnicode:N},it={};function ft(F){var P=F.charCodeAt(0),q=void 0;return P<16?q="%0"+P.toString(16).toUpperCase():P<128?q="%"+P.toString(16).toUpperCase():P<2048?q="%"+(P>>6|192).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase():q="%"+(P>>12|224).toString(16).toUpperCase()+"%"+(P>>6&63|128).toString(16).toUpperCase()+"%"+(P&63|128).toString(16).toUpperCase(),q}function ct(F){for(var P="",q=0,H=F.length;q<H;){var K=parseInt(F.substr(q+1,2),16);if(K<128)P+=String.fromCharCode(K),q+=3;else if(K>=194&&K<224){if(H-q>=6){var ue=parseInt(F.substr(q+4,2),16);P+=String.fromCharCode((K&31)<<6|ue&63)}else P+=F.substr(q,6);q+=6}else if(K>=224){if(H-q>=9){var ke=parseInt(F.substr(q+4,2),16),Pe=parseInt(F.substr(q+7,2),16);P+=String.fromCharCode((K&15)<<12|(ke&63)<<6|Pe&63)}else P+=F.substr(q,9);q+=9}else P+=F.substr(q,3),q+=3}return P}function $e(F,P){function q(H){var K=ct(H);return K.match(P.UNRESERVED)?K:H}return F.scheme&&(F.scheme=String(F.scheme).replace(P.PCT_ENCODED,q).toLowerCase().replace(P.NOT_SCHEME,"")),F.userinfo!==void 0&&(F.userinfo=String(F.userinfo).replace(P.PCT_ENCODED,q).replace(P.NOT_USERINFO,ft).replace(P.PCT_ENCODED,i)),F.host!==void 0&&(F.host=String(F.host).replace(P.PCT_ENCODED,q).toLowerCase().replace(P.NOT_HOST,ft).replace(P.PCT_ENCODED,i)),F.path!==void 0&&(F.path=String(F.path).replace(P.PCT_ENCODED,q).replace(F.scheme?P.NOT_PATH:P.NOT_PATH_NOSCHEME,ft).replace(P.PCT_ENCODED,i)),F.query!==void 0&&(F.query=String(F.query).replace(P.PCT_ENCODED,q).replace(P.NOT_QUERY,ft).replace(P.PCT_ENCODED,i)),F.fragment!==void 0&&(F.fragment=String(F.fragment).replace(P.PCT_ENCODED,q).replace(P.NOT_FRAGMENT,ft).replace(P.PCT_ENCODED,i)),F}function _r(F){return F.replace(/^0*(.*)/,"$1")||"0"}function Et(F,P){var q=F.match(P.IPV4ADDRESS)||[],H=p(q,2),K=H[1];return K?K.split(".").map(_r).join("."):F}function Nt(F,P){var q=F.match(P.IPV6ADDRESS)||[],H=p(q,3),K=H[1],ue=H[2];if(K){for(var ke=K.toLowerCase().split("::").reverse(),Pe=p(ke,2),De=Pe[0],d=Pe[1],oe=d?d.split(":").map(_r):[],qe=De.split(":").map(_r),Be=P.IPV4ADDRESS.test(qe[qe.length-1]),We=Be?7:8,M=qe.length-We,Ge=Array(We),Me=0;Me<We;++Me)Ge[Me]=oe[Me]||qe[M+Me]||"";Be&&(Ge[We-1]=Et(Ge[We-1],P));var zr=Ge.reduce(function(Kt,dr,Pr){if(!dr||dr==="0"){var or=Kt[Kt.length-1];or&&or.index+or.length===Pr?or.length++:Kt.push({index:Pr,length:1})}return Kt},[]),Ht=zr.sort(function(Kt,dr){return dr.length-Kt.length})[0],ir=void 0;if(Ht&&Ht.length>1){var he=Ge.slice(0,Ht.index),lt=Ge.slice(Ht.index+Ht.length);ir=he.join(":")+"::"+lt.join(":")}else ir=Ge.join(":");return ue&&(ir+="%"+ue),ir}else return F}var rr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pr="".match(/(){0}/)[1]===void 0;function Ut(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q={},H=P.iri!==!1?m:f;P.reference==="suffix"&&(F=(P.scheme?P.scheme+":":"")+"//"+F);var K=F.match(rr);if(K){pr?(q.scheme=K[1],q.userinfo=K[3],q.host=K[4],q.port=parseInt(K[5],10),q.path=K[6]||"",q.query=K[7],q.fragment=K[8],isNaN(q.port)&&(q.port=K[5])):(q.scheme=K[1]||void 0,q.userinfo=F.indexOf("@")!==-1?K[3]:void 0,q.host=F.indexOf("//")!==-1?K[4]:void 0,q.port=parseInt(K[5],10),q.path=K[6]||"",q.query=F.indexOf("?")!==-1?K[7]:void 0,q.fragment=F.indexOf("#")!==-1?K[8]:void 0,isNaN(q.port)&&(q.port=F.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),q.host&&(q.host=Nt(Et(q.host,H),H)),q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&!q.path&&q.query===void 0?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==q.reference&&(q.error=q.error||"URI is not a "+P.reference+" reference.");var ue=it[(P.scheme||q.scheme||"").toLowerCase()];if(!P.unicodeSupport&&(!ue||!ue.unicodeSupport)){if(q.host&&(P.domainHost||ue&&ue.domainHost))try{q.host=kt.toASCII(q.host.replace(H.PCT_ENCODED,ct).toLowerCase())}catch(ke){q.error=q.error||"Host's domain name can not be converted to ASCII via punycode: "+ke}$e(q,f)}else $e(q,H);ue&&ue.parse&&ue.parse(q,P)}else q.error=q.error||"URI can not be parsed.";return q}function Qn(F,P){var q=P.iri!==!1?m:f,H=[];return F.userinfo!==void 0&&(H.push(F.userinfo),H.push("@")),F.host!==void 0&&H.push(Nt(Et(String(F.host),q),q).replace(q.IPV6ADDRESS,function(K,ue,ke){return"["+ue+(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 Nn=/^\.\.?\//,pt=/^\/\.(\/|$)/,dt=/^\/\.\.(\/|$)/,Dt=/^\/?(?:.|\n)*?(?=\/|$)/;function mt(F){for(var P=[];F.length;)if(F.match(Nn))F=F.replace(Nn,"");else if(F.match(pt))F=F.replace(pt,"/");else if(F.match(dt))F=F.replace(dt,"/"),P.pop();else if(F==="."||F==="..")F="";else{var q=F.match(Dt);if(q){var H=q[0];F=F.slice(H.length),P.push(H)}else throw new Error("Unexpected dot segment condition")}return P.join("")}function Ct(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=P.iri?m:f,H=[],K=it[(P.scheme||F.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize(F,P),F.host&&!q.IPV6ADDRESS.test(F.host)){if(P.domainHost||K&&K.domainHost)try{F.host=P.iri?kt.toUnicode(F.host):kt.toASCII(F.host.replace(q.PCT_ENCODED,ct).toLowerCase())}catch(Pe){F.error=F.error||"Host's domain name can not be converted to "+(P.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}$e(F,q),P.reference!=="suffix"&&F.scheme&&(H.push(F.scheme),H.push(":"));var ue=Qn(F,P);if(ue!==void 0&&(P.reference!=="suffix"&&H.push("//"),H.push(ue),F.path&&F.path.charAt(0)!=="/"&&H.push("/")),F.path!==void 0){var ke=F.path;!P.absolutePath&&(!K||!K.absolutePath)&&(ke=mt(ke)),ue===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 jr(F,P){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=arguments[3],K={};return H||(F=Ut(Ct(F,q),q),P=Ut(Ct(P,q),q)),q=q||{},!q.tolerant&&P.scheme?(K.scheme=P.scheme,K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=mt(P.path||""),K.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(K.userinfo=P.userinfo,K.host=P.host,K.port=P.port,K.path=mt(P.path||""),K.query=P.query):(P.path?(P.path.charAt(0)==="/"?K.path=mt(P.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?K.path="/"+P.path:F.path?K.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+P.path:K.path=P.path,K.path=mt(K.path)),K.query=P.query):(K.path=F.path,P.query!==void 0?K.query=P.query:K.query=F.query),K.userinfo=F.userinfo,K.host=F.host,K.port=F.port),K.scheme=F.scheme),K.fragment=P.fragment,K}function Rr(F,P,q){var H=a({scheme:"null"},q);return Ct(jr(Ut(F,H),Ut(P,H),H,!0),H)}function Lr(F,P){return typeof F=="string"?F=Ct(Ut(F,P),P):n(F)==="object"&&(F=Ut(Ct(F,P),P)),F}function qr(F,P,q){return typeof F=="string"?F=Ct(Ut(F,q),q):n(F)==="object"&&(F=Ct(F,q)),typeof P=="string"?P=Ct(Ut(P,q),q):n(P)==="object"&&(P=Ct(P,q)),F===P}function Br(F,P){return F&&F.toString().replace(!P||!P.iri?f.ESCAPE:m.ESCAPE,ft)}function nr(F,P){return F&&F.toString().replace(!P||!P.iri?f.PCT_ENCODED:m.PCT_ENCODED,ct)}var W={scheme:"http",domainHost:!0,parse:function(P,q){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P},serialize:function(P,q){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:W.domainHost,parse:W.parse,serialize:W.serialize};function ge(F){return typeof F.secure=="boolean"?F.secure:String(F.scheme).toLowerCase()==="wss"}var Se={scheme:"ws",domainHost:!0,parse:function(P,q){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,q){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("?"),K=p(H,2),ue=K[0],ke=K[1];P.path=ue&&ue!=="/"?ue:void 0,P.query=ke,P.resourceName=void 0}return P.fragment=void 0,P}},xt={scheme:"wss",domainHost:Se.domainHost,parse:Se.parse,serialize:Se.serialize},Ar={},ze=!0,ot="[A-Za-z0-9\\-\\.\\_\\~"+(ze?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",ht="[0-9A-Fa-f]",Mr=e(e("%[EFef]"+ht+"%"+ht+ht+"%"+ht+ht)+"|"+e("%[89A-Fa-f]"+ht+"%"+ht+ht)+"|"+e("%"+ht+ht)),Ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",nn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",At=r(nn,'[\\"\\\\]'),Dn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",co=new RegExp(ot,"g"),Sr=new RegExp(Mr,"g"),jn=new RegExp(r("[^]",Ye,"[\\.]",'[\\"]',At),"g"),Ni=new RegExp(r("[^]",ot,Dn),"g"),po=Ni;function Rn(F){var P=ct(F);return P.match(co)?P:F}var Di={scheme:"mailto",parse:function(P,q){var H=P,K=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var ue=!1,ke={},Pe=H.query.split("&"),De=0,d=Pe.length;De<d;++De){var oe=Pe[De].split("=");switch(oe[0]){case"to":for(var qe=oe[1].split(","),Be=0,We=qe.length;Be<We;++Be)K.push(qe[Be]);break;case"subject":H.subject=nr(oe[1],q);break;case"body":H.body=nr(oe[1],q);break;default:ue=!0,ke[nr(oe[0],q)]=nr(oe[1],q);break}}ue&&(H.headers=ke)}H.query=void 0;for(var M=0,Ge=K.length;M<Ge;++M){var Me=K[M].split("@");if(Me[0]=nr(Me[0]),q.unicodeSupport)Me[1]=nr(Me[1],q).toLowerCase();else try{Me[1]=kt.toASCII(nr(Me[1],q).toLowerCase())}catch(zr){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+zr}K[M]=Me.join("@")}return H},serialize:function(P,q){var H=P,K=o(P.to);if(K){for(var ue=0,ke=K.length;ue<ke;++ue){var Pe=String(K[ue]),De=Pe.lastIndexOf("@"),d=Pe.slice(0,De).replace(Sr,Rn).replace(Sr,i).replace(jn,ft),oe=Pe.slice(De+1);try{oe=q.iri?kt.toUnicode(oe):kt.toASCII(nr(oe,q).toLowerCase())}catch(M){H.error=H.error||"Email address's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+M}K[ue]=d+"@"+oe}H.path=K.join(",")}var qe=P.headers=P.headers||{};P.subject&&(qe.subject=P.subject),P.body&&(qe.body=P.body);var Be=[];for(var We in qe)qe[We]!==Ar[We]&&Be.push(We.replace(Sr,Rn).replace(Sr,i).replace(Ni,ft)+"="+qe[We].replace(Sr,Rn).replace(Sr,i).replace(po,ft));return Be.length&&(H.query=Be.join("&")),H}},Zn=/^([^\:]+)\:(.*)/,yn={scheme:"urn",parse:function(P,q){var H=P.path&&P.path.match(Zn),K=P;if(H){var ue=q.scheme||K.scheme||"urn",ke=H[1].toLowerCase(),Pe=H[2],De=ue+":"+(q.nid||ke),d=it[De];K.nid=ke,K.nss=Pe,K.path=void 0,d&&(K=d.parse(K,q))}else K.error=K.error||"URN can not be parsed.";return K},serialize:function(P,q){var H=q.scheme||P.scheme||"urn",K=P.nid,ue=H+":"+(q.nid||K),ke=it[ue];ke&&(P=ke.serialize(P,q));var Pe=P,De=P.nss;return Pe.path=(K||q.nid)+":"+De,Pe}},mo=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,vn={scheme:"urn:uuid",parse:function(P,q){var H=P;return H.uuid=H.nss,H.nss=void 0,!q.tolerant&&(!H.uuid||!H.uuid.match(mo))&&(H.error=H.error||"UUID is not valid."),H},serialize:function(P,q){var H=P;return H.nss=(P.uuid||"").toLowerCase(),H}};it[W.scheme]=W,it[ne.scheme]=ne,it[Se.scheme]=Se,it[xt.scheme]=xt,it[Di.scheme]=Di,it[yn.scheme]=yn,it[vn.scheme]=vn,t.SCHEMES=it,t.pctEncChar=ft,t.pctDecChars=ct,t.parse=Ut,t.removeDotSegments=mt,t.serialize=Ct,t.resolveComponents=jr,t.resolve=Rr,t.normalize=Lr,t.equal=qr,t.escapeComponent=Br,t.unescapeComponent=nr,Object.defineProperty(t,"__esModule",{value:!0})})});var Wo=re($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getSchemaRefs=$r.resolveUrl=$r.normalizeId=$r._getFullPath=$r.getFullPath=$r.inlineRef=void 0;var I0=ut(),O0=Ko(),F0=jd(),ta=yu(),T0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function N0(t,r=!0){return typeof t=="boolean"?!0:r===!0?!vu(t):r?Ld(t)<=r:!1}$r.inlineRef=N0;var D0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function vu(t){for(let r in t){if(D0.has(r))return!0;let e=t[r];if(Array.isArray(e)&&e.some(vu)||typeof e=="object"&&vu(e))return!0}return!1}function Ld(t){let r=0;for(let e in t){if(e==="$ref")return 1/0;if(r++,!T0.has(e)&&(typeof t[e]=="object"&&I0.eachItem(t[e],n=>r+=Ld(n)),r===1/0))return 1/0}return r}function qd(t="",r){r!==!1&&(t=no(t));let e=ta.parse(t);return Bd(e)}$r.getFullPath=qd;function Bd(t){return ta.serialize(t).split("#")[0]+"#"}$r._getFullPath=Bd;var j0=/#\/?$/;function no(t){return t?t.replace(j0,""):""}$r.normalizeId=no;function R0(t,r){return r=no(r),ta.resolve(t,r)}$r.resolveUrl=R0;var L0=/^[a-z_][-a-z0-9._]*$/i;function q0(t){if(typeof t=="boolean")return{};let r=no(t.$id),e={"":r},n=qd(r,!1),i={},o=new Set;return F0(t,{allKeys:!0},(f,m,p,v)=>{if(v===void 0)return;let $=n+m,w=e[v];typeof f.$id=="string"&&(w=k.call(this,f.$id)),I.call(this,f.$anchor),I.call(this,f.$dynamicAnchor),e[m]=w;function k(j){if(j=no(w?ta.resolve(w,j):j),o.has(j))throw u(j);o.add(j);let D=this.refs[j];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?a(f,D.schema,j):j!==no($)&&(j[0]==="#"?(a(f,i[j],j),i[j]=f):this.refs[j]=$),j}function I(j){if(typeof j=="string"){if(!L0.test(j))throw new Error(`invalid anchor "${j}"`);k.call(this,`#${j}`)}}}),i;function a(f,m,p){if(m!==void 0&&!O0(f,m))throw u(p)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}$r.getSchemaRefs=q0});var Er=re(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.checkStrictMode=hn.schemaCxtHasRules=hn.subschemaCode=hn.validateFunctionCode=void 0;var Ud=yd(),Md=ro(),zd=Td(),Ne=Ie(),Ee=Jr(),B0=Wo(),Hd=ut();function M0(t){if(Wd(t)&&(Gd(t),$u(t))){U0(t);return}Kd(t,()=>Ud.topBoolOrEmptySchema(t))}hn.validateFunctionCode=M0;function Kd({gen:t,validateName:r,schema:e,schemaEnv:n,opts:i},o){i.code.es5?t.func(r,Ne._`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code(Ne._`"use strict"; ${Vd(e,i)}`),V0(t,i),t.code(o)}):t.func(r,Ne._`${Ee.default.data}, ${z0(i)}`,n.$async,()=>t.code(Vd(e,i)).code(o))}function z0(t){return Ne._`{${Ee.default.dataPath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?Ne._`, ${Ee.default.dynamicAnchors}={}`:Ne.nil}}={}`}function V0(t,r){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.dataPath,Ne._`${Ee.default.valCxt}.${Ee.default.dataPath}`),t.var(Ee.default.parentData,Ne._`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,Ne._`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,Ne._`${Ee.default.valCxt}.${Ee.default.rootData}`),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Ne._`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.dataPath,Ne._`""`),t.var(Ee.default.parentData,Ne._`undefined`),t.var(Ee.default.parentDataProperty,Ne._`undefined`),t.var(Ee.default.rootData,Ee.default.data),r.dynamicRef&&t.var(Ee.default.dynamicAnchors,Ne._`{}`)})}function U0(t){let{schema:r,opts:e,gen:n}=t;Kd(t,()=>{e.$comment&&r.$comment&&Zd(t),Q0(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),e.unevaluated&&H0(t),Qd(t),X0(t)})}function H0(t){let{gen:r,validateName:e}=t;t.evaluated=r.const("evaluated",Ne._`${e}.evaluated`),r.if(Ne._`${t.evaluated}.dynamicProps`,()=>r.assign(Ne._`${t.evaluated}.props`,Ne._`undefined`)),r.if(Ne._`${t.evaluated}.dynamicItems`,()=>r.assign(Ne._`${t.evaluated}.items`,Ne._`undefined`))}function Vd(t,r){return typeof t=="object"&&t.$id&&(r.code.source||r.code.process)?Ne._`/*# sourceURL=${t.$id} */`:Ne.nil}function K0(t,r){if(Wd(t)&&(Gd(t),$u(t))){W0(t,r);return}Ud.boolOrEmptySchema(t,r)}hn.subschemaCode=K0;function $u({schema:t,self:r}){if(typeof t=="boolean")return!t;for(let e in t)if(r.RULES.all[e])return!0;return!1}hn.schemaCxtHasRules=$u;function Wd(t){return typeof t.schema!="boolean"}function W0(t,r){let{schema:e,gen:n,opts:i}=t;i.$comment&&e.$comment&&Zd(t),Z0(t),J0(t);let o=n.const("_errs",Ee.default.errors);Qd(t,o),n.var(r,Ne._`${o} === ${Ee.default.errors}`)}function Gd(t){Hd.checkUnknownRules(t),G0(t)}function Qd(t,r){if(t.opts.jtd)return zd.schemaKeywords(t,[],!1,r);let e=Md.getSchemaTypes(t.schema),n=Md.coerceAndCheckDataType(t,e);zd.schemaKeywords(t,e,!n,r)}function G0(t){let{schema:r,errSchemaPath:e,opts:n,self:i}=t;r.$ref&&n.ignoreKeywordsWithRef&&Hd.schemaHasRulesButRef(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${e}"`)}function Q0(t){let{schema:r,opts:e}=t;r.default!==void 0&&e.useDefaults&&e.strict&&Jd(t,"default is ignored in the schema root")}function Z0(t){t.schema.$id&&(t.baseId=B0.resolveUrl(t.baseId,t.schema.$id))}function J0(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Zd({gen:t,schemaEnv:r,schema:e,errSchemaPath:n,opts:i}){let o=e.$comment;if(i.$comment===!0)t.code(Ne._`${Ee.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=Ne.str`${n}/$comment`,u=t.scopeValue("root",{ref:r.root});t.code(Ne._`${Ee.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}function X0(t){let{gen:r,schemaEnv:e,validateName:n,ValidationError:i,opts:o}=t;e.$async?r.if(Ne._`${Ee.default.errors} === 0`,()=>r.return(Ee.default.data),()=>r.throw(Ne._`new ${i}(${Ee.default.vErrors})`)):(r.assign(Ne._`${n}.errors`,Ee.default.vErrors),o.unevaluated&&Y0(t),r.return(Ne._`${Ee.default.errors} === 0`))}function Y0({gen:t,evaluated:r,props:e,items:n}){e instanceof Ne.Name&&t.assign(Ne._`${r}.props`,e),n instanceof Ne.Name&&t.assign(Ne._`${r}.items`,n)}function Jd(t,r,e=t.opts.strict){if(!!e){if(r=`strict mode: ${r}`,e===!0)throw new Error(r);t.self.logger.warn(r)}}hn.checkStrictMode=Jd});var ut=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 yt=Ie(),e1=Er();function t1(t){let r={};for(let e of t)r[e]=!0;return r}Ue.toHash=t1;function r1(t,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(Yd(t,r),!em(r,t.self.RULES.all))}Ue.alwaysValidSchema=r1;function Yd(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]||e1.checkStrictMode(t,`unknown keyword: "${o}"`)}Ue.checkUnknownRules=Yd;function em(t,r){if(typeof t=="boolean")return!t;for(let e in t)if(r[e])return!0;return!1}Ue.schemaHasRules=em;function n1(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=n1;function i1({topSchemaRef:t,schemaPath:r},e,n,i){if(!i){if(typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="string")return yt._`${e}`}return yt._`${t}${r}${yt.getProperty(n)}`}Ue.schemaRefOrVal=i1;function o1(t){return rm(decodeURIComponent(t))}Ue.unescapeFragment=o1;function s1(t){return encodeURIComponent(tm(t))}Ue.escapeFragment=s1;function tm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Ue.escapeJsonPointer=tm;function rm(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Ue.unescapeJsonPointer=rm;function a1(t,r){if(Array.isArray(t))for(let e of t)r(e);else r(t)}Ue.eachItem=a1;function Xd({mergeNames:t,mergeToName:r,mergeValues:e,resultToName:n}){return(i,o,a,u)=>{let f=a===void 0?o:a instanceof yt.Name?(o instanceof yt.Name?t(i,o,a):r(i,o,a),a):o instanceof yt.Name?(r(i,a,o),o):e(o,a);return u===yt.Name&&!(f instanceof yt.Name)?n(i,f):f}}Ue.mergeEvaluated={props:Xd({mergeNames:(t,r,e)=>t.if(yt._`${e} !== true && ${r} !== undefined`,()=>{t.if(yt._`${r} === true`,()=>t.assign(e,!0),()=>t.assign(e,yt._`${e} || {}`).code(yt._`Object.assign(${e}, ${r})`))}),mergeToName:(t,r,e)=>t.if(yt._`${e} !== true`,()=>{r===!0?t.assign(e,!0):(t.assign(e,yt._`${e} || {}`),bu(t,e,r))}),mergeValues:(t,r)=>t===!0?!0:{...t,...r},resultToName:nm}),items:Xd({mergeNames:(t,r,e)=>t.if(yt._`${e} !== true && ${r} !== undefined`,()=>t.assign(e,yt._`${r} === true ? true : ${e} > ${r} ? ${e} : ${r}`)),mergeToName:(t,r,e)=>t.if(yt._`${e} !== true`,()=>t.assign(e,r===!0?!0:yt._`${e} > ${r} ? ${e} : ${r}`)),mergeValues:(t,r)=>t===!0?!0:Math.max(t,r),resultToName:(t,r)=>t.var("items",r)})};function nm(t,r){if(r===!0)return t.var("props",!0);let e=t.var("props",yt._`{}`);return r!==void 0&&bu(t,e,r),e}Ue.evaluatedPropsToName=nm;function bu(t,r,e){Object.keys(e).forEach(n=>t.assign(yt._`${r}${yt.getProperty(n)}`,!0))}Ue.setEvaluated=bu;function l1(t,r){return t.scopeValue("func",{ref:r,code:r.code})}Ue.func=l1});var ro=re(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.reportTypeError=Bt.checkDataTypes=Bt.checkDataType=Bt.coerceAndCheckDataType=Bt.getJSONTypes=Bt.getSchemaTypes=Bt.DataType=void 0;var u1=Kl(),f1=Wl(),c1=Uo(),Ae=Ie(),im=ut(),Go;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Go=Bt.DataType||(Bt.DataType={}));function p1(t){let r=om(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}Bt.getSchemaTypes=p1;function om(t){let r=Array.isArray(t)?t:t?[t]:[];if(r.every(u1.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}Bt.getJSONTypes=om;function d1(t,r){let{gen:e,data:n,opts:i}=t,o=m1(r,i.coerceTypes),a=r.length>0&&!(o.length===0&&r.length===1&&f1.schemaHasRulesForType(t,r[0]));if(a){let u=_u(r,n,i.strict,Go.Wrong);e.if(u,()=>{o.length?h1(t,r,o):ku(t)})}return a}Bt.coerceAndCheckDataType=d1;var sm=new Set(["string","number","integer","boolean","null"]);function m1(t,r){return r?t.filter(e=>sm.has(e)||r==="array"&&e==="array"):[]}function h1(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(_u(r,i,o.strict),()=>n.assign(u,i))),n.if(Ae._`${u} !== undefined`);for(let m of e)(sm.has(m)||m==="array"&&o.coerceTypes==="array")&&f(m);n.else(),ku(t),n.endIf(),n.if(Ae._`${u} !== undefined`,()=>{n.assign(i,u),g1(t,u)});function f(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
11
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,Ae._`+${i}`);return;case"integer":n.elseIf(Ae._`${a} === "boolean" || ${i} === null
12
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 g1({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ae._`${r} !== undefined`,()=>t.assign(Ae._`${r}[${e}]`,n))}function wu(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)}}Bt.checkDataType=wu;function _u(t,r,e,n){if(t.length===1)return wu(t[0],r,e,n);let i,o=nm.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,wu(a,r,e,n));return i}Bt.checkDataTypes=_u;var y1={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=v1(t);c1.reportError(r,y1)}Bt.reportTypeError=ku;function v1(t){let{gen:r,data:e,schema:n}=t,i=nm.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Ho=re(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.getData=void 0;var sm=ro(),ra=ut(),Qo=Uo(),wt=Ie(),Cu=Jr(),$1=Pi(),xu=class{constructor(r,e,n){if(w1(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=ra.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",am(this.$data,r));else if(this.schemaCode=this.schemaValue,!b1(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",Cu.default.errors))}result(r,e,n){this.gen.if(wt.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(wt._`${e} !== undefined && (${wt.or(this.invalid$data(),r)})`)}error(r){(r?Qo.reportExtraError:Qo.reportError)(this,this.def.error)}$dataError(){Qo.reportError(this,this.def.$dataError||Qo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Qo.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=wt.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=wt.nil,e=wt.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if(wt.or(wt._`${i} === undefined`,e)),r!==wt.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==wt.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return wt.or(a(),u());function a(){if(n.length){if(!(e instanceof wt.Name))throw new Error("ajv implementation error");let f=Array.isArray(n)?n:[n];return wt._`${sm.checkDataTypes(f,e,o.opts.strict,sm.DataType.Wrong)}`}return wt.nil}function u(){if(i.validateSchema){let f=r.scopeValue("validate$data",{ref:i.validateSchema});return wt._`!${f}(${e})`}return wt.nil}}subschema(r,e){return $1.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=ra.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=ra.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,wt.Name)),!0}};Zo.default=xu;function b1(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 w1({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 _1=/^\/(?:[^~]|~0|~1)*$/,k1=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function am(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return Cu.default.rootData;if(t[0]==="/"){if(!_1.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=Cu.default.rootData}else{let m=k1.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(f("property/index",p));return n[r-p]}if(p>r)throw new Error(f("data",p));if(o=e[r-p],!i)return o}let a=o,u=i.split("/");for(let m of u)m&&(o=wt._`${o}${wt.getProperty(ra.unescapeJsonPointer(m))}`,a=wt._`${a} && ${o}`);return a;function f(m,p){return`Cannot access ${m} ${p} levels up, current level is ${r}`}}Zo.getData=am});var oa=re((io,lm)=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.MissingRefError=io.ValidationError=void 0;var Eu=Wo(),na=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};io.ValidationError=na;var ia=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=Eu.resolveUrl(r,e),this.missingSchema=Eu.normalizeId(Eu.getFullPath(this.missingRef))}};io.MissingRefError=ia;lm.exports={ValidationError:na,MissingRefError:ia}});var Pu=re(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.resolveSchema=Dr.getCompilingSchema=Dr.resolveRef=Dr.compileSchema=Dr.SchemaEnv=void 0;var Yr=Ie(),C1=oa(),Oi=Jr(),en=Wo(),um=ut(),x1=Er(),E1=yu(),oo=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={}}};Dr.SchemaEnv=oo;function Su(t){let r=fm.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:C1.ValidationError,code:Yr._`require("ajv/dist/compile/error_classes").ValidationError`}));let f=a.scopeName("validate");t.validateName=f;let m={gen:a,allErrors:this.opts.allErrors,data:Oi.default.data,parentData:Oi.default.parentData,parentDataProperty:Oi.default.parentDataProperty,dataNames:[Oi.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:f,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),x1.validateFunctionCode(m),a.optimize(this.opts.code.optimize);let v=a.toString();p=`${a.scopeRefs(Oi.default.scope)}return ${v}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let w=new Function(`${Oi.default.self}`,`${Oi.default.scope}`,p)(this,this.scope.get());if(this.scope.value(f,{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:f,validateCode:v,scopeValues:a._values}),this.opts.unevaluated){let{props:k,items:I}=m;w.evaluated={props:k instanceof Yr.Name?void 0:k,items:I instanceof Yr.Name?void 0:I,dynamicProps:k instanceof Yr.Name,dynamicItems:I instanceof Yr.Name},w.source&&(w.source.evaluated=Yr.stringify(w.evaluated))}return t.validate=w,t}catch(v){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),v}finally{this._compilations.delete(t)}}Dr.compileSchema=Su;function A1(t,r,e){var n;e=en.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=I1.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new oo({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=S1.call(this,o)}Dr.resolveRef=A1;function S1(t){return en.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Su.call(this,t)}function fm(t){for(let r of this._compilations)if(P1(r,t))return r}Dr.getCompilingSchema=fm;function P1(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function I1(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||sa.call(this,t,r)}function sa(t,r){let e=E1.parse(r),n=en._getFullPath(e),i=en.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return Au.call(this,e,t);let o=en.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=sa.call(this,t,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Au.call(this,e,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Su.call(this,a),o===en.normalizeId(r)){let{schema:u}=a;return u.$id&&(i=en.resolveUrl(i,u.$id)),new oo({schema:u,root:t,baseId:i})}return Au.call(this,e,a)}}Dr.resolveSchema=sa;var O1=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Au(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[um.unescapeFragment(a)],e===void 0))return;!O1.has(a)&&typeof e=="object"&&e.$id&&(r=en.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!um.schemaHasRulesButRef(e,this.RULES)){let a=en.resolveUrl(r,e.$ref);o=sa.call(this,n,a)}if(o=o||new oo({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var cm=re((nI,F1)=>{F1.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 gm=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 T1=Ho();Mt.KeywordCxt=T1.default;var so=Ie();Object.defineProperty(Mt,"_",{enumerable:!0,get:function(){return so._}});Object.defineProperty(Mt,"str",{enumerable:!0,get:function(){return so.str}});Object.defineProperty(Mt,"stringify",{enumerable:!0,get:function(){return so.stringify}});Object.defineProperty(Mt,"nil",{enumerable:!0,get:function(){return so.nil}});Object.defineProperty(Mt,"Name",{enumerable:!0,get:function(){return so.Name}});Object.defineProperty(Mt,"CodeGen",{enumerable:!0,get:function(){return so.CodeGen}});var Fu=oa(),N1=Kl(),Jo=Pu(),D1=Ie(),aa=Wo(),la=ro(),Ou=ut(),pm=cm(),j1=["removeAdditional","useDefaults","coerceTypes"],R1=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),L1={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."},q1={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function B1(t){var r,e,n,i,o,a,u,f,m,p,v,$;let w=(r=t.strict)!==null&&r!==void 0?r:!0,k=w?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,j=I===!0||I===void 0?1:I||0;return{strict:w,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:k,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:k,code:t.code?{...t.code,optimize:j}:{optimize:j},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:(f=t.messages)!==null&&f!==void 0?f:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(p=t.addUsedSchema)!==null&&p!==void 0?p:!0,validateSchema:(v=t.validateSchema)!==null&&v!==void 0?v:!0,validateFormats:($=t.validateFormats)!==null&&$!==void 0?$:!0}}var Xo=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...B1(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new D1.ValueScope({scope:{},prefixes:R1,es5:e,lines:n}),this.logger=K1(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=N1.getRules(),dm.call(this,L1,r,"NOT SUPPORTED"),dm.call(this,q1,r,"DEPRECATED","warn"),this._metaOpts=U1.call(this),r.formats&&z1.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&V1.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),M1.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(pm,pm.$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,v){await o.call(this,p.$schema);let $=this._addSchema(p,v);return $.validate||a.call(this,$)}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(v){if(!(v instanceof Fu.MissingRefError))throw v;return u.call(this,v),await f.call(this,v.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:v}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${v} cannot be resolved`)}async function f(p){let v=await m.call(this,p);this.refs[p]||await o.call(this,v.$schema),this.refs[p]||this.addSchema(v,p,e)}async function m(p){let v=this._loading[p];if(v)return v;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=aa.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=mm.call(this,r))=="string";)r=e;if(e===void 0){let n=new Jo.SchemaEnv({schema:{}});if(e=Jo.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=mm.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=aa.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(G1.call(this,n,e),!e)return Ou.eachItem(n,o=>Iu.call(this,o)),this;Z1.call(this,e);let i={...e,type:la.getJSONTypes(e.type),schemaType:la.getJSONTypes(e.schemaType)};return Ou.eachItem(n,i.type.length===0?o=>Iu.call(this,o,i):o=>i.type.forEach(a=>Iu.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 f=n[u];if(typeof f!="object")continue;let{$data:m}=f.definition,p=a[u];m&&p&&(a[u]=hm(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=aa.getSchemaRefs.call(this,r);o=new Jo.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):Jo.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{Jo.compileSchema.call(this,r)}finally{this.opts=e}}};Mt.default=Xo;Xo.ValidationError=Fu.ValidationError;Xo.MissingRefError=Fu.MissingRefError;function dm(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 mm(t){return t=aa.normalizeId(t),this.schemas[t]||this.refs[t]}function M1(){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 z1(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function V1(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 U1(){let t={...this.opts};for(let r of j1)delete t[r];return t}var H1={log(){},warn(){},error(){}};function K1(t){if(t===!1)return H1;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 W1=/^[a-z_$][a-z0-9_$:-]*$/i;function G1(t,r){let{RULES:e}=this;if(Ou.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!W1.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 Iu(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:f})=>f===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let u={keyword:t,definition:{...r,type:la.getJSONTypes(r.type),schemaType:la.getJSONTypes(r.schemaType)}};r.before?Q1.call(this,a,u,r.before):a.rules.push(u),o.all[t]=u,(n=r.implements)===null||n===void 0||n.forEach(f=>this.addKeyword(f))}function Q1(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 Z1(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=hm(r)),t.validateSchema=this.compile(r,!0))}var J1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function hm(t){return{anyOf:[t,J1]}}});var ym=re(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var X1={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Tu.default=X1});var wm=re(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.callRef=Fi.getValidate=void 0;var Y1=oa(),vm=Xr(),br=Ie(),ao=Jr(),$m=Pu(),ua=ut(),ew={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:f}=n;if(e==="#"||e==="#/")return p();let m=$m.resolveRef.call(f,o.root,i,e);if(m===void 0)throw new Y1.MissingRefError(i,e);if(m instanceof $m.SchemaEnv)return v(m);return $(m);function p(){if(o===o.root)return fa(t,a,o,o.$async);let w=r.scopeValue("root",{ref:o.root});return fa(t,br._`${w}.validate`,o.root,o.root.$async)}function v(w){let k=bm(t,w);fa(t,k,w,w.$async)}function $(w){let k=r.scopeValue("schema",u.code.source===!0?{ref:w,code:br.stringify(w)}:{ref:w}),I=r.name("valid"),j=t.subschema({schema:w,dataTypes:[],schemaPath:br.nil,topSchemaRef:k,errSchemaPath:e},I);t.mergeEvaluated(j),t.ok(I)}}};function bm(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):br._`${e.scopeValue("wrapper",{ref:r})}.validate`}Fi.getValidate=bm;function fa(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:u,opts:f}=o,m=f.passContext?ao.default.this:br.nil;n?p():v();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let k=i.let("valid");i.try(()=>{i.code(br._`await ${vm.callValidateCode(t,r,m)}`),w(r),a||i.assign(k,!0)},I=>{i.if(br._`!(${I} instanceof ${o.ValidationError})`,()=>i.throw(I)),$(I),a||i.assign(k,!1)}),t.ok(k)}function v(){t.result(vm.callValidateCode(t,r,m),()=>w(r),()=>$(r))}function $(k){let I=br._`${k}.errors`;i.assign(ao.default.vErrors,br._`${ao.default.vErrors} === null ? ${I} : ${ao.default.vErrors}.concat(${I})`),i.assign(ao.default.errors,br._`${ao.default.vErrors}.length`)}function w(k){var I;if(!o.opts.unevaluated)return;let j=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(o.props=ua.mergeEvaluated.props(i,j.props,o.props));else{let D=i.var("props",br._`${k}.evaluated.props`);o.props=ua.mergeEvaluated.props(i,D,o.props,br.Name)}if(o.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(o.items=ua.mergeEvaluated.items(i,j.items,o.items));else{let D=i.var("items",br._`${k}.evaluated.items`);o.items=ua.mergeEvaluated.items(i,D,o.items,br.Name)}}}Fi.callRef=fa;Fi.default=ew});var _m=re(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var tw=ym(),rw=wm(),nw=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tw.default,rw.default];Nu.default=nw});var km=re(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var ca=Ie(),Wn=ca.operators,pa={maximum:{okStr:"<=",ok:Wn.LTE,fail:Wn.GT},minimum:{okStr:">=",ok:Wn.GTE,fail:Wn.LT},exclusiveMaximum:{okStr:"<",ok:Wn.LT,fail:Wn.GTE},exclusiveMinimum:{okStr:">",ok:Wn.GT,fail:Wn.LTE}},iw={message:({keyword:t,schemaCode:r})=>ca.str`should be ${pa[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>ca._`{comparison: ${pa[t].okStr}, limit: ${r}}`},ow={keyword:Object.keys(pa),type:"number",schemaType:"number",$data:!0,error:iw,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(ca._`${e} ${pa[r].fail} ${n} || isNaN(${e})`)}};Du.default=ow});var Cm=re(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Yo=Ie(),sw={message:({schemaCode:t})=>Yo.str`should be multiple of ${t}`,params:({schemaCode:t})=>Yo._`{multipleOf: ${t}}`},aw={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sw,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),u=o?Yo._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:Yo._`${a} !== parseInt(${a})`;t.fail$data(Yo._`(${n} === 0 || (${a} = ${e}/${n}, ${u}))`)}};ju.default=aw});var xm=re(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});function lw(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}Ru.default=lw});var Em=re(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Gn=Ie(),uw=xm(),fw={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Gn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Gn._`{limit: ${t}}`},cw={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:fw,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?Gn.operators.GT:Gn.operators.LT,a;if(i.opts.unicode===!1)a=Gn._`${e}.length`;else{let u=t.gen.scopeValue("func",{ref:uw.default,code:Gn._`require("ajv/dist/compile/ucs2length").default`});a=Gn._`${u}(${e})`}t.fail$data(Gn._`${a} ${o} ${n}`)}};Lu.default=cw});var Am=re(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var pw=Xr(),da=Ie(),dw={message:({schemaCode:t})=>da.str`should match pattern "${t}"`,params:({schemaCode:t})=>da._`{pattern: ${t}}`},mw={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:dw,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?da._`(new RegExp(${o}, "u"))`:pw.usePattern(r,i);t.fail$data(da._`!${a}.test(${e})`)}};qu.default=mw});var Sm=re(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var es=Ie(),hw={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return es.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>es._`{limit: ${t}}`},gw={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:hw,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?es.operators.GT:es.operators.LT;t.fail$data(es._`Object.keys(${e}).length ${i} ${n}`)}};Bu.default=gw});var Pm=re(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var ts=Xr(),rs=Ie(),yw=Er(),vw={message:({params:{missingProperty:t}})=>rs.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>rs._`{missingProperty: ${t}}`},$w={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vw,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 f=e.length>=u.loopRequired;if(a.allErrors?m():p(),u.strictRequired){let w=t.parentSchema.properties,{definedProperties:k}=t.it;for(let I of e)if((w==null?void 0:w[I])===void 0&&!k.has(I)){let j=a.schemaEnv.baseId+a.errSchemaPath,D=`required property "${I}" is not defined at "${j}" (strictRequired)`;yw.checkStrictMode(a,D,a.opts.strictRequired)}}function m(){if(f||o)t.block$data(rs.nil,v);else for(let w of e)ts.checkReportMissingProp(t,w)}function p(){let w=r.let("missing");if(f||o){let k=r.let("valid",!0);t.block$data(k,()=>$(w,k)),t.ok(k)}else r.if(ts.checkMissingProp(t,e,w)),ts.reportMissingProp(t,w),r.else()}function v(){r.forOf("prop",n,w=>{t.setParams({missingProperty:w}),r.if(ts.noPropertyInData(r,i,w,u.ownProperties),()=>t.error())})}function $(w,k){t.setParams({missingProperty:w}),r.forOf(w,n,()=>{r.assign(k,ts.propertyInData(r,i,w,u.ownProperties)),r.if(rs.not(k),()=>{t.error(),r.break()})},rs.nil)}}};Mu.default=$w});var Im=re(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var ns=Ie(),bw={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return ns.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>ns._`{limit: ${t}}`},ww={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:bw,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?ns.operators.GT:ns.operators.LT;t.fail$data(ns._`${e}.length ${i} ${n}`)}};zu.default=ww});var Om=re(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Vu=ro(),Tt=Ie(),_w=Ko(),kw={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}}`},Cw={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:kw,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=t;if(!n&&!i)return;let f=r.let("valid"),m=o.items?Vu.getSchemaTypes(o.items):[];t.block$data(f,p,Tt._`${a} === false`),t.ok(f);function p(){let k=r.let("i",Tt._`${e}.length`),I=r.let("j");t.setParams({i:k,j:I}),r.assign(f,!0),r.if(Tt._`${k} > 1`,()=>(v()?$:w)(k,I))}function v(){return m.length>0&&!m.some(k=>k==="object"||k==="array")}function $(k,I){let j=r.name("item"),D=Vu.checkDataTypes(m,j,u.opts.strict,Vu.DataType.Wrong),Y=r.const("indices",Tt._`{}`);r.for(Tt._`;${k}--;`,()=>{r.let(j,Tt._`${e}[${k}]`),r.if(D,Tt._`continue`),m.length>1&&r.if(Tt._`typeof ${j} == "string"`,Tt._`${j} += "_"`),r.if(Tt._`typeof ${Y}[${j}] == "number"`,()=>{r.assign(I,Tt._`${Y}[${j}]`),t.error(),r.assign(f,!1).break()}).code(Tt._`${Y}[${j}] = ${k}`)})}function w(k,I){let j=t.gen.scopeValue("func",{ref:_w,code:Tt._`require("ajv/dist/compile/equal")`}),D=r.name("outer");r.label(D).for(Tt._`;${k}--;`,()=>r.for(Tt._`${I} = ${k}; ${I}--;`,()=>r.if(Tt._`${j}(${e}[${k}], ${e}[${I}])`,()=>{t.error(),r.assign(f,!1).break(D)})))}}};Uu.default=Cw});var Fm=re(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Hu=Ie(),xw=Ko(),Ew={message:"should be equal to constant",params:({schemaCode:t})=>Hu._`{allowedValue: ${t}}`},Aw={keyword:"const",$data:!0,error:Ew,code(t){let r=t.gen.scopeValue("func",{ref:xw,code:Hu._`require("ajv/dist/compile/equal")`});t.fail$data(Hu._`!${r}(${t.data}, ${t.schemaCode})`)}};Ku.default=Aw});var Tm=re(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var lo=Ie(),Sw=Ko(),Pw={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>lo._`{allowedValues: ${t}}`},Iw={keyword:"enum",schemaType:"array",$data:!0,error:Pw,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,f=t.gen.scopeValue("func",{ref:Sw,code:lo._`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 $=r.const("vSchema",o);m=lo.or(...i.map((w,k)=>v($,k)))}t.pass(m);function p(){r.assign(m,!1),r.forOf("v",o,$=>r.if(lo._`${f}(${e}, ${$})`,()=>r.assign(m,!0).break()))}function v($,w){let k=i[w];return k&&typeof k=="object"?lo._`${f}(${e}, ${$}[${w}])`:lo._`${e} === ${k}`}}};Wu.default=Iw});var Nm=re(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var Ow=km(),Fw=Cm(),Tw=Em(),Nw=Am(),Dw=Sm(),jw=Pm(),Rw=Im(),Lw=Om(),qw=Fm(),Bw=Tm(),Mw=[Ow.default,Fw.default,Tw.default,Nw.default,Dw.default,jw.default,Rw.default,Lw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qw.default,Bw.default];Gu.default=Mw});var Dm=re(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var Ti=Ie(),zw=Pi(),Vw=ut(),Uw=Er(),Hw={message:({params:{len:t}})=>Ti.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Ti._`{limit: ${t}}`},Kw={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Hw,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){Uw.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let u=r.const("len",Ti._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(Ti._`${u} <= ${a.length}`);else if(typeof e=="object"&&!Vw.alwaysValidSchema(o,e)){let m=r.var("valid",Ti._`${u} <= ${a.length}`);r.if(Ti.not(m),()=>f(m)),t.ok(m)}function f(m){r.forRange("i",a.length,u,p=>{t.subschema({keyword:"additionalItems",dataProp:p,dataPropType:zw.Type.Num},m),o.allErrors||r.if(Ti.not(m),()=>r.break())})}}};Qu.default=Kw});var Rm=re(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var jm=Ie(),Zu=ut(),Ww=Er(),Gw=Xr(),Qw={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(Gw.validateArray(t))}function i(o){let{parentSchema:a,data:u}=t;if(n.opts.strictTuples&&!Zw(o.length,a)){let p=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;Ww.checkStrictMode(n,p,n.opts.strictTuples)}let f=r.name("valid"),m=r.const("len",jm._`${u}.length`);o.forEach((p,v)=>{Zu.alwaysValidSchema(n,p)||(r.if(jm._`${m} > ${v}`,()=>t.subschema({keyword:"items",schemaProp:v,dataProp:v},f)),t.ok(f))})}}};function Zw(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Ju.default=Qw});var qm=re(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var tn=Ie(),Jw=Pi(),Xw=ut(),Lm=Er(),Yw={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}}`},e_={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Yw,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,u,{minContains:f,maxContains:m}=n;o.opts.next?(a=f===void 0?1:f,u=m):a=1;let p=r.const("len",tn._`${i}.length`);if(t.setParams({min:a,max:u}),u===void 0&&a===0){Lm.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){Lm.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(Xw.alwaysValidSchema(o,e)){let k=tn._`${p} >= ${a}`;u!==void 0&&(k=tn._`${k} && ${p} <= ${u}`),t.pass(k);return}o.items=!0;let v=r.name("valid");if(u===void 0&&a===1)$(v,()=>r.if(v,()=>r.break()));else{r.let(v,!1);let k=r.name("_valid"),I=r.let("count",0);$(k,()=>r.if(k,()=>w(I)))}t.result(v,()=>t.reset());function $(k,I){r.forRange("i",0,p,j=>{t.subschema({keyword:"contains",dataProp:j,dataPropType:Jw.Type.Num,compositeRule:!0},k),I()})}function w(k){r.code(tn._`${k}++`),u===void 0?r.if(tn._`${k} >= ${a}`,()=>r.assign(v,!0).break()):(r.if(tn._`${k} > ${u}`,()=>r.assign(v,!1).break()),a===1?r.assign(v,!0):r.if(tn._`${k} >= ${a}`,()=>r.assign(v,!0)))}}};Xu.default=e_});var zm=re(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.validateSchemaDeps=gn.validatePropertyDeps=gn.error=void 0;var Yu=Ie(),t_=ut(),is=Xr();gn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Yu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Yu._`{property: ${t},
13
+ || ${a} === "boolean" || ${i} === null`).assign(u,Ae._`[${i}]`)}}}function g1({gen:t,parentData:r,parentDataProperty:e},n){t.if(Ae._`${r} !== undefined`,()=>t.assign(Ae._`${r}[${e}]`,n))}function wu(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)}}Bt.checkDataType=wu;function _u(t,r,e,n){if(t.length===1)return wu(t[0],r,e,n);let i,o=im.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,wu(a,r,e,n));return i}Bt.checkDataTypes=_u;var y1={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=v1(t);c1.reportError(r,y1)}Bt.reportTypeError=ku;function v1(t){let{gen:r,data:e,schema:n}=t,i=im.schemaRefOrVal(t,n,"type");return{gen:r,keyword:"type",data:e,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Ho=re(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.getData=void 0;var am=ro(),ra=ut(),Qo=Uo(),wt=Ie(),Cu=Jr(),$1=Pi(),xu=class{constructor(r,e,n){if(w1(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=ra.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",lm(this.$data,r));else if(this.schemaCode=this.schemaValue,!b1(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",Cu.default.errors))}result(r,e,n){this.gen.if(wt.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(wt._`${e} !== undefined && (${wt.or(this.invalid$data(),r)})`)}error(r){(r?Qo.reportExtraError:Qo.reportError)(this,this.def.error)}$dataError(){Qo.reportError(this,this.def.$dataError||Qo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');Qo.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=wt.nil){this.gen.block(()=>{this.check$data(r,n),e()})}check$data(r=wt.nil,e=wt.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if(wt.or(wt._`${i} === undefined`,e)),r!==wt.nil&&n.assign(r,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==wt.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:e,schemaType:n,def:i,it:o}=this;return wt.or(a(),u());function a(){if(n.length){if(!(e instanceof wt.Name))throw new Error("ajv implementation error");let f=Array.isArray(n)?n:[n];return wt._`${am.checkDataTypes(f,e,o.opts.strict,am.DataType.Wrong)}`}return wt.nil}function u(){if(i.validateSchema){let f=r.scopeValue("validate$data",{ref:i.validateSchema});return wt._`!${f}(${e})`}return wt.nil}}subschema(r,e){return $1.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=ra.mergeEvaluated.props(i,r.props,n.props,e)),n.items!==!0&&r.items!==void 0&&(n.items=ra.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,wt.Name)),!0}};Zo.default=xu;function b1(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 w1({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 _1=/^\/(?:[^~]|~0|~1)*$/,k1=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function lm(t,{dataLevel:r,dataNames:e,dataPathArr:n}){let i,o;if(t==="")return Cu.default.rootData;if(t[0]==="/"){if(!_1.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=Cu.default.rootData}else{let m=k1.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(f("property/index",p));return n[r-p]}if(p>r)throw new Error(f("data",p));if(o=e[r-p],!i)return o}let a=o,u=i.split("/");for(let m of u)m&&(o=wt._`${o}${wt.getProperty(ra.unescapeJsonPointer(m))}`,a=wt._`${a} && ${o}`);return a;function f(m,p){return`Cannot access ${m} ${p} levels up, current level is ${r}`}}Zo.getData=lm});var oa=re((io,um)=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.MissingRefError=io.ValidationError=void 0;var Eu=Wo(),na=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};io.ValidationError=na;var ia=class extends Error{constructor(r,e,n){super(n||`can't resolve reference ${e} from id ${r}`),this.missingRef=Eu.resolveUrl(r,e),this.missingSchema=Eu.normalizeId(Eu.getFullPath(this.missingRef))}};io.MissingRefError=ia;um.exports={ValidationError:na,MissingRefError:ia}});var Pu=re(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.resolveSchema=Dr.getCompilingSchema=Dr.resolveRef=Dr.compileSchema=Dr.SchemaEnv=void 0;var Yr=Ie(),C1=oa(),Oi=Jr(),en=Wo(),fm=ut(),x1=Er(),E1=yu(),oo=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={}}};Dr.SchemaEnv=oo;function Su(t){let r=cm.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:C1.ValidationError,code:Yr._`require("ajv/dist/compile/error_classes").ValidationError`}));let f=a.scopeName("validate");t.validateName=f;let m={gen:a,allErrors:this.opts.allErrors,data:Oi.default.data,parentData:Oi.default.parentData,parentDataProperty:Oi.default.parentDataProperty,dataNames:[Oi.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:f,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),x1.validateFunctionCode(m),a.optimize(this.opts.code.optimize);let v=a.toString();p=`${a.scopeRefs(Oi.default.scope)}return ${v}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let w=new Function(`${Oi.default.self}`,`${Oi.default.scope}`,p)(this,this.scope.get());if(this.scope.value(f,{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:f,validateCode:v,scopeValues:a._values}),this.opts.unevaluated){let{props:k,items:I}=m;w.evaluated={props:k instanceof Yr.Name?void 0:k,items:I instanceof Yr.Name?void 0:I,dynamicProps:k instanceof Yr.Name,dynamicItems:I instanceof Yr.Name},w.source&&(w.source.evaluated=Yr.stringify(w.evaluated))}return t.validate=w,t}catch(v){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),v}finally{this._compilations.delete(t)}}Dr.compileSchema=Su;function A1(t,r,e){var n;e=en.resolveUrl(r,e);let i=t.refs[e];if(i)return i;let o=I1.call(this,t,e);if(o===void 0){let a=(n=t.localRefs)===null||n===void 0?void 0:n[e];a&&(o=new oo({schema:a,root:t,baseId:r}))}if(o!==void 0)return t.refs[e]=S1.call(this,o)}Dr.resolveRef=A1;function S1(t){return en.inlineRef(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Su.call(this,t)}function cm(t){for(let r of this._compilations)if(P1(r,t))return r}Dr.getCompilingSchema=cm;function P1(t,r){return t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId}function I1(t,r){let e;for(;typeof(e=this.refs[r])=="string";)r=e;return e||this.schemas[r]||sa.call(this,t,r)}function sa(t,r){let e=E1.parse(r),n=en._getFullPath(e),i=en.getFullPath(t.baseId);if(Object.keys(t.schema).length>0&&n===i)return Au.call(this,e,t);let o=en.normalizeId(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=sa.call(this,t,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Au.call(this,e,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Su.call(this,a),o===en.normalizeId(r)){let{schema:u}=a;return u.$id&&(i=en.resolveUrl(i,u.$id)),new oo({schema:u,root:t,baseId:i})}return Au.call(this,e,a)}}Dr.resolveSchema=sa;var O1=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Au(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[fm.unescapeFragment(a)],e===void 0))return;!O1.has(a)&&typeof e=="object"&&e.$id&&(r=en.resolveUrl(r,e.$id))}let o;if(typeof e!="boolean"&&e.$ref&&!fm.schemaHasRulesButRef(e,this.RULES)){let a=en.resolveUrl(r,e.$ref);o=sa.call(this,n,a)}if(o=o||new oo({schema:e,root:n,baseId:r}),o.schema!==o.root.schema)return o}});var pm=re((nI,F1)=>{F1.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 ym=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 T1=Ho();Mt.KeywordCxt=T1.default;var so=Ie();Object.defineProperty(Mt,"_",{enumerable:!0,get:function(){return so._}});Object.defineProperty(Mt,"str",{enumerable:!0,get:function(){return so.str}});Object.defineProperty(Mt,"stringify",{enumerable:!0,get:function(){return so.stringify}});Object.defineProperty(Mt,"nil",{enumerable:!0,get:function(){return so.nil}});Object.defineProperty(Mt,"Name",{enumerable:!0,get:function(){return so.Name}});Object.defineProperty(Mt,"CodeGen",{enumerable:!0,get:function(){return so.CodeGen}});var Fu=oa(),N1=Kl(),Jo=Pu(),D1=Ie(),aa=Wo(),la=ro(),Ou=ut(),dm=pm(),j1=["removeAdditional","useDefaults","coerceTypes"],R1=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),L1={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."},q1={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function B1(t){var r,e,n,i,o,a,u,f,m,p,v,$;let w=(r=t.strict)!==null&&r!==void 0?r:!0,k=w?"log":!1,I=(e=t.code)===null||e===void 0?void 0:e.optimize,j=I===!0||I===void 0?1:I||0;return{strict:w,strictTypes:(n=t.strictTypes)!==null&&n!==void 0?n:k,strictTuples:(i=t.strictTuples)!==null&&i!==void 0?i:k,code:t.code?{...t.code,optimize:j}:{optimize:j},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:(f=t.messages)!==null&&f!==void 0?f:!0,inlineRefs:(m=t.inlineRefs)!==null&&m!==void 0?m:!0,addUsedSchema:(p=t.addUsedSchema)!==null&&p!==void 0?p:!0,validateSchema:(v=t.validateSchema)!==null&&v!==void 0?v:!0,validateFormats:($=t.validateFormats)!==null&&$!==void 0?$:!0}}var Xo=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...B1(r)};let{es5:e,lines:n}=this.opts.code;this.scope=new D1.ValueScope({scope:{},prefixes:R1,es5:e,lines:n}),this.logger=K1(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=N1.getRules(),mm.call(this,L1,r,"NOT SUPPORTED"),mm.call(this,q1,r,"DEPRECATED","warn"),this._metaOpts=U1.call(this),r.formats&&z1.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&V1.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),M1.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:e}=this.opts;e&&r&&this.addMetaSchema(dm,dm.$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,v){await o.call(this,p.$schema);let $=this._addSchema(p,v);return $.validate||a.call(this,$)}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(v){if(!(v instanceof Fu.MissingRefError))throw v;return u.call(this,v),await f.call(this,v.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:v}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${v} cannot be resolved`)}async function f(p){let v=await m.call(this,p);this.refs[p]||await o.call(this,v.$schema),this.refs[p]||this.addSchema(v,p,e)}async function m(p){let v=this._loading[p];if(v)return v;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=aa.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=hm.call(this,r))=="string";)r=e;if(e===void 0){let n=new Jo.SchemaEnv({schema:{}});if(e=Jo.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=hm.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=aa.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(G1.call(this,n,e),!e)return Ou.eachItem(n,o=>Iu.call(this,o)),this;Z1.call(this,e);let i={...e,type:la.getJSONTypes(e.type),schemaType:la.getJSONTypes(e.schemaType)};return Ou.eachItem(n,i.type.length===0?o=>Iu.call(this,o,i):o=>i.type.forEach(a=>Iu.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 f=n[u];if(typeof f!="object")continue;let{$data:m}=f.definition,p=a[u];m&&p&&(a[u]=gm(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=aa.getSchemaRefs.call(this,r);o=new Jo.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):Jo.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{Jo.compileSchema.call(this,r)}finally{this.opts=e}}};Mt.default=Xo;Xo.ValidationError=Fu.ValidationError;Xo.MissingRefError=Fu.MissingRefError;function mm(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 hm(t){return t=aa.normalizeId(t),this.schemas[t]||this.refs[t]}function M1(){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 z1(){for(let t in this.opts.formats){let r=this.opts.formats[t];r&&this.addFormat(t,r)}}function V1(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 U1(){let t={...this.opts};for(let r of j1)delete t[r];return t}var H1={log(){},warn(){},error(){}};function K1(t){if(t===!1)return H1;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 W1=/^[a-z_$][a-z0-9_$:-]*$/i;function G1(t,r){let{RULES:e}=this;if(Ou.eachItem(t,n=>{if(e.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!W1.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 Iu(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:f})=>f===e);if(a||(a={type:e,rules:[]},o.rules.push(a)),o.keywords[t]=!0,!r)return;let u={keyword:t,definition:{...r,type:la.getJSONTypes(r.type),schemaType:la.getJSONTypes(r.schemaType)}};r.before?Q1.call(this,a,u,r.before):a.rules.push(u),o.all[t]=u,(n=r.implements)===null||n===void 0||n.forEach(f=>this.addKeyword(f))}function Q1(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 Z1(t){let{metaSchema:r}=t;r!==void 0&&(t.$data&&this.opts.$data&&(r=gm(r)),t.validateSchema=this.compile(r,!0))}var J1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gm(t){return{anyOf:[t,J1]}}});var vm=re(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var X1={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Tu.default=X1});var _m=re(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.callRef=Fi.getValidate=void 0;var Y1=oa(),$m=Xr(),br=Ie(),ao=Jr(),bm=Pu(),ua=ut(),ew={keyword:"$ref",schemaType:"string",code(t){let{gen:r,schema:e,it:n}=t,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:f}=n;if(e==="#"||e==="#/")return p();let m=bm.resolveRef.call(f,o.root,i,e);if(m===void 0)throw new Y1.MissingRefError(i,e);if(m instanceof bm.SchemaEnv)return v(m);return $(m);function p(){if(o===o.root)return fa(t,a,o,o.$async);let w=r.scopeValue("root",{ref:o.root});return fa(t,br._`${w}.validate`,o.root,o.root.$async)}function v(w){let k=wm(t,w);fa(t,k,w,w.$async)}function $(w){let k=r.scopeValue("schema",u.code.source===!0?{ref:w,code:br.stringify(w)}:{ref:w}),I=r.name("valid"),j=t.subschema({schema:w,dataTypes:[],schemaPath:br.nil,topSchemaRef:k,errSchemaPath:e},I);t.mergeEvaluated(j),t.ok(I)}}};function wm(t,r){let{gen:e}=t;return r.validate?e.scopeValue("validate",{ref:r.validate}):br._`${e.scopeValue("wrapper",{ref:r})}.validate`}Fi.getValidate=wm;function fa(t,r,e,n){let{gen:i,it:o}=t,{allErrors:a,schemaEnv:u,opts:f}=o,m=f.passContext?ao.default.this:br.nil;n?p():v();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let k=i.let("valid");i.try(()=>{i.code(br._`await ${$m.callValidateCode(t,r,m)}`),w(r),a||i.assign(k,!0)},I=>{i.if(br._`!(${I} instanceof ${o.ValidationError})`,()=>i.throw(I)),$(I),a||i.assign(k,!1)}),t.ok(k)}function v(){t.result($m.callValidateCode(t,r,m),()=>w(r),()=>$(r))}function $(k){let I=br._`${k}.errors`;i.assign(ao.default.vErrors,br._`${ao.default.vErrors} === null ? ${I} : ${ao.default.vErrors}.concat(${I})`),i.assign(ao.default.errors,br._`${ao.default.vErrors}.length`)}function w(k){var I;if(!o.opts.unevaluated)return;let j=(I=e==null?void 0:e.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(o.props=ua.mergeEvaluated.props(i,j.props,o.props));else{let D=i.var("props",br._`${k}.evaluated.props`);o.props=ua.mergeEvaluated.props(i,D,o.props,br.Name)}if(o.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(o.items=ua.mergeEvaluated.items(i,j.items,o.items));else{let D=i.var("items",br._`${k}.evaluated.items`);o.items=ua.mergeEvaluated.items(i,D,o.items,br.Name)}}}Fi.callRef=fa;Fi.default=ew});var km=re(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var tw=vm(),rw=_m(),nw=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tw.default,rw.default];Nu.default=nw});var Cm=re(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var ca=Ie(),Wn=ca.operators,pa={maximum:{okStr:"<=",ok:Wn.LTE,fail:Wn.GT},minimum:{okStr:">=",ok:Wn.GTE,fail:Wn.LT},exclusiveMaximum:{okStr:"<",ok:Wn.LT,fail:Wn.GTE},exclusiveMinimum:{okStr:">",ok:Wn.GT,fail:Wn.LTE}},iw={message:({keyword:t,schemaCode:r})=>ca.str`should be ${pa[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>ca._`{comparison: ${pa[t].okStr}, limit: ${r}}`},ow={keyword:Object.keys(pa),type:"number",schemaType:"number",$data:!0,error:iw,code(t){let{keyword:r,data:e,schemaCode:n}=t;t.fail$data(ca._`${e} ${pa[r].fail} ${n} || isNaN(${e})`)}};Du.default=ow});var xm=re(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Yo=Ie(),sw={message:({schemaCode:t})=>Yo.str`should be multiple of ${t}`,params:({schemaCode:t})=>Yo._`{multipleOf: ${t}}`},aw={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sw,code(t){let{gen:r,data:e,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,a=r.let("res"),u=o?Yo._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:Yo._`${a} !== parseInt(${a})`;t.fail$data(Yo._`(${n} === 0 || (${a} = ${e}/${n}, ${u}))`)}};ju.default=aw});var Em=re(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});function lw(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}Ru.default=lw});var Am=re(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Gn=Ie(),uw=Em(),fw={message({keyword:t,schemaCode:r}){let e=t==="maxLength"?"more":"fewer";return Gn.str`should NOT have ${e} than ${r} characters`},params:({schemaCode:t})=>Gn._`{limit: ${t}}`},cw={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:fw,code(t){let{keyword:r,data:e,schemaCode:n,it:i}=t,o=r==="maxLength"?Gn.operators.GT:Gn.operators.LT,a;if(i.opts.unicode===!1)a=Gn._`${e}.length`;else{let u=t.gen.scopeValue("func",{ref:uw.default,code:Gn._`require("ajv/dist/compile/ucs2length").default`});a=Gn._`${u}(${e})`}t.fail$data(Gn._`${a} ${o} ${n}`)}};Lu.default=cw});var Sm=re(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var pw=Xr(),da=Ie(),dw={message:({schemaCode:t})=>da.str`should match pattern "${t}"`,params:({schemaCode:t})=>da._`{pattern: ${t}}`},mw={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:dw,code(t){let{gen:r,data:e,$data:n,schema:i,schemaCode:o}=t,a=n?da._`(new RegExp(${o}, "u"))`:pw.usePattern(r,i);t.fail$data(da._`!${a}.test(${e})`)}};qu.default=mw});var Pm=re(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var es=Ie(),hw={message({keyword:t,schemaCode:r}){let e=t==="maxProperties"?"more":"fewer";return es.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>es._`{limit: ${t}}`},gw={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:hw,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxProperties"?es.operators.GT:es.operators.LT;t.fail$data(es._`Object.keys(${e}).length ${i} ${n}`)}};Bu.default=gw});var Im=re(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var ts=Xr(),rs=Ie(),yw=Er(),vw={message:({params:{missingProperty:t}})=>rs.str`should have required property '${t}'`,params:({params:{missingProperty:t}})=>rs._`{missingProperty: ${t}}`},$w={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vw,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 f=e.length>=u.loopRequired;if(a.allErrors?m():p(),u.strictRequired){let w=t.parentSchema.properties,{definedProperties:k}=t.it;for(let I of e)if((w==null?void 0:w[I])===void 0&&!k.has(I)){let j=a.schemaEnv.baseId+a.errSchemaPath,D=`required property "${I}" is not defined at "${j}" (strictRequired)`;yw.checkStrictMode(a,D,a.opts.strictRequired)}}function m(){if(f||o)t.block$data(rs.nil,v);else for(let w of e)ts.checkReportMissingProp(t,w)}function p(){let w=r.let("missing");if(f||o){let k=r.let("valid",!0);t.block$data(k,()=>$(w,k)),t.ok(k)}else r.if(ts.checkMissingProp(t,e,w)),ts.reportMissingProp(t,w),r.else()}function v(){r.forOf("prop",n,w=>{t.setParams({missingProperty:w}),r.if(ts.noPropertyInData(r,i,w,u.ownProperties),()=>t.error())})}function $(w,k){t.setParams({missingProperty:w}),r.forOf(w,n,()=>{r.assign(k,ts.propertyInData(r,i,w,u.ownProperties)),r.if(rs.not(k),()=>{t.error(),r.break()})},rs.nil)}}};Mu.default=$w});var Om=re(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var ns=Ie(),bw={message({keyword:t,schemaCode:r}){let e=t==="maxItems"?"more":"fewer";return ns.str`should NOT have ${e} than ${r} items`},params:({schemaCode:t})=>ns._`{limit: ${t}}`},ww={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:bw,code(t){let{keyword:r,data:e,schemaCode:n}=t,i=r==="maxItems"?ns.operators.GT:ns.operators.LT;t.fail$data(ns._`${e}.length ${i} ${n}`)}};zu.default=ww});var Fm=re(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Vu=ro(),Tt=Ie(),_w=Ko(),kw={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}}`},Cw={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:kw,code(t){let{gen:r,data:e,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=t;if(!n&&!i)return;let f=r.let("valid"),m=o.items?Vu.getSchemaTypes(o.items):[];t.block$data(f,p,Tt._`${a} === false`),t.ok(f);function p(){let k=r.let("i",Tt._`${e}.length`),I=r.let("j");t.setParams({i:k,j:I}),r.assign(f,!0),r.if(Tt._`${k} > 1`,()=>(v()?$:w)(k,I))}function v(){return m.length>0&&!m.some(k=>k==="object"||k==="array")}function $(k,I){let j=r.name("item"),D=Vu.checkDataTypes(m,j,u.opts.strict,Vu.DataType.Wrong),Y=r.const("indices",Tt._`{}`);r.for(Tt._`;${k}--;`,()=>{r.let(j,Tt._`${e}[${k}]`),r.if(D,Tt._`continue`),m.length>1&&r.if(Tt._`typeof ${j} == "string"`,Tt._`${j} += "_"`),r.if(Tt._`typeof ${Y}[${j}] == "number"`,()=>{r.assign(I,Tt._`${Y}[${j}]`),t.error(),r.assign(f,!1).break()}).code(Tt._`${Y}[${j}] = ${k}`)})}function w(k,I){let j=t.gen.scopeValue("func",{ref:_w,code:Tt._`require("ajv/dist/compile/equal")`}),D=r.name("outer");r.label(D).for(Tt._`;${k}--;`,()=>r.for(Tt._`${I} = ${k}; ${I}--;`,()=>r.if(Tt._`${j}(${e}[${k}], ${e}[${I}])`,()=>{t.error(),r.assign(f,!1).break(D)})))}}};Uu.default=Cw});var Tm=re(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Hu=Ie(),xw=Ko(),Ew={message:"should be equal to constant",params:({schemaCode:t})=>Hu._`{allowedValue: ${t}}`},Aw={keyword:"const",$data:!0,error:Ew,code(t){let r=t.gen.scopeValue("func",{ref:xw,code:Hu._`require("ajv/dist/compile/equal")`});t.fail$data(Hu._`!${r}(${t.data}, ${t.schemaCode})`)}};Ku.default=Aw});var Nm=re(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var lo=Ie(),Sw=Ko(),Pw={message:"should be equal to one of the allowed values",params:({schemaCode:t})=>lo._`{allowedValues: ${t}}`},Iw={keyword:"enum",schemaType:"array",$data:!0,error:Pw,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,f=t.gen.scopeValue("func",{ref:Sw,code:lo._`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 $=r.const("vSchema",o);m=lo.or(...i.map((w,k)=>v($,k)))}t.pass(m);function p(){r.assign(m,!1),r.forOf("v",o,$=>r.if(lo._`${f}(${e}, ${$})`,()=>r.assign(m,!0).break()))}function v($,w){let k=i[w];return k&&typeof k=="object"?lo._`${f}(${e}, ${$}[${w}])`:lo._`${e} === ${k}`}}};Wu.default=Iw});var Dm=re(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var Ow=Cm(),Fw=xm(),Tw=Am(),Nw=Sm(),Dw=Pm(),jw=Im(),Rw=Om(),Lw=Fm(),qw=Tm(),Bw=Nm(),Mw=[Ow.default,Fw.default,Tw.default,Nw.default,Dw.default,jw.default,Rw.default,Lw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qw.default,Bw.default];Gu.default=Mw});var jm=re(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var Ti=Ie(),zw=Pi(),Vw=ut(),Uw=Er(),Hw={message:({params:{len:t}})=>Ti.str`should NOT have more than ${t} items`,params:({params:{len:t}})=>Ti._`{limit: ${t}}`},Kw={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Hw,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,{items:a}=n;if(!Array.isArray(a)){Uw.checkStrictMode(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}o.items=!0;let u=r.const("len",Ti._`${i}.length`);if(e===!1)t.setParams({len:a.length}),t.pass(Ti._`${u} <= ${a.length}`);else if(typeof e=="object"&&!Vw.alwaysValidSchema(o,e)){let m=r.var("valid",Ti._`${u} <= ${a.length}`);r.if(Ti.not(m),()=>f(m)),t.ok(m)}function f(m){r.forRange("i",a.length,u,p=>{t.subschema({keyword:"additionalItems",dataProp:p,dataPropType:zw.Type.Num},m),o.allErrors||r.if(Ti.not(m),()=>r.break())})}}};Qu.default=Kw});var Lm=re(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var Rm=Ie(),Zu=ut(),Ww=Er(),Gw=Xr(),Qw={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(Gw.validateArray(t))}function i(o){let{parentSchema:a,data:u}=t;if(n.opts.strictTuples&&!Zw(o.length,a)){let p=`"items" is ${o.length}-tuple, but minItems or maxItems/additionalItems are not specified or different`;Ww.checkStrictMode(n,p,n.opts.strictTuples)}let f=r.name("valid"),m=r.const("len",Rm._`${u}.length`);o.forEach((p,v)=>{Zu.alwaysValidSchema(n,p)||(r.if(Rm._`${m} > ${v}`,()=>t.subschema({keyword:"items",schemaProp:v,dataProp:v},f)),t.ok(f))})}}};function Zw(t,r){return t===r.minItems&&(t===r.maxItems||r.additionalItems===!1)}Ju.default=Qw});var Bm=re(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var tn=Ie(),Jw=Pi(),Xw=ut(),qm=Er(),Yw={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}}`},e_={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Yw,code(t){let{gen:r,schema:e,parentSchema:n,data:i,it:o}=t,a,u,{minContains:f,maxContains:m}=n;o.opts.next?(a=f===void 0?1:f,u=m):a=1;let p=r.const("len",tn._`${i}.length`);if(t.setParams({min:a,max:u}),u===void 0&&a===0){qm.checkStrictMode(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){qm.checkStrictMode(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if(Xw.alwaysValidSchema(o,e)){let k=tn._`${p} >= ${a}`;u!==void 0&&(k=tn._`${k} && ${p} <= ${u}`),t.pass(k);return}o.items=!0;let v=r.name("valid");if(u===void 0&&a===1)$(v,()=>r.if(v,()=>r.break()));else{r.let(v,!1);let k=r.name("_valid"),I=r.let("count",0);$(k,()=>r.if(k,()=>w(I)))}t.result(v,()=>t.reset());function $(k,I){r.forRange("i",0,p,j=>{t.subschema({keyword:"contains",dataProp:j,dataPropType:Jw.Type.Num,compositeRule:!0},k),I()})}function w(k){r.code(tn._`${k}++`),u===void 0?r.if(tn._`${k} >= ${a}`,()=>r.assign(v,!0).break()):(r.if(tn._`${k} > ${u}`,()=>r.assign(v,!1).break()),a===1?r.assign(v,!0):r.if(tn._`${k} >= ${a}`,()=>r.assign(v,!0)))}}};Xu.default=e_});var Vm=re(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.validateSchemaDeps=gn.validatePropertyDeps=gn.error=void 0;var Yu=Ie(),t_=ut(),is=Xr();gn.error={message:({params:{property:t,depsCount:r,deps:e}})=>{let n=r===1?"property":"properties";return Yu.str`should have ${n} ${e} when property ${t} is present`},params:({params:{property:t,depsCount:r,deps:e,missingProperty:n}})=>Yu._`{property: ${t},
14
14
  missingProperty: ${n},
15
15
  depsCount: ${r},
16
- deps: ${e}}`};var r_={keyword:"dependencies",type:"object",schemaType:"object",error:gn.error,code(t){let[r,e]=n_(t);Bm(t,r),Mm(t,e)}};function n_({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 Bm(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 f=is.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?e.if(f,()=>{for(let m of u)is.checkReportMissingProp(t,m)}):(e.if(Yu._`${f} && (${is.checkMissingProp(t,u,o)})`),is.reportMissingProp(t,o),e.else())}}gn.validatePropertyDeps=Bm;function Mm(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let u in r)t_.alwaysValidSchema(o,r[u])||(e.if(is.propertyInData(e,n,u,o.opts.ownProperties),()=>{let f=t.subschema({keyword:i,schemaProp:u},a);t.mergeValidEvaluated(f,a)},()=>e.var(a,!0)),t.ok(a))}gn.validateSchemaDeps=Mm;gn.default=r_});var Vm=re(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var ef=Ie(),i_=ut(),o_={message:({params:t})=>ef.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>ef._`{propertyName: ${t.propertyName}}`},s_={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:o_,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(i_.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(ef.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};tf.default=s_});var of=re(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var ma=Xr(),rn=Ie(),a_=Jr(),l_=Pi(),rf=ut(),u_={message:"should NOT have additional properties",params:({params:t})=>rn._`{additionalProperty: ${t.additionalProperty}}`},f_={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:u_,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:f}=a;if(a.props=!0,f.removeAdditional!=="all"&&rf.alwaysValidSchema(a,e))return;let m=ma.allSchemaProperties(n.properties),p=ma.allSchemaProperties(n.patternProperties);v(),t.ok(rn._`${o} === ${a_.default.errors}`);function v(){r.forIn("key",i,j=>{!m.length&&!p.length?k(j):r.if($(j),()=>k(j))})}function $(j){let D;if(m.length>8){let Y=rf.schemaRefOrVal(a,n.properties,"properties");D=ma.isOwnProperty(r,Y,j)}else m.length?D=rn.or(...m.map(Y=>rn._`${j} === ${Y}`)):D=rn.nil;return p.length&&(D=rn.or(D,...p.map(Y=>rn._`${ma.usePattern(r,Y)}.test(${j})`))),rn.not(D)}function w(j){r.code(rn._`delete ${i}[${j}]`)}function k(j){if(f.removeAdditional==="all"||f.removeAdditional&&e===!1){w(j);return}if(e===!1){t.setParams({additionalProperty:j}),t.error(),u||r.break();return}if(typeof e=="object"&&!rf.alwaysValidSchema(a,e)){let D=r.name("valid");f.removeAdditional==="failing"?(I(j,D,!1),r.if(rn.not(D),()=>{t.reset(),w(j)})):(I(j,D),u||r.if(rn.not(D),()=>r.break()))}}function I(j,D,Y){let ee={keyword:"additionalProperties",dataProp:j,dataPropType:l_.Type.Str};Y===!1&&Object.assign(ee,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(ee,D)}}};nf.default=f_});var Km=re(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var c_=Ho(),Um=Xr(),sf=ut(),Hm=of(),p_={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&&Hm.default.code(new c_.default(o,Hm.default,"additionalProperties"));let a=Um.allSchemaProperties(e);for(let v of a)o.definedProperties.add(v);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=sf.mergeEvaluated.props(r,sf.toHash(a),o.props));let u=a.filter(v=>!sf.alwaysValidSchema(o,e[v]));if(u.length===0)return;let f=r.name("valid");for(let v of u)m(v)?p(v):(r.if(Um.propertyInData(r,i,v,o.opts.ownProperties)),p(v),o.allErrors||r.else().var(f,!0),r.endIf()),t.it.definedProperties.add(v),t.ok(f);function m(v){return o.opts.useDefaults&&!o.compositeRule&&e[v].default!==void 0}function p(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},f)}}};af.default=p_});var Gm=re(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var Wm=Xr(),ha=Ie(),d_=Pi(),m_=Er(),h_=ut(),g_={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,u=Wm.schemaProperties(o,e);if(u.length===0)return;let f=a.strict&&!a.allowMatchingProperties&&i.properties,m=r.name("valid");o.props!==!0&&!(o.props instanceof ha.Name)&&(o.props=h_.evaluatedPropsToName(r,o.props));let{props:p}=o;v();function v(){for(let k of u)f&&$(k),o.allErrors?w(k):(r.var(m,!0),w(k),r.if(m))}function $(k){for(let I in f)new RegExp(k).test(I)&&m_.checkStrictMode(o,`property ${I} matches pattern ${k} (use allowMatchingProperties)`)}function w(k){r.forIn("key",n,I=>{r.if(ha._`${Wm.usePattern(r,k)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:k,dataProp:I,dataPropType:d_.Type.Str},m),o.opts.unevaluated&&p!==!0?r.assign(ha._`${p}[${I}]`,!0):o.allErrors||r.if(ha.not(m),()=>r.break())})})}}};lf.default=g_});var Qm=re(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var y_=ut(),v_={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(y_.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"}};uf.default=v_});var Zm=re(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var $_=Xr(),b_={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$_.validateUnion,error:{message:"should match some schema in anyOf"}};ff.default=b_});var Jm=re(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var ga=Ie(),w_=ut(),__={message:"should match exactly one schema in oneOf",params:({params:t})=>ga._`{passingSchemas: ${t.passing}}`},k_={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:__,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(f),t.result(o,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((m,p)=>{let v;w_.alwaysValidSchema(n,m)?r.var(u,!0):v=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&r.if(ga._`${u} && ${o}`).assign(o,!1).assign(a,ga._`[${a}, ${p}]`).else(),r.if(u,()=>{r.assign(o,!0),r.assign(a,p),v&&t.mergeEvaluated(v,ga.Name)})})}}};cf.default=k_});var Xm=re(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var C_=ut(),x_={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(C_.alwaysValidSchema(n,o))return;let u=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(u)})}};pf.default=x_});var eh=re(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var ya=Ie(),E_=ut(),A_=Er(),S_={message:({params:t})=>ya.str`should match "${t.ifClause}" schema`,params:({params:t})=>ya._`{failingKeyword: ${t.ifClause}}`},P_={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:S_,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&A_.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=Ym(n,"then"),o=Ym(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),u=r.name("_valid");if(f(),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(ya.not(u),m("else"));t.pass(a,()=>t.error(!0));function f(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(p)}function m(p,v){return()=>{let $=t.subschema({keyword:p},u);r.assign(a,u),t.mergeValidEvaluated($,a),v?r.assign(v,ya._`${p}`):t.setParams({ifClause:p})}}}};function Ym(t,r){let e=t.schema[r];return e!==void 0&&!E_.alwaysValidSchema(t,e)}df.default=P_});var th=re(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var I_=Er(),O_={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&I_.checkStrictMode(e,`"${t}" without "if" is ignored`)}};mf.default=O_});var rh=re(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var F_=Dm(),T_=Rm(),N_=qm(),D_=zm(),j_=Vm(),R_=of(),L_=Km(),q_=Gm(),B_=Qm(),M_=Zm(),z_=Jm(),V_=Xm(),U_=eh(),H_=th(),K_=[B_.default,M_.default,z_.default,V_.default,U_.default,H_.default,F_.default,T_.default,N_.default,j_.default,R_.default,D_.default,L_.default,q_.default];hf.default=K_});var nh=re(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var _t=Ie(),W_={message:({schemaCode:t})=>_t.str`should match format "${t}"`,params:({schemaCode:t})=>_t._`{format: ${t}}`},G_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:W_,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:u}=t,{opts:f,errSchemaPath:m,schemaEnv:p,self:v}=u;if(!f.validateFormats)return;i?$():w();function $(){let k=e.scopeValue("formats",{ref:v.formats,code:f.code.formats}),I=e.const("fDef",_t._`${k}[${a}]`),j=e.let("fType"),D=e.let("format");e.if(_t._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(j,_t._`${I}.type || "string"`).assign(D,_t._`${I}.validate`),()=>e.assign(j,_t._`"string"`).assign(D,I)),t.fail$data(_t.or(Y(),ee()));function Y(){return f.strict===!1?_t.nil:_t._`${a} && !${D}`}function ee(){let de=p.$async?_t._`(${I}.async ? await ${D}(${n}) : ${D}(${n}))`:_t._`${D}(${n})`,ce=_t._`(typeof ${D} == "function" ? ${de} : ${D}.test(${n}))`;return _t._`${D} && ${D} !== true && ${j} === ${r} && !${ce}`}}function w(){let k=v.formats[o];if(!k){Y();return}if(k===!0)return;let[I,j,D]=ee(k);I===r&&t.pass(de());function Y(){if(f.strict===!1){v.logger.warn(ce());return}throw new Error(ce());function ce(){return`unknown format "${o}" ignored in schema at path "${m}"`}}function ee(ce){let Q=e.scopeValue("formats",{key:o,ref:ce,code:f.code.formats?_t._`${f.code.formats}${_t.getProperty(o)}`:void 0});return typeof ce=="object"&&!(ce instanceof RegExp)?[ce.type||"string",ce.validate,_t._`${Q}.validate`]:["string",ce,Q]}function de(){if(typeof k=="object"&&!(k instanceof RegExp)&&k.async){if(!p.$async)throw new Error("async format in sync schema");return _t._`await ${D}(${n})`}return typeof j=="function"?_t._`${D}(${n})`:_t._`${D}.test(${n})`}}}};gf.default=G_});var ih=re(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var Q_=nh(),Z_=[Q_.default];yf.default=Z_});var oh=re(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.contentVocabulary=uo.metadataVocabulary=void 0;uo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];uo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ah=re(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var J_=_m(),X_=Nm(),Y_=rh(),ek=ih(),sh=oh(),tk=[J_.default,X_.default,Y_.default,ek.default,sh.metadataVocabulary,sh.contentVocabulary];vf.default=tk});var lh=re((qI,rk)=>{rk.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 fh=re(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.CodeGen=zt.Name=zt.nil=zt.stringify=zt.str=zt._=zt.KeywordCxt=void 0;var nk=Ho();zt.KeywordCxt=nk.default;var fo=Ie();Object.defineProperty(zt,"_",{enumerable:!0,get:function(){return fo._}});Object.defineProperty(zt,"str",{enumerable:!0,get:function(){return fo.str}});Object.defineProperty(zt,"stringify",{enumerable:!0,get:function(){return fo.stringify}});Object.defineProperty(zt,"nil",{enumerable:!0,get:function(){return fo.nil}});Object.defineProperty(zt,"Name",{enumerable:!0,get:function(){return fo.Name}});Object.defineProperty(zt,"CodeGen",{enumerable:!0,get:function(){return fo.CodeGen}});var ik=gm(),ok=ah(),uh=lh(),sk=["/properties"],va="http://json-schema.org/draft-07/schema",$f=class extends ik.default{_addVocabularies(){super._addVocabularies(),ok.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(uh,sk):uh;this.addMetaSchema(r,va,!1),this.refs["http://json-schema.org/schema"]=va}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(va)?va:void 0)}};zt.default=$f});var ph=re((MI,ch)=>{var ak=Object.prototype.hasOwnProperty,lk=Object.prototype.toString;ch.exports=function(r,e,n){if(lk.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)ak.call(r,a)&&e.call(n,r[a],a,r)}});var mh=re((zI,dh)=>{"use strict";var uk=ph();dh.exports=et;function et(t,r,e){if(arguments.length===3)return et.set(t,r,e);if(arguments.length===2)return et.get(t,r);var n=et.bind(et,t);for(var i in et)et.hasOwnProperty(i)&&(n[i]=et[i].bind(n,t));return n}et.get=function(r,e){for(var n=Array.isArray(e)?e:et.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};et.set=function(r,e,n){var i=Array.isArray(e)?e:et.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};et.remove=function(t,r){var e=Array.isArray(r)?r:et.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=et.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]};et.dict=function(r,e){var n={};return et.walk(r,function(i,o){n[o]=i},e),n};et.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){uk(a,function(u,f){i.push(String(f)),n(u)?o(u):e(u,et.compile(i)),i.pop()})}(r)};et.has=function(r,e){try{et.get(r,e)}catch{return!1}return!0};et.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};et.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};et.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(et.unescape)};et.compile=function(r){return r.length===0?"":"/"+r.map(et.escape).join("/")}});var hh=re((VI,fk)=>{fk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var gh=re((UI,ck)=>{ck.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 yh=re((HI,pk)=>{pk.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 vh=re($a=>{$a.Test=hh();$a.AstTree=gh();$a.PodliteDocument=yh()});function Ra(t){if(t)throw t}var nc=fn(Df(),1),Ha=fn(Uf(),1);function _o(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 Hf(){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(f,...m){let p=t[++o],v=-1;if(f){a(f);return}for(;++v<i.length;)(m[v]===null||m[v]===void 0)&&(m[v]=i[v]);i=m,p?lg(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 lg(t,r){let e;return n;function n(...a){let u=t.length>a.length,f;u&&a.push(i);try{f=t.apply(this,a)}catch(m){let p=m;if(u&&e)throw p;return i(p)}u||(f instanceof Promise?f.then(o,i):f instanceof Error?i(f):o(f))}function i(a,...u){e||(e=!0,r(a,...u))}function o(a){i(null,a)}}var Yf=fn(Wf(),1);function ai(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Gf(t.position):"start"in t||"end"in t?Gf(t):"line"in t||"column"in t?La(t):""}function La(t){return Qf(t&&t.line)+":"+Qf(t&&t.column)}function Gf(t){return La(t&&t.start)+"-"+La(t&&t.end)}function Qf(t){return t&&typeof t=="number"?t:1}var ar=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=ai(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}};ar.prototype.file="";ar.prototype.name="";ar.prototype.reason="";ar.prototype.message="";ar.prototype.stack="";ar.prototype.fatal=null;ar.prototype.column=null;ar.prototype.line=null;ar.prototype.source=null;ar.prototype.ruleId=null;ar.prototype.position=null;var Gr={basename:ug,dirname:fg,extname:cg,join:pg,sep:"/"};function ug(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ko(t);let e=0,n=-1,i=t.length,o;if(r===void 0||r.length===0||r.length>t.length){for(;i--;)if(t.charCodeAt(i)===47){if(o){e=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":t.slice(e,n)}if(r===t)return"";let a=-1,u=r.length-1;for(;i--;)if(t.charCodeAt(i)===47){if(o){e=i+1;break}}else a<0&&(o=!0,a=i+1),u>-1&&(t.charCodeAt(i)===r.charCodeAt(u--)?u<0&&(n=i):(u=-1,n=a));return e===n?n=a:n<0&&(n=t.length),t.slice(e,n)}function fg(t){if(ko(t),t.length===0)return".";let r=-1,e=t.length,n;for(;--e;)if(t.charCodeAt(e)===47){if(n){r=e;break}}else n||(n=!0);return r<0?t.charCodeAt(0)===47?"/":".":r===1&&t.charCodeAt(0)===47?"//":t.slice(0,r)}function cg(t){ko(t);let r=t.length,e=-1,n=0,i=-1,o=0,a;for(;r--;){let u=t.charCodeAt(r);if(u===47){if(a){n=r+1;break}continue}e<0&&(a=!0,e=r+1),u===46?i<0?i=r:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||e<0||o===0||o===1&&i===e-1&&i===n+1?"":t.slice(i,e)}function pg(...t){let r=-1,e;for(;++r<t.length;)ko(t[r]),t[r]&&(e=e===void 0?t[r]:e+"/"+t[r]);return e===void 0?".":dg(e)}function dg(t){ko(t);let r=t.charCodeAt(0)===47,e=mg(t,!r);return e.length===0&&!r&&(e="."),e.length>0&&t.charCodeAt(t.length-1)===47&&(e+="/"),r?"/"+e:e}function mg(t,r){let e="",n=0,i=-1,o=0,a=-1,u,f;for(;++a<=t.length;){if(a<t.length)u=t.charCodeAt(a);else{if(u===47)break;u=47}if(u===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(e.length<2||n!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){if(f=e.lastIndexOf("/"),f!==e.length-1){f<0?(e="",n=0):(e=e.slice(0,f),n=e.length-1-e.lastIndexOf("/")),i=a,o=0;continue}}else if(e.length>0){e="",n=0,i=a,o=0;continue}}r&&(e=e.length>0?e+"/..":"..",n=2)}else e.length>0?e+="/"+t.slice(i+1,a):e=t.slice(i+1,a),n=a-i-1;i=a,o=0}else u===46&&o>-1?o++:o=-1}return e}function ko(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var Zf={cwd:hg};function hg(){return"/"}function Ki(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function Jf(t){if(typeof t=="string")t=new URL(t);else if(!Ki(t)){let r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){let r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return gg(t)}function gg(t){if(t.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let r=t.pathname,e=-1;for(;++e<r.length;)if(r.charCodeAt(e)===37&&r.charCodeAt(e+1)===50){let n=r.charCodeAt(e+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(r)}var qa=["history","path","basename","stem","extname","dirname"],Co=class{constructor(r){let e;r?typeof r=="string"||(0,Yf.default)(r)?e={value:r}:Ki(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Zf.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<qa.length;){let o=qa[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)qa.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){Ki(r)&&(r=Jf(r)),Ma(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Gr.dirname(this.path):void 0}set dirname(r){Xf(this.basename,"dirname"),this.path=Gr.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Gr.basename(this.path):void 0}set basename(r){Ma(r,"basename"),Ba(r,"basename"),this.path=Gr.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Gr.extname(this.path):void 0}set extname(r){if(Ba(r,"extname"),Xf(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=Gr.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Gr.basename(this.path,this.extname):void 0}set stem(r){Ma(r,"stem"),Ba(r,"stem"),this.path=Gr.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new ar(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 Ba(t,r){if(t&&t.includes(Gr.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Gr.sep+"`")}function Ma(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Xf(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Ka=oc().freeze(),ic={}.hasOwnProperty;function oc(){let t=Hf(),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=f,o.parse=m,o.stringify=p,o.run=v,o.runSync=$,o.process=w,o.processSync=k,o;function o(){let I=oc(),j=-1;for(;++j<r.length;)I.use(...r[j]);return I.data((0,Ha.default)(!0,{},e)),I}function a(I,j){return typeof I=="string"?arguments.length===2?(Ua("data",n),e[I]=j,o):ic.call(e,I)&&e[I]||null:I?(Ua("data",n),e=I,o):e}function u(){if(n)return o;for(;++i<r.length;){let[I,...j]=r[i];if(j[0]===!1)continue;j[0]===!0&&(j[0]=void 0);let D=I.call(o,...j);typeof D=="function"&&t.use(D)}return n=!0,i=Number.POSITIVE_INFINITY,o}function f(I,...j){let D;if(Ua("use",n),I!=null)if(typeof I=="function")ce(I,...j);else if(typeof I=="object")Array.isArray(I)?de(I):ee(I);else throw new TypeError("Expected usable value, not `"+I+"`");return D&&(e.settings=Object.assign(e.settings||{},D)),o;function Y(Q){if(typeof Q=="function")ce(Q);else if(typeof Q=="object")if(Array.isArray(Q)){let[me,...we]=Q;ce(me,...we)}else ee(Q);else throw new TypeError("Expected usable value, not `"+Q+"`")}function ee(Q){de(Q.plugins),Q.settings&&(D=Object.assign(D||{},Q.settings))}function de(Q){let me=-1;if(Q!=null)if(Array.isArray(Q))for(;++me<Q.length;){let we=Q[me];Y(we)}else throw new TypeError("Expected a list of plugins, not `"+Q+"`")}function ce(Q,me){let we=-1,_e;for(;++we<r.length;)if(r[we][0]===Q){_e=r[we];break}_e?(_o(_e[1])&&_o(me)&&(me=(0,Ha.default)(!0,_e[1],me)),_e[1]=me):r.push([...arguments])}}function m(I){o.freeze();let j=xo(I),D=o.Parser;return za("parse",D),ec(D,"parse")?new D(String(j),j).parse():D(String(j),j)}function p(I,j){o.freeze();let D=xo(j),Y=o.Compiler;return Va("stringify",Y),tc(I),ec(Y,"compile")?new Y(I,D).compile():Y(I,D)}function v(I,j,D){if(tc(I),o.freeze(),!D&&typeof j=="function"&&(D=j,j=void 0),!D)return new Promise(Y);Y(null,D);function Y(ee,de){t.run(I,xo(j),ce);function ce(Q,me,we){me=me||I,Q?de(Q):ee?ee(me):D(null,me,we)}}}function $(I,j){let D,Y;return o.run(I,j,ee),rc("runSync","run",Y),D;function ee(de,ce){Ra(de),D=ce,Y=!0}}function w(I,j){if(o.freeze(),za("process",o.Parser),Va("process",o.Compiler),!j)return new Promise(D);D(null,j);function D(Y,ee){let de=xo(I);o.run(o.parse(de),de,(Q,me,we)=>{if(Q||!me||!we)ce(Q);else{let _e=o.stringify(me,we);_e==null||($g(_e)?we.value=_e:we.result=_e),ce(Q,we)}});function ce(Q,me){Q||!me?ee(Q):Y?Y(me):j(null,me)}}}function k(I){let j;o.freeze(),za("processSync",o.Parser),Va("processSync",o.Compiler);let D=xo(I);return o.process(D,Y),rc("processSync","process",j),D;function Y(ee){j=!0,Ra(ee)}}}function ec(t,r){return typeof t=="function"&&t.prototype&&(yg(t.prototype)||r in t.prototype)}function yg(t){let r;for(r in t)if(ic.call(t,r))return!0;return!1}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function Va(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Ua(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 tc(t){if(!_o(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function rc(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function xo(t){return vg(t)?t:new Co(t)}function vg(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function $g(t){return typeof t=="string"||(0,nc.default)(t)}function ac(t,r){var{includeImageAlt:e=!0}=r||{};return lc(t,e)}function lc(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&sc(t.children,r)||Array.isArray(t)&&sc(t,r))||""}function sc(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=lc(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 lr(t,r){return t.length>0?(gt(t,t.length,0,r),t):r}var uc={}.hasOwnProperty;function $s(t){let r={},e=-1;for(;++e<t.length;)bg(r,t[e]);return r}function bg(t,r){let e;for(e in r){let i=(uc.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){uc.call(i,a)||(i[a]=[]);let u=o[a];wg(i[a],Array.isArray(u)?u:u?[u]:[])}}}function wg(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 fc=/[!-/:-@[-`{-~\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 Qt=Mn(/[A-Za-z]/),li=Mn(/\d/),cc=Mn(/[\dA-Fa-f]/),Ot=Mn(/[\dA-Za-z]/),pc=Mn(/[!-/:-@[-`{-~]/),Wa=Mn(/[#-'*+\--9=?A-Z^-~]/);function Bn(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 Oe(t){return t===-2||t===-1||t===32}var ui=Mn(/\s/),fi=Mn(fc);function Mn(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(f){return Oe(f)?(t.enter(e),u(f)):r(f)}function u(f){return Oe(f)&&o++<i?(t.consume(f),u):(t.exit(e),r(f))}}var dc={tokenize:_g};function _g(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 f=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=f),e=f,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 hc={tokenize:kg},mc={tokenize:Cg};function kg(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,f,m)(ee)}return m(ee)}function f(ee){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&Y();let de=r.events.length,ce=de,Q;for(;ce--;)if(r.events[ce][0]==="exit"&&r.events[ce][1].type==="chunkFlow"){Q=r.events[ce][1].end;break}D(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},Q),me++;return gt(r.events,ce+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 $(ee);if(i.currentConstruct&&i.currentConstruct.concrete)return k(ee);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(mc,p,v)(ee)}function p(ee){return i&&Y(),D(n),$(ee)}function v(ee){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,k(ee)}function $(ee){return r.containerState={},t.attempt(mc,w,k)(ee)}function w(ee){return n++,e.push([r.currentConstruct,r.containerState]),$(ee)}function k(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}),I(ee)}function I(ee){if(ee===null){j(t.exit("chunkFlow"),!0),D(0),t.consume(ee);return}return le(ee)?(t.consume(ee),j(t.exit("chunkFlow")),n=0,r.interrupt=void 0,u):(t.consume(ee),I)}function j(ee,de){let ce=r.sliceStream(ee);if(de&&ce.push(null),ee.previous=o,o&&(o.next=ee),o=ee,i.defineSkip(ee.start),i.write(ce),r.parser.lazy[ee.start.line]){let Q=i.events.length;for(;Q--;)if(i.events[Q][1].start.offset<a&&(!i.events[Q][1].end||i.events[Q][1].end.offset>a))return;let me=r.events.length,we=me,_e,Te;for(;we--;)if(r.events[we][0]==="exit"&&r.events[we][1].type==="chunkFlow"){if(_e){Te=r.events[we][1].end;break}_e=!0}for(D(n),Q=me;Q<r.events.length;)r.events[Q][1].end=Object.assign({},Te),Q++;gt(r.events,we+1,0,r.events.slice(me)),r.events.length=Q}}function D(ee){let de=e.length;for(;de-- >ee;){let ce=e[de];r.containerState=ce[1],ce[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 Cg(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 Wi(t){if(t===null||Ve(t)||ui(t))return 1;if(fi(t))return 2}function zn(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 Eo={name:"attention",tokenize:Eg,resolveAll:xg};function xg(t,r){let e=-1,n,i,o,a,u,f,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;f=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let v=Object.assign({},t[n][1].end),$=Object.assign({},t[e][1].start);gc(v,-f),gc($,f),a={type:f>1?"strongSequence":"emphasisSequence",start:v,end:Object.assign({},t[n][1].end)},u={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:$},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:f>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=lr(m,[["enter",t[n][1],r],["exit",t[n][1],r]])),m=lr(m,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),m=lr(m,zn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),m=lr(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=lr(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 Eg(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Wi(n),o;return a;function a(f){return t.enter("attentionSequence"),o=f,u(f)}function u(f){if(f===o)return t.consume(f),u;let m=t.exit("attentionSequence"),p=Wi(f),v=!p||p===2&&i||e.includes(f),$=!i||i===2&&p||e.includes(n);return m._open=Boolean(o===42?v:v&&(i||!$)),m._close=Boolean(o===42?$:$&&(p||!v)),r(f)}}function gc(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Ga={name:"autolink",tokenize:Ag};function Ag(t,r,e){let n=1;return i;function i(k){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(k){return Qt(k)?(t.consume(k),a):Wa(k)?m(k):e(k)}function a(k){return k===43||k===45||k===46||Ot(k)?u(k):m(k)}function u(k){return k===58?(t.consume(k),f):(k===43||k===45||k===46||Ot(k))&&n++<32?(t.consume(k),u):m(k)}function f(k){return k===62?(t.exit("autolinkProtocol"),w(k)):k===null||k===32||k===60||Bn(k)?e(k):(t.consume(k),f)}function m(k){return k===64?(t.consume(k),n=0,p):Wa(k)?(t.consume(k),m):e(k)}function p(k){return Ot(k)?v(k):e(k)}function v(k){return k===46?(t.consume(k),n=0,p):k===62?(t.exit("autolinkProtocol").type="autolinkEmail",w(k)):$(k)}function $(k){return(k===45||Ot(k))&&n++<63?(t.consume(k),k===45?$:v):e(k)}function w(k){return t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),r}}var cn={tokenize:Sg,partial:!0};function Sg(t,r,e){return ye(t,n,"linePrefix");function n(i){return i===null||le(i)?r(i):e(i)}}var bs={name:"blockQuote",tokenize:Pg,continuation:{tokenize:Ig},exit:Og};function Pg(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 Oe(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Ig(t,r,e){return ye(t,t.attempt(bs,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Og(t){t.exit("blockQuote")}var ws={name:"characterEscape",tokenize:Fg};function Fg(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 pc(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var yc=document.createElement("i");function Gi(t){let r="&"+t+";";yc.innerHTML=r;let e=yc.textContent;return e.charCodeAt(e.length-1)===59&&t!=="semi"||e===r?!1:e}var _s={name:"characterReference",tokenize:Tg};function Tg(t,r,e){let n=this,i=0,o,a;return u;function u(v){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),f}function f(v){return v===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(v),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,a=Ot,p(v))}function m(v){return v===88||v===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(v),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=cc,p):(t.enter("characterReferenceValue"),o=7,a=li,p(v))}function p(v){let $;return v===59&&i?($=t.exit("characterReferenceValue"),a===Ot&&!Gi(n.sliceSerialize($))?e(v):(t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(v)&&i++<o?(t.consume(v),p):e(v)}}var ks={name:"codeFenced",tokenize:Ng,concrete:!0};function Ng(t,r,e){let n=this,i={tokenize:ce,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,f=0,m;return p;function p(Q){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m=Q,v(Q)}function v(Q){return Q===m?(t.consume(Q),f++,v):(t.exit("codeFencedFenceSequence"),f<3?e(Q):ye(t,$,"whitespace")(Q))}function $(Q){return Q===null||le(Q)?j(Q):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(Q))}function w(Q){return Q===null||Ve(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ye(t,k,"whitespace")(Q)):Q===96&&Q===m?e(Q):(t.consume(Q),w)}function k(Q){return Q===null||le(Q)?j(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Q))}function I(Q){return Q===null||le(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),j(Q)):Q===96&&Q===m?e(Q):(t.consume(Q),I)}function j(Q){return t.exit("codeFencedFence"),n.interrupt?r(Q):D(Q)}function D(Q){return Q===null?ee(Q):le(Q)?t.attempt(o,t.attempt(i,ee,u?ye(t,D,"linePrefix",u+1):D),ee)(Q):(t.enter("codeFlowValue"),Y(Q))}function Y(Q){return Q===null||le(Q)?(t.exit("codeFlowValue"),D(Q)):(t.consume(Q),Y)}function ee(Q){return t.exit("codeFenced"),r(Q)}function de(Q,me,we){let _e=this;return Te;function Te(xe){return Q.enter("lineEnding"),Q.consume(xe),Q.exit("lineEnding"),Ce}function Ce(xe){return _e.parser.lazy[_e.now().line]?we(xe):me(xe)}}function ce(Q,me,we){let _e=0;return ye(Q,Te,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Te(fe){return Q.enter("codeFencedFence"),Q.enter("codeFencedFenceSequence"),Ce(fe)}function Ce(fe){return fe===m?(Q.consume(fe),_e++,Ce):_e<f?we(fe):(Q.exit("codeFencedFenceSequence"),ye(Q,xe,"whitespace")(fe))}function xe(fe){return fe===null||le(fe)?(Q.exit("codeFencedFence"),me(fe)):we(fe)}}}var Ao={name:"codeIndented",tokenize:jg},Dg={tokenize:Rg,partial:!0};function jg(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?f(m):le(m)?t.attempt(Dg,a,f)(m):(t.enter("codeFlowValue"),u(m))}function u(m){return m===null||le(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),u)}function f(m){return t.exit("codeIndented"),r(m)}}function Rg(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 Qa={name:"codeText",tokenize:Bg,resolve:Lg,previous:qg};function Lg(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 qg(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bg(t,r,e){let n=this,i=0,o,a;return u;function u($){return t.enter("codeText"),t.enter("codeTextSequence"),f($)}function f($){return $===96?(t.consume($),i++,f):(t.exit("codeTextSequence"),m($))}function m($){return $===null?e($):$===96?(a=t.enter("codeTextSequence"),o=0,v($)):$===32?(t.enter("space"),t.consume($),t.exit("space"),m):le($)?(t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),m):(t.enter("codeTextData"),p($))}function p($){return $===null||$===32||$===96||le($)?(t.exit("codeTextData"),m($)):(t.consume($),p)}function v($){return $===96?(t.consume($),o++,v):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r($)):(a.type="codeTextData",p($))}}function Cs(t){let r={},e=-1,n,i,o,a,u,f,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"&&(f=n[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,Mg(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 Mg(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,f=[],m={},p,v,$=-1,w=e,k=0,I=0,j=[I];for(;w;){for(;t[++i][1]!==w;);o.push(i),w._tokenizer||(p=n.sliceStream(w),w.next||p.push(null),v&&a.defineSkip(w.start),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),v=w,w=w.next}for(w=e;++$<u.length;)u[$][0]==="exit"&&u[$-1][0]==="enter"&&u[$][1].type===u[$-1][1].type&&u[$][1].start.line!==u[$][1].end.line&&(I=$+1,j.push(I),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(a.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),$=j.length;$--;){let D=u.slice(j[$],j[$+1]),Y=o.pop();f.unshift([Y,Y+D.length-1]),gt(t,Y,2,D)}for($=-1;++$<f.length;)m[k+f[$][0]]=k+f[$][1],k+=f[$][1]-f[$][0]-1;return m}var Za={tokenize:Ug,resolve:Vg},zg={tokenize:Hg,partial:!0};function Vg(t){return Cs(t),t}function Ug(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(zg,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 Hg(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,f){let m=f||Number.POSITIVE_INFINITY,p=0;return v;function v(D){return D===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(D),t.exit(o),$):D===null||D===41||Bn(D)?e(D):(t.enter(n),t.enter(a),t.enter(u),t.enter("chunkString",{contentType:"string"}),I(D))}function $(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),$(D)):D===null||D===60||le(D)?e(D):(t.consume(D),D===92?k:w)}function k(D){return D===60||D===62||D===92?(t.consume(D),w):w(D)}function I(D){return D===40?++p>m?e(D):(t.consume(D),I):D===41?p--?(t.consume(D),I):(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)):Bn(D)?e(D):(t.consume(D),D===92?j:I)}function j(D){return D===40||D===41||D===92?(t.consume(D),I):I(D)}}function Es(t,r,e,n,i,o){let a=this,u=0,f;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&&!f||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"}),v(w))}function v(w){return w===null||w===91||w===93||le(w)||u++>999?(t.exit("chunkString"),p(w)):(t.consume(w),f=f||!Oe(w),w===92?$:v)}function $(w){return w===91||w===92||w===93?(t.consume(w),u++,v):v(w)}}function As(t,r,e,n,i,o){let a;return u;function u($){return t.enter(n),t.enter(i),t.consume($),t.exit(i),a=$===40?41:$,f}function f($){return $===a?(t.enter(i),t.consume($),t.exit(i),t.exit(n),r):(t.enter(o),m($))}function m($){return $===a?(t.exit(o),f(a)):$===null?e($):le($)?(t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),ye(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p($))}function p($){return $===a||$===null||le($)?(t.exit("chunkString"),m($)):(t.consume($),$===92?v:p)}function v($){return $===a||$===92?(t.consume($),p):p($)}}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):Oe(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 Ja={name:"definition",tokenize:Wg},Kg={tokenize:Gg,partial:!0};function Wg(t,r,e){let n=this,i;return o;function o(f){return t.enter("definition"),Es.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Zt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),ci(t,xs(t,t.attempt(Kg,ye(t,u,"whitespace"),ye(t,u,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(f)}function u(f){return f===null||le(f)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(f)):e(f)}}function Gg(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:Qg};function Qg(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:Jg,resolve:Zg};function Zg(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 Jg(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"),f(p)):p===null||le(p)?(t.exit("atxHeading"),r(p)):Oe(p)?ye(t,u,"whitespace")(p):(t.enter("atxHeadingText"),m(p))}function f(p){return p===35?(t.consume(p),f):(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 vc=["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:ey,resolveTo:Yg,concrete:!0},Xg={tokenize:ty,partial:!0};function Yg(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 ey(t,r,e){let n=this,i,o,a,u,f;return m;function m(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),p}function p(N){return N===33?(t.consume(N),v):N===47?(t.consume(N),k):N===63?(t.consume(N),i=3,n.interrupt?r:tt):Qt(N)?(t.consume(N),a=String.fromCharCode(N),o=!0,I):e(N)}function v(N){return N===45?(t.consume(N),i=2,$):N===91?(t.consume(N),i=5,a="CDATA[",u=0,w):Qt(N)?(t.consume(N),i=4,n.interrupt?r:tt):e(N)}function $(N){return N===45?(t.consume(N),n.interrupt?r:tt):e(N)}function w(N){return N===a.charCodeAt(u++)?(t.consume(N),u===a.length?n.interrupt?r:Ce:w):e(N)}function k(N){return Qt(N)?(t.consume(N),a=String.fromCharCode(N),I):e(N)}function I(N){return N===null||N===47||N===62||Ve(N)?N!==47&&o&&el.includes(a.toLowerCase())?(i=1,n.interrupt?r(N):Ce(N)):vc.includes(a.toLowerCase())?(i=6,N===47?(t.consume(N),j):n.interrupt?r(N):Ce(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(N):o?Y(N):D(N)):N===45||Ot(N)?(t.consume(N),a+=String.fromCharCode(N),I):e(N)}function j(N){return N===62?(t.consume(N),n.interrupt?r:Ce):e(N)}function D(N){return Oe(N)?(t.consume(N),D):_e(N)}function Y(N){return N===47?(t.consume(N),_e):N===58||N===95||Qt(N)?(t.consume(N),ee):Oe(N)?(t.consume(N),Y):_e(N)}function ee(N){return N===45||N===46||N===58||N===95||Ot(N)?(t.consume(N),ee):de(N)}function de(N){return N===61?(t.consume(N),ce):Oe(N)?(t.consume(N),de):Y(N)}function ce(N){return N===null||N===60||N===61||N===62||N===96?e(N):N===34||N===39?(t.consume(N),f=N,Q):Oe(N)?(t.consume(N),ce):(f=null,me(N))}function Q(N){return N===null||le(N)?e(N):N===f?(t.consume(N),we):(t.consume(N),Q)}function me(N){return N===null||N===34||N===39||N===60||N===61||N===62||N===96||Ve(N)?de(N):(t.consume(N),me)}function we(N){return N===47||N===62||Oe(N)?Y(N):e(N)}function _e(N){return N===62?(t.consume(N),Te):e(N)}function Te(N){return Oe(N)?(t.consume(N),Te):N===null||le(N)?Ce(N):e(N)}function Ce(N){return N===45&&i===2?(t.consume(N),Ke):N===60&&i===1?(t.consume(N),U):N===62&&i===4?(t.consume(N),He):N===63&&i===3?(t.consume(N),tt):N===93&&i===5?(t.consume(N),Le):le(N)&&(i===6||i===7)?t.check(Xg,He,xe)(N):N===null||le(N)?xe(N):(t.consume(N),Ce)}function xe(N){return t.exit("htmlFlowData"),fe(N)}function fe(N){return N===null?T(N):le(N)?t.attempt({tokenize:be,partial:!0},fe,T)(N):(t.enter("htmlFlowData"),Ce(N))}function be(N,Vt,kt){return it;function it(ct){return N.enter("lineEnding"),N.consume(ct),N.exit("lineEnding"),ft}function ft(ct){return n.parser.lazy[n.now().line]?kt(ct):Vt(ct)}}function Ke(N){return N===45?(t.consume(N),tt):Ce(N)}function U(N){return N===47?(t.consume(N),a="",at):Ce(N)}function at(N){return N===62&&el.includes(a.toLowerCase())?(t.consume(N),He):Qt(N)&&a.length<8?(t.consume(N),a+=String.fromCharCode(N),at):Ce(N)}function Le(N){return N===93?(t.consume(N),tt):Ce(N)}function tt(N){return N===62?(t.consume(N),He):N===45&&i===2?(t.consume(N),tt):Ce(N)}function He(N){return N===null||le(N)?(t.exit("htmlFlowData"),T(N)):(t.consume(N),He)}function T(N){return t.exit("htmlFlow"),r(N)}}function ty(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:ry};function ry(t,r,e){let n=this,i,o,a,u;return f;function f(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),m}function m(T){return T===33?(t.consume(T),p):T===47?(t.consume(T),me):T===63?(t.consume(T),ce):Qt(T)?(t.consume(T),Te):e(T)}function p(T){return T===45?(t.consume(T),v):T===91?(t.consume(T),o="CDATA[",a=0,j):Qt(T)?(t.consume(T),de):e(T)}function v(T){return T===45?(t.consume(T),$):e(T)}function $(T){return T===null||T===62?e(T):T===45?(t.consume(T),w):k(T)}function w(T){return T===null||T===62?e(T):k(T)}function k(T){return T===null?e(T):T===45?(t.consume(T),I):le(T)?(u=k,Le(T)):(t.consume(T),k)}function I(T){return T===45?(t.consume(T),He):k(T)}function j(T){return T===o.charCodeAt(a++)?(t.consume(T),a===o.length?D:j):e(T)}function D(T){return T===null?e(T):T===93?(t.consume(T),Y):le(T)?(u=D,Le(T)):(t.consume(T),D)}function Y(T){return T===93?(t.consume(T),ee):D(T)}function ee(T){return T===62?He(T):T===93?(t.consume(T),ee):D(T)}function de(T){return T===null||T===62?He(T):le(T)?(u=de,Le(T)):(t.consume(T),de)}function ce(T){return T===null?e(T):T===63?(t.consume(T),Q):le(T)?(u=ce,Le(T)):(t.consume(T),ce)}function Q(T){return T===62?He(T):ce(T)}function me(T){return Qt(T)?(t.consume(T),we):e(T)}function we(T){return T===45||Ot(T)?(t.consume(T),we):_e(T)}function _e(T){return le(T)?(u=_e,Le(T)):Oe(T)?(t.consume(T),_e):He(T)}function Te(T){return T===45||Ot(T)?(t.consume(T),Te):T===47||T===62||Ve(T)?Ce(T):e(T)}function Ce(T){return T===47?(t.consume(T),He):T===58||T===95||Qt(T)?(t.consume(T),xe):le(T)?(u=Ce,Le(T)):Oe(T)?(t.consume(T),Ce):He(T)}function xe(T){return T===45||T===46||T===58||T===95||Ot(T)?(t.consume(T),xe):fe(T)}function fe(T){return T===61?(t.consume(T),be):le(T)?(u=fe,Le(T)):Oe(T)?(t.consume(T),fe):Ce(T)}function be(T){return T===null||T===60||T===61||T===62||T===96?e(T):T===34||T===39?(t.consume(T),i=T,Ke):le(T)?(u=be,Le(T)):Oe(T)?(t.consume(T),be):(t.consume(T),i=void 0,at)}function Ke(T){return T===i?(t.consume(T),U):T===null?e(T):le(T)?(u=Ke,Le(T)):(t.consume(T),Ke)}function U(T){return T===62||T===47||Ve(T)?Ce(T):e(T)}function at(T){return T===null||T===34||T===39||T===60||T===61||T===96?e(T):T===62||Ve(T)?Ce(T):(t.consume(T),at)}function Le(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),ye(t,tt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tt(T){return t.enter("htmlTextData"),u(T)}function He(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),r):e(T)}}var pi={name:"labelEnd",tokenize:ly,resolveTo:ay,resolveAll:sy},ny={tokenize:uy},iy={tokenize:fy},oy={tokenize:cy};function sy(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 ay(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 f={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",f,r],["enter",m,r]],u=lr(u,t.slice(o+1,o+n+3)),u=lr(u,[["enter",p,r]]),u=lr(u,zn(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),u=lr(u,[["exit",p,r],t[a-2],t[a-1],["exit",m,r]]),u=lr(u,t.slice(a+1)),u=lr(u,[["exit",f,r]]),gt(t,o,t.length,u),t}function ly(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"),f):e(p)}function f(p){return p===40?t.attempt(ny,r,a?r:m)(p):p===91?t.attempt(iy,r,a?t.attempt(oy,r,m):m)(p):a?r(p):m(p)}function m(p){return o._balanced=!0,e(p)}}function uy(t,r,e){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),ci(t,i)}function i(f){return f===41?u(f):xs(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ve(f)?ci(t,a)(f):u(f)}function a(f){return f===34||f===39||f===40?As(t,ci(t,u),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function u(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),r):e(f)}}function fy(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 cy(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:py,resolveAll:pi.resolveAll};function py(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:dy,resolveAll:pi.resolveAll};function dy(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 So={name:"lineEnding",tokenize:my};function my(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ye(t,r,"linePrefix")}}var di={name:"thematicBreak",tokenize:hy};function hy(t,r,e){let n=0,i;return o;function o(f){return t.enter("thematicBreak"),i=f,a(f)}function a(f){return f===i?(t.enter("thematicBreakSequence"),u(f)):Oe(f)?ye(t,a,"whitespace")(f):n<3||f!==null&&!le(f)?e(f):(t.exit("thematicBreak"),r(f))}function u(f){return f===i?(t.consume(f),n++,u):(t.exit("thematicBreakSequence"),a(f))}}var Jt={name:"list",tokenize:vy,continuation:{tokenize:$y},exit:wy},gy={tokenize:_y,partial:!0},yy={tokenize:by,partial:!0};function vy(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 k=n.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!n.containerState.marker||w===n.containerState.marker:li(w)){if(n.containerState.type||(n.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(di,e,m)(w):m(w);if(!n.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(w)}return e(w)}function f(w){return li(w)&&++a<10?(t.consume(w),f):(!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(gy,$,v))}function p(w){return n.containerState.initialBlankLine=!0,o++,$(w)}function v(w){return Oe(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),$):e(w)}function $(w){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(w)}}function $y(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||!Oe(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(yy,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 by(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 wy(t){t.exit(this.containerState.type)}function _y(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!Oe(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ss={name:"setextUnderline",tokenize:Cy,resolveTo:ky};function ky(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 Cy(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,f(p)):e(p)}function f(p){return p===o?(t.consume(p),f):(t.exit("setextHeadingLineSequence"),ye(t,m,"lineSuffix")(p))}function m(p){return p===null||le(p)?(t.exit("setextHeadingLine"),r(p)):e(p)}}var $c={tokenize:xy};function xy(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(Za,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 bc={resolveAll:Cc()},wc=kc("string"),_c=kc("text");function kc(t){return{tokenize:r,resolveAll:Cc(t==="text"?Ey: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),f}function f(p){return m(p)?(e.exit("data"),o(p)):(e.consume(p),f)}function m(p){if(p===null)return!0;let v=i[p],$=-1;if(v)for(;++$<v.length;){let w=v[$];if(!w.previous||w.previous.call(n,n.previous))return!0}return!1}}}function Cc(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 Ey(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,f;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)f=!0,u++;else if(m!==-1){o++;break}}if(u){let m={type:e===t.length||f||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 xc(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=[],f=!0,m={consume:de,enter:ce,exit:Q,attempt:_e(me),check:_e(we),interrupt:_e(we,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:k,now:j,defineSkip:D,write:w},v=r.tokenize.call(p,m),$;return r.resolveAll&&o.push(r),p;function w(fe){return a=lr(a,fe),Y(),a[a.length-1]!==null?[]:(Te(r,0),p.events=zn(o,p.events,p),p.events)}function k(fe,be){return Sy(I(fe),be)}function I(fe){return Ay(a,fe)}function j(){return Object.assign({},n)}function D(fe){i[fe.line]=fe.column,xe()}function Y(){let fe;for(;n._index<a.length;){let be=a[n._index];if(typeof be=="string")for(fe=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===fe&&n._bufferIndex<be.length;)ee(be.charCodeAt(n._bufferIndex));else ee(be)}}function ee(fe){f=void 0,$=fe,v=v(fe)}function de(fe){le(fe)?(n.line++,n.column=1,n.offset+=fe===-3?2:1,xe()):fe!==-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=fe,f=!0}function ce(fe,be){let Ke=be||{};return Ke.type=fe,Ke.start=j(),p.events.push(["enter",Ke,p]),u.push(Ke),Ke}function Q(fe){let be=u.pop();return be.end=j(),p.events.push(["exit",be,p]),be}function me(fe,be){Te(fe,be.from)}function we(fe,be){be.restore()}function _e(fe,be){return Ke;function Ke(U,at,Le){let tt,He,T,N;return Array.isArray(U)?kt(U):"tokenize"in U?kt([U]):Vt(U);function Vt($e){return _r;function _r(Et){let Nt=Et!==null&&$e[Et],rr=Et!==null&&$e.null,pr=[...Array.isArray(Nt)?Nt:Nt?[Nt]:[],...Array.isArray(rr)?rr:rr?[rr]:[]];return kt(pr)(Et)}}function kt($e){return tt=$e,He=0,$e.length===0?Le:it($e[He])}function it($e){return _r;function _r(Et){return N=Ce(),T=$e,$e.partial||(p.currentConstruct=$e),$e.name&&p.parser.constructs.disable.null.includes($e.name)?ct(Et):$e.tokenize.call(be?Object.assign(Object.create(p),be):p,m,ft,ct)(Et)}}function ft($e){return f=!0,fe(T,N),at}function ct($e){return f=!0,N.restore(),++He<tt.length?it(tt[He]):Le}}}function Te(fe,be){fe.resolveAll&&!o.includes(fe)&&o.push(fe),fe.resolve&&gt(p.events,be,p.events.length-be,fe.resolve(p.events.slice(be),p)),fe.resolveTo&&(p.events=fe.resolveTo(p.events,p))}function Ce(){let fe=j(),be=p.previous,Ke=p.currentConstruct,U=p.events.length,at=Array.from(u);return{restore:Le,from:U};function Le(){n=fe,p.previous=be,p.currentConstruct=Ke,p.events.length=U,u=at,xe()}}function xe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Ay(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 Sy(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=`
16
+ deps: ${e}}`};var r_={keyword:"dependencies",type:"object",schemaType:"object",error:gn.error,code(t){let[r,e]=n_(t);Mm(t,r),zm(t,e)}};function n_({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 Mm(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 f=is.propertyInData(e,n,a,i.opts.ownProperties);t.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?e.if(f,()=>{for(let m of u)is.checkReportMissingProp(t,m)}):(e.if(Yu._`${f} && (${is.checkMissingProp(t,u,o)})`),is.reportMissingProp(t,o),e.else())}}gn.validatePropertyDeps=Mm;function zm(t,r=t.schema){let{gen:e,data:n,keyword:i,it:o}=t,a=e.name("valid");for(let u in r)t_.alwaysValidSchema(o,r[u])||(e.if(is.propertyInData(e,n,u,o.opts.ownProperties),()=>{let f=t.subschema({keyword:i,schemaProp:u},a);t.mergeValidEvaluated(f,a)},()=>e.var(a,!0)),t.ok(a))}gn.validateSchemaDeps=zm;gn.default=r_});var Um=re(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var ef=Ie(),i_=ut(),o_={message:({params:t})=>ef.str`property name '${t.propertyName}' is invalid`,params:({params:t})=>ef._`{propertyName: ${t.propertyName}}`},s_={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:o_,code(t){let{gen:r,schema:e,data:n,it:i}=t;if(i_.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(ef.not(o),()=>{t.error(!0),i.allErrors||r.break()})}),t.ok(o)}};tf.default=s_});var of=re(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var ma=Xr(),rn=Ie(),a_=Jr(),l_=Pi(),rf=ut(),u_={message:"should NOT have additional properties",params:({params:t})=>rn._`{additionalProperty: ${t.additionalProperty}}`},f_={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:u_,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:f}=a;if(a.props=!0,f.removeAdditional!=="all"&&rf.alwaysValidSchema(a,e))return;let m=ma.allSchemaProperties(n.properties),p=ma.allSchemaProperties(n.patternProperties);v(),t.ok(rn._`${o} === ${a_.default.errors}`);function v(){r.forIn("key",i,j=>{!m.length&&!p.length?k(j):r.if($(j),()=>k(j))})}function $(j){let D;if(m.length>8){let Y=rf.schemaRefOrVal(a,n.properties,"properties");D=ma.isOwnProperty(r,Y,j)}else m.length?D=rn.or(...m.map(Y=>rn._`${j} === ${Y}`)):D=rn.nil;return p.length&&(D=rn.or(D,...p.map(Y=>rn._`${ma.usePattern(r,Y)}.test(${j})`))),rn.not(D)}function w(j){r.code(rn._`delete ${i}[${j}]`)}function k(j){if(f.removeAdditional==="all"||f.removeAdditional&&e===!1){w(j);return}if(e===!1){t.setParams({additionalProperty:j}),t.error(),u||r.break();return}if(typeof e=="object"&&!rf.alwaysValidSchema(a,e)){let D=r.name("valid");f.removeAdditional==="failing"?(I(j,D,!1),r.if(rn.not(D),()=>{t.reset(),w(j)})):(I(j,D),u||r.if(rn.not(D),()=>r.break()))}}function I(j,D,Y){let ee={keyword:"additionalProperties",dataProp:j,dataPropType:l_.Type.Str};Y===!1&&Object.assign(ee,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(ee,D)}}};nf.default=f_});var Wm=re(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var c_=Ho(),Hm=Xr(),sf=ut(),Km=of(),p_={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&&Km.default.code(new c_.default(o,Km.default,"additionalProperties"));let a=Hm.allSchemaProperties(e);for(let v of a)o.definedProperties.add(v);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=sf.mergeEvaluated.props(r,sf.toHash(a),o.props));let u=a.filter(v=>!sf.alwaysValidSchema(o,e[v]));if(u.length===0)return;let f=r.name("valid");for(let v of u)m(v)?p(v):(r.if(Hm.propertyInData(r,i,v,o.opts.ownProperties)),p(v),o.allErrors||r.else().var(f,!0),r.endIf()),t.it.definedProperties.add(v),t.ok(f);function m(v){return o.opts.useDefaults&&!o.compositeRule&&e[v].default!==void 0}function p(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},f)}}};af.default=p_});var Qm=re(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var Gm=Xr(),ha=Ie(),d_=Pi(),m_=Er(),h_=ut(),g_={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:r,schema:e,data:n,parentSchema:i,it:o}=t,{opts:a}=o,u=Gm.schemaProperties(o,e);if(u.length===0)return;let f=a.strict&&!a.allowMatchingProperties&&i.properties,m=r.name("valid");o.props!==!0&&!(o.props instanceof ha.Name)&&(o.props=h_.evaluatedPropsToName(r,o.props));let{props:p}=o;v();function v(){for(let k of u)f&&$(k),o.allErrors?w(k):(r.var(m,!0),w(k),r.if(m))}function $(k){for(let I in f)new RegExp(k).test(I)&&m_.checkStrictMode(o,`property ${I} matches pattern ${k} (use allowMatchingProperties)`)}function w(k){r.forIn("key",n,I=>{r.if(ha._`${Gm.usePattern(r,k)}.test(${I})`,()=>{t.subschema({keyword:"patternProperties",schemaProp:k,dataProp:I,dataPropType:d_.Type.Str},m),o.opts.unevaluated&&p!==!0?r.assign(ha._`${p}[${I}]`,!0):o.allErrors||r.if(ha.not(m),()=>r.break())})})}}};lf.default=g_});var Zm=re(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var y_=ut(),v_={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:r,schema:e,it:n}=t;if(y_.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"}};uf.default=v_});var Jm=re(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var $_=Xr(),b_={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$_.validateUnion,error:{message:"should match some schema in anyOf"}};ff.default=b_});var Xm=re(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var ga=Ie(),w_=ut(),__={message:"should match exactly one schema in oneOf",params:({params:t})=>ga._`{passingSchemas: ${t.passing}}`},k_={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:__,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(f),t.result(o,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((m,p)=>{let v;w_.alwaysValidSchema(n,m)?r.var(u,!0):v=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&r.if(ga._`${u} && ${o}`).assign(o,!1).assign(a,ga._`[${a}, ${p}]`).else(),r.if(u,()=>{r.assign(o,!0),r.assign(a,p),v&&t.mergeEvaluated(v,ga.Name)})})}}};cf.default=k_});var Ym=re(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var C_=ut(),x_={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(C_.alwaysValidSchema(n,o))return;let u=t.subschema({keyword:"allOf",schemaProp:a},i);t.ok(i),t.mergeEvaluated(u)})}};pf.default=x_});var th=re(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var ya=Ie(),E_=ut(),A_=Er(),S_={message:({params:t})=>ya.str`should match "${t.ifClause}" schema`,params:({params:t})=>ya._`{failingKeyword: ${t.ifClause}}`},P_={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:S_,code(t){let{gen:r,parentSchema:e,it:n}=t;e.then===void 0&&e.else===void 0&&A_.checkStrictMode(n,'"if" without "then" and "else" is ignored');let i=eh(n,"then"),o=eh(n,"else");if(!i&&!o)return;let a=r.let("valid",!0),u=r.name("_valid");if(f(),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(ya.not(u),m("else"));t.pass(a,()=>t.error(!0));function f(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);t.mergeEvaluated(p)}function m(p,v){return()=>{let $=t.subschema({keyword:p},u);r.assign(a,u),t.mergeValidEvaluated($,a),v?r.assign(v,ya._`${p}`):t.setParams({ifClause:p})}}}};function eh(t,r){let e=t.schema[r];return e!==void 0&&!E_.alwaysValidSchema(t,e)}df.default=P_});var rh=re(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var I_=Er(),O_={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:r,it:e}){r.if===void 0&&I_.checkStrictMode(e,`"${t}" without "if" is ignored`)}};mf.default=O_});var nh=re(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var F_=jm(),T_=Lm(),N_=Bm(),D_=Vm(),j_=Um(),R_=of(),L_=Wm(),q_=Qm(),B_=Zm(),M_=Jm(),z_=Xm(),V_=Ym(),U_=th(),H_=rh(),K_=[B_.default,M_.default,z_.default,V_.default,U_.default,H_.default,F_.default,T_.default,N_.default,j_.default,R_.default,D_.default,L_.default,q_.default];hf.default=K_});var ih=re(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var _t=Ie(),W_={message:({schemaCode:t})=>_t.str`should match format "${t}"`,params:({schemaCode:t})=>_t._`{format: ${t}}`},G_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:W_,code(t,r){let{gen:e,data:n,$data:i,schema:o,schemaCode:a,it:u}=t,{opts:f,errSchemaPath:m,schemaEnv:p,self:v}=u;if(!f.validateFormats)return;i?$():w();function $(){let k=e.scopeValue("formats",{ref:v.formats,code:f.code.formats}),I=e.const("fDef",_t._`${k}[${a}]`),j=e.let("fType"),D=e.let("format");e.if(_t._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>e.assign(j,_t._`${I}.type || "string"`).assign(D,_t._`${I}.validate`),()=>e.assign(j,_t._`"string"`).assign(D,I)),t.fail$data(_t.or(Y(),ee()));function Y(){return f.strict===!1?_t.nil:_t._`${a} && !${D}`}function ee(){let de=p.$async?_t._`(${I}.async ? await ${D}(${n}) : ${D}(${n}))`:_t._`${D}(${n})`,ce=_t._`(typeof ${D} == "function" ? ${de} : ${D}.test(${n}))`;return _t._`${D} && ${D} !== true && ${j} === ${r} && !${ce}`}}function w(){let k=v.formats[o];if(!k){Y();return}if(k===!0)return;let[I,j,D]=ee(k);I===r&&t.pass(de());function Y(){if(f.strict===!1){v.logger.warn(ce());return}throw new Error(ce());function ce(){return`unknown format "${o}" ignored in schema at path "${m}"`}}function ee(ce){let Q=e.scopeValue("formats",{key:o,ref:ce,code:f.code.formats?_t._`${f.code.formats}${_t.getProperty(o)}`:void 0});return typeof ce=="object"&&!(ce instanceof RegExp)?[ce.type||"string",ce.validate,_t._`${Q}.validate`]:["string",ce,Q]}function de(){if(typeof k=="object"&&!(k instanceof RegExp)&&k.async){if(!p.$async)throw new Error("async format in sync schema");return _t._`await ${D}(${n})`}return typeof j=="function"?_t._`${D}(${n})`:_t._`${D}.test(${n})`}}}};gf.default=G_});var oh=re(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var Q_=ih(),Z_=[Q_.default];yf.default=Z_});var sh=re(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.contentVocabulary=uo.metadataVocabulary=void 0;uo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];uo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var lh=re(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var J_=km(),X_=Dm(),Y_=nh(),ek=oh(),ah=sh(),tk=[J_.default,X_.default,Y_.default,ek.default,ah.metadataVocabulary,ah.contentVocabulary];vf.default=tk});var uh=re((qI,rk)=>{rk.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 ch=re(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.CodeGen=zt.Name=zt.nil=zt.stringify=zt.str=zt._=zt.KeywordCxt=void 0;var nk=Ho();zt.KeywordCxt=nk.default;var fo=Ie();Object.defineProperty(zt,"_",{enumerable:!0,get:function(){return fo._}});Object.defineProperty(zt,"str",{enumerable:!0,get:function(){return fo.str}});Object.defineProperty(zt,"stringify",{enumerable:!0,get:function(){return fo.stringify}});Object.defineProperty(zt,"nil",{enumerable:!0,get:function(){return fo.nil}});Object.defineProperty(zt,"Name",{enumerable:!0,get:function(){return fo.Name}});Object.defineProperty(zt,"CodeGen",{enumerable:!0,get:function(){return fo.CodeGen}});var ik=ym(),ok=lh(),fh=uh(),sk=["/properties"],va="http://json-schema.org/draft-07/schema",$f=class extends ik.default{_addVocabularies(){super._addVocabularies(),ok.default.forEach(r=>this.addVocabulary(r))}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(fh,sk):fh;this.addMetaSchema(r,va,!1),this.refs["http://json-schema.org/schema"]=va}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(va)?va:void 0)}};zt.default=$f});var dh=re((MI,ph)=>{var ak=Object.prototype.hasOwnProperty,lk=Object.prototype.toString;ph.exports=function(r,e,n){if(lk.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)ak.call(r,a)&&e.call(n,r[a],a,r)}});var hh=re((zI,mh)=>{"use strict";var uk=dh();mh.exports=et;function et(t,r,e){if(arguments.length===3)return et.set(t,r,e);if(arguments.length===2)return et.get(t,r);var n=et.bind(et,t);for(var i in et)et.hasOwnProperty(i)&&(n[i]=et[i].bind(n,t));return n}et.get=function(r,e){for(var n=Array.isArray(e)?e:et.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};et.set=function(r,e,n){var i=Array.isArray(e)?e:et.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};et.remove=function(t,r){var e=Array.isArray(r)?r:et.parse(r),n=e[e.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=et.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]};et.dict=function(r,e){var n={};return et.walk(r,function(i,o){n[o]=i},e),n};et.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){uk(a,function(u,f){i.push(String(f)),n(u)?o(u):e(u,et.compile(i)),i.pop()})}(r)};et.has=function(r,e){try{et.get(r,e)}catch{return!1}return!0};et.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")};et.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")};et.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(et.unescape)};et.compile=function(r){return r.length===0?"":"/"+r.map(et.escape).join("/")}});var gh=re((VI,fk)=>{fk.exports={type:"object",properties:{ters:{type:"string"}},required:["ters"],$schema:"http://json-schema.org/draft-07/schema#"}});var yh=re((UI,ck)=>{ck.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 vh=re((HI,pk)=>{pk.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 $h=re($a=>{$a.Test=gh();$a.AstTree=yh();$a.PodliteDocument=vh()});function Ra(t){if(t)throw t}var ic=fn(jf(),1),Ha=fn(Hf(),1);function _o(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 Kf(){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(f,...m){let p=t[++o],v=-1;if(f){a(f);return}for(;++v<i.length;)(m[v]===null||m[v]===void 0)&&(m[v]=i[v]);i=m,p?lg(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 lg(t,r){let e;return n;function n(...a){let u=t.length>a.length,f;u&&a.push(i);try{f=t.apply(this,a)}catch(m){let p=m;if(u&&e)throw p;return i(p)}u||(f instanceof Promise?f.then(o,i):f instanceof Error?i(f):o(f))}function i(a,...u){e||(e=!0,r(a,...u))}function o(a){i(null,a)}}var ec=fn(Gf(),1);function ai(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Qf(t.position):"start"in t||"end"in t?Qf(t):"line"in t||"column"in t?La(t):""}function La(t){return Zf(t&&t.line)+":"+Zf(t&&t.column)}function Qf(t){return La(t&&t.start)+"-"+La(t&&t.end)}function Zf(t){return t&&typeof t=="number"?t:1}var ar=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=ai(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}};ar.prototype.file="";ar.prototype.name="";ar.prototype.reason="";ar.prototype.message="";ar.prototype.stack="";ar.prototype.fatal=null;ar.prototype.column=null;ar.prototype.line=null;ar.prototype.source=null;ar.prototype.ruleId=null;ar.prototype.position=null;var Gr={basename:ug,dirname:fg,extname:cg,join:pg,sep:"/"};function ug(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ko(t);let e=0,n=-1,i=t.length,o;if(r===void 0||r.length===0||r.length>t.length){for(;i--;)if(t.charCodeAt(i)===47){if(o){e=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":t.slice(e,n)}if(r===t)return"";let a=-1,u=r.length-1;for(;i--;)if(t.charCodeAt(i)===47){if(o){e=i+1;break}}else a<0&&(o=!0,a=i+1),u>-1&&(t.charCodeAt(i)===r.charCodeAt(u--)?u<0&&(n=i):(u=-1,n=a));return e===n?n=a:n<0&&(n=t.length),t.slice(e,n)}function fg(t){if(ko(t),t.length===0)return".";let r=-1,e=t.length,n;for(;--e;)if(t.charCodeAt(e)===47){if(n){r=e;break}}else n||(n=!0);return r<0?t.charCodeAt(0)===47?"/":".":r===1&&t.charCodeAt(0)===47?"//":t.slice(0,r)}function cg(t){ko(t);let r=t.length,e=-1,n=0,i=-1,o=0,a;for(;r--;){let u=t.charCodeAt(r);if(u===47){if(a){n=r+1;break}continue}e<0&&(a=!0,e=r+1),u===46?i<0?i=r:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||e<0||o===0||o===1&&i===e-1&&i===n+1?"":t.slice(i,e)}function pg(...t){let r=-1,e;for(;++r<t.length;)ko(t[r]),t[r]&&(e=e===void 0?t[r]:e+"/"+t[r]);return e===void 0?".":dg(e)}function dg(t){ko(t);let r=t.charCodeAt(0)===47,e=mg(t,!r);return e.length===0&&!r&&(e="."),e.length>0&&t.charCodeAt(t.length-1)===47&&(e+="/"),r?"/"+e:e}function mg(t,r){let e="",n=0,i=-1,o=0,a=-1,u,f;for(;++a<=t.length;){if(a<t.length)u=t.charCodeAt(a);else{if(u===47)break;u=47}if(u===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(e.length<2||n!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){if(f=e.lastIndexOf("/"),f!==e.length-1){f<0?(e="",n=0):(e=e.slice(0,f),n=e.length-1-e.lastIndexOf("/")),i=a,o=0;continue}}else if(e.length>0){e="",n=0,i=a,o=0;continue}}r&&(e=e.length>0?e+"/..":"..",n=2)}else e.length>0?e+="/"+t.slice(i+1,a):e=t.slice(i+1,a),n=a-i-1;i=a,o=0}else u===46&&o>-1?o++:o=-1}return e}function ko(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var Jf={cwd:hg};function hg(){return"/"}function Ki(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function Xf(t){if(typeof t=="string")t=new URL(t);else if(!Ki(t)){let r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){let r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return gg(t)}function gg(t){if(t.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let r=t.pathname,e=-1;for(;++e<r.length;)if(r.charCodeAt(e)===37&&r.charCodeAt(e+1)===50){let n=r.charCodeAt(e+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(r)}var qa=["history","path","basename","stem","extname","dirname"],Co=class{constructor(r){let e;r?typeof r=="string"||(0,ec.default)(r)?e={value:r}:Ki(r)?e={path:r}:e=r:e={},this.data={},this.messages=[],this.history=[],this.cwd=Jf.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<qa.length;){let o=qa[n];o in e&&e[o]!==void 0&&(this[o]=o==="history"?[...e[o]]:e[o])}let i;for(i in e)qa.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(r){Ki(r)&&(r=Xf(r)),Ma(r,"path"),this.path!==r&&this.history.push(r)}get dirname(){return typeof this.path=="string"?Gr.dirname(this.path):void 0}set dirname(r){Yf(this.basename,"dirname"),this.path=Gr.join(r||"",this.basename)}get basename(){return typeof this.path=="string"?Gr.basename(this.path):void 0}set basename(r){Ma(r,"basename"),Ba(r,"basename"),this.path=Gr.join(this.dirname||"",r)}get extname(){return typeof this.path=="string"?Gr.extname(this.path):void 0}set extname(r){if(Ba(r,"extname"),Yf(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=Gr.join(this.dirname,this.stem+(r||""))}get stem(){return typeof this.path=="string"?Gr.basename(this.path,this.extname):void 0}set stem(r){Ma(r,"stem"),Ba(r,"stem"),this.path=Gr.join(this.dirname||"",r+(this.extname||""))}toString(r){return(this.value||"").toString(r)}message(r,e,n){let i=new ar(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 Ba(t,r){if(t&&t.includes(Gr.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Gr.sep+"`")}function Ma(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Yf(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}var Ka=sc().freeze(),oc={}.hasOwnProperty;function sc(){let t=Kf(),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=f,o.parse=m,o.stringify=p,o.run=v,o.runSync=$,o.process=w,o.processSync=k,o;function o(){let I=sc(),j=-1;for(;++j<r.length;)I.use(...r[j]);return I.data((0,Ha.default)(!0,{},e)),I}function a(I,j){return typeof I=="string"?arguments.length===2?(Ua("data",n),e[I]=j,o):oc.call(e,I)&&e[I]||null:I?(Ua("data",n),e=I,o):e}function u(){if(n)return o;for(;++i<r.length;){let[I,...j]=r[i];if(j[0]===!1)continue;j[0]===!0&&(j[0]=void 0);let D=I.call(o,...j);typeof D=="function"&&t.use(D)}return n=!0,i=Number.POSITIVE_INFINITY,o}function f(I,...j){let D;if(Ua("use",n),I!=null)if(typeof I=="function")ce(I,...j);else if(typeof I=="object")Array.isArray(I)?de(I):ee(I);else throw new TypeError("Expected usable value, not `"+I+"`");return D&&(e.settings=Object.assign(e.settings||{},D)),o;function Y(Q){if(typeof Q=="function")ce(Q);else if(typeof Q=="object")if(Array.isArray(Q)){let[me,...we]=Q;ce(me,...we)}else ee(Q);else throw new TypeError("Expected usable value, not `"+Q+"`")}function ee(Q){de(Q.plugins),Q.settings&&(D=Object.assign(D||{},Q.settings))}function de(Q){let me=-1;if(Q!=null)if(Array.isArray(Q))for(;++me<Q.length;){let we=Q[me];Y(we)}else throw new TypeError("Expected a list of plugins, not `"+Q+"`")}function ce(Q,me){let we=-1,_e;for(;++we<r.length;)if(r[we][0]===Q){_e=r[we];break}_e?(_o(_e[1])&&_o(me)&&(me=(0,Ha.default)(!0,_e[1],me)),_e[1]=me):r.push([...arguments])}}function m(I){o.freeze();let j=xo(I),D=o.Parser;return za("parse",D),tc(D,"parse")?new D(String(j),j).parse():D(String(j),j)}function p(I,j){o.freeze();let D=xo(j),Y=o.Compiler;return Va("stringify",Y),rc(I),tc(Y,"compile")?new Y(I,D).compile():Y(I,D)}function v(I,j,D){if(rc(I),o.freeze(),!D&&typeof j=="function"&&(D=j,j=void 0),!D)return new Promise(Y);Y(null,D);function Y(ee,de){t.run(I,xo(j),ce);function ce(Q,me,we){me=me||I,Q?de(Q):ee?ee(me):D(null,me,we)}}}function $(I,j){let D,Y;return o.run(I,j,ee),nc("runSync","run",Y),D;function ee(de,ce){Ra(de),D=ce,Y=!0}}function w(I,j){if(o.freeze(),za("process",o.Parser),Va("process",o.Compiler),!j)return new Promise(D);D(null,j);function D(Y,ee){let de=xo(I);o.run(o.parse(de),de,(Q,me,we)=>{if(Q||!me||!we)ce(Q);else{let _e=o.stringify(me,we);_e==null||($g(_e)?we.value=_e:we.result=_e),ce(Q,we)}});function ce(Q,me){Q||!me?ee(Q):Y?Y(me):j(null,me)}}}function k(I){let j;o.freeze(),za("processSync",o.Parser),Va("processSync",o.Compiler);let D=xo(I);return o.process(D,Y),nc("processSync","process",j),D;function Y(ee){j=!0,Ra(ee)}}}function tc(t,r){return typeof t=="function"&&t.prototype&&(yg(t.prototype)||r in t.prototype)}function yg(t){let r;for(r in t)if(oc.call(t,r))return!0;return!1}function za(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function Va(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Ua(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 rc(t){if(!_o(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function nc(t,r,e){if(!e)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function xo(t){return vg(t)?t:new Co(t)}function vg(t){return Boolean(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function $g(t){return typeof t=="string"||(0,ic.default)(t)}function lc(t,r){var{includeImageAlt:e=!0}=r||{};return uc(t,e)}function uc(t,r){return t&&typeof t=="object"&&(t.value||(r?t.alt:"")||"children"in t&&ac(t.children,r)||Array.isArray(t)&&ac(t,r))||""}function ac(t,r){for(var e=[],n=-1;++n<t.length;)e[n]=uc(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 lr(t,r){return t.length>0?(gt(t,t.length,0,r),t):r}var fc={}.hasOwnProperty;function $s(t){let r={},e=-1;for(;++e<t.length;)bg(r,t[e]);return r}function bg(t,r){let e;for(e in r){let i=(fc.call(t,e)?t[e]:void 0)||(t[e]={}),o=r[e],a;for(a in o){fc.call(i,a)||(i[a]=[]);let u=o[a];wg(i[a],Array.isArray(u)?u:u?[u]:[])}}}function wg(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 cc=/[!-/:-@[-`{-~\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 Qt=Mn(/[A-Za-z]/),li=Mn(/\d/),pc=Mn(/[\dA-Fa-f]/),Ot=Mn(/[\dA-Za-z]/),dc=Mn(/[!-/:-@[-`{-~]/),Wa=Mn(/[#-'*+\--9=?A-Z^-~]/);function Bn(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 Oe(t){return t===-2||t===-1||t===32}var ui=Mn(/\s/),fi=Mn(cc);function Mn(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(f){return Oe(f)?(t.enter(e),u(f)):r(f)}function u(f){return Oe(f)&&o++<i?(t.consume(f),u):(t.exit(e),r(f))}}var mc={tokenize:_g};function _g(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 f=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=f),e=f,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 gc={tokenize:kg},hc={tokenize:Cg};function kg(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,f,m)(ee)}return m(ee)}function f(ee){if(n++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,i&&Y();let de=r.events.length,ce=de,Q;for(;ce--;)if(r.events[ce][0]==="exit"&&r.events[ce][1].type==="chunkFlow"){Q=r.events[ce][1].end;break}D(n);let me=de;for(;me<r.events.length;)r.events[me][1].end=Object.assign({},Q),me++;return gt(r.events,ce+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 $(ee);if(i.currentConstruct&&i.currentConstruct.concrete)return k(ee);r.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(hc,p,v)(ee)}function p(ee){return i&&Y(),D(n),$(ee)}function v(ee){return r.parser.lazy[r.now().line]=n!==e.length,a=r.now().offset,k(ee)}function $(ee){return r.containerState={},t.attempt(hc,w,k)(ee)}function w(ee){return n++,e.push([r.currentConstruct,r.containerState]),$(ee)}function k(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}),I(ee)}function I(ee){if(ee===null){j(t.exit("chunkFlow"),!0),D(0),t.consume(ee);return}return le(ee)?(t.consume(ee),j(t.exit("chunkFlow")),n=0,r.interrupt=void 0,u):(t.consume(ee),I)}function j(ee,de){let ce=r.sliceStream(ee);if(de&&ce.push(null),ee.previous=o,o&&(o.next=ee),o=ee,i.defineSkip(ee.start),i.write(ce),r.parser.lazy[ee.start.line]){let Q=i.events.length;for(;Q--;)if(i.events[Q][1].start.offset<a&&(!i.events[Q][1].end||i.events[Q][1].end.offset>a))return;let me=r.events.length,we=me,_e,Te;for(;we--;)if(r.events[we][0]==="exit"&&r.events[we][1].type==="chunkFlow"){if(_e){Te=r.events[we][1].end;break}_e=!0}for(D(n),Q=me;Q<r.events.length;)r.events[Q][1].end=Object.assign({},Te),Q++;gt(r.events,we+1,0,r.events.slice(me)),r.events.length=Q}}function D(ee){let de=e.length;for(;de-- >ee;){let ce=e[de];r.containerState=ce[1],ce[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 Cg(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 Wi(t){if(t===null||Ve(t)||ui(t))return 1;if(fi(t))return 2}function zn(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 Eo={name:"attention",tokenize:Eg,resolveAll:xg};function xg(t,r){let e=-1,n,i,o,a,u,f,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;f=t[n][1].end.offset-t[n][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let v=Object.assign({},t[n][1].end),$=Object.assign({},t[e][1].start);yc(v,-f),yc($,f),a={type:f>1?"strongSequence":"emphasisSequence",start:v,end:Object.assign({},t[n][1].end)},u={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:$},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[e][1].start)},i={type:f>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=lr(m,[["enter",t[n][1],r],["exit",t[n][1],r]])),m=lr(m,[["enter",i,r],["enter",a,r],["exit",a,r],["enter",o,r]]),m=lr(m,zn(r.parser.constructs.insideSpan.null,t.slice(n+1,e),r)),m=lr(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=lr(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 Eg(t,r){let e=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Wi(n),o;return a;function a(f){return t.enter("attentionSequence"),o=f,u(f)}function u(f){if(f===o)return t.consume(f),u;let m=t.exit("attentionSequence"),p=Wi(f),v=!p||p===2&&i||e.includes(f),$=!i||i===2&&p||e.includes(n);return m._open=Boolean(o===42?v:v&&(i||!$)),m._close=Boolean(o===42?$:$&&(p||!v)),r(f)}}function yc(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}var Ga={name:"autolink",tokenize:Ag};function Ag(t,r,e){let n=1;return i;function i(k){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(k){return Qt(k)?(t.consume(k),a):Wa(k)?m(k):e(k)}function a(k){return k===43||k===45||k===46||Ot(k)?u(k):m(k)}function u(k){return k===58?(t.consume(k),f):(k===43||k===45||k===46||Ot(k))&&n++<32?(t.consume(k),u):m(k)}function f(k){return k===62?(t.exit("autolinkProtocol"),w(k)):k===null||k===32||k===60||Bn(k)?e(k):(t.consume(k),f)}function m(k){return k===64?(t.consume(k),n=0,p):Wa(k)?(t.consume(k),m):e(k)}function p(k){return Ot(k)?v(k):e(k)}function v(k){return k===46?(t.consume(k),n=0,p):k===62?(t.exit("autolinkProtocol").type="autolinkEmail",w(k)):$(k)}function $(k){return(k===45||Ot(k))&&n++<63?(t.consume(k),k===45?$:v):e(k)}function w(k){return t.enter("autolinkMarker"),t.consume(k),t.exit("autolinkMarker"),t.exit("autolink"),r}}var cn={tokenize:Sg,partial:!0};function Sg(t,r,e){return ye(t,n,"linePrefix");function n(i){return i===null||le(i)?r(i):e(i)}}var bs={name:"blockQuote",tokenize:Pg,continuation:{tokenize:Ig},exit:Og};function Pg(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 Oe(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(a))}}function Ig(t,r,e){return ye(t,t.attempt(bs,r,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Og(t){t.exit("blockQuote")}var ws={name:"characterEscape",tokenize:Fg};function Fg(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 dc(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):e(o)}}var vc=document.createElement("i");function Gi(t){let r="&"+t+";";vc.innerHTML=r;let e=vc.textContent;return e.charCodeAt(e.length-1)===59&&t!=="semi"||e===r?!1:e}var _s={name:"characterReference",tokenize:Tg};function Tg(t,r,e){let n=this,i=0,o,a;return u;function u(v){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),f}function f(v){return v===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(v),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,a=Ot,p(v))}function m(v){return v===88||v===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(v),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=pc,p):(t.enter("characterReferenceValue"),o=7,a=li,p(v))}function p(v){let $;return v===59&&i?($=t.exit("characterReferenceValue"),a===Ot&&!Gi(n.sliceSerialize($))?e(v):(t.enter("characterReferenceMarker"),t.consume(v),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)):a(v)&&i++<o?(t.consume(v),p):e(v)}}var ks={name:"codeFenced",tokenize:Ng,concrete:!0};function Ng(t,r,e){let n=this,i={tokenize:ce,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,f=0,m;return p;function p(Q){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m=Q,v(Q)}function v(Q){return Q===m?(t.consume(Q),f++,v):(t.exit("codeFencedFenceSequence"),f<3?e(Q):ye(t,$,"whitespace")(Q))}function $(Q){return Q===null||le(Q)?j(Q):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),w(Q))}function w(Q){return Q===null||Ve(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ye(t,k,"whitespace")(Q)):Q===96&&Q===m?e(Q):(t.consume(Q),w)}function k(Q){return Q===null||le(Q)?j(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),I(Q))}function I(Q){return Q===null||le(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),j(Q)):Q===96&&Q===m?e(Q):(t.consume(Q),I)}function j(Q){return t.exit("codeFencedFence"),n.interrupt?r(Q):D(Q)}function D(Q){return Q===null?ee(Q):le(Q)?t.attempt(o,t.attempt(i,ee,u?ye(t,D,"linePrefix",u+1):D),ee)(Q):(t.enter("codeFlowValue"),Y(Q))}function Y(Q){return Q===null||le(Q)?(t.exit("codeFlowValue"),D(Q)):(t.consume(Q),Y)}function ee(Q){return t.exit("codeFenced"),r(Q)}function de(Q,me,we){let _e=this;return Te;function Te(xe){return Q.enter("lineEnding"),Q.consume(xe),Q.exit("lineEnding"),Ce}function Ce(xe){return _e.parser.lazy[_e.now().line]?we(xe):me(xe)}}function ce(Q,me,we){let _e=0;return ye(Q,Te,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Te(fe){return Q.enter("codeFencedFence"),Q.enter("codeFencedFenceSequence"),Ce(fe)}function Ce(fe){return fe===m?(Q.consume(fe),_e++,Ce):_e<f?we(fe):(Q.exit("codeFencedFenceSequence"),ye(Q,xe,"whitespace")(fe))}function xe(fe){return fe===null||le(fe)?(Q.exit("codeFencedFence"),me(fe)):we(fe)}}}var Ao={name:"codeIndented",tokenize:jg},Dg={tokenize:Rg,partial:!0};function jg(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?f(m):le(m)?t.attempt(Dg,a,f)(m):(t.enter("codeFlowValue"),u(m))}function u(m){return m===null||le(m)?(t.exit("codeFlowValue"),a(m)):(t.consume(m),u)}function f(m){return t.exit("codeIndented"),r(m)}}function Rg(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 Qa={name:"codeText",tokenize:Bg,resolve:Lg,previous:qg};function Lg(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 qg(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bg(t,r,e){let n=this,i=0,o,a;return u;function u($){return t.enter("codeText"),t.enter("codeTextSequence"),f($)}function f($){return $===96?(t.consume($),i++,f):(t.exit("codeTextSequence"),m($))}function m($){return $===null?e($):$===96?(a=t.enter("codeTextSequence"),o=0,v($)):$===32?(t.enter("space"),t.consume($),t.exit("space"),m):le($)?(t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),m):(t.enter("codeTextData"),p($))}function p($){return $===null||$===32||$===96||le($)?(t.exit("codeTextData"),m($)):(t.consume($),p)}function v($){return $===96?(t.consume($),o++,v):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),r($)):(a.type="codeTextData",p($))}}function Cs(t){let r={},e=-1,n,i,o,a,u,f,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"&&(f=n[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(r,Mg(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 Mg(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,f=[],m={},p,v,$=-1,w=e,k=0,I=0,j=[I];for(;w;){for(;t[++i][1]!==w;);o.push(i),w._tokenizer||(p=n.sliceStream(w),w.next||p.push(null),v&&a.defineSkip(w.start),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),w._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),v=w,w=w.next}for(w=e;++$<u.length;)u[$][0]==="exit"&&u[$-1][0]==="enter"&&u[$][1].type===u[$-1][1].type&&u[$][1].start.line!==u[$][1].end.line&&(I=$+1,j.push(I),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(a.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),$=j.length;$--;){let D=u.slice(j[$],j[$+1]),Y=o.pop();f.unshift([Y,Y+D.length-1]),gt(t,Y,2,D)}for($=-1;++$<f.length;)m[k+f[$][0]]=k+f[$][1],k+=f[$][1]-f[$][0]-1;return m}var Za={tokenize:Ug,resolve:Vg},zg={tokenize:Hg,partial:!0};function Vg(t){return Cs(t),t}function Ug(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(zg,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 Hg(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,f){let m=f||Number.POSITIVE_INFINITY,p=0;return v;function v(D){return D===60?(t.enter(n),t.enter(i),t.enter(o),t.consume(D),t.exit(o),$):D===null||D===41||Bn(D)?e(D):(t.enter(n),t.enter(a),t.enter(u),t.enter("chunkString",{contentType:"string"}),I(D))}function $(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),$(D)):D===null||D===60||le(D)?e(D):(t.consume(D),D===92?k:w)}function k(D){return D===60||D===62||D===92?(t.consume(D),w):w(D)}function I(D){return D===40?++p>m?e(D):(t.consume(D),I):D===41?p--?(t.consume(D),I):(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)):Bn(D)?e(D):(t.consume(D),D===92?j:I)}function j(D){return D===40||D===41||D===92?(t.consume(D),I):I(D)}}function Es(t,r,e,n,i,o){let a=this,u=0,f;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&&!f||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"}),v(w))}function v(w){return w===null||w===91||w===93||le(w)||u++>999?(t.exit("chunkString"),p(w)):(t.consume(w),f=f||!Oe(w),w===92?$:v)}function $(w){return w===91||w===92||w===93?(t.consume(w),u++,v):v(w)}}function As(t,r,e,n,i,o){let a;return u;function u($){return t.enter(n),t.enter(i),t.consume($),t.exit(i),a=$===40?41:$,f}function f($){return $===a?(t.enter(i),t.consume($),t.exit(i),t.exit(n),r):(t.enter(o),m($))}function m($){return $===a?(t.exit(o),f(a)):$===null?e($):le($)?(t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),ye(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),p($))}function p($){return $===a||$===null||le($)?(t.exit("chunkString"),m($)):(t.consume($),$===92?v:p)}function v($){return $===a||$===92?(t.consume($),p):p($)}}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):Oe(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 Ja={name:"definition",tokenize:Wg},Kg={tokenize:Gg,partial:!0};function Wg(t,r,e){let n=this,i;return o;function o(f){return t.enter("definition"),Es.call(n,t,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Zt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),ci(t,xs(t,t.attempt(Kg,ye(t,u,"whitespace"),ye(t,u,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(f)}function u(f){return f===null||le(f)?(t.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),r(f)):e(f)}}function Gg(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:Qg};function Qg(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:Jg,resolve:Zg};function Zg(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 Jg(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"),f(p)):p===null||le(p)?(t.exit("atxHeading"),r(p)):Oe(p)?ye(t,u,"whitespace")(p):(t.enter("atxHeadingText"),m(p))}function f(p){return p===35?(t.consume(p),f):(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 $c=["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:ey,resolveTo:Yg,concrete:!0},Xg={tokenize:ty,partial:!0};function Yg(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 ey(t,r,e){let n=this,i,o,a,u,f;return m;function m(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),p}function p(N){return N===33?(t.consume(N),v):N===47?(t.consume(N),k):N===63?(t.consume(N),i=3,n.interrupt?r:tt):Qt(N)?(t.consume(N),a=String.fromCharCode(N),o=!0,I):e(N)}function v(N){return N===45?(t.consume(N),i=2,$):N===91?(t.consume(N),i=5,a="CDATA[",u=0,w):Qt(N)?(t.consume(N),i=4,n.interrupt?r:tt):e(N)}function $(N){return N===45?(t.consume(N),n.interrupt?r:tt):e(N)}function w(N){return N===a.charCodeAt(u++)?(t.consume(N),u===a.length?n.interrupt?r:Ce:w):e(N)}function k(N){return Qt(N)?(t.consume(N),a=String.fromCharCode(N),I):e(N)}function I(N){return N===null||N===47||N===62||Ve(N)?N!==47&&o&&el.includes(a.toLowerCase())?(i=1,n.interrupt?r(N):Ce(N)):$c.includes(a.toLowerCase())?(i=6,N===47?(t.consume(N),j):n.interrupt?r(N):Ce(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?e(N):o?Y(N):D(N)):N===45||Ot(N)?(t.consume(N),a+=String.fromCharCode(N),I):e(N)}function j(N){return N===62?(t.consume(N),n.interrupt?r:Ce):e(N)}function D(N){return Oe(N)?(t.consume(N),D):_e(N)}function Y(N){return N===47?(t.consume(N),_e):N===58||N===95||Qt(N)?(t.consume(N),ee):Oe(N)?(t.consume(N),Y):_e(N)}function ee(N){return N===45||N===46||N===58||N===95||Ot(N)?(t.consume(N),ee):de(N)}function de(N){return N===61?(t.consume(N),ce):Oe(N)?(t.consume(N),de):Y(N)}function ce(N){return N===null||N===60||N===61||N===62||N===96?e(N):N===34||N===39?(t.consume(N),f=N,Q):Oe(N)?(t.consume(N),ce):(f=null,me(N))}function Q(N){return N===null||le(N)?e(N):N===f?(t.consume(N),we):(t.consume(N),Q)}function me(N){return N===null||N===34||N===39||N===60||N===61||N===62||N===96||Ve(N)?de(N):(t.consume(N),me)}function we(N){return N===47||N===62||Oe(N)?Y(N):e(N)}function _e(N){return N===62?(t.consume(N),Te):e(N)}function Te(N){return Oe(N)?(t.consume(N),Te):N===null||le(N)?Ce(N):e(N)}function Ce(N){return N===45&&i===2?(t.consume(N),Ke):N===60&&i===1?(t.consume(N),U):N===62&&i===4?(t.consume(N),He):N===63&&i===3?(t.consume(N),tt):N===93&&i===5?(t.consume(N),Le):le(N)&&(i===6||i===7)?t.check(Xg,He,xe)(N):N===null||le(N)?xe(N):(t.consume(N),Ce)}function xe(N){return t.exit("htmlFlowData"),fe(N)}function fe(N){return N===null?T(N):le(N)?t.attempt({tokenize:be,partial:!0},fe,T)(N):(t.enter("htmlFlowData"),Ce(N))}function be(N,Vt,kt){return it;function it(ct){return N.enter("lineEnding"),N.consume(ct),N.exit("lineEnding"),ft}function ft(ct){return n.parser.lazy[n.now().line]?kt(ct):Vt(ct)}}function Ke(N){return N===45?(t.consume(N),tt):Ce(N)}function U(N){return N===47?(t.consume(N),a="",at):Ce(N)}function at(N){return N===62&&el.includes(a.toLowerCase())?(t.consume(N),He):Qt(N)&&a.length<8?(t.consume(N),a+=String.fromCharCode(N),at):Ce(N)}function Le(N){return N===93?(t.consume(N),tt):Ce(N)}function tt(N){return N===62?(t.consume(N),He):N===45&&i===2?(t.consume(N),tt):Ce(N)}function He(N){return N===null||le(N)?(t.exit("htmlFlowData"),T(N)):(t.consume(N),He)}function T(N){return t.exit("htmlFlow"),r(N)}}function ty(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:ry};function ry(t,r,e){let n=this,i,o,a,u;return f;function f(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),m}function m(T){return T===33?(t.consume(T),p):T===47?(t.consume(T),me):T===63?(t.consume(T),ce):Qt(T)?(t.consume(T),Te):e(T)}function p(T){return T===45?(t.consume(T),v):T===91?(t.consume(T),o="CDATA[",a=0,j):Qt(T)?(t.consume(T),de):e(T)}function v(T){return T===45?(t.consume(T),$):e(T)}function $(T){return T===null||T===62?e(T):T===45?(t.consume(T),w):k(T)}function w(T){return T===null||T===62?e(T):k(T)}function k(T){return T===null?e(T):T===45?(t.consume(T),I):le(T)?(u=k,Le(T)):(t.consume(T),k)}function I(T){return T===45?(t.consume(T),He):k(T)}function j(T){return T===o.charCodeAt(a++)?(t.consume(T),a===o.length?D:j):e(T)}function D(T){return T===null?e(T):T===93?(t.consume(T),Y):le(T)?(u=D,Le(T)):(t.consume(T),D)}function Y(T){return T===93?(t.consume(T),ee):D(T)}function ee(T){return T===62?He(T):T===93?(t.consume(T),ee):D(T)}function de(T){return T===null||T===62?He(T):le(T)?(u=de,Le(T)):(t.consume(T),de)}function ce(T){return T===null?e(T):T===63?(t.consume(T),Q):le(T)?(u=ce,Le(T)):(t.consume(T),ce)}function Q(T){return T===62?He(T):ce(T)}function me(T){return Qt(T)?(t.consume(T),we):e(T)}function we(T){return T===45||Ot(T)?(t.consume(T),we):_e(T)}function _e(T){return le(T)?(u=_e,Le(T)):Oe(T)?(t.consume(T),_e):He(T)}function Te(T){return T===45||Ot(T)?(t.consume(T),Te):T===47||T===62||Ve(T)?Ce(T):e(T)}function Ce(T){return T===47?(t.consume(T),He):T===58||T===95||Qt(T)?(t.consume(T),xe):le(T)?(u=Ce,Le(T)):Oe(T)?(t.consume(T),Ce):He(T)}function xe(T){return T===45||T===46||T===58||T===95||Ot(T)?(t.consume(T),xe):fe(T)}function fe(T){return T===61?(t.consume(T),be):le(T)?(u=fe,Le(T)):Oe(T)?(t.consume(T),fe):Ce(T)}function be(T){return T===null||T===60||T===61||T===62||T===96?e(T):T===34||T===39?(t.consume(T),i=T,Ke):le(T)?(u=be,Le(T)):Oe(T)?(t.consume(T),be):(t.consume(T),i=void 0,at)}function Ke(T){return T===i?(t.consume(T),U):T===null?e(T):le(T)?(u=Ke,Le(T)):(t.consume(T),Ke)}function U(T){return T===62||T===47||Ve(T)?Ce(T):e(T)}function at(T){return T===null||T===34||T===39||T===60||T===61||T===96?e(T):T===62||Ve(T)?Ce(T):(t.consume(T),at)}function Le(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),ye(t,tt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tt(T){return t.enter("htmlTextData"),u(T)}function He(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),r):e(T)}}var pi={name:"labelEnd",tokenize:ly,resolveTo:ay,resolveAll:sy},ny={tokenize:uy},iy={tokenize:fy},oy={tokenize:cy};function sy(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 ay(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 f={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",f,r],["enter",m,r]],u=lr(u,t.slice(o+1,o+n+3)),u=lr(u,[["enter",p,r]]),u=lr(u,zn(r.parser.constructs.insideSpan.null,t.slice(o+n+4,a-3),r)),u=lr(u,[["exit",p,r],t[a-2],t[a-1],["exit",m,r]]),u=lr(u,t.slice(a+1)),u=lr(u,[["exit",f,r]]),gt(t,o,t.length,u),t}function ly(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"),f):e(p)}function f(p){return p===40?t.attempt(ny,r,a?r:m)(p):p===91?t.attempt(iy,r,a?t.attempt(oy,r,m):m)(p):a?r(p):m(p)}function m(p){return o._balanced=!0,e(p)}}function uy(t,r,e){return n;function n(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),ci(t,i)}function i(f){return f===41?u(f):xs(t,o,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ve(f)?ci(t,a)(f):u(f)}function a(f){return f===34||f===39||f===40?As(t,ci(t,u),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function u(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),r):e(f)}}function fy(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 cy(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:py,resolveAll:pi.resolveAll};function py(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:dy,resolveAll:pi.resolveAll};function dy(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 So={name:"lineEnding",tokenize:my};function my(t,r){return e;function e(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ye(t,r,"linePrefix")}}var di={name:"thematicBreak",tokenize:hy};function hy(t,r,e){let n=0,i;return o;function o(f){return t.enter("thematicBreak"),i=f,a(f)}function a(f){return f===i?(t.enter("thematicBreakSequence"),u(f)):Oe(f)?ye(t,a,"whitespace")(f):n<3||f!==null&&!le(f)?e(f):(t.exit("thematicBreak"),r(f))}function u(f){return f===i?(t.consume(f),n++,u):(t.exit("thematicBreakSequence"),a(f))}}var Jt={name:"list",tokenize:vy,continuation:{tokenize:$y},exit:wy},gy={tokenize:_y,partial:!0},yy={tokenize:by,partial:!0};function vy(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 k=n.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!n.containerState.marker||w===n.containerState.marker:li(w)){if(n.containerState.type||(n.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(di,e,m)(w):m(w);if(!n.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(w)}return e(w)}function f(w){return li(w)&&++a<10?(t.consume(w),f):(!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(gy,$,v))}function p(w){return n.containerState.initialBlankLine=!0,o++,$(w)}function v(w){return Oe(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),$):e(w)}function $(w){return n.containerState.size=o+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(w)}}function $y(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||!Oe(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(yy,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 by(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 wy(t){t.exit(this.containerState.type)}function _y(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!Oe(o)&&a&&a[1].type==="listItemPrefixWhitespace"?r(o):e(o)}}var Ss={name:"setextUnderline",tokenize:Cy,resolveTo:ky};function ky(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 Cy(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,f(p)):e(p)}function f(p){return p===o?(t.consume(p),f):(t.exit("setextHeadingLineSequence"),ye(t,m,"lineSuffix")(p))}function m(p){return p===null||le(p)?(t.exit("setextHeadingLine"),r(p)):e(p)}}var bc={tokenize:xy};function xy(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(Za,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 wc={resolveAll:xc()},_c=Cc("string"),kc=Cc("text");function Cc(t){return{tokenize:r,resolveAll:xc(t==="text"?Ey: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),f}function f(p){return m(p)?(e.exit("data"),o(p)):(e.consume(p),f)}function m(p){if(p===null)return!0;let v=i[p],$=-1;if(v)for(;++$<v.length;){let w=v[$];if(!w.previous||w.previous.call(n,n.previous))return!0}return!1}}}function xc(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 Ey(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,f;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)f=!0,u++;else if(m!==-1){o++;break}}if(u){let m={type:e===t.length||f||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 Ec(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=[],f=!0,m={consume:de,enter:ce,exit:Q,attempt:_e(me),check:_e(we),interrupt:_e(we,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:I,sliceSerialize:k,now:j,defineSkip:D,write:w},v=r.tokenize.call(p,m),$;return r.resolveAll&&o.push(r),p;function w(fe){return a=lr(a,fe),Y(),a[a.length-1]!==null?[]:(Te(r,0),p.events=zn(o,p.events,p),p.events)}function k(fe,be){return Sy(I(fe),be)}function I(fe){return Ay(a,fe)}function j(){return Object.assign({},n)}function D(fe){i[fe.line]=fe.column,xe()}function Y(){let fe;for(;n._index<a.length;){let be=a[n._index];if(typeof be=="string")for(fe=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===fe&&n._bufferIndex<be.length;)ee(be.charCodeAt(n._bufferIndex));else ee(be)}}function ee(fe){f=void 0,$=fe,v=v(fe)}function de(fe){le(fe)?(n.line++,n.column=1,n.offset+=fe===-3?2:1,xe()):fe!==-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=fe,f=!0}function ce(fe,be){let Ke=be||{};return Ke.type=fe,Ke.start=j(),p.events.push(["enter",Ke,p]),u.push(Ke),Ke}function Q(fe){let be=u.pop();return be.end=j(),p.events.push(["exit",be,p]),be}function me(fe,be){Te(fe,be.from)}function we(fe,be){be.restore()}function _e(fe,be){return Ke;function Ke(U,at,Le){let tt,He,T,N;return Array.isArray(U)?kt(U):"tokenize"in U?kt([U]):Vt(U);function Vt($e){return _r;function _r(Et){let Nt=Et!==null&&$e[Et],rr=Et!==null&&$e.null,pr=[...Array.isArray(Nt)?Nt:Nt?[Nt]:[],...Array.isArray(rr)?rr:rr?[rr]:[]];return kt(pr)(Et)}}function kt($e){return tt=$e,He=0,$e.length===0?Le:it($e[He])}function it($e){return _r;function _r(Et){return N=Ce(),T=$e,$e.partial||(p.currentConstruct=$e),$e.name&&p.parser.constructs.disable.null.includes($e.name)?ct(Et):$e.tokenize.call(be?Object.assign(Object.create(p),be):p,m,ft,ct)(Et)}}function ft($e){return f=!0,fe(T,N),at}function ct($e){return f=!0,N.restore(),++He<tt.length?it(tt[He]):Le}}}function Te(fe,be){fe.resolveAll&&!o.includes(fe)&&o.push(fe),fe.resolve&&gt(p.events,be,p.events.length-be,fe.resolve(p.events.slice(be),p)),fe.resolveTo&&(p.events=fe.resolveTo(p.events,p))}function Ce(){let fe=j(),be=p.previous,Ke=p.currentConstruct,U=p.events.length,at=Array.from(u);return{restore:Le,from:U};function Le(){n=fe,p.previous=be,p.currentConstruct=Ke,p.events.length=U,u=at,xe()}}function xe(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Ay(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 Sy(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=`
17
17
  `;break}case-3:{a=`\r
18
- `;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={};sg(ol,{attentionMarkers:()=>jy,contentInitial:()=>Iy,disable:()=>Ry,document:()=>Py,flow:()=>Fy,flowInitial:()=>Oy,insideSpan:()=>Dy,string:()=>Ty,text:()=>Ny});var Py={[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]:bs},Iy={[91]:Ja},Oy={[-2]:Ao,[-1]:Ao,[32]:Ao},Fy={[35]:Ya,[42]:di,[45]:[Ss,di],[60]:tl,[61]:Ss,[95]:di,[96]:ks,[126]:ks},Ty={[38]:_s,[92]:ws},Ny={[-5]:So,[-4]:So,[-3]:So,[33]:nl,[38]:_s,[42]:Eo,[60]:[Ga,rl],[91]:il,[92]:[Xa,ws],[93]:pi,[95]:Eo,[96]:Qa},Dy={null:[Eo,bc]},jy={null:[42,95]},Ry={null:[]};function Ec(t={}){let r=$s([ol].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(dc),document:n(hc),flow:n($c),string:n(wc),text:n(_c)};return e;function n(i){return o;function o(a){return xc(e,i,a)}}}var Ac=/[\0\t\n\r]/g;function Sc(){let t=1,r="",e=!0,n;return i;function i(o,a,u){let f=[],m,p,v,$,w;for(o=r+o.toString(a),v=0,r="",e&&(o.charCodeAt(0)===65279&&v++,e=void 0);v<o.length;){if(Ac.lastIndex=v,m=Ac.exec(o),$=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt($),!m){r=o.slice(v);break}if(w===10&&v===$&&n)f.push(-3),n=void 0;else switch(n&&(f.push(-5),n=void 0),v<$&&(f.push(o.slice(v,$)),t+=$-v),w){case 0:{f.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,f.push(-2);t++<p;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:n=!0,t=1}v=$+1}return u&&(n&&f.push(-5),r&&f.push(r),f.push(null)),f}}function Pc(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 Ly=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Is(t){return t.replace(Ly,qy)}function qy(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 Gi(e)||t}var sl={}.hasOwnProperty,al=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),By(e)(Pc(Ec(e).document().write(Sc()(t,r,!0))))};function By(t={}){let r=Oc({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Ct),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:f(pt),blockQuote:f(rr),characterEscape:xe,characterReference:xe,codeFenced:f(pr),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:f(pr,m),codeText:f(Ut,m),codeTextData:xe,data:xe,codeFlowValue:xe,definition:f(Qn),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:f(Nn),hardBreakEscape:f(dt),hardBreakTrailing:f(dt),htmlFlow:f(Dt,m),htmlFlowData:xe,htmlText:f(Dt,m),htmlTextData:xe,image:f(mt),label:m,link:f(Ct),listItem:f(Rr),listItemValue:I,listOrdered:f(jr,k),listUnordered:f(jr),paragraph:f(Lr),reference:ft,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:f(pt),strong:f(qr),thematicBreak:f(nr)},exit:{atxHeading:v(),atxHeadingSequence:we,autolink:v(),autolinkEmail:Nt,autolinkProtocol:Et,blockQuote:v(),characterEscapeValue:fe,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:_r,codeFenced:v(ee),codeFencedFence:Y,codeFencedFenceInfo:j,codeFencedFenceMeta:D,codeFlowValue:fe,codeIndented:v(de),codeText:v(Le),codeTextData:fe,data:fe,definition:v(),definitionDestinationString:me,definitionLabelString:ce,definitionTitleString:Q,emphasis:v(),hardBreakEscape:v(Ke),hardBreakTrailing:v(Ke),htmlFlow:v(U),htmlFlowData:fe,htmlText:v(at),htmlTextData:fe,image:v(He),label:N,labelText:T,lineEnding:be,link:v(tt),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:ct,resourceDestinationString:Vt,resourceTitleString:kt,resource:it,setextHeading:v(Ce),setextHeadingLineSequence:Te,setextHeadingText:_e,strong:v(),thematicBreak:v()}},t.mdastExtensions||[]),e={};return n;function n(W){let ne={type:"root",children:[]},ge=[ne],Se=[],xt=[],Ar={stack:ge,tokenStack:Se,config:r,enter:p,exit:$,buffer:m,resume:w,setData:o,getData:a},ze=-1;for(;++ze<W.length;)if(W[ze][1].type==="listOrdered"||W[ze][1].type==="listUnordered")if(W[ze][0]==="enter")xt.push(ze);else{let ot=xt.pop();ze=i(W,ot,ze)}for(ze=-1;++ze<W.length;){let ot=r[W[ze][0]];sl.call(ot,W[ze][1].type)&&ot[W[ze][1].type].call(Object.assign({sliceSerialize:W[ze][2].sliceSerialize},Ar),W[ze][1])}if(Se.length>0){let ot=Se[Se.length-1];(ot[1]||Ic).call(Ar,void 0,ot[0])}for(ne.position={start:u(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:u(W.length>0?W[W.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(W,ne,ge){let Se=ne-1,xt=-1,Ar=!1,ze,ot,ht,Mr;for(;++Se<=ge;){let Ye=W[Se];if(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered"||Ye[1].type==="blockQuote"?(Ye[0]==="enter"?xt++:xt--,Mr=void 0):Ye[1].type==="lineEndingBlank"?Ye[0]==="enter"&&(ze&&!Mr&&!xt&&!ht&&(ht=Se),Mr=void 0):Ye[1].type==="linePrefix"||Ye[1].type==="listItemValue"||Ye[1].type==="listItemMarker"||Ye[1].type==="listItemPrefix"||Ye[1].type==="listItemPrefixWhitespace"||(Mr=void 0),!xt&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||xt===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(ze){let nn=Se;for(ot=void 0;nn--;){let At=W[nn];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;ot&&(W[ot][1].type="lineEndingBlank",Ar=!0),At[1].type="lineEnding",ot=nn}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}ht&&(!ot||ht<ot)&&(ze._spread=!0),ze.end=Object.assign({},ot?W[ot][1].start:Ye[1].end),W.splice(ot||Se,0,["exit",ze,Ye[2]]),Se++,ge++}Ye[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start)},W.splice(Se,0,["enter",ze,Ye[2]]),Se++,ge++,ht=void 0,Mr=!0)}}return W[ne][1]._spread=Ar,ge}function o(W,ne){e[W]=ne}function a(W){return e[W]}function u(W){return{line:W.line,column:W.column,offset:W.offset}}function f(W,ne){return ge;function ge(Se){p.call(this,W(Se),Se),ne&&ne.call(this,Se)}}function m(){this.stack.push({type:"fragment",children:[]})}function p(W,ne,ge){return this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ne,ge]),W.position={start:u(ne.start)},W}function v(W){return ne;function ne(ge){W&&W.call(this,ge),$.call(this,ge)}}function $(W,ne){let ge=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==W.type&&(ne?ne.call(this,W,Se[0]):(Se[1]||Ic).call(this,W,Se[0]));else throw new Error("Cannot close `"+W.type+"` ("+ai({start:W.start,end:W.end})+"): it\u2019s not open");return ge.position.end=u(W.end),ge}function w(){return ac(this.stack.pop())}function k(){o("expectingFirstListItemValue",!0)}function I(W){if(a("expectingFirstListItemValue")){let ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(W),10),o("expectingFirstListItemValue")}}function j(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=W}function D(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=W}function Y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function ee(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/(\r?\n|\r)$/g,"")}function ce(W){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(W)).toLowerCase()}function Q(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function me(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function we(W){let ne=this.stack[this.stack.length-1];if(!ne.depth){let ge=this.sliceSerialize(W).length;ne.depth=ge}}function _e(){o("setextHeadingSlurpLineEnding",!0)}function Te(W){let ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(W).charCodeAt(0)===61?1:2}function Ce(){o("setextHeadingSlurpLineEnding")}function xe(W){let ne=this.stack[this.stack.length-1],ge=ne.children[ne.children.length-1];(!ge||ge.type!=="text")&&(ge=Br(),ge.position={start:u(W.start)},ne.children.push(ge)),this.stack.push(ge)}function fe(W){let ne=this.stack.pop();ne.value+=this.sliceSerialize(W),ne.position.end=u(W.end)}function be(W){let ne=this.stack[this.stack.length-1];if(a("atHardBreak")){let ge=ne.children[ne.children.length-1];ge.position.end=u(W.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ne.type)&&(xe.call(this,W),fe.call(this,W))}function Ke(){o("atHardBreak",!0)}function U(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function at(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function Le(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function tt(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function He(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function T(W){let ne=this.stack[this.stack.length-2],ge=this.sliceSerialize(W);ne.label=Is(ge),ne.identifier=Zt(ge).toLowerCase()}function N(){let W=this.stack[this.stack.length-1],ne=this.resume(),ge=this.stack[this.stack.length-1];o("inReference",!0),ge.type==="link"?ge.children=W.children:ge.alt=ne}function Vt(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function kt(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function it(){o("inReference")}function ft(){o("referenceType","collapsed")}function ct(W){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(W)).toLowerCase(),o("referenceType","full")}function $e(W){o("characterReferenceType",W.type)}function _r(W){let ne=this.sliceSerialize(W),ge=a("characterReferenceType"),Se;ge?(Se=Ps(ne,ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Se=Gi(ne);let xt=this.stack.pop();xt.value+=Se,xt.position.end=u(W.end)}function Et(W){fe.call(this,W);let ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(W)}function Nt(W){fe.call(this,W);let ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(W)}function rr(){return{type:"blockquote",children:[]}}function pr(){return{type:"code",lang:null,meta:null,value:""}}function Ut(){return{type:"inlineCode",value:""}}function Qn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nn(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:void 0,children:[]}}function dt(){return{type:"break"}}function Dt(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function Ct(){return{type:"link",title:null,url:"",children:[]}}function jr(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function Rr(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function qr(){return{type:"strong",children:[]}}function Br(){return{type:"text",value:""}}function nr(){return{type:"thematicBreak"}}}function Oc(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?Oc(t,n):My(t,n)}return t}function My(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 Ic(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+ai({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+ai({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ai({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 Fc=ll;var zy={tokenize:Ky,partial:!0},Nc={tokenize:Wy,partial:!0},Dc={tokenize:Gy,partial:!0},Qi={tokenize:Zy,partial:!0},jc={tokenize:Qy,partial:!0},Rc={tokenize:Uy,previous:Bc},Lc={tokenize:Hy,previous:cl},An={tokenize:Vy,previous:Mc},pn={},ul={text:pn},mi=48;for(;mi<123;)pn[mi]=An,mi++,mi===58?mi=65:mi===91&&(mi=97);pn[43]=An;pn[45]=An;pn[46]=An;pn[95]=An;pn[72]=[An,Lc];pn[104]=[An,Lc];pn[87]=[An,Rc];pn[119]=[An,Rc];function Vy(t,r,e){let n=this,i,o;return a;function a(w){return!Tc(w)||!Mc(n.previous)||pl(n.events)?e(w):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(w))}function u(w){return Tc(w)?(t.consume(w),u):w===64?(t.consume(w),f):e(w)}function f(w){return w===46?t.check(Qi,$,m)(w):w===45||w===95?t.check(Qi,e,p)(w):Ot(w)?(!o&&li(w)&&(o=!0),t.consume(w),f):$(w)}function m(w){return t.consume(w),i=!0,o=void 0,f}function p(w){return t.consume(w),v}function v(w){return w===46?t.check(Qi,e,m)(w):f(w)}function $(w){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(w)):e(w)}}function Uy(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!Bc(n.previous)||pl(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(zy,t.attempt(Nc,t.attempt(Dc,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function Hy(t,r,e){let n=this;return i;function i(k){return k!==72&&k!==104||!cl(n.previous)||pl(n.events)?e(k):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(k),o)}function o(k){return k===84||k===116?(t.consume(k),a):e(k)}function a(k){return k===84||k===116?(t.consume(k),u):e(k)}function u(k){return k===80||k===112?(t.consume(k),f):e(k)}function f(k){return k===83||k===115?(t.consume(k),m):m(k)}function m(k){return k===58?(t.consume(k),p):e(k)}function p(k){return k===47?(t.consume(k),v):e(k)}function v(k){return k===47?(t.consume(k),$):e(k)}function $(k){return k===null||Bn(k)||ui(k)||fi(k)?e(k):t.attempt(Nc,t.attempt(Dc,w),e)(k)}function w(k){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(k)}}function Ky(t,r,e){return n;function n(f){return t.consume(f),i}function i(f){return f===87||f===119?(t.consume(f),o):e(f)}function o(f){return f===87||f===119?(t.consume(f),a):e(f)}function a(f){return f===46?(t.consume(f),u):e(f)}function u(f){return f===null||le(f)?e(f):r(f)}}function Wy(t,r,e){let n,i;return o;function o(f){return f===38?t.check(jc,u,a)(f):f===46||f===95?t.check(Qi,u,a)(f):f===null||Bn(f)||ui(f)||f!==45&&fi(f)?u(f):(t.consume(f),o)}function a(f){return f===46?(i=n,n=void 0,t.consume(f),o):(f===95&&(n=!0),t.consume(f),o)}function u(f){return!i&&!n?r(f):e(f)}}function Gy(t,r){let e=0;return n;function n(a){return a===38?t.check(jc,r,i)(a):(a===40&&e++,a===41?t.check(Qi,o,i)(a):fl(a)?r(a):qc(a)?t.check(Qi,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 Qy(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return Qt(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return fl(a)?r(a):e(a)}}function Zy(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return qc(o)?(t.consume(o),i):fl(o)?r(o):e(o)}}function qc(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 fl(t){return t===null||t===60||Ve(t)}function Tc(t){return t===43||t===45||t===46||t===95||Ot(t)}function Bc(t){return t===null||t===40||t===42||t===95||t===126||Ve(t)}function cl(t){return t===null||!Qt(t)}function Mc(t){return t!==47&&cl(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 Jy={tokenize:iv,partial:!0};function dl(){return{document:{[91]:{tokenize:tv,continuation:{tokenize:rv},exit:nv}},text:{[91]:{tokenize:ev},[93]:{add:"after",tokenize:Xy,resolveTo:Yy}}}}function Xy(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let f=n.events[i][1];if(f.type==="labelImage"){a=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return u;function u(f){if(!a||!a._balanced)return e(f);let m=Zt(n.sliceSerialize({start:a.end,end:n.now()}));return m.charCodeAt(0)!==94||!o.includes(m.slice(1))?e(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),r(f))}}function Yy(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)},f=[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,...f),t}function ev(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return u;function u($){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume($),t.exit("gfmFootnoteCallLabelMarker"),f}function f($){return $!==94?e($):(t.enter("gfmFootnoteCallMarker"),t.consume($),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m($){let w;return $===null||$===91||o++>999?e($):$===93?a?(t.exit("chunkString"),w=t.exit("gfmFootnoteCallString"),i.includes(Zt(n.sliceSerialize(w)))?v($):e($)):e($):(t.consume($),Ve($)||(a=!0),$===92?p:m)}function p($){return $===91||$===92||$===93?(t.consume($),o++,m):m($)}function v($){return t.enter("gfmFootnoteCallLabelMarker"),t.consume($),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function tv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,u;return f;function f(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),p):e(I)}function p(I){let j;return I===null||I===91||a>999?e(I):I===93?u?(j=t.exit("gfmFootnoteDefinitionLabelString"),o=Zt(n.sliceSerialize(j)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w):e(I):le(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),a++,p):(t.enter("chunkString").contentType="string",v(I))}function v(I){return I===null||le(I)||I===91||I===93||a>999?(t.exit("chunkString"),p(I)):(Ve(I)||(u=!0),a++,t.consume(I),I===92?$:v)}function $(I){return I===91||I===92||I===93?(t.consume(I),a++,v):v(I)}function w(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),ye(t,k,"gfmFootnoteDefinitionWhitespace")):e(I)}function k(I){return i.includes(o)||i.push(o),r(I)}}function rv(t,r,e){return t.check(cn,r,t.attempt(Jy,r,e))}function nv(t){t.exit("gfmFootnoteDefinition")}function iv(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 f=u;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[u][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[u][1].end)},p={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[u][1].start)},v=[["enter",m,a],["enter",o[f][1],a],["exit",o[f][1],a],["enter",p,a]];gt(v,v.length,0,zn(a.parser.constructs.insideSpan.null,o.slice(f+1,u),a)),gt(v,v.length,0,[["exit",p,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",m,a]]),gt(o,f-1,u-f+3,v),u=f+v.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 f=this.previous,m=this.events,p=0;return v;function v(w){return f===126&&m[m.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),$(w))}function $(w){let k=Wi(f);if(w===126)return p>1?u(w):(o.consume(w),p++,$);if(p<2&&!r)return u(w);let I=o.exit("strikethroughSequenceTemporary"),j=Wi(w);return I._open=!j||j===2&&Boolean(k),I._close=!k||k===2&&Boolean(j),a(w)}}}var hl={flow:{null:{tokenize:sv,resolve:ov}}},zc={tokenize:av,partial:!0};function ov(t,r){let e=-1,n,i,o,a,u,f,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 v={type:"tableContent",start:t[a][1].start,end:t[u][1].end},$={type:"chunkText",start:v.start,end:v.end,contentType:"text"};t.splice(a,u-a+1,["enter",v,r],["enter",$,r],["exit",$,r],["exit",v,r]),e-=u-a-3,a=void 0,u=void 0}if(t[e][0]==="exit"&&f!==void 0&&f+(m?0:1)<e&&(p.type==="tableCellDivider"||p.type==="tableRow"&&(f+3<e||t[f][1].type!=="whitespace"))){let v={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[f][1].start,end:t[e][1].end};t.splice(e+(p.type==="tableCellDivider"?1:0),0,["exit",v,r]),t.splice(f,0,["enter",v,r]),e+=2,f=e+1,m=!0}p.type==="tableRow"&&(o=t[e][0]==="enter",o&&(f=e+1,m=!1)),p.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(f=e+1,m=!1)),p.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function sv(t,r,e){let n=this,i=[],o=0,a,u;return f;function f(U){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),U===124?m(U):(o++,t.enter("temporaryTableCellContent"),$(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)?k(U):Oe(U)?(t.enter("whitespace"),t.consume(U),v):(a&&(a=void 0,o++),U===124?m(U):(t.enter("temporaryTableCellContent"),$(U)))}function v(U){return Oe(U)?(t.consume(U),v):(t.exit("whitespace"),p(U))}function $(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),p(U)):(t.consume(U),U===92?w:$)}function w(U){return U===92||U===124?(t.consume(U),$):$(U)}function k(U){if(U===null)return e(U);t.exit("tableRow"),t.exit("tableHead");let at=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Ke,partial:!0},function(Le){return n.interrupt=at,t.enter("tableDelimiterRow"),I(Le)},function(Le){return n.interrupt=at,e(Le)})(U)}function I(U){return U===null||le(U)?de(U):Oe(U)?(t.enter("whitespace"),t.consume(U),j):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"),I):e(U)}function j(U){return Oe(U)?(t.consume(U),j):(t.exit("whitespace"),I(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):I(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):Oe(U)?(t.enter("whitespace"),t.consume(U),j):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),I):e(U)}function de(U){return t.exit("tableDelimiterRow"),!u||o!==i.length?e(U):U===null?ce(U):t.check(zc,ce,t.attempt({tokenize:Ke,partial:!0},ye(t,Q,"linePrefix",4),ce))(U)}function ce(U){return t.exit("table"),r(U)}function Q(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"),_e}function _e(U){return U===null||le(U)?fe(U):Oe(U)?(t.enter("whitespace"),t.consume(U),Te):U===124?we(U):(t.enter("temporaryTableCellContent"),Ce(U))}function Te(U){return Oe(U)?(t.consume(U),Te):(t.exit("whitespace"),_e(U))}function Ce(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),_e(U)):(t.consume(U),U===92?xe:Ce)}function xe(U){return U===92||U===124?(t.consume(U),Ce):Ce(U)}function fe(U){return t.exit("tableRow"),U===null?be(U):t.check(zc,be,t.attempt({tokenize:Ke,partial:!0},ye(t,me,"linePrefix",4),be))(U)}function be(U){return t.exit("tableBody"),ce(U)}function Ke(U,at,Le){return tt;function tt(T){return U.enter("lineEnding"),U.consume(T),U.exit("lineEnding"),ye(U,He,"linePrefix")}function He(T){if(n.parser.lazy[n.now().line]||T===null||le(T))return Le(T);let N=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&N&&N[1].type==="linePrefix"&&N[2].sliceSerialize(N[1],!0).length>=4?Le(T):(n._gfmTableDynamicInterruptHack=!0,U.check(n.parser.constructs.flow,function(Vt){return n._gfmTableDynamicInterruptHack=!1,Le(Vt)},function(Vt){return n._gfmTableDynamicInterruptHack=!1,at(Vt)})(T))}}}function av(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 lv={tokenize:uv},gl={text:{[91]:lv}};function uv(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:fv},r,e)):e(u)}}function fv(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 Vc(t){return $s([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 vl(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Po=function(t){if(t==null)return mv;if(typeof t=="string")return dv(t);if(typeof t=="object")return Array.isArray(t)?cv(t):pv(t);if(typeof t=="function")return Os(t);throw new Error("Expected function, string, or object as test")};function cv(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Po(t[e]);return Os(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function pv(t){return Os(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function dv(t){return Os(r);function r(e){return e&&e.type===t}}function Os(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function mv(){return!0}var hv=!0,gv="skip",Uc=!1,Hc=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Po(r),o=n?-1:1;a(t,null,[])();function a(u,f,m){let p=typeof u=="object"&&u!==null?u:{},v;return typeof p.type=="string"&&(v=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0,Object.defineProperty($,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})),$;function $(){let w=[],k,I,j;if((!r||i(u,f,m[m.length-1]||null))&&(w=yv(e(u,m)),w[0]===Uc))return w;if(u.children&&w[0]!==gv)for(I=(n?u.children.length:-1)+o,j=m.concat(u);I>-1&&I<u.children.length;){if(k=a(u.children[I],I,j)(),k[0]===Uc)return k;I=typeof k[1]=="number"?k[1]:I+o}return w}}};function yv(t){return Array.isArray(t)?t:typeof t=="number"?[hv,t]:[t]}var vv={}.hasOwnProperty,$l=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=Po(i.ignore||[]),u=$v(o),f=-1;for(;++f<u.length;)Hc(t,"text",m);return t;function m(v,$){let w=-1,k;for(;++w<$.length;){let I=$[w];if(a(I,k?k.children.indexOf(I):void 0,k))return;k=I}if(k)return p(v,$)}function p(v,$){let w=$[$.length-1],k=u[f][0],I=u[f][1],j=0,D=w.children.indexOf(v),Y=!1,ee=[],de;k.lastIndex=0;let ce=k.exec(v.value);for(;ce;){de=ce.index;let Q={index:ce.index,input:ce.input,stack:[...$,v]},me=I(...ce,Q);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(j!==de&&ee.push({type:"text",value:v.value.slice(j,de)}),Array.isArray(me)?ee.push(...me):me&&ee.push(me),j=de+ce[0].length,Y=!0),!k.global)break;ce=k.exec(v.value)}return Y?(j<v.value.length&&ee.push({type:"text",value:v.value.slice(j)}),w.children.splice(D,1,...ee)):ee=[v],D+ee.length}};function $v(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([Kc(t[e][0]),Wc(t[e][1])])}else{let e;for(e in t)vv.call(t,e)&&r.push([Kc(e),Wc(t[e])])}return r}function Kc(t){return typeof t=="string"?new RegExp(vl(t),"g"):t}function Wc(t){return typeof t=="function"?t:()=>t}var bl="phrasing",wl=["autolink","link","image","label"],Gc={transforms:[xv],enter:{literalAutolink:bv,literalAutolinkEmail:_l,literalAutolinkHttp:_l,literalAutolinkWww:_l},exit:{literalAutolink:Cv,literalAutolinkEmail:kv,literalAutolinkHttp:wv,literalAutolinkWww:_v}},Qc={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bl,notInConstruct:wl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bl,notInConstruct:wl},{character:":",before:"[ps]",after:"\\/",inConstruct:bl,notInConstruct:wl}]};function bv(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function _l(t){this.config.enter.autolinkProtocol.call(this,t)}function wv(t){this.config.exit.autolinkProtocol.call(this,t)}function _v(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function kv(t){this.config.exit.autolinkEmail.call(this,t)}function Cv(t){this.exit(t)}function xv(t){$l(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ev],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Av]],{ignore:["link","linkReference"]})}function Ev(t,r,e,n,i){let o="";if(!Zc(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!Sv(e)))return!1;let a=Pv(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 Av(t,r,e,n){return!Zc(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function Sv(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 Pv(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 Zc(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||ui(e)||fi(e))&&(!r||e!==47)}function kl(t){return t.label||!t.identifier?t.label||"":Is(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:f,current:a,shift:u};function a(){return{now:{line:i,column:o},lineShift:n}}function u(m){n+=m}function f(m=""){let p=m.split(/\r?\n|\r/g),v=p[p.length-1];return i+=p.length-1,o=p.length===1?o+v.length:1+v.length+n,m}}function Fs(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:`
18
+ `;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={};sg(ol,{attentionMarkers:()=>jy,contentInitial:()=>Iy,disable:()=>Ry,document:()=>Py,flow:()=>Fy,flowInitial:()=>Oy,insideSpan:()=>Dy,string:()=>Ty,text:()=>Ny});var Py={[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]:bs},Iy={[91]:Ja},Oy={[-2]:Ao,[-1]:Ao,[32]:Ao},Fy={[35]:Ya,[42]:di,[45]:[Ss,di],[60]:tl,[61]:Ss,[95]:di,[96]:ks,[126]:ks},Ty={[38]:_s,[92]:ws},Ny={[-5]:So,[-4]:So,[-3]:So,[33]:nl,[38]:_s,[42]:Eo,[60]:[Ga,rl],[91]:il,[92]:[Xa,ws],[93]:pi,[95]:Eo,[96]:Qa},Dy={null:[Eo,wc]},jy={null:[42,95]},Ry={null:[]};function Ac(t={}){let r=$s([ol].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:r,content:n(mc),document:n(gc),flow:n(bc),string:n(_c),text:n(kc)};return e;function n(i){return o;function o(a){return Ec(e,i,a)}}}var Sc=/[\0\t\n\r]/g;function Pc(){let t=1,r="",e=!0,n;return i;function i(o,a,u){let f=[],m,p,v,$,w;for(o=r+o.toString(a),v=0,r="",e&&(o.charCodeAt(0)===65279&&v++,e=void 0);v<o.length;){if(Sc.lastIndex=v,m=Sc.exec(o),$=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt($),!m){r=o.slice(v);break}if(w===10&&v===$&&n)f.push(-3),n=void 0;else switch(n&&(f.push(-5),n=void 0),v<$&&(f.push(o.slice(v,$)),t+=$-v),w){case 0:{f.push(65533),t++;break}case 9:{for(p=Math.ceil(t/4)*4,f.push(-2);t++<p;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:n=!0,t=1}v=$+1}return u&&(n&&f.push(-5),r&&f.push(r),f.push(null)),f}}function Ic(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 Ly=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Is(t){return t.replace(Ly,qy)}function qy(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 Gi(e)||t}var sl={}.hasOwnProperty,al=function(t,r,e){return typeof r!="string"&&(e=r,r=void 0),By(e)(Ic(Ac(e).document().write(Pc()(t,r,!0))))};function By(t={}){let r=Fc({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Ct),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:f(pt),blockQuote:f(rr),characterEscape:xe,characterReference:xe,codeFenced:f(pr),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:f(pr,m),codeText:f(Ut,m),codeTextData:xe,data:xe,codeFlowValue:xe,definition:f(Qn),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:f(Nn),hardBreakEscape:f(dt),hardBreakTrailing:f(dt),htmlFlow:f(Dt,m),htmlFlowData:xe,htmlText:f(Dt,m),htmlTextData:xe,image:f(mt),label:m,link:f(Ct),listItem:f(Rr),listItemValue:I,listOrdered:f(jr,k),listUnordered:f(jr),paragraph:f(Lr),reference:ft,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:f(pt),strong:f(qr),thematicBreak:f(nr)},exit:{atxHeading:v(),atxHeadingSequence:we,autolink:v(),autolinkEmail:Nt,autolinkProtocol:Et,blockQuote:v(),characterEscapeValue:fe,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:_r,codeFenced:v(ee),codeFencedFence:Y,codeFencedFenceInfo:j,codeFencedFenceMeta:D,codeFlowValue:fe,codeIndented:v(de),codeText:v(Le),codeTextData:fe,data:fe,definition:v(),definitionDestinationString:me,definitionLabelString:ce,definitionTitleString:Q,emphasis:v(),hardBreakEscape:v(Ke),hardBreakTrailing:v(Ke),htmlFlow:v(U),htmlFlowData:fe,htmlText:v(at),htmlTextData:fe,image:v(He),label:N,labelText:T,lineEnding:be,link:v(tt),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:ct,resourceDestinationString:Vt,resourceTitleString:kt,resource:it,setextHeading:v(Ce),setextHeadingLineSequence:Te,setextHeadingText:_e,strong:v(),thematicBreak:v()}},t.mdastExtensions||[]),e={};return n;function n(W){let ne={type:"root",children:[]},ge=[ne],Se=[],xt=[],Ar={stack:ge,tokenStack:Se,config:r,enter:p,exit:$,buffer:m,resume:w,setData:o,getData:a},ze=-1;for(;++ze<W.length;)if(W[ze][1].type==="listOrdered"||W[ze][1].type==="listUnordered")if(W[ze][0]==="enter")xt.push(ze);else{let ot=xt.pop();ze=i(W,ot,ze)}for(ze=-1;++ze<W.length;){let ot=r[W[ze][0]];sl.call(ot,W[ze][1].type)&&ot[W[ze][1].type].call(Object.assign({sliceSerialize:W[ze][2].sliceSerialize},Ar),W[ze][1])}if(Se.length>0){let ot=Se[Se.length-1];(ot[1]||Oc).call(Ar,void 0,ot[0])}for(ne.position={start:u(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:u(W.length>0?W[W.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(W,ne,ge){let Se=ne-1,xt=-1,Ar=!1,ze,ot,ht,Mr;for(;++Se<=ge;){let Ye=W[Se];if(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered"||Ye[1].type==="blockQuote"?(Ye[0]==="enter"?xt++:xt--,Mr=void 0):Ye[1].type==="lineEndingBlank"?Ye[0]==="enter"&&(ze&&!Mr&&!xt&&!ht&&(ht=Se),Mr=void 0):Ye[1].type==="linePrefix"||Ye[1].type==="listItemValue"||Ye[1].type==="listItemMarker"||Ye[1].type==="listItemPrefix"||Ye[1].type==="listItemPrefixWhitespace"||(Mr=void 0),!xt&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||xt===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(ze){let nn=Se;for(ot=void 0;nn--;){let At=W[nn];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;ot&&(W[ot][1].type="lineEndingBlank",Ar=!0),At[1].type="lineEnding",ot=nn}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}ht&&(!ot||ht<ot)&&(ze._spread=!0),ze.end=Object.assign({},ot?W[ot][1].start:Ye[1].end),W.splice(ot||Se,0,["exit",ze,Ye[2]]),Se++,ge++}Ye[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start)},W.splice(Se,0,["enter",ze,Ye[2]]),Se++,ge++,ht=void 0,Mr=!0)}}return W[ne][1]._spread=Ar,ge}function o(W,ne){e[W]=ne}function a(W){return e[W]}function u(W){return{line:W.line,column:W.column,offset:W.offset}}function f(W,ne){return ge;function ge(Se){p.call(this,W(Se),Se),ne&&ne.call(this,Se)}}function m(){this.stack.push({type:"fragment",children:[]})}function p(W,ne,ge){return this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ne,ge]),W.position={start:u(ne.start)},W}function v(W){return ne;function ne(ge){W&&W.call(this,ge),$.call(this,ge)}}function $(W,ne){let ge=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==W.type&&(ne?ne.call(this,W,Se[0]):(Se[1]||Oc).call(this,W,Se[0]));else throw new Error("Cannot close `"+W.type+"` ("+ai({start:W.start,end:W.end})+"): it\u2019s not open");return ge.position.end=u(W.end),ge}function w(){return lc(this.stack.pop())}function k(){o("expectingFirstListItemValue",!0)}function I(W){if(a("expectingFirstListItemValue")){let ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(W),10),o("expectingFirstListItemValue")}}function j(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=W}function D(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=W}function Y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function ee(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function de(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W.replace(/(\r?\n|\r)$/g,"")}function ce(W){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(W)).toLowerCase()}function Q(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function me(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function we(W){let ne=this.stack[this.stack.length-1];if(!ne.depth){let ge=this.sliceSerialize(W).length;ne.depth=ge}}function _e(){o("setextHeadingSlurpLineEnding",!0)}function Te(W){let ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(W).charCodeAt(0)===61?1:2}function Ce(){o("setextHeadingSlurpLineEnding")}function xe(W){let ne=this.stack[this.stack.length-1],ge=ne.children[ne.children.length-1];(!ge||ge.type!=="text")&&(ge=Br(),ge.position={start:u(W.start)},ne.children.push(ge)),this.stack.push(ge)}function fe(W){let ne=this.stack.pop();ne.value+=this.sliceSerialize(W),ne.position.end=u(W.end)}function be(W){let ne=this.stack[this.stack.length-1];if(a("atHardBreak")){let ge=ne.children[ne.children.length-1];ge.position.end=u(W.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(ne.type)&&(xe.call(this,W),fe.call(this,W))}function Ke(){o("atHardBreak",!0)}function U(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function at(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function Le(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.value=W}function tt(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function He(){let W=this.stack[this.stack.length-1];a("inReference")?(W.type+="Reference",W.referenceType=a("referenceType")||"shortcut",delete W.url,delete W.title):(delete W.identifier,delete W.label),o("referenceType")}function T(W){let ne=this.stack[this.stack.length-2],ge=this.sliceSerialize(W);ne.label=Is(ge),ne.identifier=Zt(ge).toLowerCase()}function N(){let W=this.stack[this.stack.length-1],ne=this.resume(),ge=this.stack[this.stack.length-1];o("inReference",!0),ge.type==="link"?ge.children=W.children:ge.alt=ne}function Vt(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.url=W}function kt(){let W=this.resume(),ne=this.stack[this.stack.length-1];ne.title=W}function it(){o("inReference")}function ft(){o("referenceType","collapsed")}function ct(W){let ne=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ne,ge.identifier=Zt(this.sliceSerialize(W)).toLowerCase(),o("referenceType","full")}function $e(W){o("characterReferenceType",W.type)}function _r(W){let ne=this.sliceSerialize(W),ge=a("characterReferenceType"),Se;ge?(Se=Ps(ne,ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Se=Gi(ne);let xt=this.stack.pop();xt.value+=Se,xt.position.end=u(W.end)}function Et(W){fe.call(this,W);let ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(W)}function Nt(W){fe.call(this,W);let ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(W)}function rr(){return{type:"blockquote",children:[]}}function pr(){return{type:"code",lang:null,meta:null,value:""}}function Ut(){return{type:"inlineCode",value:""}}function Qn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nn(){return{type:"emphasis",children:[]}}function pt(){return{type:"heading",depth:void 0,children:[]}}function dt(){return{type:"break"}}function Dt(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function Ct(){return{type:"link",title:null,url:"",children:[]}}function jr(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function Rr(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function qr(){return{type:"strong",children:[]}}function Br(){return{type:"text",value:""}}function nr(){return{type:"thematicBreak"}}}function Fc(t,r){let e=-1;for(;++e<r.length;){let n=r[e];Array.isArray(n)?Fc(t,n):My(t,n)}return t}function My(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 Oc(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+ai({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+ai({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ai({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 Tc=ll;var zy={tokenize:Ky,partial:!0},Dc={tokenize:Wy,partial:!0},jc={tokenize:Gy,partial:!0},Qi={tokenize:Zy,partial:!0},Rc={tokenize:Qy,partial:!0},Lc={tokenize:Uy,previous:Mc},qc={tokenize:Hy,previous:cl},An={tokenize:Vy,previous:zc},pn={},ul={text:pn},mi=48;for(;mi<123;)pn[mi]=An,mi++,mi===58?mi=65:mi===91&&(mi=97);pn[43]=An;pn[45]=An;pn[46]=An;pn[95]=An;pn[72]=[An,qc];pn[104]=[An,qc];pn[87]=[An,Lc];pn[119]=[An,Lc];function Vy(t,r,e){let n=this,i,o;return a;function a(w){return!Nc(w)||!zc(n.previous)||pl(n.events)?e(w):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(w))}function u(w){return Nc(w)?(t.consume(w),u):w===64?(t.consume(w),f):e(w)}function f(w){return w===46?t.check(Qi,$,m)(w):w===45||w===95?t.check(Qi,e,p)(w):Ot(w)?(!o&&li(w)&&(o=!0),t.consume(w),f):$(w)}function m(w){return t.consume(w),i=!0,o=void 0,f}function p(w){return t.consume(w),v}function v(w){return w===46?t.check(Qi,e,m)(w):f(w)}function $(w){return i&&!o?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(w)):e(w)}}function Uy(t,r,e){let n=this;return i;function i(a){return a!==87&&a!==119||!Mc(n.previous)||pl(n.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(zy,t.attempt(Dc,t.attempt(jc,o),e),e)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(a)}}function Hy(t,r,e){let n=this;return i;function i(k){return k!==72&&k!==104||!cl(n.previous)||pl(n.events)?e(k):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),t.consume(k),o)}function o(k){return k===84||k===116?(t.consume(k),a):e(k)}function a(k){return k===84||k===116?(t.consume(k),u):e(k)}function u(k){return k===80||k===112?(t.consume(k),f):e(k)}function f(k){return k===83||k===115?(t.consume(k),m):m(k)}function m(k){return k===58?(t.consume(k),p):e(k)}function p(k){return k===47?(t.consume(k),v):e(k)}function v(k){return k===47?(t.consume(k),$):e(k)}function $(k){return k===null||Bn(k)||ui(k)||fi(k)?e(k):t.attempt(Dc,t.attempt(jc,w),e)(k)}function w(k){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(k)}}function Ky(t,r,e){return n;function n(f){return t.consume(f),i}function i(f){return f===87||f===119?(t.consume(f),o):e(f)}function o(f){return f===87||f===119?(t.consume(f),a):e(f)}function a(f){return f===46?(t.consume(f),u):e(f)}function u(f){return f===null||le(f)?e(f):r(f)}}function Wy(t,r,e){let n,i;return o;function o(f){return f===38?t.check(Rc,u,a)(f):f===46||f===95?t.check(Qi,u,a)(f):f===null||Bn(f)||ui(f)||f!==45&&fi(f)?u(f):(t.consume(f),o)}function a(f){return f===46?(i=n,n=void 0,t.consume(f),o):(f===95&&(n=!0),t.consume(f),o)}function u(f){return!i&&!n?r(f):e(f)}}function Gy(t,r){let e=0;return n;function n(a){return a===38?t.check(Rc,r,i)(a):(a===40&&e++,a===41?t.check(Qi,o,i)(a):fl(a)?r(a):Bc(a)?t.check(Qi,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 Qy(t,r,e){return n;function n(a){return t.consume(a),i}function i(a){return Qt(a)?(t.consume(a),i):a===59?(t.consume(a),o):e(a)}function o(a){return fl(a)?r(a):e(a)}}function Zy(t,r,e){return n;function n(o){return t.consume(o),i}function i(o){return Bc(o)?(t.consume(o),i):fl(o)?r(o):e(o)}}function Bc(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 fl(t){return t===null||t===60||Ve(t)}function Nc(t){return t===43||t===45||t===46||t===95||Ot(t)}function Mc(t){return t===null||t===40||t===42||t===95||t===126||Ve(t)}function cl(t){return t===null||!Qt(t)}function zc(t){return t!==47&&cl(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 Jy={tokenize:iv,partial:!0};function dl(){return{document:{[91]:{tokenize:tv,continuation:{tokenize:rv},exit:nv}},text:{[91]:{tokenize:ev},[93]:{add:"after",tokenize:Xy,resolveTo:Yy}}}}function Xy(t,r,e){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let f=n.events[i][1];if(f.type==="labelImage"){a=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return u;function u(f){if(!a||!a._balanced)return e(f);let m=Zt(n.sliceSerialize({start:a.end,end:n.now()}));return m.charCodeAt(0)!==94||!o.includes(m.slice(1))?e(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),r(f))}}function Yy(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)},f=[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,...f),t}function ev(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,a;return u;function u($){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume($),t.exit("gfmFootnoteCallLabelMarker"),f}function f($){return $!==94?e($):(t.enter("gfmFootnoteCallMarker"),t.consume($),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m($){let w;return $===null||$===91||o++>999?e($):$===93?a?(t.exit("chunkString"),w=t.exit("gfmFootnoteCallString"),i.includes(Zt(n.sliceSerialize(w)))?v($):e($)):e($):(t.consume($),Ve($)||(a=!0),$===92?p:m)}function p($){return $===91||$===92||$===93?(t.consume($),o++,m):m($)}function v($){return t.enter("gfmFootnoteCallLabelMarker"),t.consume($),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r}}function tv(t,r,e){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,a=0,u;return f;function f(I){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(I){return I===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),p):e(I)}function p(I){let j;return I===null||I===91||a>999?e(I):I===93?u?(j=t.exit("gfmFootnoteDefinitionLabelString"),o=Zt(n.sliceSerialize(j)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(I),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),w):e(I):le(I)?(t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),a++,p):(t.enter("chunkString").contentType="string",v(I))}function v(I){return I===null||le(I)||I===91||I===93||a>999?(t.exit("chunkString"),p(I)):(Ve(I)||(u=!0),a++,t.consume(I),I===92?$:v)}function $(I){return I===91||I===92||I===93?(t.consume(I),a++,v):v(I)}function w(I){return I===58?(t.enter("definitionMarker"),t.consume(I),t.exit("definitionMarker"),ye(t,k,"gfmFootnoteDefinitionWhitespace")):e(I)}function k(I){return i.includes(o)||i.push(o),r(I)}}function rv(t,r,e){return t.check(cn,r,t.attempt(Jy,r,e))}function nv(t){t.exit("gfmFootnoteDefinition")}function iv(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 f=u;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[u][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[u][1].end)},p={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[u][1].start)},v=[["enter",m,a],["enter",o[f][1],a],["exit",o[f][1],a],["enter",p,a]];gt(v,v.length,0,zn(a.parser.constructs.insideSpan.null,o.slice(f+1,u),a)),gt(v,v.length,0,[["exit",p,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",m,a]]),gt(o,f-1,u-f+3,v),u=f+v.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 f=this.previous,m=this.events,p=0;return v;function v(w){return f===126&&m[m.length-1][1].type!=="characterEscape"?u(w):(o.enter("strikethroughSequenceTemporary"),$(w))}function $(w){let k=Wi(f);if(w===126)return p>1?u(w):(o.consume(w),p++,$);if(p<2&&!r)return u(w);let I=o.exit("strikethroughSequenceTemporary"),j=Wi(w);return I._open=!j||j===2&&Boolean(k),I._close=!k||k===2&&Boolean(j),a(w)}}}var hl={flow:{null:{tokenize:sv,resolve:ov}}},Vc={tokenize:av,partial:!0};function ov(t,r){let e=-1,n,i,o,a,u,f,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 v={type:"tableContent",start:t[a][1].start,end:t[u][1].end},$={type:"chunkText",start:v.start,end:v.end,contentType:"text"};t.splice(a,u-a+1,["enter",v,r],["enter",$,r],["exit",$,r],["exit",v,r]),e-=u-a-3,a=void 0,u=void 0}if(t[e][0]==="exit"&&f!==void 0&&f+(m?0:1)<e&&(p.type==="tableCellDivider"||p.type==="tableRow"&&(f+3<e||t[f][1].type!=="whitespace"))){let v={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:t[f][1].start,end:t[e][1].end};t.splice(e+(p.type==="tableCellDivider"?1:0),0,["exit",v,r]),t.splice(f,0,["enter",v,r]),e+=2,f=e+1,m=!0}p.type==="tableRow"&&(o=t[e][0]==="enter",o&&(f=e+1,m=!1)),p.type==="tableDelimiterRow"&&(i=t[e][0]==="enter",i&&(f=e+1,m=!1)),p.type==="tableHead"&&(n=t[e][0]==="enter")}return t}function sv(t,r,e){let n=this,i=[],o=0,a,u;return f;function f(U){return t.enter("table")._align=i,t.enter("tableHead"),t.enter("tableRow"),U===124?m(U):(o++,t.enter("temporaryTableCellContent"),$(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)?k(U):Oe(U)?(t.enter("whitespace"),t.consume(U),v):(a&&(a=void 0,o++),U===124?m(U):(t.enter("temporaryTableCellContent"),$(U)))}function v(U){return Oe(U)?(t.consume(U),v):(t.exit("whitespace"),p(U))}function $(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),p(U)):(t.consume(U),U===92?w:$)}function w(U){return U===92||U===124?(t.consume(U),$):$(U)}function k(U){if(U===null)return e(U);t.exit("tableRow"),t.exit("tableHead");let at=n.interrupt;return n.interrupt=!0,t.attempt({tokenize:Ke,partial:!0},function(Le){return n.interrupt=at,t.enter("tableDelimiterRow"),I(Le)},function(Le){return n.interrupt=at,e(Le)})(U)}function I(U){return U===null||le(U)?de(U):Oe(U)?(t.enter("whitespace"),t.consume(U),j):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"),I):e(U)}function j(U){return Oe(U)?(t.consume(U),j):(t.exit("whitespace"),I(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):I(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):Oe(U)?(t.enter("whitespace"),t.consume(U),j):U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),I):e(U)}function de(U){return t.exit("tableDelimiterRow"),!u||o!==i.length?e(U):U===null?ce(U):t.check(Vc,ce,t.attempt({tokenize:Ke,partial:!0},ye(t,Q,"linePrefix",4),ce))(U)}function ce(U){return t.exit("table"),r(U)}function Q(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"),_e}function _e(U){return U===null||le(U)?fe(U):Oe(U)?(t.enter("whitespace"),t.consume(U),Te):U===124?we(U):(t.enter("temporaryTableCellContent"),Ce(U))}function Te(U){return Oe(U)?(t.consume(U),Te):(t.exit("whitespace"),_e(U))}function Ce(U){return U===null||U===124||Ve(U)?(t.exit("temporaryTableCellContent"),_e(U)):(t.consume(U),U===92?xe:Ce)}function xe(U){return U===92||U===124?(t.consume(U),Ce):Ce(U)}function fe(U){return t.exit("tableRow"),U===null?be(U):t.check(Vc,be,t.attempt({tokenize:Ke,partial:!0},ye(t,me,"linePrefix",4),be))(U)}function be(U){return t.exit("tableBody"),ce(U)}function Ke(U,at,Le){return tt;function tt(T){return U.enter("lineEnding"),U.consume(T),U.exit("lineEnding"),ye(U,He,"linePrefix")}function He(T){if(n.parser.lazy[n.now().line]||T===null||le(T))return Le(T);let N=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&N&&N[1].type==="linePrefix"&&N[2].sliceSerialize(N[1],!0).length>=4?Le(T):(n._gfmTableDynamicInterruptHack=!0,U.check(n.parser.constructs.flow,function(Vt){return n._gfmTableDynamicInterruptHack=!1,Le(Vt)},function(Vt){return n._gfmTableDynamicInterruptHack=!1,at(Vt)})(T))}}}function av(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 lv={tokenize:uv},gl={text:{[91]:lv}};function uv(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:fv},r,e)):e(u)}}function fv(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 Uc(t){return $s([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 vl(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Po=function(t){if(t==null)return mv;if(typeof t=="string")return dv(t);if(typeof t=="object")return Array.isArray(t)?cv(t):pv(t);if(typeof t=="function")return Os(t);throw new Error("Expected function, string, or object as test")};function cv(t){let r=[],e=-1;for(;++e<t.length;)r[e]=Po(t[e]);return Os(n);function n(...i){let o=-1;for(;++o<r.length;)if(r[o].call(this,...i))return!0;return!1}}function pv(t){return Os(r);function r(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function dv(t){return Os(r);function r(e){return e&&e.type===t}}function Os(t){return r;function r(...e){return Boolean(t.call(this,...e))}}function mv(){return!0}var hv=!0,gv="skip",Hc=!1,Kc=function(t,r,e,n){typeof r=="function"&&typeof e!="function"&&(n=e,e=r,r=null);let i=Po(r),o=n?-1:1;a(t,null,[])();function a(u,f,m){let p=typeof u=="object"&&u!==null?u:{},v;return typeof p.type=="string"&&(v=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0,Object.defineProperty($,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})),$;function $(){let w=[],k,I,j;if((!r||i(u,f,m[m.length-1]||null))&&(w=yv(e(u,m)),w[0]===Hc))return w;if(u.children&&w[0]!==gv)for(I=(n?u.children.length:-1)+o,j=m.concat(u);I>-1&&I<u.children.length;){if(k=a(u.children[I],I,j)(),k[0]===Hc)return k;I=typeof k[1]=="number"?k[1]:I+o}return w}}};function yv(t){return Array.isArray(t)?t:typeof t=="number"?[hv,t]:[t]}var vv={}.hasOwnProperty,$l=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=Po(i.ignore||[]),u=$v(o),f=-1;for(;++f<u.length;)Kc(t,"text",m);return t;function m(v,$){let w=-1,k;for(;++w<$.length;){let I=$[w];if(a(I,k?k.children.indexOf(I):void 0,k))return;k=I}if(k)return p(v,$)}function p(v,$){let w=$[$.length-1],k=u[f][0],I=u[f][1],j=0,D=w.children.indexOf(v),Y=!1,ee=[],de;k.lastIndex=0;let ce=k.exec(v.value);for(;ce;){de=ce.index;let Q={index:ce.index,input:ce.input,stack:[...$,v]},me=I(...ce,Q);if(typeof me=="string"&&(me=me.length>0?{type:"text",value:me}:void 0),me!==!1&&(j!==de&&ee.push({type:"text",value:v.value.slice(j,de)}),Array.isArray(me)?ee.push(...me):me&&ee.push(me),j=de+ce[0].length,Y=!0),!k.global)break;ce=k.exec(v.value)}return Y?(j<v.value.length&&ee.push({type:"text",value:v.value.slice(j)}),w.children.splice(D,1,...ee)):ee=[v],D+ee.length}};function $v(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([Wc(t[e][0]),Gc(t[e][1])])}else{let e;for(e in t)vv.call(t,e)&&r.push([Wc(e),Gc(t[e])])}return r}function Wc(t){return typeof t=="string"?new RegExp(vl(t),"g"):t}function Gc(t){return typeof t=="function"?t:()=>t}var bl="phrasing",wl=["autolink","link","image","label"],Qc={transforms:[xv],enter:{literalAutolink:bv,literalAutolinkEmail:_l,literalAutolinkHttp:_l,literalAutolinkWww:_l},exit:{literalAutolink:Cv,literalAutolinkEmail:kv,literalAutolinkHttp:wv,literalAutolinkWww:_v}},Zc={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bl,notInConstruct:wl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bl,notInConstruct:wl},{character:":",before:"[ps]",after:"\\/",inConstruct:bl,notInConstruct:wl}]};function bv(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function _l(t){this.config.enter.autolinkProtocol.call(this,t)}function wv(t){this.config.exit.autolinkProtocol.call(this,t)}function _v(t){this.config.exit.data.call(this,t);let r=this.stack[this.stack.length-1];r.url="http://"+this.sliceSerialize(t)}function kv(t){this.config.exit.autolinkEmail.call(this,t)}function Cv(t){this.exit(t)}function xv(t){$l(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ev],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Av]],{ignore:["link","linkReference"]})}function Ev(t,r,e,n,i){let o="";if(!Jc(i)||(/^w/i.test(r)&&(e=r+e,r="",o="http://"),!Sv(e)))return!1;let a=Pv(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 Av(t,r,e,n){return!Jc(n,!0)||/[_-\d]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+e,children:[{type:"text",value:r+"@"+e}]}}function Sv(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 Pv(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 Jc(t,r){let e=t.input.charCodeAt(t.index-1);return(t.index===0||ui(e)||fi(e))&&(!r||e!==47)}function kl(t){return t.label||!t.identifier?t.label||"":Is(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:f,current:a,shift:u};function a(){return{now:{line:i,column:o},lineShift:n}}function u(m){n+=m}function f(m=""){let p=m.split(/\r?\n|\r/g),v=p[p.length-1];return i+=p.length-1,o=p.length===1?o+v.length:1+v.length+n,m}}function Fs(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:`
19
19
  `,after:`
20
20
  `,...o.current()}))),m.type!=="list"&&(r.bulletLastUsed=void 0),u<i.length-1&&a.push(o.move(f(m,i[u+1])))}return n.pop(),a.join("");function f(m,p){let v=r.join.length;for(;v--;){let $=r.join[v](m,p,t,r);if($===!0||$===1)break;if(typeof $=="number")return`
21
21
  `.repeat(1+$);if($===!1)return`
@@ -24,11 +24,11 @@ var tg=Object.create;var ja=Object.defineProperty;var rg=Object.getOwnPropertyDe
24
24
 
25
25
  `}return`
26
26
 
27
- `}}var Iv=/\r?\n|\r/g;function Ts(t,r){let e=[],n=0,i=0,o;for(;o=Iv.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 Ns(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 Xc(t,r){return Jc(t,r.inConstruct,!0)&&!Jc(t,r.notInConstruct,!1)}function Jc(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(!Xc(t.stack,p))continue;let v=Ns(p),$;for(;$=v.exec(n);){let w="before"in p||Boolean(p.atBreak),k="after"in p,I=$.index+(w?$[1].length:0);i.includes(I)?(a[I].before&&!w&&(a[I].before=!1),a[I].after&&!k&&(a[I].after=!1)):(i.push(I),a[I]={before:w,after:k})}}i.sort(Ov);let f=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<f||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||(f!==p&&o.push(Yc(n.slice(f,p),"\\")),f=p,/[!-/:-@[-`{-~]/.test(n.charAt(p))&&(!e.encode||!e.encode.includes(n.charAt(p)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(p).toString(16).toUpperCase()+";"),f++))}return o.push(Yc(n.slice(f,m),e.after)),o.join("")}function Ov(t,r){return t-r}function Yc(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,u=0,f;for(;f=e.exec(o);)n.push(f.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 ep(){return{enter:{gfmFootnoteDefinition:t,gfmFootnoteDefinitionLabelString:r,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:n,gfmFootnoteDefinitionLabelString:e,gfmFootnoteCall:u,gfmFootnoteCallString:a}};function t(f){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},f)}function r(){this.buffer()}function e(f){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(f)).toLowerCase()}function n(f){this.exit(f)}function i(f){this.enter({type:"footnoteReference",identifier:"",label:""},f)}function o(){this.buffer()}function a(f){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(f)).toLowerCase()}function u(f){this.exit(f)}}function tp(){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),f=u.move("[^"),m=o.enter("footnoteReference"),p=o.enter("reference");return f+=u.move(Cl(o,kl(n),{...u.current(),before:f,after:"]"})),p(),m(),f+=u.move("]"),f}function r(){return"["}function e(n,i,o,a){let u=yr(a),f=u.move("[^"),m=o.enter("footnoteDefinition"),p=o.enter("label");return f+=u.move(Cl(o,kl(n),{...u.current(),before:f,after:"]"})),p(),f+=u.move("]:"+(n.children&&n.children.length>0?" ":"")),u.shift(4),f+=u.move(Ts(Fs(n,o,u.current()),v)),m(),f;function v($,w,k){return w?(k?"":" ")+$:$}}}function Ds(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,u=e.before;n.push(-1);let f=yr(e);for(;++a<i.length;){let m=i[a],p;if(n[n.length-1]=a,a+1<i.length){let v=r.handle.handlers[i[a+1].type];v&&v.peek&&(v=v.peek),p=v?v(i[a+1],t,r,{before:"",after:"",...f.current()}).charAt(0):""}else p=e.after;o.length>0&&(u==="\r"||u===`
28
- `)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",f=yr(e),f.move(o.join(""))),o.push(f.move(r.handle(m,t,r,{...f.current(),before:u,after:p}))),u=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var rp={canContainEols:["delete"],enter:{strikethrough:Fv},exit:{strikethrough:Tv}},np={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:ip}};ip.peek=Nv;function Fv(t){this.enter({type:"delete",children:[]},t)}function Tv(t){this.exit(t)}function ip(t,r,e,n){let i=yr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=Ds(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Nv(){return"~"}xl.peek=Dv;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=Ns(a),f;if(!!a.atBreak)for(;f=u.exec(n);){let m=f.index;n.charCodeAt(m)===10&&n.charCodeAt(m-1)===13&&m--,n=n.slice(0,m)+" "+n.slice(f.index+1)}}return i+n+i}function Dv(){return"`"}function sp(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||Rv,i=[],o=[],a=[],u=[],f=0,m=-1;for(;++m<t.length;){let k=[],I=[],j=-1;for(t[m].length>f&&(f=t[m].length);++j<t[m].length;){let D=jv(t[m][j]);if(r.alignDelimiters!==!1){let Y=n(D);I[j]=Y,(u[j]===void 0||Y>u[j])&&(u[j]=Y)}k.push(D)}o[m]=k,a[m]=I}let p=-1;if(typeof e=="object"&&"length"in e)for(;++p<f;)i[p]=op(e[p]);else{let k=op(e);for(;++p<f;)i[p]=k}p=-1;let v=[],$=[];for(;++p<f;){let k=i[p],I="",j="";k===99?(I=":",j=":"):k===108?I=":":k===114&&(j=":");let D=r.alignDelimiters===!1?1:Math.max(1,u[p]-I.length-j.length),Y=I+"-".repeat(D)+j;r.alignDelimiters!==!1&&(D=I.length+D+j.length,D>u[p]&&(u[p]=D),$[p]=D),v[p]=Y}o.splice(1,0,v),a.splice(1,0,$),m=-1;let w=[];for(;++m<o.length;){let k=o[m],I=a[m];p=-1;let j=[];for(;++p<f;){let D=k[p]||"",Y="",ee="";if(r.alignDelimiters!==!1){let de=u[p]-(I[p]||0),ce=i[p];ce===114?Y=" ".repeat(de):ce===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&&j.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&D==="")&&(r.delimiterStart!==!1||p)&&j.push(" "),r.alignDelimiters!==!1&&j.push(Y),j.push(D),r.alignDelimiters!==!1&&j.push(ee),r.padding!==!1&&j.push(" "),(r.delimiterEnd!==!1||p!==f-1)&&j.push("|")}w.push(r.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return w.join(`
29
- `)}function jv(t){return t==null?"":String(t)}function Rv(t){return t.length}function op(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:Lv,tableData:ap,tableHeader:ap,tableRow:Bv},exit:{codeText:Mv,table:qv,tableData:El,tableHeader:El,tableRow:El}};function Lv(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function qv(t){this.exit(t),this.setData("inTable")}function Bv(t){this.enter({type:"tableRow",children:[]},t)}function El(t){this.exit(t)}function ap(t){this.enter({type:"tableCell",children:[]},t)}function Mv(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,zv));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function zv(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:`
27
+ `}}var Iv=/\r?\n|\r/g;function Ts(t,r){let e=[],n=0,i=0,o;for(;o=Iv.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 Ns(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 Yc(t,r){return Xc(t,r.inConstruct,!0)&&!Xc(t,r.notInConstruct,!1)}function Xc(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(!Yc(t.stack,p))continue;let v=Ns(p),$;for(;$=v.exec(n);){let w="before"in p||Boolean(p.atBreak),k="after"in p,I=$.index+(w?$[1].length:0);i.includes(I)?(a[I].before&&!w&&(a[I].before=!1),a[I].after&&!k&&(a[I].after=!1)):(i.push(I),a[I]={before:w,after:k})}}i.sort(Ov);let f=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<f||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||(f!==p&&o.push(ep(n.slice(f,p),"\\")),f=p,/[!-/:-@[-`{-~]/.test(n.charAt(p))&&(!e.encode||!e.encode.includes(n.charAt(p)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(p).toString(16).toUpperCase()+";"),f++))}return o.push(ep(n.slice(f,m),e.after)),o.join("")}function Ov(t,r){return t-r}function ep(t,r){let e=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=t+r,a=-1,u=0,f;for(;f=e.exec(o);)n.push(f.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(f){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},f)}function r(){this.buffer()}function e(f){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(f)).toLowerCase()}function n(f){this.exit(f)}function i(f){this.enter({type:"footnoteReference",identifier:"",label:""},f)}function o(){this.buffer()}function a(f){let m=this.resume(),p=this.stack[this.stack.length-1];p.label=m,p.identifier=Zt(this.sliceSerialize(f)).toLowerCase()}function u(f){this.exit(f)}}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=yr(a),f=u.move("[^"),m=o.enter("footnoteReference"),p=o.enter("reference");return f+=u.move(Cl(o,kl(n),{...u.current(),before:f,after:"]"})),p(),m(),f+=u.move("]"),f}function r(){return"["}function e(n,i,o,a){let u=yr(a),f=u.move("[^"),m=o.enter("footnoteDefinition"),p=o.enter("label");return f+=u.move(Cl(o,kl(n),{...u.current(),before:f,after:"]"})),p(),f+=u.move("]:"+(n.children&&n.children.length>0?" ":"")),u.shift(4),f+=u.move(Ts(Fs(n,o,u.current()),v)),m(),f;function v($,w,k){return w?(k?"":" ")+$:$}}}function Ds(t,r,e){let n=r.indexStack,i=t.children||[],o=[],a=-1,u=e.before;n.push(-1);let f=yr(e);for(;++a<i.length;){let m=i[a],p;if(n[n.length-1]=a,a+1<i.length){let v=r.handle.handlers[i[a+1].type];v&&v.peek&&(v=v.peek),p=v?v(i[a+1],t,r,{before:"",after:"",...f.current()}).charAt(0):""}else p=e.after;o.length>0&&(u==="\r"||u===`
28
+ `)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",f=yr(e),f.move(o.join(""))),o.push(f.move(r.handle(m,t,r,{...f.current(),before:u,after:p}))),u=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var np={canContainEols:["delete"],enter:{strikethrough:Fv},exit:{strikethrough:Tv}},ip={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:op}};op.peek=Nv;function Fv(t){this.enter({type:"delete",children:[]},t)}function Tv(t){this.exit(t)}function op(t,r,e,n){let i=yr(n),o=e.enter("emphasis"),a=i.move("~~");return a+=Ds(t,e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Nv(){return"~"}xl.peek=Dv;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=Ns(a),f;if(!!a.atBreak)for(;f=u.exec(n);){let m=f.index;n.charCodeAt(m)===10&&n.charCodeAt(m-1)===13&&m--,n=n.slice(0,m)+" "+n.slice(f.index+1)}}return i+n+i}function Dv(){return"`"}function ap(t,r={}){let e=(r.align||[]).concat(),n=r.stringLength||Rv,i=[],o=[],a=[],u=[],f=0,m=-1;for(;++m<t.length;){let k=[],I=[],j=-1;for(t[m].length>f&&(f=t[m].length);++j<t[m].length;){let D=jv(t[m][j]);if(r.alignDelimiters!==!1){let Y=n(D);I[j]=Y,(u[j]===void 0||Y>u[j])&&(u[j]=Y)}k.push(D)}o[m]=k,a[m]=I}let p=-1;if(typeof e=="object"&&"length"in e)for(;++p<f;)i[p]=sp(e[p]);else{let k=sp(e);for(;++p<f;)i[p]=k}p=-1;let v=[],$=[];for(;++p<f;){let k=i[p],I="",j="";k===99?(I=":",j=":"):k===108?I=":":k===114&&(j=":");let D=r.alignDelimiters===!1?1:Math.max(1,u[p]-I.length-j.length),Y=I+"-".repeat(D)+j;r.alignDelimiters!==!1&&(D=I.length+D+j.length,D>u[p]&&(u[p]=D),$[p]=D),v[p]=Y}o.splice(1,0,v),a.splice(1,0,$),m=-1;let w=[];for(;++m<o.length;){let k=o[m],I=a[m];p=-1;let j=[];for(;++p<f;){let D=k[p]||"",Y="",ee="";if(r.alignDelimiters!==!1){let de=u[p]-(I[p]||0),ce=i[p];ce===114?Y=" ".repeat(de):ce===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&&j.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&D==="")&&(r.delimiterStart!==!1||p)&&j.push(" "),r.alignDelimiters!==!1&&j.push(Y),j.push(D),r.alignDelimiters!==!1&&j.push(ee),r.padding!==!1&&j.push(" "),(r.delimiterEnd!==!1||p!==f-1)&&j.push("|")}w.push(r.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return w.join(`
29
+ `)}function jv(t){return t==null?"":String(t)}function Rv(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:Lv,tableData:lp,tableHeader:lp,tableRow:Bv},exit:{codeText:Mv,table:qv,tableData:El,tableHeader:El,tableRow:El}};function Lv(t){let r=t._align;this.enter({type:"table",align:r.map(e=>e==="none"?null:e),children:[]},t),this.setData("inTable",!0)}function qv(t){this.exit(t),this.setData("inTable")}function Bv(t){this.enter({type:"tableRow",children:[]},t)}function El(t){this.exit(t)}function lp(t){this.enter({type:"tableCell",children:[]},t)}function Mv(t){let r=this.resume();this.getData("inTable")&&(r=r.replace(/\\([\\|])/g,zv));let e=this.stack[this.stack.length-1];e.value=r,this.exit(t)}function zv(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:`
30
30
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:u,tableCell:f,inlineCode:$}};function a(w,k,I,j){return m(p(w,I,j),w.align)}function u(w,k,I,j){let D=v(w,I,j),Y=m([D]);return Y.slice(0,Y.indexOf(`
31
- `))}function f(w,k,I,j){let D=I.enter("tableCell"),Y=I.enter("phrasing"),ee=Ds(w,I,{...j,before:o,after:o});return Y(),D(),ee}function m(w,k){return sp(w,{align:k,alignDelimiters:n,padding:e,stringLength:i})}function p(w,k,I){let j=w.children,D=-1,Y=[],ee=k.enter("table");for(;++D<j.length;)Y[D]=v(j[D],k,I);return ee(),Y}function v(w,k,I){let j=w.children,D=-1,Y=[],ee=k.enter("tableRow");for(;++D<j.length;)Y[D]=f(j[D],w,k,I);return ee(),Y}function $(w,k,I){let j=xl(w,k,I);return I.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function lp(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 up(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=up(e),o=e.bulletCurrent||lp(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 f=e.enter("listItem"),m=Ts(Fs(t,e,u.current()),p);return f(),m;function p(v,$,w){return $?(w?"":" ".repeat(a))+v:(w?o:o+" ".repeat(a-o.length))+v}}var pp={exit:{taskListCheckValueChecked:cp,taskListCheckValueUnchecked:cp,paragraph:Vv}},dp={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uv}};function cp(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function Vv(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 Uv(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 f=fp(t,r,e,{...n,...u.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),f;function m(p){return p+a}}function Pl(){return[Gc,ep(),rp,Al,pp]}function Il(t){return{extensions:[Qc,tp(),np,Sl(t),dp]}}function Ol(t={}){let r=this.data();e("micromarkExtensions",Vc(t)),e("fromMarkdownExtensions",Pl()),e("toMarkdownExtensions",Il(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var _f=fn(Ul());var Ch=fn(fh()),gk=fn(mh()),sO=fn(vh());var{makeRule:WI,makePlug:GI}=Io();var $h=(t=21)=>{let r="",e=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=e[t]&63;n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n<63?r+="_":r+="-"}return r};var os=t=>({...t}),bf=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},wr=(t,r)=>{let e="block",n=t.name,i={id:$h(),margin:"",...t};var o=os({type:e,...i,content:bf(r)});return o};var ba=(t,r)=>os({type:"fcode",...t,content:r}),wf=(t,r)=>os({...t,type:"fcode",name:"L",content:bf(r)}),bh=t=>os({type:"fcode",name:"Delete",content:bf(t)}),wa=t=>os({type:"verbatim",value:t});var wh=t=>({type:"block",name:"caption",content:t}),_h=(t,r)=>({type:"image",src:t,alt:r}),kh=({margin:t=""},r)=>wr({name:"root",margin:t},r);var dk=fn(Vn());var mk=fn(vi());var lO=new Ch.default({strict:!0,allowUnionTypes:!0});var xh=(t,{lineOffset:r}={lineOffset:0})=>{let e=Ka().use(Fc).use(Ol).parse(t),n={},i=(u=>f=>{let{start:m,end:p}=f;return{start:{...m,line:m.line+u},end:{...p,line:p.line+u}}})(r);(0,_f.default)({processor:1}).use({"*:*":(u,f)=>(m,p,v)=>{m.children&&v(m.children,{...p})}}).use({":definition":(u,f)=>(m,p,v)=>{n[m.identifier]=m}}).run(e);let o=[];return(0,_f.default)({processor:1}).use({"*:*":(u,f)=>(m,p,v)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(m,null,2)),m.children&&v(m.children,{...p})}}).use({":root":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return kh({},v($,p))},":heading":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"block",level:m.depth,name:"head",location:i(w)},v($,p))},":text":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return m.value},":list":(u,f)=>(m,p,v)=>{let $=p.listLevel||0,{children:w,position:k,...I}=m;return wr({type:"list",level:$+1,list:m.ordered?"ordered":"itemized"},v(w,{...p,listLevel:$+1,ordered:m.ordered}))},":listItem":(u,f)=>(m,p,v)=>{let $=p.listLevel||0,{children:w,position:k,...I}=m;return wr({name:"item",type:"block",level:p.listLevel,location:i(k)},v(w,{...p,listLevel:$,ordered:m.ordered}))},":paragraph":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"para",location:i(w),text:"text",margin:""},v($,{...p}))},":linkReference":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m,I=n[k.identifier],j=(I==null?void 0:I.url)||"";return wf({meta:j},v($,{...p}))},":definition":(u,f)=>(m,p,v)=>null,":inlineCode":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"C"},[m.value])},":strong":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"B"},v($,{...p}))},":emphasis":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"I"},v($,{...p}))},":link":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wf({meta:m.url},v($,{...p}))},":html":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"block",name:"Html",location:i(w)},[wa(m.value)])},":code":(u,f)=>(m,p,v)=>{let{children:$,position:w,lang:k,meta:I,...j}=m;if(k==="mermaid"||k==="diagram")return wr({type:"block",name:"Diagram",config:[],location:i(w)},[wa(m.value)]);let D=[];return k&&D.push({name:"lang",value:k,type:"string"}),I&&D.push({name:"meta",value:I,type:"string"}),wr({type:"block",name:"code",config:D,location:i(w)},[wa(m.value)])},":image":(u,f)=>(m,p,v)=>{let{title:$,alt:w,url:k,position:I,...j}=m;return wr({type:"block",name:"Image",config:[],location:i(I)},[_h(k,w),wh([$])])},":thematicBreak":(u,f)=>(m,p,v)=>null,":blockquote":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"nested",location:i(w)},v($,{...p}))},":table":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table",location:i(w)},v($,{...p}))},":tableRow":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table_row",location:i(w)},v($,{...p}))},":tableCell":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table_cell",location:i(w)},v($,{...p}))},":delete":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return bh(v($,{...p}))},":break":(u,f)=>(m,p,v)=>null}).run(e).interator};var Eh=fn(zl()),Ah={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:xh(i,{lineOffset:o})}}return e}},toJSX:t=>Eh.content},SO={Markdown:Ah},PO=Ah;export{SO as PluginRegister,PO as default,Ah as plugin};
31
+ `))}function f(w,k,I,j){let D=I.enter("tableCell"),Y=I.enter("phrasing"),ee=Ds(w,I,{...j,before:o,after:o});return Y(),D(),ee}function m(w,k){return ap(w,{align:k,alignDelimiters:n,padding:e,stringLength:i})}function p(w,k,I){let j=w.children,D=-1,Y=[],ee=k.enter("table");for(;++D<j.length;)Y[D]=v(j[D],k,I);return ee(),Y}function v(w,k,I){let j=w.children,D=-1,Y=[],ee=k.enter("tableRow");for(;++D<j.length;)Y[D]=f(j[D],w,k,I);return ee(),Y}function $(w,k,I){let j=xl(w,k,I);return I.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}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 fp(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 cp(t,r,e,n){let i=fp(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=yr(n);u.move(o+" ".repeat(a-o.length)),u.shift(a);let f=e.enter("listItem"),m=Ts(Fs(t,e,u.current()),p);return f(),m;function p(v,$,w){return $?(w?"":" ".repeat(a))+v:(w?o:o+" ".repeat(a-o.length))+v}}var dp={exit:{taskListCheckValueChecked:pp,taskListCheckValueUnchecked:pp,paragraph:Vv}},mp={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uv}};function pp(t){let r=this.stack[this.stack.length-2];r.checked=t.type==="taskListCheckValueChecked"}function Vv(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 Uv(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 f=cp(t,r,e,{...n,...u.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),f;function m(p){return p+a}}function Pl(){return[Qc,tp(),np,Al,dp]}function Il(t){return{extensions:[Zc,rp(),ip,Sl(t),mp]}}function Ol(t={}){let r=this.data();e("micromarkExtensions",Uc(t)),e("fromMarkdownExtensions",Pl()),e("toMarkdownExtensions",Il(t));function e(n,i){(r[n]?r[n]:r[n]=[]).push(i)}}var _f=fn(Ul());var xh=fn(ch()),gk=fn(hh()),sO=fn($h());var{makeRule:WI,makePlug:GI}=Io();var bh=(t=21)=>{let r="",e=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=e[t]&63;n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n<63?r+="_":r+="-"}return r};var os=t=>({...t}),bf=t=>{if(Array.isArray(t))return t.filter(r=>r);console.warn("[podlite-schema] filterNulls got not array as content")},wr=(t,r)=>{let e="block",n=t.name,i={id:bh(),margin:"",...t};var o=os({type:e,...i,content:bf(r)});return o};var ba=(t,r)=>os({type:"fcode",...t,content:r}),wf=(t,r)=>os({...t,type:"fcode",name:"L",content:bf(r)}),wh=t=>os({type:"fcode",name:"Delete",content:bf(t)}),wa=t=>os({type:"verbatim",value:t});var _h=t=>({type:"block",name:"caption",content:t}),kh=(t,r)=>({type:"image",src:t,alt:r}),Ch=({margin:t=""},r)=>wr({name:"root",margin:t},r);var dk=fn(Vn());var mk=fn(vi());var lO=new xh.default({strict:!0,allowUnionTypes:!0});var kf=(t,{lineOffset:r}={lineOffset:0})=>{let e=Ka().use(Tc).use(Ol).parse(t),n={},i=(u=>f=>{let{start:m,end:p}=f;return{start:{...m,line:m.line+u},end:{...p,line:p.line+u}}})(r);(0,_f.default)({processor:1}).use({"*:*":(u,f)=>(m,p,v)=>{m.children&&v(m.children,{...p})}}).use({":definition":(u,f)=>(m,p,v)=>{n[m.identifier]=m}}).run(e);let o=[];return(0,_f.default)({processor:1}).use({"*:*":(u,f)=>(m,p,v)=>{console.warn("[Podlite:md2ast]- unhandled MD node"),console.warn(JSON.stringify(m,null,2)),m.children&&v(m.children,{...p})}}).use({":root":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return Ch({},v($,p))},":heading":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"block",level:m.depth,name:"head",location:i(w)},v($,p))},":text":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return m.value},":list":(u,f)=>(m,p,v)=>{let $=p.listLevel||0,{children:w,position:k,...I}=m;return wr({type:"list",level:$+1,list:m.ordered?"ordered":"itemized"},v(w,{...p,listLevel:$+1,ordered:m.ordered}))},":listItem":(u,f)=>(m,p,v)=>{let $=p.listLevel||0,{children:w,position:k,...I}=m;return wr({name:"item",type:"block",level:p.listLevel,location:i(k)},v(w,{...p,listLevel:$,ordered:m.ordered}))},":paragraph":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"para",location:i(w),text:"text",margin:""},v($,{...p}))},":linkReference":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m,I=n[k.identifier],j=(I==null?void 0:I.url)||"";return wf({meta:j},v($,{...p}))},":definition":(u,f)=>(m,p,v)=>null,":inlineCode":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"C"},[m.value])},":strong":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"B"},v($,{...p}))},":emphasis":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return ba({name:"I"},v($,{...p}))},":link":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wf({meta:m.url},v($,{...p}))},":html":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({type:"block",name:"Html",location:i(w)},[wa(m.value)])},":code":(u,f)=>(m,p,v)=>{let{children:$,position:w,lang:k,meta:I,...j}=m;if(k==="mermaid"||k==="diagram")return wr({type:"block",name:"Diagram",config:[],location:i(w)},[wa(m.value)]);let D=[];return k&&D.push({name:"lang",value:k,type:"string"}),I&&D.push({name:"meta",value:I,type:"string"}),wr({type:"block",name:"code",config:D,location:i(w)},[wa(m.value)])},":image":(u,f)=>(m,p,v)=>{let{title:$,alt:w,url:k,position:I,...j}=m;return wr({type:"block",name:"Image",config:[],location:i(I)},[kh(k,w),_h([$])])},":thematicBreak":(u,f)=>(m,p,v)=>null,":blockquote":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"nested",location:i(w)},v($,{...p}))},":table":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table",location:i(w)},v($,{...p}))},":tableRow":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table_row",location:i(w)},v($,{...p}))},":tableCell":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wr({name:"table_cell",location:i(w)},v($,{...p}))},":delete":(u,f)=>(m,p,v)=>{let{children:$,position:w,...k}=m;return wh(v($,{...p}))},":break":(u,f)=>(m,p,v)=>null}).run(e).interator};var Eh=fn(zl()),Ah={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:kf(i,{lineOffset:o})}}return e}},toJSX:t=>Eh.content},SO={Markdown:Ah},PO=Ah;export{SO as PluginRegister,PO as default,kf as parseMd,Ah as plugin};
32
32
  /*!
33
33
  * Determine if an object is a Buffer
34
34
  *