/*! For license information please see main.2e99d0ff.js.LICENSE.txt */ !function(){var e={1096:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:function(){return ln},contentInitial:function(){return nn},disable:function(){return cn},document:function(){return tn},flow:function(){return on},flowInitial:function(){return rn},insideSpan:function(){return sn},string:function(){return an},text:function(){return un}});var o=n(7787),i=n(6132),a=n(5671),u=n(3144),s=n(7326),l=n(136),c=n(7277);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var h=n(3433),d=n(1120),m=n(9611);var E=n(8814);function T(e,t,n){return T=(0,E.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,m.Z)(o,n.prototype),o},T.apply(null,arguments)}function g(e){var t="function"===typeof Map?new Map:void 0;return g=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return T(e,arguments,(0,d.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,m.Z)(r,e)},g(e)}var v=document.createElement("template");v.innerHTML='\n\n\n';var y=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,a.Z)(this,n),(e=t.call(this)).right="0",e.shadow=e.attachShadow({mode:"open"}),e.shadow.appendChild(e.ownerDocument.importNode(v.content,!0)),e.update(),e}return(0,u.Z)(n,[{key:"setAttr",value:function(e,t){var n=this.shadow.querySelector("svg");/(href)/.test(e.toLocaleLowerCase())?n.lastElementChild.setAttribute("xlink:href",t):/(color|fill)/.test(e.toLocaleLowerCase())?n.firstElementChild.style[e]=t:/(z-index|position|top|left|right|bottom|transform)/.test(e.toLocaleLowerCase())?n.style[e]=t:n.setAttribute(e,t)}},{key:"update",value:function(){var e=this;[].concat((0,h.Z)(this.getAttributeNames()),["right"]).forEach((function(t){var n=e.getAttribute(t)||e[t]||"";e.setAttr(t,n)}))}},{key:"attributeChangedCallback",value:function(e,t,n){t!==n&&this.setAttr(e,n)}}],[{key:"observedAttributes",get:function(){return["style","z-index","target","height","width","href","color","fill","position","top","left","right","bottom","transform"]}}]),n}(g(HTMLElement));customElements.define("github-corners",y);var A=n(2854),k=["size","fixed","bottom","zIndex","className","style","bgColor","color","position"];function C(e){var t=e.size,n=void 0===t?80:t,r=e.fixed,o=void 0!==r&&r,i=e.bottom,a=e.zIndex,u=e.style,s=e.bgColor,l=void 0===s?"#151513":s,c=e.color,h=void 0===c?"#fff":c,d=e.position,m=void 0===d?"right":d,E=p(e,k),T="left"===m?{left:0,right:"initial",transform:"scale(-1, 1)"}:{right:0,left:"initial",transform:"scale(1, 1)"};return i?(T.bottom=0,T.top="initial",T.transform="left"===m?"scale(-1, -1)":"scale(1, -1)"):(T.bottom="initial",T.top=0),(0,A.jsx)("github-corners",f({target:"__blank",width:n,height:n,href:e.href,position:o?"fixed":"absolute","z-index":a,style:u,fill:l,color:h},T,E))}var _=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"render",value:function(){var e=this;return(0,A.jsx)(A.Fragment,{children:o.Children.toArray(this.props.children).map((function(t){return o.isValidElement(t)?o.cloneElement(t,f({},e.props,t.props)):null}))})}}]),n}(o.Component),D=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,o){var i;return(0,a.Z)(this,n),(i=t.call(this,e)).getUrl=function(){return""},i.state=Object.assign({},f({},r,e),o),i}return(0,u.Z)(n,[{key:"render",value:function(){var e=this.state.href;return e?(0,A.jsxs)("a",{href:e,children:[" ",(0,A.jsx)("img",{alt:"",src:this.getUrl()})," "]}):(0,A.jsx)("img",{alt:"",src:this.getUrl()})}}]),n}(o.Component);D.defaultProps={platform:"github",base:"https://img.shields.io"};var b=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"issues"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.property,i=e.user,a=e.repo,u=e.label,s=e.base;return"github"!==n?"":"issues"===t||/^issues-(raw|closed|closed-raw|pr|pr-raw|pr-closed|pr-closed-raw)/.test(t)?u&&("issues"===t||/^issues-(raw|pr|pr-raw)/.test(t||""))?[s,n,t,i,a,u].join("/"):[s,n,t,i,a].join("/"):"issueKind"===t?[s,n,t,"detail",o,i,a].join("/"):""},r}return(0,u.Z)(n)}(D),N=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"languages"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base,u=e.path;return"github"!==n?"":"languages"===t?[a,n,t,"code-size",o,i].join("/"):"repo-size"===t?[a,n,t,o,i].join("/"):"size"===t&&u?[a,n,t,o,i,u].join("/"):""},r}return(0,u.Z)(n)}(D),S=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"downloads",total:!0})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base,u=e.tag,s=e.path,l=e.total;if("github"!==n||!/^(downloads|downloads-pre)/.test(t||""))return"";var c=[a,n,t,o,i];return s&&u?[].concat(c,[u,s]).join("/"):l&&u||"downloads-pre"===t&&u&&l?[].concat(c,[u,"total"]).join("/"):l?[].concat(c,["total"]).join("/"):""},r}return(0,u.Z)(n)}(D),O=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"commits-since"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base,u=e.interval,s=e.variant,l=e.version,c=e.branch;return"github"!==n?"":"commits-since"===t&&l&&c?[a,n,t,o,i,l,c].join("/"):"commit-activity"===t&&u?[a,n,t,u,o,i].join("/"):"variant"===t&&s?[a,n,t,s,o,i].join("/"):"last-commit"===t?c?[a,n,t,o,i,c].join("/"):[a,n,t,o,i].join("/"):t&&/^release-(date|date-pre)/.test(t)?[a,n,t,o,i].join("/"):""},r}return(0,u.Z)(n)}(D),F=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"version-release"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base,u=e.branch,s="";switch(t){case"version-release":s="v/release";break;case"version-tag":s="v/tag";break;case"package-json":s="package-json/v";break;case"manifest-json":s="manifest-json/v";break;case"go-mod":s="go-mod/go-version"}if("github"!==n||!s)return"";var l=[a,n,s,o,i];return/(go-mod|manifest-json|package-json)/.test(t||"")&&u?[].concat(l,[u]).join("/"):l.join("/")},r}return(0,u.Z)(n)}(D),x=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"license"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base;return"github"!==n?"":[a,n,t,o,i].join("/")},r}return(0,u.Z)(n)}(D),I=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"languages-count"})).getUrl=function(){var e=r.state,t=e.base,n=e.platform,o=e.type,i=e.user,a=e.repo,u=e.query,s="";switch(o){case"languages-count":s="languages/count";break;case"languages-top":s="languages/top";break;case"search":s="search"}if("github"!==n||!s)return"";var l=[t,n,s,i,a];return u?[].concat(l,[u]).join("/"):l.join("/")},r}return(0,u.Z)(n)}(D),R=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{platform:"github",type:"followers"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base;return"github"!==n?"":"followers"===t?[a,n,t,o].join("/"):[a,n,t,o,i].join("/")},r}return(0,u.Z)(n)}(D),L=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n)}(_);L.Issues=b,L.Size=N,L.Activity=O,L.Downloads=S,L.Version=F,L.License=x,L.Analysis=I,L.Social=R;var M=L,w=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{type:"github"},{platform:"coveralls"})).getUrl=function(){var e=r.state,t=e.type,n=e.platform,o=e.user,i=e.repo,a=e.base;return"coveralls"!==n?"":[a,n,t,o,i].join("/")},r}return(0,u.Z)(n)}(D),P=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{},{platform:"coveralls"})).getUrl=function(){var e=r.state,t=e.base,n=e.platform,o=e.projectId,i=e.branch;return"coveralls"!==n?"":i?[t,n,o,i].join("/"):[t,"codacy/coverage",o].join("/")},r}return(0,u.Z)(n)}(D),B=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n)}(_);B.Coverages=w,B.Codacy=P;var H=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{type:"version"},{platform:"npm"})).getUrl=function(){var e=r.state,t=e.base,n=e.platform,o=e.type,i=e.scope,a=e.packageName,u=e.dependency,s=e.dependencyScope,l=e.version,c=e.registryUri;if("npm"!==n||!a)return"";var f="",p=[t,n];return"version"===o&&a?(p.push("v"),i&&p.push(i),p.push(a),l&&p.push(l),f=p.join("/"),c&&(f=f+"?registry_uri="+c)):"peer-dependency"===o&&a&&u?(p.push("dependency-version"),i&&p.push(i),f=[].concat(p,[a,"peer",u]).join("/")):"dev-dependency"===o&&a&&u?(p.push("dependency-version"),i&&p.push(i),p.concat([a,"dev"]),s&&p.push(s),p.push(u),f=p.join("/")):a&&u&&(p.concat([a,u]),f=p.join("/")),f},r}return(0,u.Z)(n)}(D),j=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;return(0,a.Z)(this,n),(r=t.call(this,e,{format:"min"},{platform:"npm"})).getUrl=function(){var e=r.state,t=e.base,n=e.platform,o=e.format,i=e.packageName,a=e.scope,u=e.version;if("npm"!==n)return"";var s=[t,"bundlephobia"],l="";return i&&o&&(l=[].concat(s,[o,i]).join("/")),i&&o&&a&&(l=[].concat(s,[o,a,i]).join("/")),i&&o&&a&&u&&(l=[].concat(s,[o,a,i,u]).join("/")),i&&o&&u&&(l=[].concat(s,[o,i,u]).join("/")),l},r}return(0,u.Z)(n)}(D),U=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n)}(_);U.Version=H,U.Size=j;var K=n(9142);function G(e,t,n){return(t=(0,K.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;te.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";var a=-1,u=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),u>-1&&(e.charCodeAt(i)===t.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(J(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){J(e);var t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){var u=e.charCodeAt(n);if(47!==u)r<0&&(t=!0,r=n+1),46===u?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),o=0;o2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=s,u=0;continue}}else if(o.length>0){o="",i=0,a=s,u=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,u=0}else 46===n&&u>-1?u++:u=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function J(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var ee={cwd:function(){return"/"}};function te(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function ne(e){if("string"===typeof e)e=new URL(e);else if(!te(e)){var t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r1?s-1:0),c=1;co.length;l&&o.push(i);try{s=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(s instanceof Promise?s.then(a,i):s instanceof Error?i(s):a(s))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i1?n-1:0),u=1;ui?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice.apply(e,(0,h.Z)(o));else for(n&&e.splice(t,n);a0?(Ne(e,e.length,0,t),e):t}var Oe={}.hasOwnProperty;function Fe(e){for(var t={},n=-1;++nr))return;for(var l,c,f=o.events.length,p=f;p--;)if("exit"===o.events[p][0]&&"chunkFlow"===o.events[p][1].type){if(l){c=o.events[p][1].end;break}l=!0}for(T(a),s=f;st;){var r=i[n];o.containerState=r[1],r[0].exit.call(o,e)}i.length=t}function g(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},Ve={tokenize:function(e,t,n){return Ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var qe={tokenize:function(e,t,n){return function(t){return Ke(t)?Ze(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||je(e)?t(e):n(e)}},partial:!0};function Xe(e){for(var t,n,r,o,i,a,u,s={},l=-1;++l=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};var tt={tokenize:function(e){var t=this,n=e.attempt(qe,(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,r,Ze(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Je,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var nt={resolveAll:at()},rt=it("string"),ot=it("text");function it(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),u;t.consume(e)}function u(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),u)}function s(e){if(null===e)return!0;var t=r[e],o=-1;if(t)for(;++o-1){var u=n[0];"string"===typeof u?n[0]=u.slice(o):n.shift()}a>0&&n.push(e[i].slice(0,a))}return n}(a,e)}function p(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function d(){for(var e;r._index=3&&(null===i||je(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Ke(t)?Ze(e,i,"whitespace")(t):i(t))}}};var ft={name:"list",tokenize:function(e,t,n){var r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){var o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Pe(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ct,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(t)}return n(t)};function u(t){return Pe(t)&&++a<10?(e.consume(t),u):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(qe,r.interrupt?n:l,e.attempt(pt,f,c))}function l(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function c(t){return Ke(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(qe,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ze(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Ke(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ht,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ze(e,e.attempt(ft,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},pt={tokenize:function(e,t,n){var r=this;return Ze(e,(function(e){var o=r.events[r.events.length-1];return!Ke(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ht={tokenize:function(e,t,n){var r=this;return Ze(e,(function(e){var o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var dt={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var i=r.containerState;return i.open||(e.enter("blockQuote",{_container:!0}),i.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Ke(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){var r=this;return function(t){if(Ke(t))return Ze(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(dt,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function mt(e,t,n,r,o,i,a,u,s){var l=s||Number.POSITIVE_INFINITY,c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||we(t))return n(t);return e.enter(r),e.enter(a),e.enter(u),e.enter("chunkString",{contentType:"string"}),d(t)};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||je(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(o){return c||null!==o&&41!==o&&!Ue(o)?c999||null===f||91===f||93===f&&!a||94===f&&!s&&"_hiddenFootnoteSupport"in u.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):je(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||je(t)||s++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!Ke(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Tt(e,t,n,r,o,i){var a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,u;return n(t)};function u(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),u(a)):null===t?n(t):je(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ze(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||je(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:l)}function c(t){return t===a||92===t?(e.consume(t),l):l(t)}}function gt(e,t){var n;return function r(o){if(je(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Ke(o))return Ze(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var yt={name:"definition",tokenize:function(e,t,n){var r,o=this;return function(t){return e.enter("definition"),function(t){return Et.call(o,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return r=vt(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Ue(t)?gt(e,u)(t):u(t)}function u(t){return mt(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(At,l,l)(t)}function l(t){return Ke(t)?Ze(e,c,"whitespace")(t):c(t)}function c(i){return null===i||je(i)?(e.exit("definition"),o.parser.defined.push(r),t(i)):n(i)}}},At={tokenize:function(e,t,n){return function(t){return Ue(t)?gt(e,r)(t):n(t)};function r(t){return Tt(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ke(t)?Ze(e,i,"whitespace")(t):i(t)}function i(e){return null===e||je(e)?t(e):n(e)}},partial:!0};var kt={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),Ze(e,o,"linePrefix",5)(t)};function o(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?u(t):je(t)?e.attempt(Ct,i,u)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||je(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function u(n){return e.exit("codeIndented"),t(n)}}},Ct={tokenize:function(e,t,n){var r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):je(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ze(e,i,"linePrefix",5)(t)}function i(e){var i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):je(e)?o(e):n(e)}},partial:!0};var _t={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Ue(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||je(n)?(e.exit("atxHeading"),t(n)):Ke(n)?Ze(e,i,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function u(t){return null===t||35===t||Ue(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),u)}},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&&Ne(e,i,o-i+1,[["enter",n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},t],["enter",r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var Dt={name:"setextUnderline",tokenize:function(e,t,n){var r,o=this;return function(t){var a,u=o.events.length;for(;u--;)if("lineEnding"!==o.events[u][1].type&&"linePrefix"!==o.events[u][1].type&&"content"!==o.events[u][1].type){a="paragraph"===o.events[u][1].type;break}if(!o.parser.lazy[o.now().line]&&(o.interrupt||a))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===r?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Ke(t)?Ze(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||je(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);var a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};var bt=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Nt=["pre","script","style","textarea"],St={name:"htmlFlow",tokenize:function(e,t,n){var r,o,i,a,u,s=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),o=!0,h):63===a?(e.consume(a),r=3,s.interrupt?t:L):Re(a)?(e.consume(a),i=String.fromCharCode(a),d):n(a)}function c(o){return 45===o?(e.consume(o),r=2,f):91===o?(e.consume(o),r=5,a=0,p):Re(o)?(e.consume(o),r=4,s.interrupt?t:L):n(o)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function p(r){var o="CDATA[";return r===o.charCodeAt(a++)?(e.consume(r),6===a?s.interrupt?t:b:p):n(r)}function h(t){return Re(t)?(e.consume(t),i=String.fromCharCode(t),d):n(t)}function d(a){if(null===a||47===a||62===a||Ue(a)){var u=47===a,l=i.toLowerCase();return u||o||!Nt.includes(l)?bt.includes(i.toLowerCase())?(r=6,u?(e.consume(a),m):s.interrupt?t(a):b(a)):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):o?E(a):T(a)):(r=1,s.interrupt?t(a):b(a))}return 45===a||Le(a)?(e.consume(a),i+=String.fromCharCode(a),d):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:b):n(r)}function E(t){return Ke(t)?(e.consume(t),E):_(t)}function T(t){return 47===t?(e.consume(t),_):58===t||95===t||Re(t)?(e.consume(t),g):Ke(t)?(e.consume(t),T):_(t)}function g(t){return 45===t||46===t||58===t||95===t||Le(t)?(e.consume(t),g):v(t)}function v(t){return 61===t?(e.consume(t),y):Ke(t)?(e.consume(t),v):T(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,A):Ke(t)?(e.consume(t),y):k(t)}function A(t){return t===u?(e.consume(t),u=null,C):null===t||je(t)?n(t):(e.consume(t),A)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ue(t)?v(t):(e.consume(t),k)}function C(e){return 47===e||62===e||Ke(e)?T(e):n(e)}function _(t){return 62===t?(e.consume(t),D):n(t)}function D(t){return null===t||je(t)?b(t):Ke(t)?(e.consume(t),D):n(t)}function b(t){return 45===t&&2===r?(e.consume(t),F):60===t&&1===r?(e.consume(t),x):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),R):!je(t)||6!==r&&7!==r?null===t||je(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),b):(e.exit("htmlFlowData"),e.check(Ot,w,N)(t))}function N(t){return e.check(Ft,S,w)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||je(t)?N(t):(e.enter("htmlFlowData"),b(t))}function F(t){return 45===t?(e.consume(t),L):b(t)}function x(t){return 47===t?(e.consume(t),i="",I):b(t)}function I(t){if(62===t){var n=i.toLowerCase();return Nt.includes(n)?(e.consume(t),M):b(t)}return Re(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),I):b(t)}function R(t){return 93===t?(e.consume(t),L):b(t)}function L(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),L):b(t)}function M(t){return null===t||je(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),M)}function w(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},Ot={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(qe,t,n)}},partial:!0},Ft={tokenize:function(e,t,n){var r=this;return function(t){if(je(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var xt={tokenize:function(e,t,n){var r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},It={name:"codeFenced",tokenize:function(e,t,n){var r,o=this,i={tokenize:function(e,t,n){var i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),Ke(t)?Ze(e,l,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===r?(i++,e.consume(t),c):i>=u?(e.exit("codeFencedFenceSequence"),Ke(t)?Ze(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||je(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,u=0;return function(t){return function(t){var n=o.events[o.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===r?(u++,e.consume(t),s):u<3?n(t):(e.exit("codeFencedFenceSequence"),Ke(t)?Ze(e,l,"whitespace")(t):l(t))}function l(n){return null===n||je(n)?(e.exit("codeFencedFence"),o.interrupt?t(n):e.check(xt,h,g)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||je(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):Ke(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ze(e,f,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),c)}function f(t){return null===t||je(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||je(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===r?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,g,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Ke(t)?Ze(e,E,"linePrefix",a+1)(t):E(t)}function E(t){return null===t||je(t)?e.check(xt,h,g)(t):(e.enter("codeFlowValue"),T(t))}function T(t){return null===t||je(t)?(e.exit("codeFlowValue"),E(t)):(e.consume(t),T)}function g(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var Rt=n(1050),Lt={name:"characterReference",tokenize:function(e,t,n){var r,o,i=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=Le,l(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=Be,l):(e.enter("characterReferenceValue"),r=7,o=Pe,l(t))}function l(u){if(59===u&&a){var s=e.exit("characterReferenceValue");return o!==Le||(0,Rt.T)(i.sliceSerialize(s))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return o(u)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var f=Object.assign({},e[n][1].end),p=Object.assign({},e[c][1].start);zt(f,-u),zt(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Se(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Se(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Se(s,st(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Se(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,s=Se(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Ne(e,n-1,c-n+3,s),c=n+s.length-l-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var hn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dn(e){return e.replace(hn,mn)}function mn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),o=120===r||88===r;return pn(n.slice(o?2:1),o?16:10)}return(0,Rt.T)(n)||e}var En={}.hasOwnProperty,Tn=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:N,autolinkEmail:N,atxHeading:u(J),blockQuote:u(W),characterEscape:N,characterReference:N,codeFenced:u(V),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:u(V,s),codeText:u(q,s),codeTextData:N,data:N,codeFlowValue:N,definition:u(X),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:u($),hardBreakEscape:u(ee),hardBreakTrailing:u(ee),htmlFlow:u(te,s),htmlFlowData:N,htmlText:u(te,s),htmlTextData:N,image:u(ne),label:s,link:u(re),listItem:u(ie),listItemValue:d,listOrdered:u(oe,h),listUnordered:u(oe),paragraph:u(ae),reference:U,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:u(J),strong:u(ue),thematicBreak:u(le)},exit:{atxHeading:c(),atxHeadingSequence:C,autolink:c(),autolinkEmail:Z,autolinkProtocol:Y,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:z,codeFenced:c(g),codeFencedFence:T,codeFencedFenceInfo:m,codeFencedFenceMeta:E,codeFlowValue:S,codeIndented:c(v),codeText:c(R),codeTextData:S,data:S,definition:c(),definitionDestinationString:k,definitionLabelString:y,definitionTitleString:A,emphasis:c(),hardBreakEscape:c(F),hardBreakTrailing:c(F),htmlFlow:c(x),htmlFlowData:S,htmlText:c(I),htmlTextData:S,image:c(M),label:P,labelText:w,lineEnding:O,link:c(L),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:K,resourceDestinationString:B,resourceTitleString:H,resource:j,setextHeading:c(b),setextHeadingLineSequence:D,setextHeadingText:_,strong:c(),thematicBreak:c()}};vn(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:l,exit:f,buffer:s,resume:p,setData:i,getData:a},u=[],c=-1;++c0){var d=r.tokenStack[r.tokenStack.length-1];(d[1]||An).call(r,void 0,d[0])}for(n.position={start:gn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:gn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c55295&&i<57344){var u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(a=String.fromCharCode(i,u),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}var _n=function(e){if(void 0===e||null===e)return Nn;if("string"===typeof e)return function(e){return bn(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?Dn(e):function(e){return bn(t);function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return bn(e);throw new Error("Expected function, string, or object as test")};function Dn(e){for(var t=[],n=-1;++n1?n-1:0),o=1;o":"")+")"})}return f;function f(){var l,c,f,p=[];if((!t||o(a,u,s[s.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,s)),p[0]===Sn))return p;if(a.children&&p[0]!==On)for(c=(r?a.children.length:-1)+i,f=s.concat(a);c>-1&&c-1?n.offset:null}}}var Mn={}.hasOwnProperty;function wn(e){return String(e||"").toUpperCase()}function Pn(e,t){var n,r=String(t.identifier).toUpperCase(),o=Cn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=i+1);var a=e.footnoteCounts[r],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);var s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Bn(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});var a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Hn(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var jn=9,Un=32;function Kn(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,i=[];r;)i.push(Gn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Gn(t.slice(o),o>0,!1)),i.join("")}function Gn(e,t,n){var r=0,o=e.length;if(t)for(var i=e.codePointAt(r);i===jn||i===Un;)r++,i=e.codePointAt(r);if(n)for(var a=e.codePointAt(o-1);a===jn||a===Un;)o--,a=e.codePointAt(o-1);return o>r?e.slice(r,o):""}var zn={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);var i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Pn,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Pn(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return Bn(e,t);var r={src:Cn(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){var n={src:Cn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return Bn(e,t);var r={href:Cn(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){var n={href:Cn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),o=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}for(var l=-1;++l0){var a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=In(t.children[1]),s=Rn(t.children[t.children.length-1]);u.line&&s.line&&(a.position={start:u,end:s}),o.push(a)}var l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length,u=-1,s=[];++u0&&n.push({type:"text",value:"\n"}),n}function Jn(e,t){var n=Qn(e,t),r=n.one(e,null),o=function(e){for(var t=[],n=-1;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(l)}var c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){var f,p=c.children[c.children.length-1];p&&"text"===p.type?p.value+=" ":c.children.push({type:"text",value:" "}),(f=c.children).push.apply(f,s)}else o.push.apply(o,s);var h={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,h),t.push(h)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:Y(Y({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var er=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,o){e.run(Jn(n,t),r,(function(e){o(e)}))}}(e,t):function(e){return function(t){return Jn(t,e)}}(e||t)};var tr=n(2538),nr=n(4188);function rr(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return function(t){xn(t,"element",(function(t,n,r){var o,i=r;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"===typeof n&&(o=!e.allowElement(t,n,i)),o&&"number"===typeof n){var a;if(e.unwrapDisallowed&&t.children)(a=i.children).splice.apply(a,[n,1].concat((0,h.Z)(t.children)));else i.children.splice(n,1);return n}}))}}var or=n(179);function ir(e){var t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var ar=n(3180),ur={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sr=n(4090),lr=n(5652),cr=n(3562),fr=["http","https","mailto","tel"];function pr(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var o=-1;++oo||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}var hr={}.hasOwnProperty,dr=new Set(["table","thead","tbody","tfoot","tr"]);function mr(e,t){for(var n,r=[],o=-1;++o0?o.createElement(m,c,p):o.createElement(m,c)}function Tr(e,t){for(var n=-1,r=0;++n for more info)")),delete Ar[t]}var r=me().use(kn).use(e.remarkPlugins||[]).use(er,Y(Y({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(rr,e),i=new oe;"string"===typeof e.children?i.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var a=r.runSync(r.parse(i),i);if("root"!==a.type)throw new TypeError("Expected a `root` node");var u=o.createElement(o.Fragment,{},mr({options:e,schema:nr.dy,listDepth:0},a));return e.className&&(u=o.createElement("div",{className:e.className},u)),u}kr.propTypes={children:tr.string,className:tr.string,allowElement:tr.func,allowedElements:tr.arrayOf(tr.string),disallowedElements:tr.arrayOf(tr.string),unwrapDisallowed:tr.bool,remarkPlugins:tr.arrayOf(tr.oneOfType([tr.object,tr.func,tr.arrayOf(tr.oneOfType([tr.bool,tr.string,tr.object,tr.func,tr.arrayOf(tr.any)]))])),rehypePlugins:tr.arrayOf(tr.oneOfType([tr.object,tr.func,tr.arrayOf(tr.oneOfType([tr.bool,tr.string,tr.object,tr.func,tr.arrayOf(tr.any)]))])),sourcePos:tr.bool,rawSourcePos:tr.bool,skipHtml:tr.bool,includeElementIndex:tr.bool,transformLinkUri:tr.oneOfType([tr.func,tr.bool]),linkTarget:tr.oneOfType([tr.func,tr.string]),transformImageUri:tr.func,components:tr.object};for(var Cr={tokenize:function(e,t,n){var r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},_r={tokenize:function(e,t,n){var r,o,i;return a;function a(t){return 46===t||95===t?e.check(br,s,u)(t):null===t||Ue(t)||ze(t)||45!==t&&Ge(t)?s(t):(i=!0,e.consume(t),a)}function u(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},Dr={tokenize:function(e,t){var n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}xr[43]=Fr,xr[45]=Fr,xr[46]=Fr,xr[95]=Fr,xr[72]=[Fr,Or],xr[104]=[Fr,Or],xr[87]=[Fr,Sr],xr[119]=[Fr,Sr];var Hr={tokenize:function(e,t,n){var r=this;return Ze(e,(function(e){var o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function jr(){var e;return{document:G({},91,{tokenize:zr,continuation:{tokenize:Yr},exit:Zr}),text:(e={},G(e,91,{tokenize:Gr}),G(e,93,{add:"after",tokenize:Ur,resolveTo:Kr}),e)}}function Ur(e,t,n){for(var r,o=this,i=o.events.length,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);i--;){var u=o.events[i][1];if("labelImage"===u.type){r=u;break}if("gfmFootnoteCall"===u.type||"labelLink"===u.type||"label"===u.type||"image"===u.type||"link"===u.type)break}return function(i){if(!r||!r._balanced)return n(i);var u=vt(o.sliceSerialize({start:r.end,end:o.now()}));if(94!==u.codePointAt(0)||!a.includes(u.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Kr(e,t){for(var n=e.length;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";var r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;var i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice.apply(e,[n,e.length-n+1].concat(u)),e}function Gr(e,t,n){var r,o=this,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(u){if(a>999||93===u&&!r||null===u||91===u||Ue(u))return n(u);if(93===u){e.exit("chunkString");var c=e.exit("gfmFootnoteCallString");return i.includes(vt(o.sliceSerialize(c)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return Ue(u)||(r=!0),a++,e.consume(u),92===u?l:s}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function zr(e,t,n){var r,o,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(u>999||93===t&&!o||null===t||91===t||Ue(t))return n(t);if(93===t){e.exit("chunkString");var a=e.exit("gfmFootnoteDefinitionLabelString");return r=vt(i.sliceSerialize(a)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ue(t)||(o=!0),u++,e.consume(t),92===t?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),u++,l):l(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),Ze(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Yr(e,t,n){return e.check(qe,t,e.attempt(Hr,t,n))}function Zr(e){e.exit("gfmFootnoteDefinition")}function Qr(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,r){var o=this.previous,i=this.events,a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),u(t)};function u(i){var s=Kt(o);if(126===i)return a>1?r(i):(e.consume(i),a++,u);if(a<2&&!t)return r(i);var l=e.exit("strikethroughSequenceTemporary"),c=Kt(i);return l._open=!c||2===c&&Boolean(s),l._close=!s||2===s&&Boolean(c),n(i)}},resolveAll:function(e,t){var n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push((0,h.Z)(e)),e.length=0;for(var r=n.pop();r;)e.push.apply(e,(0,h.Z)(r)),r=n.pop();this.map.length=0}}}]),e}();function Vr(e,t){for(var n=!1,r=[];t-1;){var r=o.events[t][1].type;if("lineEnding"!==r&&"linePrefix"!==r)break;t--}var i=t>-1?o.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?y:u;if(a===y&&o.parser.lazy[o.now().line])return n(e);return a(e)};function u(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return r=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):je(t)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):Ke(t)?Ze(e,s,"whitespace")(t):(a+=1,r&&(r=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||Ue(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:l)}function c(t){return 92===t||124===t?(e.consume(t),l):l(t)}function f(t){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,Ke(t)?Ze(e,p,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?d(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return Ke(t)?Ze(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||je(t)?g(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),E(t)):v(t)}function E(t){return 45===t?(e.consume(t),E):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(t))}function T(t){return Ke(t)?Ze(e,g,"whitespace")(t):g(t)}function g(n){return 124===n?p(n):(null===n||je(n))&&r&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function y(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||je(n)?(e.exit("tableRow"),t(n)):Ke(n)?Ze(e,A,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Ue(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}},resolveAll:function(e,t){var n,r,o,i=-1,a=!0,u=0,s=[0,0,0,0],l=[0,0,0,0],c=!1,f=0,p=new Wr;for(;++in[2]+1){var h=n[2]+1,d=n[3]-n[2]-1;e.add(h,d,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return void 0!==o&&(i.end=Object.assign({},Jr(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function $r(e,t,n,r,o){var i=[],a=Jr(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Jr(e,t){var n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}var eo={tokenize:function(e,t,n){var r=this;return function(t){if(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 Ue(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(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return je(r)?t(r):Ke(r)?e.check({tokenize:no},t,n)(r):n(r)}}},to={text:G({},91,eo)};function no(e,t,n){return Ze(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function ro(e,t){var n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");for(var r=0,o=n.indexOf(t);-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}var oo={}.hasOwnProperty,io=function(e,t,n,r){var o,i;"string"===typeof t||t instanceof RegExp?(i=[[t,n]],o=r):(i=t,o=n),o||(o={});for(var a=_n(o.ignore||[]),u=function(e){var t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e))for(var n=-1;++n0?{type:"text",value:m}:void 0),!1!==m){var E;if(i!==p&&c.push({type:"text",value:e.value.slice(i,p)}),Array.isArray(m))(E=c).push.apply(E,(0,h.Z)(m));else m&&c.push(m);i=p+f[0].length,l=!0}if(!r.global)break;f=r.exec(e.value)}if(l){var T;i?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);var n=t[0],r=n.indexOf(")"),o=ro(e,"("),i=ro(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;var u={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[u,{type:"text",value:a[1]}]:u}function mo(e,t,n,r){return!(!Eo(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Eo(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||ze(n)||Ge(n))&&(!t||47!==n)}function To(e){return e.label||!e.identifier?e.label||"":dn(e.identifier)}function go(e,t,n,r){for(var o=r.join.length;o--;){var i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"===typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}var vo=/\r?\n|\r/g;function yo(e){if(!e._compiled){var t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ao(e,t){return ko(e,t.inConstruct,!0)&&!ko(e,t.notInConstruct,!1)}function ko(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;for(var r=-1;++r=m||(E+10?" ":"")),o.shift(4),i+=o.move(function(e,t){for(var n,r=[],o=0,i=0;n=vo.exec(e);)a(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,i++;return a(e.slice(o)),r.join("");function a(e){r.push(t(e,i,!e))}}(function(e,t,n){var r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[],u=-1;for(r.push(-1);++u0&&("\r"===u||"\n"===u)&&"html"===l.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),u=" ",(s=t.createTracker(n)).move(i.join(""))),i.push(s.move(t.handle(l,e,t,Y(Y({},s.current()),{},{before:u,after:c})))),u=i[i.length-1].slice(-1)}return r.pop(),i.join("")}Mo.peek=function(){return"["};Uo.peek=function(){return"~"};var Ho={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},jo={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Uo}};function Uo(e,t,n,r){var o=bo(r),i=n.enter("strikethrough"),a=o.move("~~");return a+=Bo(e,n,Y(Y({},o.current()),{},{before:a,after:"~"})),a+=o.move("~~"),i(),a}function Ko(e,t,n){for(var r=e.value||"",o="`",i=-1;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i1&&void 0!==arguments[1]?arguments[1]:{},r=(n.align||[]).concat(),o=n.stringLength||Go,i=[],a=[],u=[],s=[],l=0,c=-1;++cl&&(l=e[c].length);++hs[h])&&(s[h]=m)}f.push(d)}a[c]=f,u[c]=p}var E=-1;if("object"===typeof r&&"length"in r)for(;++Es[E]&&(s[E]=C),v[E]=C),g[E]=_}a.splice(1,0,g),u.splice(1,0,v),c=-1;for(var D=[];++c-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);var a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));var u=n.createTracker(r);u.move(i+" ".repeat(a-i.length)),u.shift(a);var s=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,u.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),l}var Xo={exit:{taskListCheckValueChecked:Jo,taskListCheckValueUnchecked:Jo,paragraph:function(e){var t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){var n=this.stack[this.stack.length-1],r=n.children[0];if(r&&"text"===r.type){for(var o,i=t.children,a=-1;++a0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return Fe([Ir,jr(),Qr(e),qr,to])}(e)),n("fromMarkdownExtensions",[co,{enter:{gfmFootnoteDefinition:No,gfmFootnoteDefinitionLabelString:So,gfmFootnoteCall:xo,gfmFootnoteCallString:Io},exit:{gfmFootnoteDefinition:Fo,gfmFootnoteDefinitionLabelString:Oo,gfmFootnoteCall:Lo,gfmFootnoteCallString:Ro}},Ho,Yo,Xo]),n("toMarkdownExtensions",function(e){return{extensions:[fo,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:wo,footnoteReference:Mo}},jo,Vo(e),$o]}}(e))}var ti=n(7703),ni=(0,n(3828).v)(nr.YP,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),ri=n(9628);var oi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ii={}.hasOwnProperty,ai=Object.prototype;function ui(e,t){var n;switch(t.nodeName){case"#comment":return li(e,t,n={type:"comment",value:t.data}),n;case"#document":case"#document-fragment":var r=t,o="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:si(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){var i=String(e.file),a=function(e){for(var t=String(e),n=[],r=/\r?\n|\r/g;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:function(e){var t=-1;if("number"===typeof e&&e>-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){var t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){var o=(n[t-2]||0)+r-1||0;if(o>-1&&o1?u-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){return ki(t,n,e)}}var Si=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Oi=Object.hasOwnProperty;var Fi={}.hasOwnProperty;function xi(e,t){var n="string"===typeof t&&function(e){return Boolean(e&&"object"===typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&Fi.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}function Ii(e){var t=e&&"element"===e.type&&e.tagName.toLowerCase()||"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function Ri(e){return"children"in e?Mi(e):"value"in e?e.value:""}function Li(e){return"text"===e.type?e.value:"children"in e?Mi(e):""}function Mi(e){for(var t=-1,n=[];++t0&&void 0!==arguments[0]?arguments[0]:{}).prefix||"";return function(t){wi.reset(),xn(t,"element",(function(t){Ii(t)&&t.properties&&!xi(t,"id")&&(t.properties.id=e+wi.slug(Ri(t)))}))}}var Bi=function(e){if(void 0===e||null===e)return Ui;if("string"===typeof e)return function(e){return t;function t(t){return Ui(t)&&t.tagName===e}}(e);if("object"===typeof e)return Hi(e);if("function"===typeof e)return ji(e);throw new Error("Expected function, string, or array as test")};function Hi(e){for(var t=[],n=-1;++n1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties,r=t.behaviour||t.behavior||"prepend",o=t.content||Ki,i=t.group,a=Bi(t.test);return"wrap"===r?e=function(e){return e.children=[l(e,pe(!0,{},n),e.children)],[On]}:"before"===r||"after"===r?e=function(e,t,a){var c;if("number"!==typeof t||!a)return;var f=l(e,pe(!0,{},n),u(o,e)),p="before"===r?[f,e]:[e,f];if(i){var d=s(i,e);d&&!Array.isArray(d)&&"element"===d.type&&(d.children=p,p=[d])}return(c=a.children).splice.apply(c,[t,1].concat((0,h.Z)(p))),[On,t+p.length]}:(n||(n={ariaHidden:"true",tabIndex:-1}),e=function(e){return e.children["prepend"===r?"unshift":"push"](l(e,pe(!0,{},n),u(o,e))),[On]}),function(t){xn(t,"element",(function(t,n,r){if(Ii(t)&&xi(t,"id")&&a(t,n,r))return e(t,n,r)}))};function u(e,t){var n=s(e,t);return Array.isArray(n)?n:[n]}function s(e,t){return"function"===typeof e?e(t):pe(!0,Array.isArray(e)?[]:{},e)}function l(e,t,n){return{type:"element",tagName:"a",properties:Object.assign({},t,{href:"#"+(e.properties||{}).id}),children:n}}}var zi=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>1?arguments[1]:void 0;o/,"$2")||""))return;if(r){if(e(t,o,"pre",r))return;return a.value=(a.value||"").replace(/^(\n|\s)+/,""),a}return a.value=(a.value||"").replace(/^(\n|\s)+/,""),a}}},Yi=function(e){var t=e.value,n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((function(e,t){return e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e}),{})}((void 0===t?"":t).replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach((function(e){"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])})),n},Zi=function(e,t,n){return"string"===n?Y(Y({},e),{},{"data-config":JSON.stringify(Y(Y({},t),{},{rehyp:!0}))}):"attr"===n?Y(Y({},e),t):Y(Y({},e),{},{"data-config":Y(Y({},t),{},{rehyp:!0})})},Qi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.properties,n=void 0===t?"data":t,r=e.codeBlockParames,o=void 0===r||r;return function(e){xn(e,"element",(function(e,t,r){if(o&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&r&&Array.isArray(r.children)&&r.children.length>1){var i=e.children[0];if(i&&"code"===i.tagName&&"number"===typeof t){var a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;t>-1;){if(!e[--t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(r.children,t);if(a){var u=Yi(a);Object.keys(u).length>0&&(e.properties=Y(Y({},e.properties),{"data-type":"rehyp"}),i.properties=Zi(i.properties,u,n))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&r&&Array.isArray(r.children)&&"number"===typeof t){var s=zi(r.children,t,"",o);if(s){var l=Yi(s);Object.keys(l).length>0&&(e.properties=Zi(e.properties,l,n))}}}))}},Wi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openDelimiter,n=void 0===t?"rehype:ignore:start":t,r=e.closeDelimiter,o=void 0===r?"rehype:ignore:end":r;return function(e){xn(e,(function(e,t,r){if("element"===e.type||"root"===e.type){var i=!1;e.children=e.children.filter((function(e){if("raw"===e.type||"comment"===e.type){var t=(e.value||"").trim();if((t=t.replace(/^/,"$1"))===n)return i=!0,!1;if(t===o)return i=!1,!1}return!i}))}}))}},Vi={}.hasOwnProperty,qi=n(9338),Xi=n(2650),$i=n(4383);function Ji(){Ji=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),ea(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ea(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Ji.apply(this,arguments)}function ea(e,t){return ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ea(e,t)}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ra=function(e){return function(t){return void 0===t&&(t={}),function(e){xn(e,"element",n)};function n(n,r,o){var i,a;if(o&&"pre"===o.tagName&&"code"===n.tagName){var u=(null==n||null==(i=n.data)?void 0:i.meta)||(null==n||null==(a=n.properties)?void 0:a.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[],n.properties.className.push("code-highlight");var s,l,c=function(e){for(var t,n=na(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(c)try{var f;f=null!=c&&c.includes("diff-")?c.split("-")[1]:c,s=e.highlight(Ri(n),f),o.properties.className=(o.properties.className||[]).concat("language-"+f)}catch(v){if(!t.ignoreMissing||!/Unknown language/.test(v.message))throw v;s=n}else s=n;s.children=(l=1,function e(t){return t.reduce((function(t,n){if("text"===n.type){var r=n.value,o=(r.match(/\n/g)||"").length;if(0===o)n.position={start:{line:l,column:1},end:{line:l,column:1}},t.push(n);else for(var i,a=r.split("\n"),u=na(a.entries());!(i=u()).done;){var s=i.value,c=s[0],f=s[1];t.push({type:"text",value:c===a.length-1?f:f+"\n",position:{start:{line:l+c,column:1},end:{line:l+c,column:1}}})}return l+=o,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var p=l;return n.children=e(n.children),t.push(n),n.position={start:{line:p,column:1},end:{line:l,column:1}},t}return t.push(n),t}),[])})(s.children),s.position=s.children.length>0?{start:{line:s.children[0].position.start.line,column:0},end:{line:s.children[s.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var p,h=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map((function(e){return e.trim()})).join();if(t.test(n)){var r=t.exec(n)[1],o=qi(r);return function(e){return o.includes(e+1)}}return function(){return!1}}(u),d=function(e){var t=Ji(/showLineNumbers=([0-9]+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(u),m=function(e){for(var t=new Array(e),n=0;n0&&0===a.length)return null}var l,c={};for(l in t)Vi.call(t,l)&&(c[l]="children"===l?a:t[l]);return c}(e)}(s,(function(e){return e.position.start.line<=n+1&&e.position.end.line>=n+1}));r.children=o.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||E.some((function(e){return u.toLowerCase().includes(e)}))||(r.properties.line=[(n+d).toString()],r.properties.className.push("line-number")),h(n)&&r.properties.className.push("highlight-line"),("diff"===c||null!=c&&c.includes("diff-"))&&"-"===Ri(r).substring(0,1)?r.properties.className.push("deleted"):("diff"===c||null!=c&&c.includes("diff-"))&&"+"===Ri(r).substring(0,1)&&r.properties.className.push("inserted")},g=na(m.entries());!(p=g()).done;)T();m.length>0&&""===Ri(m[m.length-1]).trim()&&m.pop(),n.children=m}}}},oa=(ra(Xi.$),ra($i.$)),ia="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",aa="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",ua=new RegExp("^[^"+aa+"]*["+ia+"]"),sa=new RegExp("^[^"+ia+"]*["+aa+"]");function la(e){var t=function(e){var t=String(e||"");return ua.test(t)?"rtl":sa.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function ca(e){var t="element"===e.type&&e.properties&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}var fa=hi("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:function(e,t,n){return xi(t,n.property)},handlers:{"=":function(e,t,n){return Boolean(xi(t,n.property)&&t.properties&&pa(t.properties[n.property],n)===e.value)},"~=":function(e,t,n){var r=t.properties&&t.properties[n.property];return!n.commaSeparated&&r&&"object"===typeof r&&e.value&&r.includes(e.value)||xi(t,n.property)&&pa(r,n)===e.value},"|=":function(e,t,n){var r=pa(t.properties&&t.properties[n.property],n);return Boolean(xi(t,n.property)&&e.value&&(r===e.value||r.slice(0,e.value.length)===e.value&&"-"===r.charAt(e.value.length)))},"^=":function(e,t,n){return Boolean(xi(t,n.property)&&t.properties&&e.value&&pa(t.properties[n.property],n).slice(0,e.value.length)===e.value)},"$=":function(e,t,n){return Boolean(xi(t,n.property)&&t.properties&&e.value&&pa(t.properties[n.property],n).slice(-e.value.length)===e.value)},"*=":function(e,t,n){return Boolean(xi(t,n.property)&&t.properties&&e.value&&pa(t.properties[n.property],n).includes(e.value))}}});function pa(e,t){return"boolean"===typeof e?t.attribute:Array.isArray(e)?(t.commaSeparated?lr.P:sr.P)(e):String(e)}function ha(e,t){return function(n,r){for(var o=ma(n,"tag"),i=ma(null===r||void 0===r?"*":r,"range"),a=[],u=-1;++u=n};var r=Math.abs(t),o=(n%r+r)%r;return t>1?function(e){return e>=n&&e%r===o}:function(e){return e<=n&&e%r===o}}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,n=0,r=i(),o=a();if(t=Ta&&e.charCodeAt(t)<=ga;)r=10*r+(e.charCodeAt(t)-Ta),t++;return t===n?null:r}function u(){for(;t0},lang:function(e,t,n,r,o){return""!==o.language&&void 0!==o.language&&da(o.language,(0,lr.Q)(e.value)).length>0},"last-child":function(e,t,n,r,o){return Oa(o,e),Boolean(o.elementCount&&o.elementIndex===o.elementCount-1)},"last-of-type":function(e,t,n,r,o){return Oa(o,e),"number"===typeof o.typeIndex&&"number"===typeof o.typeCount&&o.typeIndex===o.typeCount-1},matches:Da,not:function(e,t,n,r,o){return!Da(e,t,n,r,o)},"nth-child":function(e,t,n,r,o){var i=Fa(e);return Oa(o,e),"number"===typeof o.elementIndex&&i(o.elementIndex)},"nth-last-child":function(e,t,n,r,o){var i=Fa(e);return Oa(o,e),Boolean("number"===typeof o.elementCount&&"number"===typeof o.elementIndex&&i(o.elementCount-o.elementIndex-1))},"nth-of-type":function(e,t,n,r,o){var i=Fa(e);return Oa(o,e),"number"===typeof o.typeIndex&&i(o.typeIndex)},"nth-last-of-type":function(e,t,n,r,o){var i=Fa(e);return Oa(o,e),"number"===typeof o.typeCount&&"number"===typeof o.typeIndex&&i(o.typeCount-1-o.typeIndex)},"only-child":function(e,t,n,r,o){return Oa(o,e),1===o.elementCount},"only-of-type":function(e,t,n,r,o){return Oa(o,e),1===o.typeCount},optional:function(e,t){return!Na(e,t)},"read-only":function(e,t,n,r,o){return!ba(e,t,n,r,o)},"read-write":ba,required:Na,root:function(e,t,n,r,o){return Boolean((!r||"root"===r.type)&&o.schema&&("html"===o.schema.space||"svg"===o.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,o){return o.scopeElements.includes(t)}}});function Ca(e,t,n,r,o){for(var i=e.pseudos,a=-1;++a"===s.nestingOperator?"directChild":"descendant",l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}null===u.rule.nestingOperator?Pa(i,"descendant",u):"~"===u.rule.nestingOperator&&Pa(i,"generalSibling",u)}return i}(e,wa(t,e.rootQuery.selectors),n,r,o)),!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n){var r,o=wa(t.descendant,t.directChild),i=-1,a={count:0,types:new Map},u={count:0,types:new Map};for(;++i0&&t.length>0?[].concat((0,h.Z)(e),(0,h.Z)(t)):e&&e.length>0?e:t&&t.length>0?t:Ia}function Pa(e,t,n){var r=e[t];r?r.push(n):e[t]=[n]}function Ba(e,t){if("element"===t.type){var n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var Ha=new(n(7184).N);function ja(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return Ha.parse(e)}function Ua(e,t,n){return{rootQuery:Ra(ja(e)),results:[],scopeElements:t?"root"===t.type?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:"svg"===n?nr.YP:nr.dy,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}Ha.registerAttrEqualityMods("~","|","^","$","*"),Ha.registerSelectorPseudos("any","matches","not","has"),Ha.registerNestingOperators(">","+","~");var Ka=function e(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){"text"===n.type?t+=n.value:"element"===n.type&&n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},Ga=function(e){var t=e||{},n=t.selector,r=t.rewrite;return function(e){if(r&&"function"===typeof r)if(n&&"string"===typeof n){var t=function(e,t,n){var r=Ua(e,t,n);return La(r,t||void 0),r.results}(n,e);t&&t.length>0&&xn(e,t,(function(e,t,n){r(e,t,n)}))}else xn(e,(function(e,t,n){r(e,t,n)}))}},za={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var Ya=n(7675),Za=n.n(Ya);function Qa(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Qa(t.parentElement):null}function Wa(e){var t=function(e){var t=Qa(e.target);t&&(t.classList.add("active"),Za()(t.dataset.code,(function(){setTimeout((function(){t.classList.remove("active")}),2e3)})))};(0,o.useEffect)((function(){var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),function(){var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}}),[e])}var Va=function(e){return void 0===e&&(e={}),function(e){xn(e,(function(e){"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=f({},e.properties,{"data-meta":String(e.data.meta)}))}))}},qa=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"],Xa=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"wmde-markdown wmde-markdown-color":n,i=e.className,a=e.source,u=e.style,s=e.disableCopy,l=void 0!==s&&s,c=e.skipHtml,d=void 0===c||c,m=e.onScroll,E=e.onMouseOver,T=e.pluginsFilter,g=e.rehypeRewrite,v=e.wrapperElement,y=void 0===v?{}:v,k=e.warpperElement,C=void 0===k?{}:k,_=p(e,qa),D=o.useRef(null);(0,o.useImperativeHandle)(t,(function(){return f({},e,{mdp:D})}),[D,e]);var b=(r||"")+" "+(i||"");Wa(D);var N=[Va,[oa,{ignoreMissing:!0}],Pi,Gi,Wi,[Ga,{rewrite:function(e,t,n){if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var r=e.children&&e.children[0];r&&r.properties&&"true"===r.properties.ariaHidden&&(r.properties=f({class:"anchor"},r.properties),r.children=[za])}if("element"===e.type&&"pre"===e.tagName&&!l){var o=Ka(e.children);e.children.push((void 0===(i=o)&&(i=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":i},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var i;g&&g(e,t,n)}}],[Qi,{properties:"attr"}]].concat((0,h.Z)(_.rehypePlugins||[])),S={allowElement:function(e,t,n){return _.allowElement?_.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)}};d&&N.push(Ni);var O=[].concat((0,h.Z)(_.remarkPlugins||[]),[ei]),F=f({},C,y);return(0,A.jsx)("div",f({ref:D,onScroll:m,onMouseOver:E},F,{className:b,style:u,children:(0,A.jsx)(kr,f({},S,_,{skipHtml:d,rehypePlugins:T?T("rehype",N):N,remarkPlugins:T?T("remark",O):O,children:a||""}))}))})),$a=["prefixCls","className","style","keyCode","onMouseDown","onMouseUp"],Ja=[{keycode:27,name:["esc"]},{keycode:112,name:["F1"]},{keycode:113,name:["F2"]},{keycode:114,name:["F3"]},{keycode:115,name:["F4"]},{keycode:116,name:["F5"]},{keycode:117,name:["F6"]},{keycode:118,name:["F7"]},{keycode:119,name:["F8"]},{keycode:120,name:["F9"]},{keycode:121,name:["F10"]},{keycode:122,name:["F11"]},{keycode:123,name:["F12"]},{keycode:-1,name:["\u3007"]},{keycode:192,name:["~","`"]},{keycode:49,name:["!","1"]},{keycode:50,name:["@","2"]},{keycode:51,name:["#","3"]},{keycode:52,name:["$","4"]},{keycode:53,name:["%","5"]},{keycode:54,name:["^","6"]},{keycode:55,name:["&","7"]},{keycode:56,name:["*","8"]},{keycode:57,name:["(","9"]},{keycode:48,name:[")","0"]},{keycode:189,name:["\uff3f","-"]},{keycode:187,name:["\uff0b",": "]},{keycode:8,name:["delete"]},{keycode:9,name:["tab"]},{keycode:81,name:["Q"]},{keycode:87,name:["W"]},{keycode:69,name:["E"]},{keycode:82,name:["R"]},{keycode:84,name:["T"]},{keycode:89,name:["Y"]},{keycode:85,name:["U"]},{keycode:73,name:["I"]},{keycode:79,name:["O"]},{keycode:80,name:["P"]},{keycode:219,name:["{","["]},{keycode:221,name:["}","]"]},{keycode:220,name:["|","\\"]},{keycode:20,name:["","CapsLock"]},{keycode:65,name:["A"]},{keycode:83,name:["S"]},{keycode:68,name:["D"]},{keycode:70,name:["F"]},{keycode:71,name:["G"]},{keycode:72,name:["H"]},{keycode:74,name:["J"]},{keycode:75,name:["K"]},{keycode:76,name:["L"]},{keycode:186,name:[":",";"]},{keycode:222,name:['"',"'"]},{keycode:13,name:["enter","return"]},{keycode:16,name:["\u21e7"]},{keycode:90,name:["Z"]},{keycode:88,name:["X"]},{keycode:67,name:["C"]},{keycode:86,name:["V"]},{keycode:66,name:["B"]},{keycode:78,name:["N"]},{keycode:77,name:["M"]},{keycode:188,name:["<",","]},{keycode:190,name:[">","."]},{keycode:191,name:["?","/"]},{keycode:16,name:["\u21e7"]},{keycode:-1,name:["fn"]},{keycode:17,name:["control"]},{keycode:18,name:["alt","option"]},{keycode:91,name:["command"]},{keycode:32,name:[""]},{keycode:91,name:["command"]},{keycode:18,name:["alt","option"]},{keycode:37,name:["\u25c0"]},{keycode:38,name:["\u25b2"]},{keycode:39,name:["\u25b6"]},{keycode:40,name:["\u25bc"]}];function eu(e){var t=e.prefixCls,n=void 0===t?"w-mac-keyboard":t,r=e.className,o=e.style,i=e.keyCode,a=void 0===i?[]:i,u=e.onMouseDown,s=e.onMouseUp,l=p(e,$a);return(0,A.jsx)("div",{className:(n||"")+" "+(r||""),style:o,children:(0,A.jsx)("ul",{children:Ja.map((function(e,t){var n=e.name.map((function(e,t){return(0,A.jsx)("span",{children:e},""+t)}));return(0,A.jsx)("li",f({onMouseDown:function(t){return u&&u(t,e)},onMouseUp:function(t){return s&&s(t,e)},className:a.indexOf(e.keycode)>-1?"pressed":"","data-key":e.keycode},l,{children:n}),t)}))})})}n(523);var tu="Footer_footer__6AZaJ";function nu(e){var t=e.name,n=e.href,r=e.year,o=e.children;return(0,A.jsxs)("div",{className:tu,children:[o,(0,A.jsxs)("div",{children:["Licensed under MIT. (Yes it\xb4s free and",(0,A.jsx)("a",{href:"https://github.com/jaywcjlove/hotkeys",children:" open-sourced"}),")"]}),(0,A.jsxs)("div",{children:["\xa9",(0,A.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:n,children:t}),r]})]})}var ru="index_tools__z-HKb",ou="index_version__-ytTx",iu="index_keyCodeInfo__cHMZ+",au="index_header__jwPmf",uu="index_title__X9GPx",su="index_info__QmMpI",lu="index_github__CJgBc",cu="# Hotkeys\n\n\x3c!--dividing--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![](https://img.shields.io/npm/dm/hotkeys-js?logo=npm)](https://www.npmjs.com/package/hotkeys-js)\n[![](https://img.shields.io/github/stars/jaywcjlove/hotkeys-js.svg)](https://github.com/jaywcjlove/hotkeys/stargazers)\n![no dependencies](http://jaywcjlove.github.io/sb/status/no-dependencies.svg)\n[![GitHub Actions CI](https://github.com/jaywcjlove/hotkeys-js/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/hotkeys-js/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/jaywcjlove/hotkeys/badge.svg?branch=master)](https://coveralls.io/github/jaywcjlove/hotkeys?branch=master)\n[![jaywcjlove/hotkeys-js](https://jaywcjlove.github.io/sb/lang/chinese.svg)](https://github.com/jaywcjlove/hotkeys-js/blob/master/README-zh.md)\n[![jaywcjlove/hotkeys-js](https://jaywcjlove.github.io/sb/ico/gitee.svg)](https://gitee.com/jaywcjlove/hotkeys)\n\nHotKeys.js is an input capture library with some very special features, it is easy to pick up and use, has a reasonable footprint ([~6kB](https://bundlephobia.com/result?p=hotkeys-js)) (gzipped: **`2.8kB`**), and has no dependencies. It should not interfere with any JavaScript libraries or frameworks. Official document [demo preview](https://jaywcjlove.github.io/hotkeys-js). [More examples](https://github.com/jaywcjlove/hotkeys-js/issues?q=label%3ADemo+).\n\n```bash\n\u256d\u2508\u2508\u256e \u256d\u2508\u2508\u256e \u256d\u2508\u2508\u256e\n\u2506 \u251c\u2508\u2508..\u2508\u2508\u2508\u2508\u2508.\u2506 \u2514\u2508\u256e\u2506 \u251c\u2508\u2508..\u2508\u2508\u2508\u2508\u2508..\u2508\u2508.\u2508\u2508..\u2508\u2508\u2508\u2508\u2508.\n\u2506 \u2506\u2506 \u25a1 \u2506\u2506 \u2508\u2524\u2506 < \u2506 -__\u2518\u2506 \u2506 \u2506\u2506__ \u2508\u2508\u2524\n\u2570\u2508\u2508\u2534\u2508\u2508\u256f\u2570\u2508\u2508\u2508\u2508\u2508\u256f\u2570\u2508\u2508\u2508\u2508\u256f\u2570\u2508\u2508\u2534\u2508\u2508\u256f\u2570\u2508\u2508\u2508\u2508\u2508\u256f\u2570\u2508\u2508\u2508 \u2506\u2570\u2508\u2508\u2508\u2508\u2508\u256f\n \u2570\u2508\u2508\u2508\u2508\u2508\u256f\n```\n\n## Usage\n\nYou will need `Node.js` installed on your system.\n\n```bash\nnpm install hotkeys-js --save\n```\n\n```js\nimport hotkeys from 'hotkeys-js';\n\nhotkeys('f5', function(event, handler){\n // Prevent the default refresh event under WINDOWS system\n event.preventDefault()\n alert('you pressed F5!')\n});\n```\n\nOr manually download and link **hotkeys.js** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/hotkeys-js/dist/):\n\nCDN: [UNPKG](https://unpkg.com/hotkeys-js/dist/) | [jsDelivr](https://cdn.jsdelivr.net/npm/hotkeys-js@3.7.3/) | [Githack](https://raw.githack.com/jaywcjlove/hotkeys/master/dist/hotkeys.min.js) | [Statically](https://cdn.statically.io/gh/jaywcjlove/hotkeys/master/dist/hotkeys.min.js) | [bundle.run](https://bundle.run/hotkeys-js@3.7.3)\n\n```html\n