From 5984e034025cb7cacc1f3ccd3e0406807856937e Mon Sep 17 00:00:00 2001 From: azu Date: Sun, 19 Mar 2023 07:45:24 +0000 Subject: [PATCH] deploy: 25e3d3bc3ae9e34b4d5a6f4ab85f5c6e7f7eb6b0 --- index.html | 2 +- textlint-worker.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 42f52a8..d13cca2 100644 --- a/index.html +++ b/index.html @@ -149,7 +149,7 @@ color: var(--c4); background: var(--c2); border: 0; - padding: 0.6em + padding: 0.6em; } button, input[type=submit], input[type=reset], input[type="button"] { diff --git a/textlint-worker.js b/textlint-worker.js index 6d2d3c9..de27a22 100644 --- a/textlint-worker.js +++ b/textlint-worker.js @@ -1,27 +1,27 @@ -/*! textlinteditor:@@@ {"name":"editor-script-template","namespace":"https://github.com/textlint/editor-script-template","homepage":"https://github.com/textlint/editor-script-template","version":"1.0.0","config":{"filters":{"comments":true},"rules":{"no-todo":true},"plugins":{"@textlint/text":true,"@textlint/markdown":true}}} @@@ */(()=>{var e={9010:(e,t,n)=>{"use strict";var r;n.d(t,{_:()=>r}),function(e){e.Document="Document",e.DocumentExit="Document:exit",e.Paragraph="Paragraph",e.ParagraphExit="Paragraph:exit",e.BlockQuote="BlockQuote",e.BlockQuoteExit="BlockQuote:exit",e.ListItem="ListItem",e.ListItemExit="ListItem:exit",e.List="List",e.ListExit="List:exit",e.Header="Header",e.HeaderExit="Header:exit",e.CodeBlock="CodeBlock",e.CodeBlockExit="CodeBlock:exit",e.HtmlBlock="HtmlBlock",e.HtmlBlockExit="HtmlBlock:exit",e.HorizontalRule="HorizontalRule",e.HorizontalRuleExit="HorizontalRule:exit",e.Comment="Comment",e.CommentExit="Comment:exit",e.ReferenceDef="ReferenceDef",e.ReferenceDefExit="ReferenceDef:exit",e.Str="Str",e.StrExit="Str:exit",e.Break="Break",e.BreakExit="Break:exit",e.Emphasis="Emphasis",e.EmphasisExit="Emphasis:exit",e.Strong="Strong",e.StrongExit="Strong:exit",e.Html="Html",e.HtmlExit="Html:exit",e.Link="Link",e.LinkExit="Link:exit",e.Image="Image",e.ImageExit="Image:exit",e.Code="Code",e.CodeExit="Code:exit",e.Delete="Delete",e.DeleteExit="Delete:exit"}(r||(r={}))},6441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(9010);const o={root:r._.Document,paragraph:r._.Paragraph,blockquote:r._.BlockQuote,listItem:r._.ListItem,list:r._.List,Bullet:"Bullet",heading:r._.Header,code:r._.CodeBlock,HtmlBlock:r._.HtmlBlock,thematicBreak:r._.HorizontalRule,text:r._.Str,break:r._.Break,emphasis:r._.Emphasis,strong:r._.Strong,html:r._.Html,link:r._.Link,image:r._.Image,inlineCode:r._.Code,delete:r._.Delete,yaml:"Yaml",table:"Table",tableRow:"TableRow",tableCell:"TableCell",linkReference:"LinkReference",imageReference:"ImageReference",footnoteReference:"FootnoteReference",definition:"Definition",ReferenceDef:r._.ReferenceDef};var i=n(3692),u=n.n(i),s=n(1227),c=n.n(s),a=n(8835),l=n.n(a),f=n(8733),p=n(43),h=n.n(p),d=n(2861),g=n.n(d),y=n(5941),m=n.n(y),v=n(4251),x=n.n(v);f.transforms=[];const b=l()().use(g()).use(m(),["yaml"]).use(h()).use(x(),{inlineNotes:!0}),k=c()("@textlint/markdown-to-ast");function w(e){const t=65279===e.charCodeAt(0)?e.slice(1):e,n=(e=>b.parse(e))(t);return u()(n).forEach((function(e){if(this.notLeaf){if(e.type){const t=o[e.type];t?e.type=t:k(`replacedType : ${t} , node.type: ${e.type}`)}if(e.position){const n=e.position,r={start:{line:n.start.line,column:Math.max(n.start.column-1,0)},end:{line:n.end.line,column:Math.max(n.end.column-1,0)}},o=[n.start.offset,n.end.offset];e.loc=r,e.range=o,e.raw=t.slice(o[0],o[1]),Object.defineProperty(e,"position",{enumerable:!1,configurable:!1,writable:!1,value:n})}}})),n}const E={Processor:class{constructor(e={}){this.config=e,this.extensions=this.config.extensions?this.config.extensions:[]}availableExtensions(){return[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mkdown",".ron"].concat(this.extensions)}processor(e){return{preProcess:(e,t)=>w(e),postProcess:(e,t)=>({messages:e,filePath:t||""})}}}}},559:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(9010);const o={Document:r._.Document,Paragraph:r._.Paragraph,Str:r._.Str,Break:r._.Break};function i(e){const t=function(e){const t=/\r?\n/g,n=[];let r=null,o=0;for(;null!==(r=t.exec(e));){const t=e.slice(o,r.index);n.push({text:o===r.index?"":t,lineBreak:r[0]}),o=r.index+r[0].length}return e.length!==o&&n.push({text:e.slice(o,e.length),lineBreak:null}),n}(e);let n=0;const r=t.length-1,i=t.reduce((function(e,t,i){const u=i+1;if(((e,t)=>t===r&&""===e.text)(t,i))return e;if(((e,t)=>t!==r&&""===e.text)(t,i)){const r=function({lineBreak:e,lineNumber:t,startIndex:n}){return{type:o.Break,raw:e,range:[n,n+e.length],loc:{start:{line:t,column:0},end:{line:t,column:e.length}}}}({lineBreak:t.lineBreak,lineNumber:u,startIndex:n});return n+=r.raw.length,e.push(r),e}const s=function(e,t,n){return{type:o.Str,raw:e,value:e,range:[n,n+e.length],loc:{start:{line:t,column:0},end:{line:t,column:e.length}}}}(t.text,u,n),c=function(e){const t=e[0],n=e[e.length-1];return{type:o.Paragraph,raw:e.map((function(e){return e.raw})).join(""),range:[t.range[0],n.range[1]],loc:{start:{line:t.loc.start.line,column:t.loc.start.column},end:{line:n.loc.end.line,column:n.loc.end.column}},children:e}}([s]);if(n+=c.raw.length,e.push(c),null!==t.lineBreak){const r=function({prevNode:e,lineBreakText:t}){return{type:o.Break,raw:t,range:[e.range[1],e.range[1]+t.length],loc:{start:{line:e.loc.end.line,column:e.loc.end.column},end:{line:e.loc.end.line,column:e.loc.end.column+t.length}}}}({prevNode:c,lineBreakText:t.lineBreak});n+=r.raw.length,e.push(r)}return e}),[]),u=t[t.length-1];return void 0===u?{type:o.Document,raw:"",range:[0,0],loc:{start:{line:1,column:0},end:{line:1,column:0}},children:i}:{type:o.Document,raw:e,range:[0,e.length],loc:{start:{line:1,column:0},end:null!==u.lineBreak?{line:t.length+1,column:0}:{line:t.length,column:u.text.length}},children:i}}const u={Processor:class{constructor(e={}){this.config=e,this.extensions=this.config.extensions?this.config.extensions:[]}availableExtensions(){return[".txt",".text"].concat(this.extensions)}processor(e){return{preProcess:(e,t)=>i(e),postProcess:(e,t)=>({messages:e,filePath:t||""})}}}}},9282:(e,t,n)=>{"use strict";var r=n(4155),o=n(5108);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var u,s,c=n(2136).codes,a=c.ERR_AMBIGUOUS_ARGUMENT,l=c.ERR_INVALID_ARG_TYPE,f=c.ERR_INVALID_ARG_VALUE,p=c.ERR_INVALID_RETURN_VALUE,h=c.ERR_MISSING_ARGS,d=n(5961),g=n(9539).inspect,y=n(9539).types,m=y.isPromise,v=y.isRegExp,x=Object.assign?Object.assign:n(8091).assign,b=Object.is?Object.is:n(609);new Map;function k(){var e=n(9158);u=e.isDeepEqual,s=e.isDeepStrictEqual}var w=!1,E=e.exports=A,S={};function C(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function O(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";var r=n(4155);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=0;ne.length)&&(n=e.length),e.substring(n-t.length,n)===t}var m="",v="",x="",b="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function E(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,n){var o="",i="",u=0,s="",c=!1,a=E(e),l=a.split("\n"),f=E(t).split("\n"),p=0,d="";if("strictEqual"===n&&"object"===h(e)&&"object"===h(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var g=l[0].length+f[0].length;if(g<=10){if(!("object"===h(e)&&null!==e||"object"===h(t)&&null!==t||0===e&&0===t))return"".concat(k[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n){if(g<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}}for(var w=l[l.length-1],S=f[f.length-1];w===S&&(p++<2?s="\n ".concat(w).concat(s):o=w,l.pop(),f.pop(),0!==l.length&&0!==f.length);)w=l[l.length-1],S=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var O=a.split("\n");if(O.length>30)for(O[26]="".concat(m,"...").concat(b);O.length>27;)O.pop();return"".concat(k.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(s="\n".concat(m,"...").concat(b).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var A=0,j=k[n]+"\n".concat(v,"+ actual").concat(b," ").concat(x,"- expected").concat(b),P=" ".concat(m,"...").concat(b," Lines skipped");for(p=0;p1&&p>2&&(F>4?(i+="\n".concat(m,"...").concat(b),c=!0):F>3&&(i+="\n ".concat(f[p-2]),A++),i+="\n ".concat(f[p-1]),A++),u=p,o+="\n".concat(x,"-").concat(b," ").concat(f[p]),A++;else if(f.length1&&p>2&&(F>4?(i+="\n".concat(m,"...").concat(b),c=!0):F>3&&(i+="\n ".concat(l[p-2]),A++),i+="\n ".concat(l[p-1]),A++),u=p,i+="\n".concat(v,"+").concat(b," ").concat(l[p]),A++;else{var _=f[p],I=l[p],D=I!==_&&(!y(I,",")||I.slice(0,-1)!==_);D&&y(_,",")&&_.slice(0,-1)===I&&(D=!1,I+=","),D?(F>1&&p>2&&(F>4?(i+="\n".concat(m,"...").concat(b),c=!0):F>3&&(i+="\n ".concat(l[p-2]),A++),i+="\n ".concat(l[p-1]),A++),u=p,i+="\n".concat(v,"+").concat(b," ").concat(I),o+="\n".concat(x,"-").concat(b," ").concat(_),A+=2):(i+=o,o="",1!==F&&0!==p||(i+="\n ".concat(I),A++))}if(A>20&&p30)for(y[26]="".concat(m,"...").concat(b);y.length>27;)y.pop();n=1===y.length?u(this,p(t).call(this,"".concat(d," ").concat(y[0]))):u(this,p(t).call(this,"".concat(d,"\n\n").concat(y.join("\n"),"\n")))}else{var C=E(a),O="",A=k[i];"notDeepEqual"===i||"notEqual"===i?(C="".concat(k[i],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(O="".concat(E(l)),C.length>512&&(C="".concat(C.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===i||"equal"===i?C="".concat(A,"\n\n").concat(C,"\n\nshould equal\n\n"):O=" ".concat(i," ").concat(O)),n=u(this,p(t).call(this,"".concat(C).concat(O)))}return Error.stackTraceLimit=f,n.generatedMessage=!o,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=a,n.expected=l,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(n),c),n.stack,n.name="AssertionError",u(n)}var n,c,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var s,c,a={};function l(e,t,n){n||(n=Error);var r=function(n){function r(n,u,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),c=o(this,i(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,u,s))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(r,n),r}(n);a[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,u,c,a;if(void 0===s&&(s=n(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(u="not ",t.substr(!c||c<0?0:+c,u.length)===u)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return a+=". Received type ".concat(r(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=n(9539));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=a},9158:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,u=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(609),a=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(360);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),g=n(9539).types,y=g.isAnyArrayBuffer,m=g.isArrayBufferView,v=g.isDate,x=g.isMap,b=g.isRegExp,k=g.isSet,w=g.isNativeError,E=g.isBoxedPrimitive,S=g.isNumberObject,C=g.isStringObject,O=g.isBooleanObject,A=g.isBigIntObject,j=g.isSymbolObject,P=g.isFloat32Array,F=g.isFloat64Array;function _(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function I(e){return Object.keys(e).filter(_).concat(a(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))} +/*! textlinteditor:@@@ {"name":"editor-script-template","namespace":"https://github.com/textlint/editor-script-template","homepage":"https://github.com/textlint/editor-script-template","version":"1.0.0","config":{"filters":{"comments":true},"rules":{"no-todo":true},"plugins":{"@textlint/text":true,"@textlint/markdown":true}}} @@@ */(()=>{var e={1122:(e,t,n)=>{"use strict";var r;n.d(t,{_:()=>r}),function(e){e.Document="Document",e.DocumentExit="Document:exit",e.Paragraph="Paragraph",e.ParagraphExit="Paragraph:exit",e.BlockQuote="BlockQuote",e.BlockQuoteExit="BlockQuote:exit",e.ListItem="ListItem",e.ListItemExit="ListItem:exit",e.List="List",e.ListExit="List:exit",e.Header="Header",e.HeaderExit="Header:exit",e.CodeBlock="CodeBlock",e.CodeBlockExit="CodeBlock:exit",e.HtmlBlock="HtmlBlock",e.HtmlBlockExit="HtmlBlock:exit",e.HorizontalRule="HorizontalRule",e.HorizontalRuleExit="HorizontalRule:exit",e.Comment="Comment",e.CommentExit="Comment:exit",e.ReferenceDef="ReferenceDef",e.ReferenceDefExit="ReferenceDef:exit",e.Str="Str",e.StrExit="Str:exit",e.Break="Break",e.BreakExit="Break:exit",e.Emphasis="Emphasis",e.EmphasisExit="Emphasis:exit",e.Strong="Strong",e.StrongExit="Strong:exit",e.Html="Html",e.HtmlExit="Html:exit",e.Link="Link",e.LinkExit="Link:exit",e.Image="Image",e.ImageExit="Image:exit",e.Code="Code",e.CodeExit="Code:exit",e.Delete="Delete",e.DeleteExit="Delete:exit",e.Table="Table",e.TableExit="Table:exit",e.TableRow="TableRow",e.TableRowExit="TableRow:exit",e.TableCell="TableCell",e.TableCellExit="TableCell:exit"}(r||(r={}))},8833:(e,t)=>{"use strict";function n(e,t){return e>>1,u=i+n;r(e[u],t)?(i=u+1,o-=n+1):o=n}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.binarySearch=t.upperBound=t.lowerBound=t.compare=void 0,t.compare=n,t.upperBound=function(e,t,r=n){let o=e.length,i=0;for(;o;){let n=o>>>1,u=i+n;r(t,e[u])?o=n:(i=u+1,o-=n+1)}return i},t.lowerBound=r,t.binarySearch=function(e,t,o=n){let i=r(e,t,o);return i!==e.length&&!o(t,e[i])}},3337:(e,t,n)=>{"use strict";t.n=void 0;const r=n(8833);t.n=class{constructor(e){this.indice=[0];let t=/[\r\n\u2028\u2029]/g;const n=e.length;for(t.lastIndex=0;;){let r=t.exec(e);if(!r)break;let o=r.index;13===e.charCodeAt(o)&&10===e.charCodeAt(o+1)&&(o+=1);let i=o+1;if(n{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(1122);const o={root:r._.Document,paragraph:r._.Paragraph,blockquote:r._.BlockQuote,listItem:r._.ListItem,list:r._.List,Bullet:"Bullet",heading:r._.Header,code:r._.CodeBlock,HtmlBlock:r._.HtmlBlock,thematicBreak:r._.HorizontalRule,text:r._.Str,break:r._.Break,emphasis:r._.Emphasis,strong:r._.Strong,html:r._.Html,link:r._.Link,image:r._.Image,inlineCode:r._.Code,delete:r._.Delete,yaml:"Yaml",table:"Table",tableRow:"TableRow",tableCell:"TableCell",linkReference:"LinkReference",imageReference:"ImageReference",footnoteReference:"FootnoteReference",definition:"Definition",ReferenceDef:r._.ReferenceDef};var i=n(3692),u=n.n(i),s=n(1227),a=n.n(s),c=n(8835),l=n.n(c),f=n(8733),p=n(43),h=n.n(p),d=n(2861),g=n.n(d),y=n(5941),m=n.n(y),v=n(4251),x=n.n(v);f.transforms=[];const b=l()().use(g()).use(m(),["yaml"]).use(h()).use(x(),{inlineNotes:!0}),k=e=>b.parse(e),w=a()("@textlint/markdown-to-ast");const E={Processor:class{constructor(e={}){this.config=e,this.extensions=this.config.extensions?this.config.extensions:[]}availableExtensions(){return[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mkdown",".ron"].concat(this.extensions)}processor(e){return{preProcess:(e,t)=>function(e){const t=65279===e.charCodeAt(0)?e.slice(1):e,n=k(t);return u()(n).forEach((function(e){if(this.notLeaf){if(e.type){const t=o[e.type];t?e.type=t:w(`replacedType : ${t} , node.type: ${e.type}`)}if(e.position){const n=e.position,r={start:{line:n.start.line,column:Math.max(n.start.column-1,0)},end:{line:n.end.line,column:Math.max(n.end.column-1,0)}},o=[n.start.offset,n.end.offset];e.loc=r,e.range=o,e.raw=t.slice(o[0],o[1]),Object.defineProperty(e,"position",{enumerable:!1,configurable:!1,writable:!1,value:n})}}})),n}(e),postProcess:(e,t)=>({messages:e,filePath:t||""})}}}}},3996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(1122);const o={Document:r._.Document,Paragraph:r._.Paragraph,Str:r._.Str,Break:r._.Break};function i(e){const t=function(e){const t=/\r?\n/g,n=[];let r=null,o=0;for(;null!==(r=t.exec(e));){const t=e.slice(o,r.index);n.push({text:o===r.index?"":t,lineBreak:r[0]}),o=r.index+r[0].length}return e.length!==o&&n.push({text:e.slice(o,e.length),lineBreak:null}),n}(e);let n=0;const r=t.length-1,i=t.reduce((function(e,t,i){const u=i+1;if(((e,t)=>t===r&&""===e.text)(t,i))return e;if(((e,t)=>t!==r&&""===e.text)(t,i)){const r=function({lineBreak:e,lineNumber:t,startIndex:n}){return{type:o.Break,raw:e,range:[n,n+e.length],loc:{start:{line:t,column:0},end:{line:t,column:e.length}}}}({lineBreak:t.lineBreak,lineNumber:u,startIndex:n});return n+=r.raw.length,e.push(r),e}const s=function(e,t,n){return{type:o.Str,raw:e,value:e,range:[n,n+e.length],loc:{start:{line:t,column:0},end:{line:t,column:e.length}}}}(t.text,u,n),a=function(e){const t=e[0],n=e[e.length-1];return{type:o.Paragraph,raw:e.map((function(e){return e.raw})).join(""),range:[t.range[0],n.range[1]],loc:{start:{line:t.loc.start.line,column:t.loc.start.column},end:{line:n.loc.end.line,column:n.loc.end.column}},children:e}}([s]);if(n+=a.raw.length,e.push(a),null!==t.lineBreak){const r=function({prevNode:e,lineBreakText:t}){return{type:o.Break,raw:t,range:[e.range[1],e.range[1]+t.length],loc:{start:{line:e.loc.end.line,column:e.loc.end.column},end:{line:e.loc.end.line,column:e.loc.end.column+t.length}}}}({prevNode:a,lineBreakText:t.lineBreak});n+=r.raw.length,e.push(r)}return e}),[]),u=t[t.length-1];return void 0===u?{type:o.Document,raw:"",range:[0,0],loc:{start:{line:1,column:0},end:{line:1,column:0}},children:i}:{type:o.Document,raw:e,range:[0,e.length],loc:{start:{line:1,column:0},end:null!==u.lineBreak?{line:t.length+1,column:0}:{line:t.length,column:u.text.length}},children:i}}const u={Processor:class{constructor(e={}){this.config=e,this.extensions=this.config.extensions?this.config.extensions:[]}availableExtensions(){return[".txt",".text"].concat(this.extensions)}processor(e){return{preProcess:(e,t)=>i(e),postProcess:(e,t)=>({messages:e,filePath:t||""})}}}}},9282:(e,t,n)=>{"use strict";var r=n(4155),o=n(5108);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var u,s,a=n(2136).codes,c=a.ERR_AMBIGUOUS_ARGUMENT,l=a.ERR_INVALID_ARG_TYPE,f=a.ERR_INVALID_ARG_VALUE,p=a.ERR_INVALID_RETURN_VALUE,h=a.ERR_MISSING_ARGS,d=n(5961),g=n(9539).inspect,y=n(9539).types,m=y.isPromise,v=y.isRegExp,x=Object.assign?Object.assign:n(8091).assign,b=Object.is?Object.is:n(609);new Map;function k(){var e=n(9158);u=e.isDeepEqual,s=e.isDeepStrictEqual}var w=!1,E=e.exports=A,S={};function O(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function C(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";var r=n(4155);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=0;ne.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",m="",v="",x="",b={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},k=10;function w(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function E(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(e,t,n){var o="",i="",u=0,s="",a=!1,c=E(e),l=c.split("\n"),f=E(t).split("\n"),h=0,d="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var w=l[0].length+f[0].length;if(w<=k){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(b[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n){if(w<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",h),"^"),h=0)}}}for(var S=l[l.length-1],O=f[f.length-1];S===O&&(h++<2?s="\n ".concat(S).concat(s):o=S,l.pop(),f.pop(),0!==l.length&&0!==f.length);)S=l[l.length-1],O=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(y,"...").concat(x);A.length>27;)A.pop();return"".concat(b.notIdentical,"\n\n").concat(A.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(x).concat(s),a=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var j=0,P=b[n]+"\n".concat(m,"+ actual").concat(x," ").concat(v,"- expected").concat(x),F=" ".concat(y,"...").concat(x," Lines skipped");for(h=0;h1&&h>2&&(I>4?(i+="\n".concat(y,"...").concat(x),a=!0):I>3&&(i+="\n ".concat(f[h-2]),j++),i+="\n ".concat(f[h-1]),j++),u=h,o+="\n".concat(v,"-").concat(x," ").concat(f[h]),j++;else if(f.length1&&h>2&&(I>4?(i+="\n".concat(y,"...").concat(x),a=!0):I>3&&(i+="\n ".concat(l[h-2]),j++),i+="\n ".concat(l[h-1]),j++),u=h,i+="\n".concat(m,"+").concat(x," ").concat(l[h]),j++;else{var R=f[h],T=l[h],D=T!==R&&(!g(T,",")||T.slice(0,-1)!==R);D&&g(R,",")&&R.slice(0,-1)===T&&(D=!1,T+=","),D?(I>1&&h>2&&(I>4?(i+="\n".concat(y,"...").concat(x),a=!0):I>3&&(i+="\n ".concat(l[h-2]),j++),i+="\n ".concat(l[h-1]),j++),u=h,i+="\n".concat(m,"+").concat(x," ").concat(T),o+="\n".concat(v,"-").concat(x," ").concat(R),j+=2):(i+=o,o="",1!==I&&0!==h||(i+="\n ".concat(T),j++))}if(j>20&&h30)for(k[26]="".concat(y,"...").concat(x);k.length>27;)k.pop();n=1===k.length?u(this,f(t).call(this,"".concat(g," ").concat(k[0]))):u(this,f(t).call(this,"".concat(g,"\n\n").concat(k.join("\n"),"\n")))}else{var O=E(c),C="",A=b[i];"notDeepEqual"===i||"notEqual"===i?(O="".concat(b[i],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):(C="".concat(E(l)),O.length>512&&(O="".concat(O.slice(0,509),"...")),C.length>512&&(C="".concat(C.slice(0,509),"...")),"deepEqual"===i||"equal"===i?O="".concat(A,"\n\n").concat(O,"\n\nshould equal\n\n"):C=" ".concat(i," ").concat(C)),n=u(this,f(t).call(this,"".concat(O).concat(C)))}return Error.stackTraceLimit=h,n.generatedMessage=!o,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=c,n.expected=l,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(n),a),n.stack,n.name="AssertionError",u(n)}var n,a,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,a=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var s,a,c={};function l(e,t,n){n||(n=Error);var r=function(n){function r(n,u,s){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),a=o(this,i(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,u,s))),a.code=e,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(r,n),r}(n);c[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,u,a,c;if(void 0===s&&(s=n(9282)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(u="not ",t.substr(!a||a<0?0:+a,u.length)===u)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return c+=". Received type ".concat(r(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=n(9539));var o=a.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=c},9158:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,u=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},a=Object.is?Object.is:n(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(360);function f(e){return e.call.bind(e)}var p=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),g=n(9539).types,y=g.isAnyArrayBuffer,m=g.isArrayBufferView,v=g.isDate,x=g.isMap,b=g.isRegExp,k=g.isSet,w=g.isNativeError,E=g.isBoxedPrimitive,S=g.isNumberObject,O=g.isStringObject,C=g.isBooleanObject,A=g.isBigIntObject,j=g.isSymbolObject,P=g.isFloat32Array,F=g.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(I).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))} /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function D(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o{"use strict";e.exports=function(e){if(e)throw e}},6008:(e,t)=>{"use strict";function n(e,t){return e>>1,u=o+i;r(e[u],t)?(o=u+1,n-=i+1):n=i}return o}()}t.G=function(e,t,r){return void 0===r&&(r=n),function(){for(var n=e.length,o=0;n;){var i=n>>>1,u=o+i;r(t,e[u])?n=i:(o=u+1,n-=i+1)}return o}()}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(u,i),c=o("%Object.getOwnPropertyDescriptor%",!0),a=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(e){var t=s(r,u,arguments);if(c&&a){var n=c(t,"length");n.configurable&&a(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(r,i,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f},932:e=>{"use strict";e.exports=function(e,t){var n,r=String(e),o=0;if("string"!=typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)o++,n=r.indexOf(t,n+t.length);return o}},5108:(e,t,n)=>{var r=n(9539),o=n(9282);function i(){return(new Date).getTime()}var u,s=Array.prototype.slice,c={};u=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var a=[[function(){},"log"],[function(){u.log.apply(u,arguments)},"info"],[function(){u.log.apply(u,arguments)},"warn"],[function(){u.warn.apply(u,arguments)},"error"],[function(e){c[e]=i()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=i()-t;u.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),u.error(e.stack)},"trace"],[function(e){u.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],l=0;l{var r=n(5108),o=n(4155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,r.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=r.debug||r.log||(()=>{}),e.exports=n(2447)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{var r=n(5108);e.exports=function(e){function t(e){let n,r,i,u=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";u++;const i=t.formatters[o];if("function"==typeof i){const t=e[u];n=i.call(r,t),e.splice(u,1),u--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{u=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var r=n(2215),o=n(2584),i=n(609),u=n(8420),s=n(2847),c=n(8923),a=Date.prototype.getTime;function l(e,t,n){var h=n||{};return!!(h.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?h.strict?i(e,t):e==t:function(e,t,n){var i,h;if(typeof e!=typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var d=u(e),g=u(t);if(d!==g)return!1;if(d||g)return e.source===t.source&&s(e)===s(t);if(c(e)&&c(t))return a.call(e)===a.call(t);var y=p(e),m=p(t);if(y!==m)return!1;if(y||m){if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(v[i]!=x[i])return!1;for(i=v.length-1;i>=0;i--)if(!l(e[h=v[i]],t[h],n))return!1;return!0}(e,t,h))}function f(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=l},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,u=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),a=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=u.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r{var r=n(5108);function o(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function u(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},o.prototype.emit=function(e){var t,n,r,o,c,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(s(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(u(n))for(o=Array.prototype.slice.call(arguments,1),r=(a=n.slice()).length,c=0;c0&&this._events[e].length>n&&(this._events[e].warned=!0,r.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof r.trace&&r.trace()),this},o.prototype.on=o.prototype.addListener,o.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},o.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(u(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},o.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},o.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},o.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},o.listenerCount=function(e,t){return e.listenerCount(t)}},4470:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},u=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,a,l,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{"use strict";var r=n(6291),o=i(Error);function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=o,o.eval=i(EvalError),o.range=i(RangeError),o.reference=i(ReferenceError),o.syntax=i(SyntaxError),o.type=i(TypeError),o.uri=i(URIError),o.create=i},9804:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,o){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var u=0;u{var r=n(5108);!function(){var t;function n(e){for(var t,n,r,o,i=1,u=[].slice.call(arguments),s=0,c=e.length,a="",l=!1,f=!1,p=function(){return u[i++]},h=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s{"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var u,s=n.call(arguments,1),c=function(){if(this instanceof u){var t=i.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(n.call(arguments)))},a=Math.max(0,i.length-s.length),l=[],f=0;f{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,u=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var a=function(){throw new u},l=c?function(){try{return a}catch(e){try{return c(arguments,"callee").get}catch(e){return a}}}():a,f=n(1405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},h={},d="undefined"==typeof Uint8Array?r:p(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=p(o.prototype))}return g[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(8612),x=n(7642),b=v.call(Function.call,Array.prototype.concat),k=v.call(Function.apply,Array.prototype.splice),w=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return w(e,S,(function(e,t,n,o){r[r.length]=n?w(o,C,"$1"):t||e})),r},A=function(e,t){var n,r=e;if(x(m,r)&&(r="%"+(n=m[r])[0]+"%"),x(g,r)){var i=g[r];if(i===h&&(i=y(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');var n=O(e),r=n.length>0?n[0]:"",i=A("%"+r+"%",t),s=i.name,a=i.value,l=!1,f=i.alias;f&&(r=f[0],k(n,b([0,1],f)));for(var p=1,h=!0;p=n.length){var v=c(a,d);a=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[d]}else h=x(a,d),a=a[d];h&&!l&&(g[s]=a)}}return a}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},u=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=u,e.exports=s?i:u},8923:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8662:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,u=/^\s*(?:function)?\*/,s=n(6410)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(u.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(e);if(!c)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,n)=>{"use strict";var r=n(5559),o=n(4289),i=n(8611),u=n(9415),s=n(3194),c=r(u(),Number);o(c,{getPolyfill:u,implementation:i,shim:s}),e.exports=c},9415:(e,t,n)=>{"use strict";var r=n(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3194:(e,t,n)=>{"use strict";var r=n(4289),o=n(9415);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},8420:(e,t,n)=>{"use strict";var r,o,i,u,s=n(1924),c=n(6410)();if(c){r=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),i={};var a=function(){throw i};u={toString:a,valueOf:a},"symbol"==typeof Symbol.toPrimitive&&(u[Symbol.toPrimitive]=a)}var l=s("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,u)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===l(e)}},5692:(e,t,n)=>{"use strict";var r=n(9804),o=n(3083),i=n(1924),u=i("Object.prototype.toString"),s=n(6410)(),c="undefined"==typeof globalThis?n.g:globalThis,a=o(),l=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!h&&function(e){var t=!1;return r(p,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},8234:(e,t,n)=>{"use strict";var r=n(6464);e.exports=function(e,t){var n,l,f,p,h,d,g,y,m,v,x,b=t||{},k=!1!==b.padding,w=!1!==b.delimiterStart,E=!1!==b.delimiterEnd,S=(b.align||[]).concat(),C=!1!==b.alignDelimiters,O=[],A=b.stringLength||c,j=-1,P=e.length,F=[],_=[],I=[],D=[],T=[],R=0;for(;++jR&&(R=f);++lp)&&(T[l]=h)),I.push(d);F[j]=I,_[j]=D}var L;if(l=-1,f=R,"object"==typeof S&&"length"in S)for(;++lT[l]&&(T[l]=h),D[l]=h),I[l]=d;F.splice(1,0,I),_.splice(1,0,D),j=-1,P=F.length,g=[];for(;++j{"use strict";e.exports=function(e,t,n,r){var o,i;"string"==typeof t||t&&"function"==typeof t.exec?i=[[t,n]]:(i=t,r=n);return s(e,o=r||{},function e(t){var n=t[0];return r;function r(r,i){var c,a,l,f,p=n[0],h=n[1],d=[],g=0,y=i.children.indexOf(r);for(p.lastIndex=0,a=p.exec(r.value);a&&(c=a.index,!1!==(f=h.apply(null,[].concat(a,{index:a.index,input:a.input})))&&(g!==c&&d.push({type:"text",value:r.value.slice(g,c)}),"string"==typeof f&&f.length>0&&(f={type:"text",value:f}),f&&(d=[].concat(d,f)),g=c+a[0].length),p.global);)a=p.exec(r.value);if(void 0===c?(d=[r],y--):(g1)for(l=e(t.slice(1)),c=-1;++c{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},3366:(e,t,n)=>{var r=n(5478);t.canContainEols=["footnote"],t.enter={footnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},footnoteDefinitionLabelString:function(){this.buffer()},footnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},footnoteCallString:function(){this.buffer()},inlineNote:function(e){this.enter({type:"footnote",children:[]},e)}},t.exit={footnoteDefinition:function(e){this.exit(e)},footnoteDefinitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=r(this.sliceSerialize(e)).toLowerCase()},footnoteCall:function(e){this.exit(e)},footnoteCallString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=r(this.sliceSerialize(e)).toLowerCase()},inlineNote:function(e){this.exit(e)}}},8628:(e,t,n)=>{t.unsafe=[{character:"[",inConstruct:["phrasing","label","reference"]}],t.handlers={footnote:a,footnoteDefinition:function(e,t,n){var o,c=n.enter("footnoteDefinition"),a=n.enter("label"),l="[^"+s(n,r(e),{before:"^",after:"]"})+"]:";return a(),o=u(i(e,n),(function(e,t,n){if(t)return(n?"":" ")+e;return(n?l:l+" ")+e})),c(),o},footnoteReference:c};var r=n(9904),o=n(5362),i=n(3493),u=n(2670),s=n(1113);function c(e,t,n){var o=n.enter("footnoteReference"),i=n.enter("reference"),u=s(n,r(e),{before:"^",after:"]"});return i(),o(),"[^"+u+"]"}function a(e,t,n){var r=n.enter("footnote"),i=n.enter("label"),u="^["+o(e,n,{before:"[",after:"]"})+"]";return i(),r(),u}c.peek=function(){return"["},a.peek=function(){return"^"}},2524:(e,t,n)=>{"use strict";e.exports=function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n-1&&(B.call(this,e),M.call(this,e))}function N(){d("atHardBreak",!0)}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function $(){var e=this.stack[this.stack.length-1];g("inReference")?(e.type+="Reference",e.referenceType=g("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),d("referenceType")}function V(){var e=this.stack[this.stack.length-1];g("inReference")?(e.type+="Reference",e.referenceType=g("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),d("referenceType")}function W(e){this.stack[this.stack.length-2].identifier=u(this.sliceSerialize(e)).toLowerCase()}function G(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,d("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Q(){var e=this.resume();this.stack[this.stack.length-1].url=e}function J(){var e=this.resume();this.stack[this.stack.length-1].title=e}function K(){d("inReference")}function Y(){d("referenceType","collapsed")}function Z(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=u(this.sliceSerialize(e)).toLowerCase(),d("referenceType","full")}function X(e){d("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),o=g("characterReferenceType");o?(t=s(r,"characterReferenceMarkerNumeric"===o?10:16),d("characterReferenceType")):t=f(r),(n=this.stack.pop()).value+=t,n.position.end=y(e.end)}function te(e){M.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){M.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function ie(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function ce(){return{type:"heading",depth:void 0,children:[]}}function ae(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function ye(){return{type:"strong",children:[]}}function me(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(n)(l(c(n).document().write(a()(e,t,!0))))};var r=n(4999),o=n(9198),i=n(6706),u=n(5478),s=n(596),c=n(2976),a=n(162),l=n(1242),f=n(9435),p=n(5432);function h(e,t){var n,r;for(n in t)r=i.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},9671:(e,t,n)=>{"use strict";e.exports=n(2524)},6150:(e,t,n)=>{e.exports=function(e){var t,n=r(e),s=n.length,c=-1,a={},l={};for(;++c{e.exports=function(e){var t,n=[],u={},s=r(e),c=s.length,a=-1;for(;++a{var r=n(932),o=n(2962),i=n(6996),u=n(395);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function c(e,t,n,o,i){var u,s,c="";return!!l(i)&&(/^w/i.test(t)&&(n=t+n,t="",c="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(u=function(e){var t,n,o,i=/[!"&'),.:;<>?\]}]+$/.exec(e);if(i)for(e=e.slice(0,i.index),t=(i=i[0]).indexOf(")"),n=r(e,"("),o=r(e,")");-1!==t&&n>o;)e+=i.slice(0,t+1),t=(i=i.slice(t+1)).indexOf(")"),o++;return[e,i]}(n+o))[0]&&(s={type:"link",title:null,url:c+t+u[0],children:[{type:"text",value:t+u[0]}]},u[1]&&(s=[s,{type:"text",value:u[1]}]),s)))}function a(e,t,n,r){return!(!l(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||u(n)||i(n))&&(!t||47!==n)}t.transforms=[function(e){o(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,c],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,a]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},5574:(e,t)=>{var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},8740:(e,t)=>{t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},9888:(e,t,n)=>{var r=n(5362);function o(e,t,n){var o=n.enter("emphasis"),i=r(e,n,{before:"~",after:"~"});return o(),"~~"+i+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:o},o.peek=function(){return"~"}},4865:(e,t)=>{function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function o(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,o));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},3046:(e,t,n)=>{var r=n(5362),o=n(1595),i=n(8234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,u=t.tablePipeAlign,s=t.stringLength,c=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return l(function(e,t){var n=e.children,r=-1,o=n.length,i=[],u=t.enter("table");for(;++r{function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],o=n.children,i=r.children[0],u=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&i&&"text"===i.type){for(;++u{var r=n(8618);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var o=r(e,t,n),i=e.children[0];"boolean"==typeof e.checked&&i&&"paragraph"===i.type&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return o}}},438:(e,t,n)=>{var r=n(8733),o=n(8740),i=n(4865),u=n(9511),s={}.hasOwnProperty;function c(e,t){var n,r,o;for(n in t)r=s.call(e,n)?e[n]:e[n]={},o=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,o):Object.assign(r,o)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r{var r=n(5574),o=n(9888),i=n(3046),u=n(4625),s=n(2564);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,o,i(e),u]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},2564:e=>{e.exports=function e(t,n){var r,o=-1;if(n.extensions)for(;++o{e.exports=o,o.peek=function(){return"`"};var r=n(4553);function o(e,t,n){for(var o,i,u,s,c=e.value||"",a="`",l=-1;new RegExp("(^|[^`])"+a+"([^`]|$)").test(c);)a+="`";for(/[^ \r\n]/.test(c)&&(/[ \r\n`]/.test(c.charAt(0))||/[ \r\n`]/.test(c.charAt(c.length-1)))&&(c=" "+c+" ");++l{e.exports=function(e,t,n){var c,a,l,f=o(n),p=i(n);t&&t.ordered&&(f=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");c=f.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(c=4*Math.ceil(c/4));return l=n.enter("listItem"),a=s(u(e,n),(function(e,t,n){if(t)return(n?"":r(" ",c))+e;return(n?f:f+r(" ",c-f.length))+e})),l(),a};var r=n(6464),o=n(9400),i=n(6636),u=n(3493),s=n(2670)},9904:(e,t,n)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(o,"$1").replace(i,u)};var r=n(9435),o=/\\([!-/:-@[-`{-~])/g,i=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function u(e,t){return r(t)||e}},9400:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6636:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},3493:(e,t,n)=>{e.exports=function(e,t){var n,o=e.children||[],i=[],u=-1;for(;++u{e.exports=function(e,t,n){var r,o,i,u=e.children||[],s=[],c=-1,a=n.before;for(;++c0&&("\r"===a||"\n"===a)&&"html"===i.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" "),s.push(t.handle(i,e,t,{before:a,after:r})),a=s[s.length-1].slice(-1);return s.join("")}},2670:e=>{e.exports=function(e,n){var r,o=[],i=0,u=0;for(;r=t.exec(e);)s(e.slice(i,r.index)),o.push(r[0]),i=r.index+r[0].length,u++;return s(e.slice(i)),o.join("");function s(e){o.push(n(e,u,!e))}};var t=/\r?\n|\r/g},4553:e=>{e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},6112:e=>{function t(e,t,n){var r;if(!t)return n;for("string"==typeof t&&(t=[t]),r=-1;++r{e.exports=function(e,t,n){var s,c,a,l,f,p,h,d,g=(n.before||"")+(t||"")+(n.after||""),y=[],m=[],v={},x=-1;for(;++x=d||a+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r{e.exports=function(e){var t={tokenize:d,resolveAll:f},n={add:"after",tokenize:g,resolveAll:f,resolveTo:p},r={tokenize:y,continuation:{tokenize:m},exit:v},o={91:{tokenize:h}};(e||{}).inlineNotes&&(o[93]=n,o[94]=t);return{_hiddenFootnoteSupport:{},document:{91:r},text:o}};var r=n(5478),o=n(6532),i=n(2928),u=n(6808),s=n(5096),c=n(5923),a=n(8280),l={tokenize:function(e,t,n){var r=this;return i(e,(function(e){return 4===s(r.events,"footnoteDefinitionIndent")?t(e):n(e)}),"footnoteDefinitionIndent",5)},partial:!0};function f(e){for(var t,n=e.length,r=-1;++r999?n(c):93===c?o?(e.exit("chunkString"),f=e.exit("footnoteCallString"),u.indexOf(r(i.sliceSerialize(f)))<0?n(c):function(n){return e.enter("footnoteCallLabelMarker"),e.consume(n),e.exit("footnoteCallLabelMarker"),e.exit("footnoteCall"),t}(c)):n(c):(e.consume(c),c<0||32===c||(o=!0),92===c?l:a)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,a):a(t)}}function d(e,t,n){return function(t){return 94!==t?n(t):(e.enter("inlineNoteStart"),e.enter("inlineNoteMarker"),e.consume(t),e.exit("inlineNoteMarker"),r)};function r(r){return 91!==r?n(r):(e.enter("inlineNoteStartMarker"),e.consume(r),e.exit("inlineNoteStartMarker"),e.exit("inlineNoteStart"),t)}}function g(e,t,n){var r=this;return function(o){var i,u=r.events.length;for(;u--;)if("inlineNoteStart"===r.events[u][1].type){i=!0;break}if(93!==o||!i)return n(o);return e.enter("inlineNoteEnd"),e.enter("inlineNoteEndMarker"),e.consume(o),e.exit("inlineNoteEndMarker"),e.exit("inlineNoteEnd"),t}}function y(e,t,n){var i,u,s=this,c=s.parser.footnotes||(s.parser.footnotes=[]),a=0;return function(t){if(91!==t)return n(t);return e.enter("footnoteDefinition")._container=!0,e.enter("footnoteDefinitionLabel"),e.enter("footnoteDefinitionLabelMarker"),e.consume(t),e.exit("footnoteDefinitionLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("footnoteDefinitionMarker"),e.consume(t),e.exit("footnoteDefinitionMarker"),e.enter("footnoteDefinitionLabelString"),f)}function f(t){var o;return null===t||91===t||a>999?n(t):93===t?u?(o=e.exit("footnoteDefinitionLabelString"),i=r(s.sliceSerialize(o)),e.enter("footnoteDefinitionLabelMarker"),e.consume(t),e.exit("footnoteDefinitionLabelMarker"),e.exit("footnoteDefinitionLabel"),d):n(t):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a++,f):(e.enter("chunkString").contentType="string",p(t))}function p(t){return null===t||-5===t||-4===t||-3===t||91===t||93===t||a>999?(e.exit("chunkString"),f(t)):(t<0||32===t||(u=!0),a++,e.consume(t),92===t?h:p)}function h(t){return 91===t||92===t||93===t?(e.consume(t),a++,p):p(t)}function d(t){return 58!==t?n(t):(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),e.check(o,g,y))}function g(e){return s.containerState.initialBlankLine=!0,m(e)}function y(t){return-2===t||-1===t||32===t?(e.enter("footnoteDefinitionWhitespace"),e.consume(t),e.exit("footnoteDefinitionWhitespace"),m(t)):m(t)}function m(e){return c.indexOf(i)<0&&c.push(i),t(e)}}function m(e,t,n){var r=this;return e.check(o,(function(e){r.containerState.initialBlankLine&&(r.containerState.furtherBlankLines=!0);return t(e)}),(function(o){if(r.containerState.furtherBlankLines||-2!==o&&-1!==o&&32!==o)return n(o);return r.containerState.initialBlankLine=void 0,r.containerState.furtherBlankLines=void 0,e.attempt(l,t,n)(o)}))}function v(e){e.exit("footnoteDefinition")}},7969:(e,t,n)=>{e.exports=n(6385)},4035:(e,t,n)=>{e.exports=function(e){var t,n=e||"yaml",r=[],o=-1;"string"!=typeof n&&"length"in n||(n=[n]);t=n.length;for(;++o{e.exports=function(e){var t,n,u=r(e),s=u.length,c=-1,a={};for(;++c{e.exports=n(2346)},2346:(e,t,n)=>{var r=n(6734),o=n(6712),i=n(9696),u=n(7238),s=n(6996),c=n(395),a={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||u(e)?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){var r,o;return u;function u(t){return 38===t?e.check(h,l,a)(t):46===t||95===t?e.check(p,l,a)(t):i(t)||c(t)||45!==t&&s(t)?l(t):(e.consume(t),u)}function a(t){return 46===t?(o=r,r=void 0,e.consume(t),u):(95===t&&(r=!0),e.consume(t),u)}function l(e){return o||r?n(e):t(e)}},partial:!0},f={tokenize:function(e,t){var n=0;return r;function r(u){return 38===u?e.check(h,t,o)(u):(40===u&&n++,41===u?e.check(p,i,o)(u):b(u)?t(u):x(u)?e.check(p,t,o)(u):(e.consume(u),r))}function o(t){return e.consume(t),r}function i(e){return--n<0?t(e):o(e)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(o){return x(o)?(e.consume(o),r):b(o)?t(o):n(o)}},partial:!0},h={tokenize:function(e,t,n){return function(t){return e.consume(t),o};function o(t){return r(t)?(e.consume(t),o):59===t?(e.consume(t),i):n(t)}function i(e){return b(e)?t(e):n(e)}},partial:!0},d={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!=87||!w(r.previous)||C(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(a,e.attempt(l,e.attempt(f,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:w},g={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!=72||!E(r.previous)||C(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 84===t||t-32==84?(e.consume(t),a):n(t)}function a(t){return 80===t||t-32==80?(e.consume(t),p):n(t)}function p(t){return 83===t||t-32==83?(e.consume(t),h):h(t)}function h(t){return 58===t?(e.consume(t),d):n(t)}function d(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return 47===t?(e.consume(t),y):n(t)}function y(t){return i(t)||c(t)||s(t)?n(t):e.attempt(l,e.attempt(f,m),n)(t)}function m(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:E},y={tokenize:function(e,t,n){var r,i=this;return function(t){if(!k(t)||!S(i.previous)||C(i.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(t)};function u(t){return k(t)?(e.consume(t),u):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(p,f,c)(t):45===t||95===t?e.check(p,n,a)(t):o(t)?(e.consume(t),s):f(t)}function c(t){return e.consume(t),r=!0,s}function a(t){return e.consume(t),l}function l(t){return 46===t?e.check(p,n,c)(t):s(t)}function f(o){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:S},m={};t.text=m;for(var v=48;v<123;)m[v]=y,58===++v?v=65:91===v&&(v=97);function x(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function b(e){return null===e||e<0||32===e||60===e}function k(e){return 43===e||45===e||46===e||95===e||o(e)}function w(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function E(e){return null===e||!r(e)}function S(e){return 47!==e&&E(e)}function C(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}m[43]=y,m[45]=y,m[46]=y,m[95]=y,m[72]=[y,g],m[104]=[y,g],m[87]=[y,d],m[119]=[y,d]},3490:(e,t,n)=>{e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,o){var i=this.previous,u=this.events,s=0;return c;function c(t){return 126!==t||126===i&&"characterEscape"!==u[u.length-1][1].type?o(t):(e.enter("strikethroughSequenceTemporary"),a(t))}function a(u){var c,l,f=r(i);return 126===u?s>1?o(u):(e.consume(u),s++,a):s<2&&!t?o(u):(c=e.exit("strikethroughSequenceTemporary"),l=r(u),c._open=!l||2===l&&f,c._close=!f||2===f&&l,n(u))}},resolveAll:function(e,t){var n,r,s,c,a=-1;for(;++a{e.exports=n(3993)},3993:(e,t,n)=>{t.flow={null:{tokenize:function(e,t,n){var u,s,c=[],a=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=c,e.enter("tableHead"),e.enter("tableRow"),124===t)return l(t);return a++,e.enter("temporaryTableCellContent"),h(t)};function l(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),u=!0,f}function f(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(o,n,r(e,g,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),p):(u&&(u=void 0,a++),124===t?l(t):(e.enter("temporaryTableCellContent"),h(t)))}function p(t){return-2===t||-1===t||32===t?(e.consume(t),p):(e.exit("whitespace"),f(t))}function h(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),f(t)):(e.consume(t),92===t?d:h)}function d(t){return 92===t||124===t?(e.consume(t),h):h(t)}function g(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),y(t))}function y(t){return null===t||-5===t||-4===t||-3===t?k(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,c.push(null),v):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),c.push("left"),x):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),y):n(t)}function m(t){return-2===t||-1===t||32===t?(e.consume(t),m):(e.exit("whitespace"),y(t))}function v(t){return 45===t?(e.consume(t),v):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),c[c.length-1]="left"===c[c.length-1]?"center":"right",b):y(t))}function x(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,v):n(t)}function b(t){return null===t||-5===t||-4===t||-3===t?k(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),y):n(t)}function k(t){return e.exit("tableDelimiterRow"),s&&a===c.length?null===t?w(t):e.check(i,w,E)(t):n(t)}function w(n){return e.exit("table"),t(n)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,S,"linePrefix",4)}function S(t){return e.enter("tableBody"),C(t)}function C(t){return e.enter("tableRow"),124===t?O(t):(e.enter("temporaryTableCellContent"),P(t))}function O(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return _(t);return e.check(i,_,I)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),j):124===t?O(t):(e.enter("temporaryTableCellContent"),P(t))}function j(t){return-2===t||-1===t||32===t?(e.consume(t),j):(e.exit("whitespace"),A(t))}function P(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?F:P)}function F(t){return 92===t||124===t?(e.consume(t),P):P(t)}function _(t){return e.exit("tableBody"),w(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,C,"linePrefix",4)}},resolve:function(e,t){var n,r,o,i,u,s,c,a,l,f,p=e.length,h=-1;for(;++h{e.exports=n(7224)},7224:(e,t,n)=>{var r=n(8367),o=n(2928),i=n(5096),u={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var u=this;return o(e,(function(e){return i(u.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:u}},2747:(e,t,n)=>{e.exports=n(2518)},2518:(e,t,n)=>{var r=n(2952),o=n(7539),i=n(3490),u=n(1286),s=n(5675);e.exports=function(e){return r([o,i(e),u,s])}},6734:(e,t,n)=>{"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},6712:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},3571:(e,t,n)=>{"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},9696:e=>{"use strict";e.exports=function(e){return e<32||127===e}},3977:(e,t,n)=>{"use strict";var r=n(2841)(/\d/);e.exports=r},6238:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},3074:(e,t,n)=>{"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},8367:e=>{"use strict";e.exports=function(e){return e<0||32===e}},7238:e=>{"use strict";e.exports=function(e){return e<-2}},3654:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},6996:(e,t,n)=>{"use strict";var r=n(6830),o=n(2841)(r);e.exports=o},395:(e,t,n)=>{"use strict";var r=n(2841)(/\s/);e.exports=r},9198:e=>{"use strict";var t=Object.assign;e.exports=t},3267:e=>{"use strict";var t=String.fromCharCode;e.exports=t},6706:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},7139:e=>{"use strict";e.exports=["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","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6871:e=>{"use strict";e.exports=["pre","script","style","textarea"]},1362:e=>{"use strict";var t=[].splice;e.exports=t},6830:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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]/},6274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7082),o=n(7542),i=n(1349),u=n(5485),s=n(9653),c=n(6713),a=n(6597),l=n(431),f=n(26),p=n(3865),h=n(5694),d=n(5565),g=n(6872),y=n(8911),m=n(1294),v=n(6215),x=n(534),b=n(2607),k=n(6931),w=n(5874),E=n(7039),S={42:k,43:k,45:k,48:k,49:k,50:k,51:k,52:k,53:k,54:k,55:k,56:k,57:k,62:u},C={91:p},O={"-2":l,"-1":l,32:l},A={35:d,42:E,45:[w,E],60:g,61:w,95:E,96:a,126:a},j={38:c,92:s},P={"-5":b,"-4":b,"-3":b,33:v,38:c,42:o,60:[i,y],91:x,92:[h,s],93:m,95:o,96:f},F={null:[o,r.resolver]};t.contentInitial=C,t.disable={null:[]},t.document=S,t.flow=A,t.flowInitial=O,t.insideSpan=F,t.string=j,t.text=P},3745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928),i=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),i(t)}));return n;function i(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,u(n)}function u(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),i):(e.consume(t),u)}};t.tokenize=i},4201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928),i=n(6532),u=function(e){var t,n,o,u=this,a=[],l=0,f={tokenize:function(e,r){var o=0;return t={},l;function l(r){return ot;)u.containerState=a[i][1],a[i][0].exit.call(u,e);a.length=t}},s={tokenize:function(e,t,n){return o(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},c={tokenize:function(e,t,n){return o(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=u},2871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4590),o=n(2928),i=n(6532),u=function(e){var t=this,n=e.attempt(i,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,u,o(e,e.attempt(this.parser.constructs.flow,u,e.attempt(r,u)),"linePrefix")));return n;function u(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=u},7082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9198),o=n(5923),i=c("text"),u=c("string"),s={resolveAll:a()};function c(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,i,u);return i;function i(e){return c(e)?o(e):u(e)}function u(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function c(e){var t=r[e],o=-1;if(null===e)return!0;if(t)for(;++o{"use strict";var r=n(3745),o=n(4201),i=n(2871),u=n(7082),s=n(2952),c=n(1388),a=n(8180),l=n(6274);e.exports=function(e){var t={defined:[],constructs:s([l].concat(a((e||{}).extensions))),content:n(r),document:n(o),flow:n(i),string:n(u.string),text:n(u.text)};return t;function n(e){return function(n){return c(t,e,n)}}}},1242:(e,t,n)=>{"use strict";var r=n(4423);e.exports=function(e){for(;!r(e););return e}},162:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,o="";return function(i,u,s){var c,a,l,f,p,h=[];i=o+i.toString(u),l=0,o="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);for(;l{"use strict";var r=n(8811),o=n(6808),i=n(9444),u=n(5644),s=n(8280),c=n(5923),a={name:"attention",tokenize:function(e,t){var n,r=i(this.previous);return function(t){return e.enter("attentionSequence"),n=t,o(t)};function o(u){var s,c,a,l;return u===n?(e.consume(u),o):(s=e.exit("attentionSequence"),a=!(c=i(u))||2===c&&r,l=!r||2===r&&c,s._open=42===n?a:a&&(r||!l),s._close=42===n?l:l&&(c||!a),t(u))}},resolveAll:function(e,t){var n,i,a,l,f,p,h,d,g=-1;for(;++g1&&e[g][1].end.offset-e[g][1].start.offset>1?2:1,l={type:p>1?"strongSequence":"emphasisSequence",start:u(c(e[n][1].end),-p),end:c(e[n][1].end)},f={type:p>1?"strongSequence":"emphasisSequence",start:c(e[g][1].start),end:u(c(e[g][1].start),p)},a={type:p>1?"strongText":"emphasisText",start:c(e[n][1].end),end:c(e[g][1].start)},i={type:p>1?"strong":"emphasis",start:c(l.start),end:c(f.end)},e[n][1].end=c(l.start),e[g][1].start=c(f.end),h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=r(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=r(h,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),h=r(h,s(t.parser.constructs.insideSpan.null,e.slice(n+1,g),t)),h=r(h,[["exit",a,t],["enter",f,t],["exit",f,t],["exit",i,t]]),e[g][1].end.offset-e[g][1].start.offset?(d=2,h=r(h,[["enter",e[g][1],t],["exit",e[g][1],t]])):d=0,o(e,n-1,g-n+3,h),g=n+h.length-d-2;break}g=-1;for(;++g{"use strict";var r=n(6734),o=n(6712),i=n(3571),u=n(9696),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c};function c(t){return r(t)?(e.consume(t),a):i(t)?p(t):n(t)}function a(e){return 43===e||45===e||46===e||o(e)?l(e):p(e)}function l(t){return 58===t?(e.consume(t),f):(43===t||45===t||46===t||o(t))&&s++<32?(e.consume(t),l):p(t)}function f(t){return 62===t?(e.exit("autolinkProtocol"),y(t)):32===t||60===t||u(t)?n(t):(e.consume(t),f)}function p(t){return 64===t?(e.consume(t),s=0,h):i(t)?(e.consume(t),p):n(t)}function h(e){return o(e)?d(e):n(e)}function d(t){return 46===t?(e.consume(t),s=0,h):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",y(t)):g(t)}function g(t){return(45===t||o(t))&&s++<63?(e.consume(t),45===t?g:d):n(t)}function y(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},5485:(e,t,n)=>{"use strict";var r=n(3654),o=n(2928),i={name:"blockQuote",tokenize:function(e,t,n){var o=this;return function(t){if(62===t)return o.containerState.open||(e.enter("blockQuote",{_container:!0}),o.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i;return n(t)};function i(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return o(e,e.attempt(i,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=i},9653:(e,t,n)=>{"use strict";var r=n(3074),o={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return r(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}};e.exports=o},6713:(e,t,n)=>{"use strict";var r=n(9435),o=n(6712),i=n(3977),u=n(6238);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(r),a={name:"characterReference",tokenize:function(e,t,n){var r,s,a=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),f};function f(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),r=31,s=o,h(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=u,h):(e.enter("characterReferenceValue"),r=7,s=i,h(t))}function h(i){var u;return 59===i&&l?(u=e.exit("characterReferenceValue"),s!==o||c.default(a.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(i),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(i)):s(i)&&l++{"use strict";var r=n(7238),o=n(8367),i=n(5096),u=n(2928),s={name:"codeFenced",tokenize:function(e,t,n){var s,c=this,a={tokenize:function(e,t,n){var o=0;return u(e,i,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}function c(t){return t===s?(e.consume(t),o++,c):o{"use strict";var r=n(7238),o=n(6808),i=n(5096),u=n(2928),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(c,o,n);function o(n){return null===n?t(n):r(n)?e.attempt(c,o,t)(n):(e.enter("codeFlowValue"),i(n))}function i(t){return null===t||r(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return o(e,0,0,[["enter",n,t]]),o(e,e.length,0,[["exit",n,t]]),e}},c={tokenize:function(e,t,n){var o=this;return u(e,(function s(c){if(r(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u(e,s,"linePrefix",5);return i(o.events,"linePrefix")<4?n(c):t(c)}),"linePrefix",5)},partial:!0};e.exports=s},26:(e,t,n)=>{"use strict";var r=n(7238),o={name:"codeText",tokenize:function(e,t,n){var o,i,u=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),u++,s):(e.exit("codeTextSequence"),c(t))}function c(t){return null===t?n(t):96===t?(i=e.enter("codeTextSequence"),o=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("codeTextData"),a(t))}function a(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),c(t)):(e.consume(t),a)}function l(n){return 96===n?(e.consume(n),o++,l):o===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",a(n))}},resolve:function(e){var t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t{"use strict";var r=n(7238),o=n(5096),i=n(4423),u=n(2928),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(t)};function o(t){return null===t?i(t):r(t)?e.check(c,u,i)(t):(e.consume(t),o)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function u(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}},resolve:function(e){return i(e),e},interruptible:!0,lazy:!0},c={tokenize:function(e,t,n){var i=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,s,"linePrefix")};function s(u){return null===u||r(u)?n(u):i.parser.constructs.disable.null.indexOf("codeIndented")>-1||o(i.events,"linePrefix")<4?e.interrupt(i.parser.constructs.flow,n,t)(u):t(u)}},partial:!0};e.exports=s},3865:(e,t,n)=>{"use strict";var r=n(7238),o=n(8367),i=n(5478),u=n(8229),s=n(7154),c=n(2928),a=n(1056),l=n(9283),f={name:"definition",tokenize:function(e,t,n){var o,l=this;return function(t){return e.enter("definition"),s.call(l,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function f(t){return o=i(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a(e,u(e,e.attempt(p,c(e,h,"whitespace"),c(e,h,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function h(i){return null===i||r(i)?(e.exit("definition"),l.parser.defined.indexOf(o)<0&&l.parser.defined.push(o),t(i)):n(i)}}},p={tokenize:function(e,t,n){return function(t){return o(t)?a(e,i)(t):n(t)};function i(t){return 34===t||39===t||40===t?l(e,c(e,u,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function u(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=f},8229:(e,t,n)=>{"use strict";var r=n(9696),o=n(8367),i=n(7238);e.exports=function(e,t,n,u,s,c,a,l,f){var p=f||1/0,h=0;return function(t){if(60===t)return e.enter(u),e.enter(s),e.enter(c),e.consume(t),e.exit(c),d;if(r(t)||41===t)return n(t);return e.enter(u),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t)};function d(n){return 62===n?(e.enter(c),e.consume(n),e.exit(c),e.exit(s),e.exit(u),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(n))}function g(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||i(t)?n(t):(e.consume(t),92===t?y:g)}function y(t){return 60===t||62===t||92===t?(e.consume(t),g):g(t)}function m(i){return 40===i?++h>p?n(i):(e.consume(i),m):41===i?h--?(e.consume(i),m):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(u),t(i)):null===i||o(i)?h?n(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(u),t(i)):r(i)?n(i):(e.consume(i),92===i?v:m)}function v(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7154:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654);e.exports=function(e,t,n,i,u,s){var c,a=this,l=0;return function(t){return e.enter(i),e.enter(u),e.consume(t),e.exit(u),e.enter(s),f};function f(o){return null===o||91===o||93===o&&!c||94===o&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs||l>999?n(o):93===o?(e.exit(s),e.enter(u),e.consume(o),e.exit(u),e.exit(i),t):r(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(o))}function p(t){return null===t||91===t||93===t||r(t)||l++>999?(e.exit("chunkString"),f(t)):(e.consume(t),c=c||!o(t),92===t?h:p)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,p):p(t)}}},2928:(e,t,n)=>{"use strict";var r=n(3654);e.exports=function(e,t,n,o){var i=o?o-1:1/0,u=0;return function(o){if(r(o))return e.enter(n),s(o);return t(o)};function s(o){return r(o)&&u++{"use strict";var r=n(7238),o=n(2928);e.exports=function(e,t,n,i,u,s){var c;return function(t){return e.enter(i),e.enter(u),e.consume(t),e.exit(u),c=40===t?41:t,a};function a(n){return n===c?(e.enter(u),e.consume(n),e.exit(u),e.exit(i),t):(e.enter(s),l(n))}function l(t){return t===c?(e.exit(s),a(c)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===c||null===t||r(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:f)}function p(t){return t===c||92===t?(e.consume(t),f):f(t)}}},1056:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928);e.exports=function(e,t){var n;return function u(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,u;if(o(s))return i(e,u,n?"linePrefix":"lineSuffix")(s);return t(s)}}},5694:(e,t,n)=>{"use strict";var r=n(7238),o={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return r(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}};e.exports=o},5565:(e,t,n)=>{"use strict";var r=n(7238),o=n(8367),i=n(3654),u=n(6808),s=n(2928),c={name:"headingAtx",tokenize:function(e,t,n){var u=this,c=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(t)};function a(r){return 35===r&&c++<6?(e.consume(r),a):null===r||o(r)?(e.exit("atxHeadingSequence"),u.interrupt?t(r):l(r)):n(r)}function l(n){return 35===n?(e.enter("atxHeadingSequence"),f(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):i(n)?s(e,l,"whitespace")(n):(e.enter("atxHeadingText"),p(n))}function f(t){return 35===t?(e.consume(t),f):(e.exit("atxHeadingSequence"),l(t))}function p(t){return null===t||35===t||o(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),p)}},resolve:function(e,t){var n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},u(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=c},6872:(e,t,n)=>{"use strict";var r=n(6734),o=n(6712),i=n(7238),u=n(8367),s=n(3654),c=n(3267),a=n(7139),l=n(6871),f=n(6532),p={name:"htmlFlow",tokenize:function(e,t,n){var f,p,d,g,y,m=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),v};function v(o){return 33===o?(e.consume(o),x):47===o?(e.consume(o),w):63===o?(e.consume(o),f=3,m.interrupt?t:U):r(o)?(e.consume(o),d=c(o),p=!0,E):n(o)}function x(o){return 45===o?(e.consume(o),f=2,b):91===o?(e.consume(o),f=5,d="CDATA[",g=0,k):r(o)?(e.consume(o),f=4,m.interrupt?t:U):n(o)}function b(r){return 45===r?(e.consume(r),m.interrupt?t:U):n(r)}function k(r){return r===d.charCodeAt(g++)?(e.consume(r),g===d.length?m.interrupt?t:R:k):n(r)}function w(t){return r(t)?(e.consume(t),d=c(t),E):n(t)}function E(r){return null===r||47===r||62===r||u(r)?47!==r&&p&&l.indexOf(d.toLowerCase())>-1?(f=1,m.interrupt?t(r):R(r)):a.indexOf(d.toLowerCase())>-1?(f=6,47===r?(e.consume(r),S):m.interrupt?t(r):R(r)):(f=7,m.interrupt?n(r):p?O(r):C(r)):45===r||o(r)?(e.consume(r),d+=c(r),E):n(r)}function S(r){return 62===r?(e.consume(r),m.interrupt?t:R):n(r)}function C(t){return s(t)?(e.consume(t),C):D(t)}function O(t){return 47===t?(e.consume(t),D):58===t||95===t||r(t)?(e.consume(t),A):s(t)?(e.consume(t),O):D(t)}function A(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),A):j(t)}function j(t){return 61===t?(e.consume(t),P):s(t)?(e.consume(t),j):O(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),y=t,F):s(t)?(e.consume(t),P):(y=void 0,_(t))}function F(t){return t===y?(e.consume(t),I):null===t||i(t)?n(t):(e.consume(t),F)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||u(t)?j(t):(e.consume(t),_)}function I(e){return 47===e||62===e||s(e)?O(e):n(e)}function D(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return s(t)?(e.consume(t),T):null===t||i(t)?R(t):n(t)}function R(t){return 45===t&&2===f?(e.consume(t),M):60===t&&1===f?(e.consume(t),z):62===t&&4===f?(e.consume(t),H):63===t&&3===f?(e.consume(t),U):93===t&&5===f?(e.consume(t),q):!i(t)||6!==f&&7!==f?null===t||i(t)?L(t):(e.consume(t),R):e.check(h,H,L)(t)}function L(t){return e.exit("htmlFlowData"),B(t)}function B(t){return null===t?$(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),B):(e.enter("htmlFlowData"),R(t))}function M(t){return 45===t?(e.consume(t),U):R(t)}function z(t){return 47===t?(e.consume(t),d="",N):R(t)}function N(t){return 62===t&&l.indexOf(d.toLowerCase())>-1?(e.consume(t),H):r(t)&&d.length<8?(e.consume(t),d+=c(t),N):R(t)}function q(t){return 93===t?(e.consume(t),U):R(t)}function U(t){return 62===t?(e.consume(t),H):R(t)}function H(t){return null===t||i(t)?(e.exit("htmlFlowData"),$(t)):(e.consume(t),H)}function $(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},h={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(f,t,n)}},partial:!0};e.exports=p},8911:(e,t,n)=>{"use strict";var r=n(6734),o=n(6712),i=n(7238),u=n(8367),s=n(3654),c=n(2928),a={name:"htmlText",tokenize:function(e,t,n){var a,l,f,p,h=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),d};function d(t){return 33===t?(e.consume(t),g):47===t?(e.consume(t),j):63===t?(e.consume(t),O):r(t)?(e.consume(t),_):n(t)}function g(t){return 45===t?(e.consume(t),y):91===t?(e.consume(t),l="CDATA[",f=0,k):r(t)?(e.consume(t),C):n(t)}function y(t){return 45===t?(e.consume(t),m):n(t)}function m(t){return null===t||62===t?n(t):45===t?(e.consume(t),v):x(t)}function v(e){return null===e||62===e?n(e):x(e)}function x(t){return null===t?n(t):45===t?(e.consume(t),b):i(t)?(p=x,z(t)):(e.consume(t),x)}function b(t){return 45===t?(e.consume(t),q):x(t)}function k(t){return t===l.charCodeAt(f++)?(e.consume(t),f===l.length?w:k):n(t)}function w(t){return null===t?n(t):93===t?(e.consume(t),E):i(t)?(p=w,z(t)):(e.consume(t),w)}function E(t){return 93===t?(e.consume(t),S):w(t)}function S(t){return 62===t?q(t):93===t?(e.consume(t),S):w(t)}function C(t){return null===t||62===t?q(t):i(t)?(p=C,z(t)):(e.consume(t),C)}function O(t){return null===t?n(t):63===t?(e.consume(t),A):i(t)?(p=O,z(t)):(e.consume(t),O)}function A(e){return 62===e?q(e):O(e)}function j(t){return r(t)?(e.consume(t),P):n(t)}function P(t){return 45===t||o(t)?(e.consume(t),P):F(t)}function F(t){return i(t)?(p=F,z(t)):s(t)?(e.consume(t),F):q(t)}function _(t){return 45===t||o(t)?(e.consume(t),_):47===t||62===t||u(t)?I(t):n(t)}function I(t){return 47===t?(e.consume(t),q):58===t||95===t||r(t)?(e.consume(t),D):i(t)?(p=I,z(t)):s(t)?(e.consume(t),I):q(t)}function D(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),D):T(t)}function T(t){return 61===t?(e.consume(t),R):i(t)?(p=T,z(t)):s(t)?(e.consume(t),T):I(t)}function R(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,L):i(t)?(p=R,z(t)):s(t)?(e.consume(t),R):(e.consume(t),a=void 0,M)}function L(t){return t===a?(e.consume(t),B):null===t?n(t):i(t)?(p=L,z(t)):(e.consume(t),L)}function B(e){return 62===e||47===e||u(e)?I(e):n(e)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||u(t)?I(t):(e.consume(t),M)}function z(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c(e,N,"linePrefix",h.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function N(t){return e.enter("htmlTextData"),p(t)}function q(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=a},1294:(e,t,n)=>{"use strict";var r=n(8367),o=n(8811),i=n(6808),u=n(5478),s=n(8280),c=n(5923),a=n(8229),l=n(7154),f=n(9283),p=n(1056),h={name:"labelEnd",tokenize:function(e,t,n){var r,o,i=this,s=i.events.length;for(;s--;)if(("labelImage"===i.events[s][1].type||"labelLink"===i.events[s][1].type)&&!i.events[s][1]._balanced){r=i.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?a(t):(o=i.parser.defined.indexOf(u(i.sliceSerialize({start:r.end,end:i.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),c)};function c(n){return 40===n?e.attempt(d,t,o?t:a)(n):91===n?e.attempt(g,t,o?e.attempt(y,t,a):a)(n):o?t(n):a(n)}function a(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,u,a,l,f,p,h=e.length,d=0;for(;h--;)if(a=e[h][1],l){if("link"===a.type||"labelLink"===a.type&&a._inactive)break;"enter"===e[h][0]&&"labelLink"===a.type&&(a._inactive=!0)}else if(f){if("enter"===e[h][0]&&("labelImage"===a.type||"labelLink"===a.type)&&!a._balanced&&(l=h,"labelLink"!==a.type)){d=2;break}}else"labelEnd"===a.type&&(f=h);return n={type:"labelLink"===e[l][1].type?"link":"image",start:c(e[l][1].start),end:c(e[e.length-1][1].end)},r={type:"label",start:c(e[l][1].start),end:c(e[f][1].end)},u={type:"labelText",start:c(e[l+d+2][1].end),end:c(e[f-2][1].start)},p=o(p=[["enter",n,t],["enter",r,t]],e.slice(l+1,l+d+3)),p=o(p,[["enter",u,t]]),p=o(p,s(t.parser.constructs.insideSpan.null,e.slice(l+d+4,f-3),t)),p=o(p,[["exit",u,t],e[f-2],e[f-1],["exit",r,t]]),p=o(p,e.slice(f+1)),p=o(p,[["exit",n,t]]),i(e,l,e.length,p),e},resolveAll:function(e){var t,n=-1;for(;++n{"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},534:(e,t,n)=>{"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},2607:(e,t,n)=>{"use strict";var r=n(2928),o={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=o},6931:(e,t,n)=>{"use strict";var r=n(3977),o=n(3654),i=n(5096),u=n(8892),s=n(2928),c=n(6532),a=n(7039),l={name:"list",tokenize:function(e,t,n){var s=this,l=i(s.events,"linePrefix"),p=0;return function(t){var o=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(a,n,d)(t):d(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(t)}return n(t)};function h(t){return r(t)&&++p<10?(e.consume(t),h):(!s.interrupt||p<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),d(t)):n(t)}function d(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(c,s.interrupt?n:g,e.attempt(f,m,y))}function g(e){return s.containerState.initialBlankLine=!0,l++,m(e)}function y(t){return o(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):n(t)}function m(n){return s.containerState.size=l+u(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(c,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!o(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(p,t,i)(n)}));function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(l,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(e)||!i(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=l},6532:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i={tokenize:function(e,t,n){return o(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=i},5874:(e,t,n)=>{"use strict";var r=n(7238),o=n(5923),i=n(2928),u={name:"setextUnderline",tokenize:function(e,t,n){var o,u,s=this,c=s.events.length;for(;c--;)if("lineEnding"!==s.events[c][1].type&&"linePrefix"!==s.events[c][1].type&&"content"!==s.events[c][1].type){u="paragraph"===s.events[c][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||u))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,a(t);return n(t)};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),i(e,l,"lineSuffix")(t))}function l(o){return null===o||r(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},resolveTo:function(e,t){var n,r,i,u,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);u={type:"setextHeading",start:o(e[r][1].start),end:o(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",u,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=o(e[i][1].end)):e[n][1]=u;return e.push(["exit",u,t]),e}};e.exports=u},7039:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928),u={name:"thematicBreak",tokenize:function(e,t,n){var u,s=0;return function(t){return e.enter("thematicBreak"),u=t,c(t)};function c(l){return l===u?(e.enter("thematicBreakSequence"),a(l)):o(l)?i(e,c,"whitespace")(l):s<3||null!==l&&!r(l)?n(l):(e.exit("thematicBreak"),t(l))}function a(t){return t===u?(e.consume(t),s++,a):(e.exit("thematicBreakSequence"),c(t))}}};e.exports=u},8811:(e,t,n)=>{"use strict";var r=n(6808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},6808:(e,t,n)=>{"use strict";var r=n(1362);e.exports=function(e,t,n,o){var i,u=e.length,s=0;if(t=t<0?-t>u?0:u+t:t>u?u:t,n=n>0?n:0,o.length<1e4)(i=Array.from(o)).unshift(t,n),r.apply(e,i);else for(n&&r.apply(e,[t,n]);s{"use strict";var r=n(8367),o=n(6996),i=n(395);e.exports=function(e){return null===e||r(e)||i(e)?1:o(e)?2:void 0}},2952:(e,t,n)=>{"use strict";var r=n(6706),o=n(6808),i=n(8180);function u(e,t){var n,o,u,c;for(n in t)for(c in o=r.call(e,n)?e[n]:e[n]={},u=t[n])o[c]=s(i(u[c]),r.call(o,c)?o[c]:[])}function s(e,t){for(var n=-1,r=[];++n{"use strict";var r=n(9198),o=n(7238),i=n(8811),u=n(6808),s=n(8180),c=n(8280),a=n(3082),l=n(5923),f=n(2774);e.exports=function(e,t,n){var p=n?l(n):{line:1,column:1,offset:0},h={},d=[],g=[],y=[],m={consume:function(e){o(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,A()):-1!==e&&(p.column++,p.offset++);p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===g[p._index].length&&(p._bufferIndex=-1,p._index++));v.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=k(),v.events.push(["enter",n,v]),y.push(n),n},exit:function(e){var t=y.pop();return t.end=k(),v.events.push(["exit",t,v]),t},attempt:C((function(e,t){O(e,t.from)})),check:C(S),interrupt:C(S,{interrupt:!0}),lazy:C(S,{lazy:!0})},v={previous:null,events:[],parser:e,sliceStream:b,sliceSerialize:function(e){return a(b(e))},now:k,defineSkip:function(e){h[e.line]=e.column,A()},write:function(e){if(g=i(g,e),w(),null!==g[g.length-1])return[];return O(t,0),v.events=c(d,v.events,v),v.events}},x=t.tokenize.call(v,m);return t.resolveAll&&d.push(t),p._index=0,p._bufferIndex=-1,v;function b(e){return f(g,e)}function k(){return l(p)}function w(){for(var e,t;p._index-1)return g();return e.tokenize.call(t?r({},v,t):v,m,d,g)(n)}}function d(t){return e(a,l),o}function g(e){return l.restore(),++c{"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},5644:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},5478:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},5096:(e,t,n)=>{"use strict";var r=n(8892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){return function(t){return e.test(r(t))}}},8280:e=>{"use strict";e.exports=function(e,t,n){for(var r,o=[],i=-1;++i{"use strict";var r=n(3267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":r(n)}},3082:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){for(var t,n,o,i=-1,u=[];++i{"use strict";var r=n(9198);e.exports=function(e){return r({},e)}},8892:e=>{"use strict";e.exports=function(e){for(var t=-1,n=0;++t{"use strict";e.exports=function(e,t){var n,r=t.start._index,o=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex;return r===i?n=[e[r].slice(o,u)]:(n=e.slice(r,i),o>-1&&(n[0]=n[0].slice(o)),u>0&&n.push(e[i].slice(0,u))),n}},4423:(e,t,n)=>{"use strict";var r=n(9198),o=n(6808),i=n(5923);function u(e,t){for(var n,r,i,u,s,c,a=e[t][1],l=e[t][2],f=t-1,p=[],h=a._tokenizer||l.parser[a.contentType](a.start),d=h.events,g=[],y={};a;){for(;e[++f][1]!==a;);p.push(f),a._tokenizer||(n=l.sliceStream(a),a.next||n.push(null),r&&h.defineSkip(a.start),a.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(n),a.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),r=a,a=a.next}for(a=r,i=d.length;i--;)"enter"===d[i][0]?u=!0:u&&d[i][1].type===d[i-1][1].type&&d[i][1].start.line!==d[i][1].end.line&&(m(d.slice(i+1,s)),a._tokenizer=a.next=void 0,a=a.previous,s=i+1);for(h.events=a._tokenizer=a.next=void 0,m(d.slice(0,s)),i=-1,c=0;++i{var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,u=365.25*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*u;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=o)return s(e,i,o,"day");if(i>=r)return s(e,i,r,"hour");if(i>=n)return s(e,i,n,"minute");if(i>=t)return s(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),u=n(5624),s=n(2281),c=o(u(),Object);r(c,{getPolyfill:u,implementation:i,shim:s}),e.exports=c},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,u=n(1414),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),a=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=u(e),s=t&&"[object String]"===i.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=a&&n;if(s&&e.length>0&&!o.call(e,0))for(var g=0;g0)for(var y=0;y{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,u=i?function(e){return i(e)}:n(8987),s=Object.keys;u.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=u;return Object.keys||u},e.exports=u},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},9435:e=>{"use strict";var t;e.exports=function(e){var n,r="&"+e+";";if((t=t||document.createElement("i")).innerHTML=r,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==r&&n}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],a=!1,l=-1;function f(){a&&s&&(a=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!a){var e=u(f);a=!0;for(var t=c.length;t;){for(s=c,c=[];++l1)for(var n=1;n{"use strict";var t=Object,n=TypeError;e.exports=function(){if(null!=this&&this!==t(this))throw new n("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},2847:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(3697),u=n(1721),s=n(2753),c=o(i);r(c,{getPolyfill:u,implementation:i,shim:s}),e.exports=c},1721:(e,t,n)=>{"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor,u=TypeError;e.exports=function(){if(!o)throw new u("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},2753:(e,t,n)=>{"use strict";var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,a=/a/;e.exports=function(){if(!r||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(a),n=i(t,"flags");return n&&n.get===e||u(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},4251:(e,t,n)=>{"use strict";var r,o=n(5108),i=n(1608),u=n(3366),s=n(8628);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,o.warn("[remark-footnotes] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",u),n("toMarkdownExtensions",s)}},5941:(e,t,n)=>{"use strict";var r=n(7969),o=n(6150),i=n(3934);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",r(e)),n("fromMarkdownExtensions",o(e)),n("toMarkdownExtensions",i(e))}},43:(e,t,n)=>{"use strict";var r,o=n(5108),i=n(2747),u=n(438),s=n(8135);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,o.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",u),n("toMarkdownExtensions",s(e))}},2861:(e,t,n)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(9671)},6464:e=>{"use strict"; + */function T(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o{"use strict";e.exports=function(e){if(e)throw e}},6008:(e,t)=>{"use strict";function n(e,t){return e>>1,u=o+i;r(e[u],t)?(o=u+1,n-=i+1):n=i}return o}()}t.G=function(e,t,r){return void 0===r&&(r=n),function(){for(var n=e.length,o=0;n;){var i=n>>>1,u=o+i;r(t,e[u])?n=i:(o=u+1,n-=i+1)}return o}()}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(u,i),a=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,u,arguments);a&&c&&(a(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var f=function(){return s(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},932:e=>{"use strict";e.exports=function(e,t){var n,r=String(e),o=0;if("string"!=typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)o++,n=r.indexOf(t,n+t.length);return o}},5108:(e,t,n)=>{var r=n(9539),o=n(9282);function i(){return(new Date).getTime()}var u,s=Array.prototype.slice,a={};u=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){u.log.apply(u,arguments)},"info"],[function(){u.log.apply(u,arguments)},"warn"],[function(){u.warn.apply(u,arguments)},"error"],[function(e){a[e]=i()},"time"],[function(e){var t=a[e];if(!t)throw new Error("No such label: "+e);delete a[e];var n=i()-t;u.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),u.error(e.stack)},"trace"],[function(e){u.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],l=0;l{var r=n(5108),o=n(4155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,r.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=r.debug||r.log||(()=>{}),e.exports=n(2447)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{var r=n(5108);e.exports=function(e){function t(e){let n,r,i,u=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";u++;const i=t.formatters[o];if("function"==typeof i){const t=e[u];n=i.call(r,t),e.splice(u,1),u--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{u=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,u=Array.prototype.concat,s=Object.defineProperty,a=n(1044)(),c=s&&a,l=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=u.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},u=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,l,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p0;)if(!n(e[o],t[o],o,o,e,t,r))return!1;return!0}var x=n(v);function b(e,t){return u(e.valueOf(),t.valueOf())}function k(e,t,n,r){var o=e.size===t.size;if(!o)return!1;if(!e.size)return!0;var i={},u=0;return e.forEach((function(s,a){if(o){var c=!1,l=0;t.forEach((function(o,f){c||i[l]||!(c=n(a,f,u,l,e,t,r)&&n(s,o,a,f,e,t,r))||(i[l]=!0),l++})),u++,o=c}})),o}var w=n(k),E="_owner",S=Object.prototype.hasOwnProperty;function O(e,t,n,r){var o,i=Object.keys(e),u=i.length;if(Object.keys(t).length!==u)return!1;for(;u-- >0;){if((o=i[u])===E){var s=!!e.$$typeof,a=!!t.$$typeof;if((s||a)&&s!==a)return!1}if(!S.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var C=n(O);function A(e,t){return e.source===t.source&&e.flags===t.flags}function j(e,t,n,r){var o=e.size===t.size;if(!o)return!1;if(!e.size)return!0;var i={};return e.forEach((function(u,s){if(o){var a=!1,c=0;t.forEach((function(o,l){a||i[c]||!(a=n(u,o,s,l,e,t,r))||(i[c]=!0),c++})),o=a}})),o}var P=n(j),F=Object.freeze({areArraysEqual:v,areDatesEqual:b,areMapsEqual:k,areObjectsEqual:O,areRegExpsEqual:A,areSetsEqual:j,createIsNestedEqual:t}),I=Object.freeze({areArraysEqual:x,areDatesEqual:b,areMapsEqual:w,areObjectsEqual:C,areRegExpsEqual:A,areSetsEqual:P,createIsNestedEqual:t}),R=m(F);function T(e,t){return R(e,t,void 0)}var D=m(r(F,{createIsNestedEqual:function(){return u}}));function _(e,t){return D(e,t,void 0)}var B=m(I);function N(e,t){return B(e,t,new WeakMap)}var L=m(r(I,{createIsNestedEqual:function(){return u}}));function M(e,t){return L(e,t,new WeakMap)}function z(e){return m(r(F,e(F)))}function q(e){var t=m(r(I,e(I)));return function(e,n,r){return void 0===r&&(r=new WeakMap),t(e,n,r)}}e.circularDeepEqual=N,e.circularShallowEqual=M,e.createCustomCircularEqual=q,e.createCustomEqual=z,e.deepEqual=T,e.sameValueZeroEqual=u,e.shallowEqual=_,Object.defineProperty(e,"__esModule",{value:!0})}(t)},1102:(e,t,n)=>{"use strict";var r=n(6291),o=i(Error);function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=o,o.eval=i(EvalError),o.range=i(RangeError),o.reference=i(ReferenceError),o.syntax=i(SyntaxError),o.type=i(TypeError),o.uri=i(URIError),o.create=i},4029:(e,t,n)=>{"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r{var r=n(5108);!function(){var t;function n(e){for(var t,n,r,o,i=1,u=[].slice.call(arguments),s=0,a=e.length,c="",l=!1,f=!1,p=function(){return u[i++]},h=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),u=Math.max(0,r.length-i.length),s=[],a=0;a{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,u=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(e){a=null}var c=function(){throw new u},l=a?function(){try{return c}catch(e){try{return a(arguments,"callee").get}catch(e){return c}}}():c,f=n(1405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},h={},d="undefined"==typeof Uint8Array?r:p(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var y=p(p(e));g["%Error.prototype%"]=y}var m=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=p(o.prototype))}return g[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n(8612),b=n(7642),k=x.call(Function.call,Array.prototype.concat),w=x.call(Function.apply,Array.prototype.splice),E=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),O=x.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,j=function(e,t){var n,r=e;if(b(v,r)&&(r="%"+(n=v[r])[0]+"%"),b(g,r)){var i=g[r];if(i===h&&(i=m(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,C,(function(e,t,n,o){r[r.length]=n?E(o,A,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=j("%"+r+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],w(n,k([0,1],f)));for(var p=1,h=!0;p=n.length){var v=a(c,d);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else h=b(c,d),c=c[d];h&&!l&&(g[s]=c)}}return c}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},u=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=u,e.exports=s?i:u},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,u=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!u(e)&&(r.call(e),!0)}catch(e){return!1}},a=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;a.call(p)===a.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=a.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!u(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(u(e))return!1;var t=a.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,u=/^\s*(?:function)?\*/,s=n(6410)(),a=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(u.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(e);if(!a)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&a(t)}return a(e)===r}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,n)=>{"use strict";var r=n(5559),o=n(4289),i=n(8611),u=n(9415),s=n(3194),a=r(u(),Number);o(a,{getPolyfill:u,implementation:i,shim:s}),e.exports=a},9415:(e,t,n)=>{"use strict";var r=n(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3194:(e,t,n)=>{"use strict";var r=n(4289),o=n(9415);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5692:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),u=i("Object.prototype.toString"),s=n(6410)(),a=n(7296),c="undefined"==typeof globalThis?n.g:globalThis,l=o(),f=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!a&&function(e){var t=!1;return r(h,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},8234:(e,t,n)=>{"use strict";var r=n(6464);e.exports=function(e,t){var n,l,f,p,h,x,b,k,w,E,S,O=t||{},C=!1!==O.padding,A=!1!==O.delimiterStart,j=!1!==O.delimiterEnd,P=(O.align||[]).concat(),F=!1!==O.alignDelimiters,I=[],R=O.stringLength||m,T=-1,D=e.length,_=[],B=[],N=[],L=[],M=[],z=0;for(;++Tz&&(z=f);++lp)&&(M[l]=h)),N.push(x);_[T]=N,B[T]=L}var q;if(l=-1,f=z,"object"==typeof P&&"length"in P)for(;++lM[l]&&(M[l]=h),L[l]=h),N[l]=x;_.splice(1,0,N),B.splice(1,0,L),T=-1,D=_.length,b=[];for(;++T{"use strict";e.exports=function(e,t,n,r){var o,i;"string"==typeof t||t&&"function"==typeof t.exec?i=[[t,n]]:(i=t,r=n);return s(e,o=r||{},function e(t){var n=t[0];return r;function r(r,i){var a,c,l,f,p=n[0],h=n[1],d=[],g=0,y=i.children.indexOf(r);for(p.lastIndex=0,c=p.exec(r.value);c&&(a=c.index,!1!==(f=h.apply(null,[].concat(c,{index:c.index,input:c.input})))&&(g!==a&&d.push({type:"text",value:r.value.slice(g,a)}),"string"==typeof f&&f.length>0&&(f={type:"text",value:f}),f&&(d=[].concat(d,f)),g=a+c[0].length),p.global);)c=p.exec(r.value);if(void 0===a?(d=[r],y--):(g1)for(l=e(t.slice(1)),a=-1;++a{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},3366:(e,t,n)=>{var r=n(5478);t.canContainEols=["footnote"],t.enter={footnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},footnoteDefinitionLabelString:function(){this.buffer()},footnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},footnoteCallString:function(){this.buffer()},inlineNote:function(e){this.enter({type:"footnote",children:[]},e)}},t.exit={footnoteDefinition:function(e){this.exit(e)},footnoteDefinitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=r(this.sliceSerialize(e)).toLowerCase()},footnoteCall:function(e){this.exit(e)},footnoteCallString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=r(this.sliceSerialize(e)).toLowerCase()},inlineNote:function(e){this.exit(e)}}},8628:(e,t,n)=>{t.unsafe=[{character:"[",inConstruct:["phrasing","label","reference"]}],t.handlers={footnote:c,footnoteDefinition:function(e,t,n){var o,a=n.enter("footnoteDefinition"),c=n.enter("label"),l="[^"+s(n,r(e),{before:"^",after:"]"})+"]:";return c(),o=u(i(e,n),(function(e,t,n){if(t)return(n?"":" ")+e;return(n?l:l+" ")+e})),a(),o},footnoteReference:a};var r=n(9904),o=n(5362),i=n(3493),u=n(2670),s=n(1113);function a(e,t,n){var o=n.enter("footnoteReference"),i=n.enter("reference"),u=s(n,r(e),{before:"^",after:"]"});return i(),o(),"[^"+u+"]"}function c(e,t,n){var r=n.enter("footnote"),i=n.enter("label"),u="^["+o(e,n,{before:"[",after:"]"})+"]";return i(),r(),u}a.peek=function(){return"["},c.peek=function(){return"^"}},2524:(e,t,n)=>{"use strict";e.exports=function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n-1&&(N.call(this,e),L.call(this,e))}function z(){d("atHardBreak",!0)}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function $(){var e=this.resume();this.stack[this.stack.length-1].value=e}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function H(){var e=this.stack[this.stack.length-1];g("inReference")?(e.type+="Reference",e.referenceType=g("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),d("referenceType")}function V(){var e=this.stack[this.stack.length-1];g("inReference")?(e.type+="Reference",e.referenceType=g("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),d("referenceType")}function W(e){this.stack[this.stack.length-2].identifier=u(this.sliceSerialize(e)).toLowerCase()}function G(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,d("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function J(){var e=this.resume();this.stack[this.stack.length-1].url=e}function K(){var e=this.resume();this.stack[this.stack.length-1].title=e}function Q(){d("inReference")}function Y(){d("referenceType","collapsed")}function Z(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=u(this.sliceSerialize(e)).toLowerCase(),d("referenceType","full")}function X(e){d("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),o=g("characterReferenceType");o?(t=s(r,"characterReferenceMarkerNumeric"===o?10:16),d("characterReferenceType")):t=f(r),(n=this.stack.pop()).value+=t,n.position.end=y(e.end)}function te(e){L.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){L.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function ie(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function ye(){return{type:"strong",children:[]}}function me(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(n)(l(a(n).document().write(c()(e,t,!0))))};var r=n(4999),o=n(9198),i=n(6706),u=n(5478),s=n(596),a=n(2976),c=n(162),l=n(1242),f=n(9435),p=n(5432);function h(e,t){var n,r;for(n in t)r=i.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},9671:(e,t,n)=>{"use strict";e.exports=n(2524)},6150:(e,t,n)=>{e.exports=function(e){var t,n=r(e),s=n.length,a=-1,c={},l={};for(;++a{e.exports=function(e){var t,n=[],u={},s=r(e),a=s.length,c=-1;for(;++c{var r=n(932),o=n(2962),i=n(6996),u=n(395);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function a(e,t,n,o,i){var u,s,a="";return!!l(i)&&(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(u=function(e){var t,n,o,i=/[!"&'),.:;<>?\]}]+$/.exec(e);if(i)for(e=e.slice(0,i.index),t=(i=i[0]).indexOf(")"),n=r(e,"("),o=r(e,")");-1!==t&&n>o;)e+=i.slice(0,t+1),t=(i=i.slice(t+1)).indexOf(")"),o++;return[e,i]}(n+o))[0]&&(s={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]},u[1]&&(s=[s,{type:"text",value:u[1]}]),s)))}function c(e,t,n,r){return!(!l(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||u(n)||i(n))&&(!t||47!==n)}t.transforms=[function(e){o(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,a],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,c]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},5574:(e,t)=>{var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},8740:(e,t)=>{t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},9888:(e,t,n)=>{var r=n(5362);function o(e,t,n){var o=n.enter("emphasis"),i=r(e,n,{before:"~",after:"~"});return o(),"~~"+i+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:o},o.peek=function(){return"~"}},4865:(e,t)=>{function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function o(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,o));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},3046:(e,t,n)=>{var r=n(5362),o=n(1595),i=n(8234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,u=t.tablePipeAlign,s=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return l(function(e,t){var n=e.children,r=-1,o=n.length,i=[],u=t.enter("table");for(;++r{function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],o=n.children,i=r.children[0],u=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&i&&"text"===i.type){for(;++u{var r=n(8618);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var o=r(e,t,n),i=e.children[0];"boolean"==typeof e.checked&&i&&"paragraph"===i.type&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return o}}},438:(e,t,n)=>{var r=n(8733),o=n(8740),i=n(4865),u=n(9511),s={}.hasOwnProperty;function a(e,t){var n,r,o;for(n in t)r=s.call(e,n)?e[n]:e[n]={},o=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,o):Object.assign(r,o)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r{var r=n(5574),o=n(9888),i=n(3046),u=n(4625),s=n(2564);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,o,i(e),u]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},2564:e=>{e.exports=function e(t,n){var r,o=-1;if(n.extensions)for(;++o{e.exports=o,o.peek=function(){return"`"};var r=n(4553);function o(e,t,n){for(var o,i,u,s,a=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(a);)c+="`";for(/[^ \r\n]/.test(a)&&(/[ \r\n`]/.test(a.charAt(0))||/[ \r\n`]/.test(a.charAt(a.length-1)))&&(a=" "+a+" ");++l{e.exports=function(e,t,n){var a,c,l,f=o(n),p=i(n);t&&t.ordered&&(f=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");a=f.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));return l=n.enter("listItem"),c=s(u(e,n),(function(e,t,n){if(t)return(n?"":r(" ",a))+e;return(n?f:f+r(" ",a-f.length))+e})),l(),c};var r=n(6464),o=n(9400),i=n(6636),u=n(3493),s=n(2670)},9904:(e,t,n)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(o,"$1").replace(i,u)};var r=n(9435),o=/\\([!-/:-@[-`{-~])/g,i=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function u(e,t){return r(t)||e}},9400:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6636:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},3493:(e,t,n)=>{e.exports=function(e,t){var n,o=e.children||[],i=[],u=-1;for(;++u{e.exports=function(e,t,n){var r,o,i,u=e.children||[],s=[],a=-1,c=n.before;for(;++a0&&("\r"===c||"\n"===c)&&"html"===i.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),c=" "),s.push(t.handle(i,e,t,{before:c,after:r})),c=s[s.length-1].slice(-1);return s.join("")}},2670:e=>{e.exports=function(e,n){var r,o=[],i=0,u=0;for(;r=t.exec(e);)s(e.slice(i,r.index)),o.push(r[0]),i=r.index+r[0].length,u++;return s(e.slice(i)),o.join("");function s(e){o.push(n(e,u,!e))}};var t=/\r?\n|\r/g},4553:e=>{e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},6112:e=>{function t(e,t,n){var r;if(!t)return n;for("string"==typeof t&&(t=[t]),r=-1;++r{e.exports=function(e,t,n){var s,a,c,l,f,p,h,d,g=(n.before||"")+(t||"")+(n.after||""),y=[],m=[],v={},x=-1;for(;++x=d||c+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r{e.exports=function(e){var t={tokenize:d,resolveAll:f},n={add:"after",tokenize:g,resolveAll:f,resolveTo:p},r={tokenize:y,continuation:{tokenize:m},exit:v},o={91:{tokenize:h}};(e||{}).inlineNotes&&(o[93]=n,o[94]=t);return{_hiddenFootnoteSupport:{},document:{91:r},text:o}};var r=n(5478),o=n(6532),i=n(2928),u=n(6808),s=n(5096),a=n(5923),c=n(8280),l={tokenize:function(e,t,n){var r=this;return i(e,(function(e){return 4===s(r.events,"footnoteDefinitionIndent")?t(e):n(e)}),"footnoteDefinitionIndent",5)},partial:!0};function f(e){for(var t,n=e.length,r=-1;++r999?n(a):93===a?o?(e.exit("chunkString"),f=e.exit("footnoteCallString"),u.indexOf(r(i.sliceSerialize(f)))<0?n(a):function(n){return e.enter("footnoteCallLabelMarker"),e.consume(n),e.exit("footnoteCallLabelMarker"),e.exit("footnoteCall"),t}(a)):n(a):(e.consume(a),a<0||32===a||(o=!0),92===a?l:c)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function d(e,t,n){return function(t){return 94!==t?n(t):(e.enter("inlineNoteStart"),e.enter("inlineNoteMarker"),e.consume(t),e.exit("inlineNoteMarker"),r)};function r(r){return 91!==r?n(r):(e.enter("inlineNoteStartMarker"),e.consume(r),e.exit("inlineNoteStartMarker"),e.exit("inlineNoteStart"),t)}}function g(e,t,n){var r=this;return function(o){var i,u=r.events.length;for(;u--;)if("inlineNoteStart"===r.events[u][1].type){i=!0;break}if(93!==o||!i)return n(o);return e.enter("inlineNoteEnd"),e.enter("inlineNoteEndMarker"),e.consume(o),e.exit("inlineNoteEndMarker"),e.exit("inlineNoteEnd"),t}}function y(e,t,n){var i,u,s=this,a=s.parser.footnotes||(s.parser.footnotes=[]),c=0;return function(t){if(91!==t)return n(t);return e.enter("footnoteDefinition")._container=!0,e.enter("footnoteDefinitionLabel"),e.enter("footnoteDefinitionLabelMarker"),e.consume(t),e.exit("footnoteDefinitionLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("footnoteDefinitionMarker"),e.consume(t),e.exit("footnoteDefinitionMarker"),e.enter("footnoteDefinitionLabelString"),f)}function f(t){var o;return null===t||91===t||c>999?n(t):93===t?u?(o=e.exit("footnoteDefinitionLabelString"),i=r(s.sliceSerialize(o)),e.enter("footnoteDefinitionLabelMarker"),e.consume(t),e.exit("footnoteDefinitionLabelMarker"),e.exit("footnoteDefinitionLabel"),d):n(t):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c++,f):(e.enter("chunkString").contentType="string",p(t))}function p(t){return null===t||-5===t||-4===t||-3===t||91===t||93===t||c>999?(e.exit("chunkString"),f(t)):(t<0||32===t||(u=!0),c++,e.consume(t),92===t?h:p)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(t){return 58!==t?n(t):(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),e.check(o,g,y))}function g(e){return s.containerState.initialBlankLine=!0,m(e)}function y(t){return-2===t||-1===t||32===t?(e.enter("footnoteDefinitionWhitespace"),e.consume(t),e.exit("footnoteDefinitionWhitespace"),m(t)):m(t)}function m(e){return a.indexOf(i)<0&&a.push(i),t(e)}}function m(e,t,n){var r=this;return e.check(o,(function(e){r.containerState.initialBlankLine&&(r.containerState.furtherBlankLines=!0);return t(e)}),(function(o){if(r.containerState.furtherBlankLines||-2!==o&&-1!==o&&32!==o)return n(o);return r.containerState.initialBlankLine=void 0,r.containerState.furtherBlankLines=void 0,e.attempt(l,t,n)(o)}))}function v(e){e.exit("footnoteDefinition")}},7969:(e,t,n)=>{e.exports=n(6385)},4035:(e,t,n)=>{e.exports=function(e){var t,n=e||"yaml",r=[],o=-1;"string"!=typeof n&&"length"in n||(n=[n]);t=n.length;for(;++o{e.exports=function(e){var t,n,u=r(e),s=u.length,a=-1,c={};for(;++a{e.exports=n(2346)},2346:(e,t,n)=>{var r=n(6734),o=n(6712),i=n(9696),u=n(7238),s=n(6996),a=n(395),c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||u(e)?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){var r,o;return u;function u(t){return 38===t?e.check(h,l,c)(t):46===t||95===t?e.check(p,l,c)(t):i(t)||a(t)||45!==t&&s(t)?l(t):(e.consume(t),u)}function c(t){return 46===t?(o=r,r=void 0,e.consume(t),u):(95===t&&(r=!0),e.consume(t),u)}function l(e){return o||r?n(e):t(e)}},partial:!0},f={tokenize:function(e,t){var n=0;return r;function r(u){return 38===u?e.check(h,t,o)(u):(40===u&&n++,41===u?e.check(p,i,o)(u):b(u)?t(u):x(u)?e.check(p,t,o)(u):(e.consume(u),r))}function o(t){return e.consume(t),r}function i(e){return--n<0?t(e):o(e)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(o){return x(o)?(e.consume(o),r):b(o)?t(o):n(o)}},partial:!0},h={tokenize:function(e,t,n){return function(t){return e.consume(t),o};function o(t){return r(t)?(e.consume(t),o):59===t?(e.consume(t),i):n(t)}function i(e){return b(e)?t(e):n(e)}},partial:!0},d={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!=87||!w(r.previous)||O(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(l,e.attempt(f,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:w},g={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!=72||!E(r.previous)||O(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 84===t||t-32==84?(e.consume(t),c):n(t)}function c(t){return 80===t||t-32==80?(e.consume(t),p):n(t)}function p(t){return 83===t||t-32==83?(e.consume(t),h):h(t)}function h(t){return 58===t?(e.consume(t),d):n(t)}function d(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return 47===t?(e.consume(t),y):n(t)}function y(t){return i(t)||a(t)||s(t)?n(t):e.attempt(l,e.attempt(f,m),n)(t)}function m(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:E},y={tokenize:function(e,t,n){var r,i=this;return function(t){if(!k(t)||!S(i.previous)||O(i.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(t)};function u(t){return k(t)?(e.consume(t),u):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(p,f,a)(t):45===t||95===t?e.check(p,n,c)(t):o(t)?(e.consume(t),s):f(t)}function a(t){return e.consume(t),r=!0,s}function c(t){return e.consume(t),l}function l(t){return 46===t?e.check(p,n,a)(t):s(t)}function f(o){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:S},m={};t.text=m;for(var v=48;v<123;)m[v]=y,58===++v?v=65:91===v&&(v=97);function x(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function b(e){return null===e||e<0||32===e||60===e}function k(e){return 43===e||45===e||46===e||95===e||o(e)}function w(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function E(e){return null===e||!r(e)}function S(e){return 47!==e&&E(e)}function O(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}m[43]=y,m[45]=y,m[46]=y,m[95]=y,m[72]=[y,g],m[104]=[y,g],m[87]=[y,d],m[119]=[y,d]},3490:(e,t,n)=>{e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,o){var i=this.previous,u=this.events,s=0;return a;function a(t){return 126!==t||126===i&&"characterEscape"!==u[u.length-1][1].type?o(t):(e.enter("strikethroughSequenceTemporary"),c(t))}function c(u){var a,l,f=r(i);return 126===u?s>1?o(u):(e.consume(u),s++,c):s<2&&!t?o(u):(a=e.exit("strikethroughSequenceTemporary"),l=r(u),a._open=!l||2===l&&f,a._close=!f||2===f&&l,n(u))}},resolveAll:function(e,t){var n,r,s,a,c=-1;for(;++c{e.exports=n(3993)},3993:(e,t,n)=>{t.flow={null:{tokenize:function(e,t,n){var u,s,a=[],c=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=a,e.enter("tableHead"),e.enter("tableRow"),124===t)return l(t);return c++,e.enter("temporaryTableCellContent"),h(t)};function l(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),u=!0,f}function f(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(o,n,r(e,g,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),p):(u&&(u=void 0,c++),124===t?l(t):(e.enter("temporaryTableCellContent"),h(t)))}function p(t){return-2===t||-1===t||32===t?(e.consume(t),p):(e.exit("whitespace"),f(t))}function h(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),f(t)):(e.consume(t),92===t?d:h)}function d(t){return 92===t||124===t?(e.consume(t),h):h(t)}function g(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),y(t))}function y(t){return null===t||-5===t||-4===t||-3===t?k(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,a.push(null),v):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),a.push("left"),x):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),y):n(t)}function m(t){return-2===t||-1===t||32===t?(e.consume(t),m):(e.exit("whitespace"),y(t))}function v(t){return 45===t?(e.consume(t),v):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),a[a.length-1]="left"===a[a.length-1]?"center":"right",b):y(t))}function x(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,v):n(t)}function b(t){return null===t||-5===t||-4===t||-3===t?k(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),y):n(t)}function k(t){return e.exit("tableDelimiterRow"),s&&c===a.length?null===t?w(t):e.check(i,w,E)(t):n(t)}function w(n){return e.exit("table"),t(n)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,S,"linePrefix",4)}function S(t){return e.enter("tableBody"),O(t)}function O(t){return e.enter("tableRow"),124===t?C(t):(e.enter("temporaryTableCellContent"),P(t))}function C(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return I(t);return e.check(i,I,R)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),j):124===t?C(t):(e.enter("temporaryTableCellContent"),P(t))}function j(t){return-2===t||-1===t||32===t?(e.consume(t),j):(e.exit("whitespace"),A(t))}function P(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?F:P)}function F(t){return 92===t||124===t?(e.consume(t),P):P(t)}function I(t){return e.exit("tableBody"),w(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,O,"linePrefix",4)}},resolve:function(e,t){var n,r,o,i,u,s,a,c,l,f,p=e.length,h=-1;for(;++h{e.exports=n(7224)},7224:(e,t,n)=>{var r=n(6338),o=n(2928),i=n(5096),u={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var u=this;return o(e,(function(e){return i(u.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:u}},2747:(e,t,n)=>{e.exports=n(2518)},2518:(e,t,n)=>{var r=n(2952),o=n(7539),i=n(3490),u=n(1286),s=n(5675);e.exports=function(e){return r([o,i(e),u,s])}},6734:(e,t,n)=>{"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},6712:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},3571:(e,t,n)=>{"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},9696:e=>{"use strict";e.exports=function(e){return e<32||127===e}},3977:(e,t,n)=>{"use strict";var r=n(2841)(/\d/);e.exports=r},6238:(e,t,n)=>{"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},3074:(e,t,n)=>{"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},6338:e=>{"use strict";e.exports=function(e){return e<0||32===e}},7238:e=>{"use strict";e.exports=function(e){return e<-2}},3654:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},6996:(e,t,n)=>{"use strict";var r=n(6830),o=n(2841)(r);e.exports=o},395:(e,t,n)=>{"use strict";var r=n(2841)(/\s/);e.exports=r},9198:e=>{"use strict";var t=Object.assign;e.exports=t},3267:e=>{"use strict";var t=String.fromCharCode;e.exports=t},6706:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},7139:e=>{"use strict";e.exports=["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","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6871:e=>{"use strict";e.exports=["pre","script","style","textarea"]},1362:e=>{"use strict";var t=[].splice;e.exports=t},6830:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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]/},6274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7082),o=n(7542),i=n(1349),u=n(5485),s=n(9653),a=n(6713),c=n(6597),l=n(431),f=n(26),p=n(3865),h=n(5694),d=n(5565),g=n(6872),y=n(8911),m=n(1294),v=n(6215),x=n(534),b=n(2607),k=n(6931),w=n(5874),E=n(7039),S={42:k,43:k,45:k,48:k,49:k,50:k,51:k,52:k,53:k,54:k,55:k,56:k,57:k,62:u},O={91:p},C={"-2":l,"-1":l,32:l},A={35:d,42:E,45:[w,E],60:g,61:w,95:E,96:c,126:c},j={38:a,92:s},P={"-5":b,"-4":b,"-3":b,33:v,38:a,42:o,60:[i,y],91:x,92:[h,s],93:m,95:o,96:f},F={null:[o,r.resolver]};t.contentInitial=O,t.disable={null:[]},t.document=S,t.flow=A,t.flowInitial=C,t.insideSpan=F,t.string=j,t.text=P},3745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928),i=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),i(t)}));return n;function i(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,u(n)}function u(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),i):(e.consume(t),u)}};t.tokenize=i},4201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7238),o=n(2928),i=n(6532),u=function(e){var t,n,o,u=this,c=[],l=0,f={tokenize:function(e,r){var o=0;return t={},l;function l(r){return ot;)u.containerState=c[i][1],c[i][0].exit.call(u,e);c.length=t}},s={tokenize:function(e,t,n){return o(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},a={tokenize:function(e,t,n){return o(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=u},2871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4590),o=n(2928),i=n(6532),u=function(e){var t=this,n=e.attempt(i,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,u,o(e,e.attempt(this.parser.constructs.flow,u,e.attempt(r,u)),"linePrefix")));return n;function u(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=u},7082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9198),o=n(5923),i=a("text"),u=a("string"),s={resolveAll:c()};function a(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,i,u);return i;function i(e){return a(e)?o(e):u(e)}function u(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return a(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function a(e){var t=r[e],o=-1;if(null===e)return!0;if(t)for(;++o{"use strict";var r=n(3745),o=n(4201),i=n(2871),u=n(7082),s=n(2952),a=n(1388),c=n(8180),l=n(6274);e.exports=function(e){var t={defined:[],constructs:s([l].concat(c((e||{}).extensions))),content:n(r),document:n(o),flow:n(i),string:n(u.string),text:n(u.text)};return t;function n(e){return function(n){return a(t,e,n)}}}},1242:(e,t,n)=>{"use strict";var r=n(4423);e.exports=function(e){for(;!r(e););return e}},162:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,o="";return function(i,u,s){var a,c,l,f,p,h=[];i=o+i.toString(u),l=0,o="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);for(;l{"use strict";var r=n(8811),o=n(6808),i=n(9444),u=n(5644),s=n(8280),a=n(5923),c={name:"attention",tokenize:function(e,t){var n,r=i(this.previous);return function(t){return e.enter("attentionSequence"),n=t,o(t)};function o(u){var s,a,c,l;return u===n?(e.consume(u),o):(s=e.exit("attentionSequence"),c=!(a=i(u))||2===a&&r,l=!r||2===r&&a,s._open=42===n?c:c&&(r||!l),s._close=42===n?l:l&&(a||!c),t(u))}},resolveAll:function(e,t){var n,i,c,l,f,p,h,d,g=-1;for(;++g1&&e[g][1].end.offset-e[g][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:u(a(e[n][1].end),-p),end:a(e[n][1].end)},f={type:p>1?"strongSequence":"emphasisSequence",start:a(e[g][1].start),end:u(a(e[g][1].start),p)},c={type:p>1?"strongText":"emphasisText",start:a(e[n][1].end),end:a(e[g][1].start)},i={type:p>1?"strong":"emphasis",start:a(l.start),end:a(f.end)},e[n][1].end=a(l.start),e[g][1].start=a(f.end),h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=r(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=r(h,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",c,t]]),h=r(h,s(t.parser.constructs.insideSpan.null,e.slice(n+1,g),t)),h=r(h,[["exit",c,t],["enter",f,t],["exit",f,t],["exit",i,t]]),e[g][1].end.offset-e[g][1].start.offset?(d=2,h=r(h,[["enter",e[g][1],t],["exit",e[g][1],t]])):d=0,o(e,n-1,g-n+3,h),g=n+h.length-d-2;break}g=-1;for(;++g{"use strict";var r=n(6734),o=n(6712),i=n(3571),u=n(9696),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return r(t)?(e.consume(t),c):i(t)?p(t):n(t)}function c(e){return 43===e||45===e||46===e||o(e)?l(e):p(e)}function l(t){return 58===t?(e.consume(t),f):(43===t||45===t||46===t||o(t))&&s++<32?(e.consume(t),l):p(t)}function f(t){return 62===t?(e.exit("autolinkProtocol"),y(t)):32===t||60===t||u(t)?n(t):(e.consume(t),f)}function p(t){return 64===t?(e.consume(t),s=0,h):i(t)?(e.consume(t),p):n(t)}function h(e){return o(e)?d(e):n(e)}function d(t){return 46===t?(e.consume(t),s=0,h):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",y(t)):g(t)}function g(t){return(45===t||o(t))&&s++<63?(e.consume(t),45===t?g:d):n(t)}function y(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},5485:(e,t,n)=>{"use strict";var r=n(3654),o=n(2928),i={name:"blockQuote",tokenize:function(e,t,n){var o=this;return function(t){if(62===t)return o.containerState.open||(e.enter("blockQuote",{_container:!0}),o.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i;return n(t)};function i(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return o(e,e.attempt(i,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=i},9653:(e,t,n)=>{"use strict";var r=n(3074),o={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return r(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}};e.exports=o},6713:(e,t,n)=>{"use strict";var r=n(9435),o=n(6712),i=n(3977),u=n(6238);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(r),c={name:"characterReference",tokenize:function(e,t,n){var r,s,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),f};function f(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),r=31,s=o,h(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=u,h):(e.enter("characterReferenceValue"),r=7,s=i,h(t))}function h(i){var u;return 59===i&&l?(u=e.exit("characterReferenceValue"),s!==o||a.default(c.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(i),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(i)):s(i)&&l++{"use strict";var r=n(7238),o=n(6338),i=n(5096),u=n(2928),s={name:"codeFenced",tokenize:function(e,t,n){var s,a=this,c={tokenize:function(e,t,n){var o=0;return u(e,i,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===s?(e.consume(t),o++,a):o{"use strict";var r=n(7238),o=n(6808),i=n(5096),u=n(2928),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(a,o,n);function o(n){return null===n?t(n):r(n)?e.attempt(a,o,t)(n):(e.enter("codeFlowValue"),i(n))}function i(t){return null===t||r(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return o(e,0,0,[["enter",n,t]]),o(e,e.length,0,[["exit",n,t]]),e}},a={tokenize:function(e,t,n){var o=this;return u(e,(function s(a){if(r(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u(e,s,"linePrefix",5);return i(o.events,"linePrefix")<4?n(a):t(a)}),"linePrefix",5)},partial:!0};e.exports=s},26:(e,t,n)=>{"use strict";var r=n(7238),o={name:"codeText",tokenize:function(e,t,n){var o,i,u=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),u++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):96===t?(i=e.enter("codeTextSequence"),o=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),o++,l):o===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",c(n))}},resolve:function(e){var t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t{"use strict";var r=n(7238),o=n(5096),i=n(4423),u=n(2928),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(t)};function o(t){return null===t?i(t):r(t)?e.check(a,u,i)(t):(e.consume(t),o)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function u(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}},resolve:function(e){return i(e),e},interruptible:!0,lazy:!0},a={tokenize:function(e,t,n){var i=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,s,"linePrefix")};function s(u){return null===u||r(u)?n(u):i.parser.constructs.disable.null.indexOf("codeIndented")>-1||o(i.events,"linePrefix")<4?e.interrupt(i.parser.constructs.flow,n,t)(u):t(u)}},partial:!0};e.exports=s},3865:(e,t,n)=>{"use strict";var r=n(7238),o=n(6338),i=n(5478),u=n(8229),s=n(7154),a=n(2928),c=n(1056),l=n(9283),f={name:"definition",tokenize:function(e,t,n){var o,l=this;return function(t){return e.enter("definition"),s.call(l,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function f(t){return o=i(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,u(e,e.attempt(p,a(e,h,"whitespace"),a(e,h,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function h(i){return null===i||r(i)?(e.exit("definition"),l.parser.defined.indexOf(o)<0&&l.parser.defined.push(o),t(i)):n(i)}}},p={tokenize:function(e,t,n){return function(t){return o(t)?c(e,i)(t):n(t)};function i(t){return 34===t||39===t||40===t?l(e,a(e,u,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function u(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=f},8229:(e,t,n)=>{"use strict";var r=n(9696),o=n(6338),i=n(7238);e.exports=function(e,t,n,u,s,a,c,l,f){var p=f||1/0,h=0;return function(t){if(60===t)return e.enter(u),e.enter(s),e.enter(a),e.consume(t),e.exit(a),d;if(r(t)||41===t)return n(t);return e.enter(u),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t)};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(s),e.exit(u),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(n))}function g(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||i(t)?n(t):(e.consume(t),92===t?y:g)}function y(t){return 60===t||62===t||92===t?(e.consume(t),g):g(t)}function m(i){return 40===i?++h>p?n(i):(e.consume(i),m):41===i?h--?(e.consume(i),m):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(u),t(i)):null===i||o(i)?h?n(i):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(u),t(i)):r(i)?n(i):(e.consume(i),92===i?v:m)}function v(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7154:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654);e.exports=function(e,t,n,i,u,s){var a,c=this,l=0;return function(t){return e.enter(i),e.enter(u),e.consume(t),e.exit(u),e.enter(s),f};function f(o){return null===o||91===o||93===o&&!a||94===o&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?n(o):93===o?(e.exit(s),e.enter(u),e.consume(o),e.exit(u),e.exit(i),t):r(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(o))}function p(t){return null===t||91===t||93===t||r(t)||l++>999?(e.exit("chunkString"),f(t)):(e.consume(t),a=a||!o(t),92===t?h:p)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,p):p(t)}}},2928:(e,t,n)=>{"use strict";var r=n(3654);e.exports=function(e,t,n,o){var i=o?o-1:1/0,u=0;return function(o){if(r(o))return e.enter(n),s(o);return t(o)};function s(o){return r(o)&&u++{"use strict";var r=n(7238),o=n(2928);e.exports=function(e,t,n,i,u,s){var a;return function(t){return e.enter(i),e.enter(u),e.consume(t),e.exit(u),a=40===t?41:t,c};function c(n){return n===a?(e.enter(u),e.consume(n),e.exit(u),e.exit(i),t):(e.enter(s),l(n))}function l(t){return t===a?(e.exit(s),c(a)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===a||null===t||r(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:f)}function p(t){return t===a||92===t?(e.consume(t),f):f(t)}}},1056:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928);e.exports=function(e,t){var n;return function u(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,u;if(o(s))return i(e,u,n?"linePrefix":"lineSuffix")(s);return t(s)}}},5694:(e,t,n)=>{"use strict";var r=n(7238),o={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return r(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}};e.exports=o},5565:(e,t,n)=>{"use strict";var r=n(7238),o=n(6338),i=n(3654),u=n(6808),s=n(2928),a={name:"headingAtx",tokenize:function(e,t,n){var u=this,a=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(r){return 35===r&&a++<6?(e.consume(r),c):null===r||o(r)?(e.exit("atxHeadingSequence"),u.interrupt?t(r):l(r)):n(r)}function l(n){return 35===n?(e.enter("atxHeadingSequence"),f(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):i(n)?s(e,l,"whitespace")(n):(e.enter("atxHeadingText"),p(n))}function f(t){return 35===t?(e.consume(t),f):(e.exit("atxHeadingSequence"),l(t))}function p(t){return null===t||35===t||o(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),p)}},resolve:function(e,t){var n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},u(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=a},6872:(e,t,n)=>{"use strict";var r=n(6734),o=n(6712),i=n(7238),u=n(6338),s=n(3654),a=n(3267),c=n(7139),l=n(6871),f=n(6532),p={name:"htmlFlow",tokenize:function(e,t,n){var f,p,d,g,y,m=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),v};function v(o){return 33===o?(e.consume(o),x):47===o?(e.consume(o),w):63===o?(e.consume(o),f=3,m.interrupt?t:$):r(o)?(e.consume(o),d=a(o),p=!0,E):n(o)}function x(o){return 45===o?(e.consume(o),f=2,b):91===o?(e.consume(o),f=5,d="CDATA[",g=0,k):r(o)?(e.consume(o),f=4,m.interrupt?t:$):n(o)}function b(r){return 45===r?(e.consume(r),m.interrupt?t:$):n(r)}function k(r){return r===d.charCodeAt(g++)?(e.consume(r),g===d.length?m.interrupt?t:_:k):n(r)}function w(t){return r(t)?(e.consume(t),d=a(t),E):n(t)}function E(r){return null===r||47===r||62===r||u(r)?47!==r&&p&&l.indexOf(d.toLowerCase())>-1?(f=1,m.interrupt?t(r):_(r)):c.indexOf(d.toLowerCase())>-1?(f=6,47===r?(e.consume(r),S):m.interrupt?t(r):_(r)):(f=7,m.interrupt?n(r):p?C(r):O(r)):45===r||o(r)?(e.consume(r),d+=a(r),E):n(r)}function S(r){return 62===r?(e.consume(r),m.interrupt?t:_):n(r)}function O(t){return s(t)?(e.consume(t),O):T(t)}function C(t){return 47===t?(e.consume(t),T):58===t||95===t||r(t)?(e.consume(t),A):s(t)?(e.consume(t),C):T(t)}function A(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),A):j(t)}function j(t){return 61===t?(e.consume(t),P):s(t)?(e.consume(t),j):C(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),y=t,F):s(t)?(e.consume(t),P):(y=void 0,I(t))}function F(t){return t===y?(e.consume(t),R):null===t||i(t)?n(t):(e.consume(t),F)}function I(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||u(t)?j(t):(e.consume(t),I)}function R(e){return 47===e||62===e||s(e)?C(e):n(e)}function T(t){return 62===t?(e.consume(t),D):n(t)}function D(t){return s(t)?(e.consume(t),D):null===t||i(t)?_(t):n(t)}function _(t){return 45===t&&2===f?(e.consume(t),L):60===t&&1===f?(e.consume(t),M):62===t&&4===f?(e.consume(t),U):63===t&&3===f?(e.consume(t),$):93===t&&5===f?(e.consume(t),q):!i(t)||6!==f&&7!==f?null===t||i(t)?B(t):(e.consume(t),_):e.check(h,U,B)(t)}function B(t){return e.exit("htmlFlowData"),N(t)}function N(t){return null===t?H(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N):(e.enter("htmlFlowData"),_(t))}function L(t){return 45===t?(e.consume(t),$):_(t)}function M(t){return 47===t?(e.consume(t),d="",z):_(t)}function z(t){return 62===t&&l.indexOf(d.toLowerCase())>-1?(e.consume(t),U):r(t)&&d.length<8?(e.consume(t),d+=a(t),z):_(t)}function q(t){return 93===t?(e.consume(t),$):_(t)}function $(t){return 62===t?(e.consume(t),U):_(t)}function U(t){return null===t||i(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),U)}function H(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},h={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(f,t,n)}},partial:!0};e.exports=p},8911:(e,t,n)=>{"use strict";var r=n(6734),o=n(6712),i=n(7238),u=n(6338),s=n(3654),a=n(2928),c={name:"htmlText",tokenize:function(e,t,n){var c,l,f,p,h=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),d};function d(t){return 33===t?(e.consume(t),g):47===t?(e.consume(t),j):63===t?(e.consume(t),C):r(t)?(e.consume(t),I):n(t)}function g(t){return 45===t?(e.consume(t),y):91===t?(e.consume(t),l="CDATA[",f=0,k):r(t)?(e.consume(t),O):n(t)}function y(t){return 45===t?(e.consume(t),m):n(t)}function m(t){return null===t||62===t?n(t):45===t?(e.consume(t),v):x(t)}function v(e){return null===e||62===e?n(e):x(e)}function x(t){return null===t?n(t):45===t?(e.consume(t),b):i(t)?(p=x,M(t)):(e.consume(t),x)}function b(t){return 45===t?(e.consume(t),q):x(t)}function k(t){return t===l.charCodeAt(f++)?(e.consume(t),f===l.length?w:k):n(t)}function w(t){return null===t?n(t):93===t?(e.consume(t),E):i(t)?(p=w,M(t)):(e.consume(t),w)}function E(t){return 93===t?(e.consume(t),S):w(t)}function S(t){return 62===t?q(t):93===t?(e.consume(t),S):w(t)}function O(t){return null===t||62===t?q(t):i(t)?(p=O,M(t)):(e.consume(t),O)}function C(t){return null===t?n(t):63===t?(e.consume(t),A):i(t)?(p=C,M(t)):(e.consume(t),C)}function A(e){return 62===e?q(e):C(e)}function j(t){return r(t)?(e.consume(t),P):n(t)}function P(t){return 45===t||o(t)?(e.consume(t),P):F(t)}function F(t){return i(t)?(p=F,M(t)):s(t)?(e.consume(t),F):q(t)}function I(t){return 45===t||o(t)?(e.consume(t),I):47===t||62===t||u(t)?R(t):n(t)}function R(t){return 47===t?(e.consume(t),q):58===t||95===t||r(t)?(e.consume(t),T):i(t)?(p=R,M(t)):s(t)?(e.consume(t),R):q(t)}function T(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),T):D(t)}function D(t){return 61===t?(e.consume(t),_):i(t)?(p=D,M(t)):s(t)?(e.consume(t),D):R(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,B):i(t)?(p=_,M(t)):s(t)?(e.consume(t),_):(e.consume(t),c=void 0,L)}function B(t){return t===c?(e.consume(t),N):null===t?n(t):i(t)?(p=B,M(t)):(e.consume(t),B)}function N(e){return 62===e||47===e||u(e)?R(e):n(e)}function L(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||u(t)?R(t):(e.consume(t),L)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,z,"linePrefix",h.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function z(t){return e.enter("htmlTextData"),p(t)}function q(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=c},1294:(e,t,n)=>{"use strict";var r=n(6338),o=n(8811),i=n(6808),u=n(5478),s=n(8280),a=n(5923),c=n(8229),l=n(7154),f=n(9283),p=n(1056),h={name:"labelEnd",tokenize:function(e,t,n){var r,o,i=this,s=i.events.length;for(;s--;)if(("labelImage"===i.events[s][1].type||"labelLink"===i.events[s][1].type)&&!i.events[s][1]._balanced){r=i.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?c(t):(o=i.parser.defined.indexOf(u(i.sliceSerialize({start:r.end,end:i.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a)};function a(n){return 40===n?e.attempt(d,t,o?t:c)(n):91===n?e.attempt(g,t,o?e.attempt(y,t,c):c)(n):o?t(n):c(n)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,u,c,l,f,p,h=e.length,d=0;for(;h--;)if(c=e[h][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[h][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(f){if("enter"===e[h][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=h,"labelLink"!==c.type)){d=2;break}}else"labelEnd"===c.type&&(f=h);return n={type:"labelLink"===e[l][1].type?"link":"image",start:a(e[l][1].start),end:a(e[e.length-1][1].end)},r={type:"label",start:a(e[l][1].start),end:a(e[f][1].end)},u={type:"labelText",start:a(e[l+d+2][1].end),end:a(e[f-2][1].start)},p=o(p=[["enter",n,t],["enter",r,t]],e.slice(l+1,l+d+3)),p=o(p,[["enter",u,t]]),p=o(p,s(t.parser.constructs.insideSpan.null,e.slice(l+d+4,f-3),t)),p=o(p,[["exit",u,t],e[f-2],e[f-1],["exit",r,t]]),p=o(p,e.slice(f+1)),p=o(p,[["exit",n,t]]),i(e,l,e.length,p),e},resolveAll:function(e){var t,n=-1;for(;++n{"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},534:(e,t,n)=>{"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(1294).resolveAll};e.exports=r},2607:(e,t,n)=>{"use strict";var r=n(2928),o={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=o},6931:(e,t,n)=>{"use strict";var r=n(3977),o=n(3654),i=n(5096),u=n(8892),s=n(2928),a=n(6532),c=n(7039),l={name:"list",tokenize:function(e,t,n){var s=this,l=i(s.events,"linePrefix"),p=0;return function(t){var o=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,n,d)(t):d(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(t)}return n(t)};function h(t){return r(t)&&++p<10?(e.consume(t),h):(!s.interrupt||p<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),d(t)):n(t)}function d(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(a,s.interrupt?n:g,e.attempt(f,m,y))}function g(e){return s.containerState.initialBlankLine=!0,l++,m(e)}function y(t){return o(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):n(t)}function m(n){return s.containerState.size=l+u(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(a,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!o(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(p,t,i)(n)}));function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(l,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(e)||!i(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=l},6532:(e,t,n)=>{"use strict";var r=n(7238),o=n(2928),i={tokenize:function(e,t,n){return o(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=i},5874:(e,t,n)=>{"use strict";var r=n(7238),o=n(5923),i=n(2928),u={name:"setextUnderline",tokenize:function(e,t,n){var o,u,s=this,a=s.events.length;for(;a--;)if("lineEnding"!==s.events[a][1].type&&"linePrefix"!==s.events[a][1].type&&"content"!==s.events[a][1].type){u="paragraph"===s.events[a][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||u))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,c(t);return n(t)};function c(t){return t===o?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),i(e,l,"lineSuffix")(t))}function l(o){return null===o||r(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},resolveTo:function(e,t){var n,r,i,u,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);u={type:"setextHeading",start:o(e[r][1].start),end:o(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",u,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=o(e[i][1].end)):e[n][1]=u;return e.push(["exit",u,t]),e}};e.exports=u},7039:(e,t,n)=>{"use strict";var r=n(7238),o=n(3654),i=n(2928),u={name:"thematicBreak",tokenize:function(e,t,n){var u,s=0;return function(t){return e.enter("thematicBreak"),u=t,a(t)};function a(l){return l===u?(e.enter("thematicBreakSequence"),c(l)):o(l)?i(e,a,"whitespace")(l):s<3||null!==l&&!r(l)?n(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===u?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),a(t))}}};e.exports=u},8811:(e,t,n)=>{"use strict";var r=n(6808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},6808:(e,t,n)=>{"use strict";var r=n(1362);e.exports=function(e,t,n,o){var i,u=e.length,s=0;if(t=t<0?-t>u?0:u+t:t>u?u:t,n=n>0?n:0,o.length<1e4)(i=Array.from(o)).unshift(t,n),r.apply(e,i);else for(n&&r.apply(e,[t,n]);s{"use strict";var r=n(6338),o=n(6996),i=n(395);e.exports=function(e){return null===e||r(e)||i(e)?1:o(e)?2:void 0}},2952:(e,t,n)=>{"use strict";var r=n(6706),o=n(6808),i=n(8180);function u(e,t){var n,o,u,a;for(n in t)for(a in o=r.call(e,n)?e[n]:e[n]={},u=t[n])o[a]=s(i(u[a]),r.call(o,a)?o[a]:[])}function s(e,t){for(var n=-1,r=[];++n{"use strict";var r=n(9198),o=n(7238),i=n(8811),u=n(6808),s=n(8180),a=n(8280),c=n(3082),l=n(5923),f=n(2774);e.exports=function(e,t,n){var p=n?l(n):{line:1,column:1,offset:0},h={},d=[],g=[],y=[],m={consume:function(e){o(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,A()):-1!==e&&(p.column++,p.offset++);p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===g[p._index].length&&(p._bufferIndex=-1,p._index++));v.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=k(),v.events.push(["enter",n,v]),y.push(n),n},exit:function(e){var t=y.pop();return t.end=k(),v.events.push(["exit",t,v]),t},attempt:O((function(e,t){C(e,t.from)})),check:O(S),interrupt:O(S,{interrupt:!0}),lazy:O(S,{lazy:!0})},v={previous:null,events:[],parser:e,sliceStream:b,sliceSerialize:function(e){return c(b(e))},now:k,defineSkip:function(e){h[e.line]=e.column,A()},write:function(e){if(g=i(g,e),w(),null!==g[g.length-1])return[];return C(t,0),v.events=a(d,v.events,v),v.events}},x=t.tokenize.call(v,m);return t.resolveAll&&d.push(t),p._index=0,p._bufferIndex=-1,v;function b(e){return f(g,e)}function k(){return l(p)}function w(){for(var e,t;p._index-1)return g();return e.tokenize.call(t?r({},v,t):v,m,d,g)(n)}}function d(t){return e(c,l),o}function g(e){return l.restore(),++a{"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},5644:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},5478:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},5096:(e,t,n)=>{"use strict";var r=n(8892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){return function(t){return e.test(r(t))}}},8280:e=>{"use strict";e.exports=function(e,t,n){for(var r,o=[],i=-1;++i{"use strict";var r=n(3267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":r(n)}},3082:(e,t,n)=>{"use strict";var r=n(3267);e.exports=function(e){for(var t,n,o,i=-1,u=[];++i{"use strict";var r=n(9198);e.exports=function(e){return r({},e)}},8892:e=>{"use strict";e.exports=function(e){for(var t=-1,n=0;++t{"use strict";e.exports=function(e,t){var n,r=t.start._index,o=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex;return r===i?n=[e[r].slice(o,u)]:(n=e.slice(r,i),o>-1&&(n[0]=n[0].slice(o)),u>0&&n.push(e[i].slice(0,u))),n}},4423:(e,t,n)=>{"use strict";var r=n(9198),o=n(6808),i=n(5923);function u(e,t){for(var n,r,i,u,s,a,c=e[t][1],l=e[t][2],f=t-1,p=[],h=c._tokenizer||l.parser[c.contentType](c.start),d=h.events,g=[],y={};c;){for(;e[++f][1]!==c;);p.push(f),c._tokenizer||(n=l.sliceStream(c),c.next||n.push(null),r&&h.defineSkip(c.start),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(n),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),r=c,c=c.next}for(c=r,i=d.length;i--;)"enter"===d[i][0]?u=!0:u&&d[i][1].type===d[i-1][1].type&&d[i][1].start.line!==d[i][1].end.line&&(m(d.slice(i+1,s)),c._tokenizer=c.next=void 0,c=c.previous,s=i+1);for(h.events=c._tokenizer=c.next=void 0,m(d.slice(0,s)),i=-1,a=0;++i{var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,u=365.25*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*u;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===c&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=o)return s(e,i,o,"day");if(i>=r)return s(e,i,r,"hour");if(i>=n)return s(e,i,n,"minute");if(i>=t)return s(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),u=n(5624),s=n(2281),a=o(u(),Object);r(a,{getPolyfill:u,implementation:i,shim:s}),e.exports=a},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,u=n(1414),s=Object.prototype.propertyIsEnumerable,a=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=u(e),s=t&&"[object String]"===i.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&e.length>0&&!o.call(e,0))for(var g=0;g0)for(var y=0;y{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,u=i?function(e){return i(e)}:n(8987),s=Object.keys;u.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=u;return Object.keys||u},e.exports=u},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},9435:e=>{"use strict";var t,n=59;e.exports=function(e){var r,o="&"+e+";";if((t=t||document.createElement("i")).innerHTML=o,(r=t.textContent).charCodeAt(r.length-1)===n&&"semi"!==e)return!1;return r!==o&&r}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,a=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?a=s.concat(a):l=-1,a.length&&p())}function p(){if(!c){var e=u(f);c=!0;for(var t=a.length;t;){for(s=a,a=[];++l1)for(var n=1;n{"use strict";var r,o=n(5108),i=n(1608),u=n(3366),s=n(8628);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,o.warn("[remark-footnotes] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",u),n("toMarkdownExtensions",s)}},5941:(e,t,n)=>{"use strict";var r=n(7969),o=n(6150),i=n(3934);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",r(e)),n("fromMarkdownExtensions",o(e)),n("toMarkdownExtensions",i(e))}},43:(e,t,n)=>{"use strict";var r,o=n(5108),i=n(2747),u=n(438),s=n(8135);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,o.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",u),n("toMarkdownExtensions",s(e))}},2861:(e,t,n)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(9671)},6464:e=>{"use strict"; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},9314:(e,t,n)=>{"use strict";var r=n(6879).ZP;e.exports=r},6879:(e,t,n)=>{"use strict";var r=n(6008).G,o=function(e,t){this.line=e,this.column=t};var i=function(e,t){this.start=e,this.end=t};var u=function(){var e,t,n,u=function(e){this.indice=[0];var t=/[\r\n\u2028\u2029]/g,n=e.length;for(t.lastIndex=0;;){var r=t.exec(e);if(!r)break;var o=r.index;13===e.charCodeAt(o)&&10===e.charCodeAt(o+1)&&(o+=1);var i=o+1;if(n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n=0;n--)if(!i[n].endIndex&&i[n].ruleId===e){i[n].endIndex=o;break}}));else for(n=i.length-1;n>=0&&(!r||r===i[n].start);n--)i[n].endIndex||(i[n].endIndex=o,r=i[n].start)}}]),e}();t.default=r},7674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTMLComment=function(e){return n.test(e)},t.getValuesFromHTMLComment=function(e){var t=[];return e.replace(n,(function(e,n){t.push(n)})),t},t.parseListConfig=r,t.parseRuleIds=function(e){return Object.keys(r(e))};var n=//g;function r(e){var t={};return(e=e.replace(/\s*,\s*/g,",")).split(/,+/).forEach((function(e){(e=e.trim())&&(t[e]=!0)})),t}},9834:(e,t,n)=>{"use strict";var r,o=n(5252),i=(r=o)&&r.__esModule?r:{default:r},u=n(7674);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={enablingComment:"textlint-enable",disablingComment:"textlint-disable"};e.exports=function(e){var t,n=arguments.length<=1||void 0===arguments[1]?c:arguments[1],r=e.Syntax,o=e.shouldIgnore,a=e.getSource,l=n.enablingComment||c.enablingComment,f=n.disablingComment||c.disablingComment,p=a(),h=new i.default(p.length);return s(t={},r.Html,(function(e){var t=a(e);(0,u.isHTMLComment)(t)&&(0,u.getValuesFromHTMLComment)(t).forEach((function(t){if(-1!==t.indexOf(l)){var n=t.replace(l,"");h.enableReporting(e,(0,u.parseRuleIds)(n))}else if(-1!==t.indexOf(f)){var r=t.replace(f,"");h.disableReporting(e,(0,u.parseRuleIds)(r))}}))})),s(t,r.Comment,(function(e){var t=e.value||"";if(-1!==t.indexOf(l)){var n=t.replace(l,"");h.enableReporting(e,(0,u.parseRuleIds)(n))}else if(-1!==t.indexOf(f)){var r=t.replace(f,"");h.disableReporting(e,(0,u.parseRuleIds)(r))}})),s(t,r.Document+":exit",(function(){h.getIgnoringMessages().forEach((function(e){var t=[e.startIndex,e.endIndex];o(t,{ruleId:e.ruleId||"*"})}))})),t}},5877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2854),o=function(){function e(){this._ignoredRangeList=[]}return Object.defineProperty(e.prototype,"ignoredRanges",{get:function(){return this._ignoredRangeList},enumerable:!1,configurable:!0}),e.prototype.isIgnoredIndex=function(e){return this._ignoredRangeList.some((function(t){var n=t[0],r=t[1];return n<=e&&e0?this.source.positionToIndex({line:u,column:t.column}):this.source.positionToIndex({line:u,column:o})}if(void 0!==t.line&&t.line>0){u=r+t.line;return this.source.positionToIndex({line:u,column:o})}return n[0]},e}();t.SourceLocation=i},1574:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReportHandler=t.RuleHelper=t.IgnoreNodeManager=void 0;var o=r(n(8548));t.RuleHelper=o.default;var i=r(n(5877));t.IgnoreNodeManager=i.default;var u=n(9642);Object.defineProperty(t,"wrapReportHandler",{enumerable:!0,get:function(){return u.wrapReportHandler}})},8548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8822),o=function(){function e(e){this._ruleContext=e}return e.prototype.getParents=function(e){for(var t=[],n=e.parent;null!=n;)t.push(n),n=n.parent;return t},e.prototype.isChildNode=function(e,t){var n=this.getParents(e).map((function(e){return e.type}));return t.some((function(e){return n.some((function(t){return t===e}))}))},e.prototype.isPlainStrNode=function(e){var t;return e.type===r.ASTNodeTypes.Str&&((null===(t=e.parent)||void 0===t?void 0:t.type)===r.ASTNodeTypes.Paragraph&&!this.isChildNode(e,[r.ASTNodeTypes.BlockQuote]))},e}();t.default=o},9642:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReportHandler=void 0;var o=r(n(8548)),i=r(n(5877)),u=n(9254);t.wrapReportHandler=function(e,t,n){var r=t.ignoreNodeTypes||[],s=new i.default,c=new o.default(e),a=e.getSource(),l=new u.SourceLocation(a),f=n((function(t,n){var r=l.toAbsoluteLocation(t,n);if(!s.isIgnoredIndex(r))return e.report(t,n)}));return Object.keys(f).forEach((function(e){var t=f[e];f[e]=function(e){if(s.ignoreChildrenByTypes(e,r),!c.isChildNode(e,r)&&t)return t(e)}})),f}},8822:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{ASTNodeTypes:()=>r}),function(e){e.Document="Document",e.DocumentExit="Document:exit",e.Paragraph="Paragraph",e.ParagraphExit="Paragraph:exit",e.BlockQuote="BlockQuote",e.BlockQuoteExit="BlockQuote:exit",e.ListItem="ListItem",e.ListItemExit="ListItem:exit",e.List="List",e.ListExit="List:exit",e.Header="Header",e.HeaderExit="Header:exit",e.CodeBlock="CodeBlock",e.CodeBlockExit="CodeBlock:exit",e.HtmlBlock="HtmlBlock",e.HtmlBlockExit="HtmlBlock:exit",e.HorizontalRule="HorizontalRule",e.HorizontalRuleExit="HorizontalRule:exit",e.Comment="Comment",e.CommentExit="Comment:exit",e.ReferenceDef="ReferenceDef",e.ReferenceDefExit="ReferenceDef:exit",e.Str="Str",e.StrExit="Str:exit",e.Break="Break",e.BreakExit="Break:exit",e.Emphasis="Emphasis",e.EmphasisExit="Emphasis:exit",e.Strong="Strong",e.StrongExit="Strong:exit",e.Html="Html",e.HtmlExit="Html:exit",e.Link="Link",e.LinkExit="Link:exit",e.Image="Image",e.ImageExit="Image:exit",e.Code="Code",e.CodeExit="Code:exit",e.Delete="Delete",e.DeleteExit="Delete:exit"}(r||(r={}))},2202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=new r.RuleHelper(e),i=e.Syntax,u=e.getSource,s=e.RuleError,c=e.report;return o(t={},i.Str,(function(e){if(!n.isChildNode(e,[i.Link,i.Image,i.BlockQuote])){var t=u(e),r=t.match(/todo:/i);if(r){var o=t.substring(r.index);c(e,new s("Found TODO: '".concat(o,"'"),{index:r.index}))}}})),o(t,i.ListItem,(function(t){var n=e.getSource(t),r=n.match(/\[\s+\]\s/i);r&&c(t,new e.RuleError("Found TODO: '".concat(n,"'"),{index:r.index}))})),t};var r=n(1574);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n{"use strict";var r=n(3368);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);function u(s){var c=e[++t],a=o.call(arguments,0),l=a.slice(1),f=n.length,p=-1;if(s)i(s);else{for(;++p{"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,u=t.call(arguments,0),s=e.length>u.length;s&&u.push(o);try{n=e.apply(null,u)}catch(e){if(s&&r)throw e;return o(e)}s||(n&&"function"==typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},8835:(e,t,n)=>{"use strict";var r=n(8869),o=n(3469),i=n(4470),u=n(8568),s=n(8281),c=n(939);e.exports=function e(){var t,n=[],o=s(),v={},x=-1;return b.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(g("data",t),v[e]=n,b):l.call(v,e)&&v[e]||null;if(e)return g("data",t),v=e,b;return v},b.freeze=k,b.attachers=n,b.use=function(e){var r;if(g("use",t),null==e);else if("function"==typeof e)l.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c(e):o(e)}r&&(v.settings=i(v.settings||{},r));return b;function o(e){c(e.plugins),e.settings&&(r=i(r||{},e.settings))}function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):o(e)}}function c(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{ + */var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},9314:(e,t,n)=>{"use strict";var r=n(6879).ZP;e.exports=r},6879:(e,t,n)=>{"use strict";var r=n(6008).G,o=function(e,t){this.line=e,this.column=t};var i=function(e,t){this.start=e,this.end=t};var u=function(){var e,t,n,u=function(e){this.indice=[0];var t=/[\r\n\u2028\u2029]/g,n=e.length;for(t.lastIndex=0;;){var r=t.exec(e);if(!r)break;var o=r.index;13===e.charCodeAt(o)&&10===e.charCodeAt(o+1)&&(o+=1);var i=o+1;if(n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n=0;n--)if(!i[n].endIndex&&i[n].ruleId===e){i[n].endIndex=o;break}}));else for(n=i.length-1;n>=0&&(!r||r===i[n].start);n--)i[n].endIndex||(i[n].endIndex=o,r=i[n].start)}}]),e}();t.default=r},7674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTMLComment=function(e){return n.test(e)},t.getValuesFromHTMLComment=function(e){var t=[];return e.replace(n,(function(e,n){t.push(n)})),t},t.parseListConfig=r,t.parseRuleIds=function(e){return Object.keys(r(e))};var n=//g;function r(e){var t={};return(e=e.replace(/\s*,\s*/g,",")).split(/,+/).forEach((function(e){(e=e.trim())&&(t[e]=!0)})),t}},9834:(e,t,n)=>{"use strict";var r,o=n(5252),i=(r=o)&&r.__esModule?r:{default:r},u=n(7674);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={enablingComment:"textlint-enable",disablingComment:"textlint-disable"};e.exports=function(e){var t,n=arguments.length<=1||void 0===arguments[1]?a:arguments[1],r=e.Syntax,o=e.shouldIgnore,c=e.getSource,l=n.enablingComment||a.enablingComment,f=n.disablingComment||a.disablingComment,p=c(),h=new i.default(p.length);return s(t={},r.Html,(function(e){var t=c(e);(0,u.isHTMLComment)(t)&&(0,u.getValuesFromHTMLComment)(t).forEach((function(t){if(-1!==t.indexOf(l)){var n=t.replace(l,"");h.enableReporting(e,(0,u.parseRuleIds)(n))}else if(-1!==t.indexOf(f)){var r=t.replace(f,"");h.disableReporting(e,(0,u.parseRuleIds)(r))}}))})),s(t,r.Comment,(function(e){var t=e.value||"";if(-1!==t.indexOf(l)){var n=t.replace(l,"");h.enableReporting(e,(0,u.parseRuleIds)(n))}else if(-1!==t.indexOf(f)){var r=t.replace(f,"");h.disableReporting(e,(0,u.parseRuleIds)(r))}})),s(t,r.Document+":exit",(function(){h.getIgnoringMessages().forEach((function(e){var t=[e.startIndex,e.endIndex];o(t,{ruleId:e.ruleId||"*"})}))})),t}},5877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2854),o=function(){function e(){this._ignoredRangeList=[]}return Object.defineProperty(e.prototype,"ignoredRanges",{get:function(){return this._ignoredRangeList},enumerable:!1,configurable:!0}),e.prototype.isIgnoredIndex=function(e){return this._ignoredRangeList.some((function(t){var n=t[0],r=t[1];return n<=e&&e0?this.source.positionToIndex({line:u,column:t.column}):this.source.positionToIndex({line:u,column:o})}if(void 0!==t.line&&t.line>0){u=r+t.line;return this.source.positionToIndex({line:u,column:o})}return n[0]},e}();t.SourceLocation=i},1574:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReportHandler=t.RuleHelper=t.IgnoreNodeManager=void 0;var o=r(n(8548));t.RuleHelper=o.default;var i=r(n(5877));t.IgnoreNodeManager=i.default;var u=n(9642);Object.defineProperty(t,"wrapReportHandler",{enumerable:!0,get:function(){return u.wrapReportHandler}})},8548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8822),o=function(){function e(e){this._ruleContext=e}return e.prototype.getParents=function(e){for(var t=[],n=e.parent;null!=n;)t.push(n),n=n.parent;return t},e.prototype.isChildNode=function(e,t){var n=this.getParents(e).map((function(e){return e.type}));return t.some((function(e){return n.some((function(t){return t===e}))}))},e.prototype.isPlainStrNode=function(e){var t;return e.type===r.ASTNodeTypes.Str&&((null===(t=e.parent)||void 0===t?void 0:t.type)===r.ASTNodeTypes.Paragraph&&!this.isChildNode(e,[r.ASTNodeTypes.BlockQuote]))},e}();t.default=o},9642:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReportHandler=void 0;var o=r(n(8548)),i=r(n(5877)),u=n(9254);t.wrapReportHandler=function(e,t,n){var r=t.ignoreNodeTypes||[],s=new i.default,a=new o.default(e),c=e.getSource(),l=new u.SourceLocation(c),f=n((function(t,n){var r=l.toAbsoluteLocation(t,n);if(!s.isIgnoredIndex(r))return e.report(t,n)}));return Object.keys(f).forEach((function(e){var t=f[e];f[e]=function(e){if(s.ignoreChildrenByTypes(e,r),!a.isChildNode(e,r)&&t)return t(e)}})),f}},8822:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{ASTNodeTypes:()=>r}),function(e){e.Document="Document",e.DocumentExit="Document:exit",e.Paragraph="Paragraph",e.ParagraphExit="Paragraph:exit",e.BlockQuote="BlockQuote",e.BlockQuoteExit="BlockQuote:exit",e.ListItem="ListItem",e.ListItemExit="ListItem:exit",e.List="List",e.ListExit="List:exit",e.Header="Header",e.HeaderExit="Header:exit",e.CodeBlock="CodeBlock",e.CodeBlockExit="CodeBlock:exit",e.HtmlBlock="HtmlBlock",e.HtmlBlockExit="HtmlBlock:exit",e.HorizontalRule="HorizontalRule",e.HorizontalRuleExit="HorizontalRule:exit",e.Comment="Comment",e.CommentExit="Comment:exit",e.ReferenceDef="ReferenceDef",e.ReferenceDefExit="ReferenceDef:exit",e.Str="Str",e.StrExit="Str:exit",e.Break="Break",e.BreakExit="Break:exit",e.Emphasis="Emphasis",e.EmphasisExit="Emphasis:exit",e.Strong="Strong",e.StrongExit="Strong:exit",e.Html="Html",e.HtmlExit="Html:exit",e.Link="Link",e.LinkExit="Link:exit",e.Image="Image",e.ImageExit="Image:exit",e.Code="Code",e.CodeExit="Code:exit",e.Delete="Delete",e.DeleteExit="Delete:exit"}(r||(r={}))},2202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=new r.RuleHelper(e),i=e.Syntax,u=e.getSource,s=e.RuleError,a=e.report;return o(t={},i.Str,(function(e){if(!n.isChildNode(e,[i.Link,i.Image,i.BlockQuote])){var t=u(e),r=t.match(/todo:/i);if(r){var o=t.substring(r.index);a(e,new s("Found TODO: '".concat(o,"'"),{index:r.index}))}}})),o(t,i.ListItem,(function(t){var n=e.getSource(t),r=n.match(/\[\s+\]\s/i);r&&a(t,new e.RuleError("Found TODO: '".concat(n,"'"),{index:r.index}))})),t};var r=n(1574);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n{"use strict";var r=n(3368);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);(function u(s){var a=e[++t],c=o.call(arguments,0).slice(1),l=n.length,f=-1;if(s)i(s);else{for(;++f{"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,u=t.call(arguments,0),s=e.length>u.length;s&&u.push(o);try{n=e.apply(null,u)}catch(e){if(s&&r)throw e;return o(e)}s||(n&&"function"==typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},8835:(e,t,n)=>{"use strict";var r=n(8869),o=n(3469),i=n(4470),u=n(8568),s=n(8281),a=n(939);e.exports=function e(){var t,n=[],o=s(),v={},x=-1;return b.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(g("data",t),v[e]=n,b):l.call(v,e)&&v[e]||null;if(e)return g("data",t),v=e,b;return v},b.freeze=k,b.attachers=n,b.use=function(e){var r;if(g("use",t),null==e);else if("function"==typeof e)l.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):o(e)}r&&(v.settings=i(v.settings||{},r));return b;function o(e){a(e.plugins),e.settings&&(r=i(r||{},e.settings))}function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):o(e)}}function a(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},8568:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},8145:e=>{"use strict";function t(e){if(null==e)return n;if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r{"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return r(e.position);if(t.call(e,"start")||t.call(e,"end"))return r(e);if(t.call(e,"line")||t.call(e,"column"))return n(e);return""}},6750:e=>{e.exports=function(e){return e}},9294:(e,t,n)=>{"use strict";e.exports=c;var r=n(8145),o=n(6750),i=!0,u="skip",s=!1;function c(e,t,n,c){var a,l;"function"==typeof t&&"function"!=typeof n&&(c=n,n=t,t=null),l=r(t),a=c?-1:1,function e(r,f,p){var h,d="object"==typeof r&&null!==r?r:{};"string"==typeof d.type&&(h="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0,g.displayName="node ("+o(d.type+(h?"<"+h+">":""))+")");return g;function g(){var o,h,d=p.concat(r),g=[];if((!t||l(r,f,p[p.length-1]||null))&&(g=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[i,e];return[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==u)for(h=(c?r.children.length:-1)+a;h>-1&&h{"use strict";e.exports=s;var r=n(9858),o=r.CONTINUE,i=r.SKIP,u=r.EXIT;function s(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=u},350:e=>{"use strict";function t(e){if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return o;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,o=-1;++o{"use strict";e.exports=u;var r=n(350),o="skip",i=!1;function u(e,t,n,u){var c;function a(e,r,l){var f,p=[];return(t&&!c(e,r,l[l.length-1]||null)||(p=s(n(e,l)))[0]!==i)&&e.children&&p[0]!==o?(f=s(function(e,t){var n,r=-1,o=u?-1:1,s=(u?e.length:r)+o;for(;s>r&&s{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,n)=>{"use strict";var r=n(2584),o=n(8662),i=n(6430),u=n(5692);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,a="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(a)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function x(e){return"[object WeakMap]"===l(e)}function b(e){return"[object WeakSet]"===l(e)}function k(e){return"[object ArrayBuffer]"===l(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(k.working?k(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=u,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):u(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},x.working="undefined"!=typeof WeakMap&&x(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(x.working?x(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},k.working="undefined"!=typeof ArrayBuffer&&k(new ArrayBuffer),t.isArrayBuffer=w,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function A(e){return void 0!==C&&(void 0===O.working&&(O.working=O(new C)),O.working?O(e):e instanceof C)}function j(e){return y(e,f)}function P(e){return y(e,p)}function F(e){return y(e,h)}function _(e){return c&&y(e,d)}function I(e){return a&&y(e,g)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=j,t.isStringObject=P,t.isBooleanObject=F,t.isBigIntObject=_,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return j(e)||P(e)||F(e)||_(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,n)=>{var r=n(4155),o=n(5108),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),h(r,e,r.depth)}function f(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function p(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&O(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=h(e,o,r)),o}var i=function(e,t){if(k(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(x(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(i)return i;var u=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(n)),C(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return d(n);if(0===u.length){if(O(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var a,l="",f=!1,p=["{","}"];(y(n)&&(f=!0,p=["[","]"]),O(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return w(n)&&(l=" "+RegExp.prototype.toString.call(n)),S(n)&&(l=" "+Date.prototype.toUTCString.call(n)),C(n)&&(l=" "+d(n)),0!==u.length||f&&0!=n.length?r<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),a=f?function(e,t,n,r,o){for(var i=[],u=0,s=t.length;u=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(a,l,p)):p[0]+l+p[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o,i){var u,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),_(r,o)||(u="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),k(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function x(e){return"number"==typeof e}function b(e){return"string"==typeof e}function k(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===A(e)}function C(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(c.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(5955),t.isArray=y,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=x,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=k,t.isRegExp=w,t.types.isRegExp=w,t.isObject=E,t.isDate=S,t.types.isDate=S,t.isError=C,t.types.isNativeError=C,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){o.log("%s - %s",F(),t.format.apply(t,arguments))},t.inherits=n(5717),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i{"use strict";var r=n(5432);function o(){}e.exports=u,o.prototype=Error.prototype,u.prototype=new o;var i=u.prototype;function u(e,t,n){var o,i,u;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=r(t)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(u=t,t=t.start):u.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=u,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},939:(e,t,n)=>{"use strict";e.exports=n(5905)},5442:(e,t,n)=>{"use strict";var r=n(8064),o=n(4228),i=n(529);e.exports=c;var u={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function c(e){var t,n;if(e){if("string"==typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof c))return new c(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}c.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(c.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(c.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(c.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){l(e,"basename"),a(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(c.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(a(e,"extname"),f(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(c.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),a(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},5905:(e,t,n)=>{"use strict";var r=n(734),o=n(5442);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);this.path&&(o.name=this.path+":"+o.name,o.file=this.path);return o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},8064:(e,t)=>{"use strict";function n(e){var t,n;return r(e),t=47===e.charCodeAt(0),n=function(e,t){var n,r,o="",i=0,u=-1,s=0,c=-1;for(;++c<=e.length;){if(c2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),u=c,s=0;continue}}else if(o.length){o="",i=0,u=c,s=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(u+1,c):o=e.slice(u+1,c),i=c-u-1;u=c,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t),n.length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,o,i,u,s=0,c=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else c<0&&(i=!0,c=n+1);return c<0?"":e.slice(s,c)}if(t===e)return"";o=-1,u=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else o<0&&(i=!0,o=n+1),u>-1&&(e.charCodeAt(n)===t.charCodeAt(u--)?u<0&&(c=n):(u=-1,c=o));s===c?c=o:c<0&&(c=e.length);return e.slice(s,c)},t.dirname=function(e){var t,n,o;if(r(e),!e.length)return".";t=-1,o=e.length;for(;--o;)if(47===e.charCodeAt(o)){if(n){t=o;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,o,i=-1,u=0,s=-1,c=0;r(e),o=e.length;for(;o--;)if(47!==(n=e.charCodeAt(o)))s<0&&(t=!0,s=o+1),46===n?i<0?i=o:1!==c&&(c=1):i>-1&&(c=-1);else if(t){u=o+1;break}if(i<0||s<0||0===c||1===c&&i===s-1&&i===u+1)return"";return e.slice(i,s)},t.join=function(){var e,t=-1;for(;++t{"use strict";t.cwd=function(){return"/"}},529:e=>{ +e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},8568:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},8145:e=>{"use strict";function t(e){if(null==e)return n;if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r{"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return r(e.position);if(t.call(e,"start")||t.call(e,"end"))return r(e);if(t.call(e,"line")||t.call(e,"column"))return n(e);return""}},6750:e=>{e.exports=function(e){return e}},9294:(e,t,n)=>{"use strict";e.exports=a;var r=n(8145),o=n(6750),i=!0,u="skip",s=!1;function a(e,t,n,a){var c,l;"function"==typeof t&&"function"!=typeof n&&(a=n,n=t,t=null),l=r(t),c=a?-1:1,function e(r,f,p){var h,d="object"==typeof r&&null!==r?r:{};"string"==typeof d.type&&(h="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0,g.displayName="node ("+o(d.type+(h?"<"+h+">":""))+")");return g;function g(){var o,h,d=p.concat(r),g=[];if((!t||l(r,f,p[p.length-1]||null))&&(g=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[i,e];return[e]}(n(r,p)),g[0]===s))return g;if(r.children&&g[0]!==u)for(h=(a?r.children.length:-1)+c;h>-1&&h{"use strict";e.exports=s;var r=n(9858),o=r.CONTINUE,i=r.SKIP,u=r.EXIT;function s(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=u},350:e=>{"use strict";function t(e){if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return o;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,o=-1;++o{"use strict";e.exports=s;var r=n(350),o=!0,i="skip",u=!1;function s(e,t,n,o){var s;function c(e,r,l){var f,p=[];return(t&&!s(e,r,l[l.length-1]||null)||(p=a(n(e,l)))[0]!==u)&&e.children&&p[0]!==i?(f=a(function(e,t){var n,r=-1,i=o?-1:1,s=(o?e.length:r)+i;for(;s>r&&s{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,n)=>{"use strict";var r=n(2584),o=n(8662),i=n(6430),u=n(5692);function s(e){return e.call.bind(e)}var a="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(c)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function x(e){return"[object WeakMap]"===l(e)}function b(e){return"[object WeakSet]"===l(e)}function k(e){return"[object ArrayBuffer]"===l(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(k.working?k(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=u,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):u(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},x.working="undefined"!=typeof WeakMap&&x(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(x.working?x(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},k.working="undefined"!=typeof ArrayBuffer&&k(new ArrayBuffer),t.isArrayBuffer=w,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(e){return"[object SharedArrayBuffer]"===l(e)}function A(e){return void 0!==O&&(void 0===C.working&&(C.working=C(new O)),C.working?C(e):e instanceof O)}function j(e){return y(e,f)}function P(e){return y(e,p)}function F(e){return y(e,h)}function I(e){return a&&y(e,d)}function R(e){return c&&y(e,g)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=j,t.isStringObject=P,t.isBooleanObject=F,t.isBigIntObject=I,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return j(e)||P(e)||F(e)||I(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,n)=>{var r=n(4155),o=n(5108),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),h(r,e,r.depth)}function f(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function p(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=h(e,o,r)),o}var i=function(e,t){if(k(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(x(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(i)return i;var u=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(n)),O(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return d(n);if(0===u.length){if(C(n)){var a=n.name?": "+n.name:"";return e.stylize("[Function"+a+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return d(n)}var c,l="",f=!1,p=["{","}"];(y(n)&&(f=!0,p=["[","]"]),C(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return w(n)&&(l=" "+RegExp.prototype.toString.call(n)),S(n)&&(l=" "+Date.prototype.toUTCString.call(n)),O(n)&&(l=" "+d(n)),0!==u.length||f&&0!=n.length?r<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=f?function(e,t,n,r,o){for(var i=[],u=0,s=t.length;u=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,p)):p[0]+l+p[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o,i){var u,s,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(s=e.stylize("[Setter]","special")),F(r,o)||(u="["+o+"]"),s||(e.seen.indexOf(a.value)<0?(s=v(n)?h(e,a.value,null):h(e,a.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),k(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.slice(1,-1),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function x(e){return"number"==typeof e}function b(e){return"string"==typeof e}function k(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===A(e)}function O(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function C(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(a.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(5955),t.isArray=y,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=x,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=k,t.isRegExp=w,t.types.isRegExp=w,t.isObject=E,t.isDate=S,t.types.isDate=S,t.isError=O,t.types.isNativeError=O,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(e=new Date,n=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5717),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i{"use strict";var r=n(5432);function o(){}e.exports=u,o.prototype=Error.prototype,u.prototype=new o;var i=u.prototype;function u(e,t,n){var o,i,u;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=r(t)||"1:1",u={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(u=t,t=t.start):u.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=u,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},939:(e,t,n)=>{"use strict";e.exports=n(5905)},5442:(e,t,n)=>{"use strict";var r=n(8064),o=n(4228),i=n(529);e.exports=a;var u={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function a(e){var t,n;if(e){if("string"==typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof a))return new a(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}a.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(a.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(a.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(a.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(a.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(c(e,"extname"),f(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(a.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},5905:(e,t,n)=>{"use strict";var r=n(734),o=n(5442);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);this.path&&(o.name=this.path+":"+o.name,o.file=this.path);return o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},8064:(e,t)=>{"use strict";function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,o,i,u,s=0,a=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(i){s=r+1;break}}else a<0&&(i=!0,a=r+1);return a<0?"":e.slice(s,a)}if(t===e)return"";o=-1,u=t.length-1;for(;r--;)if(47===e.charCodeAt(r)){if(i){s=r+1;break}}else o<0&&(i=!0,o=r+1),u>-1&&(e.charCodeAt(r)===t.charCodeAt(u--)?u<0&&(a=r):(u=-1,a=o));s===a?a=o:a<0&&(a=e.length);return e.slice(s,a)},t.dirname=function(e){var t,r,o;if(n(e),!e.length)return".";t=-1,o=e.length;for(;--o;)if(47===e.charCodeAt(o)){if(r){t=o;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,o,i=-1,u=0,s=-1,a=0;n(e),o=e.length;for(;o--;)if(47!==(r=e.charCodeAt(o)))s<0&&(t=!0,s=o+1),46===r?i<0?i=o:1!==a&&(a=1):i>-1&&(a=-1);else if(t){u=o+1;break}if(i<0||s<0||0===a||1===a&&i===s-1&&i===u+1)return"";return e.slice(i,s)},t.join=function(){var e,t=-1;for(;++t2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),u=a,s=0;continue}}else if(o.length){o="",i=0,u=a,s=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(u+1,a):o=e.slice(u+1,a),i=a-u-1;u=a,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t),r.length||t||(r=".");r.length&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},t.sep="/"},4228:(e,t)=>{"use strict";t.cwd=function(){return"/"}},529:e=>{ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},6430:(e,t,n)=>{"use strict";var r=n(9804),o=n(3083),i=n(1924),u=i("Object.prototype.toString"),s=n(6410)(),c="undefined"==typeof globalThis?n.g:globalThis,a=o(),l=i("String.prototype.slice"),f={},p=n(882),h=Object.getPrototypeOf;s&&p&&h&&r(a,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var o=h(n);r=p(o,Symbol.toStringTag)}f[e]=r.get}}}));var d=n(5692);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):l(u(e),8,-1))}},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);var e=n(9282),t=n.n(e);class o{constructor(e,t){this.message=e,"object"==typeof t?(this.line=t.line,this.column=t.column,this.index=t.index,this.fix=t.fix):"number"==typeof t&&(this.column=t)}toString(){return JSON.stringify({message:this.message,line:this.line,column:this.column,index:this.index,fix:this.fix})}}var i=n(7187);var u=n(4155);const s=new Map,c=(e,t)=>{s.set(e,t)},a=(e,{loose:t=!1}={})=>{if(!s.has(e)){if(t)return!1;throw new Error(`@textlint/feature-flag:Error: ${e} is not defined.`)}const n=s.get(e);if("boolean"!=typeof n)throw new Error(`flag should be boolean, but it is :${n}`);return n};void 0!==u&&Array.isArray(u.argv)&&-1!==u.argv.indexOf("--experimental")&&c("core.experimental",!0);const l={get experimental(){return a("core.experimental",{loose:!0})},set experimental(e){c("core.experimental",e)},get runningCLI(){return a("core.runningCLI",{loose:!0})},set runningCLI(e){c("core.runningCLI",e)},get runningTester(){return a("core.runningTester",{loose:!0})},set runningTester(e){c("core.runningTester",e)}};function f(e){if(l.runningTester)throw Error(e)}class p{constructor(e){this.source=e}adjust(e){const{node:t,ruleError:n,ruleId:r}=e,o=`[${r}]`||"",i=n;let u;if("number"==typeof i&&(u=i,f(`${o} This is un-document way:\nreport(node, new RuleError("message", index);\n\nPlease use { index }: \n\nreport(node, new RuleError("message", {\n index: paddingLineColumn\n});\n`)),void 0===i.line&&void 0!==i.column&&f(`${o} Have to use a sets with "line" and "column".\nSee FAQ: https://github.com/textlint/textlint/blob/master/docs/faq/line-column-or-index.md \n\nreport(node, new RuleError("message", {\n line: paddingLineNumber,\n column: paddingLineColumn\n});\n\nOR use "index" property insteadof only "column".\n\nreport(node, new RuleError("message", {\n index: paddingLineColumn\n});\n`),(void 0!==i.line||void 0!==i.column)&&void 0!==i.index)throw new Error(`${o} Have to use one of {line, column} or {index}.\nYou should use either one:\n\nuse "line" and "column" property\n\nreport(node, new RuleError("message", {\n line: paddingLineNumber,\n column: paddingLineColumn\n});\n\nOR \n\nuse "index" property\n\nreport(node, new RuleError("message", {\n index: paddingIndexValue\n});\n`);const s=this.toAbsoluteLocation(t,i,u),c=this.toAbsolutePositionFix(t,i);return Object.assign({},s,c)}toAbsoluteLocation(e,t,n){const r=e.range,o=e.loc.start.line,i=e.loc.start.column;if(void 0!==t.index||void 0!==n){const e=r[0],o=n||t.index,i=this.source.indexToPosition(e+o);return{column:i.column,line:i.line}}if(void 0!==t.line&&void 0!==t.column&&t.line>0){const e=o+t.line;return t.column>0?{line:e,column:t.column}:{line:e,column:i}}if(void 0!==t.line&&t.line>0){return{line:o+t.line,column:i}}if(void 0!==t.column&&t.column>0){return{line:o,column:i+t.column}}return{column:i,line:o}}toAbsolutePositionFix(e,n){const r=e.range;return void 0===n.fix?{}:(t().ok("object"==typeof n.fix,"fix should be FixCommand object"),n.fix.isAbsolute?{fix:{range:n.fix.range,text:n.fix.text}}:{fix:{range:[r[0]+n.fix.range[0],r[0]+n.fix.range[1]],text:n.fix.text}})}}var h=n(5108);var d=n(4155);function g(e,t,n){return new Array(t-e.length+1).join(n||" ")+e}const y=Boolean(d.env.TIMING),m=["Rule","Time (ms)","Relative"],v=[function(e,t,n){return e+new Array(t-e.length+1).join(n||" ")},g,g];function x(e){let t=0;const n=Object.keys(e).map((function(n){const r=e[n];return t+=r,[n,r]})).sort((function(e,t){return t[1]-e[1]})).slice(0,10);n.forEach((function(e){e.push((100*e[1]/t).toFixed(1)+"%"),e[1]=e[1].toFixed(3)})),n.unshift(m);const r=[];n.forEach((function(e){for(let t=0;tr[t])&&(r[t]=n)}}));const o=n.map((function(e){return e.map((function(e,t){return v[t](e,r[t])})).join(" | ")}));o.splice(1,0,r.map((function(e,t){return 0!==t&&t!==r.length-1&&e++,v[t](":",e+1,"-")})).join("|")),class{static log(...e){h.log(...e)}static warn(...e){h.warn(...e)}static error(...e){h.error(...e)}}.log(o.join("\n"))}const b=function(){const e=Object.create(null);return y&&d.on("exit",(function(){x(e)})),{time:function(t,n){return void 0===e[t]&&(e[t]=0),function(){let r=d.hrtime();n.apply(null,Array.prototype.slice.call(arguments)),r=d.hrtime(r),e[t]+=1e3*r[0]+r[1]/1e6}},enabled:y}}(),k="lint",w="ignore",E="textlint-rule-",S="textlint-rule-preset-",C=[/^(@.*?\/.*?)\/(@.*?\/.*?)$/,/^(@.*?\/.*?)\/(.*?)$/,/^(.*?)\/(@.*?)$/,/^([^@].*?)\/(.*?)$/],O=(e,t)=>{for(let n=0;n{const{preset:t,rule:n}=(e=>{for(let t=0;tO([E],e),P=e=>O([S,"preset-"],e);function F(t,n){return e.ok(n,"text must be string"),{range:[t,t],text:n,isAbsolute:!1}}function _(t,n){return e.ok(n,"text must be string"),{range:[t,t],text:n,isAbsolute:!0}}const I={none:0,info:0,warning:1,error:2},D=new class{insertTextAfter(e,t){return _(e.range[1],t)}insertTextAfterRange(e,t){return F(e[1],t)}insertTextBefore(e,t){return _(e.range[0],t)}insertTextBeforeRange(e,t){return F(e[0],t)}replaceText(e,t){return{range:e.range,text:t,isAbsolute:!0}}replaceTextRange(e,t){return{range:e,text:t,isAbsolute:!1}}remove(e){return this.replaceText(e,"")}removeRange(e){return this.replaceTextRange(e,"")}};class T{constructor(e){this.report=(e,n,r)=>{if(t().ok(!(e instanceof o),"1st argument should be node. Usage: `report(node, ruleError);`"),t().ok(void 0===r,"3rd argument should not be used. Usage: `report(node, ruleError);`"),n instanceof o)this._report({ruleId:this._ruleId,node:e,severity:this._severityLevel,ruleError:n});else{const t=n,r=t.severity||I.error;this._report({ruleId:this._ruleId,node:e,severity:r,ruleError:t})}},this.getFilePath=()=>this._sourceCode.getFilePath(),this.getSource=(e,t,n)=>this._sourceCode.getSource(e,t,n),this.getConfigBaseDir=()=>this._configBaseDir,this._ruleId=e.ruleId,this._sourceCode=e.sourceCode,this._report=e.report,this._configBaseDir=e.configBaseDir,this._severityLevel=e.severityLevel,Object.freeze(this)}get id(){return this._ruleId}get severity(){return this._severityLevel}get Syntax(){return this._sourceCode.getSyntax()}get RuleError(){return o}get fixer(){return D}}var R=n(1227),L=n.n(R);function B(e){return null!=e&&("object"==typeof e&&("string"==typeof e.type||"string"==typeof e.t))}class M{constructor(e){this.node=e}}const z={},N={};class q{__willStartTraverse(){this.__current=null,this.__worklist=[],this.__leavelist=[]}__execute(e,t){let n;const r=this.__current;if(this.__current=t,e){const r=this.__leavelist[this.__leavelist.length-1].node;if(!t.node)return;n=e.call(this,t.node,r)}return this.__current=r,n}parents(){let e,t;const n=[];for(e=1,t=this.__leavelist.length;e=0;){const t=u[s[c]];if(t)if(Array.isArray(t)){let n=t.length;for(;(n-=1)>=0;)t[n]&&B(t[n])&&(e=new M(t[n]),e&&o.push(e))}else B(t)&&o.push(new M(t))}}}else{if(e=i.pop(),void 0===e)continue;if(n=this.__execute(t.leave,e),n===z)return}}}}const U=new q,H=L()("textlint:core-task");class $ extends class{constructor(){this.events=new i.EventEmitter,this.events.setMaxListeners(0)}listenerCount(e){return this.events.listenerCount(e)}on(e,t){return this.events.on(e,t)}emit(e,...t){const n=[];return this.events.listeners(e).forEach((e=>{n.push(e(...t))})),Promise.all(n)}}{}class V extends i.EventEmitter{constructor(){super(),this.ruleTypeEmitter=new $}static get events(){return{start:"start",message:"message",complete:"complete",error:"error"}}createShouldIgnore(){return t=>{const{ruleId:n,range:r,optional:o}=t;e.ok(void 0!==r[0]&&void 0!==r[1]&&r[0]>=0&&r[1]>=0,"ignoreRange should have actual range: "+r);const i={type:w,ruleId:n,range:r,ignoringRuleId:o.ruleId?A(o.ruleId):"*"};this.emit(V.events.message,i)}}createReporter(e){const t=new p(e);return n=>{const{ruleId:r,severity:i,ruleError:u}=n;H("%s pushReport %s",r,u);const{line:s,column:c,fix:a}=t.adjust(n),l=e.positionToIndex({line:s,column:c}),f={type:k,ruleId:r,message:u.message,index:l,line:s,column:c+1,severity:i,fix:void 0!==a?a:void 0};if(!(u instanceof o)){const e=u;f.data=e}this.emit(V.events.message,f)}}startTraverser(e){this.emit(V.events.start);const t=[],n=this.ruleTypeEmitter;U.traverse(e.ast,{enter(e,r){const o=e.type;if(Object.defineProperty(e,"parent",{value:r}),n.listenerCount(o)>0){const r=n.emit(o,e);t.push(r)}},leave(e){const r=`${e.type}:exit`;if(n.listenerCount(r)>0){const o=n.emit(r,e);t.push(o)}}}),Promise.all(t).then((()=>{this.emit(V.events.complete)})).catch((e=>{this.emit(V.events.error,e)}))}tryToGetRuleObject(e,t,n){try{return e(t,n)}catch(e){throw e instanceof Error&&(e.message=`Error while loading rule '${t.id}': ${e.message}`),e}}tryToGetFilterRuleObject(e,t,n){try{return e(t,n)}catch(e){throw e instanceof Error&&(e.message=`Error while loading filter rule '${t.id}': ${e.message}`),e}}tryToAddListenRule(e,t,n){const r=t instanceof T?this.tryToGetRuleObject(e,t,n):this.tryToGetFilterRuleObject(e,t,n);Object.keys(r).forEach((e=>{this.ruleTypeEmitter.on(e,b.enabled?b.time(t.id,r[e]):r[e])}))}}function W(e){if(void 0===e)return I.error;if("boolean"==typeof e)return e?I.error:I.none;if(e.severity){const t=I[e.severity];if(!(e=>{if(void 0===e)throw new Error('Please set following value to severity:\n"rule-key": {\n "severity": ""\n}');return!0})(t))throw new Error('Please set following value to severity:\n"rule-key": {\n "severity": ""\n}');return t}return I.error}class G{constructor(t){this.shouldIgnore=(t,n={})=>{e.ok(Array.isArray(t)&&"number"==typeof t[0]&&"number"==typeof t[1],"shouldIgnore([number, number]); accept range."),this._ignoreReport({ruleId:this._ruleId,range:t,optional:n})},this.getFilePath=()=>this._sourceCode.getFilePath(),this.getSource=(e,t,n)=>this._sourceCode.getSource(e,t,n),this.getConfigBaseDir=()=>this._configBaseDir,this._ruleId=t.ruleId,this._sourceCode=t.sourceCode,this._ignoreReport=t.ignoreReport,this._configBaseDir=t.configBaseDir,this._severityLevel=t.severityLevel,Object.freeze(this)}get id(){return this._ruleId}get severity(){return this._severityLevel}get Syntax(){return this._sourceCode.getSyntax()}get RuleError(){return o}get report(){return()=>{throw new Error("Filter rule can not report")}}}const Q=L()("textlint:TextLintCoreTask");class J extends V{constructor({config:e,configBaseDir:t,fixableRuleDescriptor:n,filterRuleDescriptors:r,sourceCode:o}){super(),this.config=e,this.configBaseDir=t,this.fixableRuleDescriptor=n,this.filterRuleDescriptors=r,this.sourceCode=o,this._setupRules()}start(){this.startTraverser(this.sourceCode)}_setupRules(){const e=this.sourceCode,t=this.createReporter(e),n=this.createShouldIgnore();Q("fixerRule",this.fixableRuleDescriptor);const r=new T({ruleId:this.fixableRuleDescriptor.id,severityLevel:W(this.fixableRuleDescriptor.normalizedOptions),sourceCode:e,report:t,configBaseDir:this.configBaseDir});this.tryToAddListenRule(this.fixableRuleDescriptor.fixer,r,this.fixableRuleDescriptor.normalizedOptions),Q("filterRules",this.filterRuleDescriptors),this.filterRuleDescriptors.descriptors.forEach((t=>{const r=new G({ruleId:t.id,severityLevel:W(t.normalizedOptions),sourceCode:e,ignoreReport:n,configBaseDir:this.configBaseDir});this.tryToAddListenRule(t.filter,r,t.normalizedOptions)}))}}class K{static process(e){return new Promise(((t,n)=>{const r=[];e.on(V.events.message,(e=>{r.push(e)})),e.on(V.events.error,(e=>{n(e)})),e.on(V.events.complete,(()=>{e.removeAllListeners(),t(r)})),e.start()}))}}var Y=n(9010),Z=n(9314),X=n.n(Z);class ee{constructor({text:t="",ast:n,ext:r,filePath:o}){!function(e){if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}(n),e.ok(r||o,"should be set either of fileExt or filePath."),this.hasBOM=65279===t.charCodeAt(0),this.text=this.hasBOM?t.slice(1):t,this._structuredSource=new(X())(this.text),this.ast=n,this.filePath=o,this.ext=r}getSyntax(){return Y._}getFilePath(){return this.filePath}getSource(e,t,n){const r=this.text;if(e){const o=Math.max(e.range[0]-(t||0),0),i=e.range[1]+(n||0);return r.slice(o,i)}return r}locationToRange(e){return this._structuredSource.locationToRange(e)}rangeToLocation(e){return this._structuredSource.rangeToLocation(e)}positionToIndex(e){return this._structuredSource.positionToIndex(e)}indexToPosition(e){return this._structuredSource.indexToPosition(e)}}const te=L()("textlint:source-code-fixer");function ne(e,t){const n=e.line-t.line;return 0===n?e.column-t.column:n}function re(e,t){te("Applying fixes");const n=e.text,r=[],o=[],i=t.slice(),u=[];let s=n.length,c=e.hasBOM?"\ufeff":"";if(i.forEach((e=>{e&&void 0!==e.fix?u.push(e):r.push(e)})),u.length){te("Found fixes to apply"),u.sort(((e,t)=>t.fix.range[1]-e.fix.range[1]||t.fix.range[0]-e.fix.range[0]));const e=n.split("");return u.forEach((t=>{const n=t.fix;let i=n.range[0];const u=n.range[1];let a=n.text;if(u<=s){i<0&&(c="",i=0),0===i&&"\ufeff"===a[0]&&(c="\ufeff",a=a.slice(1));const n=e.splice(i,u-i,a);s=i;const r=(l=t,JSON.parse(JSON.stringify(l)));r.fix={range:[i,i+a.length],text:n.join("")},o.push(r)}else r.push(t);var l})),{fixed:!0,messages:i,applyingMessages:o.reverse(),remainingMessages:r.sort(ne),output:c+e.join("")}}return te("No fixes to apply"),{fixed:!1,messages:i,applyingMessages:o,remainingMessages:r,output:c+n}}const oe=Object.prototype.hasOwnProperty;function ie(e){return"object"==typeof e&&oe.call(e,"text")&&oe.call(e,"ast")}var ue=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}c((r=r.apply(e,t||[])).next())}))};const se=L()("textlint:fixer-processor");class ce{constructor(e,t){this.processor=e,this.messageProcessManager=t}process({config:t,configBaseDir:n,ruleDescriptors:r,filterRules:o,sourceCode:i}){e.ok(i);const{preProcess:u,postProcess:s}=this.processor.processor(i.ext);let c=i.filePath;const a=[],l=[],f=[];return r.fixableDescriptors.map((e=>r=>ue(this,void 0,void 0,(function*(){const p=yield Promise.resolve(u(r,i.filePath)),h=ie(p),d=h?p.text:r,g=h?p.ast:p,y=new ee({text:d,ast:g,filePath:c,ext:i.ext}),m=new J({config:t,fixableRuleDescriptor:e,filterRuleDescriptors:o,sourceCode:y,configBaseDir:n});return yield K.process(m).then((e=>ue(this,void 0,void 0,(function*(){const t=yield Promise.resolve(s(e,i.filePath)),n={messages:this.messageProcessManager.process(t.messages),filePath:t.filePath?t.filePath:``};c=n.filePath;const o=re(y,n.messages);return Array.prototype.push.apply(a,o.applyingMessages),Array.prototype.push.apply(l,o.remainingMessages),Array.prototype.push.apply(f,o.messages),o.fixed?o.output:r}))))})))).reduce(((e,t)=>e.then((e=>t(e)))),Promise.resolve(i.text)).then((e=>(se(`Finish Processing: ${c}`),se(`applyingMessages: ${a.length}`),se(`remainingMessages: ${l.length}`),{filePath:c||``,output:e,messages:f,applyingMessages:a,remainingMessages:l})))}}class ae extends V{constructor({config:e,configBaseDir:t,ruleDescriptors:n,filterRuleDescriptors:r,sourceCode:o}){super(),this.config=e,this.configBaseDir=t,this.ruleDescriptors=n,this.filterRuleDescriptors=r,this.sourceCode=o,this._setupRules()}start(){this.startTraverser(this.sourceCode)}_setupRules(){const e=this.sourceCode,t=this.createReporter(e),n=this.createShouldIgnore();this.ruleDescriptors.lintableDescriptors.forEach((n=>{const r=n.normalizedOptions,o=new T({ruleId:n.id,severityLevel:W(r),sourceCode:e,report:t,configBaseDir:this.configBaseDir});this.tryToAddListenRule(n.linter,o,r)})),this.filterRuleDescriptors.descriptors.forEach((t=>{const r=new G({ruleId:t.id,sourceCode:e,ignoreReport:n,configBaseDir:this.configBaseDir,severityLevel:W(t.normalizedOptions)});this.tryToAddListenRule(t.filter,r,t.normalizedOptions)}))}}var le=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}c((r=r.apply(e,t||[])).next())}))};class fe{constructor(e,t){this.processor=e,this.messageProcessManager=t}process({config:t,configBaseDir:n,ruleDescriptors:r,filterRuleDescriptors:o,sourceCode:i}){const{preProcess:u,postProcess:s}=this.processor.processor(i.ext);e.ok("function"==typeof u&&"function"==typeof s,"processor should implement {preProcess, postProcess}");const c=new ae({config:t,ruleDescriptors:r,filterRuleDescriptors:o,sourceCode:i,configBaseDir:n});return K.process(c).then((t=>le(this,void 0,void 0,(function*(){const n=yield Promise.resolve(s(t,i.filePath));return n.messages=this.messageProcessManager.process(n.messages),null==n.filePath&&(n.filePath=``),e.ok(n.filePath&&n.messages.length>=0,"postProcess should return { messages, filePath } "),n}))))}}class pe{constructor(e){this._preProcessors=e||[],this._processors=[]}add(e){this._processors.push(e)}remove(e){const t=this._processors.indexOf(e);-1!==t&&this._processors.splice(t,1)}process(e){const t=e;if(0===this._preProcessors.length)throw new Error("pre process should be > 0");const n=this._preProcessors.reduce(((e,t)=>t(e)),t);return 0===this._processors.length?n:this._processors.reduce(((e,t)=>t(e)),n)}}function he(e=[]){const t=e.filter((e=>e.type===k)),n=e.filter((e=>e.type===w));return t.filter((e=>!n.some((t=>{const n=((e,t)=>{const[n,r]=t;return n<=e&&e<=r})(e.index,t.range);return n&&t.ignoringRuleId?"*"===t.ignoringRuleId||e.ruleId===t.ignoringRuleId:n}))))}function de(e=[]){return e.filter(((t,n)=>!e.slice(n+1).some((e=>{return r=e,(n=t).index===r.index&&n.severity===r.severity&&n.message===r.message;var n,r}))))}function ge(e=[]){return e.filter((e=>e.severity===I.error))}function ye(e=[]){return e}function me(e){return e.sort((function(e,t){const n=e.line-t.line;return 0===n?e.column-t.column:n}))}function ve(e){return"function"==typeof e.linter||"function"==typeof e}function xe(e){return"function"==typeof e.fixer&&ve(e)}function be(e,t=""){if(void 0===e)throw new Error(`Definition of rule '${t}' was not found.`);if(!ve(n=e)&&!xe(n))throw new Error(`Definition of rule '${t}' was not rule module.\nRule should export function:\nmodule.exports = function(context){\n // Your rule\n};`);var n}var ke=n(251),we=n.n(ke);class Ee{constructor(e){this.kernelFilterRule=e}get id(){return this.kernelFilterRule.ruleId}get rule(){return this.kernelFilterRule.rule}get enabled(){return!1!==this.rawOptions}get filter(){return function(e){if("function"==typeof e)return e;throw new Error("Not found filter function in the ruleCreator")}(this.rule)}get normalizedOptions(){const e={};return"boolean"==typeof this.kernelFilterRule.options||void 0===this.kernelFilterRule.options?e:this.kernelFilterRule.options}get rawOptions(){return this.kernelFilterRule.options}equals(e){return this.rule===e.rule&&we()(this.normalizedOptions,e.normalizedOptions,{strict:!0})}toKernel(){return this.kernelFilterRule}}const Se=e=>{const t=[];return e.forEach((e=>{t.some((t=>t.equals(e)))||t.push(e)})),t};class Ce{constructor(e=[]){this.ruleDescriptorList=e}toKernelFilterRulesFormat(){return this.withoutDuplicated().descriptors.map((e=>e.toKernel()))}get descriptors(){return this.ruleDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.ruleDescriptorList}withoutDuplicated(){const e=Se(this.ruleDescriptorList);return new Ce(e)}}class Oe{constructor(e){this.textlintKernelRule=e,be(e.rule,e.ruleId)}get id(){return this.textlintKernelRule.ruleId}get rule(){return this.textlintKernelRule.rule}get enabled(){return!1!==this.rawOptions}get linter(){return function(e){if("function"==typeof e.linter)return e.linter;if("function"==typeof e)return e;throw new Error("Not found linter function in the ruleCreator")}(this.rule)}get normalizedOptions(){const e={};return"boolean"==typeof this.textlintKernelRule.options||void 0===this.textlintKernelRule.options?e:this.textlintKernelRule.options}get rawOptions(){return this.textlintKernelRule.options}equals(e){return this.rule===e.rule&&we()(this.normalizedOptions,e.normalizedOptions,{strict:!0})}toKernel(){return this.textlintKernelRule}}class Ae extends Oe{get fixer(){return function(e){if(!ve(e))throw new Error("fixer module should have also linter function.");if(xe(e))return e.fixer;throw new Error("Not found fixer function in the ruleCreator")}(this.rule)}}class je{constructor(e=[]){this.ruleDescriptorList=e}toKernelRulesFormat(){return this.withoutDuplicated().lintableDescriptors.map((e=>e.toKernel()))}get lintableDescriptors(){return this.descriptors.filter((e=>e instanceof Oe))}get fixableDescriptors(){return this.descriptors.filter((e=>e instanceof Ae))}get descriptors(){return this.ruleDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.ruleDescriptorList}withoutDuplicated(){const e=Se(this.ruleDescriptorList);return new je(e)}}class Pe{constructor(e=[]){this.pluginDescriptorList=e}get descriptors(){return this.pluginDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.pluginDescriptorList}get availableExtensions(){return this.descriptors.reduce(((e,t)=>e.concat(t.availableExtensions)),[])}findPluginDescriptorWithExt(e){return this.descriptors.find((t=>t.availableExtensions.includes(e)))}withoutDuplicated(){const e=Se(this.pluginDescriptorList);return new Pe(e)}toKernelPluginsFormat(){return this.descriptors.map((e=>e.toKernel()))}}class Fe{constructor(e){if(this.plugin=e,this.plugin=e,!this.plugin.plugin.Processor)throw new Error("Plugin should have Processor property.\nmodule.exports = {\n Processor: class Processor{ ... }\n}\n");this.processor=new e.plugin.Processor(this.normalizedOptions)}get id(){return this.plugin.pluginId}get enabled(){return!1!==this.rawOptions}get availableExtensions(){return(e=>{if("function"==typeof e.availableExtensions)return e.availableExtensions();const t=e.constructor;if("function"==typeof t.availableExtensions)return t.availableExtensions();throw new Error(`Plugin(${e}) should implement availableExtensions() method`)})(this.processor)}get normalizedOptions(){const e={};return"boolean"==typeof this.plugin.options||void 0===this.plugin.options?e:this.plugin.options}get rawOptions(){return this.plugin.options}toKernel(){return this.plugin}equals(e){return this.plugin.plugin===e.plugin.plugin&&we()(this.plugin.options,e.plugin.options,{strict:!0})}}class _e{constructor(e){this.args=e,this.rule=(e=>{const t=e.map((e=>xe(e.rule)?new Ae(e):new Oe(e)));return new je(t)})(e.rules),this.filterRule=(e=>new Ce(e.map((e=>new Ee(e)))))(e.filterRules),this.plugin=(e=>new Pe(e.map((e=>new Fe(e)))))(e.plugins)}get availableExtensions(){return this.plugin.availableExtensions}shallowMerge(e){return new _e(Object.assign(Object.assign({},this.args),e))}findPluginDescriptorWithExt(e){return this.plugin.findPluginDescriptorWithExt(e)}}function Ie(t){e.strictEqual(typeof t,"object"),e.strictEqual(typeof t.type,"string"),e.ok(t.type.length>=1),e.doesNotThrow((function(){JSON.parse(JSON.stringify(t))})),null!==t.children&&void 0!==t.children&&(e.ok(Array.isArray(t.children)),t.children.forEach(Ie)),null!==t.value&&void 0!==t.value&&e.strictEqual(typeof t.value,"string");const n=t.position;if(null!=n){e.strictEqual(typeof n,"object");const t=n.start,r=n.indent,o=n.end;null!=t&&(e.strictEqual(typeof t,"object"),null!==t.line&&void 0!==t.line&&(e.strictEqual(typeof t.line,"number"),e.ok(t.line>=0)),null!==t.column&&void 0!==t.column&&(e.strictEqual(typeof t.column,"number"),e.ok(t.column>=0)),null!==t.offset&&void 0!==t.offset&&(e.strictEqual(typeof t.offset,"number"),e.ok(t.offset>=0))),null!=o&&(e.strictEqual(typeof o,"object"),null!==o.line&&void 0!==o.line&&(e.strictEqual(typeof o.line,"number"),e.ok(o.line>=0)),null!==o.column&&void 0!==o.column&&(e.strictEqual(typeof o.column,"number"),e.ok(o.column>=0)),null!==o.offset&&void 0!==o.offset&&(e.strictEqual(typeof o.offset,"number"),e.ok(o.offset>=0))),null!=r&&(e.ok(Array.isArray(r)),r.forEach((function(t){e.strictEqual(typeof t,"number"),e.ok(t>=0)})))}}const De=L()("textlint/ast-tester"),Te=({node:e,message:t})=>`${t}\n${JSON.stringify(e,null,4)}`;function Re(e){try{Le(e)}catch(e){return De("This is not TxtAST",e),!1}return!0}function Le(t){Ie(t),e.strictEqual(typeof t,"object",Te({message:"invalid node: node should be object",node:t})),e.strictEqual(typeof t.type,"string",Te({message:"invalid type: type should be string",node:t})),e.ok(t.type.length>=1,Te({message:"invalid type: type is empty string",node:t})),e.doesNotThrow((function(){JSON.parse(JSON.stringify(t))}),Te({message:"invalid node: node should be serializable",node:t})),null!==t.children&&void 0!==t.children&&(e.ok(Array.isArray(t.children),Te({message:"invalid children: children should be an array",node:t})),t.children.forEach(Le)),null!==t.value&&void 0!==t.value&&e.strictEqual(typeof t.value,"string",Te({message:"invalid value: value should be string",node:t})),e.ok(null!==t.raw&&void 0!==t.raw,Te({message:"invalid raw: raw is undefined",node:t})),e.strictEqual(typeof t.raw,"string",Te({message:"invalid raw: raw is not string",node:t}));const n=t.loc;e.ok(null!=n,Te({message:"invalid loc: node.loc is undefined",node:t})),e.strictEqual(typeof n,"object",Te({message:"invalid loc: node.loc should be object. it should have { start, end } property",node:t}));const r=n.start,o=n.end;null!=r&&(e.strictEqual(typeof r,"object"),null!==r.line&&void 0!==r.line&&(e.strictEqual(typeof r.line,"number"),e.ok(r.line>=0)),null!==r.column&&void 0!==r.column&&(e.strictEqual(typeof r.column,"number"),e.ok(r.column>=0)),null!==r.offset&&void 0!==r.offset&&(e.strictEqual(typeof r.offset,"number"),e.ok(r.offset>=0))),null!=o&&(e.strictEqual(typeof o,"object"),null!==o.line&&void 0!==o.line&&(e.strictEqual(typeof o.line,"number"),e.ok(o.line>=0)),null!==o.column&&void 0!==o.column&&(e.strictEqual(typeof o.column,"number"),e.ok(o.column>=0)),null!==o.offset&&void 0!==o.offset&&(e.strictEqual(typeof o.offset,"number"),e.ok(o.offset>=0)));const i=t.range;e.ok(null!=i,Te({message:"invalid range: range should be an array",node:t})),e.ok(Array.isArray(i),Te({message:"invalid range: range should be an array",node:t})),i.forEach((function(n){e.strictEqual(typeof n,"number",Te({message:"invalid index: index should be number",node:t})),e.ok(n>=0,Te({message:"invalid index: index >= 0",node:t}))})),e.ok(i[0]<=i[1],Te({message:"invalid range: range[0] should be less than range[1]",node:t}))}var Be=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}c((r=r.apply(e,t||[])).next())}))};const Me=L()("textlint:kernel");function ze(e,t){return e?`${t}\nat ${e}`:t}function Ne(e){return e&&e.__esModule?e.default:e}var qe=function(e){var t=e.rulesObject,n=[];return Object.entries(t).forEach((function(e){var t,r=e[0],o=e[1];(/^preset-/.test(t=r)||/^textlint-rule-preset-/.test(t)||"@"===t[0]&&(-1!==t.indexOf("/preset-")||-1!==t.indexOf("/textlint-rule-preset-")))&&"boolean"!=typeof o?Object.entries(o).forEach((function(e){var t=e[0],o=e[1],i=(e=>{const{preset:t,rule:n}=e;return`${P(t)}/${j(n)}`})({preset:r,rule:t});n.push({ruleId:i,options:o})})):n.push({ruleId:r,options:o})})),{rules:n}},Ue=function(e){var t,n,r,o=qe({rulesObject:null!==(t=e.rules)&&void 0!==t?t:{}}).rules,i=function(e){var t=e.rulesObject,n=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];n.push({ruleId:t,options:r})})),{filterRules:n}}({rulesObject:null!==(n=e.filters)&&void 0!==n?n:{}}).filterRules,u=function(e){var t=e.pluginsObject,n=[];return Array.isArray(t)?t.forEach((function(e){n.push({pluginId:e})})):Object.entries(t).forEach((function(e){var t=e[0],r=e[1];n.push({pluginId:t,options:r})})),{plugins:n}}({pluginsObject:null!==(r=e.plugins)&&void 0!==r?r:{}}).plugins;return{rules:o,plugins:u,filterRules:i}},He=n(5108);const $e=new class{constructor(e={}){this.config=e,this.messageProcessManager=new pe([he]),this.messageProcessManager.add(de),this.messageProcessManager.add(function(e){return e.quiet?ge:ye}(this.config)),this.messageProcessManager.add(me)}lintText(e,t){return Promise.resolve().then((()=>{const n=new _e({rules:t.rules||[],filterRules:t.filterRules||[],plugins:t.plugins||[]});return this._parallelProcess({descriptor:n,text:e,options:t})}))}fixText(e,t){return Promise.resolve().then((()=>{const n=new _e({rules:t.rules||[],filterRules:t.filterRules||[],plugins:t.plugins||[]});return this._sequenceProcess({descriptor:n,options:t,text:e})}))}_parallelProcess({descriptor:t,text:n,options:r}){return Be(this,void 0,void 0,(function*(){const{ext:o,filePath:i,configBaseDir:u}=r,s=t.findPluginDescriptorWithExt(o);if(Me("available extensions: %o",t.availableExtensions),void 0===s)throw new Error(`Not found available plugin for ${o}`);Me("use plugin: %s",s.id);const c=s.processor,{preProcess:a,postProcess:f}=c.processor(o);e.ok("function"==typeof a&&"function"==typeof f,`${s.id} processor should implements {preProcess, postProcess}`);const p=yield Promise.resolve(a(n,i)),h=ie(p),d=h?p.text:n,g=h?p.ast:p;e.ok("string"==typeof d,`${s.id} processor should return correct text`),e.ok("object"==typeof g,`${s.id} processor should return correct AST object`),l.runningTester&&e.ok(Re(g),`${s.id} processor return invalid AST object. Please check out @textlint/ast-tester.\n \nYou can check the validation result with "DEBUG=textlint*" env\n\nSee https://textlint.github.io/docs/plugin.html`);const y=new ee({text:d,ast:g,ext:o,filePath:i}),m=new fe(c,this.messageProcessManager);return yield m.process({config:this.config,ruleDescriptors:t.rule,filterRuleDescriptors:t.filterRule,sourceCode:y,configBaseDir:u}).catch((e=>(e.message=ze(i,e.message),Promise.reject(e))))}))}_sequenceProcess({descriptor:t,text:n,options:r}){return Be(this,void 0,void 0,(function*(){const{ext:o,filePath:i,configBaseDir:u}=r,s=t.findPluginDescriptorWithExt(o);if(Me("available extensions: %o",t.availableExtensions),void 0===s)throw new Error(`Not found available plugin for ${o}`);Me("use plugin: %s",s.id);const c=s.processor,{preProcess:a,postProcess:f}=c.processor(o);e.ok("function"==typeof a&&"function"==typeof f,`${s.id} processor should implements {preProcess, postProcess}`);const p=yield Promise.resolve(a(n,i)),h=ie(p),d=h?p.text:n,g=h?p.ast:p;e.ok("string"==typeof d,`${s.id} processor should return correct text`),e.ok("object"==typeof g,`${s.id} processor should return correct AST object`),l.runningTester&&e.ok(Re(g),`${s.id} processor return invalid AST object. Please check out @textlint/ast-tester.\n \nYou can check the validation result with "DEBUG=textlint*" env\n\nSee https://textlint.github.io/docs/plugin.html`);const y=new ee({text:d,ast:g,ext:o,filePath:i}),m=new ce(c,this.messageProcessManager);return yield m.process({config:this.config,ruleDescriptors:t.rule,filterRules:t.filterRule,sourceCode:y,configBaseDir:u}).catch((e=>(e.message=ze(i,e.message),Promise.reject(e))))}))}},Ve=[].flat(),We=[{ruleId:"no-todo",rule:Ne(n(2202)),options:!0}],Ge=[{ruleId:"comments",rule:Ne(n(9834)),options:!0}],Qe=[{pluginId:"@textlint/text",plugin:Ne(n(559)),options:!0},{pluginId:"@textlint/markdown",plugin:Ne(n(6441)),options:!0}],Je={rules:We.concat(Ve),filterRules:Ge,plugins:Qe};self.addEventListener("message",(e=>{const t=e.data,n=void 0===t.ruleId?Je.rules:Je.rules.filter((e=>e.ruleId===t.ruleId));switch(t.command){case"merge-config":return(e=>{const t=Ue(e);t.rules&&(Je.rules=Je.rules.map((e=>{const n=t.rules.find((t=>t.ruleId===e.ruleId));return{...e,...n}}))),t.filterRules&&(Je.filterRules=Je.filterRules.map((e=>{const n=t.filterRules.find((t=>t.ruleId===e.ruleId));return{...e,...n}}))),t.plugins&&(Je.plugins=Je.plugins.map((e=>{const n=t.plugins.find((t=>t.pluginId===e.pluginId));return{...e,...n}})))})(t.textlintrc);case"lint":return $e.lintText(t.text,{rules:n,filterRules:Je.filterRules,plugins:Je.plugins,filePath:"/path/to/README"+t.ext,ext:t.ext}).then((e=>self.postMessage({command:"lint:result",result:e})));case"fix":return $e.fixText(t.text,{rules:n,filterRules:Je.filterRules,plugins:Je.plugins,filePath:"/path/to/README"+t.ext,ext:t.ext}).then((e=>self.postMessage({command:"fix:result",result:e})));default:He.log("Unknown command: "+t.command)}})),self.postMessage({command:"init",metadata:{name:"editor-script-template",namespace:"https://github.com/textlint/editor-script-template",homepage:"https://github.com/textlint/editor-script-template",version:"1.0.0",config:{filters:{comments:!0},rules:{"no-todo":!0},plugins:{"@textlint/text":!0,"@textlint/markdown":!0}}}})})(),self.textlint=r})(); \ No newline at end of file +e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},6430:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),u=n(7296),s=i("Object.prototype.toString"),a=n(6410)(),c="undefined"==typeof globalThis?n.g:globalThis,l=o(),f=i("String.prototype.slice"),p={},h=Object.getPrototypeOf;a&&u&&h&&r(l,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=u(n,Symbol.toStringTag);if(!r){var o=h(n);r=u(o,Symbol.toStringTag)}p[e]=r.get}}}));var d=n(5692);e.exports=function(e){return!!d(e)&&(a&&Symbol.toStringTag in e?function(e){var t=!1;return r(p,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):f(s(e),8,-1))}},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);var e=n(4155);const t=new Map,o=(e,n)=>{t.set(e,n)},i=(e,{loose:n=!1}={})=>{if(!t.has(e)){if(n)return!1;throw new Error(`@textlint/feature-flag:Error: ${e} is not defined.`)}const r=t.get(e);if("boolean"!=typeof r)throw new Error(`flag should be boolean, but it is :${r}`);return r};void 0!==e&&Array.isArray(e.argv)&&-1!==e.argv.indexOf("--experimental")&&o("core.experimental",!0);const u={get experimental(){return i("core.experimental",{loose:!0})},set experimental(e){o("core.experimental",e)},get runningCLI(){return i("core.runningCLI",{loose:!0})},set runningCLI(e){o("core.runningCLI",e)},get runningTester(){return i("core.runningTester",{loose:!0})},set runningTester(e){o("core.runningTester",e)}};function s(e){if(u.runningTester)throw Error(e)}const a=e=>!("object"!=typeof e||"object"!=typeof e.start||"object"!=typeof e.end||"number"!=typeof e.start.line||Number.isNaN(e.start.line)||"number"!=typeof e.start.column||Number.isNaN(e.start.column)||"number"!=typeof e.end.line||Number.isNaN(e.end.line)||"number"!=typeof e.end.column||Number.isNaN(e.end.column)),c=e=>{return"object"==typeof e&&null!==e&&"type"in e&&"TextlintRuleErrorPaddingLocation"===e.type&&(t=e.range,Array.isArray(t)&&2===t.length||a(e.loc));var t},l=()=>({at(e){if(Number.isNaN(e))throw new Error(`index must be number: ${e}`);return{type:"TextlintRuleErrorPaddingLocation",isAbsolute:!1,range:[e,e+1]}},range(e){if(!Array.isArray(e))throw new Error("range must be array");if(2!==e.length)throw new Error(`range must be [start, end]: ${JSON.stringify(e)}`);if(Number.isNaN(e[0])||Number.isNaN(e[1]))throw new Error(`range must not be NaN: ${JSON.stringify(e)}`);if(e[0]===e[1])throw new Error(`range must not be same: ${JSON.stringify(e)}\n \nProbably, you need to use at() method instead.`);return{type:"TextlintRuleErrorPaddingLocation",isAbsolute:!1,range:e}},loc(e){if(!a(e))throw new Error(`loc must be TextlintRuleErrorPaddingLocation object: ${JSON.stringify(e)}`);return{type:"TextlintRuleErrorPaddingLocation",isAbsolute:!1,loc:e}}});class f{constructor(e,t){this.message=e,"object"==typeof t?((e=>{if("at"in e)throw new Error('RuleError details should not have "loc" property. Please use { padding: locator.at(index) } instead.');if("range"in e)throw new Error('RuleError details should not have "range" property. Please use { padding: locator.range([start, end]) } instead.');if("loc"in e)throw new Error('RuleError details should not have "loc" property. Please use { padding: locator.loc({ start, end }) } instead.');const t="index"in e,n="line"in e||"column"in e,r="padding"in e;if([t,n,r].filter(Boolean).length>1&&s(`RuleError details can not mixed usage: ${JSON.stringify(e)}\n\nYou can not set { index, line, column, padding } at same time. \n`),t)("number"!=typeof e.index||Number.isNaN(e.index))&&s(`index should be number: ${JSON.stringify(e)}`);else{if(n)return"line"in e&&"column"in e||s("line and column should be set both"),("number"!=typeof e.line||Number.isNaN(e.line))&&s(`line should be number: ${JSON.stringify(e)}`),void(("number"!=typeof e.column||Number.isNaN(e.column))&&s(`column should be number: ${JSON.stringify(e)}`));r&&(c(e.padding)||s(`padding should be created locator function: ${JSON.stringify(e)}`))}})(t),this.line=t.line,this.column=t.column,this.index=t.index,this.fix=t.fix,this.padding=t.padding):"number"==typeof t&&(this.column=t)}toString(){return JSON.stringify({message:this.message,line:this.line,column:this.column,index:this.index,fix:this.fix})}}var p,h=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class d{constructor(){p.set(this,new Map)}on(e,t){const n=h(this,p,"f").get(e),r=null!=n?n:new Set;null==r||r.add(t),h(this,p,"f").set(e,r)}emit(e,...t){const n=h(this,p,"f").get(e);if(n)for(const e of n)e(...t)}off(e,t){const n=h(this,p,"f").get(e);if(n)for(const e of n)e===t&&n.delete(t)}removeAllListeners(){h(this,p,"f").clear()}listenerCount(e){var t,n;return null!==(n=null===(t=h(this,p,"f").get(e))||void 0===t?void 0:t.size)&&void 0!==n?n:0}listeners(e){var t;return Array.from(null!==(t=h(this,p,"f").get(e))&&void 0!==t?t:[])}}p=new WeakMap;class g{constructor(){this.events=new d}listenerCount(e){return this.events.listenerCount(e)}on(e,t){return this.events.on(e,t)}emit(e,...t){const n=[];return this.events.listeners(e).forEach((e=>{n.push(e(...t))})),Promise.all(n)}}function y(e,t){if(!e)throw new Error(t)}const m=e=>{const{node:t,ruleError:n}=e;(e=>{const{ruleError:t,ruleId:n}=e,r=`[${n}]`||"",o=t;if("number"==typeof o)throw new Error(`${r} This is un-document way:\nreport(node, new RuleError("message", index);\n\nPlease use { index }: \n\nreport(node, new RuleError("message", {\n index: paddingLineColumn\n});\n`);if(void 0===o.line&&void 0!==o.column&&s(`${r} Have to use a sets with "line" and "column".\nSee FAQ: https://github.com/textlint/textlint/blob/master/docs/faq/line-column-or-index.md \n\nreport(node, new RuleError("message", {\n line: paddingLineNumber,\n column: paddingLineColumn\n});\n\nOR use "index" property insteadof only "column".\n\nreport(node, new RuleError("message", {\n index: paddingLineColumn\n});\n`),(void 0!==o.line||void 0!==o.column)&&void 0!==o.index)throw new Error(`${r} Have to use one of {line, column} or {index}.\nYou should use either one:\n\nuse "line" and "column" property\n\nreport(node, new RuleError("message", {\n line: paddingLineNumber,\n column: paddingLineColumn\n});\n\nOR \n\nuse "index" property\n\nreport(node, new RuleError("message", {\n index: paddingIndexValue\n});\n`);if(void 0!==o.line&&Number.isNaN(o.line))throw new Error("reported { line } is NaN");if(void 0!==o.column&&Number.isNaN(o.column))throw new Error("reported { column } is NaN");if(void 0!==o.index&&Number.isNaN(o.index))throw new Error("reported { index } is NaN");void 0!==o.padding&&y(c(o.padding),"reported { padding } is invalid format.")})(e);const r=(e=>{if("padding"in e&&"object"==typeof e.padding)return e.padding;if(void 0!==e.index){const t=e.index;return{type:"TextlintRuleErrorPaddingLocation",isAbsolute:!1,range:[t,t+1]}}return void 0!==e.line&&void 0!==e.column?{line:Math.max(e.line,0),column:Math.max(e.column,0)}:void 0!==e.line&&e.line>0?{line:Math.max(e.line,0),column:0}:void 0!==e.column&&e.column>0?{line:0,column:Math.max(e.column,0)}:null})(n);return(({source:e,node:t,paddingIR:n})=>{if(!n)return{range:t.range,loc:{start:{line:t.loc.start.line,column:t.loc.start.column+1},end:{line:t.loc.end.line,column:t.loc.end.column+1}}};const r=t.range,o=t.loc.start.line,i=t.loc.start.column;if("line"in n&&"column"in n){const t={line:o+n.line,column:i+n.column},r=e.positionToIndex(t);if(Number.isNaN(r))throw new Error("absoluteIndex is NaN in { line, column }");const u=[r,r+1],s=e.rangeToLocation(u);if(Number.isNaN(s))throw new Error("absoluteLocation is NaN in { line, column }");return{range:u,loc:{start:{line:s.start.line,column:s.start.column+1},end:{line:s.end.line,column:s.end.column+1}}}}if("range"in n){const t=[r[0]+n.range[0],r[0]+n.range[1]],o=e.rangeToLocation(t);if(Number.isNaN(o))throw new Error("absoluteLocation is NaN in { range }");return{range:t,loc:{start:{line:o.start.line,column:o.start.column+1},end:{line:o.end.line,column:o.end.column+1}}}}if("loc"in n){const t={line:o+n.loc.start.line,column:i+n.loc.start.column},r={line:o+n.loc.end.line,column:i+n.loc.end.column},u=e.locationToRange({start:t,end:r});if(Number.isNaN(u[0])||Number.isNaN(u[1]))throw new Error("absoluteLocation is NaN in { loc }");return{range:u,loc:{start:{line:t.line,column:t.column+1},end:{line:r.line,column:r.column+1}}}}return{range:t.range,loc:t.loc}})({source:e.source,node:t,paddingIR:r})};var v=n(5108);class x{static log(...e){v.log(...e)}static warn(...e){v.warn(...e)}static error(...e){v.error(...e)}}var b=n(4155);function k(e,t,n){return new Array(t-e.length+1).join(n||" ")+e}const w=Boolean(b.env.TIMING),E=["Rule","Time (ms)","Relative"],S=[function(e,t,n){return e+new Array(t-e.length+1).join(n||" ")},k,k];function O(e){let t=0;const n=Object.keys(e).map((function(n){const r=e[n];return t+=r,[n,r]})).sort((function(e,t){return t[1]-e[1]})).slice(0,10);n.forEach((function(e){e.push(`${(100*e[1]/t).toFixed(1)}%`),e[1]=e[1].toFixed(3)})),n.unshift(E);const r=[];n.forEach((function(e){for(let t=0;tr[t])&&(r[t]=n)}}));const o=n.map((function(e){return e.map((function(e,t){return S[t](e,r[t])})).join(" | ")}));o.splice(1,0,r.map((function(e,t){return 0!==t&&t!==r.length-1&&e++,S[t](":",e+1,"-")})).join("|")),x.log(o.join("\n"))}const C=function(){const e=Object.create(null);return w&&b.on("exit",(function(){O(e)})),{time:function(t,n){return void 0===e[t]&&(e[t]=0),async function(...r){let o=b.hrtime();await n(...r),o=b.hrtime(o),e[t]+=1e3*o[0]+o[1]/1e6}},enabled:w}}(),A={lint:"lint",ignore:"ignore"},j="textlint-rule-",P="textlint-rule-preset-",F=[/^(@.*?\/.*?)\/(@.*?\/.*?)$/,/^(@.*?\/.*?)\/(.*?)$/,/^(.*?)\/(@.*?)$/,/^([^@].*?)\/(.*?)$/],I=(e,t)=>{for(let n=0;n{const{preset:t,rule:n}=(e=>{for(let t=0;tI([j],e),D=e=>I([P,"preset-"],e);function _(e,t){return y(t,"text must be string"),{range:[e,e],text:t,isAbsolute:!1}}function B(e,t){return y(t,"text must be string"),{range:[e,e],text:t,isAbsolute:!0}}const N={none:0,info:0,warning:1,error:2},L=new class{insertTextAfter(e,t){return B(e.range[1],t)}insertTextAfterRange(e,t){return _(e[1],t)}insertTextBefore(e,t){return B(e.range[0],t)}insertTextBeforeRange(e,t){return _(e[0],t)}replaceText(e,t){return{range:e.range,text:t,isAbsolute:!0}}replaceTextRange(e,t){return{range:e,text:t,isAbsolute:!1}}remove(e){return this.replaceText(e,"")}removeRange(e){return this.replaceTextRange(e,"")}};class M{constructor(e){this.report=(e,t,n)=>{if(y(!(e instanceof f),"1st argument should be node. Usage: `report(node, ruleError);`"),y(void 0===n,"3rd argument should not be used. Usage: `report(node, ruleError);`"),t instanceof f)this._report({ruleId:this._ruleId,node:e,severity:this._severityLevel,ruleError:t});else{const n=t,r=n.severity||N.error;this._report({ruleId:this._ruleId,node:e,severity:r,ruleError:n})}},this.getFilePath=()=>this._sourceCode.getFilePath(),this.getSource=(e,t,n)=>this._sourceCode.getSource(e,t,n),this.getConfigBaseDir=()=>this._configBaseDir,this._ruleId=e.ruleId,this._sourceCode=e.sourceCode,this._report=e.report,this.locator=l(),this._configBaseDir=e.configBaseDir,this._severityLevel=e.severityLevel,Object.freeze(this)}get id(){return this._ruleId}get severity(){return this._severityLevel}get Syntax(){return this._sourceCode.getSyntax()}get RuleError(){return f}get fixer(){return L}}var z=n(1227),q=n.n(z);function $(e){return null!=e&&("object"==typeof e&&("string"==typeof e.type||"string"==typeof e.t))}class U{constructor(e){this.node=e}}const H={},V={};class W{__willStartTraverse(){this.__current=null,this.__worklist=[],this.__leavelist=[]}__execute(e,t){let n;const r=this.__current;if(this.__current=t,e){const r=this.__leavelist[this.__leavelist.length-1].node;if(!t.node)return;n=e.call(this,t.node,r)}return this.__current=r,n}parents(){let e,t;const n=[];for(e=1,t=this.__leavelist.length;e=0;){const t=u[s[a]];if(t)if(Array.isArray(t)){let n=t.length;for(;(n-=1)>=0;)t[n]&&$(t[n])&&(e=new U(t[n]),e&&o.push(e))}else $(t)&&o.push(new U(t))}}}else{if(e=i.pop(),void 0===e)continue;if(n=this.__execute(t.leave,e),n===H)return}}}}const G=new W,J=q()("textlint:core-task");class K extends g{}class Q extends d{static get events(){return{start:"start",message:"message",complete:"complete",error:"error"}}constructor(){super(),this.ruleTypeEmitter=new K}createShouldIgnore(){return e=>{const{ruleId:t,range:n,optional:r}=e;y(void 0!==n[0]&&void 0!==n[1]&&n[0]>=0&&n[1]>=0,"ignoreRange should have actual range: "+n);const o={type:A.ignore,ruleId:t,range:n,ignoringRuleId:r.ruleId?R(r.ruleId):"*"};this.emit(Q.events.message,o)}}createReporter(e){return t=>{const{ruleId:n,node:r,severity:o,ruleError:i}=t,{loc:u,range:s}=m({source:e,ruleId:n,node:r,ruleError:i}),{fix:a}=(({node:e,ruleError:t})=>{const n=e.range;return void 0===t.fix?{}:(y("object"==typeof t.fix,"fix should be FixCommand object"),t.fix.isAbsolute?{fix:{range:t.fix.range,text:t.fix.text}}:{fix:{range:[n[0]+t.fix.range[0],n[0]+t.fix.range[1]],text:t.fix.text}})})({node:r,ruleError:i});J("%s report %s",n,i);const c={type:A.lint,ruleId:n,message:i.message,index:s[0],line:u.start.line,column:u.start.column,range:s,loc:u,severity:o,fix:void 0!==a?a:void 0};if(!(i instanceof f)){const e=i;c.data=e}this.emit(Q.events.message,c)}}startTraverser(e){this.emit(Q.events.start);const t=[],n=this.ruleTypeEmitter;G.traverse(e.ast,{enter(e,r){const o=e.type;if(Object.defineProperty(e,"parent",{value:r}),n.listenerCount(o)>0){const r=n.emit(o,e);t.push(r)}},leave(e){const r=`${e.type}:exit`;if(n.listenerCount(r)>0){const o=n.emit(r,e);t.push(o)}}}),Promise.all(t).then((()=>{this.emit(Q.events.complete)})).catch((e=>{this.emit(Q.events.error,e)}))}tryToGetRuleObject(e,t,n){try{return e(t,n)}catch(e){throw e instanceof Error&&(e.message=`Error while loading rule '${t.id}': ${e.message}`),e}}tryToGetFilterRuleObject(e,t,n){try{return e(t,n)}catch(e){throw e instanceof Error&&(e.message=`Error while loading filter rule '${t.id}': ${e.message}`),e}}tryToAddListenRule(e,t,n){const r=t instanceof M?this.tryToGetRuleObject(e,t,n):this.tryToGetFilterRuleObject(e,t,n);Object.keys(r).forEach((e=>{this.ruleTypeEmitter.on(e,C.enabled?C.time(t.id,r[e]):r[e])}))}}const Y=e=>{if(void 0===e)throw new Error('Please set following value to severity:\n"rule-key": {\n "severity": ""\n}');return!0};function Z(e){if(void 0===e)return N.error;if("boolean"==typeof e)return e?N.error:N.none;if(e.severity){const t=N[e.severity];if(!Y(t))throw new Error('Please set following value to severity:\n"rule-key": {\n "severity": ""\n}');return t}return N.error}class X{constructor(e){this.shouldIgnore=(e,t={})=>{y(Array.isArray(e)&&"number"==typeof e[0]&&"number"==typeof e[1],"shouldIgnore([number, number]); accept range."),this._ignoreReport({ruleId:this._ruleId,range:e,optional:t})},this.getFilePath=()=>this._sourceCode.getFilePath(),this.getSource=(e,t,n)=>this._sourceCode.getSource(e,t,n),this.getConfigBaseDir=()=>this._configBaseDir,this._ruleId=e.ruleId,this._sourceCode=e.sourceCode,this._ignoreReport=e.ignoreReport,this.locator=l(),this._configBaseDir=e.configBaseDir,this._severityLevel=e.severityLevel,Object.freeze(this)}get id(){return this._ruleId}get severity(){return this._severityLevel}get Syntax(){return this._sourceCode.getSyntax()}get RuleError(){return f}get report(){return()=>{throw new Error("Filter rule can not report")}}}const ee=q()("textlint:TextLintCoreTask");class te extends Q{constructor({config:e,configBaseDir:t,fixableRuleDescriptor:n,filterRuleDescriptors:r,sourceCode:o}){super(),this.config=e,this.configBaseDir=t,this.fixableRuleDescriptor=n,this.filterRuleDescriptors=r,this.sourceCode=o,this._setupRules()}start(){this.startTraverser(this.sourceCode)}_setupRules(){const e=this.sourceCode,t=this.createReporter(e),n=this.createShouldIgnore();ee("fixerRule",this.fixableRuleDescriptor);const r=new M({ruleId:this.fixableRuleDescriptor.id,severityLevel:Z(this.fixableRuleDescriptor.normalizedOptions),sourceCode:e,report:t,configBaseDir:this.configBaseDir});this.tryToAddListenRule(this.fixableRuleDescriptor.fixer,r,this.fixableRuleDescriptor.normalizedOptions),ee("filterRules",this.filterRuleDescriptors),this.filterRuleDescriptors.descriptors.forEach((t=>{const r=new X({ruleId:t.id,severityLevel:Z(t.normalizedOptions),sourceCode:e,ignoreReport:n,configBaseDir:this.configBaseDir});this.tryToAddListenRule(t.filter,r,t.normalizedOptions)}))}}class ne{static process(e){return new Promise(((t,n)=>{const r=[];e.on(Q.events.message,(e=>{r.push(e)})),e.on(Q.events.error,(e=>{n(e)})),e.on(Q.events.complete,(()=>{e.removeAllListeners(),t(r)})),e.start()}))}}var re=n(1122),oe=n(3337);class ie{constructor({text:e="",ast:t,ext:n,filePath:r}){!function(e){if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}(t),y(n||r,"should be set either of fileExt or filePath."),this.hasBOM=65279===e.charCodeAt(0),this.text=this.hasBOM?e.slice(1):e,this._structuredSource=new oe.n(this.text),this.ast=t,this.filePath=r,this.ext=n}getSyntax(){return re._}getFilePath(){return this.filePath}getSource(e,t,n){const r=this.text;if(e){const o=Math.max(e.range[0]-(t||0),0),i=e.range[1]+(n||0);return r.slice(o,i)}return r}locationToRange(e){return this._structuredSource.locationToRange(e)}rangeToLocation(e){const t=this._structuredSource.rangeToLocation([e[0],e[1]]);return{start:{line:t.start.line,column:t.start.column},end:{line:t.end.line,column:t.end.column}}}positionToIndex(e){return this._structuredSource.positionToIndex(e)}indexToPosition(e){const t=this._structuredSource.indexToPosition(e);return{line:t.line,column:t.column}}}const ue=q()("textlint:source-code-fixer"),se="\ufeff";function ae(e,t){const n=e.line-t.line;return 0===n?e.column-t.column:n}function ce(e,t){ue("Applying fixes");const n=e.text,r=[],o=[],i=t.slice(),u=[];let s=n.length,a=e.hasBOM?se:"";if(i.forEach((e=>{e&&void 0!==e.fix?u.push(e):r.push(e)})),u.length){ue("Found fixes to apply"),u.sort(((e,t)=>t.fix.range[1]-e.fix.range[1]||t.fix.range[0]-e.fix.range[0]));const e=n.split("");return u.forEach((t=>{const n=t.fix;let i=n.range[0];const u=n.range[1];let c=n.text;if(u<=s){i<0&&(a="",i=0),0===i&&c[0]===se&&(a=se,c=c.slice(1));const n=e.splice(i,u-i,c);s=i;const r=(l=t,JSON.parse(JSON.stringify(l)));r.fix={range:[i,i+c.length],text:n.join("")},o.push(r)}else r.push(t);var l})),{fixed:!0,messages:i,applyingMessages:o.reverse(),remainingMessages:r.sort(ae),output:a+e.join("")}}return ue("No fixes to apply"),{fixed:!1,messages:i,applyingMessages:o,remainingMessages:r,output:a+n}}const le=Object.prototype.hasOwnProperty;function fe(e){return"object"==typeof e&&le.call(e,"text")&&le.call(e,"ast")}const pe=async({preProcess:e,sourceText:t,filePath:n})=>{try{const r=await e(t,n),o=fe(r),i=o?r.text:t;return{text:i,ast:o?r.ast:r}}catch(e){return e instanceof Error?e:new Error(String(e))}},he=q()("textlint:fixer-processor");class de{constructor(e,t){this.processor=e,this.messageProcessManager=t}async process({config:e,configBaseDir:t,ruleDescriptors:n,filterRules:r,sourceCode:o}){y(o);const{preProcess:i,postProcess:u}=this.processor.processor(o.ext);let s=o.filePath;const a=[],c=[],l=[];let f=o.text;for(const p of n.fixableDescriptors){const n=await pe({preProcess:i,sourceText:f,filePath:o.filePath});if(n instanceof Error)throw n;const h=new ie({text:n.text,ast:n.ast,filePath:s,ext:o.ext}),d=new te({config:e,fixableRuleDescriptor:p,filterRuleDescriptors:r,sourceCode:h,configBaseDir:t}),g=await ne.process(d),y=await u(g,o.filePath),m={messages:this.messageProcessManager.process(y.messages),filePath:y.filePath?y.filePath:""};s=m.filePath;const v=ce(h,m.messages);Array.prototype.push.apply(a,v.applyingMessages),Array.prototype.push.apply(c,v.remainingMessages),Array.prototype.push.apply(l,v.messages),v.fixed&&(f=v.output)}return he(`Finish Processing: ${s}`),he(`applyingMessages: ${a.length}`),he(`remainingMessages: ${c.length}`),{filePath:s||"",output:f,messages:l,applyingMessages:a,remainingMessages:c}}}class ge extends Q{constructor({config:e,configBaseDir:t,ruleDescriptors:n,filterRuleDescriptors:r,sourceCode:o}){super(),this.config=e,this.configBaseDir=t,this.ruleDescriptors=n,this.filterRuleDescriptors=r,this.sourceCode=o,this._setupRules()}start(){this.startTraverser(this.sourceCode)}_setupRules(){const e=this.sourceCode,t=this.createReporter(e),n=this.createShouldIgnore();this.ruleDescriptors.lintableDescriptors.forEach((n=>{const r=n.normalizedOptions,o=new M({ruleId:n.id,severityLevel:Z(r),sourceCode:e,report:t,configBaseDir:this.configBaseDir});this.tryToAddListenRule(n.linter,o,r)})),this.filterRuleDescriptors.descriptors.forEach((t=>{const r=new X({ruleId:t.id,sourceCode:e,ignoreReport:n,configBaseDir:this.configBaseDir,severityLevel:Z(t.normalizedOptions)});this.tryToAddListenRule(t.filter,r,t.normalizedOptions)}))}}class ye{constructor(e,t){this.processor=e,this.messageProcessManager=t}async process({config:e,configBaseDir:t,ruleDescriptors:n,filterRuleDescriptors:r,sourceCode:o}){const{preProcess:i,postProcess:u}=this.processor.processor(o.ext);y("function"==typeof i&&"function"==typeof u,"processor should implement {preProcess, postProcess}");const s=new ge({config:e,ruleDescriptors:n,filterRuleDescriptors:r,sourceCode:o,configBaseDir:t}),a=await ne.process(s),c=await u(a,o.filePath);return c.messages=this.messageProcessManager.process(c.messages),null==c.filePath&&(c.filePath=""),y(c.filePath&&c.messages.length>=0,"postProcess should return { messages, filePath } "),c}}class me{constructor(e){this._preProcessors=e||[],this._processors=[]}add(e){this._processors.push(e)}remove(e){const t=this._processors.indexOf(e);-1!==t&&this._processors.splice(t,1)}process(e){const t=e;if(0===this._preProcessors.length)throw new Error("pre process should be > 0");const n=this._preProcessors.reduce(((e,t)=>t(e)),t);return 0===this._processors.length?n:this._processors.reduce(((e,t)=>t(e)),n)}}const ve=({range:e,ignoredRange:t})=>{const[n,r]=t;return n<=e[0]&&e[1]<=r};function xe(e=[]){const t=e.filter((e=>e.type===A.lint)),n=e.filter((e=>e.type===A.ignore));return t.filter((e=>!n.some((t=>{const n=ve({range:e.range,ignoredRange:t.range});return n&&t.ignoringRuleId?"*"===t.ignoringRuleId||e.ruleId===t.ignoringRuleId:n}))))}const be=(e,t)=>e.range[0]===t.range[0]&&e.range[1]===t.range[1]&&e.severity===t.severity&&e.message===t.message;function ke(e=[]){return e.filter(((t,n)=>!e.slice(n+1).some((e=>be(t,e)))))}function we(e=[]){return e.filter((e=>e.severity===N.error))}function Ee(e=[]){return e}function Se(e){return e.sort((function(e,t){const n=e.line-t.line;return 0===n?e.column-t.column:n}))}function Oe(e){return"function"==typeof e.linter||"function"==typeof e}function Ce(e){return"function"==typeof e.fixer&&Oe(e)}function Ae(e,t=""){if(void 0===e)throw new Error(`Definition of rule '${t}' was not found.`);if(!Oe(n=e)&&!Ce(n))throw new Error(`Definition of rule '${t}' was not rule module.\nRule should export function:\nmodule.exports = function(context){\n // Your rule\n};`);var n}var je=n(8367);class Pe{constructor(e){this.kernelFilterRule=e}get id(){return this.kernelFilterRule.ruleId}get rule(){return this.kernelFilterRule.rule}get enabled(){return!1!==this.rawOptions}get filter(){return function(e){if("function"==typeof e)return e;throw new Error("Not found filter function in the ruleCreator")}(this.rule)}get normalizedOptions(){const e={};return"boolean"==typeof this.kernelFilterRule.options||void 0===this.kernelFilterRule.options?e:this.kernelFilterRule.options}get rawOptions(){return this.kernelFilterRule.options}equals(e){return this.rule===e.rule&&(0,je.deepEqual)(this.normalizedOptions,e.normalizedOptions)}toKernel(){return this.kernelFilterRule}toJSON(){return{id:this.id,options:this.normalizedOptions}}}const Fe=e=>{const t=[];return e.forEach((e=>{t.some((t=>t.equals(e)))||t.push(e)})),t};class Ie{constructor(e=[]){this.ruleDescriptorList=e}toKernelFilterRulesFormat(){return this.withoutDuplicated().descriptors.map((e=>e.toKernel()))}get descriptors(){return this.ruleDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.ruleDescriptorList}withoutDuplicated(){const e=Fe(this.ruleDescriptorList);return new Ie(e)}toJSON(){return this.descriptors.map((e=>e.toJSON()))}}class Re{constructor(e){this.textlintKernelRule=e,Ae(e.rule,e.ruleId)}get id(){return this.textlintKernelRule.ruleId}get rule(){return this.textlintKernelRule.rule}get enabled(){return!1!==this.rawOptions}get linter(){return function(e){if("function"==typeof e.linter)return e.linter;if("function"==typeof e)return e;throw new Error("Not found linter function in the ruleCreator")}(this.rule)}get normalizedOptions(){const e={};return"boolean"==typeof this.textlintKernelRule.options||void 0===this.textlintKernelRule.options?e:this.textlintKernelRule.options}get rawOptions(){return this.textlintKernelRule.options}equals(e){return this.rule===e.rule&&(0,je.deepEqual)(this.normalizedOptions,e.normalizedOptions)}toKernel(){return this.textlintKernelRule}toJSON(){return{id:this.id,options:this.normalizedOptions}}}class Te extends Re{get fixer(){return function(e){if(!Oe(e))throw new Error("fixer module should have also linter function.");if(Ce(e))return e.fixer;throw new Error("Not found fixer function in the ruleCreator")}(this.rule)}}class De{constructor(e=[]){this.ruleDescriptorList=e}toKernelRulesFormat(){return this.withoutDuplicated().lintableDescriptors.map((e=>e.toKernel()))}get lintableDescriptors(){return this.descriptors.filter((e=>e instanceof Re))}get fixableDescriptors(){return this.descriptors.filter((e=>e instanceof Te))}get descriptors(){return this.ruleDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.ruleDescriptorList}withoutDuplicated(){const e=Fe(this.ruleDescriptorList);return new De(e)}toJSON(){return this.ruleDescriptorList.map((e=>e.toJSON()))}}class _e{constructor(e=[]){this.pluginDescriptorList=e}get descriptors(){return this.pluginDescriptorList.filter((e=>e.enabled))}get allDescriptors(){return this.pluginDescriptorList}get availableExtensions(){return this.descriptors.reduce(((e,t)=>e.concat(t.availableExtensions)),[])}findPluginDescriptorWithExt(e){return this.descriptors.find((t=>t.availableExtensions.includes(e)))}withoutDuplicated(){const e=Fe(this.pluginDescriptorList);return new _e(e)}toKernelPluginsFormat(){return this.descriptors.map((e=>e.toKernel()))}toJSON(){return this.descriptors.map((e=>e.toJSON()))}}class Be{constructor(e){if(this.plugin=e,this.plugin=e,!this.plugin.plugin.Processor)throw new Error("Plugin should have Processor property.\nmodule.exports = {\n Processor: class Processor{ ... }\n}\n");this.processor=new e.plugin.Processor(this.normalizedOptions)}get id(){return this.plugin.pluginId}get enabled(){return!1!==this.rawOptions}get availableExtensions(){return(e=>{if("function"==typeof e.availableExtensions)return e.availableExtensions();const t=e.constructor;if("function"==typeof t.availableExtensions)return t.availableExtensions();throw new Error(`Plugin(${e}) should implement availableExtensions() method`)})(this.processor)}get normalizedOptions(){const e={};return"boolean"==typeof this.plugin.options||void 0===this.plugin.options?e:this.plugin.options}get rawOptions(){return this.plugin.options}toKernel(){return this.plugin}equals(e){return this.plugin.plugin===e.plugin.plugin&&(0,je.deepEqual)(this.plugin.options,e.plugin.options)}toJSON(){return{id:this.id,options:this.normalizedOptions}}}class Ne{constructor(e){this.args=e,this.rule=(e=>{const t=e.map((e=>Ce(e.rule)?new Te(e):new Re(e)));return new De(t)})(e.rules),this.filterRule=(e=>new Ie(e.map((e=>new Pe(e)))))(e.filterRules),this.plugin=(e=>new _e(e.map((e=>new Be(e)))))(e.plugins),this.configBaseDir=e.configBaseDir}get availableExtensions(){return this.plugin.availableExtensions}shallowMerge(e){return new Ne({...this.args,...e})}concat(e){var t;return new Ne({configBaseDir:null!==(t=e.configBaseDir)&&void 0!==t?t:this.configBaseDir,rules:this.rule.toKernelRulesFormat().concat(e.rule.toKernelRulesFormat()),filterRules:this.filterRule.toKernelFilterRulesFormat().concat(e.filterRule.toKernelFilterRulesFormat()),plugins:this.plugin.toKernelPluginsFormat().concat(e.plugin.toKernelPluginsFormat())})}findPluginDescriptorWithExt(e){return this.plugin.findPluginDescriptorWithExt(e)}toKernelOptions(){return{configBaseDir:this.configBaseDir,rules:this.rule.toKernelRulesFormat(),filterRules:this.filterRule.toKernelFilterRulesFormat(),plugins:this.plugin.toKernelPluginsFormat()}}toJSON(){return{rule:this.rule.toJSON(),filterRule:this.filterRule.toJSON(),plugin:this.plugin.toJSON(),configBaseDir:this.configBaseDir}}}var Le=n(9282);function Me(e){Le.strictEqual(typeof e,"object"),Le.strictEqual(typeof e.type,"string"),Le.ok(e.type.length>=1),Le.doesNotThrow((function(){JSON.parse(JSON.stringify(e))})),null!==e.children&&void 0!==e.children&&(Le.ok(Array.isArray(e.children)),e.children.forEach(Me)),null!==e.value&&void 0!==e.value&&Le.strictEqual(typeof e.value,"string");const t=e.position;if(null!=t){Le.strictEqual(typeof t,"object");const e=t.start,n=t.indent,r=t.end;null!=e&&(Le.strictEqual(typeof e,"object"),null!==e.line&&void 0!==e.line&&(Le.strictEqual(typeof e.line,"number"),Le.ok(e.line>=0)),null!==e.column&&void 0!==e.column&&(Le.strictEqual(typeof e.column,"number"),Le.ok(e.column>=0)),null!==e.offset&&void 0!==e.offset&&(Le.strictEqual(typeof e.offset,"number"),Le.ok(e.offset>=0))),null!=r&&(Le.strictEqual(typeof r,"object"),null!==r.line&&void 0!==r.line&&(Le.strictEqual(typeof r.line,"number"),Le.ok(r.line>=0)),null!==r.column&&void 0!==r.column&&(Le.strictEqual(typeof r.column,"number"),Le.ok(r.column>=0)),null!==r.offset&&void 0!==r.offset&&(Le.strictEqual(typeof r.offset,"number"),Le.ok(r.offset>=0))),null!=n&&(Le.ok(Array.isArray(n)),n.forEach((function(e){Le.strictEqual(typeof e,"number"),Le.ok(e>=0)})))}}const ze=q()("textlint/ast-tester"),qe=({node:e,message:t})=>`${t}\n${JSON.stringify(e,null,4)}`;function $e(e){try{Ue(e)}catch(e){return ze("This is not TxtAST",e),!1}return!0}function Ue(e){Me(e),Le.strictEqual(typeof e,"object",qe({message:"invalid node: node should be object",node:e})),Le.strictEqual(typeof e.type,"string",qe({message:"invalid type: type should be string",node:e})),Le.ok(e.type.length>=1,qe({message:"invalid type: type is empty string",node:e})),Le.doesNotThrow((function(){JSON.parse(JSON.stringify(e))}),qe({message:"invalid node: node should be serializable",node:e})),null!==e.children&&void 0!==e.children&&(Le.ok(Array.isArray(e.children),qe({message:"invalid children: children should be an array",node:e})),e.children.forEach(Ue)),null!==e.value&&void 0!==e.value&&Le.strictEqual(typeof e.value,"string",qe({message:"invalid value: value should be string",node:e})),Le.ok(null!==e.raw&&void 0!==e.raw,qe({message:"invalid raw: raw is undefined",node:e})),Le.strictEqual(typeof e.raw,"string",qe({message:"invalid raw: raw is not string",node:e}));const t=e.loc;Le.ok(null!=t,qe({message:"invalid loc: node.loc is undefined",node:e})),Le.strictEqual(typeof t,"object",qe({message:"invalid loc: node.loc should be object. it should have { start, end } property",node:e}));const n=t.start,r=t.end;null!=n&&(Le.strictEqual(typeof n,"object"),null!==n.line&&void 0!==n.line&&(Le.strictEqual(typeof n.line,"number"),Le.ok(n.line>=0)),null!==n.column&&void 0!==n.column&&(Le.strictEqual(typeof n.column,"number"),Le.ok(n.column>=0)),null!==n.offset&&void 0!==n.offset&&(Le.strictEqual(typeof n.offset,"number"),Le.ok(n.offset>=0))),null!=r&&(Le.strictEqual(typeof r,"object"),null!==r.line&&void 0!==r.line&&(Le.strictEqual(typeof r.line,"number"),Le.ok(r.line>=0)),null!==r.column&&void 0!==r.column&&(Le.strictEqual(typeof r.column,"number"),Le.ok(r.column>=0)),null!==r.offset&&void 0!==r.offset&&(Le.strictEqual(typeof r.offset,"number"),Le.ok(r.offset>=0)));const o=e.range;Le.ok(null!=o,qe({message:"invalid range: range should be an array",node:e})),Le.ok(Array.isArray(o),qe({message:"invalid range: range should be an array",node:e})),o.forEach((function(t){Le.strictEqual(typeof t,"number",qe({message:"invalid index: index should be number",node:e})),Le.ok(t>=0,qe({message:"invalid index: index >= 0",node:e}))})),Le.ok(o[0]<=o[1],qe({message:"invalid range: range[0] should be less than range[1]",node:e}))}const He=q()("textlint:kernel");function Ve(e,t){return e?`${t}\nat ${e}`:t}function We(e){return e&&e.__esModule?e.default:e}var Ge=function(e){var t=e.rulesObject,n=[];return Object.entries(t).forEach((function(e){var t,r=e[0],o=e[1];(/^preset-/.test(t=r)||/^textlint-rule-preset-/.test(t)||"@"===t[0]&&(-1!==t.indexOf("/preset-")||-1!==t.indexOf("/textlint-rule-preset-")))&&"boolean"!=typeof o?Object.entries(o).forEach((function(e){var t=e[0],o=e[1],i=(e=>{const{preset:t,rule:n}=e;return`${D(t)}/${T(n)}`})({preset:r,rule:t});n.push({ruleId:i,options:o})})):n.push({ruleId:r,options:o})})),{rules:n}},Je=function(e){var t,n,r,o=Ge({rulesObject:null!==(t=e.rules)&&void 0!==t?t:{}}).rules,i=function(e){var t=e.rulesObject,n=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];n.push({ruleId:t,options:r})})),{filterRules:n}}({rulesObject:null!==(n=e.filters)&&void 0!==n?n:{}}).filterRules,u=function(e){var t=e.pluginsObject,n=[];return Array.isArray(t)?t.forEach((function(e){n.push({pluginId:e})})):Object.entries(t).forEach((function(e){var t=e[0],r=e[1];n.push({pluginId:t,options:r})})),{plugins:n}}({pluginsObject:null!==(r=e.plugins)&&void 0!==r?r:{}}).plugins;return{rules:o,plugins:u,filterRules:i}},Ke=n(5108);const Qe=new class{constructor(e={}){this.config=e,this.messageProcessManager=new me([xe]),this.messageProcessManager.add(ke),this.messageProcessManager.add(function(e){return e.quiet?we:Ee}(this.config)),this.messageProcessManager.add(Se)}lintText(e,t){return Promise.resolve().then((()=>{const n=new Ne({rules:t.rules||[],filterRules:t.filterRules||[],plugins:t.plugins||[]});return this._parallelProcess({descriptor:n,text:e,options:t})}))}fixText(e,t){return Promise.resolve().then((()=>{const n=new Ne({rules:t.rules||[],filterRules:t.filterRules||[],plugins:t.plugins||[]});return this._sequenceProcess({descriptor:n,options:t,text:e})}))}async _parallelProcess({descriptor:e,text:t,options:n}){const{ext:r,filePath:o,configBaseDir:i}=n,s=e.findPluginDescriptorWithExt(r);if(void 0===s)throw new Error(`Not found available plugin for ${r}`);He("used plugin %j",s.id);const a=s.processor,{preProcess:c,postProcess:l}=a.processor(r);y("function"==typeof c&&"function"==typeof l,`${s.id} processor should implements {preProcess, postProcess}`);const f=await pe({preProcess:c,sourceText:t,filePath:o});if(f instanceof Error)return((e,t)=>({filePath:null!=t?t:"",messages:[{message:e,type:"lint",loc:{start:{line:1,column:0},end:{line:1,column:0}},index:0,line:1,column:0,range:[0,1],severity:2,ruleId:"plugin-error"}]}))(`Failed to parse text by plugin: ${s.id}\n\nPlease report this error with the content to plugin author.\n\n${f.stack} \n`,o);const p=fe(f),h=p?f.text:t,d=p?f.ast:f;y("string"==typeof h,`${s.id} processor should return correct text`),y("object"==typeof d,`${s.id} processor should return correct AST object`),u.runningTester&&y($e(d),`${s.id} processor return invalid AST object. Please check out @textlint/ast-tester.\n \nYou can check the validation result with "DEBUG=textlint*" env\n\nSee https://textlint.github.io/docs/plugin.html`);const g=new ie({text:h,ast:d,ext:r,filePath:o});He("process file %s",o);const m=new ye(a,this.messageProcessManager);return await m.process({config:this.config,ruleDescriptors:e.rule,filterRuleDescriptors:e.filterRule,sourceCode:g,configBaseDir:i}).catch((e=>(e.message=Ve(o,e.message),Promise.reject(e))))}async _sequenceProcess({descriptor:e,text:t,options:n}){const{ext:r,filePath:o,configBaseDir:i}=n,s=e.findPluginDescriptorWithExt(r);if(void 0===s)throw new Error(`Not found available plugin for ${r}`);He("used plugin %j",s.id);const a=s.processor,{preProcess:c,postProcess:l}=a.processor(r);y("function"==typeof c&&"function"==typeof l,`${s.id} processor should implements {preProcess, postProcess}`);const f=await Promise.resolve(c(t,o)),p=fe(f),h=p?f.text:t,d=p?f.ast:f;y("string"==typeof h,`${s.id} processor should return correct text`),y("object"==typeof d,`${s.id} processor should return correct AST object`),u.runningTester&&y($e(d),`${s.id} processor return invalid AST object. Please check out @textlint/ast-tester.\n \nYou can check the validation result with "DEBUG=textlint*" env\n\nSee https://textlint.github.io/docs/plugin.html`);const g=new ie({text:h,ast:d,ext:r,filePath:o});He("process file %s",o);const m=new de(a,this.messageProcessManager);return await m.process({config:this.config,ruleDescriptors:e.rule,filterRules:e.filterRule,sourceCode:g,configBaseDir:i}).catch((e=>(e.message=Ve(o,e.message),Promise.reject(e))))}},Ye={rules:[{ruleId:"no-todo",rule:We(n(2202)),options:!0}],filterRules:[{ruleId:"comments",rule:We(n(9834)),options:!0}],plugins:[{pluginId:"@textlint/text",plugin:We(n(3996)),options:!0},{pluginId:"@textlint/markdown",plugin:We(n(9892)),options:!0}]};self.addEventListener("message",(e=>{const t=e.data,n=void 0===t.ruleId?Ye.rules:Ye.rules.filter((e=>e.ruleId===t.ruleId));switch(t.command){case"merge-config":return(e=>{const t=Je(e);t.rules&&(Ye.rules=Ye.rules.map((e=>{const n=t.rules.find((t=>t.ruleId===e.ruleId));return{...e,...n}}))),t.filterRules&&(Ye.filterRules=Ye.filterRules.map((e=>{const n=t.filterRules.find((t=>t.ruleId===e.ruleId));return{...e,...n}}))),t.plugins&&(Ye.plugins=Ye.plugins.map((e=>{const n=t.plugins.find((t=>t.pluginId===e.pluginId));return{...e,...n}})))})(t.textlintrc);case"lint":return Qe.lintText(t.text,{rules:n,filterRules:Ye.filterRules,plugins:Ye.plugins,filePath:"/path/to/README"+t.ext,ext:t.ext}).then((e=>self.postMessage({command:"lint:result",result:e})));case"fix":return Qe.fixText(t.text,{rules:n,filterRules:Ye.filterRules,plugins:Ye.plugins,filePath:"/path/to/README"+t.ext,ext:t.ext}).then((e=>self.postMessage({command:"fix:result",result:e})));default:Ke.log("Unknown command: "+t.command)}})),self.postMessage({command:"init",metadata:{name:"editor-script-template",namespace:"https://github.com/textlint/editor-script-template",homepage:"https://github.com/textlint/editor-script-template",version:"1.0.0",config:{filters:{comments:!0},rules:{"no-todo":!0},plugins:{"@textlint/text":!0,"@textlint/markdown":!0}}}})})(),self.textlint=r})(); \ No newline at end of file