12 |
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41167],{21868:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,l,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"===typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});p<d;++p)if(null!=(t=arguments[p]))for(n in t)r=c(h,n),h!==(i=c(t,n))&&(f&&i&&(s(i)||(l=o(i)))?(l?(l=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},a(h,{name:n,newValue:e(f,u,i)})):"undefined"!==typeof i&&a(h,{name:n,newValue:i}));return h}},57094:function(e){e.exports=function(e){return e.split("")}},45534:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},19257:function(e,t,n){var r=n(45534);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},46128:function(e,t,n){var r=n(19257),i=n(45245),o=n(85915),s=n(46235);e.exports=function(e){return function(t){t=s(t);var n=i(t)?o(t):void 0,a=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return a[e]()+c}}},45245:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},85915:function(e,t,n){var r=n(57094),i=n(45245),o=n(97549);e.exports=function(e){return i(e)?o(e):r(e)}},97549:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",l=c+a+("(?:\\u200d(?:"+[i,o,s].join("|")+")"+c+a+")*"),u="(?:"+[i+n+"?",n,o,s,t].join("|")+")",h=RegExp(r+"(?="+r+")|"+u+l,"g");e.exports=function(e){return e.match(h)||[]}},14574:function(e,t,n){var r=n(46235),i=n(96676);e.exports=function(e){return i(r(e).toLowerCase())}},96676:function(e,t,n){var r=n(46128)("toUpperCase");e.exports=r},64462:function(e,t,n){"use strict";n.d(t,{rm:function(){return di},ML:function(){return Oi},Iq:function(){return gr},R3:function(){return Tr},Xo:function(){return hi},uW:function(){return ui},Dn:function(){return qr},D:function(){return Jr},U7:function(){return Qr},i8:function(){return ti},tQ:function(){return xr},ZP:function(){return Ar},pB:function(){return Or},_z:function(){return Br},ZV:function(){return wr},CG:function(){return vr},$D:function(){return Cr},KP:function(){return ni},le:function(){return Nr}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return $e},contentInitial:function(){return Fe},disable:function(){return He},document:function(){return ze},flow:function(){return Be},flowInitial:function(){return Le},insideSpan:function(){return De},string:function(){return Pe},text:function(){return je}});var i=n(48281),o=n(47407);const s={};function a(e,t){const n=t||s;return c(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function c(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=c(e[i],t,n);return r.join("")}function u(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function h(e,t){return e.length>0?(u(e,e.length,0,t),e):t}function p(e){const t={};let n,r,i,o,s,a,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(n=e[l],l&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[l-1][1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,d(e,l)),l=t[l],c=!0);else if(n[1]._container){for(i=l,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),s=e.slice(r,l),s.unshift(n),u(e,r,l-r+1,s))}}return!c}function d(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,c=[],l={};let h,p,d=-1,f=n,m=0,g=0;const y=[g];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),p&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(g=d+1,y.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):y.pop(),d=y.length;d--;){const t=a.slice(y[d],y[d+1]),n=o.pop();c.unshift([n,n+t.length-1]),u(e,n,2,t)}for(d=-1;++d<c.length;)l[m+c[d][0]]=m+c[d][1],m+=c[d][1]-c[d][0]-1;return l}const f={}.hasOwnProperty;function m(e,t){let n;for(n in t){const r=(f.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){f.call(r,o)||(r[o]=[]);const e=i[o];g(r[o],Array.isArray(e)?e:e?[e]:[])}}}function g(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);u(e,0,0,r)}const y=N(/[A-Za-z]/),k=N(/[\dA-Za-z]/),x=N(/[#-'*+\--9=?A-Z^-~]/);function w(e){return null!==e&&(e<32||127===e)}const v=N(/\d/),S=N(/[\dA-Fa-f]/),b=N(/[!-/:-@[-`{-~]/);function M(e){return null!==e&&e<-2}function C(e){return null!==e&&(e<0||32===e)}function I(e){return-2===e||-1===e||32===e}const T=N(/\p{P}|\p{S}/u),E=N(/\s/);function N(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function O(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(I(r))return e.enter(n),s(r);return t(r)};function s(r){return I(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const A={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),O(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):M(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const R={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,c,l)(r)}return l(r)}function c(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}k(s);let a=n;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},i),a++;return u(t.events,o+1,0,t.events.slice(n)),t.events.length=a,l(e)}return a(e)}function l(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return m(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z,h,p)(i)}function h(e){return r&&x(),k(s),d(e)}function p(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,m(e)}function d(n){return t.containerState={},e.attempt(z,f,m)(n)}function f(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function m(n){return null===n?(r&&x(),k(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(n))}function g(n){return null===n?(y(e.exit("chunkFlow"),!0),k(0),void e.consume(n)):M(n)?(e.consume(n),y(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),g)}function y(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){a=t.events[c][1].end;break}i=!0}for(k(s),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;u(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function k(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},z={tokenize:function(e,t,n){return O(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const F={tokenize:function(e,t,n){return function(t){return I(t)?O(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||M(e)?t(e):n(e)}},partial:!0};const L={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):M(t)?e.check(B,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return p(e),e}},B={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O(e,i,"linePrefix")};function i(i){if(null===i||M(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const P={tokenize:function(e){const t=this,n=e.attempt(F,(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,O(e,e.attempt(this.parser.constructs.flow,r,e.attempt(L,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)}}};const j={resolveAll:_()},D=H("string"),$=H("text");function H(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return c(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function c(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:_("text"===e?W:void 0)}}function _(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function W(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,c=0;for(;s--;){const e=i[s];if("string"===typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)o=!0,c++;else if(-1!==e){s++;break}}if(c){const i={type:n===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-c,offset:r.end.offset-c,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function q(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function V(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[],c=!0;const l={consume:function(e){M(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,S()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));p.previous=e,c=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=g(),p.events.push(["enter",n,p]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=g(),p.events.push(["exit",t,p]),t},attempt:w((function(e,t){v(e,t.from)})),check:w(x),interrupt:w(x,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"===typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(m(e),t)},now:g,defineSkip:function(e){i[e.line]=e.column,S()},write:function(e){if(s=h(s,e),y(),null!==s[s.length-1])return[];return v(t,0),p.events=q(o,p.events,p),p.events}};let d,f=t.tokenize.call(p,l);return t.resolveAll&&o.push(t),p;function m(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function g(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function y(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)k(t.charCodeAt(r._bufferIndex));else k(t)}}function k(e){c=void 0,d=e,f=f(e)}function x(e,t){t.restore()}function w(e,t){return function(n,i,o){let s,u,h,d;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return s=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){d=function(){const e=g(),t=p.previous,n=p.currentConstruct,i=p.events.length,o=Array.from(a);return{restore:s,from:i};function s(){r=e,p.previous=t,p.currentConstruct=n,p.events.length=i,a=o,S()}}(),h=e,e.partial||(p.currentConstruct=e);if(e.name&&p.parser.constructs.disable.null.includes(e.name))return k(n);return e.tokenize.call(t?Object.assign(Object.create(p),t):p,l,y,k)(n)}}function y(t){return c=!0,e(h,d),i}function k(e){return c=!0,d.restore(),++u<s.length?m(s[u]):o}}}function v(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&u(p.events,t,p.events.length-t,e.resolve(p.events.slice(t),p)),e.resolveTo&&(p.events=e.resolveTo(p.events,p))}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const J={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||M(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),I(t)?O(e,o,"whitespace")(t):o(t))}}};const K={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:v(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(J,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return v(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(F,r.interrupt?n:l,e.attempt(U,h,u))}function l(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return I(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(F,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!I(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Y,t,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(K,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},U={tokenize:function(e,t,n){const r=this;return O(e,(function(e){const i=r.events[r.events.length-1];return!I(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Y={tokenize:function(e,t,n){const r=this;return O(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const G={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return I(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){const r=this;return function(t){if(I(t))return O(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(G,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Z(e,t,n,r,i,o,s,a,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||w(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||M(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!C(i)?u<l&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||w(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function X(e,t,n,r,i,o){const s=this;let a,c=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return c>999||null===h||91===h||93===h&&!a||94===h&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||M(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!I(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}function Q(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),c(n))}function c(t){return t===s?(e.exit(o),a(s)):null===t?n(t):M(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===s||null===t||M(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===s||92===t?(e.consume(t),l):l(t)}}function ee(e,t){let n;return function r(i){if(M(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(I(i))return O(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ne={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return X.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return C(t)?ee(e,a)(t):a(t)}function a(t){return Z(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(re,l,l)(t)}function l(t){return I(t)?O(e,u,"whitespace")(t):u(t)}function u(o){return null===o||M(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},re={tokenize:function(e,t,n){return function(t){return C(t)?ee(e,r)(t):n(t)};function r(t){return Q(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return I(t)?O(e,o,"whitespace")(t):o(t)}function o(e){return null===e||M(e)?t(e):n(e)}},partial:!0};const ie={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),O(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):M(t)?e.attempt(oe,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||M(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},oe={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):M(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):M(e)?i(e):n(e)}},partial:!0};const se={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||C(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||M(n)?(e.exit("atxHeading"),t(n)):I(n)?O(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||C(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},u(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const ae={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),I(t)?O(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||M(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const ce=["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"],le=["pre","script","style","textarea"],ue={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,c;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),u):47===a?(e.consume(a),o=!0,d):63===a?(e.consume(a),i=3,r.interrupt?t:D):y(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,p):y(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),a===o.length?r.interrupt?t:A:p):n(i)}function d(t){return y(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||C(a)){const c=47===a,l=s.toLowerCase();return c||o||!le.includes(l)?ce.includes(s.toLowerCase())?(i=6,c?(e.consume(a),m):r.interrupt?t(a):A(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):x(a)):(i=1,r.interrupt?t(a):A(a))}return 45===a||k(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function g(t){return I(t)?(e.consume(t),g):N(t)}function x(t){return 47===t?(e.consume(t),N):58===t||95===t||y(t)?(e.consume(t),w):I(t)?(e.consume(t),x):N(t)}function w(t){return 45===t||46===t||58===t||95===t||k(t)?(e.consume(t),w):v(t)}function v(t){return 61===t?(e.consume(t),S):I(t)?(e.consume(t),v):x(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,b):I(t)?(e.consume(t),S):T(t)}function b(t){return t===c?(e.consume(t),c=null,E):null===t||M(t)?n(t):(e.consume(t),b)}function T(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||C(t)?v(t):(e.consume(t),T)}function E(e){return 47===e||62===e||I(e)?x(e):n(e)}function N(t){return 62===t?(e.consume(t),O):n(t)}function O(t){return null===t||M(t)?A(t):I(t)?(e.consume(t),O):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),L):60===t&&1===i?(e.consume(t),B):62===t&&4===i?(e.consume(t),$):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),j):!M(t)||6!==i&&7!==i?null===t||M(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(he,H,R)(t))}function R(t){return e.check(pe,z,H)(t)}function z(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return null===t||M(t)?R(t):(e.enter("htmlFlowData"),A(t))}function L(t){return 45===t?(e.consume(t),D):A(t)}function B(t){return 47===t?(e.consume(t),s="",P):A(t)}function P(t){if(62===t){const n=s.toLowerCase();return le.includes(n)?(e.consume(t),$):A(t)}return y(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),P):A(t)}function j(t){return 93===t?(e.consume(t),D):A(t)}function D(t){return 62===t?(e.consume(t),$):45===t&&2===i?(e.consume(t),D):A(t)}function $(t){return null===t||M(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),$)}function H(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let 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},he={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(F,t,n)}},partial:!0},pe={tokenize:function(e,t,n){const r=this;return function(t){if(M(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const de={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},fe={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),I(t)?O(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),I(t)?O(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||M(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===o?(a++,e.consume(t),c):a<3?n(t):(e.exit("codeFencedFenceSequence"),I(t)?O(e,l,"whitespace")(t):l(t))}function l(n){return null===n||M(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(de,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||M(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):I(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||M(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||M(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===o?n(t):(e.consume(t),p)}function d(t){return e.attempt(i,k,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&I(t)?O(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||M(t)?e.check(de,d,k)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||M(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const me=document.createElement("i");function ge(e){const t="&"+e+";";me.innerHTML=t;const n=me.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const ye={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=k,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=S,l):(e.enter("characterReferenceValue"),i=7,o=v,l(t))}function l(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==k||ge(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),l):n(a)}}};const ke={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return b(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const xe={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),O(e,t,"linePrefix")}}};const we={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(te(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(ve,l,o?l:u)(t):91===t?e.attempt(Se,l,o?c:u)(t):o?l(t):u(t)}function c(t){return e.attempt(be,l,u)(t)}function l(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const c={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},p={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=h(o,e.slice(r+1,r+a+3)),o=h(o,[["enter",p,t]]),o=h(o,q(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=h(o,[["exit",p,t],e[i-2],e[i-1],["exit",l,t]]),o=h(o,e.slice(i+1)),o=h(o,[["exit",c,t]]),u(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},ve={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return C(t)?ee(e,i)(t):i(t)}function i(t){return 41===t?l(t):Z(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return C(t)?ee(e,a)(t):l(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Q(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function c(t){return C(t)?ee(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Se={tokenize:function(e,t,n){const r=this;return function(t){return X.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},be={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Me={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:we.resolveAll};function Ce(e){return null===e||C(e)||E(e)?1:T(e)?2:void 0}const Ie={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ce(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const c=e.exit("attentionSequence"),l=Ce(a),u=!l||2===l&&i||n.includes(a),h=!i||2===i&&l||n.includes(r);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(a)}},resolveAll:function(e,t){let n,r,i,o,s,a,c,l,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close)for(n=p;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[n][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[p][1].start);Te(d,-a),Te(f,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[p][1].start),end:f},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[p][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[p][1].start=Object.assign({},s.end),c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=h(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=h(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=h(c,q(t.parser.constructs.insideSpan.null,e.slice(n+1,p),t)),c=h(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[p][1].end.offset-e[p][1].start.offset?(l=2,c=h(c,[["enter",e[p][1],t],["exit",e[p][1],t]])):l=0,u(e,n-1,p-n+3,c),p=n+c.length-l-2;break}p=-1;for(;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e}};function Te(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ee={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return y(t)?(e.consume(t),o):c(t)}function o(e){return 43===e||45===e||46===e||k(e)?(r=1,s(e)):c(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||k(t))&&r++<32?(e.consume(t),s):(r=0,c(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||w(r)?n(r):(e.consume(r),a)}function c(t){return 64===t?(e.consume(t),l):x(t)?(e.consume(t),c):n(t)}function l(e){return k(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,l):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||k(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}};const Ne={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),S):63===t?(e.consume(t),w):y(t)?(e.consume(t),E):n(t)}function c(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o=0,d):y(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):M(t)?(s=u,j(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?P(e):45===e?h(e):u(e)}function d(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?f:d):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):M(t)?(s=f,j(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):f(t)}function x(t){return null===t||62===t?P(t):M(t)?(s=x,j(t)):(e.consume(t),x)}function w(t){return null===t?n(t):63===t?(e.consume(t),v):M(t)?(s=w,j(t)):(e.consume(t),w)}function v(e){return 62===e?P(e):w(e)}function S(t){return y(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||k(t)?(e.consume(t),b):T(t)}function T(t){return M(t)?(s=T,j(t)):I(t)?(e.consume(t),T):P(t)}function E(t){return 45===t||k(t)?(e.consume(t),E):47===t||62===t||C(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),P):58===t||95===t||y(t)?(e.consume(t),A):M(t)?(s=N,j(t)):I(t)?(e.consume(t),N):P(t)}function A(t){return 45===t||46===t||58===t||95===t||k(t)?(e.consume(t),A):R(t)}function R(t){return 61===t?(e.consume(t),z):M(t)?(s=R,j(t)):I(t)?(e.consume(t),R):N(t)}function z(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,F):M(t)?(s=z,j(t)):I(t)?(e.consume(t),z):(e.consume(t),L)}function F(t){return t===i?(e.consume(t),i=void 0,B):null===t?n(t):M(t)?(s=F,j(t)):(e.consume(t),F)}function L(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||C(t)?N(t):(e.consume(t),L)}function B(e){return 47===e||62===e||C(e)?N(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return I(t)?O(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):$(t)}function $(t){return e.enter("htmlTextData"),s(t)}}};const Oe={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:we.resolveAll};const Ae={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return M(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Re={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,l(t)):M(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||M(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),r++,l):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",c(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const ze={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:G},Fe={91:ne},Le={[-2]:ie,[-1]:ie,32:ie},Be={35:se,42:J,45:[ae,J],60:ue,61:ae,95:J,96:fe,126:fe},Pe={38:ye,92:ke},je={[-5]:xe,[-4]:xe,[-3]:xe,33:Me,38:ye,42:Ie,60:[Ee,Ne],91:Oe,92:[Ae,ke],93:we,95:Ie,96:Re},De={null:[Ie,j]},$e={null:[42,95]},He={null:[]};function _e(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)m(t,e[n]);return t}([r,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:i(A),document:i(R),flow:i(P),string:i(D),text:i($)};return n;function i(e){return function(t){return V(n,e,t)}}}const We=/[\0\t\n\r]/g;function qe(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Ve=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Je(e){return e.replace(Ve,Ke)}function Ke(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return qe(n.slice(t?2:1),t?16:10)}return ge(n)||e}function Ue(e){return e&&"object"===typeof e?"position"in e||"type"in e?Ge(e.position):"start"in e||"end"in e?Ge(e):"line"in e||"column"in e?Ye(e):"":""}function Ye(e){return Ze(e&&e.line)+":"+Ze(e&&e.column)}function Ge(e){return Ye(e&&e.start)+"-"+Ye(e&&e.end)}function Ze(e){return e&&"number"===typeof e?e:1}const Xe={}.hasOwnProperty;function Qe(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ne),autolinkProtocol:I,autolinkEmail:I,atxHeading:o(Z),blockQuote:o(J),characterEscape:I,characterReference:I,codeFenced:o(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(K,s),codeText:o(U,s),codeTextData:I,data:I,codeFlowValue:I,definition:o(Y),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(G),hardBreakEscape:o(X),hardBreakTrailing:o(X),htmlFlow:o(Q,s),htmlFlowData:I,htmlText:o(Q,s),htmlTextData:I,image:o(ee),label:s,link:o(ne),listItem:o(ie),listItemValue:d,listOrdered:o(re,p),listUnordered:o(re),paragraph:o(oe),reference:$,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Z),strong:o(se),thematicBreak:o(ce)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:V,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:_,characterReferenceMarkerNumeric:_,characterReferenceValue:W,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:m,codeFlowValue:T,codeIndented:l(k),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:v,definitionLabelString:x,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(O),htmlFlowData:T,htmlText:l(A),htmlTextData:T,image:l(F),label:B,labelText:L,lineEnding:E,link:l(z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:P,resourceTitleString:j,resource:D,setextHeading:l(C),setextHeadingLineSequence:M,setextHeadingText:b,strong:l(),thematicBreak:l()}};tt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:h,data:n},a=[];let l=-1;for(;++l<e.length;)if("listOrdered"===e[l][1].type||"listUnordered"===e[l][1].type)if("enter"===e[l][0])a.push(l);else{l=i(e,a.pop(),l)}for(l=-1;++l<e.length;){const n=t[e[l][0]];Xe.call(n,e[l][1].type)&&n[e[l][1].type].call(Object.assign({sliceSerialize:e[l][2].sliceSerialize},o),e[l][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||rt).call(o,void 0,e[0])}for(r.position={start:et(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:et(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<t.transforms.length;)r=t.transforms[l](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,c=-1,l=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||c||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=l,n}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:et(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ue({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||rt).call(this,e,r[0])}n.position.end=et(e.end)}function h(){return a(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function m(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=te(this.sliceSerialize(e)).toLowerCase()}function w(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function M(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function I(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:et(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=et(e.end)}function E(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=et(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(I.call(this,e),T.call(this,e))}function N(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function z(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Je(t),n.identifier=te(t).toLowerCase()}function B(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function P(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function D(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=te(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function _(e){this.data.characterReferenceType=e.type}function W(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=qe(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=ge(t)}const i=this.stack.pop();i.value+=r,i.position.end=et(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function J(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function U(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(n)(function(e){for(;!p(e););return e}(_e(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let c,l,u,h,p;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(We.lastIndex=u,c=We.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){n=i.slice(u);break}if(10===p&&u===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<h&&(a.push(i.slice(u,h)),t+=h-u),p){case 0:a.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),a.push(-2);t++<l;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function et(e){return{line:e.line,column:e.column,offset:e.offset}}function tt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?tt(e,r):nt(e,r)}}function nt(e,t){let n;for(n in t)if(Xe.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function rt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ue({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ue({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ue({start:t.start,end:t.end})+") is still open")}function it(e){const t=this;t.parser=function(n){return Qe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const ot={}.hasOwnProperty;const st={}.hasOwnProperty;function at(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)at(e,t.extensions[r]);for(n in t)if(st.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":ct(e[n],t[n]);break;case"handlers":lt(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function ct(e,t){t&&e.push(...t)}function lt(e,t){t&&Object.assign(e,t)}function ut(e,t,n){return">"+(n?"":" ")+e}function ht(e,t){return pt(e,t.inConstruct,!0)&&!pt(e,t.notInConstruct,!1)}function pt(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function dt(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&ht(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function ft(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function mt(e,t,n){return(n?"":" ")+e}function gt(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function yt(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}yt.peek=function(e,t,n){return n.options.emphasis||"*"};var kt=n(7741),xt=n(11806);function wt(e,t){let n=!1;return(0,kt.Vn)(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,xt.BK})),Boolean((!e.depth||e.depth<3)&&a(e)&&(t.options.setext||n))}function vt(e){return e.value||""}function St(e,t,n,r){const i=gt(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(a=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),a()),l+=c.move(")"),s(),l}function bt(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");const l=n.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(l+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(h+"]"),c}function Mt(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Ct(e,t){const n=a(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function It(e,t,n,r){const i=gt(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,c;if(Ct(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),c=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),c()),l+=s.move(")"),a(),l}function Tt(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(l+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(h+"]"),c}function Et(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Nt(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}vt.peek=function(){return"<"},St.peek=function(){return"!"},bt.peek=function(){return"!"},Mt.peek=function(){return"`"},It.peek=function(e,t,n){return Ct(e,n)?"<":"["},Tt.peek=function(){return"["};const Ot=(0,n(54918).O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function At(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}At.peek=function(e,t,n){return n.options.strong||"*"};const Rt={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),ut);return i(),s},break:dt,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(ft(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,mt);return e(),t}const a=n.createTracker(r),c=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),l=n.enter("codeFenced");let u=a.move(c);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(c),l(),u},definition:function(e,t,n,r){const i=gt(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(a=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),a()),s(),l},emphasis:yt,hardBreak:dt,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(wt(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),c=n.enter("phrasing");o.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),c(),a(),l},html:vt,image:St,imageReference:bt,inlineCode:Mt,link:It,linkReference:Tt,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Et(n);const a=e.ordered?"."===s?")":".":function(e){const t=Et(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),Nt(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(s=a),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),l},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Et(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return c(),l},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){const i=e.children.some((function(e){return Ot(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:At,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Nt(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},zt=[function(e,t,n,r){if("code"===t.type&&ft(t,r)&&("list"===e.type||e.type===t.type&&ft(e,r)))return!1;if("spread"in n&&"boolean"===typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&wt(t,r)))return;return n.spread?1:0}}];const Ft=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Lt=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ft},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ft},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:Ft},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ft},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ft},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ft},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ft},{atBreak:!0,character:"~"}];function Bt(e){return e.label||!e.identifier?e.label||"":Je(e.identifier)}function Pt(e){if(!e._compiled){const 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 jt(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Dt=/\r?\n|\r/g;function $t(e,t){const n=[];let r,i=0,o=0;for(;r=Dt.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}function Ht(e,t){return e-t}function _t(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let s,a=-1,c=0;for(;s=n.exec(o);)r.push(s.index);for(;++a<r.length;)c!==r[a]&&i.push(e.slice(c,r[a])),i.push("\\"),c=r[a];return i.push(e.slice(c)),i.join("")}function Wt(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),s=n[n.length-1];return i+=n.length-1,o=1===n.length?o+s.length:1+s.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function qt(e,t={}){const n={enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},indentLines:$t,associationId:Bt,containerPhrasing:Ut,containerFlow:Yt,createTracker:Wt,compilePattern:Pt,safe:Gt,stack:[],unsafe:[...Lt],join:[...zt],handlers:{...Rt},options:{},indexStack:[],handle:void 0};at(n,t),n.options.tightDefinitions&&n.join.push(Kt),n.handle=function(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&ot.call(t,e)){const n=String(t[e]);i=ot.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:Vt,unknown:Jt,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),r}function Vt(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Jt(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function Kt(e,t){if("definition"===e.type&&e.type===t.type)return 0}function Ut(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<i.length;){const l=i[s];let u;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),u=n?n(i[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",c=t.createTracker(n),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:a,after:u}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}(e,this,t)}function Yt(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const n=i[a];r[r.length-1]=a,s.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(jt(n,i[a+1],e,t)))}return r.pop(),s.join("")}(e,this,t)}function Gt(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!ht(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(s[r].before&&!e&&(s[r].before=!1),s[r].after&&!n&&(s[r].after=!1)):(i.push(r),s[r]={before:e,after:n})}}i.sort(Ht);let c=n.before?n.before.length:0;const l=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const e=i[a];e<c||e>=l||e+1<l&&i[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||i[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(c!==e&&o.push(_t(r.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\"))}return o.push(_t(r.slice(c,l),n.after)),o.join("")}(this,e,t)}function Zt(e){const t=this;t.compiler=function(n){return qt(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Xt(e){if(e)throw e}var Qt=n(21868);function en(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tn(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let c=-1;if(o)r(o);else{for(;++c<t.length;)null!==s[c]&&void 0!==s[c]||(s[c]=t[c]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){const t=o;if(r&&n)throw t;return i(t)}r||(a&&a.then&&"function"===typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}class nn extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=Ue(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}nn.prototype.file="",nn.prototype.name="",nn.prototype.reason="",nn.prototype.message="",nn.prototype.stack="",nn.prototype.column=void 0,nn.prototype.line=void 0,nn.prototype.ancestors=void 0,nn.prototype.cause=void 0,nn.prototype.fatal=void 0,nn.prototype.place=void 0,nn.prototype.ruleId=void 0,nn.prototype.source=void 0;const rn={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');on(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(on(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){on(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)on(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){on(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(s===c-1||1===a);else if(s!==c-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",o=0,s=c,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function on(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sn={cwd:function(){return"/"}};function an(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function cn(e){if("string"===typeof e)e=new URL(e);else if(!an(e)){const 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){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const ln=["history","path","basename","stem","extname","dirname"];class un{constructor(e){let t;t=e?an(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=sn.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ln.length;){const e=ln[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ln.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?rn.basename(this.path):void 0}set basename(e){pn(e,"basename"),hn(e,"basename"),this.path=rn.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?rn.dirname(this.path):void 0}set dirname(e){dn(this.basename,"dirname"),this.path=rn.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?rn.extname(this.path):void 0}set extname(e){if(hn(e,"extname"),dn(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){an(e)&&(e=cn(e)),pn(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?rn.basename(this.path,this.extname):void 0}set stem(e){pn(e,"stem"),hn(e,"stem"),this.path=rn.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new nn(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function hn(e,t){if(e&&e.includes(rn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rn.sep+"`")}function pn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function dn(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const fn=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const o of i){const e=Object.getOwnPropertyDescriptor(n,o);e&&Object.defineProperty(r,o,e)}return r},mn={}.hasOwnProperty;class gn extends fn{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=tn()}copy(){const e=new gn;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Qt(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(wn("data",this.frozen),this.namespace[e]=t,this):mn.call(this.namespace,e)&&this.namespace[e]||void 0:e?(wn("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=bn(e),n=this.parser||this.Parser;return kn("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),kn("process",this.parser||this.Parser),xn("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=bn(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,(function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);var s;"string"===typeof(s=o)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=o:r.result=o,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),kn("processSync",this.parser||this.Parser),xn("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,Xt(e),t=r})),Sn("processSync","process",n),t}run(e,t,n){vn(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=bn(t);r.run(e,s,(function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){Xt(e),n=t,r=!0})),Sn("runSync","run",r),n}stringify(e,t){this.freeze();const n=bn(t),r=this.compiler||this.Compiler;return xn("stringify",r),vn(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(wn("use",this.frozen),null===e||void 0===e);else if("function"===typeof e)a(e,t);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"===typeof e)a(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=Qt(!0,r.settings,e.settings))}function s(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];en(s)&&en(r)&&(r=Qt(!0,s,r)),n[i]=[e,r,...o]}}}}const yn=(new gn).freeze();function kn(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function xn(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function wn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vn(e){if(!en(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Sn(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bn(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new un(e)}var Mn,Cn,In,Tn,En,Nn,On,An=n(81866),Rn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},zn=(e,t,n)=>(Rn(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ln=(e,t,n,r)=>(Rn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class Bn{}class Pn{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=e=>{var t;null==(t=this.top())||t.push(e)},this.open=e=>{this.elements.push(e)},this.close=()=>{const e=this.elements.pop();if(!e)throw(0,An.qw)();return e}}}class jn extends Bn{constructor(e,t,n){super(),this.type=e,this.content=t,this.attrs=n}push(e,...t){this.content.push(e,...t)}pop(){return this.content.pop()}static create(e,t,n){return new jn(e,t,n)}}const Dn=class extends Pn{constructor(e){super(),Fn(this,Mn,void 0),Fn(this,Cn,void 0),Fn(this,In,void 0),Fn(this,Tn,void 0),Fn(this,En,void 0),Fn(this,Nn,void 0),Fn(this,On,void 0),Ln(this,Mn,o.vc.none),Ln(this,Cn,(e=>e.isText)),Ln(this,In,((e,t)=>{if(zn(this,Cn).call(this,e)&&zn(this,Cn).call(this,t)&&o.vc.sameSet(e.marks,t.marks))return this.schema.text(e.text+t.text,e.marks)})),Ln(this,Tn,(e=>{const t=Object.values({...this.schema.nodes,...this.schema.marks}).find((t=>t.spec.parseMarkdown.match(e)));if(!t)throw(0,An.y$)(e);return t})),Ln(this,En,(e=>{const t=zn(this,Tn).call(this,e);t.spec.parseMarkdown.runner(this,e,t)})),this.injectRoot=(e,t,n)=>(this.openNode(t,n),this.next(e.children),this),this.openNode=(e,t)=>(this.open(jn.create(e,[],t)),this),Ln(this,Nn,(()=>{Ln(this,Mn,o.vc.none);const e=this.close();return zn(this,On).call(this,e.type,e.attrs,e.content)})),this.closeNode=()=>(zn(this,Nn).call(this),this),Ln(this,On,((e,t,n)=>{const r=e.createAndFill(t,n,zn(this,Mn));if(!r)throw(0,An.Vh)(e,t,n);return this.push(r),r})),this.addNode=(e,t,n)=>(zn(this,On).call(this,e,t,n),this),this.openMark=(e,t)=>{const n=e.create(t);return Ln(this,Mn,n.addToSet(zn(this,Mn))),this},this.closeMark=e=>(Ln(this,Mn,e.removeFromSet(zn(this,Mn))),this),this.addText=e=>{const t=this.top();if(!t)throw(0,An.qw)();const n=t.pop(),r=this.schema.text(e,zn(this,Mn));if(!n)return t.push(r),this;const i=zn(this,In).call(this,n,r);return i?(t.push(i),this):(t.push(n,r),this)},this.build=()=>{let e;do{e=zn(this,Nn).call(this)}while(this.size());return e},this.next=(e=[])=>([e].flat().forEach((e=>zn(this,En).call(this,e))),this),this.toDoc=()=>this.build(),this.run=(e,t)=>{const n=e.runSync(e.parse(t),t);return this.next(n),this},this.schema=e}};Mn=new WeakMap,Cn=new WeakMap,In=new WeakMap,Tn=new WeakMap,En=new WeakMap,Nn=new WeakMap,On=new WeakMap,Dn.create=(e,t)=>{const n=new Dn(e);return e=>(n.run(t,e),n.toDoc())};let $n=Dn;const Hn=class extends Bn{constructor(e,t,n,r={}){super(),this.type=e,this.children=t,this.value=n,this.props=r,this.push=(e,...t)=>{this.children||(this.children=[]),this.children.push(e,...t)},this.pop=()=>{var e;return null==(e=this.children)?void 0:e.pop()}}};Hn.create=(e,t,n,r={})=>new Hn(e,t,n,r);let _n=Hn;var Wn,qn,Vn,Jn,Kn,Un,Yn,Gn,Zn,Xn,Qn,er;const tr=class extends Pn{constructor(e){super(),Fn(this,Wn,void 0),Fn(this,qn,void 0),Fn(this,Vn,void 0),Fn(this,Jn,void 0),Fn(this,Kn,void 0),Fn(this,Un,void 0),Fn(this,Yn,void 0),Fn(this,Gn,void 0),Fn(this,Zn,void 0),Fn(this,Xn,void 0),Fn(this,Qn,void 0),Fn(this,er,void 0),Ln(this,Wn,o.vc.none),Ln(this,qn,(e=>{const t=Object.values({...this.schema.nodes,...this.schema.marks}).find((t=>t.spec.toMarkdown.match(e)));if(!t)throw(0,An.OO)(e.type);return t})),Ln(this,Vn,(e=>zn(this,qn).call(this,e).spec.toMarkdown.runner(this,e))),Ln(this,Jn,((e,t)=>zn(this,qn).call(this,e).spec.toMarkdown.runner(this,e,t))),Ln(this,Kn,(e=>{const{marks:t}=e,n=e=>e.type.spec.priority??50;[...t].sort(((e,t)=>n(e)-n(t))).every((t=>!zn(this,Jn).call(this,t,e)))&&zn(this,Vn).call(this,e),t.forEach((e=>zn(this,er).call(this,e)))})),Ln(this,Un,((e,t)=>{var n;if(e.type===t||1!==(null==(n=e.children)?void 0:n.length))return e;const r=e=>{var n;if(e.type===t)return e;if(1!==(null==(n=e.children)?void 0:n.length))return null;const[i]=e.children;return i?r(i):null},i=r(e);if(!i)return e;const o=i.children?[...i.children]:void 0,s={...e,children:o};return s.children=o,i.children=[s],i})),Ln(this,Yn,(e=>{const{children:t}=e;return t&&(e.children=t.reduce(((e,t,n)=>{if(0===n)return[t];const r=e.at(-1);if(r&&r.isMark&&t.isMark){t=zn(this,Un).call(this,t,r.type);const{children:n,...i}=t,{children:o,...s}=r;if(t.type===r.type&&n&&o&&JSON.stringify(i)===JSON.stringify(s)){const t={...s,children:[...o,...n]};return e.slice(0,-1).concat(zn(this,Yn).call(this,t))}}return e.concat(t)}),[])),e})),Ln(this,Gn,(e=>{const t={...e.props,type:e.type};return e.children&&(t.children=e.children),e.value&&(t.value=e.value),t})),this.openNode=(e,t,n)=>(this.open(_n.create(e,void 0,t,n)),this),Ln(this,Zn,(()=>{const e=this.close();return zn(this,Xn).call(this,e.type,e.children,e.value,e.props)})),this.closeNode=()=>(zn(this,Zn).call(this),this),Ln(this,Xn,((e,t,n,r)=>{const i=_n.create(e,t,n,r),o=zn(this,Yn).call(this,zn(this,Gn).call(this,i));return this.push(o),o})),this.addNode=(e,t,n,r)=>(zn(this,Xn).call(this,e,t,n,r),this),Ln(this,Qn,((e,t,n,r)=>e.isInSet(zn(this,Wn))?this:(Ln(this,Wn,e.addToSet(zn(this,Wn))),this.openNode(t,n,{...r,isMark:!0})))),Ln(this,er,(e=>{e.isInSet(zn(this,Wn))&&(Ln(this,Wn,e.type.removeFromSet(zn(this,Wn))),zn(this,Zn).call(this))})),this.withMark=(e,t,n,r)=>(zn(this,Qn).call(this,e,t,n,r),this),this.closeMark=e=>(zn(this,er).call(this,e),this),this.build=()=>{let e=null;do{e=zn(this,Zn).call(this)}while(this.size());return e},this.next=e=>(e=>Object.prototype.hasOwnProperty.call(e,"size"))(e)?(e.forEach((e=>{zn(this,Kn).call(this,e)})),this):(zn(this,Kn).call(this,e),this),this.toString=e=>e.stringify(this.build()),this.run=e=>(this.next(e),this),this.schema=e}};Wn=new WeakMap,qn=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,Yn=new WeakMap,Gn=new WeakMap,Zn=new WeakMap,Xn=new WeakMap,Qn=new WeakMap,er=new WeakMap,tr.create=(e,t)=>{const n=new tr(e);return e=>(n.run(e),n.toString(t))};let nr=tr;var rr=n(22179),ir=n(57337),or=n(29410),sr=n(71097),ar=n(59200),cr=n(43742),lr=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ur=(e,t,n)=>(lr(e,t,"read from private field"),n?n.call(e):t.get(e)),hr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pr=(e,t,n,r)=>(lr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function dr(e,t){return e.meta={package:"@milkdown/core",group:"System",...t},e}const fr={strong:(e,t,n,r)=>{const i=e.marker||n.options.strong||"*",o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a},emphasis:(e,t,n,r)=>{const i=e.marker||n.options.emphasis||"*",o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}},mr=(0,i.eF)("ConfigReady");const gr=(0,i.eF)("InitReady"),yr=(0,i.oM)([],"initTimer"),kr=(0,i.oM)({},"editor"),xr=(0,i.oM)([],"inputRules"),wr=(0,i.oM)([],"prosePlugins"),vr=(0,i.oM)([],"remarkPlugins"),Sr=(0,i.oM)([],"nodeView"),br=(0,i.oM)([],"markView"),Mr=(0,i.oM)(yn().use(it).use(Zt),"remark"),Cr=(0,i.oM)({handlers:fr},"remarkStringifyOptions");function Ir(e){const t=t=>(t.inject(kr,e).inject(wr,[]).inject(vr,[]).inject(xr,[]).inject(Sr,[]).inject(br,[]).inject(Cr,{handlers:fr}).inject(Mr,yn().use(it).use(Zt)).inject(yr,[mr]).record(gr),async()=>{await t.waitTimers(yr);const e=t.get(Cr);return t.set(Mr,yn().use(it).use(Zt,e)),t.done(gr),()=>{t.remove(kr).remove(wr).remove(vr).remove(xr).remove(Sr).remove(br).remove(Cr).remove(Mr).remove(yr).clearTimer(gr)}});return dr(t,{displayName:"Init"}),t}const Tr=(0,i.eF)("SchemaReady"),Er=(0,i.oM)([],"schemaTimer"),Nr=(0,i.oM)({},"schema"),Or=(0,i.oM)([],"nodes"),Ar=(0,i.oM)([],"marks");function Rr(e){var t;return{...e,parseDOM:null==(t=e.parseDOM)?void 0:t.map((t=>({priority:e.priority,...t})))}}const zr=e=>(e.inject(Nr,{}).inject(Or,[]).inject(Ar,[]).inject(Er,[gr]).record(Tr),async()=>{await e.waitTimers(Er);const t=e.get(Mr),n=e.get(vr).reduce(((e,t)=>e.use(t.plugin,t.options)),t);e.set(Mr,n);const r=Object.fromEntries(e.get(Or).map((([e,t])=>[e,Rr(t)]))),i=Object.fromEntries(e.get(Ar).map((([e,t])=>[e,Rr(t)]))),s=new o.V_({nodes:r,marks:i});return e.set(Nr,s),e.done(Tr),()=>{e.remove(Nr).remove(Or).remove(Ar).remove(Er).clearTimer(Tr)}});dr(zr,{displayName:"Schema"});const Fr=(0,i.eF)("ParserReady"),Lr=()=>{throw(0,An.S1)()},Br=(0,i.oM)(Lr,"parser"),Pr=(0,i.oM)([],"parserTimer"),jr=e=>(e.inject(Br,Lr).inject(Pr,[Tr]).record(Fr),async()=>{await e.waitTimers(Pr);const t=e.get(Mr),n=e.get(Nr);return e.set(Br,$n.create(n,t)),e.done(Fr),()=>{e.remove(Br).remove(Pr).clearTimer(Fr)}});dr(jr,{displayName:"Parser"});const Dr=(0,i.eF)("SerializerReady"),$r=(0,i.oM)([],"serializerTimer"),Hr=()=>{throw(0,An.S1)()},_r=(0,i.oM)(Hr,"serializer"),Wr=e=>(e.inject(_r,Hr).inject($r,[Tr]).record(Dr),async()=>{await e.waitTimers($r);const t=e.get(Mr),n=e.get(Nr);return e.set(_r,nr.create(n,t)),e.done(Dr),()=>{e.remove(_r).remove($r).clearTimer(Dr)}});dr(Wr,{displayName:"Serializer"});const qr=(0,i.oM)("","defaultValue"),Vr=(0,i.oM)({},"editorState"),Jr=(0,i.oM)((e=>e),"stateOptions"),Kr=(0,i.oM)([],"editorStateTimer"),Ur=(0,i.eF)("EditorStateReady");const Yr=new rr.H$("MILKDOWN_STATE_TRACKER");function Gr(e){const t=(0,sr.QF)(ar.dU,sr.NE,sr.al,sr._M);return e.Backspace=t,e}const Zr=e=>(e.inject(qr,"").inject(Vr,{}).inject(Jr,(e=>e)).inject(Kr,[Fr,Dr,di]).record(Ur),async()=>{await e.waitTimers(Kr);const t=e.get(Nr),n=e.get(Br),r=e.get(xr),i=e.get(Jr),s=e.get(wr),a=function(e,t,n){if("string"==typeof e)return t(e);if("html"===e.type)return o.aw.fromSchema(n).parse(e.dom);if("json"===e.type)return o.NB.fromJSON(n,e.value);throw(0,An.rf)(e)}(e.get(qr),n,t),c=[...s,new rr.Sy({key:Yr,state:{init:()=>{},apply:(t,n,r,i)=>{e.set(Vr,i)}}}),(0,or.NJ)({rules:r}),(0,cr.h)(Gr(sr.YR))];e.set(wr,c);const l=i({schema:t,doc:a,plugins:c}),u=rr.yy.create(l);return e.set(Vr,u),e.done(Ur),()=>{e.remove(qr).remove(Vr).remove(Jr).remove(Kr).clearTimer(Ur)}});dr(Zr,{displayName:"EditorState"});const Xr=(0,i.eF)("EditorViewReady"),Qr=(0,i.oM)({},"editorView"),ei=(0,i.oM)([],"editorViewTimer"),ti=(0,i.oM)({},"editorViewOptions"),ni=(0,i.oM)(null,"root"),ri=(0,i.oM)(null,"rootDOM"),ii=(0,i.oM)({},"rootAttrs");const oi=new rr.H$("MILKDOWN_VIEW_CLEAR"),si=e=>(e.inject(ni,document.body).inject(Qr,{}).inject(ti,{}).inject(ri,null).inject(ii,{}).inject(ei,[Ur]).record(Xr),async()=>{await e.wait(gr);const t=e.get(ni)||document.body,n="string"==typeof t?document.querySelector(t):t;e.update(wr,(t=>[new rr.Sy({key:oi,view:t=>{const r=n?function(e,t){const n=document.createElement("div");n.className="milkdown",e.appendChild(n),t.set(ri,n);const r=t.get(ii);return Object.entries(r).forEach((([e,t])=>n.setAttribute(e,t))),n}(n,e):void 0;return(()=>{if(r&&n){const e=t.dom;n.replaceChild(r,e),r.appendChild(e)}})(),{destroy:()=>{null!=r&&r.parentNode&&(null==r||r.parentNode.replaceChild(t.dom,r)),null==r||r.remove()}}}}),...t])),await e.waitTimers(ei);const r=e.get(Vr),i=e.get(ti),o=Object.fromEntries(e.get(Sr)),s=Object.fromEntries(e.get(br)),a=new ir.tk(n,{state:r,nodeViews:o,markViews:s,...i});return function(e){e.classList.add("editor"),e.setAttribute("role","textbox")}(a.dom),e.set(Qr,a),e.done(Xr),()=>{null==a||a.destroy(),e.remove(ni).remove(Qr).remove(ti).remove(ri).remove(ii).remove(ei).clearTimer(Xr)}});var ai,ci;dr(si,{displayName:"EditorView"});class li{constructor(){hr(this,ai,void 0),hr(this,ci,void 0),pr(this,ai,new i.W2),pr(this,ci,null),this.setCtx=e=>{pr(this,ci,e)}}get ctx(){return ur(this,ci)}create(e,t){const n=e.create(ur(this,ai).sliceMap);return n.set(t),n}get(e){return ur(this,ai).get(e).get()}remove(e){return ur(this,ai).remove(e)}call(e,t){if(null==ur(this,ci))throw(0,An.gq)();const n=this.get(e)(t),r=ur(this,ci).get(Qr);return n(r.state,r.dispatch,r)}}function ui(e="cmdKey"){return(0,i.oM)((()=>()=>!1),e)}ai=new WeakMap,ci=new WeakMap;const hi=(0,i.oM)(new li,"commands"),pi=(0,i.oM)([Tr],"commandsTimer"),di=(0,i.eF)("CommandsReady"),fi=e=>{const t=new li;return t.setCtx(e),e.inject(hi,t).inject(pi,[Tr]).record(di),async()=>(await e.waitTimers(pi),e.done(di),()=>{e.remove(hi).remove(pi).clearTimer(di)})};dr(fi,{displayName:"Commands"});var mi,gi,yi,ki,xi,wi,vi,Si,bi,Mi,Ci,Ii,Ti,Ei,Ni;mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,ki=new WeakMap,xi=new WeakMap,wi=new WeakMap,vi=new WeakMap,Si=new WeakMap,bi=new WeakMap,Mi=new WeakMap,Ci=new WeakMap,Ii=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Ni=new WeakMap;let Oi=class e{constructor(){hr(this,mi,void 0),hr(this,gi,void 0),hr(this,yi,void 0),hr(this,ki,void 0),hr(this,xi,void 0),hr(this,wi,void 0),hr(this,vi,void 0),hr(this,Si,void 0),hr(this,bi,void 0),hr(this,Mi,void 0),hr(this,Ci,void 0),hr(this,Ii,void 0),hr(this,Ti,void 0),hr(this,Ei,void 0),hr(this,Ni,void 0),pr(this,mi,!1),pr(this,gi,"Idle"),pr(this,yi,[]),pr(this,ki,(()=>{})),pr(this,xi,new i.W2),pr(this,wi,new i.SU),pr(this,vi,new Map),pr(this,Si,new Map),pr(this,bi,new i.A7(ur(this,xi),ur(this,wi))),pr(this,Mi,(()=>{const e=function(e){const t=t=>(t.record(mr),async()=>(await e(t),t.done(mr),()=>{t.clearTimer(mr)}));return dr(t,{displayName:"Config"}),t}((async e=>{await Promise.all(ur(this,yi).map((t=>t(e))))})),t=[zr,jr,Wr,fi,Zr,si,Ir(this),e];ur(this,Ci).call(this,t,ur(this,Si))})),pr(this,Ci,((e,t)=>{e.forEach((e=>{const n=ur(this,bi).produce(ur(this,mi)?e.meta:void 0),r=e(n);t.set(e,{ctx:n,handler:r,cleanup:void 0})}))})),pr(this,Ii,((e,t=!1)=>Promise.all([e].flat().map((e=>{const n=ur(this,vi).get(e),r=null==n?void 0:n.cleanup;return t?ur(this,vi).delete(e):ur(this,vi).set(e,{ctx:void 0,handler:void 0,cleanup:void 0}),"function"==typeof r?r():r}))))),pr(this,Ti,(async()=>{await Promise.all([...ur(this,Si).entries()].map((([e,{cleanup:t}])=>"function"==typeof t?t():t))),ur(this,Si).clear()})),pr(this,Ei,(e=>{pr(this,gi,e),ur(this,ki).call(this,e)})),pr(this,Ni,(e=>[...e.entries()].map((async([t,n])=>{const{ctx:r,handler:i}=n;if(!i)return;const o=await i();e.set(t,{ctx:r,handler:i,cleanup:o})})))),this.enableInspector=(e=!0)=>(pr(this,mi,e),this),this.onStatusChange=e=>(pr(this,ki,e),this),this.config=e=>(ur(this,yi).push(e),this),this.removeConfig=e=>(pr(this,yi,ur(this,yi).filter((t=>t!==e))),this),this.use=e=>{const t=[e].flat();return t.flat().forEach((e=>{ur(this,vi).set(e,{ctx:void 0,handler:void 0,cleanup:void 0})})),"Created"===ur(this,gi)&&ur(this,Ci).call(this,t,ur(this,vi)),this},this.remove=async e=>"OnCreate"===ur(this,gi)?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise((t=>{setTimeout((()=>{t(this.remove(e))}),50)}))):(await ur(this,Ii).call(this,[e].flat(),!0),this),this.create=async()=>("OnCreate"===ur(this,gi)||("Created"===ur(this,gi)&&await this.destroy(),ur(this,Ei).call(this,"OnCreate"),ur(this,Mi).call(this),ur(this,Ci).call(this,[...ur(this,vi).keys()],ur(this,vi)),await Promise.all([ur(this,Ni).call(this,ur(this,Si)),ur(this,Ni).call(this,ur(this,vi))].flat()),ur(this,Ei).call(this,"Created")),this),this.destroy=async(e=!1)=>"Destroyed"===ur(this,gi)||"OnDestroy"===ur(this,gi)?this:"OnCreate"===ur(this,gi)?new Promise((t=>{setTimeout((()=>{t(this.destroy(e))}),50)})):(e&&pr(this,yi,[]),ur(this,Ei).call(this,"OnDestroy"),await ur(this,Ii).call(this,[...ur(this,vi).keys()],e),await ur(this,Ti).call(this),ur(this,Ei).call(this,"Destroyed"),this),this.action=e=>e(ur(this,bi)),this.inspect=()=>ur(this,mi)?[...ur(this,Si).values(),...ur(this,vi).values()].map((({ctx:e})=>{var t;return null==(t=null==e?void 0:e.inspector)?void 0:t.read()})).filter((e=>!!e)):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new e}get ctx(){return ur(this,bi)}get status(){return ur(this,gi)}}},48281:function(e,t,n){"use strict";n.d(t,{A7:function(){return N},SU:function(){return O},W2:function(){return h},eF:function(){return D},oM:function(){return f}});var r,i,o,s=n(81866),a=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},c=(e,t,n)=>(a(e,t,"read from private field"),n?n.call(e):t.get(e)),l=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},u=(e,t,n,r)=>(a(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class h{constructor(){this.sliceMap=new Map,this.get=e=>{const t="string"==typeof e?[...this.sliceMap.values()].find((t=>t.type.name===e)):this.sliceMap.get(e.id);if(!t){const t="string"==typeof e?e:e.name;throw(0,s.KE)(t)}return t},this.remove=e=>{const t="string"==typeof e?[...this.sliceMap.values()].find((t=>t.type.name===e)):this.sliceMap.get(e.id);t&&this.sliceMap.delete(t.type.id)},this.has=e=>"string"==typeof e?[...this.sliceMap.values()].some((t=>t.type.name===e)):this.sliceMap.has(e.id)}}class p{constructor(e,t,n){l(this,r,void 0),l(this,i,void 0),l(this,o,void 0),u(this,r,[]),u(this,o,(()=>{c(this,r).forEach((e=>e(c(this,i))))})),this.set=e=>{u(this,i,e),c(this,o).call(this)},this.get=()=>c(this,i),this.update=e=>{u(this,i,e(c(this,i))),c(this,o).call(this)},this.type=n,u(this,i,t),e.set(n.id,this)}on(e){return c(this,r).push(e),()=>{u(this,r,c(this,r).filter((t=>t!==e)))}}once(e){const t=this.on((n=>{e(n),t()}));return t}off(e){u(this,r,c(this,r).filter((t=>t!==e)))}offAll(){u(this,r,[])}}r=new WeakMap,i=new WeakMap,o=new WeakMap;class d{constructor(e,t){this.id=Symbol(`Context-${t}`),this.name=t,this._defaultValue=e,this._typeInfo=()=>{throw(0,s.S1)()}}create(e,t=this._defaultValue){return new p(e,t,this)}}const f=(e,t)=>new d(e,t);var m,g,y,k,x,w,v,S,b,M,C,I,T;class E{constructor(e,t,n){l(this,m,void 0),l(this,g,void 0),l(this,y,void 0),l(this,k,void 0),l(this,x,void 0),l(this,w,void 0),l(this,v,void 0),l(this,S,void 0),l(this,b,void 0),u(this,k,new Set),u(this,x,new Set),u(this,w,new Map),u(this,v,new Map),this.read=()=>({metadata:c(this,m),injectedSlices:[...c(this,k)].map((e=>({name:"string"==typeof e?e:e.name,value:c(this,S).call(this,e)}))),consumedSlices:[...c(this,x)].map((e=>({name:"string"==typeof e?e:e.name,value:c(this,S).call(this,e)}))),recordedTimers:[...c(this,w)].map((([e,{duration:t}])=>({name:e.name,duration:t,status:c(this,b).call(this,e)}))),waitTimers:[...c(this,v)].map((([e,{duration:t}])=>({name:e.name,duration:t,status:c(this,b).call(this,e)})))}),this.onRecord=e=>{c(this,w).set(e,{start:Date.now(),duration:0})},this.onClear=e=>{c(this,w).delete(e)},this.onDone=e=>{const t=c(this,w).get(e);t&&(t.duration=Date.now()-t.start)},this.onWait=(e,t)=>{const n=Date.now();t.finally((()=>{c(this,v).set(e,{duration:Date.now()-n})}))},this.onInject=e=>{c(this,k).add(e)},this.onRemove=e=>{c(this,k).delete(e)},this.onUse=e=>{c(this,x).add(e)},u(this,S,(e=>c(this,g).get(e).get())),u(this,b,(e=>c(this,y).get(e).status)),u(this,g,e),u(this,y,t),u(this,m,n)}}m=new WeakMap,g=new WeakMap,y=new WeakMap,k=new WeakMap,x=new WeakMap,w=new WeakMap,v=new WeakMap,S=new WeakMap,b=new WeakMap;M=new WeakMap,C=new WeakMap,I=new WeakMap,T=new WeakMap;let N=class e{constructor(t,n,r){l(this,M,void 0),l(this,C,void 0),l(this,I,void 0),l(this,T,void 0),this.produce=t=>t&&Object.keys(t).length?new e(c(this,M),c(this,C),{...t}):this,this.inject=(e,t)=>{var n;const r=e.create(c(this,M).sliceMap);return null!=t&&r.set(t),null==(n=c(this,T))||n.onInject(e),this},this.remove=e=>{var t;return c(this,M).remove(e),null==(t=c(this,T))||t.onRemove(e),this},this.record=e=>{var t;return e.create(c(this,C).store),null==(t=c(this,T))||t.onRecord(e),this},this.clearTimer=e=>{var t;return c(this,C).remove(e),null==(t=c(this,T))||t.onClear(e),this},this.isInjected=e=>c(this,M).has(e),this.isRecorded=e=>c(this,C).has(e),this.use=e=>{var t;return null==(t=c(this,T))||t.onUse(e),c(this,M).get(e)},this.get=e=>this.use(e).get(),this.set=(e,t)=>this.use(e).set(t),this.update=(e,t)=>this.use(e).update(t),this.timer=e=>c(this,C).get(e),this.done=e=>{var t;this.timer(e).done(),null==(t=c(this,T))||t.onDone(e)},this.wait=e=>{var t;const n=this.timer(e).start();return null==(t=c(this,T))||t.onWait(e,n),n},this.waitTimers=async e=>{await Promise.all(this.get(e).map((e=>this.wait(e))))},u(this,M,t),u(this,C,n),u(this,I,r),r&&u(this,T,new E(t,n,r))}get meta(){return c(this,I)}get inspector(){return c(this,T)}};class O{constructor(){this.store=new Map,this.get=e=>{const t=this.store.get(e.id);if(!t)throw(0,s._O)(e.name);return t},this.remove=e=>{this.store.delete(e.id)},this.has=e=>this.store.has(e.id)}}var A,R,z,F,L,B;class P{constructor(e,t){l(this,A,void 0),l(this,R,void 0),l(this,z,void 0),l(this,F,void 0),l(this,L,void 0),l(this,B,void 0),u(this,A,null),u(this,R,null),u(this,F,"pending"),this.start=()=>(c(this,A)??u(this,A,new Promise(((e,t)=>{u(this,R,(t=>{t instanceof CustomEvent&&t.detail.id===c(this,z)&&(u(this,F,"resolved"),c(this,L).call(this),t.stopImmediatePropagation(),e())})),c(this,B).call(this,(()=>{"pending"===c(this,F)&&u(this,F,"rejected"),c(this,L).call(this),t(new Error(`Timing ${this.type.name} timeout.`))})),u(this,F,"pending"),addEventListener(this.type.name,c(this,R))}))),c(this,A)),this.done=()=>{const e=new CustomEvent(this.type.name,{detail:{id:c(this,z)}});dispatchEvent(e)},u(this,L,(()=>{c(this,R)&&removeEventListener(this.type.name,c(this,R))})),u(this,B,(e=>{setTimeout((()=>{e()}),this.type.timeout)})),u(this,z,Symbol(t.name)),this.type=t,e.set(t.id,this)}get status(){return c(this,F)}}A=new WeakMap,R=new WeakMap,z=new WeakMap,F=new WeakMap,L=new WeakMap,B=new WeakMap;class j{constructor(e,t=3e3){this.create=e=>new P(e,this),this.id=Symbol(`Timer-${e}`),this.name=e,this.timeout=t}}const D=(e,t=3e3)=>new j(e,t)},81866:function(e,t,n){"use strict";n.d(t,{GZ:function(){return m},KE:function(){return c},OO:function(){return f},S1:function(){return u},Vh:function(){return h},YN:function(){return y},_O:function(){return l},d2:function(){return k},gq:function(){return g},qw:function(){return p},rf:function(){return a},y$:function(){return d}});var r=(e=>(e.docTypeError="docTypeError",e.contextNotFound="contextNotFound",e.timerNotFound="timerNotFound",e.ctxCallOutOfScope="ctxCallOutOfScope",e.createNodeInParserFail="createNodeInParserFail",e.stackOverFlow="stackOverFlow",e.parserMatchError="parserMatchError",e.serializerMatchError="serializerMatchError",e.getAtomFromSchemaFail="getAtomFromSchemaFail",e.expectDomTypeError="expectDomTypeError",e.callCommandBeforeEditorView="callCommandBeforeEditorView",e.missingRootElement="missingRootElement",e.missingNodeInSchema="missingNodeInSchema",e.missingMarkInSchema="missingMarkInSchema",e.ctxNotBind="ctxNotBind",e.missingYjsDoc="missingYjsDoc",e))(r||{});class i extends Error{constructor(e,t){super(t),this.name="MilkdownError",this.code=e}}const o=(e,t)=>"function"==typeof t?"[Function]":t,s=e=>JSON.stringify(e,o);function a(e){return new i(r.docTypeError,`Doc type error, unsupported type: ${s(e)}`)}function c(e){return new i(r.contextNotFound,`Context "${e}" not found, do you forget to inject it?`)}function l(e){return new i(r.timerNotFound,`Timer "${e}" not found, do you forget to record it?`)}function u(){return new i(r.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function h(...e){const t=e.reduce(((e,t)=>{if(!t)return e;const n=e=>Array.isArray(e)?e.map((e=>n(e))).join(", "):e.toJSON?s(e.toJSON()):e.spec?s(e.spec):e.toString();return`${e}, ${n(t)}`}),"Create prosemirror node from remark failed in parser");return new i(r.createNodeInParserFail,t)}function p(){return new i(r.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function d(e){return new i(r.parserMatchError,`Cannot match target parser for node: ${s(e)}.`)}function f(e){return new i(r.serializerMatchError,`Cannot match target serializer for node: ${s(e)}.`)}function m(e){return new i(r.expectDomTypeError,`Expect to be a dom, but get: ${s(e)}.`)}function g(){return new i(r.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized")}function y(e){return new i(r.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`)}function k(e){return new i(r.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`)}},66333:function(e,t,n){"use strict";n.d(t,{iO:function(){return lt}});var r=n(83784),i=n(64462),o=n(71097),s=n(47407),a=n(81866),c=n(59200);function l(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function u(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var h=[["\xdf","ss"],["\u1e9e","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["\u0150","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["\u0170","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["\u0151","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["\u0171","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["\u1e9e","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01a1","o"],["\u01a0","O"],["\u01b0","u"],["\u01af","U"],["\u1ea1","a"],["\u1ea0","A"],["\u1ea3","a"],["\u1ea2","A"],["\u1ea5","a"],["\u1ea4","A"],["\u1ea7","a"],["\u1ea6","A"],["\u1ea9","a"],["\u1ea8","A"],["\u1eab","a"],["\u1eaa","A"],["\u1ead","a"],["\u1eac","A"],["\u1eaf","a"],["\u1eae","A"],["\u1eb1","a"],["\u1eb0","A"],["\u1eb3","a"],["\u1eb2","A"],["\u1eb5","a"],["\u1eb4","A"],["\u1eb7","a"],["\u1eb6","A"],["\u1eb9","e"],["\u1eb8","E"],["\u1ebb","e"],["\u1eba","E"],["\u1ebd","e"],["\u1ebc","E"],["\u1ebf","e"],["\u1ebe","E"],["\u1ec1","e"],["\u1ec0","E"],["\u1ec3","e"],["\u1ec2","E"],["\u1ec5","e"],["\u1ec4","E"],["\u1ec7","e"],["\u1ec6","E"],["\u1ec9","i"],["\u1ec8","I"],["\u1ecb","i"],["\u1eca","I"],["\u1ecd","o"],["\u1ecc","O"],["\u1ecf","o"],["\u1ece","O"],["\u1ed1","o"],["\u1ed0","O"],["\u1ed3","o"],["\u1ed2","O"],["\u1ed5","o"],["\u1ed4","O"],["\u1ed7","o"],["\u1ed6","O"],["\u1ed9","o"],["\u1ed8","O"],["\u1edb","o"],["\u1eda","O"],["\u1edd","o"],["\u1edc","O"],["\u1edf","o"],["\u1ede","O"],["\u1ee1","o"],["\u1ee0","O"],["\u1ee3","o"],["\u1ee2","O"],["\u1ee5","u"],["\u1ee4","U"],["\u1ee7","u"],["\u1ee6","U"],["\u1ee9","u"],["\u1ee8","U"],["\u1eeb","u"],["\u1eea","U"],["\u1eed","u"],["\u1eec","U"],["\u1eef","u"],["\u1eee","U"],["\u1ef1","u"],["\u1ef0","U"],["\u1ef3","y"],["\u1ef2","Y"],["\u1ef5","y"],["\u1ef4","Y"],["\u1ef7","y"],["\u1ef6","Y"],["\u1ef9","y"],["\u1ef8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062a","t"],["\u062b","th"],["\u062c","j"],["\u062d","h"],["\u062e","kh"],["\u062f","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063a","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064a","y"],["\u064e\u200e","a"],["\u064f","u"],["\u0650\u200e","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06a9","k"],["\u06af","g"],["\u067e","p"],["\u0698","zh"],["\u06cc","y"],["\u06f0","0"],["\u06f1","1"],["\u06f2","2"],["\u06f3","3"],["\u06f4","4"],["\u06f5","5"],["\u06f6","6"],["\u06f7","7"],["\u06f8","8"],["\u06f9","9"],["\u067c","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\ufeab","d"],["\ufead","r"],["\u0693","r"],["\ufeaf","z"],["\u0696","g"],["\u069a","x"],["\u06ab","g"],["\u06bc","n"],["\u06c0","e"],["\u06d0","e"],["\u06cd","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06ba","n"],["\u06c1","h"],["\u06be","h"],["\u06d2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044a\u0435","ye"],["\u042a\u0435","Ye"],["\u044a\u0415","yE"],["\u042a\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044b\u0439","iy"],["\u042b\u0439","Iy"],["\u042b\u0419","IY"],["\u044b\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041a","K"],["\u043a","k"],["\u041b","L"],["\u043b","l"],["\u041c","M"],["\u043c","m"],["\u041d","N"],["\u043d","n"],["\u041e","O"],["\u043e","o"],["\u041f","P"],["\u043f","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042a",""],["\u044a",""],["\u042b","Y"],["\u044b","y"],["\u042c",""],["\u044c",""],["\u042d","E"],["\u044d","e"],["\u042e","Yu"],["\u044e","yu"],["\u042f","Ya"],["\u044f","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021b","t"],["\u021a","T"],["\u0163","t"],["\u0162","T"],["\u015f","s"],["\u015e","S"],["\xe7","c"],["\xc7","C"],["\u011f","g"],["\u011e","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056a","zh"],["\u053a","Zh"],["\u056b","i"],["\u053b","I"],["\u056c","l"],["\u053c","L"],["\u056d","kh"],["\u053d","Kh"],["\u056e","ts"],["\u053e","Ts"],["\u056f","k"],["\u053f","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057a","p"],["\u054a","P"],["\u057b","j"],["\u054b","J"],["\u057c","r"],["\u054c","R"],["\u057d","s"],["\u054d","S"],["\u057e","v"],["\u054e","V"],["\u057f","t"],["\u054f","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10d0","a"],["\u10d1","b"],["\u10d2","g"],["\u10d3","d"],["\u10d4","e"],["\u10d5","v"],["\u10d6","z"],["\u10d7","t"],["\u10d8","i"],["\u10d9","k"],["\u10da","l"],["\u10db","m"],["\u10dc","n"],["\u10dd","o"],["\u10de","p"],["\u10df","zh"],["\u10e0","r"],["\u10e1","s"],["\u10e2","t"],["\u10e3","u"],["\u10e4","ph"],["\u10e5","q"],["\u10e6","gh"],["\u10e7","k"],["\u10e8","sh"],["\u10e9","ch"],["\u10ea","ts"],["\u10eb","dz"],["\u10ec","ts"],["\u10ed","tch"],["\u10ee","kh"],["\u10ef","j"],["\u10f0","h"],["\u010d","c"],["\u010f","d"],["\u011b","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016f","u"],["\u017e","z"],["\u010c","C"],["\u010e","D"],["\u011a","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016e","U"],["\u017d","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078a","f"],["\u078b","dh"],["\u078c","th"],["\u078d","l"],["\u078e","g"],["\u078f","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079a","kh"],["\u079b","th"],["\u079c","z"],["\u079d","sh"],["\u079e","s"],["\u079f","d"],["\u07a0","t"],["\u07a1","z"],["\u07a2","a"],["\u07a3","gh"],["\u07a4","q"],["\u07a5","w"],["\u07a6","a"],["\u07a7","aa"],["\u07a8","i"],["\u07a9","ee"],["\u07aa","u"],["\u07ab","oo"],["\u07ac","e"],["\u07ad","ey"],["\u07ae","o"],["\u07af","oa"],["\u07b0",""],["\u03b1","a"],["\u03b2","v"],["\u03b3","g"],["\u03b4","d"],["\u03b5","e"],["\u03b6","z"],["\u03b7","i"],["\u03b8","th"],["\u03b9","i"],["\u03ba","k"],["\u03bb","l"],["\u03bc","m"],["\u03bd","n"],["\u03be","ks"],["\u03bf","o"],["\u03c0","p"],["\u03c1","r"],["\u03c3","s"],["\u03c4","t"],["\u03c5","y"],["\u03c6","f"],["\u03c7","x"],["\u03c8","ps"],["\u03c9","o"],["\u03ac","a"],["\u03ad","e"],["\u03af","i"],["\u03cc","o"],["\u03cd","y"],["\u03ae","i"],["\u03ce","o"],["\u03c2","s"],["\u03ca","i"],["\u03b0","y"],["\u03cb","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039a","K"],["\u039b","L"],["\u039c","M"],["\u039d","N"],["\u039e","KS"],["\u039f","O"],["\u03a0","P"],["\u03a1","R"],["\u03a3","S"],["\u03a4","T"],["\u03a5","Y"],["\u03a6","F"],["\u03a7","X"],["\u03a8","PS"],["\u03a9","O"],["\u0386","A"],["\u0388","E"],["\u038a","I"],["\u038c","O"],["\u038e","Y"],["\u0389","I"],["\u038f","O"],["\u03aa","I"],["\u03ab","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012b","i"],["\u0137","k"],["\u013c","l"],["\u0146","n"],["\u016b","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012a","I"],["\u0136","K"],["\u013b","L"],["\u0145","N"],["\u016a","U"],["\u010d","c"],["\u0161","s"],["\u017e","z"],["\u010c","C"],["\u0160","S"],["\u017d","Z"],["\u0105","a"],["\u010d","c"],["\u0119","e"],["\u0117","e"],["\u012f","i"],["\u0161","s"],["\u0173","u"],["\u016b","u"],["\u017e","z"],["\u0104","A"],["\u010c","C"],["\u0118","E"],["\u0116","E"],["\u012e","I"],["\u0160","S"],["\u0172","U"],["\u016a","U"],["\u040c","Kj"],["\u045c","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040a","Nj"],["\u045a","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015b","s"],["\u017a","z"],["\u017c","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015a","S"],["\u0179","Z"],["\u017b","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xa2","c"],["\xa5","Y"],["\u07ff","b"],["\u09f3","t"],["\u0af1","Bo"],["\u0e3f","B"],["\u20a0","CE"],["\u20a1","C"],["\u20a2","Cr"],["\u20a3","F"],["\u20a5","m"],["\u20a6","N"],["\u20a7","Pt"],["\u20a8","Rs"],["\u20a9","W"],["\u20ab","s"],["\u20ac","E"],["\u20ad","K"],["\u20ae","T"],["\u20af","Dp"],["\u20b0","S"],["\u20b1","P"],["\u20b2","G"],["\u20b3","A"],["\u20b4","S"],["\u20b5","C"],["\u20b6","tt"],["\u20b7","S"],["\u20b8","T"],["\u20b9","R"],["\u20ba","L"],["\u20bd","P"],["\u20bf","B"],["\ufe69","$"],["\uffe0","c"],["\uffe5","Y"],["\uffe6","W"],["\ud835\udc00","A"],["\ud835\udc01","B"],["\ud835\udc02","C"],["\ud835\udc03","D"],["\ud835\udc04","E"],["\ud835\udc05","F"],["\ud835\udc06","G"],["\ud835\udc07","H"],["\ud835\udc08","I"],["\ud835\udc09","J"],["\ud835\udc0a","K"],["\ud835\udc0b","L"],["\ud835\udc0c","M"],["\ud835\udc0d","N"],["\ud835\udc0e","O"],["\ud835\udc0f","P"],["\ud835\udc10","Q"],["\ud835\udc11","R"],["\ud835\udc12","S"],["\ud835\udc13","T"],["\ud835\udc14","U"],["\ud835\udc15","V"],["\ud835\udc16","W"],["\ud835\udc17","X"],["\ud835\udc18","Y"],["\ud835\udc19","Z"],["\ud835\udc1a","a"],["\ud835\udc1b","b"],["\ud835\udc1c","c"],["\ud835\udc1d","d"],["\ud835\udc1e","e"],["\ud835\udc1f","f"],["\ud835\udc20","g"],["\ud835\udc21","h"],["\ud835\udc22","i"],["\ud835\udc23","j"],["\ud835\udc24","k"],["\ud835\udc25","l"],["\ud835\udc26","m"],["\ud835\udc27","n"],["\ud835\udc28","o"],["\ud835\udc29","p"],["\ud835\udc2a","q"],["\ud835\udc2b","r"],["\ud835\udc2c","s"],["\ud835\udc2d","t"],["\ud835\udc2e","u"],["\ud835\udc2f","v"],["\ud835\udc30","w"],["\ud835\udc31","x"],["\ud835\udc32","y"],["\ud835\udc33","z"],["\ud835\udc34","A"],["\ud835\udc35","B"],["\ud835\udc36","C"],["\ud835\udc37","D"],["\ud835\udc38","E"],["\ud835\udc39","F"],["\ud835\udc3a","G"],["\ud835\udc3b","H"],["\ud835\udc3c","I"],["\ud835\udc3d","J"],["\ud835\udc3e","K"],["\ud835\udc3f","L"],["\ud835\udc40","M"],["\ud835\udc41","N"],["\ud835\udc42","O"],["\ud835\udc43","P"],["\ud835\udc44","Q"],["\ud835\udc45","R"],["\ud835\udc46","S"],["\ud835\udc47","T"],["\ud835\udc48","U"],["\ud835\udc49","V"],["\ud835\udc4a","W"],["\ud835\udc4b","X"],["\ud835\udc4c","Y"],["\ud835\udc4d","Z"],["\ud835\udc4e","a"],["\ud835\udc4f","b"],["\ud835\udc50","c"],["\ud835\udc51","d"],["\ud835\udc52","e"],["\ud835\udc53","f"],["\ud835\udc54","g"],["\ud835\udc56","i"],["\ud835\udc57","j"],["\ud835\udc58","k"],["\ud835\udc59","l"],["\ud835\udc5a","m"],["\ud835\udc5b","n"],["\ud835\udc5c","o"],["\ud835\udc5d","p"],["\ud835\udc5e","q"],["\ud835\udc5f","r"],["\ud835\udc60","s"],["\ud835\udc61","t"],["\ud835\udc62","u"],["\ud835\udc63","v"],["\ud835\udc64","w"],["\ud835\udc65","x"],["\ud835\udc66","y"],["\ud835\udc67","z"],["\ud835\udc68","A"],["\ud835\udc69","B"],["\ud835\udc6a","C"],["\ud835\udc6b","D"],["\ud835\udc6c","E"],["\ud835\udc6d","F"],["\ud835\udc6e","G"],["\ud835\udc6f","H"],["\ud835\udc70","I"],["\ud835\udc71","J"],["\ud835\udc72","K"],["\ud835\udc73","L"],["\ud835\udc74","M"],["\ud835\udc75","N"],["\ud835\udc76","O"],["\ud835\udc77","P"],["\ud835\udc78","Q"],["\ud835\udc79","R"],["\ud835\udc7a","S"],["\ud835\udc7b","T"],["\ud835\udc7c","U"],["\ud835\udc7d","V"],["\ud835\udc7e","W"],["\ud835\udc7f","X"],["\ud835\udc80","Y"],["\ud835\udc81","Z"],["\ud835\udc82","a"],["\ud835\udc83","b"],["\ud835\udc84","c"],["\ud835\udc85","d"],["\ud835\udc86","e"],["\ud835\udc87","f"],["\ud835\udc88","g"],["\ud835\udc89","h"],["\ud835\udc8a","i"],["\ud835\udc8b","j"],["\ud835\udc8c","k"],["\ud835\udc8d","l"],["\ud835\udc8e","m"],["\ud835\udc8f","n"],["\ud835\udc90","o"],["\ud835\udc91","p"],["\ud835\udc92","q"],["\ud835\udc93","r"],["\ud835\udc94","s"],["\ud835\udc95","t"],["\ud835\udc96","u"],["\ud835\udc97","v"],["\ud835\udc98","w"],["\ud835\udc99","x"],["\ud835\udc9a","y"],["\ud835\udc9b","z"],["\ud835\udc9c","A"],["\ud835\udc9e","C"],["\ud835\udc9f","D"],["\ud835\udca2","g"],["\ud835\udca5","J"],["\ud835\udca6","K"],["\ud835\udca9","N"],["\ud835\udcaa","O"],["\ud835\udcab","P"],["\ud835\udcac","Q"],["\ud835\udcae","S"],["\ud835\udcaf","T"],["\ud835\udcb0","U"],["\ud835\udcb1","V"],["\ud835\udcb2","W"],["\ud835\udcb3","X"],["\ud835\udcb4","Y"],["\ud835\udcb5","Z"],["\ud835\udcb6","a"],["\ud835\udcb7","b"],["\ud835\udcb8","c"],["\ud835\udcb9","d"],["\ud835\udcbb","f"],["\ud835\udcbd","h"],["\ud835\udcbe","i"],["\ud835\udcbf","j"],["\ud835\udcc0","h"],["\ud835\udcc1","l"],["\ud835\udcc2","m"],["\ud835\udcc3","n"],["\ud835\udcc5","p"],["\ud835\udcc6","q"],["\ud835\udcc7","r"],["\ud835\udcc8","s"],["\ud835\udcc9","t"],["\ud835\udcca","u"],["\ud835\udccb","v"],["\ud835\udccc","w"],["\ud835\udccd","x"],["\ud835\udcce","y"],["\ud835\udccf","z"],["\ud835\udcd0","A"],["\ud835\udcd1","B"],["\ud835\udcd2","C"],["\ud835\udcd3","D"],["\ud835\udcd4","E"],["\ud835\udcd5","F"],["\ud835\udcd6","G"],["\ud835\udcd7","H"],["\ud835\udcd8","I"],["\ud835\udcd9","J"],["\ud835\udcda","K"],["\ud835\udcdb","L"],["\ud835\udcdc","M"],["\ud835\udcdd","N"],["\ud835\udcde","O"],["\ud835\udcdf","P"],["\ud835\udce0","Q"],["\ud835\udce1","R"],["\ud835\udce2","S"],["\ud835\udce3","T"],["\ud835\udce4","U"],["\ud835\udce5","V"],["\ud835\udce6","W"],["\ud835\udce7","X"],["\ud835\udce8","Y"],["\ud835\udce9","Z"],["\ud835\udcea","a"],["\ud835\udceb","b"],["\ud835\udcec","c"],["\ud835\udced","d"],["\ud835\udcee","e"],["\ud835\udcef","f"],["\ud835\udcf0","g"],["\ud835\udcf1","h"],["\ud835\udcf2","i"],["\ud835\udcf3","j"],["\ud835\udcf4","k"],["\ud835\udcf5","l"],["\ud835\udcf6","m"],["\ud835\udcf7","n"],["\ud835\udcf8","o"],["\ud835\udcf9","p"],["\ud835\udcfa","q"],["\ud835\udcfb","r"],["\ud835\udcfc","s"],["\ud835\udcfd","t"],["\ud835\udcfe","u"],["\ud835\udcff","v"],["\ud835\udd00","w"],["\ud835\udd01","x"],["\ud835\udd02","y"],["\ud835\udd03","z"],["\ud835\udd04","A"],["\ud835\udd05","B"],["\ud835\udd07","D"],["\ud835\udd08","E"],["\ud835\udd09","F"],["\ud835\udd0a","G"],["\ud835\udd0d","J"],["\ud835\udd0e","K"],["\ud835\udd0f","L"],["\ud835\udd10","M"],["\ud835\udd11","N"],["\ud835\udd12","O"],["\ud835\udd13","P"],["\ud835\udd14","Q"],["\ud835\udd16","S"],["\ud835\udd17","T"],["\ud835\udd18","U"],["\ud835\udd19","V"],["\ud835\udd1a","W"],["\ud835\udd1b","X"],["\ud835\udd1c","Y"],["\ud835\udd1e","a"],["\ud835\udd1f","b"],["\ud835\udd20","c"],["\ud835\udd21","d"],["\ud835\udd22","e"],["\ud835\udd23","f"],["\ud835\udd24","g"],["\ud835\udd25","h"],["\ud835\udd26","i"],["\ud835\udd27","j"],["\ud835\udd28","k"],["\ud835\udd29","l"],["\ud835\udd2a","m"],["\ud835\udd2b","n"],["\ud835\udd2c","o"],["\ud835\udd2d","p"],["\ud835\udd2e","q"],["\ud835\udd2f","r"],["\ud835\udd30","s"],["\ud835\udd31","t"],["\ud835\udd32","u"],["\ud835\udd33","v"],["\ud835\udd34","w"],["\ud835\udd35","x"],["\ud835\udd36","y"],["\ud835\udd37","z"],["\ud835\udd38","A"],["\ud835\udd39","B"],["\ud835\udd3b","D"],["\ud835\udd3c","E"],["\ud835\udd3d","F"],["\ud835\udd3e","G"],["\ud835\udd40","I"],["\ud835\udd41","J"],["\ud835\udd42","K"],["\ud835\udd43","L"],["\ud835\udd44","M"],["\ud835\udd46","N"],["\ud835\udd4a","S"],["\ud835\udd4b","T"],["\ud835\udd4c","U"],["\ud835\udd4d","V"],["\ud835\udd4e","W"],["\ud835\udd4f","X"],["\ud835\udd50","Y"],["\ud835\udd52","a"],["\ud835\udd53","b"],["\ud835\udd54","c"],["\ud835\udd55","d"],["\ud835\udd56","e"],["\ud835\udd57","f"],["\ud835\udd58","g"],["\ud835\udd59","h"],["\ud835\udd5a","i"],["\ud835\udd5b","j"],["\ud835\udd5c","k"],["\ud835\udd5d","l"],["\ud835\udd5e","m"],["\ud835\udd5f","n"],["\ud835\udd60","o"],["\ud835\udd61","p"],["\ud835\udd62","q"],["\ud835\udd63","r"],["\ud835\udd64","s"],["\ud835\udd65","t"],["\ud835\udd66","u"],["\ud835\udd67","v"],["\ud835\udd68","w"],["\ud835\udd69","x"],["\ud835\udd6a","y"],["\ud835\udd6b","z"],["\ud835\udd6c","A"],["\ud835\udd6d","B"],["\ud835\udd6e","C"],["\ud835\udd6f","D"],["\ud835\udd70","E"],["\ud835\udd71","F"],["\ud835\udd72","G"],["\ud835\udd73","H"],["\ud835\udd74","I"],["\ud835\udd75","J"],["\ud835\udd76","K"],["\ud835\udd77","L"],["\ud835\udd78","M"],["\ud835\udd79","N"],["\ud835\udd7a","O"],["\ud835\udd7b","P"],["\ud835\udd7c","Q"],["\ud835\udd7d","R"],["\ud835\udd7e","S"],["\ud835\udd7f","T"],["\ud835\udd80","U"],["\ud835\udd81","V"],["\ud835\udd82","W"],["\ud835\udd83","X"],["\ud835\udd84","Y"],["\ud835\udd85","Z"],["\ud835\udd86","a"],["\ud835\udd87","b"],["\ud835\udd88","c"],["\ud835\udd89","d"],["\ud835\udd8a","e"],["\ud835\udd8b","f"],["\ud835\udd8c","g"],["\ud835\udd8d","h"],["\ud835\udd8e","i"],["\ud835\udd8f","j"],["\ud835\udd90","k"],["\ud835\udd91","l"],["\ud835\udd92","m"],["\ud835\udd93","n"],["\ud835\udd94","o"],["\ud835\udd95","p"],["\ud835\udd96","q"],["\ud835\udd97","r"],["\ud835\udd98","s"],["\ud835\udd99","t"],["\ud835\udd9a","u"],["\ud835\udd9b","v"],["\ud835\udd9c","w"],["\ud835\udd9d","x"],["\ud835\udd9e","y"],["\ud835\udd9f","z"],["\ud835\udda0","A"],["\ud835\udda1","B"],["\ud835\udda2","C"],["\ud835\udda3","D"],["\ud835\udda4","E"],["\ud835\udda5","F"],["\ud835\udda6","G"],["\ud835\udda7","H"],["\ud835\udda8","I"],["\ud835\udda9","J"],["\ud835\uddaa","K"],["\ud835\uddab","L"],["\ud835\uddac","M"],["\ud835\uddad","N"],["\ud835\uddae","O"],["\ud835\uddaf","P"],["\ud835\uddb0","Q"],["\ud835\uddb1","R"],["\ud835\uddb2","S"],["\ud835\uddb3","T"],["\ud835\uddb4","U"],["\ud835\uddb5","V"],["\ud835\uddb6","W"],["\ud835\uddb7","X"],["\ud835\uddb8","Y"],["\ud835\uddb9","Z"],["\ud835\uddba","a"],["\ud835\uddbb","b"],["\ud835\uddbc","c"],["\ud835\uddbd","d"],["\ud835\uddbe","e"],["\ud835\uddbf","f"],["\ud835\uddc0","g"],["\ud835\uddc1","h"],["\ud835\uddc2","i"],["\ud835\uddc3","j"],["\ud835\uddc4","k"],["\ud835\uddc5","l"],["\ud835\uddc6","m"],["\ud835\uddc7","n"],["\ud835\uddc8","o"],["\ud835\uddc9","p"],["\ud835\uddca","q"],["\ud835\uddcb","r"],["\ud835\uddcc","s"],["\ud835\uddcd","t"],["\ud835\uddce","u"],["\ud835\uddcf","v"],["\ud835\uddd0","w"],["\ud835\uddd1","x"],["\ud835\uddd2","y"],["\ud835\uddd3","z"],["\ud835\uddd4","A"],["\ud835\uddd5","B"],["\ud835\uddd6","C"],["\ud835\uddd7","D"],["\ud835\uddd8","E"],["\ud835\uddd9","F"],["\ud835\uddda","G"],["\ud835\udddb","H"],["\ud835\udddc","I"],["\ud835\udddd","J"],["\ud835\uddde","K"],["\ud835\udddf","L"],["\ud835\udde0","M"],["\ud835\udde1","N"],["\ud835\udde2","O"],["\ud835\udde3","P"],["\ud835\udde4","Q"],["\ud835\udde5","R"],["\ud835\udde6","S"],["\ud835\udde7","T"],["\ud835\udde8","U"],["\ud835\udde9","V"],["\ud835\uddea","W"],["\ud835\uddeb","X"],["\ud835\uddec","Y"],["\ud835\udded","Z"],["\ud835\uddee","a"],["\ud835\uddef","b"],["\ud835\uddf0","c"],["\ud835\uddf1","d"],["\ud835\uddf2","e"],["\ud835\uddf3","f"],["\ud835\uddf4","g"],["\ud835\uddf5","h"],["\ud835\uddf6","i"],["\ud835\uddf7","j"],["\ud835\uddf8","k"],["\ud835\uddf9","l"],["\ud835\uddfa","m"],["\ud835\uddfb","n"],["\ud835\uddfc","o"],["\ud835\uddfd","p"],["\ud835\uddfe","q"],["\ud835\uddff","r"],["\ud835\ude00","s"],["\ud835\ude01","t"],["\ud835\ude02","u"],["\ud835\ude03","v"],["\ud835\ude04","w"],["\ud835\ude05","x"],["\ud835\ude06","y"],["\ud835\ude07","z"],["\ud835\ude08","A"],["\ud835\ude09","B"],["\ud835\ude0a","C"],["\ud835\ude0b","D"],["\ud835\ude0c","E"],["\ud835\ude0d","F"],["\ud835\ude0e","G"],["\ud835\ude0f","H"],["\ud835\ude10","I"],["\ud835\ude11","J"],["\ud835\ude12","K"],["\ud835\ude13","L"],["\ud835\ude14","M"],["\ud835\ude15","N"],["\ud835\ude16","O"],["\ud835\ude17","P"],["\ud835\ude18","Q"],["\ud835\ude19","R"],["\ud835\ude1a","S"],["\ud835\ude1b","T"],["\ud835\ude1c","U"],["\ud835\ude1d","V"],["\ud835\ude1e","W"],["\ud835\ude1f","X"],["\ud835\ude20","Y"],["\ud835\ude21","Z"],["\ud835\ude22","a"],["\ud835\ude23","b"],["\ud835\ude24","c"],["\ud835\ude25","d"],["\ud835\ude26","e"],["\ud835\ude27","f"],["\ud835\ude28","g"],["\ud835\ude29","h"],["\ud835\ude2a","i"],["\ud835\ude2b","j"],["\ud835\ude2c","k"],["\ud835\ude2d","l"],["\ud835\ude2e","m"],["\ud835\ude2f","n"],["\ud835\ude30","o"],["\ud835\ude31","p"],["\ud835\ude32","q"],["\ud835\ude33","r"],["\ud835\ude34","s"],["\ud835\ude35","t"],["\ud835\ude36","u"],["\ud835\ude37","v"],["\ud835\ude38","w"],["\ud835\ude39","x"],["\ud835\ude3a","y"],["\ud835\ude3b","z"],["\ud835\ude3c","A"],["\ud835\ude3d","B"],["\ud835\ude3e","C"],["\ud835\ude3f","D"],["\ud835\ude40","E"],["\ud835\ude41","F"],["\ud835\ude42","G"],["\ud835\ude43","H"],["\ud835\ude44","I"],["\ud835\ude45","J"],["\ud835\ude46","K"],["\ud835\ude47","L"],["\ud835\ude48","M"],["\ud835\ude49","N"],["\ud835\ude4a","O"],["\ud835\ude4b","P"],["\ud835\ude4c","Q"],["\ud835\ude4d","R"],["\ud835\ude4e","S"],["\ud835\ude4f","T"],["\ud835\ude50","U"],["\ud835\ude51","V"],["\ud835\ude52","W"],["\ud835\ude53","X"],["\ud835\ude54","Y"],["\ud835\ude55","Z"],["\ud835\ude56","a"],["\ud835\ude57","b"],["\ud835\ude58","c"],["\ud835\ude59","d"],["\ud835\ude5a","e"],["\ud835\ude5b","f"],["\ud835\ude5c","g"],["\ud835\ude5d","h"],["\ud835\ude5e","i"],["\ud835\ude5f","j"],["\ud835\ude60","k"],["\ud835\ude61","l"],["\ud835\ude62","m"],["\ud835\ude63","n"],["\ud835\ude64","o"],["\ud835\ude65","p"],["\ud835\ude66","q"],["\ud835\ude67","r"],["\ud835\ude68","s"],["\ud835\ude69","t"],["\ud835\ude6a","u"],["\ud835\ude6b","v"],["\ud835\ude6c","w"],["\ud835\ude6d","x"],["\ud835\ude6e","y"],["\ud835\ude6f","z"],["\ud835\ude70","A"],["\ud835\ude71","B"],["\ud835\ude72","C"],["\ud835\ude73","D"],["\ud835\ude74","E"],["\ud835\ude75","F"],["\ud835\ude76","G"],["\ud835\ude77","H"],["\ud835\ude78","I"],["\ud835\ude79","J"],["\ud835\ude7a","K"],["\ud835\ude7b","L"],["\ud835\ude7c","M"],["\ud835\ude7d","N"],["\ud835\ude7e","O"],["\ud835\ude7f","P"],["\ud835\ude80","Q"],["\ud835\ude81","R"],["\ud835\ude82","S"],["\ud835\ude83","T"],["\ud835\ude84","U"],["\ud835\ude85","V"],["\ud835\ude86","W"],["\ud835\ude87","X"],["\ud835\ude88","Y"],["\ud835\ude89","Z"],["\ud835\ude8a","a"],["\ud835\ude8b","b"],["\ud835\ude8c","c"],["\ud835\ude8d","d"],["\ud835\ude8e","e"],["\ud835\ude8f","f"],["\ud835\ude90","g"],["\ud835\ude91","h"],["\ud835\ude92","i"],["\ud835\ude93","j"],["\ud835\ude94","k"],["\ud835\ude95","l"],["\ud835\ude96","m"],["\ud835\ude97","n"],["\ud835\ude98","o"],["\ud835\ude99","p"],["\ud835\ude9a","q"],["\ud835\ude9b","r"],["\ud835\ude9c","s"],["\ud835\ude9d","t"],["\ud835\ude9e","u"],["\ud835\ude9f","v"],["\ud835\udea0","w"],["\ud835\udea1","x"],["\ud835\udea2","y"],["\ud835\udea3","z"],["\ud835\udea4","l"],["\ud835\udea5","j"],["\ud835\udee2","A"],["\ud835\udee3","B"],["\ud835\udee4","G"],["\ud835\udee5","D"],["\ud835\udee6","E"],["\ud835\udee7","Z"],["\ud835\udee8","I"],["\ud835\udee9","TH"],["\ud835\udeea","I"],["\ud835\udeeb","K"],["\ud835\udeec","L"],["\ud835\udeed","M"],["\ud835\udeee","N"],["\ud835\udeef","KS"],["\ud835\udef0","O"],["\ud835\udef1","P"],["\ud835\udef2","R"],["\ud835\udef3","TH"],["\ud835\udef4","S"],["\ud835\udef5","T"],["\ud835\udef6","Y"],["\ud835\udef7","F"],["\ud835\udef8","x"],["\ud835\udef9","PS"],["\ud835\udefa","O"],["\ud835\udefb","D"],["\ud835\udefc","a"],["\ud835\udefd","b"],["\ud835\udefe","g"],["\ud835\udeff","d"],["\ud835\udf00","e"],["\ud835\udf01","z"],["\ud835\udf02","i"],["\ud835\udf03","th"],["\ud835\udf04","i"],["\ud835\udf05","k"],["\ud835\udf06","l"],["\ud835\udf07","m"],["\ud835\udf08","n"],["\ud835\udf09","ks"],["\ud835\udf0a","o"],["\ud835\udf0b","p"],["\ud835\udf0c","r"],["\ud835\udf0d","s"],["\ud835\udf0e","s"],["\ud835\udf0f","t"],["\ud835\udf10","y"],["\ud835\udf11","f"],["\ud835\udf12","x"],["\ud835\udf13","ps"],["\ud835\udf14","o"],["\ud835\udf15","d"],["\ud835\udf16","E"],["\ud835\udf17","TH"],["\ud835\udf18","K"],["\ud835\udf19","f"],["\ud835\udf1a","r"],["\ud835\udf1b","p"],["\ud835\udf1c","A"],["\ud835\udf1d","V"],["\ud835\udf1e","G"],["\ud835\udf1f","D"],["\ud835\udf20","E"],["\ud835\udf21","Z"],["\ud835\udf22","I"],["\ud835\udf23","TH"],["\ud835\udf24","I"],["\ud835\udf25","K"],["\ud835\udf26","L"],["\ud835\udf27","M"],["\ud835\udf28","N"],["\ud835\udf29","KS"],["\ud835\udf2a","O"],["\ud835\udf2b","P"],["\ud835\udf2c","S"],["\ud835\udf2d","TH"],["\ud835\udf2e","S"],["\ud835\udf2f","T"],["\ud835\udf30","Y"],["\ud835\udf31","F"],["\ud835\udf32","X"],["\ud835\udf33","PS"],["\ud835\udf34","O"],["\ud835\udf35","D"],["\ud835\udf36","a"],["\ud835\udf37","v"],["\ud835\udf38","g"],["\ud835\udf39","d"],["\ud835\udf3a","e"],["\ud835\udf3b","z"],["\ud835\udf3c","i"],["\ud835\udf3d","th"],["\ud835\udf3e","i"],["\ud835\udf3f","k"],["\ud835\udf40","l"],["\ud835\udf41","m"],["\ud835\udf42","n"],["\ud835\udf43","ks"],["\ud835\udf44","o"],["\ud835\udf45","p"],["\ud835\udf46","r"],["\ud835\udf47","s"],["\ud835\udf48","s"],["\ud835\udf49","t"],["\ud835\udf4a","y"],["\ud835\udf4b","f"],["\ud835\udf4c","x"],["\ud835\udf4d","ps"],["\ud835\udf4e","o"],["\ud835\udf4f","a"],["\ud835\udf50","e"],["\ud835\udf51","i"],["\ud835\udf52","k"],["\ud835\udf53","f"],["\ud835\udf54","r"],["\ud835\udf55","p"],["\ud835\udf56","A"],["\ud835\udf57","B"],["\ud835\udf58","G"],["\ud835\udf59","D"],["\ud835\udf5a","E"],["\ud835\udf5b","Z"],["\ud835\udf5c","I"],["\ud835\udf5d","TH"],["\ud835\udf5e","I"],["\ud835\udf5f","K"],["\ud835\udf60","L"],["\ud835\udf61","M"],["\ud835\udf62","N"],["\ud835\udf63","KS"],["\ud835\udf64","O"],["\ud835\udf65","P"],["\ud835\udf66","R"],["\ud835\udf67","TH"],["\ud835\udf68","S"],["\ud835\udf69","T"],["\ud835\udf6a","Y"],["\ud835\udf6b","F"],["\ud835\udf6c","X"],["\ud835\udf6d","PS"],["\ud835\udf6e","O"],["\ud835\udf6f","D"],["\ud835\udf70","a"],["\ud835\udf71","v"],["\ud835\udf72","g"],["\ud835\udf73","d"],["\ud835\udf74","e"],["\ud835\udf75","z"],["\ud835\udf76","i"],["\ud835\udf77","th"],["\ud835\udf78","i"],["\ud835\udf79","k"],["\ud835\udf7a","l"],["\ud835\udf7b","m"],["\ud835\udf7c","n"],["\ud835\udf7d","ks"],["\ud835\udf7e","o"],["\ud835\udf7f","p"],["\ud835\udf80","r"],["\ud835\udf81","s"],["\ud835\udf82","s"],["\ud835\udf83","t"],["\ud835\udf84","y"],["\ud835\udf85","f"],["\ud835\udf86","x"],["\ud835\udf87","ps"],["\ud835\udf88","o"],["\ud835\udf89","a"],["\ud835\udf8a","e"],["\ud835\udf8b","i"],["\ud835\udf8c","k"],["\ud835\udf8d","f"],["\ud835\udf8e","r"],["\ud835\udf8f","p"],["\ud835\udf90","A"],["\ud835\udf91","V"],["\ud835\udf92","G"],["\ud835\udf93","D"],["\ud835\udf94","E"],["\ud835\udf95","Z"],["\ud835\udf96","I"],["\ud835\udf97","TH"],["\ud835\udf98","I"],["\ud835\udf99","K"],["\ud835\udf9a","L"],["\ud835\udf9b","M"],["\ud835\udf9c","N"],["\ud835\udf9d","KS"],["\ud835\udf9e","O"],["\ud835\udf9f","P"],["\ud835\udfa0","S"],["\ud835\udfa1","TH"],["\ud835\udfa2","S"],["\ud835\udfa3","T"],["\ud835\udfa4","Y"],["\ud835\udfa5","F"],["\ud835\udfa6","X"],["\ud835\udfa7","PS"],["\ud835\udfa8","O"],["\ud835\udfa9","D"],["\ud835\udfaa","av"],["\ud835\udfab","g"],["\ud835\udfac","d"],["\ud835\udfad","e"],["\ud835\udfae","z"],["\ud835\udfaf","i"],["\ud835\udfb0","i"],["\ud835\udfb1","th"],["\ud835\udfb2","i"],["\ud835\udfb3","k"],["\ud835\udfb4","l"],["\ud835\udfb5","m"],["\ud835\udfb6","n"],["\ud835\udfb7","ks"],["\ud835\udfb8","o"],["\ud835\udfb9","p"],["\ud835\udfba","r"],["\ud835\udfbb","s"],["\ud835\udfbc","s"],["\ud835\udfbd","t"],["\ud835\udfbe","y"],["\ud835\udfbf","f"],["\ud835\udfc0","x"],["\ud835\udfc1","ps"],["\ud835\udfc2","o"],["\ud835\udfc3","a"],["\ud835\udfc4","e"],["\ud835\udfc5","i"],["\ud835\udfc6","k"],["\ud835\udfc7","f"],["\ud835\udfc8","r"],["\ud835\udfc9","p"],["\ud835\udfca","F"],["\ud835\udfcb","f"],["\u249c","(a)"],["\u249d","(b)"],["\u249e","(c)"],["\u249f","(d)"],["\u24a0","(e)"],["\u24a1","(f)"],["\u24a2","(g)"],["\u24a3","(h)"],["\u24a4","(i)"],["\u24a5","(j)"],["\u24a6","(k)"],["\u24a7","(l)"],["\u24a8","(m)"],["\u24a9","(n)"],["\u24aa","(o)"],["\u24ab","(p)"],["\u24ac","(q)"],["\u24ad","(r)"],["\u24ae","(s)"],["\u24af","(t)"],["\u24b0","(u)"],["\u24b1","(v)"],["\u24b2","(w)"],["\u24b3","(x)"],["\u24b4","(y)"],["\u24b5","(z)"],["\u24b6","(A)"],["\u24b7","(B)"],["\u24b8","(C)"],["\u24b9","(D)"],["\u24ba","(E)"],["\u24bb","(F)"],["\u24bc","(G)"],["\u24bd","(H)"],["\u24be","(I)"],["\u24bf","(J)"],["\u24c0","(K)"],["\u24c1","(L)"],["\u24c3","(N)"],["\u24c4","(O)"],["\u24c5","(P)"],["\u24c6","(Q)"],["\u24c7","(R)"],["\u24c8","(S)"],["\u24c9","(T)"],["\u24ca","(U)"],["\u24cb","(V)"],["\u24cc","(W)"],["\u24cd","(X)"],["\u24ce","(Y)"],["\u24cf","(Z)"],["\u24d0","(a)"],["\u24d1","(b)"],["\u24d2","(b)"],["\u24d3","(c)"],["\u24d4","(e)"],["\u24d5","(f)"],["\u24d6","(g)"],["\u24d7","(h)"],["\u24d8","(i)"],["\u24d9","(j)"],["\u24da","(k)"],["\u24db","(l)"],["\u24dc","(m)"],["\u24dd","(n)"],["\u24de","(o)"],["\u24df","(p)"],["\u24e0","(q)"],["\u24e1","(r)"],["\u24e2","(s)"],["\u24e3","(t)"],["\u24e4","(u)"],["\u24e5","(v)"],["\u24e6","(w)"],["\u24e7","(x)"],["\u24e8","(y)"],["\u24e9","(z)"],["\u010a","C"],["\u010b","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017b","Z"],["\u017c","z"],["\ud835\udfce","0"],["\ud835\udfcf","1"],["\ud835\udfd0","2"],["\ud835\udfd1","3"],["\ud835\udfd2","4"],["\ud835\udfd3","5"],["\ud835\udfd4","6"],["\ud835\udfd5","7"],["\ud835\udfd6","8"],["\ud835\udfd7","9"],["\ud835\udfd8","0"],["\ud835\udfd9","1"],["\ud835\udfda","2"],["\ud835\udfdb","3"],["\ud835\udfdc","4"],["\ud835\udfdd","5"],["\ud835\udfde","6"],["\ud835\udfdf","7"],["\ud835\udfe0","8"],["\ud835\udfe1","9"],["\ud835\udfe2","0"],["\ud835\udfe3","1"],["\ud835\udfe4","2"],["\ud835\udfe5","3"],["\ud835\udfe6","4"],["\ud835\udfe7","5"],["\ud835\udfe8","6"],["\ud835\udfe9","7"],["\ud835\udfea","8"],["\ud835\udfeb","9"],["\ud835\udfec","0"],["\ud835\udfed","1"],["\ud835\udfee","2"],["\ud835\udfef","3"],["\ud835\udff0","4"],["\ud835\udff1","5"],["\ud835\udff2","6"],["\ud835\udff3","7"],["\ud835\udff4","8"],["\ud835\udff5","9"],["\ud835\udff6","0"],["\ud835\udff7","1"],["\ud835\udff8","2"],["\ud835\udff9","3"],["\ud835\udffa","4"],["\ud835\udffb","5"],["\ud835\udffc","6"],["\ud835\udffd","7"],["\ud835\udffe","8"],["\ud835\udfff","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246a","11"],["\u246b","12"],["\u246c","13"],["\u246d","14"],["\u246e","15"],["\u246f","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247a","7"],["\u247b","8"],["\u247c","9"],["\u247d","10"],["\u247e","11"],["\u247f","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248a","3."],["\u248b","4."],["\u248c","5."],["\u248d","6."],["\u248e","7."],["\u248f","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249a","19."],["\u249b","20."],["\u24ea","0"],["\u24eb","11"],["\u24ec","12"],["\u24ed","13"],["\u24ee","14"],["\u24ef","15"],["\u24f0","16"],["\u24f1","17"],["\u24f2","18"],["\u24f3","19"],["\u24f4","20"],["\u24f5","1"],["\u24f6","2"],["\u24f7","3"],["\u24f8","4"],["\u24f9","5"],["\u24fa","6"],["\u24fb","7"],["\u24fc","8"],["\u24fd","9"],["\u24fe","10"],["\u24ff","0"],["\ud83d\ude70","&"],["\ud83d\ude71","&"],["\ud83d\ude72","&"],["\ud83d\ude73","&"],["\ud83d\ude74","&"],["\ud83d\ude75","&"],["\ud83d\ude76",'"'],["\ud83d\ude77",'"'],["\ud83d\ude78",'"'],["\u203d","?!"],["\ud83d\ude79","?!"],["\ud83d\ude7a","?!"],["\ud83d\ude7b","?!"],["\ud83d\ude7c","/"],["\ud83d\ude7d","\\"],["\ud83d\udf07","AR"],["\ud83d\udf08","V"],["\ud83d\udf09","V"],["\ud83d\udf06","VR"],["\ud83d\udf05","VF"],["\ud83d\udf29","2"],["\ud83d\udf2a","5"],["\ud83d\udf61","f"],["\ud83d\udf62","W"],["\ud83d\udf63","U"],["\ud83d\udf67","V"],["\ud83d\udf68","T"],["\ud83d\udf6a","V"],["\ud83d\udf6b","MB"],["\ud83d\udf6c","VB"],["\ud83d\udf72","3B"],["\ud83d\udf73","3B"],["\ud83d\udcaf","100"],["\ud83d\udd19","BACK"],["\ud83d\udd1a","END"],["\ud83d\udd1b","ON!"],["\ud83d\udd1c","SOON"],["\ud83d\udd1d","TOP"],["\ud83d\udd1e","18"],["\ud83d\udd24","abc"],["\ud83d\udd20","ABCD"],["\ud83d\udd21","abcd"],["\ud83d\udd22","1234"],["\ud83d\udd23","T&@%"],["#\ufe0f\u20e3","#"],["*\ufe0f\u20e3","*"],["0\ufe0f\u20e3","0"],["1\ufe0f\u20e3","1"],["2\ufe0f\u20e3","2"],["3\ufe0f\u20e3","3"],["4\ufe0f\u20e3","4"],["5\ufe0f\u20e3","5"],["6\ufe0f\u20e3","6"],["7\ufe0f\u20e3","7"],["8\ufe0f\u20e3","8"],["9\ufe0f\u20e3","9"],["\ud83d\udd1f","10"],["\ud83c\udd70\ufe0f","A"],["\ud83c\udd71\ufe0f","B"],["\ud83c\udd8e","AB"],["\ud83c\udd91","CL"],["\ud83c\udd7e\ufe0f","O"],["\ud83c\udd7f","P"],["\ud83c\udd98","SOS"],["\ud83c\udd72","C"],["\ud83c\udd73","D"],["\ud83c\udd74","E"],["\ud83c\udd75","F"],["\ud83c\udd76","G"],["\ud83c\udd77","H"],["\ud83c\udd78","I"],["\ud83c\udd79","J"],["\ud83c\udd7a","K"],["\ud83c\udd7b","L"],["\ud83c\udd7c","M"],["\ud83c\udd7d","N"],["\ud83c\udd80","Q"],["\ud83c\udd81","R"],["\ud83c\udd82","S"],["\ud83c\udd83","T"],["\ud83c\udd84","U"],["\ud83c\udd85","V"],["\ud83c\udd86","W"],["\ud83c\udd87","X"],["\ud83c\udd88","Y"],["\ud83c\udd89","Z"]];function p(e,t){if("string"!==typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=new Map([...h,...t.customReplacements]);return e=((e,t)=>{for(const[n,r]of t)e=e.replace(new RegExp(u(n),"g"),r);return e})(e=e.normalize(),n),e=e.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize()}var d=[["&"," and "],["\ud83e\udd84"," unicorn "],["\u2665"," love "]];function f(e,t){if("string"!==typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);const n=(t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t}).preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-");e=p(e,{customReplacements:new Map([...d,...t.customReplacements])}),t.decamelize&&(e=(e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(e));const i=(e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const n of e.preserveCharacters){if(n===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=l(n)}return new RegExp(`[^${t}]+`,"g")})(t);return t.lowercase&&(e=e.toLowerCase()),e=(e=(e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(i,t.separator)).replace(/\\/g,""),t.separator&&(e=((e,t)=>{const n=l(t);return e.replace(new RegExp(`${n}{2,}`,"g"),t).replace(new RegExp(`^${n}|${n}$`,"g"),"")})(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}var m=n(22179),g=n(29410),y=n(13276);function k(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,(t=>t.childCount>0&&t.firstChild.type==e));return!!o&&(!n||(r.node(o.depth-1).type==e?function(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new y.FC(o-1,a,o,a,new s.p2(s.HY.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new s.Ts(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));const c=(0,y.k9)(r);if(null==c)return!1;i.lift(r,c);let l=i.mapping.map(o,-1)-1;(0,y.Mn)(i.doc,l)&&i.join(l);return t(i.scrollIntoView()),!0}(t,n,e,o):function(e,t,n){let r=e.tr,i=n.parent;for(let s=n.end,f=n.endIndex-1,m=n.startIndex;f>m;f--)s-=i.child(f).nodeSize,r.delete(s-1,s+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,l=n.endIndex==i.childCount,u=o.node(-1),h=o.index(-1);if(!u.canReplace(h+(c?0:1),h+1,a.content.append(l?s.HY.empty:s.HY.from(i))))return!1;let p=o.pos,d=p+a.nodeSize;return r.step(new y.FC(p-(c?1:0),d+(l?1:0),p+1,d-1,new s.p2((c?s.HY.empty:s.HY.from(i.copy(s.HY.empty))).append(l?s.HY.empty:s.HY.from(i.copy(s.HY.empty))),c?0:1,l?0:1),c?0:1)),t(r.scrollIntoView()),!0}(t,n,o)))}}var x=n(57337),w=n(7741);function v(e){return String(e||"").toUpperCase()}var S=n(11806);function b(){return function(e){const t=function(e){const t=new Map;if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return(0,w.Vn)(e,"definition",(function(e){const n=v(e.identifier);n&&!t.get(n)&&t.set(n,e)})),function(e){const n=v(e);return t.get(n)}}(e);(0,w.Vn)(e,(function(e,n,r){if("definition"===e.type&&void 0!==r&&"number"===typeof n)return r.children.splice(n,1),[S.AM,n];if("imageReference"===e.type||"linkReference"===e.type){const i=t(e.identifier);if(i&&r&&"number"===typeof n)return r.children[n]="imageReference"===e.type?{type:"image",url:i.url,title:i.title,alt:e.alt}:{type:"link",url:i.url,title:i.title,children:e.children},[S.AM,n]}}))}}function M(e,t){var n;if(!(t.childCount>=1&&"hardbreak"===(null==(n=t.lastChild)?void 0:n.type.name)))return void e.next(t.content);const r=[];t.content.forEach(((e,n,i)=>{i!==t.childCount-1&&r.push(e)})),e.next(s.HY.fromArray(r))}function C(e,t){return Object.assign(e,{meta:{package:"@milkdown/preset-commonmark",...t}}),e}const I=(0,r.we)("emphasis");C(I,{displayName:"Attr<emphasis>",group:"Emphasis"});const T=(0,r.c8)("emphasis",(e=>({attrs:{marker:{default:e.get(i.$D).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:e=>"italic"===e}],toDOM:t=>["em",e.get(I.key)(t)],parseMarkdown:{match:e=>"emphasis"===e.type,runner:(e,t,n)=>{e.openMark(n,{marker:t.marker}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"emphasis"===e.type.name,runner:(e,t)=>{e.withMark(t,"emphasis",void 0,{marker:t.attrs.marker})}}})));C(T.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"}),C(T.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});const E=(0,r.r1)("ToggleEmphasis",(e=>()=>(0,o.w9)(T.type(e))));C(E,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});const N=(0,r.Xt)((e=>(0,g.j4)(/(?:^|[^*])\*([^*]+)\*$/,T.type(e),{updateCaptured:({fullMatch:e,start:t})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:t+1}})));C(N,{displayName:"InputRule<emphasis>|Star",group:"Emphasis"});const O=(0,r.Xt)((e=>(0,g.j4)(/(?:^|[^_])_([^_]+)_$/,T.type(e),{updateCaptured:({fullMatch:e,start:t})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:t+1}})));C(O,{displayName:"InputRule<emphasis>|Underscore",group:"Emphasis"});const A=(0,r.Gv)("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:e=>{const t=e.get(i.Xo);return()=>t.call(E.key)}}});C(A.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"}),C(A.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});const R=(0,r.we)("strong");C(R,{displayName:"Attr<strong>",group:"Strong"});const z=(0,r.c8)("strong",(e=>({attrs:{marker:{default:e.get(i.$D).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:e=>"bold"===e}],toDOM:t=>["strong",e.get(R.key)(t)],parseMarkdown:{match:e=>"strong"===e.type,runner:(e,t,n)=>{e.openMark(n,{marker:t.marker}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"strong"===e.type.name,runner:(e,t)=>{e.withMark(t,"strong",void 0,{marker:t.attrs.marker})}}})));C(z.mark,{displayName:"MarkSchema<strong>",group:"Strong"}),C(z.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});const F=(0,r.r1)("ToggleStrong",(e=>()=>(0,o.w9)(z.type(e))));C(F,{displayName:"Command<toggleStrongCommand>",group:"Strong"});const L=(0,r.Xt)((e=>(0,g.j4)(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,z.type(e))));C(L,{displayName:"InputRule<strong>",group:"Strong"});const B=(0,r.Gv)("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:e=>{const t=e.get(i.Xo);return()=>t.call(F.key)}}});C(B.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"}),C(B.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});const P=(0,r.we)("inlineCode");C(P,{displayName:"Attr<inlineCode>",group:"InlineCode"});const j=(0,r.c8)("inlineCode",(e=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:t=>["code",e.get(P.key)(t)],parseMarkdown:{match:e=>"inlineCode"===e.type,runner:(e,t,n)=>{e.openMark(n),e.addText(t.value),e.closeMark(n)}},toMarkdown:{match:e=>"inlineCode"===e.type.name,runner:(e,t,n)=>{e.withMark(t,"inlineCode",n.text||"")}}})));C(j.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"}),C(j.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});const D=(0,r.r1)("ToggleInlineCode",(e=>()=>(t,n)=>{const{selection:r,tr:i}=t;if(r.empty)return!1;const{from:o,to:s}=r;return t.doc.rangeHasMark(o,s,j.type(e))?(null==n||n(i.removeMark(o,s,j.type(e))),!0):(Object.keys(t.schema.marks).filter((e=>e!==j.type.name)).map((e=>t.schema.marks[e])).forEach((e=>{i.removeMark(o,s,e)})),null==n||n(i.addMark(o,s,j.type(e).create())),!0)}));C(D,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});const $=(0,r.Xt)((e=>(0,g.j4)(/(?:\`)([^\`]+)(?:\`)$/,j.type(e))));C($,{displayName:"InputRule<inlineCodeInputRule>",group:"InlineCode"});const H=(0,r.Gv)("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:e=>{const t=e.get(i.Xo);return()=>t.call(D.key)}}});C(H.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"}),C(H.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});const _=(0,r.we)("link");C(_,{displayName:"Attr<link>",group:"Link"});const W=(0,r.c8)("link",(e=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:t=>["a",{...e.get(_.key)(t),...t.attrs}],parseMarkdown:{match:e=>"link"===e.type,runner:(e,t,n)=>{const r=t.url,i=t.title;e.openMark(n,{href:r,title:i}),e.next(t.children),e.closeMark(n)}},toMarkdown:{match:e=>"link"===e.type.name,runner:(e,t)=>{e.withMark(t,"link",void 0,{title:t.attrs.title,url:t.attrs.href})}}})));C(W.mark,{displayName:"MarkSchema<link>",group:"Link"});const q=(0,r.r1)("ToggleLink",(e=>(t={})=>(0,o.w9)(W.type(e),t)));C(q,{displayName:"Command<toggleLinkCommand>",group:"Link"});const V=(0,r.r1)("UpdateLink",(e=>(t={})=>(n,r)=>{if(!r)return!1;let i,o=-1;const{selection:s}=n,{from:a,to:c}=s;if(n.doc.nodesBetween(a,a===c?c+1:c,((t,n)=>{if(W.type(e).isInSet(t.marks))return i=t,o=n,!1})),!i)return!1;const l=i.marks.find((({type:t})=>t===W.type(e)));if(!l)return!1;const u=o,h=o+i.nodeSize,{tr:p}=n,d=W.type(e).create({...l.attrs,...t});return!!d&&(r(p.removeMark(u,h,l).addMark(u,h,d).setSelection(new m.Bs(p.selection.$anchor)).scrollIntoView()),!0)}));C(V,{displayName:"Command<updateLinkCommand>",group:"Link"});const J=(0,r.qT)("doc",(()=>({content:"block+",parseMarkdown:{match:({type:e})=>"root"===e,runner:(e,t,n)=>{e.injectRoot(t,n)}},toMarkdown:{match:e=>"doc"===e.type.name,runner:(e,t)=>{e.openNode("root"),e.next(t.content)}}})));C(J,{displayName:"NodeSchema<doc>",group:"Doc"});const K=(0,r.jO)("paragraph");C(K,{displayName:"Attr<paragraph>",group:"Paragraph"});const U=(0,r.yU)("paragraph",(e=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:t=>["p",e.get(K.key)(t),0],parseMarkdown:{match:e=>"paragraph"===e.type,runner:(e,t,n)=>{e.openNode(n),t.children?e.next(t.children):e.addText(t.value||""),e.closeNode()}},toMarkdown:{match:e=>"paragraph"===e.type.name,runner:(e,t)=>{e.openNode("paragraph"),M(e,t),e.closeNode()}}})));C(U.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"}),C(U.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});const Y=(0,r.r1)("TurnIntoText",(e=>()=>(0,o.uJ)(U.type(e))));C(Y,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});const G=(0,r.Gv)("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:e=>{const t=e.get(i.Xo);return()=>t.call(Y.key)}}});C(G.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"}),C(G.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});const Z=Array(6).fill(0).map(((e,t)=>t+1));const X=(0,r.Tu)((function(e){return f(e.textContent)}),"headingIdGenerator");C(X,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});const Q=(0,r.jO)("heading");C(Q,{displayName:"Attr<heading>",group:"Heading"});const ee=(0,r.yU)("heading",(e=>{const t=e.get(X.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:Z.map((e=>({tag:`h${e}`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw(0,a.GZ)(t);return{level:e,id:t.id}}}))),toDOM:n=>[`h${n.attrs.level}`,{...e.get(Q.key)(n),id:n.attrs.id||t(n)},0],parseMarkdown:{match:({type:e})=>"heading"===e,runner:(e,t,n)=>{const r=t.depth;e.openNode(n,{level:r}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>"heading"===e.type.name,runner:(e,t)=>{e.openNode("heading",void 0,{depth:t.attrs.level}),M(e,t),e.closeNode()}}}}));C(ee.node,{displayName:"NodeSchema<heading>",group:"Heading"}),C(ee.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});const te=(0,r.Xt)((e=>(0,c.zK)(/^(?<hashes>#+)\s$/,ee.type(e),(t=>{var n,r;const o=(null==(r=null==(n=t.groups)?void 0:n.hashes)?void 0:r.length)||0,s=e.get(i.U7),{$from:a}=s.state.selection,c=a.node();if("heading"===c.type.name){let e=Number(c.attrs.level)+Number(o);return e>6&&(e=6),{level:e}}return{level:o}}))));C(te,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});const ne=(0,r.r1)("WrapInHeading",(e=>t=>(t??(t=1),t<1?(0,o.uJ)(U.type(e)):(0,o.uJ)(ee.type(e),{level:t}))));C(ne,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});const re=(0,r.r1)("DowngradeHeading",(e=>()=>(t,n,r)=>{const{$from:i}=t.selection,s=i.node();if(s.type!==ee.type(e)||!t.selection.empty||0!==i.parentOffset)return!1;const a=s.attrs.level-1;return a?(null==n||n(t.tr.setNodeMarkup(t.selection.$from.before(),void 0,{...s.attrs,level:a})),!0):(0,o.uJ)(U.type(e))(t,n,r)}));C(re,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});const ie=(0,r.Gv)("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:e=>{const t=e.get(i.Xo);return()=>t.call(ne.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:e=>{const t=e.get(i.Xo);return()=>t.call(re.key)}}});C(ie.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"}),C(ie.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});const oe=(0,r.jO)("blockquote");C(oe,{displayName:"Attr<blockquote>",group:"Blockquote"});const se=(0,r.yU)("blockquote",(e=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:t=>["blockquote",e.get(oe.key)(t),0],parseMarkdown:{match:({type:e})=>"blockquote"===e,runner:(e,t,n)=>{e.openNode(n).next(t.children).closeNode()}},toMarkdown:{match:e=>"blockquote"===e.type.name,runner:(e,t)=>{e.openNode("blockquote").next(t.content).closeNode()}}})));C(se.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"}),C(se.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});const ae=(0,r.Xt)((e=>(0,c.S0)(/^\s*>\s$/,se.type(e))));C(ae,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});const ce=(0,r.r1)("WrapInBlockquote",(e=>()=>(0,o.ym)(se.type(e))));C(ce,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});const le=(0,r.Gv)("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:e=>{const t=e.get(i.Xo);return()=>t.call(ce.key)}}});C(le.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"}),C(le.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});const ue=(0,r.jO)("codeBlock",(()=>({pre:{},code:{}})));C(ue,{displayName:"Attr<codeBlock>",group:"CodeBlock"});const he=(0,r.yU)("code_block",(e=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{language:e.dataset.language}}}],toDOM:t=>{const n=e.get(ue.key)(t);return["pre",{...n.pre,"data-language":t.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:e})=>"code"===e,runner:(e,t,n)=>{const r=t.lang,i=t.value;e.openNode(n,{language:r}),i&&e.addText(i),e.closeNode()}},toMarkdown:{match:e=>"code_block"===e.type.name,runner:(e,t)=>{var n;e.addNode("code",void 0,(null==(n=t.content.firstChild)?void 0:n.text)||"",{lang:t.attrs.language})}}})));C(he.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"}),C(he.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});const pe=(0,r.Xt)((e=>(0,c.zK)(/^```(?<language>[a-z]*)?[\s\n]$/,he.type(e),(e=>{var t;return{language:(null==(t=e.groups)?void 0:t.language)??""}}))));C(pe,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});const de=(0,r.r1)("CreateCodeBlock",(e=>(t="")=>(0,o.uJ)(he.type(e),{language:t})));C(de,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});C((0,r.r1)("UpdateCodeBlockLanguage",(()=>({pos:e,language:t}={pos:-1,language:""})=>(n,r)=>e>=0&&(null==r||r(n.tr.setNodeAttribute(e,"language",t)),!0))),{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});const fe=(0,r.Gv)("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:e=>{const t=e.get(i.Xo);return()=>t.call(de.key)}}});C(fe.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"}),C(fe.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});const me=(0,r.jO)("image");C(me,{displayName:"Attr<image>",group:"Image"});const ge=(0,r.yU)("image",(e=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{src:e.getAttribute("src")||"",alt:e.getAttribute("alt")||"",title:e.getAttribute("title")||e.getAttribute("alt")||""}}}],toDOM:t=>["img",{...e.get(me.key)(t),...t.attrs}],parseMarkdown:{match:({type:e})=>"image"===e,runner:(e,t,n)=>{const r=t.url,i=t.alt,o=t.title;e.addNode(n,{src:r,alt:i,title:o})}},toMarkdown:{match:e=>"image"===e.type.name,runner:(e,t)=>{e.addNode("image",void 0,void 0,{title:t.attrs.title,url:t.attrs.src,alt:t.attrs.alt})}}})));C(ge.node,{displayName:"NodeSchema<image>",group:"Image"}),C(ge.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});const ye=(0,r.r1)("InsertImage",(e=>(t={})=>(n,r)=>{if(!r)return!0;const{src:i="",alt:o="",title:s=""}=t,a=ge.type(e).create({src:i,alt:o,title:s});return a&&r(n.tr.replaceSelectionWith(a).scrollIntoView()),!0}));C(ye,{displayName:"Command<insertImageCommand>",group:"Image"});const ke=(0,r.r1)("UpdateImage",(e=>(t={})=>(n,r)=>{const i=(0,g.a1)(n.selection,ge.type(e));if(!i)return!1;const{node:o,pos:s}=i,a={...o.attrs},{src:c,alt:l,title:u}=t;return void 0!==c&&(a.src=c),void 0!==l&&(a.alt=l),void 0!==u&&(a.title=u),null==r||r(n.tr.setNodeMarkup(s,void 0,a).scrollIntoView()),!0}));C(ke,{displayName:"Command<updateImageCommand>",group:"Image"});C((0,r.Xt)((e=>new c.VK(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,((t,n,r,i)=>{const[o,s,a="",c]=n;return o?t.tr.replaceWith(r,i,ge.type(e).create({src:a,alt:s,title:c})):null})))),{displayName:"InputRule<insertImageInputRule>",group:"Image"});const xe=(0,r.jO)("hardbreak",(e=>({"data-is-inline":e.attrs.isInline})));C(xe,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const we=(0,r.yU)("hardbreak",(e=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"}],toDOM:t=>["br",e.get(xe.key)(t)],parseMarkdown:{match:({type:e})=>"break"===e,runner:(e,t,n)=>{var r;e.addNode(n,{isInline:!(null==(r=t.data)||!r.isInline)})}},leafText:()=>"\n",toMarkdown:{match:e=>"hardbreak"===e.type.name,runner:(e,t)=>{t.attrs.isInline?e.addNode("text",void 0,"\n"):e.addNode("break")}}})));C(we.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"}),C(we.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const ve=(0,r.r1)("InsertHardbreak",(e=>()=>(t,n)=>{var r;const{selection:i,tr:o}=t;if(!(i instanceof m.Bs))return!1;if(i.empty){const e=i.$from.node();if(e.childCount>0&&"hardbreak"===(null==(r=e.lastChild)?void 0:r.type.name))return null==n||n(o.replaceRangeWith(i.to-1,i.to,t.schema.node("paragraph")).setSelection(m.Y1.near(o.doc.resolve(i.to))).scrollIntoView()),!0}return null==n||n(o.setMeta("hardbreak",!0).replaceSelectionWith(we.type(e).create()).scrollIntoView()),!0}));C(ve,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const Se=(0,r.Gv)("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:e=>{const t=e.get(i.Xo);return()=>t.call(ve.key)}}});C(Se.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"}),C(Se.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const be=(0,r.jO)("hr");C(be,{displayName:"Attr<hr>",group:"Hr"});const Me=(0,r.yU)("hr",(e=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:t=>["hr",e.get(be.key)(t)],parseMarkdown:{match:({type:e})=>"thematicBreak"===e,runner:(e,t,n)=>{e.addNode(n)}},toMarkdown:{match:e=>"hr"===e.type.name,runner:e=>{e.addNode("thematicBreak")}}})));C(Me.node,{displayName:"NodeSchema<hr>",group:"Hr"}),C(Me.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const Ce=(0,r.Xt)((e=>new c.VK(/^(?:---|___\s|\*\*\*\s)$/,((t,n,r,i)=>{const{tr:o}=t;return n[0]&&o.replaceWith(r-1,i,Me.type(e).create()),o}))));C(Ce,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const Ie=(0,r.r1)("InsertHr",(e=>()=>(t,n)=>{if(!n)return!0;const r=U.node.type(e).create(),{tr:i,selection:o}=t,{from:s}=o,a=Me.type(e).create();if(!a)return!0;const c=i.replaceSelectionWith(a).insert(s,r),l=m.Y1.findFrom(c.doc.resolve(s),1,!0);return l&&n(c.setSelection(l).scrollIntoView()),!0}));C(Ie,{displayName:"Command<insertHrCommand>",group:"Hr"});const Te=(0,r.jO)("bulletList");C(Te,{displayName:"Attr<bulletList>",group:"BulletList"});const Ee=(0,r.yU)("bullet_list",(e=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{spread:e.dataset.spread}}}],toDOM:t=>["ul",{...e.get(Te.key)(t),"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:t})=>"list"===e&&!t,runner:(e,t,n)=>{const r=null!=t.spread?`${t.spread}`:"false";e.openNode(n,{spread:r}).next(t.children).closeNode()}},toMarkdown:{match:e=>"bullet_list"===e.type.name,runner:(e,t)=>{e.openNode("list",void 0,{ordered:!1,spread:"true"===t.attrs.spread}).next(t.content).closeNode()}}})));C(Ee.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"}),C(Ee.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const Ne=(0,r.Xt)((e=>(0,c.S0)(/^\s*([-+*])\s$/,Ee.type(e))));C(Ne,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const Oe=(0,r.r1)("WrapInBulletList",(e=>()=>(0,o.ym)(Ee.type(e))));C(Oe,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const Ae=(0,r.Gv)("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:e=>{const t=e.get(i.Xo);return()=>t.call(Oe.key)}}});C(Ae.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"}),C(Ae.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const Re=(0,r.jO)("orderedList");C(Re,{displayName:"Attr<orderedList>",group:"OrderedList"});const ze=(0,r.yU)("ordered_list",(e=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{spread:e.dataset.spread,order:e.hasAttribute("start")?Number(e.getAttribute("start")):1}}}],toDOM:t=>["ol",{...e.get(Re.key)(t),...1===t.attrs.order?{}:t.attrs.order,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:t})=>"list"===e&&!!t,runner:(e,t,n)=>{const r=null!=t.spread?`${t.spread}`:"true";e.openNode(n,{spread:r}).next(t.children).closeNode()}},toMarkdown:{match:e=>"ordered_list"===e.type.name,runner:(e,t)=>{e.openNode("list",void 0,{ordered:!0,start:1,spread:"true"===t.attrs.spread}),e.next(t.content),e.closeNode()}}})));C(ze.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"}),C(ze.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const Fe=(0,r.Xt)((e=>(0,c.S0)(/^\s*(\d+)\.\s$/,ze.type(e),(e=>({order:Number(e[1])})),((e,t)=>t.childCount+t.attrs.order===Number(e[1])))));C(Fe,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const Le=(0,r.r1)("WrapInOrderedList",(e=>()=>(0,o.ym)(ze.type(e))));C(Le,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const Be=(0,r.Gv)("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:e=>{const t=e.get(i.Xo);return()=>t.call(Le.key)}}});C(Be.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"}),C(Be.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const Pe=(0,r.jO)("listItem");C(Pe,{displayName:"Attr<listItem>",group:"ListItem"});const je=(0,r.yU)("list_item",(e=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"\u2022"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:e=>{if(!(e instanceof HTMLElement))throw(0,a.GZ)(e);return{label:e.dataset.label,listType:e.dataset["list-type"],spread:e.dataset.spread}}}],toDOM:t=>["li",{...e.get(Pe.key)(t),"data-label":t.attrs.label,"data-list-type":t.attrs.listType,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:e})=>"listItem"===e,runner:(e,t,n)=>{const r=null!=t.label?`${t.label}.`:"\u2022",i=null!=t.label?"ordered":"bullet",o=null!=t.spread?`${t.spread}`:"true";e.openNode(n,{label:r,listType:i,spread:o}),e.next(t.children),e.closeNode()}},toMarkdown:{match:e=>"list_item"===e.type.name,runner:(e,t)=>{e.openNode("listItem",void 0,{spread:"true"===t.attrs.spread}),e.next(t.content),e.closeNode()}}})));C(je.node,{displayName:"NodeSchema<listItem>",group:"ListItem"}),C(je.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const De=(0,r.r1)("SinkListItem",(e=>()=>{return t=je.type(e),function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,(e=>e.childCount>0&&e.firstChild.type==t));if(!o)return!1;let a=o.startIndex;if(0==a)return!1;let c=o.parent,l=c.child(a-1);if(l.type!=t)return!1;if(n){let r=l.lastChild&&l.lastChild.type==c.type,i=s.HY.from(r?t.create():null),a=new s.p2(s.HY.from(t.create(null,s.HY.from(c.type.create(null,i)))),r?3:1,0),u=o.start,h=o.end;n(e.tr.step(new y.FC(u-(r?3:1),h,u,h,a,1,!0)).scrollIntoView())}return!0};var t}));C(De,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const $e=(0,r.r1)("SplitListItem",(e=>()=>k(je.type(e))));C($e,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const He=(0,r.r1)("SplitListItem",(e=>()=>{return t=je.type(e),function(e,r){let{$from:i,$to:o,node:a}=e.selection;if(a&&a.isBlock||i.depth<2||!i.sameParent(o))return!1;let c=i.node(-1);if(c.type!=t)return!1;if(0==i.parent.content.size&&i.node(-1).childCount==i.indexAfter(-1)){if(3==i.depth||i.node(-3).type!=t||i.index(-2)!=i.node(-2).childCount-1)return!1;if(r){let n=s.HY.empty,o=i.index(-1)?1:i.index(-2)?2:3;for(let e=i.depth-o;e>=i.depth-3;e--)n=s.HY.from(i.node(e).copy(n));let a=i.indexAfter(-1)<i.node(-2).childCount?1:i.indexAfter(-2)<i.node(-3).childCount?2:3;n=n.append(s.HY.from(t.createAndFill()));let c=i.before(i.depth-(o-1)),l=e.tr.replace(c,i.after(-a),new s.p2(n,4-o,0)),u=-1;l.doc.nodesBetween(c,l.doc.content.size,((e,t)=>{if(u>-1)return!1;e.isTextblock&&0==e.content.size&&(u=t+1)})),u>-1&&l.setSelection(m.Y1.near(l.doc.resolve(u))),r(l.scrollIntoView())}return!0}let l=o.pos==i.end()?c.contentMatchAt(0).defaultType:null,u=e.tr.delete(i.pos,o.pos),h=l?[n?{type:t,attrs:n}:null,{type:l}]:void 0;return!!(0,y.Ax)(u.doc,i.pos,2,h)&&(r&&r(u.split(i.pos,2,h).scrollIntoView()),!0)};var t,n}));C(He,{displayName:"Command<splitListItemCommand>",group:"ListItem"});const _e=(0,r.r1)("LiftFirstListItem",(e=>()=>function(e){return(t,n,r)=>{const{selection:i}=t;if(!(i instanceof m.Bs))return!1;const{empty:o,$from:s}=i;if(!o||0!==s.parentOffset)return!1;const a=s.node(-1);return!(a.type!==je.type(e)||a.firstChild!==s.node()||s.node(-2).childCount>1)&&k(je.type(e))(t,n,r)}}(e)));C(_e,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const We=(0,r.Gv)("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:e=>{const t=e.get(i.Xo);return()=>t.call(He.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:e=>{const t=e.get(i.Xo);return()=>t.call(De.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:e=>{const t=e.get(i.Xo);return()=>t.call($e.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:e=>{const t=e.get(i.Xo);return()=>t.call(_e.key)}}});C(We.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"}),C(We.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const qe=(0,r.qT)("text",(()=>({group:"inline",parseMarkdown:{match:({type:e})=>"text"===e,runner:(e,t)=>{e.addText(t.value)}},toMarkdown:{match:e=>"text"===e.type.name,runner:(e,t)=>{e.addNode("text",void 0,t.text)}}})));C(qe,{displayName:"NodeSchema<text>",group:"Text"});const Ve=(0,r.jO)("html");C(Ve,{displayName:"Attr<html>",group:"Html"});const Je=(0,r.yU)("html",(e=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:t=>{const n=document.createElement("span"),r={...e.get(Ve.key)(t),"data-value":t.attrs.value,"data-type":"html"};return n.textContent=t.attrs.value,["span",r,t.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:e=>({value:e.dataset.value??""})}],parseMarkdown:{match:({type:e})=>"html"===e,runner:(e,t,n)=>{e.addNode(n,{value:t.value})}},toMarkdown:{match:e=>"html"===e.type.name,runner:(e,t)=>{e.addNode("html",void 0,t.attrs.value)}}})));C(Je.node,{displayName:"NodeSchema<html>",group:"Html"}),C(Je.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const Ke=[J,K,U,X,Q,ee,xe,we,oe,se,ue,he,be,Me,me,ge,Te,Ee,Re,ze,Pe,je,I,T,R,z,P,j,_,W,Ve,Je,qe].flat(),Ue=[ae,Ne,Fe,pe,Ce,te].flat(),Ye=[N,O,$,L],Ge=[Y,ce,ne,re,de,ve,Ie,ye,ke,Le,Oe,De,He,$e,_e,E,D,F,q,V],Ze=[le,fe,Se,ie,We,Be,Ae,G,A,H,B].flat(),Xe=(0,r.te)("remarkAddOrderInList",(()=>()=>e=>{(0,w.Vn)(e,"list",(e=>{if(e.ordered){const t=e.start??1;e.children.forEach(((e,n)=>{e.label=n+t}))}}))}));C(Xe.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"}),C(Xe.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});const Qe=(0,r.te)("remarkLineBreak",(()=>()=>e=>{const t=/[\t ]*(?:\r?\n|\r)/g;(0,w.Vn)(e,"text",((e,n,r)=>{if(!e.value||"string"!=typeof e.value)return;const i=[];let o=0;t.lastIndex=0;let s=t.exec(e.value);for(;s;){const n=s.index;o!==n&&i.push({type:"text",value:e.value.slice(o,n)}),i.push({type:"break",data:{isInline:!0}}),o=n+s[0].length,s=t.exec(e.value)}return i.length>0&&r&&"number"==typeof n?(o<e.value.length&&i.push({type:"text",value:e.value.slice(o)}),r.children.splice(n,1,...i),n+i.length):void 0}))}));C(Qe.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"}),C(Qe.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});const et=(0,r.te)("remarkInlineLink",(()=>b));C(et.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"}),C(et.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});const tt=(0,r.te)("remarkHTMLTransformer",(()=>()=>e=>{!function(e,t){(function e(n,r,i){if((e=>!!e.children)(n)){const t=[];for(let r=0,i=n.children.length;r<i;r++){const i=n.children[r];if(i){const o=e(i,r,n);if(o)for(let e=0,n=o.length;e<n;e++){const n=o[e];n&&t.push(n)}}}n.children=t}return t(n,r,i)})(e,0,null)[0]}(e,((e,t,n)=>(e=>"html"===e.type)(e)?("root"===(null==n?void 0:n.type)&&(e.children=[{...e}],delete e.value,e.type="paragraph"),[e]):[e]))}));C(tt.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"}),C(tt.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});const nt=(0,r.te)("remarkMarker",(()=>()=>(e,t)=>{(0,w.Vn)(e,(e=>["strong","emphasis"].includes(e.type)),(e=>{e.marker=(e=>t.value.charAt(e.position.start.offset))(e)}))}));C(nt.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"}),C(nt.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});const rt=(0,r.x6)((()=>{let e=!1;const t=new m.H$("MILKDOWN_INLINE_NODES_CURSOR"),n=new m.Sy({key:t,state:{init:()=>!1,apply(e){if(!e.selection.empty)return!1;const t=e.selection.$from,n=t.nodeBefore,r=t.nodeAfter;return!(!(n&&r&&n.isInline&&!n.isText&&r.isInline)||r.isText)}},props:{handleDOMEvents:{compositionend:(t,r)=>!!e&&(e=!1,requestAnimationFrame((()=>{if(n.getState(t.state)){const e=t.state.selection.from;r.preventDefault(),t.dispatch(t.state.tr.insertText(r.data||"",e))}})),!0),compositionstart:t=>(n.getState(t.state)&&(e=!0),!1),beforeinput:(t,r)=>{if(n.getState(t.state)&&r instanceof InputEvent&&r.data&&!e){const e=t.state.selection.from;return r.preventDefault(),t.dispatch(t.state.tr.insertText(r.data||"",e)),!0}return!1}},decorations(e){if(n.getState(e)){const t=e.selection.$from.pos,n=document.createElement("span"),r=x.p.widget(t,n,{side:-1}),i=document.createElement("span"),o=x.p.widget(t,i);return setTimeout((()=>{n.contentEditable="true",i.contentEditable="true"})),x.EH.create(e.doc,[r,o])}return x.EH.empty}}});return n}));C(rt,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const it=(0,r.x6)((e=>new m.Sy({key:new m.H$("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(t,n,r)=>{if(!t.length)return;const[i]=t;if(!i)return;const[o]=i.steps;if(i.getMeta("hardbreak")){if(!(o instanceof y.Pu))return;const{from:t}=o;return r.tr.setNodeMarkup(t,we.type(e),void 0,[])}if(o instanceof y.WJ){let t=r.tr;const{from:n,to:i}=o;return r.doc.nodesBetween(n,i,((n,r)=>{n.type===we.type(e)&&(t=t.setNodeMarkup(r,we.type(e),void 0,[]))})),t}}})));C(it,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const ot=(0,r.Tu)(["table","code_block"],"hardbreakFilterNodes");C(ot,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const st=(0,r.x6)((e=>{const t=e.get(ot.key);return new m.Sy({key:new m.H$("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(e,n)=>{const r=e.getMeta("hardbreak"),[i]=e.steps;if(r&&i){const{from:e}=i,r=n.doc.resolve(e);let o=r.depth,s=!0;for(;o>0;)t.includes(r.node(o).type.name)&&(s=!1),o--;return s}return!0}})}));C(st,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const at=(0,r.x6)((e=>{const t=new m.H$("MILKDOWN_HEADING_ID"),n=n=>{if(n.composing||!n.editable)return;const r=e.get(X.key),i=n.state.tr.setMeta("addToHistory",!1);let o=!1;n.state.doc.descendants(((n,s)=>{if(n.type===ee.type(e)){if(0===n.textContent.trim().length)return;const e=n.attrs,a=r(n);e.id!==a&&(o=!0,i.setMeta(t,!0).setNodeMarkup(s,void 0,{...e,id:a}))}})),o&&n.dispatch(i)};return new m.Sy({key:t,view:e=>(n(e),{update:e=>{n(e)}})})}));C(at,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const ct=(0,r.x6)((e=>{const t=t=>{if(t.composing||!t.editable)return;const n=ze.type(e),r=Ee.type(e),i=je.type(e),o=t.state,s=(e,t)=>{let n=!1;const r=`${t+1}.`;return e.label!==r&&(e.label=r,n=!0),n};let a=o.tr,c=!1;o.doc.descendants(((e,t,o,l)=>{if(e.type===r){const r=e.maybeChild(0);(null==r?void 0:r.type)===i&&"ordered"===r.attrs.listType&&(c=!0,a.setNodeMarkup(t,n,{spread:"true"}),e.descendants(((e,t,n,r)=>{if(e.type===i){const n={...e.attrs};s(n,r)&&(a=a.setNodeMarkup(t,void 0,n))}return!1})))}else if(e.type===i&&(null==o?void 0:o.type)===n){const n={...e.attrs};let r=!1;"ordered"!==n.listType&&(n.listType="ordered",r=!0),(null==o?void 0:o.maybeChild(0))&&(r=s(n,l)),r&&(a=a.setNodeMarkup(t,void 0,n),c=!0)}})),c&&t.dispatch(a.setMeta("addToHistory",!1))};return new m.Sy({key:new m.H$("MILKDOWN_KEEP_LIST_ORDER"),view:e=>(t(e),{update:e=>{t(e)}})})}));C(ct,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const lt=[Ke,Ue,Ye,Ge,Ze,[it,ot,st,rt,Xe,et,Qe,tt,nt,at,ct].flat()].flat()},29410:function(e,t,n){"use strict";n.d(t,{NJ:function(){return x},a1:function(){return v},j4:function(){return w}});var r=n(22179),i=n(59200);const o="undefined"!=typeof navigator?navigator:null,s="undefined"!=typeof document?document:null,a=o&&o.userAgent||"",c=/Edge\/(\d+)/.exec(a),l=/MSIE \d/.exec(a),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(a),h=!!(l||u||c),p=(l?document.documentMode:u?u[1]:c&&c[1],!h&&/gecko\/(\d+)/i.test(a)),d=(p&&(/Firefox\/(\d+)/.exec(a)||[0,0])[1],!h&&/Chrome\/(\d+)/.exec(a)),f=(d&&d[1],!h&&!!o&&/Apple Computer/.test(o.vendor)),m=f&&(/Mobile\/\w+/.test(a)||!!o&&o.maxTouchPoints>2),g=(m||!!o&&/Mac/.test(o.platform),/Android \d/.test(a),!!s&&"webkitFontSmoothing"in s.documentElement.style);g&&(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];function y(e,t,n,r,i,o){if(e.composing)return!1;const s=e.state,a=s.doc.resolve(t);if(a.parent.type.spec.code)return!1;const c=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,void 0,"\ufffc")+r;for(let l=0;l<i.length;l++){const a=i[l].match.exec(c),u=a&&a[0]&&i[l].handler(s,a,t-(a[0].length-r.length),n);if(u)return e.dispatch(u.setMeta(o,{transform:u,from:t,to:n,text:r})),!0}return!1}const k=new r.H$("MILKDOWN_CUSTOM_INPUTRULES");function x({rules:e}){const t=new r.Sy({key:k,isInputRules:!0,state:{init:()=>null,apply(e,t){const n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(n,r,i,o)=>y(n,r,i,o,e,t),handleDOMEvents:{compositionend:n=>(setTimeout((()=>{const{$cursor:r}=n.state.selection;r&&y(n,r.pos,r.pos,"",e,t)})),!1)},handleKeyDown(n,r){if("Enter"!==r.key)return!1;const{$cursor:i}=n.state.selection;return!!i&&y(n,i.pos,i.pos,"\n",e,t)}}});return t}function w(e,t,n={}){return new i.VK(e,((e,r,i,o)=>{var s,a,c,l;const{tr:u}=e;let h=r[r.length-1],p=r[0],d=[],f=o;const m={group:h,fullMatch:p,start:i,end:o},g=null==(s=n.updateCaptured)?void 0:s.call(n,m);if(Object.assign(m,g),({group:h,fullMatch:p,start:i,end:o}=m),null===p)return null;if(""===(null==h?void 0:h.trim()))return null;if(h){const e=p.search(/\S/),s=i+p.indexOf(h),m=s+h.length;d=null!=(a=u.storedMarks)?a:[],m<o&&u.delete(m,o),s>i&&u.delete(i+e,s),f=i+e+h.length;const g=null==(c=n.getAttr)?void 0:c.call(n,r);u.addMark(i,f,t.create(g)),u.setStoredMarks(d),null==(l=n.beforeDispatch)||l.call(n,{match:r,start:i,end:o,tr:u})}return u}))}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function v(e,t){if(!(e instanceof r.qv))return;const{node:n,$from:i}=e;return function(e,t){return Array.isArray(e)&&e.includes(t.type)||t.type===e}(t,n)?{node:n,pos:i.pos,start:i.start(i.depth),depth:i.depth}:void 0}},1931:function(e,t,n){"use strict";n.d(t,{Nl:function(){return o},iz:function(){return s},jE:function(){return a}});var r=n(67597);const i=(0,r.createContext)({});const o=()=>{const e=function(){const{dom:e,editor:t,setLoading:n,editorFactory:o}=(0,r.useContext)(i),s=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const r=s.current;if(!o||!r)return;e.current=r;const i=o(r);return i?(n(!0),i.create().then((e=>{t.current=e})).finally((()=>{n(!1)})).catch(console.error),()=>{var e;null==(e=t.current)||e.destroy()}):void 0}),[e,t,o,n]),s}();return r.createElement("div",{"data-milkdown-root":!0,ref:e})},s=({children:e})=>{const t=(0,r.useRef)(void 0),[n,o]=(0,r.useState)(void 0),s=(0,r.useRef)(),[a,c]=(0,r.useState)(!0),l=(0,r.useMemo)((()=>({loading:a,dom:t,editor:s,setLoading:c,editorFactory:n,setEditorFactory:o})),[a,n]);return r.createElement(i.Provider,{value:l},e)};function a(e,t=[]){const n=(0,r.useContext)(i),o=(0,r.useCallback)(e,t);return(0,r.useLayoutEffect)((()=>{n.setEditorFactory((()=>o))}),[n,o]),{loading:n.loading,get:()=>n.editor.current}}},83784:function(e,t,n){"use strict";n.d(t,{r1:function(){return u},Tu:function(){return f},Xt:function(){return h},we:function(){return x},c8:function(){return g},qT:function(){return p},jO:function(){return k},yU:function(){return m},x6:function(){return d},te:function(){return w},Gv:function(){return y},ko:function(){return v}});var r=n(64462),i=n(48281);let o=e=>crypto.getRandomValues(new Uint8Array(e));var s=n(81866),a=n(43742),c=n(47407),l=n(22179);((e,t=21)=>{((e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length)})(e,t,o)})("abcedfghicklmn",10);function u(e,t){const n=(0,r.uW)(e),i=o=>async()=>{i.key=n,await o.wait(r.rm);const s=t(o);return o.get(r.Xo).create(n,s),i.run=t=>o.get(r.Xo).call(e,t),()=>{o.get(r.Xo).remove(n)}};return i}function h(e){const t=n=>async()=>{await n.wait(r.R3);const i=e(n);return n.update(r.tQ,(e=>[...e,i])),t.inputRule=i,()=>{n.update(r.tQ,(e=>e.filter((e=>e!==i))))}};return t}function p(e,t){const n=i=>async()=>{const o=t(i);return i.update(r.pB,(t=>[...t.filter((t=>t[0]!==e)),[e,o]])),n.id=e,n.schema=o,()=>{i.update(r.pB,(t=>t.filter((([t])=>t!==e))))}};return n.type=t=>{const n=t.get(r.le).nodes[e];if(!n)throw(0,s.YN)(e);return n},n}function d(e){let t;const n=n=>async()=>(await n.wait(r.R3),t=e(n),n.update(r.ZV,(e=>[...e,t])),()=>{n.update(r.ZV,(e=>e.filter((e=>e!==t))))});return n.plugin=()=>t,n.key=()=>t.spec.key,n}function f(e,t){const n=(0,i.oM)(e,t),r=e=>(e.inject(n),()=>()=>{e.remove(n)});return r.key=n,r}function m(e,t){const n=f(t,e),i=p(e,(e=>e.get(n.key)(e))),o=[n,i];return o.id=i.id,o.node=i,o.type=e=>i.type(e),o.schema=i.schema,o.ctx=n,o.key=n.key,o.extendSchema=t=>i=>()=>{const s=i.get(n.key),a=t(s)(i);i.update(r.pB,(t=>[...t.filter((t=>t[0]!==e)),[e,a]])),o.schema=a},o}function g(e,t){const n=f(t,e),i=function(e,t){const n=i=>async()=>{const o=t(i);return i.update(r.ZP,(t=>[...t.filter((t=>t[0]!==e)),[e,o]])),n.id=e,n.schema=o,()=>{i.update(r.ZP,(t=>t.filter((([t])=>t!==e))))}};return n.type=t=>{const n=t.get(r.le).marks[e];if(!n)throw(0,s.d2)(e);return n},n}(e,(e=>e.get(n.key)(e))),o=[n,i];return o.id=i.id,o.mark=i,o.type=i.type,o.schema=i.schema,o.ctx=n,o.key=n.key,o.extendSchema=t=>i=>()=>{const s=i.get(n.key),a=t(s)(i);i.update(r.ZP,(t=>[...t.filter((t=>t[0]!==e)),[e,a]])),o.schema=a},o}function y(e,t){const n=f(Object.fromEntries(Object.entries(t).map((([e,{shortcuts:t}])=>[e,t]))),`${e}Keymap`),i=function(e){const t=n=>async()=>{await n.wait(r.R3);const i=e(n),o=(0,a.h)(i);return n.update(r.ZV,(e=>[...e,o])),t.keymap=i,()=>{n.update(r.ZV,(e=>e.filter((e=>e!==o))))}};return t}((e=>{const r=e.get(n.key),i=Object.entries(t).flatMap((([t,{command:n}])=>[r[t]].flat().map((t=>[t,n(e)]))));return Object.fromEntries(i)})),o=[n,i];return o.ctx=n,o.shortcuts=i,o.key=n.key,o.keymap=i.keymap,o}const k=(e,t=(()=>({})))=>f(t,`${e}Attr`),x=(e,t=(()=>({})))=>f(t,`${e}Attr`);function w(e,t,n){const i=f(n??{},e),o=e=>async()=>{await e.wait(r.Iq);const n={plugin:t(e),options:e.get(i.key)};return e.update(r.CG,(e=>[...e,n])),()=>{e.update(r.CG,(e=>e.filter((e=>e!==n))))}},s=[i,o];return s.id=e,s.plugin=o,s.options=i,s}function v(e,t=!1){return n=>{const i=n.get(r.U7),o=n.get(r._z)(e);if(!o)return;if(!t){const{state:e}=i;return i.dispatch(e.tr.replace(0,e.doc.content.size,new c.p2(o.content,0,0)))}const s=n.get(r.le),a=n.get(r.D),u=n.get(r.ZV),h=l.yy.create({schema:s,doc:o,plugins:u,...a});i.updateState(h)}}},71097:function(e,t,n){"use strict";n.d(t,{NE:function(){return s},QF:function(){return M},YR:function(){return N},_M:function(){return u},al:function(){return c},uJ:function(){return S},w9:function(){return b},ym:function(){return v}});var r=n(13276),i=n(47407),o=n(22179);const s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const c=(e,t,n)=>{let s=a(e,n);if(!s)return!1;let c=h(s);if(!c){let n=s.blockRange(),i=n&&(0,r.k9)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(!u.type.spec.isolating&&y(e,c,t))return!0;if(0==s.parent.content.size&&(l(u,"end")||o.qv.isSelectable(u))){let n=(0,r.dR)(e.doc,s.before(),s.after(),i.p2.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(l(u,"end")?o.Y1.findFrom(r.doc.resolve(r.mapping.map(c.pos,-1)),-1):o.qv.create(r.doc,c.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}}return!(!u.isAtom||c.depth!=s.depth-1)&&(t&&t(e.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)};function l(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const u=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=h(r)}let a=s&&s.nodeBefore;return!(!a||!o.qv.isSelectable(a))&&(t&&t(e.tr.setSelection(o.qv.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function p(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}function d(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function f(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const m=(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.qv&&e.selection.node.isBlock)return!(!n.parentOffset||!(0,r.Ax)(e.doc,n.pos))&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.parent.isBlock)return!1;if(t){let s=i.parentOffset==i.parent.content.size,a=e.tr;(e.selection instanceof o.Bs||e.selection instanceof o.C1)&&a.deleteSelection();let c=0==n.depth?null:f(n.node(-1).contentMatchAt(n.indexAfter(-1))),l=g&&g(i.parent,s),u=l?[l]:s&&c?[{type:c}]:void 0,h=(0,r.Ax)(a.doc,a.mapping.map(n.pos),1,u);if(u||h||!(0,r.Ax)(a.doc,a.mapping.map(n.pos),1,c?[{type:c}]:void 0)||(c&&(u=[{type:c}]),h=!0),h&&(a.split(a.mapping.map(n.pos),1,u),!s&&!n.parentOffset&&n.parent.type!=c)){let e=a.mapping.map(n.before()),t=a.doc.resolve(e);c&&n.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&a.setNodeMarkup(a.mapping.map(n.before()),c)}t(a.scrollIntoView())}return!0};var g;function y(e,t,n){let s,a,c=t.nodeBefore,u=t.nodeAfter;if(c.type.spec.isolating||u.type.spec.isolating)return!1;if(function(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,s=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(s,s+1)||!o.isTextblock&&!(0,r.Mn)(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(s=(a=c.contentMatchAt(c.childCount)).findWrapping(u.type))&&a.matchType(s[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,a=i.HY.empty;for(let e=s.length-1;e>=0;e--)a=i.HY.from(s[e].create(null,a));a=i.HY.from(c.copy(a));let l=e.tr.step(new r.FC(t.pos-1,o,t.pos,o,new i.p2(a,1,0),s.length,!0)),h=o+2*s.length;(0,r.Mn)(l.doc,h)&&l.join(h),n(l.scrollIntoView())}return!0}let p=o.Y1.findFrom(t,1),d=p&&p.$from.blockRange(p.$to),f=d&&(0,r.k9)(d);if(null!=f&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(h&&l(u,"start",!0)&&l(c,"end")){let o=c,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let a=u,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(n){let o=i.HY.empty;for(let e=s.length-1;e>=0;e--)o=i.HY.from(s[e].copy(o));n(e.tr.step(new r.FC(t.pos-s.length,t.pos+u.nodeSize,t.pos+l,t.pos+u.nodeSize-l,new i.p2(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function k(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(t.tr.setSelection(o.Bs.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}const x=k(-1),w=k(1);function v(e,t=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),c=a&&(0,r.nd)(a,e,t);return!!c&&(i&&i(n.tr.wrap(a,c).scrollIntoView()),!0)}}function S(e,t=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:r},$to:{pos:s}}=n.selection.ranges[o];n.doc.nodesBetween(r,s,((r,o)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}))}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function b(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:s}=n.selection;if(i&&!o||!function(e,t,n){for(let r=0;r<t.length;r++){let{$from:i,$to:o}=t[r],s=0==i.depth&&e.inlineContent&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,o.pos,(e=>{if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return!0}return!1}(n.doc,s,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&t<s.length;t++){let{$from:r,$to:o}=s[t];i=n.doc.rangeHasMark(r.pos,o.pos,e)}for(let n=0;n<s.length;n++){let{$from:r,$to:a}=s[n];if(i)o.removeMark(r.pos,a.pos,e);else{let n=r.pos,i=a.pos,s=r.nodeAfter,c=a.nodeBefore,l=s&&s.isText?/^\s*/.exec(s.text)[0].length:0,u=c&&c.isText?/\s*$/.exec(c.text)[0].length:0;n+l<i&&(n+=l,i-=u),o.addMark(n,i,e.create(t))}}r(o.scrollIntoView())}return!0}}function M(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let C=M(s,c,u),I=M(s,((e,t,n)=>{let s=p(e,n);if(!s)return!1;let a=d(s);if(!a)return!1;let c=a.nodeAfter;if(y(e,a,t))return!0;if(0==s.parent.content.size&&(l(c,"start")||o.qv.isSelectable(c))){let n=(0,r.dR)(e.doc,s.before(),s.after(),i.p2.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(l(c,"start")?o.Y1.findFrom(r.doc.resolve(r.mapping.map(a.pos)),1):o.qv.create(r.doc,r.mapping.map(a.pos))),t(r.scrollIntoView())}return!0}}return!(!c.isAtom||a.depth!=s.depth-1)&&(t&&t(e.tr.delete(a.pos,a.pos+c.nodeSize).scrollIntoView()),!0)}),((e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=d(r)}let a=s&&s.nodeAfter;return!(!a||!o.qv.isSelectable(a))&&(t&&t(e.tr.setSelection(o.qv.create(e.doc,s.pos)).scrollIntoView()),!0)}));const T={Enter:M(((e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}),((e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.C1||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=f(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,s.createAndFill());a.setSelection(o.Bs.create(a.doc,n+1)),t(a.scrollIntoView())}return!0}),((e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.Ax)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.k9)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}),m),"Mod-Enter":(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),a=f(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.Y1.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},Backspace:C,"Mod-Backspace":C,"Shift-Backspace":C,Delete:I,"Mod-Delete":I,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.C1(e.doc))),!0)},E={"Ctrl-h":T.Backspace,"Alt-Backspace":T["Mod-Backspace"],"Ctrl-d":T.Delete,"Ctrl-Alt-Backspace":T["Mod-Delete"],"Alt-Delete":T["Mod-Delete"],"Alt-d":T["Mod-Delete"],"Ctrl-a":x,"Ctrl-e":w};for(let O in T)E[O]=T[O];const N=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&"darwin"==os.platform())?E:T},59200:function(e,t,n){"use strict";n.d(t,{S0:function(){return s},VK:function(){return i},dU:function(){return o},zK:function(){return a}});var r=n(13276);class i{constructor(e,t,n={}){var r;this.match=e,this.match=e,this.handler="string"==typeof t?(r=t,function(e,t,n,i){let o=r;if(t[1]){let e=t[0].lastIndexOf(t[1]);o+=t[0].slice(e+t[1].length);let r=(n+=e)-i;r>0&&(o=t[0].slice(e-r,e)+o,n=i)}return e.tr.insertText(o,n,i)}):t,this.undoable=!1!==n.undoable,this.inCode=n.inCode||!1}}const o=(e,t)=>{let n=e.plugins;for(let r=0;r<n.length;r++){let i,o=n[r];if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let n=e.tr,r=i.transform;for(let e=r.steps.length-1;e>=0;e--)n.step(r.steps[e].invert(r.docs[e]));if(i.text){let t=n.doc.resolve(i.from).marks();n.replaceWith(i.from,i.to,e.schema.text(i.text,t))}else n.delete(i.from,i.to);t(n)}return!0}}return!1};new i(/--$/,"\u2014"),new i(/\.\.\.$/,"\u2026"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201c"),new i(/"$/,"\u201d"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018"),new i(/'$/,"\u2019");function s(e,t,n=null,o){return new i(e,((e,i,s,a)=>{let c=n instanceof Function?n(i):n,l=e.tr.delete(s,a),u=l.doc.resolve(s).blockRange(),h=u&&(0,r.nd)(u,t,c);if(!h)return null;l.wrap(u,h);let p=l.doc.resolve(s-1).nodeBefore;return p&&p.type==t&&(0,r.Mn)(l.doc,s-1)&&(!o||o(i,p))&&l.join(s-1),l}))}function a(e,t,n=null){return new i(e,((e,r,i,o)=>{let s=e.doc.resolve(i),a=n instanceof Function?n(r):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(i,o).setBlockType(i,i,t,a):null}))}},43742:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(a=1;a<=24;a++)r[a+111]="F"+a;for(a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var c in r)i.hasOwnProperty(c)||(i[c]=r[c]);var l=n(22179);const u="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function h(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let a=0;a<o.length-1;a++){let e=o[a];if(/^(cmd|meta|m)$/i.test(e))i=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);u?i=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),i&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function p(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function d(e){return new l.Sy({props:{handleKeyDown:f(e)}})}function f(e){let t=function(e){let t=Object.create(null);for(let n in e)t[h(n)]=e[n];return t}(e);return function(e,n){let a,c=function(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),l=t[p(c,n)];if(l&&l(e.state,e.dispatch,e))return!0;if(1==c.length&&" "!=c){if(n.shiftKey){let r=t[p(c,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||c.charCodeAt(0)>127)&&(a=r[n.keyCode])&&a!=c){let r=t[p(a,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},47407:function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,{aw:function(){return Z},PW:function(){return ae},HY:function(){return a},vc:function(){return h},ZU:function(){return U},NB:function(){return A},Ts:function(){return N},e4:function(){return p},V_:function(){return Y},p2:function(){return d}}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return-1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r;function o(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),s=t.child(r);if(i!=s){if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let e=0;i.text[e]==s.text[e];e++)n++;return n}if(i.content.size||s.content.size){let e=o(i.content,s.content,n+1);if(null!=e)return e}n+=i.nodeSize}else n+=i.nodeSize}}function s(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};let a=e.child(--i),c=t.child(--o),l=a.nodeSize;if(a!=c){if(!a.sameMarkup(c))return{a:n,b:r};if(a.isText&&a.text!=c.text){let e=0,t=Math.min(a.text.length,c.text.length);for(;e<t&&a.text[a.text.length-e-1]==c.text[c.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(a.content.size||c.content.size){let e=s(a.content,c.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class a{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,s=0;s<t;o++){let a=this.content[o],c=s+a.nodeSize;if(c>e&&!1!==n(a,r+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,((s,a)=>{let c=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"===typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=c}),0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new a(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=a}return new a(n,r)}cutByIndex(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new a(r,i)}addToStart(e){return new a([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new a(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return o(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return s(this,e,t,n)}findIndex(e,t=-1){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=e)return i==e||t>0?l(n+1,i):l(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return a.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new a(t||e,n)}static from(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}a.empty=new a([],0);const c={index:0,offset:0};function l(e,t){return c.index=e,c.offset=t,c}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!u(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class h{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return h.none;if(e instanceof h)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}h.none=[];class p extends Error{}class d{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new d(n,this.openStart,this.openEnd)}removeBetween(e,t){return new d(f(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return d.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new d(a.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new d(e,n,r)}}function f(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(i==t||o.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(f(o.content,t-i-1,n-i-1)))}function m(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i);if(o==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=m(s.content,t-o-1,n);return a&&e.replaceChild(i,s.copy(a))}function g(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return y(e,t,n,0)}function y(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let s=y(e,t,n,r+1);return o.copy(o.content.replaceChild(i,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:i,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(a.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return S(o,b(e,i,s,t,r))}{let r=e.parent,i=r.content;return S(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}}return S(o,M(e,t,r))}function k(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function x(e,t,n){let r=e.node(n);return k(r,t.node(n)),r}function w(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function v(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(w(e.nodeAfter,r),o++));for(let a=o;a<s;a++)w(i.child(a),r);t&&t.depth==n&&t.textOffset&&w(t.nodeBefore,r)}function S(e,t){return e.type.checkContent(t),e.copy(t)}function b(e,t,n,r,i){let o=e.depth>i&&x(e,t,i+1),s=r.depth>i&&x(n,r,i+1),c=[];return v(null,e,i,c),o&&s&&t.index(i)==n.index(i)?(k(o,s),w(S(o,b(e,t,n,r,i+1)),c)):(o&&w(S(o,M(e,t,i+1)),c),v(t,n,i,c),s&&w(S(s,M(n,r,i+1)),c)),v(r,null,i,c),new a(c)}function M(e,t,n){let r=[];if(v(null,e,n,r),e.depth>n){w(S(x(e,t,n+1),M(e,t,n+1)),r)}return v(t,null,n,r),new a(r)}d.empty=new d(a.empty,0,0);class C{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new N(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:e,offset:t}=o.content.findIndex(i),s=i-t;if(n.push(o,e,r+t),!s)break;if(o=o.child(e),o.isText)break;i=s-1,r+=t+1}return new C(t,n,i)}static resolveCached(e,t){for(let r=0;r<I.length;r++){let n=I[r];if(n.pos==t&&n.doc==e)return n}let n=I[T]=C.resolve(e,t);return T=(T+1)%E,n}}let I=[],T=0,E=12;class N{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const O=Object.create(null);class A{constructor(e,t,n,r=h.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||a.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||O)&&h.sameSet(this.marks,n||h.none)}copy(e=null){return e==this.content?this:new A(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new A(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return d.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o),a=r.node(o).content.cut(r.pos-s,i.pos-s);return new d(a,r.depth-o,i.depth-o)}replace(e,t,n){return g(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return C.resolveCached(this,e)}resolveNoCache(e){return C.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),z(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=a.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let a=r;a<i;a++)if(!this.type.allowsMarks(n.child(a).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=h.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!h.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=a.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}A.prototype.text=void 0;class R extends A{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):z(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new R(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new R(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function z(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class F{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new L(e,t);if(null==n.next)return F.empty;let r=B(n);n.next&&n.err("Unexpected trailing text");let i=function(e){let t=Object.create(null);return n(_(e,0));function n(r){let i=[];r.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);_(e,n).forEach((e=>{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)}))}))}));let o=t[r.join(",")]=new F(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(H);o.next.push({type:i[e][0],next:t[r.join(",")]||n(r)})}return o}}(function(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((e=>e.to=t))}function o(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(o(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return r(t,s),i(o(e.expr,s),s),[r(s)]}if("plus"==e.type){let s=n();return i(o(e.expr,t),s),i(o(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=n();i(o(e.expr,s),t),s=t}if(-1==e.max)i(o(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=n();r(s,t),i(o(e.expr,s),t),s=t}return[r(s)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let s=o(e.exprs[r],t);if(r==e.exprs.length-1)return s;i(s,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),!i||n.isText||n.hasRequiredAttrs()||(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,n),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,s){let c=o.matchFragment(e,n);if(c&&(!t||c.validEnd))return a.from(s.map((e=>e.createAndFill())));for(let e=0;e<o.next.length;e++){let{type:t,next:n}=o.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=i(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map(((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i<t.next.length;i++)r+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return r})).join("\n")}}F.empty=new F(!0);class L{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function B(e){let t=[];do{t.push(P(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function P(e){let t=[];do{t.push(j(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function j(e){let t=function(e){if(e.eat("(")){let t=B(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let e=n[o];e.groups.indexOf(t)>-1&&i.push(e)}0==i.length&&e.err("No node type or group '"+t+"' found");return i}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=$(e,t)}return t}function D(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function $(e,t){let n=D(e),r=n;return e.eat(",")&&(r="}"!=e.next?D(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function H(e,t){return t-e}function _(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(H)}function W(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function q(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);i=t.default}n[r]=i}return n}function V(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new K(e[n]);return t}class J{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=V(n.attrs),this.defaultAttrs=W(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==F.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:q(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new A(this,this.computeAttrs(e),a.from(t),h.setFrom(n))}createChecked(e=null,t,n){return t=a.from(t),this.checkContent(t),new A(this,this.computeAttrs(e),t,h.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=a.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(a.empty,!0);return i?new A(this,e,t.append(i),h.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:h.none:e}static compile(e,t){let n=Object.create(null);e.forEach(((e,r)=>n[e]=new J(e,t,r)));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class K{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class U{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=V(r.attrs),this.excluded=null;let i=W(this.attrs);this.instance=i?new h(this,i):null}create(e=null){return!e&&this.instance?this.instance:new h(this,q(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach(((e,i)=>n[e]=new U(e,r++,t,i))),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Y{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=J.compile(this.spec.nodes,this),this.marks=U.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[t]||(n[t]=F.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?G(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:G(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof J))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new R(n,n.defaultAttrs,e,h.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return A.fromJSON(this,e)}markFromJSON(e){return h.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function G(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class Z{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new re(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new re(this,t,!0);return n.addAll(e,t.from,t.to),d.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(ie(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(!(0!=o.indexOf(e)||r.context&&!n.matchesContext(r.context)||o.length>e.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach((e=>{n(e=oe(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)}))}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach((e=>{n(e=oe(e)),e.node||e.ignore||e.mark||(e.node=r)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Z(e,Z.schemaRules(e)))}}const X={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Q={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ee={ol:!0,ul:!0};function te(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class ne{constructor(e,t,n,r,i,o,s){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=h.none,this.stashMarks=[],this.match=o||(4&s?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(a.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=a.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):se(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!X.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class re{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r,i=t.topNode,o=te(null,t.preserveWhitespace,0)|(n?4:0);r=i?new ne(i.type,i.attrs,h.none,h.none,!0,t.topMatch||i.type.contentMatch,o):new ne(n?null:e.schema.topNodeType,null,h.none,h.none,!0,null,o),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let n=e.getAttribute("style");if(!n)return t();let r=this.readStyles(function(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(n));if(!r)return;let[i,o]=r,s=this.top;for(let a=0;a<o.length;a++)this.removePendingMark(o[a],s);for(let a=0;a<i.length;a++)this.addPendingMark(i[a]);t();for(let a=0;a<i.length;a++)this.removePendingMark(i[a],s);for(let a=0;a<o.length;a++)this.addPendingMark(o[a])}addTextNode(e){let t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&"BR"==i.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n,r=e.nodeName.toLowerCase();ee.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ee.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(i?i.ignore:Q.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let t,n=this.top,o=this.needsBlock;if(X.hasOwnProperty(r))n.content.length&&n.content[0].isInline&&this.open&&(this.open--,n=this.top),t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);i&&i.skip?this.addAll(e):this.withStyleRules(e,(()=>this.addAll(e))),t&&this.sync(n),this.needsBlock=o}else this.withStyleRules(e,(()=>{this.addElementByRule(e,i,!1===i.consuming?n:void 0)}))}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=h.none,n=h.none;for(let r=0;r<e.length;r+=2)for(let i;;){let o=this.parser.matchStyle(e[r],e[r+1],this,i);if(!o)break;if(o.ignore)return null;if(o.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach((e=>{o.clearMark(e)&&(n=e.addToSet(n))})):t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;i=o}return[t,n]}addElementByRule(e,t,n){let r,i,o;if(t.node)i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):r=this.enter(i,t.attrs||null,t.preserveWhitespace);else{o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o)}let s=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(e,t,n){let r=t||0;for(let i=t?e.childNodes[t]:e.firstChild,o=null==n?null:e.childNodes[n];i!=o;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(let r=0;r<t.length;r++)this.enterInner(t[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let r=0;r<e.marks.length;r++)t.type&&!t.type.allowsMarkType(e.marks[r].type)||(n=e.marks[r].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let o=te(e,r,i.options);4&i.options&&0==i.content.length&&(o|=4),this.nodes.push(new ne(e,t,i.activeMarks,i.pendingMarks,n,null,o)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=a&&-1==e.groups.indexOf(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function ie(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function oe(e){let t={};for(let n in e)t[n]=e[n];return t}function se(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t)return!0;if(o.indexOf(i)<0&&s(i))return!0}};if(s(i.contentMatch))return!0}}class ae{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=le(t).createDocumentFragment());let r=n,i=[];return e.forEach((e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(this.marks[t.type.name]){if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}else o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=ae.renderSpec(le(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&ae.renderSpec(le(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,i=t[0],o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s=n?e.createElementNS(n,i):e.createElement(i),a=t[1],c=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){c=2;for(let e in a)if(null!=a[e]){let t=e.indexOf(" ");t>0?s.setAttributeNS(e.slice(0,t),e.slice(t+1),a[e]):s.setAttribute(e,a[e])}}for(let l=c;l<t.length;l++){let i=t[l];if(0===i){if(l<t.length-1||l>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:t,contentDOM:o}=ae.renderSpec(e,i,n);if(s.appendChild(t),o){if(r)throw new RangeError("Multiple content holes");r=o}}}return{dom:s,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ae(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ce(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ce(e.marks)}}function ce(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function le(e){return e.document||window.document}},22179:function(e,t,n){"use strict";n.d(t,{Bs:function(){return u},C1:function(){return f},H$:function(){return E},Sy:function(){return C},Y1:function(){return s},qv:function(){return p},yy:function(){return b}});var r=n(47407),i=n(13276);const o=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.p2.empty){let n=t.content.lastChild,i=null;for(let r=0;r<t.openEnd;r++)i=n,n=n.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:l}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(c.pos),u.map(l.pos),a?r.p2.empty:t),0==a&&y(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n),c=a.map(o.pos),l=a.map(s.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),y(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let r=t<0?g(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):g(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let c=!1;function l(e){c||e.parent.inlineContent||(c=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e,t=e){l(e),l(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r.p2.empty){if(super.replace(e,t),t==r.p2.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new u(e,t)}}s.jsonID("text",u);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends s{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?s.near(i):new p(i)}content(){return new r.p2(r.HY.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,s.jsonID("node",p);class d{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new h(n,n):new d(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&p.isSelectable(n)?new p(t):s.near(t)}}class f extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.p2.empty){if(t==r.p2.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}s.jsonID("all",f);const m={map(){return this},resolve:e=>new f(e)};function g(e,t,n,r,i,o=!1){if(t.inlineContent)return u.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&p.isSelectable(r))return p.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function y(e,t,n){let r=e.steps.length-1;if(r<t)return;let o,a=e.steps[r];(a instanceof i.Pu||a instanceof i.FC)&&(e.mapping.maps[r].forEach(((e,t,n,r)=>{null==o&&(o=r)})),e.setSelection(s.near(e.doc.resolve(o),n)))}class k extends i.wx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.vc.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.vc.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function x(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=x(t.init,n),this.apply=x(t.apply,n)}}const v=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class S{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=v.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))}))}}class b{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=r?r[o].n:0,c=r?r[o].state:this,l=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,c,n);if(l&&n.filterTransaction(l,o)){if(l.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new b(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new k(this)}static create(e){let t=new S(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new b(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new S(this.schema,e.plugins),n=t.fields,r=new b(t);for(let i=0;i<n.length;i++){let t=n[i].name;r[t]=this.hasOwnProperty(t)?this[t]:n[i].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new S(e.schema,e.plugins),o=new b(i);return i.fields.forEach((i=>{if("doc"==i.name)o.doc=r.NB.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=a.fromJSON.call(s,e,t[r],o))}o[i.name]=i.init(e,o)}})),o}}function M(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=M(i,t,{})),n[r]=i}return n}class C{constructor(e){this.spec=e,this.props={},e.props&&M(e.props,this,this.props),this.key=e.key?e.key.key:T("plugin")}getState(e){return e[this.key]}}const I=Object.create(null);function T(e){return e in I?e+"$"+ ++I[e]:(I[e]=0,e+"$")}class E{constructor(e="key"){this.key=T(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},13276:function(e,t,n){"use strict";n.d(t,{Ax:function(){return M},FC:function(){return k},Mn:function(){return C},Pu:function(){return y},WJ:function(){return d},dR:function(){return E},k9:function(){return v},nd:function(){return S},nj:function(){return T},wx:function(){return H}});var r=n(47407);const i=Math.pow(2,16);function o(e){return 65535&e}class s{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&a.empty)return a.empty}recover(e){let t=0,n=o(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/i}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let l=this.ranges[c]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[c+o],h=this.ranges[c+a],p=l+u;if(e<=p){let o=l+r+((u?e==l?-1:e==p?1:t:t)<0?0:h);if(n)return o;let a=e==(t<0?l:p)?null:c/3+(e-l)*i,d=e==l?2:e==p?1:4;return(t<0?e!=l:e!=p)&&(d|=8),new s(o,d,a)}r+=h-u}return n?e+r:new s(e+r,0,null)}touches(e,t){let n=0,r=o(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let t=this.ranges[o]-(this.inverted?n:0);if(t>e)break;let a=this.ranges[o+i];if(e<=t+a&&o==3*r)return!0;n+=this.ranges[o+s]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),a=o+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(s,s+c,a,a+l),i+=l-c}}invert(){return new a(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?a.empty:new a(e<0?[0,-e,0]:[0,0,e])}}a.empty=new a([]);class c{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new c(this.maps,this.mirror,e,t)}copy(){return new c(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new c;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let i=this.from;i<this.to;i++){let n=this.maps[i].mapResult(e,t);if(null!=n.recover){let t=this.getMirror(i);if(null!=t&&t>i&&t<this.to){i=t,e=this.maps[t].recover(n.recover);continue}}r|=n.delInfo,e=n.pos}return n?e:new s(e,r,null)}}const l=Object.create(null);class u{getMap(){return a.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=l[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in l)throw new RangeError("Duplicate use of step JSON ID "+e);return l[e]=t,t.prototype.jsonID=e,t}}class h{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new h(e,null)}static fail(e){return new h(null,e)}static fromReplace(e,t,n,i){try{return h.ok(e.replace(t,n,i))}catch(o){if(o instanceof r.e4)return h.fail(o.message);throw o}}}function p(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);o.content.size&&(o=o.copy(p(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return r.HY.fromArray(i)}class d extends u{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.p2(p(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),i),t.openStart,t.openEnd);return h.fromReplace(e,this.from,this.to,o)}invert(){return new f(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}u.jsonID("addMark",d);class f extends u{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.p2(p(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return h.fromReplace(e,this.from,this.to,n)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new f(t.pos,n.pos,this.mark)}merge(e){return e instanceof f&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new f(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(t.from,t.to,e.markFromJSON(t.mark))}}u.jsonID("removeMark",f);class m extends u{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return h.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new m(this.pos,t.marks[n]);return new m(this.pos,this.mark)}}return new g(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new m(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new m(t.pos,e.markFromJSON(t.mark))}}u.jsonID("addNodeMark",m);class g extends u{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return h.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new m(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new g(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new g(t.pos,e.markFromJSON(t.mark))}}u.jsonID("removeNodeMark",g);class y extends u{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&x(e,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new a([this.from,this.to-this.from,this.slice.size])}invert(e){return new y(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new y(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof y)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new y(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new y(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(t.from,t.to,r.p2.fromJSON(e,t.slice),!!t.structure)}}u.jsonID("replace",y);class k extends u{constructor(e,t,n,r,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(x(e,this.from,this.gapFrom)||x(e,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return h.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?h.fromReplace(e,this.from,this.to,n):h.fail("Content does not fit in gap")}getMap(){return new a([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new k(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new k(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new k(t.from,t.to,t.gapFrom,t.gapTo,r.p2.fromJSON(e,t.slice),t.insert,!!t.structure)}}function x(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function w(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function v(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(0==n||r.type.spec.isolating||!w(r,i,o))break}return null}function S(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let c=r;a&&c<i;c++)a=a.matchType(n.child(c).type);return a&&a.validEnd?s:null}(r,t);return o?i.map(b).concat({type:t,attrs:n}).concat(o.map(b)):null}function b(e){return{type:e,attrs:null}}function M(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,u=n-2;l>o;l--,u--){let e=i.node(l),t=i.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[u+1];o&&(n=n.replaceChild(0,o.type.create(o.attrs)));let s=r&&r[u]||e;if(!e.canReplace(t+1,e.childCount)||!s.type.validContent(n))return!1}let a=i.indexAfter(o),c=r&&r[0];return i.node(o).canReplaceWith(a,a,c?c.type:i.node(o+1).type)}function C(e,t){let n=e.resolve(t),r=n.index();return I(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function I(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function T(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),s=r.node(e),a=!1;if(1==o)a=s.canReplace(n,n,i);else{let e=s.contentMatchAt(n).findWrapping(i.firstChild.type);a=e&&s.canReplaceWith(n,n,e[0])}if(a)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function E(e,t,n=t,i=r.p2.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return N(o,s,i)?new y(t,n,i):new O(o,s,i).fit()}function N(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}u.jsonID("replaceAround",k);class O{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.HY.empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let i=e.depth;i>0;i--)this.placed=r.HY.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let c=new r.p2(o,s,a);return e>-1?new k(n.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||n.pos!=this.$to.pos?new y(n.pos,i.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,i=null;n?(i=z(this.unplaced.content,n-1).firstChild,e=i.content):e=this.unplaced.content;let o=e.firstChild;for(let s=this.depth;s>=0;s--){let e,{type:a,match:c}=this.frontier[s],l=null;if(1==t&&(o?c.matchType(o.type)||(l=c.fillBefore(r.HY.from(o),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:s,parent:i,inject:l};if(2==t&&o&&(e=c.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:s,parent:i,wrap:e};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=z(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new r.p2(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=z(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r.p2(A(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r.p2(A(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let r=0;r<o.length;r++)this.openFrontierNode(o[r]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-e,l=0,u=[],{match:h,type:p}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));h=h.matchFragment(i)}let d=a.size+e-(s.content.size-s.openEnd);for(;l<a.childCount;){let e=a.child(l),t=h.matchType(e.type);if(!t)break;l++,(l>1||0==c||e.content.size)&&(h=t,u.push(F(e.mark(p.allowedMarks(e.marks)),1==l?c:0,l==a.childCount?d:-1)))}let f=l==a.childCount;f||(d=-1),this.placed=R(this.placed,t,r.HY.from(u)),this.frontier[t].match=h,f&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,m=a;r<d;r++){let e=m.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),m=e.content}this.unplaced=f?0==e?r.p2.empty:new r.p2(A(s.content,e-1,1),e-1,d<0?s.openEnd:e-1):new r.p2(A(s.content,e,l),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!L(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=L(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=L(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=R(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=R(this.placed,this.depth,r.HY.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.HY.empty,!0);e.childCount&&(this.placed=R(this.placed,this.frontier.length,e))}}function A(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(A(e.firstChild.content,t-1,n)))}function R(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(R(e.lastChild.content,t-1,n)))}function z(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function F(e,t,n){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,F(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(r.HY.empty,!0)))),e.copy(i)}function L(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,s)?a:null}function B(e,t,n,i,o){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(B(r.content,t+1,n,i,r)))}if(t>i){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.HY.empty,!0))}return e}function P(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let i=e.start(r);if(i<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(i==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==i-1)&&n.push(r)}return n}class j extends u{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return h.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(i),0,t.isLeaf?0:1))}getMap(){return a.empty}invert(e){return new j(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new j(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new j(t.pos,t.attr,t.value)}}u.jsonID("attr",j);class D extends u{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return h.ok(n)}getMap(){return a.empty}invert(e){return new D(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new D(t.attr,t.value)}}u.jsonID("docAttr",D);let $=class extends Error{};$=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},($.prototype=Object.create(Error.prototype)).constructor=$,$.prototype.name="TransformError";class H{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new $(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.p2.empty){let i=E(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r.p2(r.HY.from(n),0,0))}delete(e,t){return this.replace(e,t,r.p2.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),s=e.doc.resolve(n);if(N(o,s,i))return e.step(new y(t,n,i));let a=P(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let c=-(o.depth+1);a.unshift(c);for(let r=o.depth,f=o.pos-1;r>0;r--,f--){let e=o.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;a.indexOf(r)>-1?c=r:o.before(r)==f&&a.splice(1,0,-r)}let l=a.indexOf(c),u=[],h=i.openStart;for(let r=i.content,f=0;;f++){let e=r.firstChild;if(u.push(e),f==i.openStart)break;r=e.content}for(let r=h-1;r>=0;r--){let e=u[r],t=(p=e.type).spec.defining||p.spec.definingForContent;if(t&&!e.sameMarkup(o.node(Math.abs(c)-1)))h=r;else if(t||!e.type.isTextblock)break}var p;for(let f=i.openStart;f>=0;f--){let t=(f+h+1)%(i.openStart+1),c=u[t];if(c)for(let u=0;u<a.length;u++){let h=a[(u+l)%a.length],p=!0;h<0&&(p=!1,h=-h);let d=o.node(h-1),f=o.index(h-1);if(d.canReplaceWith(f,f,c.type,c.marks))return e.replace(o.before(h),p?s.after(h):n,new r.p2(B(i.content,0,i.openStart,t),t,i.openEnd))}}let d=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,i),!(e.steps.length>d));r--){let e=a[r];e<0||(t=o.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e<r.node(i).childCount)return null}return null}(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r.p2(r.HY.from(i),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=P(r,i);for(let s=0;s<o.length;s++){let t=o[s],n=s==o.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),i.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),i.indexAfter(t-1))))return e.delete(r.before(t),i.after(t))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s)return e.delete(r.before(s),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:i,$to:o,depth:s}=t,a=i.before(s+1),c=o.after(s+1),l=a,u=c,h=r.HY.empty,p=0;for(let m=s,g=!1;m>n;m--)g||i.index(m)>0?(g=!0,h=r.HY.from(i.node(m).copy(h)),p++):l--;let d=r.HY.empty,f=0;for(let m=s,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,d=r.HY.from(o.node(m).copy(d)),f++):u++;e.step(new k(l,u,a,c,new r.p2(h.append(d),p,f),h.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let i=new y(t-n,t+n,r.p2.empty,!0);e.step(i)}(this,e,t),this}wrap(e,t){return function(e,t,n){let i=r.HY.empty;for(let a=n.length-1;a>=0;a--){if(i.size){let e=n[a].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.HY.from(n[a].type.create(n[a].attrs,i))}let o=t.start,s=t.end;e.step(new k(o,s,o,s,new r.p2(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){return function(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{if(t.isTextblock&&!t.hasMarkup(i,o)&&function(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}(e.doc,e.mapping.slice(s).map(n),i)){e.clearIncompatible(e.mapping.slice(s).map(n,1),i);let a=e.mapping.slice(s),c=a.map(n,1),l=a.map(n+t.nodeSize,1);return e.step(new k(c,l,c+1,l-1,new r.p2(r.HY.from(i.create(o,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,n,i),this}setNodeMarkup(e,t,n=null,i){return function(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new k(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.p2(r.HY.from(a),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new j(e,t,n)),this}setDocAttribute(e,t){return this.step(new D(e,t)),this}addNodeMark(e,t){return this.step(new m(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r.vc)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new g(e,t)),this}split(e,t=1,n){return function(e,t,n=1,i){let o=e.doc.resolve(t),s=r.HY.empty,a=r.HY.empty;for(let c=o.depth,l=o.depth-n,u=n-1;c>l;c--,u--){s=r.HY.from(o.node(c).copy(s));let e=i&&i[u];a=r.HY.from(e?e.type.create(e.attrs,a):o.node(c).copy(a))}e.step(new y(t,t,new r.p2(s.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let i,o,s=[],a=[];e.doc.nodesBetween(t,n,((e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),h=Math.min(c+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(i&&i.to==l&&i.mark.eq(u[e])?i.to=h:s.push(i=new f(l,h,u[e])));o&&o.to==l?o.to=h:a.push(o=new d(l,h,r))}})),s.forEach((t=>e.step(t))),a.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,i){let o=[],s=0;e.doc.nodesBetween(t,n,((e,a)=>{if(!e.isInline)return;s++;let c=null;if(i instanceof r.ZU){let t,n=e.marks;for(;t=i.isInSet(n);)(c||(c=[])).push(t),n=t.removeFromSet(n)}else i?i.isInSet(e.marks)&&(c=[i]):c=e.marks;if(c&&c.length){let r=Math.min(a+e.nodeSize,n);for(let e=0;e<c.length;e++){let n,i=c[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&i.eq(o[e].style)&&(n=t)}n?(n.to=r,n.step=s):o.push({style:i,from:Math.max(a,t),to:r,step:s})}}})),o.forEach((t=>e.step(new f(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return function(e,t,n,i=n.contentMatch){let o=e.doc.nodeAt(t),s=[],a=t+1;for(let c=0;c<o.childCount;c++){let t=o.child(c),l=a+t.nodeSize,u=i.matchType(t.type);if(u){i=u;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new f(a,l,t.marks[r]));if(t.isText&&!n.spec.code){let e,i,o=/\r?\n|\r/g;for(;e=o.exec(t.text);)i||(i=new r.p2(r.HY.from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),s.push(new y(a+e.index,a+e.index+e[0].length,i))}}else s.push(new y(a,l,r.p2.empty));a=l}if(!i.validEnd){let t=i.fillBefore(r.HY.empty,!0);e.replace(a,a,new r.p2(t,0,0))}for(let r=s.length-1;r>=0;r--)e.step(s[r])}(this,e,t,n),this}}},54918:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});const r=function(e){if(null===e||void 0===e)return o;if("function"===typeof e)return i(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(o);function o(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return i(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"===typeof e)return function(e){return i(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return Boolean(s(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function o(){return!0}function s(e){return null!==e&&"object"===typeof e&&"type"in e}},11806:function(e,t,n){"use strict";n.d(t,{BK:function(){return o},AM:function(){return s},S4:function(){return a}});var r=n(54918);const i=[],o=!1,s="skip";function a(e,t,n,a){let c;"function"===typeof t&&"function"!==typeof n?(a=n,n=t):c=t;const l=(0,r.O)(c),u=a?-1:1;!function e(r,c,h){const p=r&&"object"===typeof r?r:{};if("string"===typeof p.type){const e="string"===typeof p.tagName?p.tagName:"string"===typeof p.name?p.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){let p,d,f,m=i;if((!t||l(r,c,h[h.length-1]||void 0))&&(m=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return null===e||void 0===e?i:[e]}(n(r,h)),m[0]===o))return m;if("children"in r&&r.children){const t=r;if(t.children&&m[0]!==s)for(d=(a?t.children.length:-1)+u,f=h.concat(t);d>-1&&d<t.children.length;){const n=t.children[d];if(p=e(n,d,f)(),p[0]===o)return p;d="number"===typeof p[1]?p[1]:d+u}}return m}}(e,void 0,[])()}},7741:function(e,t,n){"use strict";n.d(t,{Vn:function(){return i}});var r=n(11806);function i(e,t,n,i){let o,s,a;"function"===typeof t&&"function"!==typeof n?(s=void 0,a=t,o=n):(s=t,a=n,o=i),(0,r.S4)(e,s,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}}}]);
- //# sourceMappingURL=41167-a32b6a9a9b2fbab1.js.map
|