diff --git a/asset-manifest.json b/asset-manifest.json index ced6746..d34237f 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.64c9e059.css", - "main.js": "/static/js/main.04066bd5.js", + "main.js": "/static/js/main.e8203036.js", "static/js/8694.abc1345c.chunk.js": "/static/js/8694.abc1345c.chunk.js", "static/js/2266.fdab4545.chunk.js": "/static/js/2266.fdab4545.chunk.js", "static/js/6769.90981532.chunk.js": "/static/js/6769.90981532.chunk.js", @@ -121,7 +121,7 @@ "static/media/github.svg": "/static/media/github.6988a55f42f5097e5bd19ed9ae72ccde.svg", "static/media/color.svg": "/static/media/color.3cdb61387d75158307fc6d9ed1ab3e74.svg", "main.64c9e059.css.map": "/static/css/main.64c9e059.css.map", - "main.04066bd5.js.map": "/static/js/main.04066bd5.js.map", + "main.e8203036.js.map": "/static/js/main.e8203036.js.map", "8694.abc1345c.chunk.js.map": "/static/js/8694.abc1345c.chunk.js.map", "2266.fdab4545.chunk.js.map": "/static/js/2266.fdab4545.chunk.js.map", "6769.90981532.chunk.js.map": "/static/js/6769.90981532.chunk.js.map", @@ -240,6 +240,6 @@ "static/js/refractor-prismjs-vendor.56bc21be.js", "static/js/react-vendor.2cbe2363.js", "static/css/main.64c9e059.css", - "static/js/main.04066bd5.js" + "static/js/main.e8203036.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index a9bdd57..2ef467b 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -微信公众号 Markdown 编辑器
\ No newline at end of file +微信公众号 Markdown 编辑器
\ No newline at end of file diff --git a/static/js/main.04066bd5.js b/static/js/main.e8203036.js similarity index 79% rename from static/js/main.04066bd5.js rename to static/js/main.e8203036.js index 2f565e8..5f55c36 100644 --- a/static/js/main.04066bd5.js +++ b/static/js/main.e8203036.js @@ -1,3 +1,3 @@ -/*! For license information please see main.04066bd5.js.LICENSE.txt */ -(()=>{var e={564:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},752:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});const r="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||u)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"\u037c"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=a.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,a.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let o=0;o-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,t),n)for(let e=0;e{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var h=1,d=1;function p(e){var t=e.match(n);t&&(h+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:h,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:h,column:d},this.source=l.source}m.prototype.content=e;var g=[];function O(t){var n=new Error(l.source+":"+h+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=h,n.column=d,n.source=e,!l.silent)throw n;g.push(n)}function D(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){D(r)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return O("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function A(){var e=f(),n=D(i);if(n){if(v(),!D(o))return O("property missing ':'");var r=D(s),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return D(a),l}}return b(),function(){var e,t=[];for(y(t);e=A();)!1!==e&&(t.push(e),y(t));return t}()}},1327:(e,t,n)=>{var r=n(564).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1345:(e,t,n)=>{"use strict";n.d(t,{DM:()=>d,_A:()=>T,az:()=>h,pn:()=>l,vw:()=>o});var r=n(4450);let i=0;class o{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=i++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e="".concat(t.name,"(").concat(e,")"));return e}static define(e,t){let n="string"==typeof e?e:"?";if(e instanceof o&&(t=e),null===t||void 0===t?void 0:t.base)throw new Error("Can not derive from a modified tag");let r=new o(n,[],null,[]);if(r.set.push(r),t)for(let i of t.set)r.set.push(i);return r}static defineModifier(e){let t=new a(e);return e=>e.modified.indexOf(t)>-1?e:a.get(e.base||e,e.modified.concat(t).sort(((e,t)=>e.id-t.id)))}}let s=0;class a{constructor(e){this.name=e,this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new o(e.name,r,e,t);for(let o of t)o.instances.push(i);let s=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let o of e.set)if(!o.modified.length)for(let e of s)r.push(a.get(o,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new c(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return u.add(t)}const u=new r.uY;class c{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function d(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,o=new p(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}c.empty=new c([],2,null);class p{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;s.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(s))));let h=i,d=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,p=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,d.tags);if(p&&(h&&(h+=" "),h+=p,1==d.mode&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(t,a),h),d.opaque)return;let f=e.tree&&e.tree.prop(r.uY.mounted);if(f&&f.overlay){let r=e.node.enter(f.overlay[0].from+a,1),s=this.highlighters.filter((e=>!e.scope||e.scope(f.tree.type))),u=e.firstChild();for(let c=0,d=a;;c++){let p=c=m)&&e.nextSibling()););if(!p||m>n)break;d=p.to+a,d>t&&(this.highlightRange(r.cursor(),Math.max(t,p.from+a),Math.min(n,d),"",s),this.startSpan(Math.min(n,d),h))}u&&e.parent()}else if(e.firstChild()){f&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),h)}}while(e.nextSibling());e.parent()}}}const f=o.define,m=f(),g=f(),O=f(g),D=f(g),b=f(),y=f(b),v=f(b),A=f(),E=f(A),C=f(),k=f(),S=f(),x=f(S),w=f(),T={comment:m,lineComment:f(m),blockComment:f(m),docComment:f(m),name:g,variableName:f(g),typeName:O,tagName:f(O),propertyName:D,attributeName:f(D),className:f(g),labelName:f(g),namespace:f(g),macroName:f(g),literal:b,string:y,docString:f(y),character:f(y),attributeValue:f(y),number:v,integer:f(v),float:f(v),bool:f(b),regexp:f(b),escape:f(b),color:f(b),url:f(b),keyword:C,self:f(C),null:f(C),atom:f(C),unit:f(C),modifier:f(C),operatorKeyword:f(C),controlKeyword:f(C),definitionKeyword:f(C),moduleKeyword:f(C),operator:k,derefOperator:f(k),arithmeticOperator:f(k),logicOperator:f(k),bitwiseOperator:f(k),compareOperator:f(k),updateOperator:f(k),definitionOperator:f(k),typeOperator:f(k),controlOperator:f(k),punctuation:S,separator:f(S),bracket:x,angleBracket:f(x),squareBracket:f(x),paren:f(x),brace:f(x),content:A,heading:E,heading1:f(E),heading2:f(E),heading3:f(E),heading4:f(E),heading5:f(E),heading6:f(E),contentSeparator:f(A),list:f(A),quote:f(A),emphasis:f(A),strong:f(A),link:f(A),monospace:f(A),strikethrough:f(A),inserted:f(),deleted:f(),changed:f(),invalid:f(),meta:w,documentMeta:f(w),annotation:f(w),processingInstruction:f(w),definition:o.defineModifier("definition"),constant:o.defineModifier("constant"),function:o.defineModifier("function"),standard:o.defineModifier("standard"),local:o.defineModifier("local"),special:o.defineModifier("special")};for(let F in T){let e=T[F];e instanceof o&&(e.name=F)}h([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},1462:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]},1784:(e,t,n)=>{var r=n(5707).default;const i=document,o="_dark_mode_theme_",s="permanent",a="colorschemechange",l="light",u="dark",c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,n,{enumerable:!0,get(){const e=this.getAttribute(t);return null===e?"":e},set(e){this.setAttribute(t,e)}})};class h extends HTMLElement{static get observedAttributes(){return["mode",l,u,s]}constructor(){super(),r(this,"LOCAL_NANE",o),this.t()}connectedCallback(){c(this,"mode"),c(this,u),c(this,l),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;Object.defineProperty(e,n,{enumerable:!0,get(){return this.hasAttribute(t)},set(e){e?this.setAttribute(t,""):this.removeAttribute(t)}})}(this,s);const e=localStorage.getItem(o);e&&[l,u].includes(e)&&(this.mode=e,this.permanent=!0),this.permanent&&!e&&localStorage.setItem(o,this.mode);const t=[l,u].includes(e);this.permanent&&e?this.o():(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(this.mode=u,this.o()),window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches&&(this.mode=l,this.o())),this.permanent||t||(window.matchMedia("(prefers-color-scheme: light)").onchange=e=>{this.mode=e.matches?l:u,this.o()},window.matchMedia("(prefers-color-scheme: dark)").onchange=e=>{this.mode=e.matches?u:l,this.o()});new MutationObserver(((e,n)=>{this.mode=i.documentElement.dataset.colorMode,this.permanent&&t&&(localStorage.setItem(o,this.mode),this.i("permanentcolorscheme",{permanent:this.permanent})),this.h(),this.i(a,{colorScheme:this.mode})})).observe(i.documentElement,{attributes:!0}),this.i(a,{colorScheme:this.mode}),this.h()}attributeChangedCallback(e,t,n){if("mode"===e&&t!==n&&[l,u].includes(n)){const e=localStorage.getItem(o);this.mode===e?(this.mode=n,this.h(),this.o()):this.mode&&this.mode!==e&&(this.h(),this.o())}else e!==l&&e!==u||t===n||this.h();"permanent"===e&&"boolean"===typeof this.permanent&&(this.permanent?localStorage.setItem(o,this.mode):localStorage.removeItem(o))}o(){i.documentElement.setAttribute("data-color-mode",this.mode)}h(){this.icon.textContent=this.mode===l?"\ud83c\udf12":"\ud83c\udf1e",this.text.textContent=this.mode===l?this.getAttribute(u):this.getAttribute(l),!this.text.textContent&&this.text.parentElement&&this.text&&this.text.parentElement.removeChild(this.text)}t(){var e=this.attachShadow({mode:"open"});this.label=i.createElement("span"),this.label.setAttribute("class","wrapper"),this.label.onclick=()=>{this.mode=this.mode===l?u:l,this.permanent&&localStorage.setItem(o,this.mode),this.o(),this.h()},e.appendChild(this.label),this.icon=i.createElement("span"),this.icon.part="icon",this.label.appendChild(this.icon),this.text=i.createElement("span"),this.text.part="text",this.label.appendChild(this.text);const t="_dark_mode_style_";if(!i.getElementById(t)){var n=i.createElement("style");n.id=t,n.textContent="\n[data-color-mode*='dark'], [data-color-mode*='dark'] body {\n color-scheme: dark;\n --color-theme-bg: #0d1117;\n --color-theme-text: #c9d1d9;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}\n\n[data-color-mode*='light'], [data-color-mode*='light'] body {\n color-scheme: light;\n --color-theme-bg: #fff;\n --color-theme-text: #24292f;\n background-color: var(--color-theme-bg);\n color: var(--color-theme-text);\n}",i.head.appendChild(n)}var r=i.createElement("style");r.textContent="\n .wrapper { cursor: pointer; user-select: none; position: relative; }\n .wrapper > span + span { margin-left: .4rem; }\n ",e.appendChild(r)}i(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t}))}}customElements.define("dark-mode",h)},1886: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},l=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,u,c,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"===typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d{"use strict";n.d(t,{YH:()=>ge,Gu:()=>_,VR:()=>P,Je:()=>xe,OF:()=>$,$t:()=>_e,sj:()=>j,iR:()=>F,Nb:()=>ne,om:()=>Qe,vB:()=>Me,FB:()=>Be,Pe:()=>be,sU:()=>G,EY:()=>m,ZX:()=>ye,vS:()=>S,Fh:()=>w,QR:()=>Pe,y$:()=>Ve,zK:()=>k,kn:()=>Ge,MK:()=>x});let r=[],i=[];function o(e){if(e<768)return!1;for(let t=0,n=r.length;;){let o=t+n>>1;if(e=i[o]))return!0;t=o+1}if(t==n)return!1}}function s(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let t=0,n=0;t2&&void 0!==arguments[2])||arguments[2]?u:c)(e,t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function u(e,t,n){if(t==e.length)return t;t&&d(e.charCodeAt(t))&&p(e.charCodeAt(t-1))&&t--;let r=h(e,t);for(t+=f(r);t=0&&s(h(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function c(e,t,n){for(;t>0;){let r=u(e,t-2,n);if(r=56320&&e<57344}function p(e){return e>=55296&&e<56320}function f(e){return e<65536?1:2}class m{lineAt(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=C(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),O.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;[e,t]=C(this,e,t);let n=[];return this.decompose(e,t,n,0),O.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new y(this),i=new y(e);for(let o=t,s=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(){return new y(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new v(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new A(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new g(e):O.from(g.split(e,[])):m.empty}}class g extends m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e);super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new E(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new g(b(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=D(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new g(t,e.length+i.length));else{let e=t.length>>1;n.push(new g(t.slice(0,e)),new g(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof g))return super.replace(e,t,n);[e,t]=C(this,e,t);let r=D(this.text,D(n.text,b(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new g(r,i):O.from(g.split(r,[]),i)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=C(this,e,t);let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new g(n,r)),n=[],r=-1);return r>-1&&t.push(new g(n,r)),t}}class O extends m{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if([e,t]=C(this,e,t),n.lines=i&&t<=s){let a=o.replace(e-i,t-i,n),l=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>l>>6){let i=this.children.slice();return i[r]=a,new O(i,this.length-(t-e)+n.length)}return super.replace(i,s,a)}i=s+1}return super.replace(e,t,n)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=C(this,e,t);let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof O))return 0;let n=0,[r,i,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==s)return n;let a=this.children[r],l=e.children[i];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce(((e,t)=>e+t.length+1),-1),n=0;for(let d of e)n+=d.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new g(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,s=[],a=0,l=-1,u=[];function c(e){let t;if(e.lines>i&&e instanceof O)for(let n of e.children)c(n);else e.lines>o&&(a>o||!a)?(h(),s.push(e)):e instanceof g&&a&&(t=u[u.length-1])instanceof g&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,u[u.length-1]=new g(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>r&&h(),a+=e.lines,l+=e.length+1,u.push(e))}function h(){0!=a&&(s.push(1==u.length?u[0]:O.from(u,l)),l=-1,a=u.length=0)}for(let d of e)c(d);return h(),1==s.length?s[0]:new O(s,t)}}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let i=0,o=0,s=!0;o=n&&(l>r&&(a=a.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof g?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof g?r.text.length:r.children.length;if(o==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof g){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof g?i.text.length:i.children.length)<<1))}}}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class v{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new y(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class A{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(m.prototype[Symbol.iterator]=function(){return this.iter()},y.prototype[Symbol.iterator]=v.prototype[Symbol.iterator]=A.prototype[Symbol.iterator]=function(){return this});class E{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function C(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function k(e,t){return l(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function S(e,t){let n=e.charCodeAt(t);if(!((r=n)>=55296&&r<56320)||t+1==e.length)return n;var r;let i=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(i)?i-56320+(n-55296<<10)+65536:n}function x(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function w(e){return e<65536?1:2}const T=/\r\n?|\n/;var F=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(F||(F={}));class _{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let e=[];for(let t=0;t1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t)}mapPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F.Simple,r=0,i=0;for(let o=0;oe)return i+(e-r);i+=s}else{if(n!=F.Simple&&l>=e&&(n==F.TrackDel&&re||n==F.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return i}touchesRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _(e)}static create(e){return new _(e)}}class P extends _{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return N(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=s,t[r+1]=o;let a=r>>1;for(;n.length1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t,!0)}iterChanges(e){N(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return _.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new M(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s0&&R(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,s=null;function a(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!r.length)return;os||e<0||s>t)throw new RangeError("Invalid change range ".concat(e," to ").concat(s," (in doc of length ").concat(t,")"));let c=u?"string"==typeof u?m.of(u.split(n||T)):u:m.empty,h=c.length;if(e==s&&0==h)return;eo&&B(r,e-o,-1),B(r,s-e,h),R(i,r,c),o=s}}(e),a(!s),s}static empty(e){return new P(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length3&&void 0!==arguments[3]&&arguments[3];if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function R(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(i,u,o,c,h),i=u,o=c}}}function I(e,t,n){let r=[],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,o=new M(e),s=new M(t);for(let a=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(-1==o.ins&&-1==s.ins){let e=Math.min(o.len,s.len);B(r,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||a==o.i||0==o.off&&(s.len=0&&a=0)){if(o.done&&s.done)return i?P.createSet(r,i):_.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{if(!(0==s.ins&&s.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,i=new M(e),o=new M(t);for(let s=!1;;){if(i.done&&o.done)return r?P.createSet(n,r):_.create(n);if(0==i.ins)B(n,i.len,0,s),i.next();else if(0!=o.len||o.done){if(i.done||o.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,o.len),t=n.length;if(-1==i.ins){let t=-1==o.ins?-1:o.off?0:o.ins;B(n,e,t,s),r&&t&&R(r,n,o.text)}else-1==o.ins?(B(n,i.off?0:i.len,e,s),r&&R(r,n,i.textBit(e))):(B(n,i.off?0:i.len,o.off?0:o.ins,s),r&&!o.off&&R(r,n,o.text));s=(i.ins>e||o.ins>=0&&o.len>e)&&(s||n.length>t),i.forward2(e),o.forward(e)}}else B(n,0,o.ins,s),r&&R(r,n,o.text),o.next()}}class M{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?m.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?m.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class L{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?t=n=e.mapPos(this.from,r):(t=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),t==this.from&&n==this.to?this:new L(t,n,this.flags)}extend(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return $.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return $.range(this.anchor,n)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return $.range(e.anchor,e.head)}static create(e,t,n){return new L(e,t,n)}}class ${constructor(e,t){this.ranges=e,this.mainIndex=t}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:$.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n1&&void 0!==arguments[1])||arguments[1];return $.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,n=this.ranges.slice();return n[t]=e,$.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $(e.ranges.map((e=>L.fromJSON(e))),e.main)}static single(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new $([$.range(e,t)],0)}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return L.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return te?8:0)|i)}static normalized(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;rn.head?$.range(s,o):$.range(o,s))}}return new $(e,t)}}function z(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let U=0;class j{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=U++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new j(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:q),!!e.static,e.enables)}of(e){return new X([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new X(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function q(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class X{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=U++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let c of this.dependencies)"doc"==c?a=!0:"selection"==c?l=!0:0==(1&(null!==(t=e[c.id])&&void 0!==t?t:1))&&u.push(e[c.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||H(e,u)){let t=n(e);if(s?!Z(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=le(t,l);if(this.dependencies.every((n=>n instanceof j?t.facet(n)===e.facet(n):!(n instanceof G)||t.field(n,!1)==e.field(n,!1)))||(s?Z(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function Z(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(V).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r,i=e.facet(V),o=n.facet(V);return(r=i.find((e=>e.field==this)))&&r!=o.find((e=>e.field==this))?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,V.of({field:this,create:e})]}get extension(){return this}}const W=4,K=3,J=2,ee=1;function te(e){return t=>new re(t,e)}const ne={highest:te(0),high:te(ee),default:te(J),low:te(K),lowest:te(W)};class re{constructor(e,t){this.inner=e,this.prec=t}}class ie{of(e){return new oe(this,e)}reconfigure(e){return ie.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class oe{constructor(e,t){this.compartment=e,this.inner=t}}class se{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let h of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,s){let a=i.get(e);if(null!=a){if(a<=s)return;let t=r[a].indexOf(e);t>-1&&r[a].splice(t,1),e instanceof oe&&n.delete(e.compartment)}if(i.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof oe){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,s)}else if(e instanceof re)o(e.inner,e.prec);else if(e instanceof G)r[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof X)r[s].push(e),e.facet.extensions&&o(e.facet.extensions,J);else{let t=e.extension;if(!t)throw new Error("Unrecognized extension value in extension set (".concat(e,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));o(t,s)}}return o(e,J),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))h instanceof G?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let s=Object.create(null),a=[],l=[];for(let h of r)s[h.id]=l.length<<1,l.push((e=>h.slot(e)));let u=null===n||void 0===n?void 0:n.config.facets;for(let h in i){let e=i[h],t=e[0].facet,r=u&&u[h]||[];if(e.every((e=>0==e.type)))if(s[t.id]=a.length<<1|1,q(r,e))a.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[t.id]=l.length<<1,l.push((n=>Y(n,t,e)))}}let c=l.map((e=>e(s)));return new se(e,o,c,s,a,i)}}function ae(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function le(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ue=j.define(),ce=j.define({combine:e=>e.some((e=>e)),static:!0}),he=j.define({combine:e=>e.length?e[0]:void 0,static:!0}),de=j.define(),pe=j.define(),fe=j.define(),me=j.define({combine:e=>!!e.length&&e[0]});class ge{constructor(e,t){this.type=e,this.value=t}static define(){return new Oe}}class Oe{of(e){return new ge(this,e)}}class De{constructor(e){this.map=e}of(e){return new be(this,e)}}class be{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new be(this.type,t)}is(e){return this.type==e}static define(){return new De((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}be.reconfigure=be.define(),be.appendConfig=be.define();class ye{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&z(n,t.newLength),i.some((e=>e.type==ye.time))||(this.annotations=i.concat(ye.time.of(Date.now())))}static create(e,t,n,r,i,o){return new ye(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ye.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ve(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r=e[r]))o=e[r++],s=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Ae(r,Ee(t,o,e.changes.newLength),!0))}return r==e?e:ye.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(de)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:ve(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=P.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ye.create(t,r,e.selection&&e.selection.map(i),be.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(pe);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof ye?n:Array.isArray(n)&&1==n.length&&n[0]instanceof ye?n[0]:Ce(t,Se(n),!1)}return e}(i):i)}ye.time=ge.define(),ye.userEvent=ge.define(),ye.addToHistory=ge.define(),ye.remote=ge.define();const ke=[];function Se(e){return null==e?ke:Array.isArray(e)?e:[e]}var xe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(xe||(xe={}));const we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Te;try{Te=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(We){}function Fe(e){return t=>{if(!/\S/.test(t))return xe.Space;if(function(e){if(Te)return Te.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||we.test(n)))return!0}return!1}(t))return xe.Word;for(let n=0;n-1)return xe.Word;return xe.Other}}class _e{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return ae(this,n),le(this,n);if(t)throw new RangeError("Field is not present in this state")}update(){for(var e=arguments.length,t=new Array(e),n=0;ni.set(t,e))),n=null),i.set(s.value.compartment,s.value.extension)):s.is(be.reconfigure)?(n=null,r=s.value):s.is(be.appendConfig)&&(n=null,r=Se(r).concat(s.value));if(n)t=e.startState.values.slice();else{n=se.resolve(r,i,this),t=new _e(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}let o=e.startState.facet(ce)?e.newSelection:e.newSelection.asSingle();new _e(n,e.newDoc,o,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:$.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Se(n.effects);for(let s=1;s0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof P?e:P.of(e,this.doc.length,this.facet(_e.lineSeparator))}toText(e){return m.of(e.split(this.facet(_e.lineSeparator)||T))}sliceDoc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(ae(this,t),le(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof G&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let t=n[i],o=e[i];r.push(t.init((e=>t.spec.fromJSON(o,e))))}return _e.create({doc:e.doc,selection:$.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=se.resolve(e.extensions||[],new Map),n=e.doc instanceof m?e.doc:m.of((e.doc||"").split(t.staticFacet(_e.lineSeparator)||T)),r=e.selection?e.selection instanceof $?e.selection:$.single(e.selection.anchor,e.selection.head):$.single(0);return z(r,n.length),t.staticFacet(ce)||(r=r.asSingle()),new _e(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(_e.tabSize)}get lineBreak(){return this.facet(_e.lineSeparator)||"\n"}get readOnly(){return this.facet(me)}phrase(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{if("$"==t)return"$";let r=+(t||1);return!r||r>n.length?e:n[r-1]}))),e}languageDataAt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i of this.facet(ue))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Fe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=k(t,o,!1);if(i(t.slice(e,o))!=xe.Word)break;o=e}for(;s2&&void 0!==arguments[2]?arguments[2]:{},r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}_e.allowMultipleSelections=ce,_e.tabSize=j.define({combine:e=>e.length?e[0]:4}),_e.lineSeparator=he,_e.readOnly=me,_e.phrases=j.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),_e.languageData=ue,_e.changeFilter=de,_e.transactionFilter=pe,_e.transactionExtender=fe,ie.reconfigure=be.define();class Be{eq(e){return this==e}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Re.create(e,t,this)}}Be.prototype.startSide=Be.prototype.endSide=0,Be.prototype.point=!1,Be.prototype.mapMode=F.TrackDel;class Re{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Re(e,t,n)}}function Ne(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ie{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);iu||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(s=Math.max(s,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Ie(r,i,n,s):null,pos:o}}}class Qe{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Qe(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Ne)),this.isEmpty)return t.length?Qe.of(t):this;let s=new $e(this,null,-1).goto(0),a=0,l=[],u=new Me;for(;s.value||a=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||is.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return ze.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ze.from(e).goto(t)}static compare(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=Le(o,s,n),l=new je(o,a,i),u=new je(s,a,i);n.iterGaps(((e,t,n)=>qe(l,e,u,t,n,r))),n.empty&&0==n.length&&qe(l,0,u,0,0,r)}static eq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Le(i,o),a=new je(i,s,0).goto(n),l=new je(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Xe(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r){let i=new je(e,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(t),o=t,s=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),a=i.pointFromo&&(r.span(o,e,i.active,s),s=i.openEnd(e));if(i.to>n)return s+(i.point&&i.to>n?1:0);o=i.to,i.next()}}static of(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Me;for(let r of e instanceof Re?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Ne);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return Qe.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=Qe.empty;r=r.nextLayer)t=new Qe(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Qe.empty=new Qe([],[],null,-1),Qe.empty.nextLayer=Qe.empty;class Me{finishChunk(e){this.chunks.push(new Ie(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Me)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Qe.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Qe.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Le(e,t,n){let r=new Map;for(let o of e)for(let e=0;e3&&void 0!==arguments[3]?arguments[3]:0;this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i=0;i=n&&r.push(new $e(o,t,n,i));return 1==r.length?r[0]:new ze(r)}get startSide(){return this.value?this.value.startSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Ue(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Ue(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ue(this.heap,0)}}}function Ue(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class je{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ze.from(e,t,n)}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ze(this.active,e),Ze(this.activeTo,e),Ze(this.activeRank,e),this.minActive=Ye(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t0;)t++;He(this.active,t,n),He(this.activeTo,t,r),He(this.activeRank,t,i),e&&He(e,t,this.cursor.from),this.minActive=Ye(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ze(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function qe(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to,r=t||e.endSide-n.endSide,i=r<0?e.to+l:n.to,u=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Xe(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(a,u,e.point,n.point):u>a&&!Xe(e.active,n.active)&&o.compareRange(a,u,e.active,n.active),i>s)break;(t||e.openEnd!=n.openEnd)&&o.boundChange&&o.boundChange(i),a=i,r<=0&&e.next(),r>=0&&n.next()}}function Xe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function Ye(e,t){let n=-1,r=1e9;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:e.length,r=0;for(let i=0;i=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=k(e,i)}return!0===r?-1:e.length}},2609:(e,t,n)=>{var r=n(8161);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,s=e.length,a=0,l=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),a+=(o&=31)<>1;return 1===(1&e)?-t:t}(a),n.rest=t}},2840:(e,t,n)=>{var r=n(4006),i=Object.prototype.hasOwnProperty,o="undefined"!==typeof Map;function s(){this._array=[],this._set=o?new Map:Object.create(null)}s.fromArray=function(e,t){for(var n=new s,r=0,i=e.length;r=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e{"use strict";n.d(t,{s:()=>i});const r=document.createElement("i");function i(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},4006:(e,t)=>{t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}t.urlParse=i,t.urlGenerate=o;var s=function(e){var t=[];return function(n){for(var r=0;r32&&t.pop(),o}}((function(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var s=t.isAbsolute(n),a=[],l=0,u=0;;){if(l=u,-1===(u=n.indexOf("/",l))){a.push(n.slice(l));break}for(a.push(n.slice(l,u));u=0;u--)"."===(c=a[u])?a.splice(u,1):".."===c?h++:h>0&&(""===c?(a.splice(u+1,h),h=0):(a.splice(u,2),h--));return""===(n=a.join("/"))&&(n=s?"/":"."),r?(r.path=n,o(r)):n}));function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),a=i(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),o(n);if(n||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,o(a)):l}t.normalize=s,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?u:function(e){return c(e)?"$"+e:e},t.fromSetString=l?u:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=h(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=h(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=h(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=h(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=a(o(r),t)}return s(t)}},4013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>Y,completionPath:()=>N,esLint:()=>V,javascript:()=>X,javascriptLanguage:()=>Q,jsxLanguage:()=>$,localCompletionSource:()=>B,scopeCompletionSource:()=>I,snippets:()=>E,tsxLanguage:()=>z,typescriptLanguage:()=>L,typescriptSnippets:()=>C});var r=n(4179),i=n(1345);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],s=new r.Aj({start:!1,shift:(e,t)=>5==t||6==t||319==t?e:320==t,strict:!1}),a=new r.Lu(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(317)}),{contextual:!0,fallback:!0}),l=new r.Lu(((e,t)=>{let n,{next:r}=e;o.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(315))}),{contextual:!0}),u=new r.Lu(((e,t)=>{91!=e.next||t.context||e.acceptToken(316)}),{contextual:!0}),c=new r.Lu(((e,t)=>{let{next:n}=e;if(43==n||45==n){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}else 63==n&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))}),{contextual:!0});function h(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const d=new r.Lu(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(h(e.next,!0)){for(e.advance(),n++;h(e.next,!1);)e.advance(),n++;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!h(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(4,-n)})),p=(0,i.pn)({"get set async static":i._A.modifier,"for while do if else switch try catch finally return throw break continue default case":i._A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":i._A.operatorKeyword,"let var const using function class extends":i._A.definitionKeyword,"import export from":i._A.moduleKeyword,"with debugger new":i._A.keyword,TemplateString:i._A.special(i._A.string),super:i._A.atom,BooleanLiteral:i._A.bool,this:i._A.self,null:i._A.null,Star:i._A.modifier,VariableName:i._A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i._A.function(i._A.variableName),VariableDefinition:i._A.definition(i._A.variableName),Label:i._A.labelName,PropertyName:i._A.propertyName,PrivatePropertyName:i._A.special(i._A.propertyName),"CallExpression/MemberExpression/PropertyName":i._A.function(i._A.propertyName),"FunctionDeclaration/VariableDefinition":i._A.function(i._A.definition(i._A.variableName)),"ClassDeclaration/VariableDefinition":i._A.definition(i._A.className),"NewExpression/VariableName":i._A.className,PropertyDefinition:i._A.definition(i._A.propertyName),PrivatePropertyDefinition:i._A.definition(i._A.special(i._A.propertyName)),UpdateOp:i._A.updateOperator,"LineComment Hashbang":i._A.lineComment,BlockComment:i._A.blockComment,Number:i._A.number,String:i._A.string,Escape:i._A.escape,ArithOp:i._A.arithmeticOperator,LogicOp:i._A.logicOperator,BitOp:i._A.bitwiseOperator,CompareOp:i._A.compareOperator,RegExp:i._A.regexp,Equals:i._A.definitionOperator,Arrow:i._A.function(i._A.punctuation),": Spread":i._A.punctuation,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace,"InterpolationStart InterpolationEnd":i._A.special(i._A.brace),".":i._A.derefOperator,", ;":i._A.separator,"@":i._A.meta,TypeName:i._A.typeName,TypeDefinition:i._A.definition(i._A.typeName),"type enum interface implements namespace module declare":i._A.definitionKeyword,"abstract global Privacy readonly override":i._A.modifier,"is keyof unique infer asserts":i._A.operatorKeyword,JSXAttributeValue:i._A.attributeValue,JSXText:i._A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i._A.angleBracket,"JSXIdentifier JSXNameSpacedName":i._A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i._A.attributeName,"JSXBuiltin/JSXIdentifier":i._A.standard(i._A.tagName)}),f={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,for:474,of:483,while:486,with:490,do:494,if:498,else:500,switch:504,case:510,try:516,catch:520,finally:524,return:528,throw:532,break:536,continue:540,debugger:544},m={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},g={__proto__:null,"<":193},O=r.U1.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Ik'#IkO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JqO6[Q!0MxO'#JrO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO7eQMhO'#F|O9[Q`O'#F{OOQ!0Lf'#Jr'#JrOOQ!0Lb'#Jq'#JqO9aQ`O'#GwOOQ['#K^'#K^O9lQ`O'#IXO9qQ!0LrO'#IYOOQ['#J_'#J_OOQ['#I^'#I^Q`QlOOQ`QlOOO9yQ!L^O'#DvO:QQlO'#EOO:XQlO'#EQO9gQ`O'#GsO:`QMhO'#CoO:nQ`O'#EnO:yQ`O'#EyO;OQMhO'#FeO;mQ`O'#GsOOQO'#K_'#K_O;rQ`O'#K_O`Q`O'#CeO>pQ`O'#HbO>xQ`O'#HhO>xQ`O'#HjO`QlO'#HlO>xQ`O'#HnO>xQ`O'#HqO>}Q`O'#HwO?SQ!0LsO'#H}O%[QlO'#IPO?_Q!0LsO'#IRO?jQ!0LsO'#ITO9qQ!0LrO'#IVO?uQ!0MxO'#CiO@wQpO'#DlQOQ`OOO%[QlO'#EQOA_Q`O'#ETO:`QMhO'#EnOAjQ`O'#EnOAuQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Ju'#JuO%[QlO'#JuOOQO'#Jx'#JxOOQO'#Ig'#IgOBuQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J|'#J|OCqQ!0MSO'#EgOC{QpO'#EWOOQO'#Jw'#JwODaQpO'#JxOEnQpO'#EWOC{QpO'#EgPE{O&2DjO'#CbPOOO)CD|)CD|OOOO'#I_'#I_OFWO#tO,59UOOQ!0Lh,59U,59UOOOO'#I`'#I`OFfO&jO,59UOFtQ!L^O'#DcOOOO'#Ib'#IbOF{O#@ItO,59{OOQ!0Lf,59{,59{OGZQlO'#IcOGnQ`O'#JsOImQ!fO'#JsO+}QlO'#JsOItQ`O,5:ROJ[Q`O'#EpOJiQ`O'#KSOJtQ`O'#KROJtQ`O'#KROJ|Q`O,5;^OKRQ`O'#KQOOQ!0Ln,5:^,5:^OKYQlO,5:^OMWQ!0MxO,5:fOMwQ`O,5:nONbQ!0LrO'#KPONiQ`O'#KOO9aQ`O'#KOON}Q`O'#KOO! VQ`O,5;]O! [Q`O'#KOO!#aQ!fO'#JrOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$PQ!fO,5:sOOQS'#Jy'#JyOOQO-EsOOQ['#Jg'#JgOOQ[,5>t,5>tOOQ[-E<[-E<[O!nQ!0MxO,5:jO%[QlO,5:jO!AUQ!0MxO,5:lOOQO,5@y,5@yO!AuQMhO,5=_O!BTQ!0LrO'#JhO9[Q`O'#JhO!BfQ!0LrO,59ZO!BqQpO,59ZO!ByQMhO,59ZO:`QMhO,59ZO!CUQ`O,5;ZO!C^Q`O'#HaO!CrQ`O'#KcO%[QlO,5;}O!9xQpO,5}Q`O'#HWO9gQ`O'#HYO!EZQ`O'#HYO:`QMhO'#H[O!E`Q`O'#H[OOQ[,5=p,5=pO!EeQ`O'#H]O!EvQ`O'#CoO!E{Q`O,59PO!FVQ`O,59PO!H[QlO,59POOQ[,59P,59PO!HlQ!0LrO,59PO%[QlO,59PO!JwQlO'#HdOOQ['#He'#HeOOQ['#Hf'#HfO`QlO,5=|O!K_Q`O,5=|O`QlO,5>SO`QlO,5>UO!KdQ`O,5>WO`QlO,5>YO!KiQ`O,5>]O!KnQlO,5>cOOQ[,5>i,5>iO%[QlO,5>iO9qQ!0LrO,5>kOOQ[,5>m,5>mO# xQ`O,5>mOOQ[,5>o,5>oO# xQ`O,5>oOOQ[,5>q,5>qO#!fQpO'#D_O%[QlO'#JuO##XQpO'#JuO##cQpO'#DmO##tQpO'#DmO#&VQlO'#DmO#&^Q`O'#JtO#&fQ`O,5:WO#&kQ`O'#EtO#&yQ`O'#KTO#'RQ`O,5;_O#'WQpO'#DmO#'eQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#'lQ`O,5:oO>}Q`O,5;YO!BqQpO,5;YO!ByQMhO,5;YO:`QMhO,5;YO#'tQ`O,5@aO#'yQ07dO,5:sOOQO-E}O+}QlO,5>}OOQO,5?T,5?TO#+RQlO'#IcOOQO-EOO$5PQ`O,5>OOOQ[1G3h1G3hO`QlO1G3hOOQ[1G3n1G3nOOQ[1G3p1G3pO>xQ`O1G3rO$5UQlO1G3tO$9YQlO'#HsOOQ[1G3w1G3wO$9gQ`O'#HyO>}Q`O'#H{OOQ[1G3}1G3}O$9oQlO1G3}O9qQ!0LrO1G4TOOQ[1G4V1G4VOOQ!0Lb'#G_'#G_O9qQ!0LrO1G4XO9qQ!0LrO1G4ZO$=vQ`O,5@aO!)PQlO,5;`O9aQ`O,5;`O>}Q`O,5:XO!)PQlO,5:XO!BqQpO,5:XO$={Q?MtO,5:XOOQO,5;`,5;`O$>VQpO'#IdO$>mQ`O,5@`OOQ!0Lf1G/r1G/rO$>uQpO'#IjO$?PQ`O,5@oOOQ!0Lb1G0y1G0yO##tQpO,5:XOOQO'#If'#IfO$?XQpO,5:qOOQ!0Ln,5:q,5:qO#'oQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO>}Q`O1G0tO!BqQpO1G0tO!ByQMhO1G0tOOQ!0Lb1G5{1G5{O!BfQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$?`Q!0LrO1G0mO$?kQ!0LrO1G0mO!BqQpO1G0^OC{QpO1G0^O$?yQ!0LrO1G0mOOQO1G0^1G0^O$@_Q!0MxO1G0mPOOO-E}O$@{Q`O1G5yO$ATQ`O1G6XO$A]Q!fO1G6YO9aQ`O,5?TO$AgQ!0MxO1G6VO%[QlO1G6VO$AwQ!0LrO1G6VO$BYQ`O1G6UO$BYQ`O1G6UO9aQ`O1G6UO$BbQ`O,5?WO9aQ`O,5?WOOQO,5?W,5?WO$BvQ`O,5?WO$){Q`O,5?WOOQO-E_OOQ[,5>_,5>_O%[QlO'#HtO%>RQ`O'#HvOOQ[,5>e,5>eO9aQ`O,5>eOOQ[,5>g,5>gOOQ[7+)i7+)iOOQ[7+)o7+)oOOQ[7+)s7+)sOOQ[7+)u7+)uO%>WQpO1G5{O%>rQ?MtO1G0zO%>|Q`O1G0zOOQO1G/s1G/sO%?XQ?MtO1G/sO>}Q`O1G/sO!)PQlO'#DmOOQO,5?O,5?OOOQO-E}Q`O7+&`O!BqQpO7+&`OOQO7+%x7+%xO$@_Q!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%?cQ!0LrO7+&XO!BfQ!0LrO7+%xO!BqQpO7+%xO%?nQ!0LrO7+&XO%?|Q!0MxO7++qO%[QlO7++qO%@^Q`O7++pO%@^Q`O7++pOOQO1G4r1G4rO9aQ`O1G4rO%@fQ`O1G4rOOQS7+%}7+%}O#'oQ`O<`OOQ[,5>b,5>bO&=hQ`O1G4PO9aQ`O7+&fO!)PQlO7+&fOOQO7+%_7+%_O&=mQ?MtO1G6YO>}Q`O7+%_OOQ!0Lf<}Q`O<SQ!0MxO<= ]O&>dQ`O<= [OOQO7+*^7+*^O9aQ`O7+*^OOQ[ANAkANAkO&>lQ!fOANAkO!&oQMhOANAkO#'oQ`OANAkO4UQ!fOANAkO&>sQ`OANAkO%[QlOANAkO&>{Q!0MzO7+'zO&A^Q!0MzO,5?`O&CiQ!0MzO,5?bO&EtQ!0MzO7+'|O&HVQ!fO1G4kO&HaQ?MtO7+&aO&JeQ?MvO,5=XO&LlQ?MvO,5=ZO&L|Q?MvO,5=XO&M^Q?MvO,5=ZO&MnQ?MvO,59uO' tQ?MvO,5}Q`O7+)kO'-dQ`O<QPPP!>YHxPPPPPPPPP!AiP!BvPPHx!DXPHxPHxHxHxHxHxPHx!EkP!HuP!K{P!LP!LZ!L_!L_P!HrP!Lc!LcP# iP# mHxPHx# s#$xCW@zP@zP@z@zP#&V@z@z#(i@z#+a@z#-m@z@z#.]#0q#0q#0v#1P#0q#1[PP#0qP@z#1t@z#5s@z@z6bPPP#9xPPP#:c#:cP#:cP#:y#:cPP#;PP#:vP#:v#;d#:v#S#>Y#>d#>j#>t#>z#?[#?b#@S#@f#@l#@r#AQ#Ag#C[#Cj#Cq#E]#Ek#G]#Gk#Gq#Gw#G}#HX#H_#He#Ho#IR#IXPPPPPPPPPPP#I_PPPPPPP#JS#MZ#Ns#Nz$ SPPP$&nP$&w$)p$0Z$0^$0a$1`$1c$1j$1rP$1x$1{P$2i$2m$3e$4s$4x$5`PP$5e$5k$5o$5r$5v$5z$6v$7_$7v$7z$7}$8Q$8W$8Z$8_$8cR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:379,context:s,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,236,242,244,246,248,251,257,263,265,267,269,271,273,274,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[p],skippedNodes:[0,5,6,277],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Vp(Y!b'{0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(W#S$i&j'|0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Vp(Y!b'|0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(U':f$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Vp(Y!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Y!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(VpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(VpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Vp(Y!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$i&j(Y!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Y!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Y!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Y!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Y!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-v$?V_!^(CdvBr$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Vp(Y!b'{0/l$]#t(S,2j(d$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Vp(Y!b'|0/l$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[l,u,c,d,2,3,4,5,6,7,8,9,10,11,12,13,14,a,new r.uC("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(b~~",141,339),new r.uC("j~RQYZXz{^~^O(P~~aP!P!Qd~iO(Q~~",25,322)],topRules:{Script:[0,7],SingleExpression:[1,275],SingleClassItem:[2,276]},dialects:{jsx:0,ts:15098},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:326,get:e=>f[e]||-1},{term:342,get:e=>m[e]||-1},{term:95,get:e=>g[e]||-1}],tokenPrec:15124});var D=n(4859),b=n(2400),y=n(4563),v=n(5045),A=n(4450);const E=[(0,v.Gw)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,v.Gw)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,v.Gw)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,v.Gw)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,v.Gw)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,v.Gw)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,v.Gw)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,v.Gw)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,v.Gw)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,v.Gw)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,v.Gw)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],C=E.concat([(0,v.Gw)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,v.Gw)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,v.Gw)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),k=new A.RY,S=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function x(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const w=["FunctionDeclaration"],T={FunctionDeclaration:x("function"),ClassDeclaration:x("class"),ClassExpression:()=>!0,EnumDeclaration:x("constant"),TypeAliasDeclaration:x("type"),NamespaceDeclaration:x("namespace"),VariableDefinition(e,t){e.matchContext(w)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function F(e,t){let n=k.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(A.Qj.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=T[t.name];if(e&&e(t,o)||S.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of F(e,t.node))r.push(n);return!1}})),k.set(t,r),r}const _=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,P=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function B(e){let t=(0,D.mv)(e.state).resolveInner(e.pos,-1);if(P.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&_.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)S.has(i.name)&&(r=r.concat(F(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:_}}function R(e,t,n){var r;let i=[];for(;;){let o,s=t.firstChild;if("VariableName"==(null===s||void 0===s?void 0:s.name))return i.push(e(s)),{path:i.reverse(),name:n};if("MemberExpression"!=(null===s||void 0===s?void 0:s.name)||"PropertyName"!=(null===(r=o=s.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=s}}function N(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,D.mv)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?R(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?P.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&_.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?R(t,n,""):e.explicit?{path:[],name:""}:null:R(t,n.parent,"")}function I(e){let t=new Map;return n=>{let r=N(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=[],r=new Set;for(let o=0;;o++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(a)||r.has(a))continue;let s;r.add(a);try{s=e[a]}catch(i){continue}n.push({label:a,type:"function"==typeof s?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-o})}let s=Object.getPrototypeOf(e);if(!s)return n;e=s}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:_}}}const Q=D.bj.define({name:"javascript",parser:O.configure({props:[D.Oh.add({IfStatement:(0,D.mz)({except:/^\s*({|else\b)/}),TryStatement:(0,D.mz)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:D._Y,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,D.Ay)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,D.mz)({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),D.b_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":D.yd,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),M={test:e=>/^JSX/.test(e.name),facet:(0,D.p9)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},L=Q.configure({dialect:"ts"},"typescript"),$=Q.configure({dialect:"jsx",props:[D.Q0.add((e=>e.isTop?[M]:void 0))]}),z=Q.configure({dialect:"jsx ts",props:[D.Q0.add((e=>e.isTop?[M]:void 0))]},"typescript");let U=e=>({label:e,type:"keyword"});const j="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(U),q=j.concat(["declare","implements","private","protected","public"].map(U));function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.jsx?e.typescript?z:$:e.typescript?L:Q,n=e.typescript?C.concat(q):E.concat(j);return new D.Yy(t,[Q.data.of({autocomplete:(0,v.Ar)(P,(0,v.et)(n))}),Q.data.of({autocomplete:B}),e.jsx?Y:[]])}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let r=null===t||void 0===t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const H="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Y=y.Lz.inputHandler.of(((e,t,n,r,i)=>{if((H?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!Q.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange((e=>{var t;let n,{head:i}=e,o=(0,D.mv)(s).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),s.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:""}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=Z(s.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e="".concat(n,">");return{range:b.OF.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(n=Z(s.doc,t,i)))return{range:e,changes:{from:i,insert:"")}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function V(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{var r;(null===(r=e.meta.docs)||void 0===r?void 0:r.recommended)&&(t.rules[n]=2)}))),n=>{let{state:r}=n,i=[];for(let{from:o,to:s}of Q.findRegions(r)){let n=r.doc.lineAt(o),a={line:n.number-1,col:o-n.from,pos:o};for(let l of e.verify(r.sliceDoc(o,s),t))i.push(W(l,r.doc,a))}return i}}function G(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function W(e,t,n){let r=G(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?G(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,s=t[0]+n.pos-r,a=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+s,to:t+a,insert:o},scrollIntoView:!0})}}]}return i}},4064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(r,a))}},4179:(e,t,n)=>{"use strict";n.d(t,{Aj:()=>w,Lu:()=>m,U1:()=>T,uC:()=>f});var r=n(4450),i=n(5683);class o{constructor(e,t,n,r,i,o,s,a,l){let u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=arguments.length>10?arguments[10]:void 0;this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return"[".concat(this.stack.filter(((e,t)=>t%3==0)).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}static start(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.parser.context;return new o(e,[],t,n,n,0,[],0,r?new s(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=this.reducePos=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4]){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new a(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let r=0;r>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class s{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class a{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class l{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.bufferBase+e.buffer.length;return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const h=new c;class d{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r=this.chunk2Pos&&tr.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=h,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class p{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class f{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?u(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}f.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,n,r,i,o){let s=0,a=1<0){let n=e[h];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||D(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[s+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3])){for(;u>1,o=n+i+(i<<1),a=e[o],l=e[o+1]||65536;if(r=l)){s=e[o+2],t.advance();continue e}u=i+1}}break}s=e[n+3*c-1]}}function O(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function D(e,t,n,r){let i=O(n,r,t);return i<0||O(n,r,e)t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class A{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?v(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?v(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(o instanceof r.PH){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+o.length}}}class E{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new c))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let l=0;lu.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let i=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!r.extend&&(n=u,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new c,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new c,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let i=0;i4*e.bufferLength?new A(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;or)i.push(s);else{if(this.advanceStack(s,i,n))continue;{e||(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return b&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>r))&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.uY.contextHash)||0)==n))return e.useNode(a,i),b&&console.log(s+this.stackID(e)+" (via reuse of ".concat(o.getName(a.type.id),")")),!0;if(!(a instanceof r.PH)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof r.PH&&0==a.positions[0]))break;a=l}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),b&&console.log(s+this.stackID(e)+" (via always-reduce ".concat(o.getName(65535&a),")")),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(d):n.push(d)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return k(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o ":"";if(s.deadEnd){if(i)continue;if(i=!0,s.restart(),b&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let c=s.split(),h=u;for(let e=0;c.forceReduce()&&e<10;e++){if(b&&console.log(h+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,n))break;b&&(h=this.stackID(c)+" -> ")}for(let e of s.recoverByInsert(a))b&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),b&&console.log(u+this.stackID(s)+" (via recover-delete ".concat(this.parser.getName(a),")")),k(s,n)):(!r||r.scoree;class w{constructor(e){this.start=e.start,this.shift=e.shift||x,this.reduce=e.reduce||x,this.reuse=e.reuse||x,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class T extends r.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError("Parser version (".concat(e.version,") doesn't match runtime version (",14,")"));let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;re.topRules[t][1])),i=[];for(let r=0;r=0)o(n,e,a[t++]);else{let r=a[t+-n];for(let i=-n;i>0;i--)o(a[t++],e,r);t++}}}this.nodeSet=new r.fI(t.map(((t,o)=>r.Z6.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.cF;let s=u(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let r=0;r"number"==typeof e?new p(s,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new C(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,s=r[i++];if(o&&n)return s;for(let n=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let i=this.stateSlot(e,1);null==r;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=F(this.data,i+2)}r=t(F(this.data,i+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=F(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(T.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError("Invalid top rule name ".concat(e.top));t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=e.specializers.find((e=>e.from==n.external));if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=_(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let r=null;for(let i=0;ie.external(n,r)<<1|t}return e.get}},4450:(e,t,n)=>{"use strict";n.d(t,{$g:()=>I,PH:()=>f,Qj:()=>p,RY:()=>P,Z6:()=>u,cF:()=>r,fI:()=>c,iX:()=>R,rr:()=>B,uY:()=>s});const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.isolate=new s({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[s.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:0;return new x(this.topNode,e)}cursorAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=h.get(this)||this.topNode,r=new x(n);return r.moveTo(e,t),h.set(this,r._tree),r}get topNode(){return new y(this,0,0,null)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=D(h.get(this)||this.topNode,e,t,!1);return h.set(this,n),n}resolveInner(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=D(d.get(this)||this.topNode,e,t,!0);return d.set(this,n),n}resolveStack(e){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof y?r:r.context.parent;o;o=o.parent)if(o.index<0){let e=o.parent;(i||(i=[r])).push(e.resolve(t,n)),o=e}else{let e=a.get(o.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let s=new y(e.tree,e.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(D(s,t,n,!1))}}return i?k(i):r}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&p.IncludeAnonymous)>0;for(let a=this.cursor(o|p.IncludeAnonymous);;){let e=!1;if(a.from<=i&&a.to>=r&&(!s&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(s||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:_(u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new f(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new f(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:a=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new m(n,n.length):n,c=i.types,h=0,d=0;function p(e,t,n,r,s,f){let{id:m,start:E,end:C,size:k}=u,S=d,x=h;for(;k<0;){if(u.next(),-1==k){let t=a[m];return n.push(t),void r.push(E-e)}if(-3==k)return void(h=m);if(-4==k)return void(d=m);throw new RangeError("Unrecognized record size: ".concat(k))}let w,T,F=c[m],P=E-e;if(C-E<=o&&(T=v(u.pos-t,s))){let t=new Uint16Array(T.size-T.skip),n=u.pos-T.size,r=t.length;for(;u.pos>n;)r=A(T.start,t,r);w=new g(t,C-T.start,i),P=T.start-e}else{let e=u.pos-k;u.next();let t=[],n=[],r=m>=l?m:-1,i=0,s=C;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=s-o&&(b(t,n,E,i,u.end,s,r,S,x),i=t.length,s=u.end),u.next()):f>2500?O(E,e,t,n):p(E,e,t,n,r,f+1);if(r>=0&&i>0&&i-1&&i>0){let e=D(F,x);w=_(F,t,n,0,t.length,0,C-E,e,e)}else w=y(F,t,n,C-E,S-C,x)}n.push(w),r.push(P)}function O(e,t,n,r){let s=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:n,size:r}=u;if(r>4)u.next();else{if(l>-1&&t=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-o,t[n++]=s[e+2]-o,t[n++]=n;n.push(new g(t,s[2]-o,i)),r.push(o-e)}}function D(e,t){return(n,r,i)=>{let o,a,l=0,u=n.length-1;if(u>=0&&(o=n[u])instanceof f){if(!u&&o.type==e&&o.length==i)return o;(a=o.prop(s.lookAhead))&&(l=r[u]+o.length+a)}return y(e,n,r,i,l,t)}}function b(e,t,n,r,o,s,a,l,u){let c=[],h=[];for(;e.length>r;)c.push(e.pop()),h.push(t.pop()+n-o);e.push(y(i.types[a],c,h,s-o,l-s,u)),t.push(o-n)}function y(e,t,n,r,i,o,a){if(o){let e=[s.contextHash,o];a=a?[e].concat(a):[e]}if(i>25){let e=[s.lookAhead,i];a=a?[e].concat(a):[e]}return new f(e,t,n,r,a)}function v(e,t){let n=u.fork(),r=0,i=0,s=0,a=n.end-o,c={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=s,s+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u=l?4:0,d=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=l&&(h+=4);n.next()}i=d,r+=e,s+=h}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=s),c.size>4?c:void 0}function A(e,t,n){let{id:r,start:i,end:o,size:s}=u;if(u.next(),s>=0&&r4){let r=u.pos-(s-4);for(;u.pos>r;)n=A(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?h=r:-4==s&&(d=r);return n}let E=[],C=[];for(;u.pos>0;)p(e.start||0,e.bufferStart||0,E,C,-1,0);let k=null!==(t=e.length)&&void 0!==t?t:E.length?C[0]+E[0].length:0;return new f(c[e.topID],E.reverse(),C.reverse(),k)}(e)}}f.empty=new f(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function D(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0&&void 0!==arguments[0]?arguments[0]:0)}getChild(e){let t=v(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return t.length?t[0]:null}getChildren(e){return v(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}resolve(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}resolveInner(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}matchContext(e){return A(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class y extends b{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;for(let o=this;;){for(let{children:s,positions:l}=o._tree,u=t>0?s.length:-1;e!=u;e+=t){let u=s[e],c=l[e]+o.from;if(O(r,n,c,c+u.length))if(u instanceof g){if(i&p.ExcludeBuffers)continue;let s=u.findChild(0,u.buffer.length,t,n-c,r);if(s>-1)return new C(new E(o,u,e,c),null,s)}else if(i&p.IncludeAnonymous||!u.type.isAnonymous||w(u)){let s;if(!(i&p.IgnoreMounts)&&(s=a.get(u))&&!s.overlay)return new y(s.tree,c,e,o);let l=new y(u,c,e,o);return i&p.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&p.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&p.IgnoreOverlays)&&(n=a.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=r:e=r:i>r))return new y(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function v(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1;for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class E{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class C extends b{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new C(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&p.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new C(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new C(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new C(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new f(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||r.to1&&void 0!==arguments[1]?arguments[1]:0;if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof y?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(n&p.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&p.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&p.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&p.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||w(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,e)}prev(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,e)}moveTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r=0;i--){if(i<0)return A(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function w(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||w(e)))}const T=new WeakMap;function F(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=T.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof f)){n=1;break}n+=F(e,r)}T.set(t,n)}return n}function _(e,t,n,r,i,o,s,a,l){let u=0;for(let p=r;p=c)break;f+=t}if(u==i+1){if(f>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-p;h.push(_(e,n,r,i,u,p,t,null,l))}d.push(p+a-o)}}(t,n,r,i,0),(a||l)(h,d,s)}class P{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof C?this.setBuffer(e.context.buffer,e.index,t):e instanceof y&&this.map.set(e.tree,t)}get(e){return e instanceof C?this.getBuffer(e.context.buffer,e.index):e instanceof y?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class B{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[new B(0,e.length,e,0,!1,n)];for(let i of t)i.to>e.length&&r.push(i);return r}static applyChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s=n)for(;o&&o.from=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new B(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=inew o(e.from,e.to))):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class N{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function I(e){return(t,n,r,i)=>new z(t,e,n,r,i)}class Q{constructor(e,t,n,r,i){this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.from=i}}function M(e){if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class L{constructor(e,t,n,r,i,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const $=new s({perNode:!0});class z{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new f(e.type,e.children,e.positions,e.length,e.propValues.concat([[$,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[s.mounted.id]=new a(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(t){let e=t.mounts.find((e=>e.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,o=n.to+e.pos;i>=r.from&&o<=r.to&&!t.ranges.some((e=>e.fromi))&&t.ranges.push({from:i,to:o})}}l=!1}else if(n&&(s=U(n.ranges,r.from,r.to)))l=2!=s;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.fromnew o(e.from-r.from,e.to-r.from))):null,r.tree,e.length?e[0].from:r.from)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else if(t&&(a=t.predicate(r))&&(!0===a&&(a=new o(r.from,r.to)),a.from=0&&t.ranges[e].to==a.from?t.ranges[e]={from:t.ranges[e].from,to:a.to}:t.ranges.push(a)}if(l&&r.firstChild())t&&t.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(t&&! --t.depth){let e=H(this.ranges,t.ranges);e.length&&(M(e),this.inner.splice(t.index,0,new Q(t.parser,t.parser.startParse(this.input,V(t.mounts,e),e),t.ranges.map((e=>new o(e.from-t.start,e.to-t.start))),t.target,e[0].from))),t=t.prev}n&&! --n.depth&&(n=n.prev)}}}}function U(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function j(e,t,n,r,i,o){if(t=e&&t.enter(n,1,p.IgnoreOverlays|p.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof f))break;t=t.children[0]}return!1}}class Z{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop($))&&void 0!==t?t:n.to,this.inner=new X(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop($))&&void 0!==e?e:t.to,this.inner=new X(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null===(n=e.tree)||void 0===n?void 0:n.prop(s.mounted);if(i&&i.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function H(e,t){let n=null,r=t;for(let i=1,s=0;i=l)break;e.to<=a||(n||(r=n=t.slice()),e.froml&&n.splice(s+1,0,new o(l,e.to))):e.to>l?n[s--]=new o(l,e.to):n.splice(s--,1))}}return r}function Y(e,t,n,r){let i=0,s=0,a=!1,l=!1,u=-1e9,c=[];for(;;){let h=i==e.length?1e9:a?e[i].to:e[i].from,d=s==t.length?1e9:l?t[s].to:t[s].from;if(a!=l){let e=Math.max(u,n),t=Math.min(h,d,r);enew o(e.from+r,e.to+r))),l,u);for(let t=0,r=l;;t++){let o=t==a.length,l=o?u:a[t].from;if(l>r&&n.push(new B(r,l,i.tree,-e,s.from>=r||s.openStart,s.to<=l||s.openEnd)),o)break;r=a[t].to}}else n.push(new B(l,u,i.tree,-e,s.from>=e||s.openStart,s.to<=a||s.openEnd))}return n}},4563:(e,t,n)=>{"use strict";n.d(t,{NZ:()=>pe,OP:()=>ke,Lz:()=>cr,wJ:()=>Ii,Z9:()=>ct,xO:()=>he,HJ:()=>hi,VH:()=>Br,A:()=>Ur,ld:()=>_i,Eg:()=>wi,cU:()=>zi,dz:()=>ei,Wu:()=>so,N$:()=>Gr,Ux:()=>xi,w4:()=>Dr,$K:()=>no,c_:()=>st,qf:()=>ii,D4:()=>li,TS:()=>vr,S7:()=>Ni,DK:()=>vi});for(var r=n(2400),i=n(752),o={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:"'"},s={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)o[48+u]=o[96+u]=String(u);for(u=1;u<=24;u++)o[u+111]="F"+u;for(u=65;u<=90;u++)o[u]=String.fromCharCode(u+32),s[u]=String.fromCharCode(u);for(var c in o)s.hasOwnProperty(c)||(s[c]=o[c]);function h(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function d(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function p(e,t){if(!t.anchorNode)return!1;try{return d(e,t.anchorNode)}catch(n){return!1}}function f(e){return 3==e.nodeType?x(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(D(e,t,n,r,-1)||D(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function O(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function D(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:b(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?b(e):0}}}function b(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function y(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function v(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function A(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}class E{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?b(t):0),n,Math.min(e.focusOffset,n?b(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let C,k=null;function S(e){if(e.setActive)return e.setActive();if(k)return e.focus(k);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==k?{get preventScroll(){return k={preventScroll:!0},!0}}:void 0),!k){k=!1;for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:t,r=C||(C=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function w(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,e.dispatchEvent(o);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,e.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function T(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function F(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function _(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=b(n)}else{if(!n.parentNode||O(n))return null;r=g(n),n=n.parentNode}}}function P(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r2&&void 0!==arguments[2])||arguments[2];this.node=e,this.offset=t,this.precise=n}static before(e,t){return new B(e.parentNode,g(e),t)}static after(e,t){return new B(e.parentNode,g(e)+1,t)}}const R=[];class N{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=N.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=I(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=I(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==b(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!N.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,i=0;;r++){let e=this.children[r];if(e.dom==n)return i;i+=e.length+e.breakAfter}}domBoundsAround(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,u=n;at)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=u;break}u=c,l=c+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;this.markDirty();for(let r=e;r0&&void 0!==arguments[0]?arguments[0]:this.length;return new Q(this.children,e,this.children.length)}childPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function I(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}N.prototype.breakAfter=0;class Q{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function M(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:s;if(!(t==r&&c&&!s&&!d&&o.length<2&&c.merge(n,i,o.length?h:null,0==n,a,l))){if(r0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n2);var W={mac:G||/Mac/.test($.platform),windows:/Win/.test($.platform),linux:/Linux|X11/.test($.platform),ie:X,ie_version:j?z.documentMode||6:q?+q[1]:U?+U[1]:0,gecko:Z,gecko_version:Z?+(/Firefox\/(\d+)/.exec($.userAgent)||[0,0])[1]:0,chrome:!!H,chrome_version:H?+H[1]:0,ios:G,android:/Android\b/.test($.userAgent),webkit:Y,safari:V,webkit_version:Y?+(/\bAppleWebKit\/(\d+)/.exec($.userAgent)||[0,0])[1]:0,tabSize:null!=z.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class K extends N{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof K)||this.length-(t-e)+n.length>256||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new K(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new B(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?W.chrome||W.gecko||(t?(i--,s=1):o=0)?0:a.length-1];W.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l);return s?y(l,s<0):l||null}(this.dom,e,t)}}class J extends N{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(T(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof J&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=o,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new J(this.mark,t,o)}domAtPos(e){return ne(this,e)}coordsAt(e,t){return ie(this,e,t)}}class ee extends N{static create(e,t,n){return new ee(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=ee.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof ee&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?B.before(this.dom):B.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let s=o?r.length-1:0;i=r[s],!(e>0?0==s:s==r.length-1||i.top0?B.before(this.dom):B.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.EY.empty}get isHidden(){return!0}}function ne(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let e=r[o-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let o=i;o0&&t instanceof J&&i.length&&(r=i[i.length-1])instanceof J&&r.mark.eq(t.mark)?re(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ie(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,a){for(let l=0,u=0;l=a&&(c.children.length?e(c,a-u):(!o||o.isHidden&&(n>0||oe(o,c)))&&(h>a||u==h&&c.getSide()>0)?(o=c,s=a-u):(u-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function ue(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function ce(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:t>0?1e8:-1e8,new ge(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=Oe(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new ge(e,t,n,r,e.widget||null,!0)}static line(e){return new me(e)}static set(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.om.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}pe.none=r.om.empty;class fe extends pe{constructor(e){let{start:t,end:n}=Oe(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof fe&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&le(this.attrs,e.attrs,"class")}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}fe.prototype.point=!1;class me extends pe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof me&&this.spec.class==e.spec.class&&le(this.spec.attributes,e.spec.attributes)}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}me.prototype.mapMode=r.iR.TrackBefore,me.prototype.point=!0;class ge extends pe{constructor(e,t,n,i,o,s){super(t,n,o,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?r.iR.TrackBefore:r.iR.TrackAfter:r.iR.TrackDel}get type(){return this.startSide!=this.endSide?de.WidgetRange:this.startSide<=0?de.WidgetBefore:de.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ge&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Oe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function De(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}ge.prototype.point=!0;class be extends N{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof be))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),L(this,e,t,n?n.children.slice():[],i,o),!0}split(e){let t=new be;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let i=n;i0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){le(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){re(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=se(t,this.attrs||{})),n&&(this.attrs=se({class:n},this.attrs||{}))}domAtPos(e){return ne(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(T(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ue(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&N.get(r)instanceof J;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=N.get(r))||void 0===n?void 0:n.isEditable)&&(!W.ios||!this.children.some((e=>e instanceof K)))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof K)||/[^ -~]/.test(n.text))return null;let r=f(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ie(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof be)return i;if(o>t)break}r=o+i.breakAfter}return null}}class ye extends N{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof ye&&this.widget.compare(n.widget))||e>0&&i<=0||t0)}}class ve extends he{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Ae{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ye&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new be),this.atCursorPos=!0),this.curLine}flushBuffer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Ee(new te(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof ye||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Ee(new K(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof ge){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof ge)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ye(n.widget||Ce.block,s,n));else{let o=ee.create(n.widget||Ce.inline,s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(Ee(new te(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(Ee(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let s=new Ae(e,t,n,o);return s.openEnd=r.om.spans(i,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Ee(e,t){for(let n of t)e=new J(n,[e],e.length);return e}class Ce extends he{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Ce.inline=new Ce("span"),Ce.block=new Ce("div");var ke=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ke||(ke={}));const Se=ke.LTR,xe=ke.RTL;function we(e){let t=[];for(let n=0;n=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.fromt:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function Ie(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&s.push(new Ne(l,f.from,d)),Le(e,f.direction==Se!=!(d%2)?r+1:r,i,f.inner,f.from,f.to,s),l=f.to}p=f.to}else{if(p==n||(t?Qe[p]!=a:Qe[p]==a))break;p++}h?Me(e,l,p,r+1,i,h,s):lt;){let n=!0,c=!1;if(!u||l>o[u-1].to){let e=Qe[l-1];e!=a&&(n=!1,c=16==e)}let h=n||1!=a?null:[],d=n?r:r+1,p=l;e:for(;;)if(u&&p==o[u-1].to){if(c)break e;let f=o[--u];if(!n)for(let e=f.from,n=u;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(Qe[e-1]==a)break e;break}e=o[--n].from}if(h)h.push(f);else{f.to=0;e-=3)if(Pe[e+1]==-n){let t=Pe[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(Qe[s]=Qe[Pe[e]]=n),a=e;break}}else{if(189==Pe.length)break;Pe[a++]=s,Pe[a++]=t,Pe[a++]=l}else if(2==(r=Qe[s])||1==r){let e=r==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let n=Pe[t+2];if(2&n)break;if(e)Pe[t+2]|=2;else{if(4&n)break;Pe[t+2]|=4}}}}}(e,i,o,r,a),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let s=i?n[i-1].to:e,a=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),Qe[--t]=c;l=s}else o=s,l++}}}(i,o,r,a),Me(e,i,o,t,n,r,s)}function $e(e,t,n){if(!e)return[new Ne(0,0,t==xe?1:0)];if(t==Se&&!n.length&&!Re.test(e))return ze(e.length);if(n.length)for(;e.length>Qe.length;)Qe[Qe.length]=256;let r=[],i=t==Se?0:1;return Le(e,i,i,n,0,e.length,r),r}function ze(e){return[new Ne(0,e,0)]}let Ue="";function je(e,t,n,i,o){var s;let a=i.head-e.from,l=Ne.find(t,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc),u=t[l],c=u.side(o,n);if(a==c){let e=l+=o?1:-1;if(e<0||e>=t.length)return null;u=t[l=e],a=u.side(!o,n),c=u.side(o,n)}let h=(0,r.zK)(e.text,a,u.forward(o,n));(hu.to)&&(h=c),Ue=e.text.slice(Math.min(a,h),Math.max(a,h));let d=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return d&&h==c&&d.level+(o?0:1)e.some((e=>e))}),tt=r.sj.define({combine:e=>e.some((e=>e))}),nt=r.sj.define();class rt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new rt(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new rt(r.OF.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const it=r.Pe.define({map:(e,t)=>e.map(t)}),ot=r.Pe.define();function st(e,t,n){let r=e.facet(Ye);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const at=r.sj.define({combine:e=>!e.length||e[0]});let lt=0;const ut=r.sj.define();class ct{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new ct(lt++,e,n,r,(e=>{let t=[ut.of(e)];return o&&t.push(ft.of((t=>{let n=t.plugin(e);return n?o(n):pe.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return ct.define((t=>new e(t)),t)}}class ht{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(st(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(n){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){st(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){st(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const dt=r.sj.define(),pt=r.sj.define(),ft=r.sj.define(),mt=r.sj.define(),gt=r.sj.define(),Ot=r.sj.define();function Dt(e,t){let n=e.state.facet(Ot);if(!n.length)return n;let i=n.map((t=>t instanceof Function?t(e):t)),o=[];return r.om.spans(i,t.from,t.to,{point(){},span(e,n,r,i){let s=e-t.from,a=n-t.from,l=o;for(let o=r.length-1;o>=0;o--,i--){let e,n=r[o].spec.bidiIsolate;if(null==n&&(n=qe(t.text,s,a)),i>0&&l.length&&(e=l[l.length-1]).to==s&&e.direction==n)e.to=a,l=e.inner;else{let e={from:s,to:a,direction:n,inner:[]};l.push(e),l=e.inner}}}}),o}const bt=r.sj.define();function yt(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(bt)){let s=o(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(r=Math.max(r,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const vt=r.sj.define();class At{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new At(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!a)return n;new At(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class Et{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.VR.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new At(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new Et(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class Ct extends N{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=pe.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new be],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new At(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every((e=>{let{fromA:t,toA:n}=e;return nthis.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;t&&e.iterChangedRanges(((e,r)=>{et.from&&(n=!0)}));return n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=kt(e,n);if(!r)return null;let{node:i,from:o,to:s}=r,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,u=new At(l.mapPos(o),l.mapPos(s),o,s),c=[];for(let h=i.parentNode;;h=h.parentNode){let t=N.get(h);if(t instanceof J)c.push({node:h,deco:t.mark});else{if(t instanceof be||"DIV"==h.nodeName&&h.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:h};if(h==e.contentDOM)return null;c.push({node:h,deco:new fe({inclusive:!0,attributes:ce(h),tagName:h.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new At(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(W.ie||W.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=function(e,t,n){let i=new St;return r.om.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=At.extendWithRanges(n,s),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=W.chrome||W.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?r[o]:null;if(!e)break;let t,s,a,l,{fromA:u,toA:c,fromB:h,toB:d}=e;if(n&&n.range.fromBh){let e=Ae.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=Ae.build(this.view.state.doc,n.range.toB,d,this.decorations,this.dynamicDecorationMap);s=e.breakAtStart,a=e.openStart,l=r.openEnd;let i=this.compositionView(n);r.breakAtStart?i.breakAfter=1:r.content.length&&i.merge(i.length,i.length,r.content[0],!1,r.openStart,0)&&(i.breakAfter=r.content[0].breakAfter,r.content.shift()),e.content.length&&i.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(i).concat(r.content)}else({content:t,breakAtStart:s,openStart:a,openEnd:l}=Ae.build(this.view.state.doc,h,d,this.decorations,this.dynamicDecorationMap));let{i:p,off:f}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);M(this,m,g,p,f,t,s,a,l)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(ot)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new K(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new J(r,[t],t.length);let n=new be;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=N.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let t=this.view.root.activeElement,n=t==this.dom,r=!n&&!(this.view.state.facet(at)||this.dom.tabIndex>-1)&&p(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t));if(!(n||e||r))return;let i=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(o.anchor)),a=o.empty?s:this.moveToLine(this.domAtPos(o.head));if(W.gecko&&o.empty&&!this.hasComposition&&(1==(l=s).node.nodeType&&l.node.firstChild&&(0==l.offset||"false"==l.node.childNodes[l.offset-1].contentEditable)&&(l.offset==l.node.childNodes.length||"false"==l.node.childNodes[l.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=a=new B(e,0),i=!0}var l;let u=this.view.observer.selectionRange;!i&&u.focusNode&&(m(s.node,s.offset,u.anchorNode,u.anchorOffset)&&m(a.node,a.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,o))||(this.view.observer.ignore((()=>{W.android&&W.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=h(this.view.root);if(e)if(o.empty){if(W.gecko){let e=(n=s.node,i=s.offset,1!=n.nodeType?0:(i&&"false"==n.childNodes[i-1].contentEditable?1:0)|(io.head&&([s,a]=[a,s]),t.setEnd(a.node,a.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var n,i;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),t&&t.focus())})),this.view.observer.setSelectionRange(s,a)),this.impreciseAnchor=s.precise?null:new B(u.anchorNode,u.anchorOffset),this.impreciseHead=a.precise?null:new B(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&m(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=h(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=be.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r=0;r--){let e=N.get(n.childNodes[r]);e instanceof be&&(t=e.domAtPos(e.length))}return t?new B(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=N.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let s=this.children[o],a=i-s.breakAfter,l=a-s.length;if(ae||s.covers(1))&&(!n||s instanceof be&&!(n instanceof be&&t>=0)))n=s,r=l;else if(n&&l==e&&a==e&&s instanceof ye&&Math.abs(t)<2){if(s.deco.startSide<0)break;o&&(n=null)}i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof be))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof K))return null;let o=(0,r.zK)(i.text,n);if(o==n)return null;let s=x(i.dom,n,o).getClientRects();for(let r=0;rMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==ke.LTR;for(let l=0,u=0;ur)break;if(l>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),o){let t=e.dom.lastChild,r=t?f(t):[];if(r.length){let e=r[r.length-1],t=a?e.right-n.left:n.right-e.left;t>s&&(s=t,this.minWidth=i,this.minWidthFrom=l,this.minWidthTo=c)}}}l=c+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?ke.RTL:ke.LTR}measureTextSize(){for(let i of this.children)if(i instanceof be){let e=i.measureTextSize();if(e)return e}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=f(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new Q(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(pe.replace({widget:new ve(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return pe.set(e)}updateDeco(){let e=1,t=this.view.state.facet(ft).map((t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t)),n=!1,i=this.view.state.facet(mt).map(((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e}));for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(r.om.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=yt(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,h=!1;c&&!h;)if(1==c.nodeType){let e,d=c==l.body,p=1,f=1;if(d)e=v(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:p,scaleY:f}=A(c,t)),e={left:t.left,right:t.left+c.clientWidth*p,top:t.top,bottom:t.top+c.clientHeight*f}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+s)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+s,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.lefte.bottom||t.lefte.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,n.heade?t.left-e:Math.max(0,e-t.right)}function wt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Tt(e,t){return e.topt.top+1}function Ft(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Pt(e,t,n){let r,i,o,s,a,l,u,c,h=!1;for(let p=e.firstChild;p;p=p.nextSibling){let e=f(p);for(let d=0;dg||s==g&&o>m){r=p,i=f,o=m,s=g;let a=g?n0?d0)}0==m?n>f.bottom&&(!u||u.bottomf.top)&&(l=p,c=f):u&&Tt(u,f)?u=_t(u,f.bottom):c&&Tt(c,f)&&(c=Ft(c,f.top))}}if(u&&u.bottom>=n?(r=a,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let d=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Bt(r,d,n):h&&"false"!=r.contentEditable?Pt(r,d,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Bt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;an?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if(W.chrome||W.gecko){x(e,a).getBoundingClientRect().left==u.right&&(r=!n)}if(c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Rt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var i,o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:h}=t,d=h-l;if(d<0)return 0;if(d>u)return e.state.doc.length;for(let b=e.viewState.heightOracle.textHeight/2,v=!1;s=e.elementAtHeight(d),s.type!=de.Text;)for(;d=r>0?s.bottom+b:s.top-b,!(d>=0&&d<=u);){if(v)return n?null:0;v=!0,r=-r}h=l+d;let p=s.from;if(pe.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:Nt(e,a,s,c,h);let f=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:f,g=m.elementFromPoint(c,h);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,h),g&&!e.contentDOM.contains(g)&&(g=null));let O,D=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable)){if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(c,h);e&&({offsetNode:O,offset:D}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(c,h);t&&(({startContainer:O,startOffset:D}=t),(!e.contentDOM.contains(O)||W.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return x(e,r-1,r).getBoundingClientRect().left>n}(O,D,c)||W.chrome&&function(e,t,n){if(0!=t)return!1;for(let i=e;;){let e=i.parentNode;if(!e||1!=e.nodeType||e.firstChild!=i)return!1;if(e.classList.contains("cm-line"))break;i=e}let r=1==e.nodeType?e.getBoundingClientRect():x(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(O,D,c))&&(O=void 0))}O&&(D=Math.min(b(O),D))}if(!O||!e.docView.dom.contains(O)){let t=be.find(e.docView,p);if(!t)return d>s.top+s.height/2?s.to:s.from;({node:O,offset:D}=Pt(t.dom,c,h))}let y=e.docView.nearest(O);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;s+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.kn)(a,s,e.state.tabSize)}function It(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;e&&(i.type!=de.Text||e.type==i.type&&!(n<0?i.fromt))||(e=i)}}return e||r}return r}function Qt(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=je(i,o,s,a,n),u=Ue;if(!t){if(i.number==(n?e.state.doc.lines:1))return a;u="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return t;l=r(u)}a=t}}function Mt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.OF.cursor(i,ie)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,s=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=N.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Ut(e,n.node,n.offset)?t:0))}}function Ut(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new jt(n,r)),i==n&&o==r||t.push(new jt(i,o)));return t}(e),n=new zt(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.OF.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!d(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!d(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((W.ios||W.chrome)&&e.state.selection.main.empty&&n!=i&&(a.from>0||a.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=o.from,u=null;(8===s||W.android&&t.text.length0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==r){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s=s?o-n:0,a=o+(a-s),s=o}else if(a=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,a,$t),t.text,l-i,u);c&&(W.chrome&&13==s&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==$t+$t&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.EY.of(t.text.slice(c.from,c.toB).split($t))})}else i&&(!e.hasFocus&&e.state.facet(at)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:(W.mac||W.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:n.from,to:n.to,insert:r.EY.of([n.insert.toString().replace("."," ")])}):n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:W.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.EY.of([" "])}),n)return Zt(e,n,i,s);if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}function Zt(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(W.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main;if(W.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&w(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==i&&t.insert.lengtho.head)&&w(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&w(e.contentDOM,"Delete",46)))return!0;let s,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>s||(s=function(e,t,n){let i,o=e.state,s=o.selection.main;if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=s.fromt.to?o.sliceDoc(t.to,s.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let a=o.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=s.to&&t.to>=s.to-10){let u,c=e.state.sliceDoc(t.from,t.to),h=n&&kt(e,n.main.head);if(h){let e=t.insert.length-(t.to-t.from);u={from:h.from,to:h.to-e}}else u=e.state.doc.lineAt(s.head);let d=s.to-t.to,p=s.to-s.from;i=o.changeByRange((n=>{if(n.from==s.from&&n.to==s.to)return{changes:a,range:l||n.map(a)};let i=n.to-d,h=i-c.length;if(n.to-n.from!=p||e.state.sliceDoc(h,i)!=c||n.to>=u.from&&n.from<=u.to)return{range:n};let f=o.changes({from:h,to:i,insert:t.insert}),m=n.to-s.to;return{changes:f,range:l?r.OF.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(f)}}))}else i={changes:a,selection:l&&o.selection.replaceRange(l)}}let a="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1));return o.update(i,{userEvent:a,scrollIntoView:!0})}(e,t,n));return e.state.facet(Ge).some((n=>n(e,t.from,t.to,a,l)))||e.dispatch(l()),!0}class Ht{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,W.safari&&e.contentDOM.addEventListener("input",(()=>null)),W.gecko&&function(e){vn.has(e)||(vn.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=N.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then((()=>this.runHandlers(e.type,e))):this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Vt(e),n=this.handlers,r=this.view.contentDOM;for(let i in t)if("scroll"!=i){let e=!t[i].handlers.length,o=n[i];o&&e!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:e})}for(let i in n)"scroll"==i||t[i]||r.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&Kt.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),W.android&&W.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!W.ios||e.synthetic||e.altKey||e.metaKey||!((t=Gt.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||Wt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(!("Enter"==t.key&&e&&e.from0||!!(W.safari&&!W.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Yt(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){st(n.state,i)}}}function Vt(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let i=e.domEventHandlers[t];i&&n(t).handlers.push(Yt(r.value,i))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let i=e.domEventObservers[t];i&&n(t).observers.push(Yt(r.value,i))}}for(let r in tn)n(r).handlers.push(tn[r]);for(let r in nn)n(r).observers.push(nn[r]);return t}const Gt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Wt="dthko",Kt=[16,17,18,20,91,92,224,225];function Jt(e){return.7*Math.max(0,e)+8}class en{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=function(e){let t,n,r=e.ownerDocument;for(let i=e.parentNode;i&&!(i==r.body||t&&n);)if(1==i.nodeType)!n&&i.scrollHeight>i.clientHeight&&(n=i),!t&&i.scrollWidth>i.clientWidth&&(t=i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}return{x:t,y:n}}(e.contentDOM),this.atoms=e.state.facet(gt).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.$t.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Xe);return n.length?n[0](t):W.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=h(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=mn(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(t=this.startEvent,n=e,Math.max(Math.abs(t.clientX-n.clientX),Math.abs(t.clientY-n.clientY))<10))return;var t,n;this.select(this.lastEvent=e);let r=0,i=0,o=0,s=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let u=yt(this.view);e.clientX-u.left<=o+6?r=-Jt(o-e.clientX):e.clientX+u.right>=a-6&&(r=Jt(e.clientX-a)),e.clientY-u.top<=s+6?i=-Jt(s-e.clientY):e.clientY+u.bottom>=l-6&&(i=Jt(e.clientY-l)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;ne.isUserEvent("input.type")))?this.destroy():this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const tn=Object.create(null),nn=Object.create(null),rn=W.ie&&W.ie_version<15||W.ios&&W.webkit_version<604;function on(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function sn(e,t){t=on(e.state,Ke,t);let n,{state:i}=e,o=1,s=i.toText(t),a=s.lines==i.selection.ranges.length;if(null!=On&&i.selection.ranges.every((e=>e.empty))&&On==s.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((a?s.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.OF.cursor(n.from+u.length)}}))}else n=a?i.changeByRange((e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.OF.cursor(e.from+t.length)}})):i.replaceSelection(s);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function an(e,t,n,i){if(1==i)return r.OF.cursor(t,n);if(2==i)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.charCategorizer(t),o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return r.OF.cursor(t);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=(0,r.zK)(o.text,s,!1):l=(0,r.zK)(o.text,s);let u=i(o.text.slice(a,l));for(;a>0;){let e=(0,r.zK)(o.text,a,!1);if(i(o.text.slice(e,a))!=u)break;a=e}for(;l{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},tn.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),nn.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},nn.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},tn.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(He))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=cn(e,t),i=mn(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,s,a){let l,u=cn(e,t),c=an(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!s){let t=an(e,n.pos,n.bias,i),o=Math.min(t.from,c.from),s=Math.max(t.to,c.to);c=o1&&(l=function(e,t){for(let n=0;n=t)return r.OF.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,u.pos))?l:a?o.addRange(c):r.OF.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new en(e,t,n,r)),r&&e.observer.ignore((()=>{S(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()}));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let ln=(e,t,n)=>t>=n.top&&t<=n.bottom&&e>=n.left&&e<=n.right;function un(e,t,n,r){let i=be.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let s=i.coordsAt(o,-1);if(s&&ln(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&ln(n,r,a)?1:s&&s.bottom>=r?-1:1}function cn(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:un(e,n,t.clientX,t.clientY)}}const hn=W.ie&&W.ie_version<=11;let dn=null,pn=0,fn=0;function mn(e){if(!hn)return e.detail;let t=dn,n=fn;return dn=e,fn=Date.now(),pn=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(pn+1)%3:1}function gn(e,t,n,r){if(!(n=on(e.state,Ke,n)))return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,s=r&&o&&function(e,t){let n=e.state.facet(Ze);return n.length?n[0](t):W.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}tn.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=n.to||t<=n.from)&&(n=r.OF.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",on(e.state,Je,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1},tn.dragend=e=>(e.inputState.draggedContent=null,!1),tn.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&gn(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return gn(e,t,n,!0),!0}return!1},tn.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=rn?null:t.clipboardData;return n?(sn(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),sn(e,n.value)}),50)}(e),!1)};let On=null;tn.copy=tn.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:on(e,Je,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;On=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=rn?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const Dn=r.YH.define();function bn(e,t){let n=[];for(let r of e.facet(We)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:Dn.of(!0)}):null}function yn(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=bn(e.state,t);n?e.dispatch(n):e.update([])}}),10)}nn.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),yn(e)},nn.blur=e=>{e.observer.clearSelectionRange(),yn(e)},nn.compositionstart=nn.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},nn.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,W.chrome&&W.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50))},nn.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},tn.beforeinput=(e,t)=>{var n,r;if("insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return Zt(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}let i;if(W.chrome&&W.android&&(i=Gt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return W.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),W.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout((()=>nn.compositionend(e,t)),20),!1};const vn=new Set;const An=["pre-wrap","normal","pre-line","break-spaces"];let En=!1;function Cn(){En=!1}class kn{constructor(e){this.lineWrapping=e,this.doc=r.EY.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return An.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:2;this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Tn&&(En=!0),this.height=e)}replace(e,t,n){return Fn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=r[s],h=i.lineAt(a,wn.ByPosNoHeight,n.setDoc(t),0,0),d=h.to>=l?h:i.lineAt(l,wn.ByPosNoHeight,n,0,0);for(c+=d.to-l,l=d.to;s>0&&h.from<=r[s-1].toA;)a=r[s-1].fromA,u=r[s-1].fromB,s--,a2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return"block(".concat(this.length,")")}}class Bn extends Pn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new xn(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof Bn||r instanceof Rn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof Rn?r=new Bn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):Fn.of(n)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(r.heights[r.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}class Rn extends Fn{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(s=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e0){let e=n[n.length-1];e instanceof Rn?n[n.length-1]=new Rn(e.length+r):n.push(null,new Rn(r-1))}if(e>0){let t=n[0];t instanceof Rn?n[0]=new Rn(e+t.length):n.unshift(new Rn(e-1),null)}return Fn.of(n)}decomposeLeft(e,t){t.push(new Rn(e-1),null)}decomposeRight(e,t){t.push(null,new Rn(this.length-e-1))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new Rn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=Tn&&(s=-2);let a=new Bn(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new Rn(i-o).updateHeight(e,o));let a=Fn.of(n);return(s<0||Math.abs(a.height-this.height)>=Tn||Math.abs(s-this.heightMetrics(e,t).perLine)>=Tn)&&(En=!0),_n(this,a)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return"gap(".concat(this.length,")")}}class Nn extends Fn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return es))return l;let u=t==wn.ByPosNoHeight?wn.ByPosNoHeight:wn.ByPos;return a?l.join(this.right.lineAt(s,u,n,o,s)):this.left.lineAt(s,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,wn.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of n)i.push(s);if(e>0&&In(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?Fn.of(this.break?[e,null,t]:[e,t]):(this.left=_n(this.left,e),this.right=_n(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,{left:i,right:o}=this,s=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function In(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof Rn&&(r=e[t+1])instanceof Rn&&e.splice(t-1,3,new Rn(n.length+1+r.length))}class Qn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Bn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Bn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Bn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Rn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Bn)return e;let t=new Bn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Bn||this.isCovered?(this.writtenTot.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();o=Math.max(o,n.left),s=Math.min(s,n.right),a=Math.max(a,n.top),l=Math.min(u==e.parentNode?i.innerHeight:l,n.bottom)}u="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function $n(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class zn{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new kn(t),this.stateDeco=e.facet(ft).filter((e=>"function"!=typeof e)),this.heightMap=Fn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle.setDoc(e.doc),[new At(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=pe.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((e=>{let{from:t,to:n}=e;return r>=t&&r<=n}))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new qn(t,n))}}return this.viewports=e.sort(((e,t)=>e.from-t.from)),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Hn:new Yn(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(Vn(e,this.scaler))}))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ft).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=At.extendWithRanges(i,function(e,t,n){let i=new Mn;return r.om.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.VR.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Cn(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=s||En)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=s);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(tt)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ke.RTL:ke.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=A(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,u|=16,s=l=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==d||(this.paddingTop=h,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=F(e.scrollDOM);let f=(this.printing?$n:Ln)(t,this.paddingTop),m=f.top-this.pixelViewport.top,g=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}(e.dom))return 0;let D=a.width;if(this.contentDOMWidth==D&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(D-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();s=n>0&&i.refresh(o,n,r,a,D/r,t),s&&(e.docView.minWidth=0,u|=16)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),Cn();for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(s?Fn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle,[new At(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new Sn(n.from,o))}En&&(u|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(2&u&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(2&u||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new qn(r.lineAt(o-1e3*n,wn.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),wn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(ea.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(e,wn.ByPos,i,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,wn.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,wn.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(0==t||i<=s-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=a+Math.max(10,Math.min(r,250)))&&i>s-2e3&&o>1,s=i<<1;if(this.defaultTextDirection!=ke.LTR&&!n)return[];let a=[],l=(i,s,u,c)=>{if(s-ii&&ee.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)e.fromt))));if(!p){if(se.from<=s&&e.to>=s))){let e=t.moveToLineBoundary(r.OF.cursor(s),!1,!0).head;e>i&&(s=e)}let e=this.gapSize(u,i,s,c);p=new zn(i,s,e,n||e<2e6?e:2e6)}a.push(p)},u=t=>{if(t.lengtho&&(i.push({from:o,to:e}),s+=e-o),o=t}},20),o2e6)for(let i of e)i.from>=t.from&&i.fromt.from&&l(t.from,a,t,o),ue.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];r.om.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Vn(this.heightMap.lineAt(e,wn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((t=>t.top<=e&&t.bottom>=e))||Vn(this.heightMap.lineAt(this.scaler.fromDOM(e),wn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Vn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class qn{constructor(e,t){this.from=e,this.to=t}}function Xn(e,t){let{total:n,ranges:r}=e;if(t<=0)return r[0].from;if(t>=1)return r[r.length-1].to;let i=Math.floor(n*t);for(let o=0;;o++){let{from:e,to:t}=r[o],n=t-e;if(i<=n)return e+i;i-=n}}function Zn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Hn={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class Yn{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((n=>{let{from:i,to:o}=n,s=t.lineAt(i,wn.ByPos,e,0,0).top,a=t.lineAt(o,wn.ByPos,e,0,0).bottom;return r+=a-s,{from:i,to:o,top:s,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tt.from==e.viewports[n].from&&t.to==e.viewports[n].to)))}}function Vn(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new xn(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map((e=>Vn(e,t))):e._content)}const Gn=r.sj.define({combine:e=>e.join(" ")}),Wn=r.sj.define({combine:e=>e.indexOf(!0)>-1}),Kn=i.G.newName(),Jn=i.G.newName(),er=i.G.newName(),tr={"&light":"."+Jn,"&dark":"."+er};function nr(e,t,n){return new i.G(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError("Unsupported selector: ".concat(t));return n[t]})):e+" "+t})}const rr=nr("."+Kn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},tr),ir={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},or=W.ie&&W.ie_version<=11;class sr{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new E,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(W.ie&&W.ie_version<=11||W.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),!window.EditContext||!1===e.constructor.EDIT_CONTEXT||W.chrome&&W.chrome_version<126||(this.editContext=new ur(e),e.state.facet(at)&&(e.contentDOM.editContext=this.editContext.editContext)),or&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(at)?n.root.activeElement!=this.dom:!p(this.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(W.ie&&W.ie_version<=11||W.android&&W.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=h(e.root);if(!t)return!1;let n=W.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return lr(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?lr(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=p(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&w(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&p(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new qt(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=Xt(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=ar(t,e.previousSibling||e.target.previousSibling,-1),r=ar(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(at)!=e.state.facet(at)&&(e.view.contentDOM.editContext=e.state.facet(at)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ar(e,t,n){for(;t;){let r=N.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function lr(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return m(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class ur{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=t=>{let n=e.state.selection.main,{anchor:i,head:o}=n,s=this.toEditorPos(t.updateRangeStart),a=this.toEditorPos(t.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:t.updateRangeStart,editorBase:s,drifted:!1});let l={from:s,to:a,insert:r.EY.of(t.text.split("\n"))};if(l.from==this.from&&ithis.to&&(l.to=i),l.from!=l.to||l.insert.length){if((W.mac||W.android)&&l.from==o-1&&/^\. ?$/.test(t.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(l={from:s,to:a,insert:r.EY.of([t.text.replace("."," ")])}),this.pendingContextChange=l,!e.state.readOnly){let n=this.to-this.from+(l.to-l.from+l.insert.length);Zt(e,l,r.OF.single(this.toEditorPos(t.selectionStart,n),this.toEditorPos(t.selectionEnd,n)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))}else{let i=r.OF.single(this.toEditorPos(t.selectionStart),this.toEditorPos(t.selectionEnd));i.main.eq(n)||e.dispatch({selection:i,userEvent:"select"})}},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if("None"!=t&&"None"!=r){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=h(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges(((i,o,s,a,l)=>{if(n)return;let u=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l))return r=this.pendingContextChange=null,t+=u,void(this.to+=u);r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=u,this.to+=u;else if(ithis.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=u}t+=u})),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some((e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to))))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to3e4)}toEditorPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.to-this.from;e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class cr{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach((e=>n(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new jn(e.state||r.$t.create(e)),e.scrollTo&&e.scrollTo.is(it)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ut).map((e=>new ht(e)));for(let r of this.plugins)r.update(this);this.observer=new sr(this),this.inputState=new Ht(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ct(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then((()=>this.requestMeasure()))}dispatch(){for(var e=arguments.length,t=new Array(e),n=0;ne.annotation(Dn)))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=bn(o,s),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.$t.phrases)!=this.state.facet(r.$t.phrases))return this.setState(o);t=Et.create(this,o,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new rt(e.empty?e:r.OF.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(it)&&(h=e.value.clip(this.state))}this.viewState.update(t,h),this.bidiCache=pr.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(vt)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Gn)!=t.state.facet(Gn)&&(this.viewState.mustMeasureContent=!0),(n||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let r of this.state.facet(Ve))try{r(t)}catch(d){st(this.state,d,"update listener")}(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Xt(this,c)&&u.force&&w(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new jn(e),this.plugins=e.facet(ut).map((e=>new ht(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Ct(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ut),n=e.state.facet(ut);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new ht(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(F(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&a||([this.measureRequests,l]=[l,this.measureRequests]);let u=l.map((e=>{try{return e.read(this)}catch(t){return st(this.state,t),dr}})),c=Et.create(this,this.state,[]),h=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),h=this.docView.update(c),h&&this.docViewUpdate());for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(Ve))a(t)}get themeClasses(){return Kn+" "+(this.state.facet(Wn)?er:Jn)+" "+this.state.facet(Gn)}updateAttrs(){let e=fr(this,dt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(at)?"true":"false",class:"cm-content",style:"".concat(W.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),fr(this,pt,t);let n=this.observer.ignore((()=>{let n=ue(this.contentDOM,this.contentAttrs,t),r=ue(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(cr.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(vt);let e=this.state.facet(cr.cspNonce);i.G.mount(this.root,this.styleModules.concat(rr).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Lt(this,e,Qt(this,e,t,n))}moveByGroup(e,t){return Lt(this,e,Qt(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.Je.Space&&(o=t),o==t}}(this,e.head,t))))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),o=n[t?n.length-1:0];return r.OF.cursor(o.side(t,i)+e.from,o.forward(!t,i)?1:-1)}moveToLineBoundary(e,t){return function(e,t,n,i){let o=It(e,t.head,t.assoc||-1),s=i&&o.type==de.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(i==ke.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=a)return r.OF.cursor(a,n?-1:1)}return r.OF.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(e,t,n){return Lt(this,e,function(e,t,n,i){let o=t.head,s=n?1:-1;if(o==(n?e.state.doc.length:0))return r.OF.cursor(o,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),h=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=s<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),a=(s<0?t.top:t.bottom)+h}let d=u.left+l,p=null!==i&&void 0!==i?i:e.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let t=a+(p+f)*s,n=Rt(e,{x:d,y:t},!1,s);if(tu.bottom||(s<0?no)){let i=e.docView.coordsForChar(n),o=!i||t1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}posAtCoords(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rt(this,e,t)}coordsAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return y(n,i[Ne.find(i,e-r.from,-1,t)].dir==ke.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(et)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>hr)return ze(e.length);let t,n=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||Ie(i.isolates,t=Dt(this,e))))return i.order;t||(t=Dt(this,e));let r=$e(e.text,n,t);return this.bidiCache.push(new pr(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||W.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{S(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.of(new rt("number"==typeof e?r.OF.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return it.of(new rt(r.OF.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ct.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return ct.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.G.newName(),r=[Gn.of(n),vt.of(nr(".".concat(n),e))];return t&&t.dark&&r.push(Wn.of(!0)),r}static baseTheme(e){return r.Nb.lowest(vt.of(nr("."+Kn,e,tr)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&N.get(n)||N.get(e);return(null===(t=null===r||void 0===r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}cr.styleModule=vt,cr.inputHandler=Ge,cr.clipboardInputFilter=Ke,cr.clipboardOutputFilter=Je,cr.scrollHandler=nt,cr.focusChangeEffect=We,cr.perLineTextDirection=et,cr.exceptionSink=Ye,cr.updateListener=Ve,cr.editable=at,cr.mouseSelectionStyle=He,cr.dragMovesSelection=Ze,cr.clickAddsSelectionRange=Xe,cr.decorations=ft,cr.outerDecorations=mt,cr.atomicRanges=gt,cr.bidiIsolatedRanges=Ot,cr.scrollMargins=bt,cr.darkTheme=Wn,cr.cspNonce=r.sj.define({combine:e=>e.length?e[0]:""}),cr.contentAttributes=pt,cr.editorAttributes=dt,cr.lineWrapping=cr.contentAttributes.of({class:"cm-lineWrapping"}),cr.announce=r.Pe.define();const hr=4096,dr={};class pr{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:ke.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&se(o,n)}return n}const mr=W.mac?"mac":W.windows?"win":W.linux?"linux":"key";function gr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const Or=r.Nb.default(cr.domEventHandlers({keydown:(e,t)=>kr(yr(t.state),e,t,"editor")})),Dr=r.sj.define({enables:Or}),br=new WeakMap;function yr(e){let t=e.facet(Dr),n=br.get(t);return n||br.set(t,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mr,n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s,a)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let l=0;l{let r=Ar={view:t,prefix:n,scope:e};return setTimeout((()=>{Ar==r&&(Ar=null)}),Er),!0}]})}let d=h.join(" ");i(d,!1);let p=c[d]||(c[d]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});o&&p.run.push(o),s&&(p.preventDefault=!0),a&&(p.stopPropagation=!0)};for(let s of e){let e=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=s;for(let t in e)e[t].run.push((e=>r(e,Cr)))}let r=s[t]||s.key;if(r)for(let t of e)o(t,r,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(t,"Shift-"+r,s.shift,s.preventDefault,s.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function vr(e,t,n){return kr(yr(e.state),t,e,n)}let Ar=null;const Er=4e3;let Cr=null;function kr(e,t,n,i){Cr=t;let u=function(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:o)[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}(t),c=(0,r.vS)(u,0),h=(0,r.Fh)(c)==u.length&&" "!=u,d="",p=!1,f=!1,m=!1;Ar&&Ar.view==n&&Ar.scope==i&&(d=Ar.prefix+" ",Kt.indexOf(t.keyCode)<0&&(f=!0,Ar=null));let g,O,D=new Set,b=e=>{if(e){for(let t of e.run)if(!D.has(t)&&(D.add(t),t(n)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),f=!0)}return!1},y=e[i];return y&&(b(y[d+gr(u,t,!h)])?p=!0:h&&(t.altKey||t.metaKey||t.ctrlKey)&&!(W.windows&&t.ctrlKey&&t.altKey)&&(g=o[t.keyCode])&&g!=u?(b(y[d+gr(g,t,!0)])||t.shiftKey&&(O=s[t.keyCode])!=u&&O!=g&&b(y[d+gr(O,t,!1)]))&&(p=!0):h&&t.shiftKey&&b(y[d+gr(u,t,!0)])&&(p=!0),!p&&b(y._any)&&(p=!0)),f&&(p=!0),p&&m&&t.stopPropagation(),Cr=null,p}class Sr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=xr(e);return[new Sr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==ke.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=xr(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=a.right-(c?parseInt(c.paddingRight):0),p=It(e,r,1),f=It(e,i,-1),m=p.type==de.Text?p:null,g=f.type==de.Text?f:null;m&&(e.lineWrapping||p.widgetLineBreaks)&&(m=wr(e,r,1,m));g&&(e.lineWrapping||f.widgetLineBreaks)&&(g=wr(e,i,-1,g));if(m&&g&&m.from==g.from&&m.to==g.to)return D(b(n.from,n.to,m));{let t=m?b(n.from,null,m):y(p,!1),r=g?b(null,n.to,g):y(f,!0),i=[];return(m||p).to<(g||f).from-(m&&g?1:0)||p.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2u&&o.from=i)break;a>r&&l(Math.max(e,r),null==t&&e<=u,Math.min(a,i),null==n&&a>=c,s.dir)}if(r=o.to+1,r>=i)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function y(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function xr(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ke.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function wr(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,a=e.posAtCoords({x:o.left+1,y:s}),l=e.posAtCoords({x:o.right-1,y:s});return null==a||null==l?r:{from:Math.max(r.from,Math.min(a,l)),to:Math.min(r.to,Math.max(a,l))}}class Tr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Fr)!=e.state.facet(Fr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(Fr);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Fr=r.sj.define();function _r(e){return[ct.define((t=>new Tr(t,e))),Fr.of(e)]}const Pr=r.sj.define({combine:e=>(0,r.QR)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Br(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Pr.of(e),Nr,Qr,Mr,tt.of(!0)]}function Rr(e){return e.startState.facet(Pr)!=e.state.facet(Pr)}const Nr=_r({above:!0,markers(e){let{state:t}=e,n=t.facet(Pr),i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty||n.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.OF.cursor(o.head,o.head>o.anchor?-1:1);for(let r of Sr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=Rr(e);return n&&Ir(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Ir(t.state,e)},class:"cm-cursorLayer"});function Ir(e,t){t.style.animationDuration=e.facet(Pr).cursorBlinkRate+"ms"}const Qr=_r({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:Sr.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||Rr(e),class:"cm-selectionLayer"}),Mr=r.Nb.highest(cr.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),Lr=r.Pe.define({map:(e,t)=>null==e?null:t.mapPos(e)}),$r=r.sU.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(Lr)?t.value:e),e))}),zr=ct.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field($r);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field($r)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field($r),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field($r)!=e&&this.view.dispatch({effects:Lr.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Ur(){return[$r,zr]}function jr(e,t,n,r,i){t.lastIndex=0;for(let o,s=e.iterRange(n,r),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)i(a+o.index,o)}class qr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.vB,n=t.add.bind(t);for(let{from:r,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))jr(e.state.doc,this.regexp,r,i,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,s)=>{s>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(s,r))})),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>=o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;sc.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,e,t,h)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>el,add:c})}}return t}}const Xr=null!=/x/.unicode?"gu":"g",Zr=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Xr),Hr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Yr=null;const Vr=r.sj.define({combine(e){let t=(0,r.QR)(e,{render:null,specialChars:Zr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Yr&&"undefined"!=typeof document&&document.body){let t=document.body.style;Yr=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Yr||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Xr)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Xr)),t}});function Gr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Vr.of(e),Wr||(Wr=ct.fromClass(class{constructor(e){this.view=e,this.decorations=pe.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Vr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new qr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,s=(0,r.vS)(t[0],0);if(9==s){let e=o.lineAt(i),t=n.state.tabSize,s=(0,r.y$)(e.text,t,i-e.from);return pe.replace({widget:new Jr((t-s%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=pe.replace({widget:new Kr(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Vr);e.startState.facet(Vr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Wr=null;class Kr extends he{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"\u2022":10==e?"\u2424":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Hr[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Jr extends he{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function ei(){return ni}const ti=pe.line({class:"cm-activeLine"}),ni=ct.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(ti.range(i.from)),t=i.from)}return pe.set(n)}},{decorations:e=>e.decorations});class ri extends he{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?f(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=y(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function ii(e){let t=ct.fromClass(class{constructor(t){this.view=t,this.placeholder=e?pe.set([pe.widget({widget:new ri(e),side:1}).range(0)]):pe.none}get decorations(){return this.view.state.doc.length?pe.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,cr.contentAttributes.of({"aria-placeholder":e})]:t}const oi=2e3;function si(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,s=o>oi?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.y$)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:s,off:o}}function ai(e,t){let n=si(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,s){let a=si(e,t);if(!a)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),s=[];if(t.off>oi||n.off>oi||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&s.push(r.OF.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.kn)(n.text,a,e.tabSize,!0);if(i<0)s.push(r.OF.cursor(n.to));else{let t=(0,r.kn)(n.text,l,e.tabSize);s.push(r.OF.range(n.from+i,n.from+t))}}}return s}(e.state,n,a);return l.length?s?r.OF.create(l.concat(i.ranges)):r.OF.create(l):i}}:null}function li(e){let t=(null===e||void 0===e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return cr.mouseSelectionStyle.of(((e,n)=>t(n)?ai(e,n):null))}const ui={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},ci={style:"cursor: crosshair"};function hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=ui[e.key||"Alt"],r=ct.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,cr.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?ci:null}))]}const di="-10000px";class pi{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e));let i=null;this.tooltipViews=this.tooltips.map((e=>i=n(e,i)))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter((e=>e));if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],s=t?[]:null;for(let a=0;at[n]=e)),t.length=s.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function fi(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const mi=r.sj.define({combine:e=>{var t,n,r;return{position:W.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||fi}}}),gi=new WeakMap,Oi=ct.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(mi);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new pi(e,vi,((e,t)=>this.createTooltip(e,t)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(mi);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=di,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),null===(e=r.destroy)||void 0===e||e.call(r);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(W.gecko)n=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==di&&"0px"==e.style.left){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=yt(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((e=>{let{dom:t}=e;return t.getBoundingClientRect()})),space:this.view.state.facet(mi).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:o}=e,s=[];for(let a=0;a=Math.min(n.bottom,r.bottom)||h.rightMath.min(n.right,r.right)+.1)){c.style.top=di;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,f=p?7:0,m=d.right-d.left,g=null!==(t=gi.get(u))&&void 0!==t?t:d.bottom-d.top,O=u.offset||yi,D=this.view.textDirection==ke.LTR,b=d.width>r.right-r.left?D?r.left:r.right-d.width:D?Math.max(r.left,Math.min(h.left-(p?14:0)+O.x,r.right-m)):Math.min(Math.max(r.left,h.left-m+(p?14:0)-O.x),r.right-m),y=this.above[a];!l.strictSide&&(y?h.top-g-f-O.yr.bottom)&&y==r.bottom-h.bottom>h.top-r.top&&(y=this.above[a]=!y);let v=(y?h.top-r.top:r.bottom-h.bottom)-f;if(vb&&e.topA&&(A=y?e.top-g-2-f:e.bottom+f+2);if("absolute"==this.position?(c.style.top=(A-e.parent.top)/o+"px",Di(c,(b-e.parent.left)/i)):(c.style.top=A/o+"px",Di(c,b/i)),p){let e=h.left+(D?O.x:-O.x)-(b+14-7);p.style.left=e/i+"px"}!0!==u.overlap&&s.push({left:b,top:A,right:E,bottom:A+g}),c.classList.toggle("cm-tooltip-above",y),c.classList.toggle("cm-tooltip-below",!y),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=di}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Di(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const bi=cr.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),yi={x:0,y:0},vi=r.sj.define({enables:[Oi,bi]}),Ai=r.sj.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])});class Ei{static create(e){return new Ei(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pi(e,Ai,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Ci=vi.compute([Ai],(e=>{let t=e.facet(Ai);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:Ei.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class ki{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),s=o&&o.dir==ke.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,!n||Array.isArray(n)&&!n.length||e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))}),(t=>st(e.state,t,"hover tooltip")))}else!o||Array.isArray(o)&&!o.length||e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(Oi),t=e?e.manager.tooltips.findIndex((e=>e.create==Ei.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&i&&!function(e,t){let n,{left:r,right:i,top:o,bottom:s}=e.getBoundingClientRect();if(n=e.querySelector(".cm-tooltip-arrow")){let e=n.getBoundingClientRect();o=Math.min(e.top,o),s=Math.max(e.bottom,s)}return t.clientX>=r-Si&&t.clientX<=i+Si&&t.clientY>=o-Si&&t.clientY<=s+Si}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righti||Math.min(o.bottom,s)=t&&a<=n}(this.view,i,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Si=4;function xi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.Pe.define(),i=r.sU.define({create:()=>[],update(e,i){if(e.length&&(t.hideOnChange&&(i.docChanged||i.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(i,e)))),i.docChanged)){let t=[];for(let n of e){let e=i.changes.mapPos(n.pos,-1,r.iR.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=i.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(Ti)&&(e=[]);return e},provide:e=>Ai.from(e)});return{active:i,extension:[i,ct.define((r=>new ki(r,e,i,n,t.hoverTime||300))),Ci]}}function wi(e,t){let n=e.plugin(Oi);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Ti=r.Pe.define();const Fi=r.sj.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function _i(e,t){let n=e.plugin(Pi),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Pi=ct.fromClass(class{constructor(e){this.input=e.state.facet(Ni),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(Fi);this.top=new Bi(e,!0,t.topContainer),this.bottom=new Bi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Fi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Bi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Bi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Ni);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>cr.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class Bi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Ri(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Ri(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Ri(e){let t=e.nextSibling;return e.remove(),t}const Ni=r.sj.define({enables:Pi});class Ii extends r.FB{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Ii.prototype.elementClass="",Ii.prototype.toDOM=void 0,Ii.prototype.mapMode=r.iR.TrackBefore,Ii.prototype.startSide=Ii.prototype.endSide=-1,Ii.prototype.point=!0;const Qi=r.sj.define(),Mi=r.sj.define(),Li={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.om.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},$i=r.sj.define();function zi(e){return[ji(),$i.of(Object.assign(Object.assign({},Li),e))]}const Ui=r.sj.define({combine:e=>e.some((e=>e))});function ji(e){let t=[qi];return e&&!1===e.fixed&&t.push(Ui.of(!0)),t}const qi=ct.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet($i).map((t=>new Yi(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Ui),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Ui)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.om.iter(this.view.state.facet(Qi),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Hi(e,this.view.viewport,-this.view.documentPadding.top)));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let e=!0;for(let t of r.type)if(t.type==de.Text&&e){Zi(n,i,t.from);for(let e of o)e.line(this.view,t,i);e=!1}else if(t.widget)for(let e of o)e.widget(this.view,t)}else if(r.type==de.Text){Zi(n,i,r.from);for(let e of o)e.line(this.view,r,i)}else if(r.widget)for(let e of o)e.widget(this.view,r);for(let r of o)r.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet($i),n=e.state.facet($i),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.om.eq(e.startState.facet(Qi),e.state.facet(Qi),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new Yi(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>cr.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==ke.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function Xi(e){return Array.isArray(e)?e:[e]}function Zi(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Hi{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.om.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Vi(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Zi(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let i of e.state.facet(Mi)){let n=i(e,t.widget,t);n&&(r||(r=[])).push(n)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Yi{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,s,r)&&r.preventDefault()}));this.markers=Xi(t.markers(e)),t.initialSpacer&&(this.spacer=new Vi(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Xi(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.om.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Vi{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n(0,r.QR)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],i=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||i(t,n,r):i}return n}})});class Ji extends Ii{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function eo(e,t){return e.state.facet(Ki).formatNumber(t,e.state)}const to=$i.compute([Ki],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Gi),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Ji(eo(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(Wi)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(Ki)!=e.state.facet(Ki),initialSpacer:e=>new Ji(eo(e,ro(e.state.doc.lines))),updateSpacer(e,t){let n=eo(t.view,ro(t.view.state.doc.lines));return n==e.number?e:new Ji(n)},domEventHandlers:e.facet(Ki).domEventHandlers})));function no(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ki.of(e),ji(),to]}function ro(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(io.range(i)))}return r.om.of(t)}));function so(){return oo}},4603:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},4628:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,i.default)(e),o="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var i=r(n(945))},4818:(e,t,n)=>{"use strict";function r(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},4859:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>L,EI:()=>F,KB:()=>P,Lv:()=>fe,Oh:()=>B,Q0:()=>h,Q_:()=>Be,SG:()=>Pe,TM:()=>d,Tg:()=>Ue,WD:()=>q,Xt:()=>w,Yy:()=>k,Zt:()=>Ee,_Y:()=>z,_v:()=>_,b_:()=>Z,bj:()=>f,cr:()=>ge,f7:()=>oe,iB:()=>u,jU:()=>Ie,mv:()=>m,mz:()=>U,nq:()=>D,p9:()=>c,t:()=>X,t$:()=>S,tp:()=>T,y9:()=>ye,yd:()=>H});var r,i=n(4450),o=n(2400),s=n(4563),a=n(1345),l=n(752);const u=new i.uY;function c(e){return o.sj.define({combine:e?t=>t.concat(e):void 0})}const h=new i.uY;class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=e,this.name=r,o.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(o.$t.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[C.of(this),o.$t.languageData.of(((e,t,n)=>{let r=p(e,t,n),i=r.type.prop(u);if(!i)return[];let o=e.facet(i),s=r.type.prop(h);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t){return p(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(u)==this.data}findRegions(e){let t=e.facet(C);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(u)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.uY.mounted);if(o){if(o.tree.prop(u)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new f(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(d.state,!1);return t?t.tree:i.PH.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let O=null;class D{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0;this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new D(e,t,[],i.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=O;O=this;try{return e()}finally{O=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=b(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.rr.applyChanges(n,t),r=i.PH.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=b(this.fragments,t,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let t=O;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new i.PH(i.Z6.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return O}}function b(e,t,n){return i.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class y{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new y(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=D.create(e.facet(C).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new y(n)}}d.state=o.sU.define({create:y.init,update(e,t){for(let n of t.effects)if(n.is(d.setState))return n.value;return t.startState.facet(C)!=t.state.facet(C)?y.init(t.state):e.apply(t)}});let v=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(v=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const A="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,E=s.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(d.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(d.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=v(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,a=i.context.work((()=>A&&A()||Date.now()>o),r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:d.setState.of(new y(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,s.c_)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),C=o.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[d.state,E,s.Lz.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class k{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=e,this.support=t,this.extension=[e,t]}}class S{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new S(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let n=/\.([^.]+)$/.exec(t);if(n)for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=t.toLowerCase();for(let r of e)if(r.alias.some((e=>e==t)))return r;if(n)for(let r of e)for(let e of r.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return r}return null}}const x=o.sj.define(),w=o.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function T(e){let t=e.facet(w);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function F(e,t){let n="",r=e.tabSize,i=e.facet(w)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let o=0;o=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&(t.from!=r.node.from||t.type!=r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return R(r,e,n)}(e,n,t):null}class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=e,this.options=t,this.unit=T(e)}lineAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,o.y$)(e,this.state.tabSize,t)}lineIndent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const B=new i.uY;function R(e,t,n){for(let r=e;r;r=r.next){let e=N(r.node);if(e)return e(Q.create(t,n,r))}return 0}function N(e){let t=e.type.prop(B);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.uY.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>$(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?I:null}function I(){return 0}class Q extends P{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Q(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(M(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return R(this.context.next,this.base,this.pos)}}function M(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function L(e){let{closing:t,align:n=!0,units:r=1}=e;return e=>$(e,n,r,t)}function $(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==r)return null;if(!e.type.isSkipped){if(e.from>=s)return null;let t=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+t}}a=e.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const z=e=>e.baseIndent;function U(){let{except:e,units:t=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const j=200;function q(){return o.$t.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+j)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:s}=e,a=-1,l=[];for(let{head:u}of s.selection.ranges){let e=s.doc.lineAt(u);if(e.from==a)continue;a=e.from;let t=_(s,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=F(s,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const X=o.sj.define(),Z=new i.uY;function H(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&s.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function G(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const W=o.Pe.define({map:G}),K=o.Pe.define({map:G});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ee=o.sU.define({create:()=>s.NZ.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(W)&&!ne(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(ae),i=r?s.NZ.replace({widget:new he(r(t.state,n.value))}):ce;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>s.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>e)&&(i={from:e,to:t})})),i}function ne(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function re(e,t){return e.field(ee,!1)?t:t.concat(o.Pe.appendConfig.of(le()))}function ie(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return s.Lz.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(i,"."))}const oe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=V(e.state,t.from,t.to);if(n)return e.dispatch({effects:re(e.state,[W.of(n),ie(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of J(e)){let r=te(e.state,n.from,n.to);r&&t.push(K.of(r),ie(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(K.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],se={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},ae=o.sj.define({combine:e=>(0,o.QR)(e,se)});function le(e){let t=[ee,me];return e&&t.push(ae.of(e)),t}function ue(e,t){let{state:n}=e,r=n.facet(ae),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=te(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const ce=s.NZ.replace({widget:new class extends s.xO{toDOM(e){return ue(e,null)}}});class he extends s.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ue(e,this.value)}}const de={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class pe extends s.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},de),e),n=new pe(t,!0),r=new pe(t,!1),i=s.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(C)!=e.state.facet(C)||e.startState.field(ee,!1)!=e.state.field(ee,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.vB;for(let i of e.viewportLineBlocks){let o=te(e.state,i.from,i.to)?r:V(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:a}=t;return[i,(0,s.cU)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.om.empty},initialSpacer:()=>new pe(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let r=te(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let i=V(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:W.of(i)}),!0)}})}),le()]}const me=s.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ge{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof d?e=>e.prop(u)==o.data:o?e=>e==o:void 0,this.style=(0,a.az)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new ge(e,t||{})}}const Oe=o.sj.define(),De=o.sj.define({combine:e=>e.length?[e[0]]:null});function be(e){let t=e.facet(Oe);return t.length?t:e.facet(De)}function ye(e,t){let n,r=[Ae];return e instanceof ge&&(e.module&&r.push(s.Lz.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(De.of(e)):n?r.push(Oe.computeN([s.Lz.darkTheme],(t=>t.facet(s.Lz.darkTheme)==("dark"==n)?[e]:[]))):r.push(Oe.of(e)),r}class ve{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,be(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=m(e.state),n=be(e.state),r=n!=be(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return s.NZ.none;let n=new o.vB;for(let{from:r,to:i}of e.visibleRanges)(0,a.DM)(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=s.NZ.mark({class:r})))}),r,i);return n.finish()}}const Ae=o.Nb.high(s.Z9.fromClass(ve,{decorations:e=>e.decorations})),Ee=ge.define([{tag:a._A.meta,color:"#404740"},{tag:a._A.link,textDecoration:"underline"},{tag:a._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a._A.emphasis,fontStyle:"italic"},{tag:a._A.strong,fontWeight:"bold"},{tag:a._A.strikethrough,textDecoration:"line-through"},{tag:a._A.keyword,color:"#708"},{tag:[a._A.atom,a._A.bool,a._A.url,a._A.contentSeparator,a._A.labelName],color:"#219"},{tag:[a._A.literal,a._A.inserted],color:"#164"},{tag:[a._A.string,a._A.deleted],color:"#a11"},{tag:[a._A.regexp,a._A.escape,a._A.special(a._A.string)],color:"#e40"},{tag:a._A.definition(a._A.variableName),color:"#00f"},{tag:a._A.local(a._A.variableName),color:"#30a"},{tag:[a._A.typeName,a._A.namespace],color:"#085"},{tag:a._A.className,color:"#167"},{tag:[a._A.special(a._A.variableName),a._A.macroName],color:"#256"},{tag:a._A.definition(a._A.propertyName),color:"#00c"},{tag:a._A.comment,color:"#940"},{tag:a._A.invalid,color:"#f00"}]),Ce=s.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ke=1e4,Se="()[]{}",xe=o.sj.define({combine:e=>(0,o.QR)(e,{afterCursor:!0,brackets:Se,maxScanDistance:ke,renderMatch:Fe})}),we=s.NZ.mark({class:"cm-matchingBracket"}),Te=s.NZ.mark({class:"cm-nonmatchingBracket"});function Fe(e){let t=[],n=e.matched?we:Te;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const _e=[o.sU.define({create:()=>s.NZ.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(xe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let e=Ie(t.state,i.head,-1,r)||i.head>0&&Ie(t.state,i.head-1,1,r)||r.afterCursor&&(Ie(t.state,i.head,1,r)||i.heads.Lz.decorations.from(e)}),Ce];function Pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[xe.of(e),_e]}const Be=new i.uY;function Re(e,t,n){let r=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function Ne(e){let t=e.type.prop(Be);return t?t(e.node):e}function Ie(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.maxScanDistance||ke,o=r.brackets||Se,s=m(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let r=Re(l.type,n,o);if(r&&l.from0?t>=i.from&&ti.from&&t<=i.to))return Qe(e,t,n,l,i,r,o)}}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let d=0;!c.next().done&&d<=o;){let e=c.value;n<0&&(d+=e.length);let o=t+d*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=s.indexOf(e[t]);if(!(a<0||r.resolveInner(o+t,1).type!=i))if(a%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:o+t,to:o+t+1},matched:a>>1==l>>1};h--}}n>0&&(d+=e.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Qe(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},u=0,c=null===a||void 0===a?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let o=i;for(let s=r;s=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function $e(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const ze=new WeakMap;class Ue extends d{constructor(e){let t,n=c(e.languageData),r={name:(o=e).name||"",token:o.token,blankLine:o.blankLine||(()=>{}),startState:o.startState||(()=>!0),copyState:o.copyState||$e,indent:o.indent||(()=>null),languageData:o.languageData||{},tokenTable:o.tokenTable||He,mergeTokens:!1!==o.mergeTokens};var o;super(n,new class extends i.iX{createParse(e,n,r){return new Xe(t,e,n,r)}},[],e.name),this.topNode=function(e,t){let n=i.Z6.define({id:Ye.length,name:"Document",props:[u.add((()=>e)),B.add((()=>e=>t.getIndent(e)))],top:!0});return Ye.push(n),n}(n,this),t=this,this.streamParser=r,this.stateAfter=new i.uY({perNode:!0}),this.tokenTable=e.tokenTable?new Je(r.tokenTable):et}static define(e){return new Ue(e)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=ze.get(e.state),null!=t&&t1e4)return null;for(;r=r&&n+t.length<=o&&t.prop(e.stateAfter);if(s)return{state:e.streamParser.copyState(s),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],u=s instanceof i.PH&&l=t.length)return t;o||0!=n||t.type!=e.topNode||(o=!0);for(let s=t.children.length-1;s>=0;s--){let a,l=t.positions[s],u=t.children[s];if(ln&&je(e,i.tree,0-i.offset,n,s);if(a&&a.pos<=r&&(t=qe(e,i.tree,n+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(o?T(o):4),tree:i.PH.empty}}(e,n,s,this.to,null===o||void 0===o?void 0:o.state);this.state=a,this.parsedPos=this.chunkStart=s+l.length;for(let i=0;ie.from<=o.viewport.from&&e.to>=o.viewport.from))&&(this.state=this.lang.streamParser.startState(T(o.state)),o.skipUntilInView(this.parsedPos,o.viewport.from),this.parsedPos=o.viewport.from),this.moveRangeIndex()}advance(){let e=D.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let r=this.rangeIndex;;){let e=this.ranges[r].to;if(e>=n)break;if(t=t.slice(0,e-(n-t.length)),r++,r==this.ranges.length)break;let i=this.ranges[r].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),i+=this.chunk.length-e}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==i&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t?this.chunk[o+2]=n:this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new Le(t,e?e.state.tabSize:4,e?T(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Ze(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const He=Object.create(null),Ye=[i.Z6.none],Ve=new i.fI(Ye),Ge=[],We=Object.create(null),Ke=Object.create(null);for(let[rt,it]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Ke[rt]=nt(He,it);class Je{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Ke)}resolve(e){return e?this.table[e]||(this.table[e]=nt(this.extra,e)):0}}const et=new Je(He);function tt(e,t){Ge.indexOf(e)>-1||(Ge.push(e),console.warn(t))}function nt(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let r=e[n]||a._A[n];r?"function"==typeof r?t.length?t=t.map(r):tt(n,"Modifier ".concat(n," used at start of tag")):t.length?tt(n,"Tag ".concat(n," used as modifier")):t=Array.isArray(r)?r:[r]:tt(n,"Unknown highlighting tag ".concat(n))}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=r+" "+n.map((e=>e.id)),s=We[o];if(s)return s.id;let l=We[o]=i.Z6.define({id:Ye.length,name:r,props:[(0,a.pn)({[r]:n})]});return Ye.push(l),l.id}s.OP.RTL,s.OP.LTR},4866:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";n.d(t,{Ar:()=>u,Bc:()=>ve,Gw:()=>ue,OO:()=>Fe,_5:()=>s,et:()=>l,wm:()=>me,yU:()=>Te});var r=n(2400),i=n(4563),o=n(4859);class s{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,o.mv)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(d(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function a(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),"[".concat(n?"\\w":"").concat(t.replace(/[^\w\s]/g,"\\$&"),"]")}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function u(e,t){return n=>{for(let t=(0,o.mv)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class c{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function h(e){return e.selection.main.from}function d(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp("".concat(i?"^":"","(?:").concat(r,")").concat(o?"$":""),null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const p=r.YH.define();const f=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=l(e)),t}const g=r.Pe.define(),O=r.Pe.define();class D{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&i<=57||i>=97&&i<=122?2:i>=65&&i<=90?1:0:(u=(0,r.MK)(i))!=u.toLowerCase()?1:u!=u.toUpperCase()?2:0;(!D||1==b&&g||0==y&&0!=b)&&(t[h]==i||n[h]==i&&(d=!0)?s[h++]=D:s.length&&(O=!1)),y=b,D+=(0,r.Fh)(i)}return h==l&&0==s[0]&&O?this.result((d?-200:0)-100,s,e):p==l&&0==f?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==l?this.ret(-900-e.length,[f,m]):h==l?this.result((d?-200:0)-100-700+(O?0:-1100),s,e):2==t.length?null:this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let s of t){let e=s+(this.astral?(0,r.Fh)((0,r.vS)(n,s)):1);o&&i[o-1]==s?i[o-1]=e:(i[o++]=s,i[o++]=e)}return this.ret(e-n.length,i)}}class b{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length(0,r.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:A,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>v(e(n),t(n)),optionClass:(e,t)=>n=>v(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function v(e,t){return e?t?e+" "+t:e:t}function A(e,t,n,r,o,s){let a,l,u=e.textDirection==i.OP.RTL,c=u,h=!1,d="top",p=t.left-o.left,f=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(c&&p=g||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}let O=(t.bottom-t.top)/s.offsetHeight,D=(t.right-t.left)/s.offsetWidth;return{style:"".concat(d,": ").concat(a/O,"px; max-width: ").concat(l/D,"px"),class:"cm-completionInfo-"+(h?u?"left-narrow":"right-narrow":c?"left":"right")}}function E(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class C{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,s=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,s=0;for(let a=0;as&&i.appendChild(document.createTextNode(o.slice(s,e)));let n=i.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(o.slice(e,t))),n.className="cm-completionMatchedText",s=t}return se.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=E(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:O.of(null)})})),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:s}=n.open;r.open&&r.open.options==i||(this.range=E(i.length,o,e.state.facet(y).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=E(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"===typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>(0,i.c_)(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom{e.target==r&&e.preventDefault()}));let i=null;for(let o=n.from;on.from||0==n.from))if(i=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{r.appendChild(document.createElement("completion-section")).textContent=e}}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let c=this.optionClass(s);c&&(u.className=c);for(let e of this.optionContent){let t=e(s,this.view.state,this.view,a);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew C(n,e,t)}function S(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class x{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new x(this.options,_(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,o){if(r&&!o&&e.some((e=>e.isPending)))return r.setDisabled();let s=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}},o=t.facet(y);for(let u of e)if(u.hasResult()){let e=u.result.getMatch;if(!1===u.result.filter)for(let t of u.result.options)i(new c(t,u.source,e?e(t):[],1e9-n.length));else{let n,r=t.sliceDoc(u.from,u.to),s=o.filterStrict?new b(r):new D(r);for(let t of u.result.options)if(n=s.match(t.label)){let r=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new c(t,u.source,r,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.namet.score-e.score||l(e.completion,t.completion)))){let e=u.completion;!a||a.label!=e.label||a.detail!=e.detail||null!=a.type&&null!=e.type&&a.type!=e.type||a.apply!=e.apply||a.boost!=e.boost?s.push(u):S(u.completion)>S(a)&&(s[s.length-1]=u),a=u.completion}return s}(e,t);if(!s.length)return r&&e.some((e=>e.isPending))?r.setDisabled():null;let a=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:$,above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new x(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new x(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class w{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new w(P,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",h(t)).map(m)).map((t=>(this.active.find((e=>e.source==t))||new R(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open,o=e.effects.some((e=>e.is(I)));i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;ne.isPending))&&(i=null),!i&&r.every((e=>!e.isPending))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new R(e.source,0):e)));for(let s of e.effects)s.is(Q)&&(i=i&&i.setSelected(s.value,this.id));return r==this.active&&i==this.open?this:new w(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?T:F}}const T={"aria-autocomplete":"list"},F={};function _(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const P=[];function B(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(p);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class R{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=B(e,t),r=this;(8&n||16&n&&this.touches(e))&&(r=new R(r.source,0)),4&n&&0==r.state&&(r=new R(this.source,1)),r=r.updateFor(e,n);for(let i of e.effects)if(i.is(g))r=new R(r.source,1,i.value);else if(i.is(O))r=new R(r.source,0);else if(i.is(I))for(let e of i.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class N extends R{constructor(e,t,n,r,i,o){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=h(e.state);if(a>o||!r||2&t&&(h(e.startState)==this.from||ae.map((e=>e.map(t)))}),Q=r.Pe.define(),M=r.sU.define({create:()=>w.start(),update:(e,t)=>e.update(t),provide:e=>[i.DK.from(e,(e=>e.tooltip)),i.Lz.contentAttributes.from(e,(e=>e.attrs))]});function L(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(M).active.find((e=>e.source==t.source));return i instanceof N&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,s=n-o.from,a=i-o.from;return Object.assign(Object.assign({},e.changeByRange((l=>{if(l!=o&&n!=i&&e.sliceDoc(l.from+s,l.from+a)!=e.sliceDoc(n,i))return{range:l};let u=e.toText(t);return{changes:{from:l.from+s,to:i==o.from?l.to:l.from+a,insert:u},range:r.OF.cursor(l.from+s+u.length)}}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:p.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}const $=k(M,L);function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return n=>{let r=n.state.field(M,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+s*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:Q.of(l)}),!0}}const U=e=>!!e.state.field(M,!1)&&(e.dispatch({effects:g.of(!0)}),!0);class j{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const q=i.Z9.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(M).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(M),n=e.state.facet(y);if(!e.selectionSet&&!e.docChanged&&e.startState.field(M)==t)return;let r=e.transactions.some((e=>{let t=B(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)}));for(let a=0;a50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(s){(0,i.c_)(this.view.state,s)}t.context.abortListeners=null,this.running.splice(a--,1)}else t.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(g)))))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>e.isPending&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),o):-1,0!=this.composing)for(let i of e.transactions)i.isUserEvent("input.type")?this.composing=2:2==this.composing&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(M);for(let n of t.active)n.isPending&&!this.running.some((e=>e.active.source==n.source))&&this.startQuery(n);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(y).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=h(t),r=new s(t,n,e.explicit,this.view),o=new j(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:O.of(null)}),(0,i.c_)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(y).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y),r=this.view.state.field(M);for(let i=0;ie.source==o.active.source));if(s&&s.isPending)if(null==o.done){let e=new R(o.active.source,0);for(let t of o.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(s)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:I.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(M,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:O.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),X="object"==typeof navigator&&/Win/.test(navigator.platform),Z=r.Nb.highest(i.Lz.domEventHandlers({keydown(e,t){let n=t.state.field(M,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!X||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find((e=>e.source==r.source)),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&L(t,r),!1}})),H=i.Lz.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Y{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class V{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.iR.TrackDel),n=e.mapPos(this.to,1,r.iR.TrackDel);return null==t||null==n?null:new V(this.field,t,n)}}class G{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),s=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let n=s,i=/^\t*/.exec(l)[0].length;for(let t=0;tnew V(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1,l=s.replace(/\\[{}]/g,(e=>e[1]));for(let t=0;t=a&&e.field++}i.push(new Y(a,r.length,t.index,t.index+l.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}o=o.replace(/\\([{}])/g,((e,t,n)=>{for(let o of i)o.line==r.length&&o.from>n&&(o.from--,o.to--);return t})),r.push(o)}return new G(r,i)}}let W=i.NZ.widget({widget:new class extends i.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),K=i.NZ.mark({class:"cm-snippetField"});class J{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.NZ.set(e.map((e=>(e.from==e.to?W:K).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new J(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const ee=r.Pe.define({map:(e,t)=>e&&e.map(t)}),te=r.Pe.define(),ne=r.sU.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(ee))return n.value;if(n.is(te)&&e)return new J(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.Lz.decorations.from(e,(e=>e?e.deco:i.NZ.none))});function re(e,t){return r.OF.create(e.filter((e=>e.field==t)).map((e=>r.OF.range(e.from,e.to))))}function ie(e){let t=G.parse(e);return(e,n,i,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,i),{main:l}=e.state.selection,u={changes:{from:i,to:o==l.from?l.to:o,insert:r.EY.of(s)},scrollIntoView:!0,annotations:n?[p.of(n),r.ZX.userEvent.of("input.complete")]:void 0};if(a.length&&(u.selection=re(a,0)),a.some((e=>e.field>0))){let t=new J(a,0),n=u.effects=[ee.of(t)];void 0===e.state.field(ne,!1)&&n.push(r.Pe.appendConfig.of([ne,le,ce,H]))}e.dispatch(e.state.update(u))}}function oe(e){return t=>{let{state:n,dispatch:r}=t,i=n.field(ne,!1);if(!i||e<0&&0==i.active)return!1;let o=i.active+e,s=e>0&&!i.ranges.some((t=>t.field==o+e));return r(n.update({selection:re(i.ranges,o),effects:ee.of(s?null:new J(i.ranges,o)),scrollIntoView:!0})),!0}}const se=[{key:"Tab",run:oe(1),shift:oe(-1)},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e;return!!t.field(ne,!1)&&(n(t.update({effects:ee.of(null)})),!0)}}],ae=r.sj.define({combine:e=>e.length?e[0]:se}),le=r.Nb.highest(i.w4.compute([ae],(e=>e.facet(ae))));function ue(e,t){return Object.assign(Object.assign({},t),{apply:ie(e)})}const ce=i.Lz.domEventHandlers({mousedown(e,t){let n,r=t.state.field(ne,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active)&&(t.dispatch({selection:re(r.ranges,i.field),effects:ee.of(r.ranges.some((e=>e.field>i.field))?new J(r.ranges,i.field):null),scrollIntoView:!0}),!0)}});const he={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},de=r.Pe.define({map(e,t){let n=t.mapPos(e,-1,r.iR.TrackAfter);return null==n?void 0:n}}),pe=new class extends r.FB{};pe.startSide=1,pe.endSide=-1;const fe=r.sU.define({create:()=>r.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(de)&&(e=e.update({add:[pe.range(n.value,n.value+1)]}));return e}});function me(){return[ye,fe]}const ge="()[]{}<>\xab\xbb\xbb\xab\uff3b\uff3d\uff5b\uff5d";function Oe(e){for(let t=0;t<16;t+=2)if(ge.charCodeAt(t)==e)return ge.charAt(t+1);return(0,r.MK)(e<128?e:e+1)}function De(e,t){return e.languageDataAt("closeBrackets",t)[0]||he}const be="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ye=i.Lz.inputHandler.of(((e,t,n,i)=>{if((be?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.Fh)((0,r.vS)(i,0))||t!=o.from||n!=o.to)return!1;let s=function(e,t){let n=De(e,e.selection.main.head),i=n.brackets||he.brackets;for(let o of i){let s=Oe((0,r.vS)(o,0));if(t==o)return s==o?Se(e,o,i.indexOf(o+o+o)>-1,n):Ce(e,o,s,n.before||he.before);if(t==s&&Ae(e,e.selection.main.from))return ke(e,o,s)}return null}(e.state,i);return!!s&&(e.dispatch(s),!0)})),ve=[{key:"Backspace",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=De(t,t.selection.main.head).brackets||he.brackets,o=null,s=t.changeByRange((e=>{if(e.empty){let n=function(e,t){let n=e.sliceString(t-2,t);return(0,r.Fh)((0,r.vS)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let o of i)if(o==n&&Ee(t.doc,e.head)==Oe((0,r.vS)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:r.OF.cursor(e.head-o.length)}}return{range:o=e}}));return o||n(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function Ae(e,t){let n=!1;return e.field(fe).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Ee(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.Fh)((0,r.vS)(n,0)))}function Ce(e,t,n,i){let o=null,s=e.changeByRange((s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:de.of(s.to+t.length),range:r.OF.range(s.anchor+t.length,s.head+t.length)};let a=Ee(e.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+n,from:s.head},effects:de.of(s.head+t.length),range:r.OF.cursor(s.head+t.length)}:{range:o=s}}));return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function ke(e,t,n){let i=null,o=e.changeByRange((t=>t.empty&&Ee(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.OF.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Se(e,t,n,i){let s=i.stringPrefixes||he.stringPrefixes,a=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:de.of(i.to+t.length),range:r.OF.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=Ee(e.doc,u);if(c==t){if(xe(e,u))return{changes:{insert:t+t,from:u},effects:de.of(u+t.length),range:r.OF.cursor(u+t.length)};if(Ae(e,u)){let i=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:r.OF.cursor(u+i.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=we(e,u-2*t.length,s))>-1&&xe(e,l))return{changes:{insert:t+t+t+t,from:u},effects:de.of(u+t.length),range:r.OF.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=r.Je.Word&&we(e,u,s)>-1&&!function(e,t,n,r){let i=(0,o.mv)(e).resolveInner(t,-1),s=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),a=o.indexOf(n);if(!a||a>-1&&r.indexOf(o.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,s))return{changes:{insert:t+t,from:u},effects:de.of(u+t.length),range:r.OF.cursor(u+t.length)}}return{range:a=i}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function xe(e,t){let n=(0,o.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function we(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.Je.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.Je.Word)return n}return-1}function Te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Z,M,y.of(e),q,_e,H]}const Fe=[{key:"Ctrl-Space",run:U},{mac:"Alt-`",run:U},{key:"Escape",run:e=>{let t=e.state.field(M,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:O.of(null)}),!0)}},{key:"ArrowDown",run:z(!0)},{key:"ArrowUp",run:z(!1)},{key:"PageDown",run:z(!0,"page")},{key:"PageUp",run:z(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(M,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(y).defaultKeymap?[Fe]:[])))},5221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoCloseTags:()=>ye,html:()=>De,htmlCompletionSource:()=>he,htmlCompletionSourceWith:()=>de,htmlLanguage:()=>Oe,htmlPlain:()=>ge});var r=n(4179),i=n(1345),o=n(4450);const s=20,a=22,l=23,u=24,c=26,h=27,d=28,p=31,f=34,m=37,g={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},O={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},D={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function b(e){return 9==e||10==e||13==e||32==e}let y=null,v=null,A=0;function E(e,t){let n=e.pos+t;if(A==n&&v==e)return y;let r=e.peek(t);for(;b(r);)r=e.peek(++t);let i="";for(;45==(o=r)||46==o||58==o||o>=65&&o<=90||95==o||o>=97&&o<=122||o>=161;)i+=String.fromCharCode(r),r=e.peek(++t);var o;return v=e,A=n,y=i?i.toLowerCase():r==C||r==k?void 0:null}const C=63,k=33;function S(e,t){this.name=e,this.parent=t}const x=[6,10,7,8,9],w=new r.Aj({start:null,shift:(e,t,n,r)=>x.indexOf(t)>-1?new S(E(r,1)||"",e):e,reduce:(e,t)=>t==s&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 6==i||36==i?new S(E(r,1)||"",e):e},strict:!1}),T=new r.Lu(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let n=47==e.next;n&&e.advance();let r=E(e,0);if(void 0===r)return;if(!r)return e.acceptToken(n?14:6);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(11);if(i&&O[i])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8);if("textarea"==r)return e.acceptToken(9);if(g.hasOwnProperty(r))return e.acceptToken(10);i&&D[i]&&D[i][r]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),F=new r.Lu((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}}));const _=new r.Lu(((e,t)=>{if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function P(e,t,n){let i=2+e.length;return new r.Lu((r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(t);break}if(0==o&&60==r.next||1==o&&47==r.next||o>=2&&os?r.acceptToken(t,-s):r.acceptToken(n,-(s-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}o=s=0}else s++;r.advance()}}))}const B=P("script",54,1),R=P("style",55,2),N=P("textarea",56,3),I=(0,i.pn)({"Text RawText":i._A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i._A.angleBracket,TagName:i._A.tagName,"MismatchedCloseTag/TagName":[i._A.tagName,i._A.invalid],AttributeName:i._A.attributeName,"AttributeValue UnquotedAttributeValue":i._A.attributeValue,Is:i._A.definitionOperator,"EntityReference CharacterReference":i._A.character,Comment:i._A.blockComment,ProcessingInst:i._A.processingInstruction,DoctypeDecl:i._A.documentMeta}),Q=r.U1.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26a0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:w,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[I],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],i=[],a=[];for(let o of e){("script"==o.tag?n:"style"==o.tag?r:"textarea"==o.tag?i:a).push(o)}let u=t.length?Object.create(null):null;for(let o of t)(u[o.name]||(u[o.name]=[])).push(o);return(0,o.$g)(((e,t)=>{let o=e.type.id;if(o==d)return $(e,t,n);if(o==p)return $(e,t,r);if(o==f)return $(e,t,i);if(o==s&&a.length){let n,r=e.node,i=r.firstChild,o=i&&L(i,t);if(o)for(let e of a)if(e.tag==o&&(!e.attrs||e.attrs(n||(n=M(i,t))))){let t=r.lastChild,n=t.type.id==m?t.from:r.to;if(n>i.to)return{parser:e.parser,overlay:[{from:i.to,to:n}]}}}if(u&&o==l){let n,r=e.node;if(n=r.firstChild){let e=u[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=L(r.parent,t))continue;let e=r.lastChild;if(e.type.id==c){let t=e.from+1,r=e.lastChild,i=e.to-(r&&r.isError?0:1);if(i>t)return{parser:n.parser,overlay:[{from:t,to:i}]}}else if(e.type.id==h)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}var U=n(8244),j=n(4013),q=n(4563),X=n(2400),Z=n(4859);const H=["_blank","_self","_top","_parent"],Y=["ascii","utf-8","utf-16","latin1","latin1"],V=["get","post","put","delete"],G=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],W=["true","false"],K={},J={a:{attrs:{href:null,ping:null,type:null,media:null,target:H,hreflang:null}},abbr:K,address:K,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:K,aside:K,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:K,base:{attrs:{href:null,target:H}},bdi:K,bdo:K,blockquote:{attrs:{cite:null}},body:K,br:K,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:G,formmethod:V,formnovalidate:["novalidate"],formtarget:H,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:K,center:K,cite:K,code:K,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:K,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:K,div:K,dl:K,dt:K,em:K,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:K,figure:K,footer:K,form:{attrs:{action:null,name:null,"accept-charset":Y,autocomplete:["on","off"],enctype:G,method:V,novalidate:["novalidate"],target:H}},h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:K,hgroup:K,hr:K,html:{attrs:{manifest:null}},i:K,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:G,formmethod:V,formnovalidate:["novalidate"],formtarget:H,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:K,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:K,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:K,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Y,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:K,noscript:K,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:K,param:{attrs:{name:null,value:null}},pre:K,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:K,rt:K,ruby:K,samp:K,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Y}},section:K,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:K,source:{attrs:{src:null,type:null,media:null}},span:K,strong:K,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:K,summary:K,sup:K,table:K,tbody:K,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:K,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:K,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:K,time:{attrs:{datetime:null}},title:K,tr:K,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:K,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:K},ee={accesskey:null,class:null,contenteditable:W,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:W,autocorrect:W,autocapitalize:W,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":W,"aria-autocomplete":["inline","list","both","none"],"aria-busy":W,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":W,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":W,"aria-hidden":W,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":W,"aria-multiselectable":W,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":W,"aria-relevant":null,"aria-required":W,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},te="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let ve of te)ee[ve]=null;class ne{constructor(e,t){this.tags=Object.assign(Object.assign({},J),e),this.globalAttrs=Object.assign(Object.assign({},ee),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function ie(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function oe(e,t,n){let r=n.tags[re(e,ie(t))];return(null===r||void 0===r?void 0:r.children)||n.allTags}function se(e,t){let n=[];for(let r=ie(t);r&&!r.type.isTop;r=ie(r.parent)){let i=re(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}ne.default=new ne;const ae=/^[:\-\.\w\u00b7-\uffff]*$/;function le(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=ie(n,!0);return{from:r,to:i,options:oe(e.doc,s,t).map((e=>({label:e,type:"type"}))).concat(se(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ue(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:se(e.doc,t).map(((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t}))),validFor:ae}}function ce(e,t){let{state:n,pos:r}=t,i=(0,Z.mv)(n).resolveInner(r,-1),o=i.resolve(r);for(let s,a=r;o==i&&(s=i.childBefore(a));){let e=s.lastChild;if(!e||!e.type.isError||e.from({label:e,type:"property"}))),validFor:ae}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let s,a=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(a){let o=e.sliceDoc(a.from,a.to),u=t.globalAttrs[o];if(!u){let r=ie(n),i=r?t.tags[re(e.doc,r)]:null;u=(null===i||void 0===i?void 0:i.attrs)&&i.attrs[o]}if(u){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of u)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:s}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let s of oe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of se(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function he(e){return ce(ne.default,e)}function de(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new ne(t,n):ne.default;return e=>ce(r,e)}const pe=j.javascriptLanguage.parser.configure({top:"SingleExpression"}),fe=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:j.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:j.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:j.tsxLanguage.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:pe},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:j.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:U.cssLanguage.parser}],me=[{name:"style",parser:U.cssLanguage.parser.configure({top:"Styles"})}].concat(te.map((e=>({name:e,parser:j.javascriptLanguage.parser})))),ge=Z.bj.define({name:"html",parser:Q.configure({props:[Z.Oh.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Oe=ge.configure({wrap:z(fe,me)});function De(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="";!1===t.matchClosingTags&&(n="noMatch"),!0===t.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(e=z((t.nestedLanguages||[]).concat(fe),(t.nestedAttributes||[]).concat(me)));let r=e?ge.configure({wrap:e,dialect:n}):n?Oe.configure({dialect:n}):Oe;return new Z.Yy(r,[Oe.data.of({autocomplete:de(t)}),!1!==t.autoCloseTags?ye:[],(0,j.javascript)().support,(0,U.css)().support])}const be=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ye=q.Lz.inputHandler.of(((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!Oe.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange((e=>{var t,n,i;let o,a=s.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,u=(0,Z.mv)(s).resolveInner(l,-1);if(a&&">"==r&&"EndTag"==u.name){let r=u.parent;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=re(s.doc,r.parent,l))&&!be.has(o)){return{range:e,changes:{from:l,to:l+(">"===s.doc.sliceString(l,l+1)?1:0),insert:"")}}}}else if(a&&"/"==r&&"IncompleteCloseTag"==u.name){let e=u.parent;if(u.from==l-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=re(s.doc,e,l))&&!be.has(o)){let e=l+(">"===s.doc.sliceString(l,l+1)?1:0),t="".concat(o,">");return{range:X.OF.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},5498:(e,t,n)=>{var r=n(564).default,i=n(1327);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},5683:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],u=!1,c=-1;function h(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(h);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c1)for(var n=1;n{var r=n(5498);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},5976:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var r=n(1462);const i={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};function o(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function s(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function a(e){return function(e){const t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||o(e)}var l=n(3789);const u=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function c(e,t){const n=t||{},c="string"===typeof n.additional?n.additional.charCodeAt(0):n.additional,d=[];let p,f,m=0,g=-1,O="";n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,p=n.position.start):p=n.position);let D,b=(p?p.line:0)||1,y=(p?p.column:0)||1,v=E();for(m--;++m<=e.length;)if(10===D&&(y=(f?f[g]:0)||1),D=e.charCodeAt(m),38===D){const t=e.charCodeAt(m+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||c&&t===c){O+=String.fromCharCode(D),y++;continue}const u=m+1;let p,f=u,g=u;if(35===t){g=++f;const t=e.charCodeAt(g);88===t||120===t?(p="hexadecimal",g=++f):p="decimal"}else p="named";let b="",S="",x="";const w="named"===p?a:"decimal"===p?o:s;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!w(t))break;x+=String.fromCharCode(t),"named"===p&&r.K.includes(x)&&(b=x,S=(0,l.s)(x))}let T=59===e.charCodeAt(g);if(T){g++;const e="named"===p&&(0,l.s)(x);e&&(b=x,S=e)}let F=1+g-u,_="";if(T||!1!==n.nonTerminated)if(x)if("named"===p){if(T&&!S)C(5,1);else if(b!==x&&(g=f+b.length,F=1+g-f,T=!1),!T){const t=b?1:3;if(n.attribute){const n=e.charCodeAt(g);61===n?(C(t,F),S=""):a(n)?S="":C(t,F)}else C(t,F)}_=S}else{T||C(2,F);let e=Number.parseInt(x,"hexadecimal"===p?16:10);if((A=e)>=55296&&A<=57343||A>1114111)C(7,F),_=String.fromCharCode(65533);else if(e in i)C(6,F),_=i[e];else{let t="";h(e)&&C(6,F),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),_=t+String.fromCharCode(e)}}else"named"!==p&&C(4,F);else;if(_){k(),v=E(),m=g-1,y+=g-u+1,d.push(_);const t=E();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,_,{start:v,end:t},e.slice(u-1,g)),v=t}else x=e.slice(u-1,g),O+=x,y+=x.length,m=g-1}else 10===D&&(b++,g++,y=0),Number.isNaN(D)?k():(O+=String.fromCharCode(D),y++);var A;return d.join("");function E(){return{line:b,column:y,offset:m+((p?p.offset:0)||0)}}function C(e,t){let r;n.warning&&(r=E(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,u[e],r,e))}function k(){O&&(d.push(O),n.text&&n.text.call(n.textContext||void 0,O,{start:v,end:E()}),O="")}}function h(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}},6083:(e,t,n)=>{var r=n(4006);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){!function(e,t){var n=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,s=t.generatedColumn;return i>n||i==n&&s>=o||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=i},6175:(e,t,n)=>{"use strict";e.exports=n(9992)},6304:(e,t,n)=>{"use strict";var r=n(905);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},6925:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{boolean:()=>Bh,booleanish:()=>Rh,commaOrSpaceSeparated:()=>Lh,commaSeparated:()=>Mh,number:()=>Ih,overloadedBoolean:()=>Nh,spaceSeparated:()=>Qh});var i={};n.r(i),n.d(i,{boolean:()=>Df,booleanish:()=>bf,commaOrSpaceSeparated:()=>Cf,commaSeparated:()=>Ef,number:()=>vf,overloadedBoolean:()=>yf,spaceSeparated:()=>Af});var o={};n.r(o),n.d(o,{attentionMarkers:()=>ny,contentInitial:()=>Gb,disable:()=>ry,document:()=>Vb,flow:()=>Kb,flowInitial:()=>Wb,insideSpan:()=>ty,string:()=>Jb,text:()=>ey});var s={};n.r(s),n.d(s,{safe:()=>ex,spec:()=>JS});var a={};n.r(a),n.d(a,{angle:()=>Kx,decibel:()=>rw,flex:()=>nw,frequency:()=>ew,length:()=>Wx,resolution:()=>tw,semitones:()=>iw,time:()=>Jx});var l={};n.r(l),n.d(l,{getTrace:()=>qw,isKeyword:()=>Hw,isProperty:()=>Zw,isType:()=>Xw});var u={};n.r(u),n.d(u,{generate:()=>kT,name:()=>AT,parse:()=>CT,structure:()=>ET});var c={};n.r(c),n.d(c,{generate:()=>PT,name:()=>wT,parse:()=>_T,structure:()=>FT,walkContext:()=>TT});var h={};n.r(h),n.d(h,{generate:()=>QT,name:()=>BT,parse:()=>IT,structure:()=>NT,walkContext:()=>RT});var d={};n.r(d),n.d(d,{generate:()=>VT,name:()=>ZT,parse:()=>YT,structure:()=>HT});var p={};n.r(p),n.d(p,{generate:()=>oF,name:()=>tF,parse:()=>iF,structure:()=>rF,walkContext:()=>nF});var f={};n.r(f),n.d(f,{generate:()=>uF,name:()=>sF,parse:()=>lF,structure:()=>aF});var m={};n.r(m),n.d(m,{generate:()=>pF,name:()=>cF,parse:()=>dF,structure:()=>hF});var g={};n.r(g),n.d(g,{generate:()=>OF,name:()=>fF,parse:()=>gF,structure:()=>mF});var O={};n.r(O),n.d(O,{generate:()=>AF,name:()=>bF,parse:()=>vF,structure:()=>yF});var D={};n.r(D),n.d(D,{generate:()=>FF,name:()=>xF,parse:()=>TF,structure:()=>wF});var b={};n.r(b),n.d(b,{generate:()=>IF,name:()=>BF,parse:()=>NF,structure:()=>RF});var y={};n.r(y),n.d(y,{generate:()=>WF,name:()=>HF,parse:()=>GF,structure:()=>VF,walkContext:()=>YF});var v={};n.r(v),n.d(v,{generate:()=>o_,name:()=>n_,parse:()=>i_,structure:()=>r_});var A={};n.r(A),n.d(A,{generate:()=>u_,name:()=>s_,parse:()=>l_,structure:()=>a_});var E={};n.r(E),n.d(E,{generate:()=>f_,name:()=>c_,parse:()=>p_,structure:()=>d_,walkContext:()=>h_});var C={};n.r(C),n.d(C,{generate:()=>b_,name:()=>g_,parse:()=>D_,structure:()=>O_,xxx:()=>m_});var k={};n.r(k),n.d(k,{generate:()=>E_,name:()=>y_,parse:()=>A_,structure:()=>v_});var S={};n.r(S),n.d(S,{generate:()=>x_,name:()=>C_,parse:()=>S_,structure:()=>k_});var x={};n.r(x),n.d(x,{generate:()=>__,name:()=>w_,parse:()=>F_,structure:()=>T_});var w={};n.r(w),n.d(w,{generate:()=>N_,name:()=>P_,parse:()=>R_,structure:()=>B_});var T={};n.r(T),n.d(T,{generate:()=>L_,name:()=>I_,parse:()=>M_,structure:()=>Q_});var F={};n.r(F),n.d(F,{generate:()=>q_,name:()=>z_,parse:()=>j_,structure:()=>U_});var _={};n.r(_),n.d(_,{generate:()=>Y_,name:()=>X_,parse:()=>H_,structure:()=>Z_});var P={};n.r(P),n.d(P,{generate:()=>K_,name:()=>V_,parse:()=>W_,structure:()=>G_});var B={};n.r(B),n.d(B,{generate:()=>nP,name:()=>J_,parse:()=>tP,structure:()=>eP});var R={};n.r(R),n.d(R,{generate:()=>sP,name:()=>rP,parse:()=>oP,structure:()=>iP});var N={};n.r(N),n.d(N,{generate:()=>cP,name:()=>aP,parse:()=>uP,structure:()=>lP});var I={};n.r(I),n.d(I,{generate:()=>mP,name:()=>hP,parse:()=>fP,structure:()=>pP,walkContext:()=>dP});var Q={};n.r(Q),n.d(Q,{generate:()=>yP,name:()=>gP,parse:()=>bP,structure:()=>DP,walkContext:()=>OP});var M={};n.r(M),n.d(M,{generate:()=>xP,name:()=>CP,parse:()=>SP,structure:()=>kP});var L={};n.r(L),n.d(L,{generate:()=>PP,name:()=>TP,parse:()=>_P,structure:()=>FP});var $={};n.r($),n.d($,{generate:()=>LP,name:()=>NP,parse:()=>MP,structure:()=>QP,walkContext:()=>IP});var z={};n.r(z),n.d(z,{generate:()=>jP,name:()=>$P,parse:()=>UP,structure:()=>zP});var U={};n.r(U),n.d(U,{generate:()=>YP,name:()=>qP,parse:()=>HP,structure:()=>ZP,walkContext:()=>XP});var j={};n.r(j),n.d(j,{generate:()=>nB,name:()=>JP,parse:()=>tB,structure:()=>eB});var q={};n.r(q),n.d(q,{generate:()=>uB,name:()=>oB,parse:()=>lB,structure:()=>aB,walkContext:()=>sB});var X={};n.r(X),n.d(X,{generate:()=>gB,name:()=>pB,parse:()=>mB,structure:()=>fB});var Z={};n.r(Z),n.d(Z,{generate:()=>xB,name:()=>CB,parse:()=>SB,structure:()=>kB});var H={};n.r(H),n.d(H,{generate:()=>QB,name:()=>RB,parse:()=>IB,structure:()=>NB});var Y={};n.r(Y),n.d(Y,{generate:()=>zB,name:()=>MB,parse:()=>$B,structure:()=>LB});var V={};n.r(V),n.d(V,{generate:()=>ZB,name:()=>jB,parse:()=>XB,structure:()=>qB});var G={};n.r(G),n.d(G,{AnPlusB:()=>u,Atrule:()=>c,AtrulePrelude:()=>h,AttributeSelector:()=>d,Block:()=>p,Brackets:()=>f,CDC:()=>m,CDO:()=>g,ClassSelector:()=>O,Combinator:()=>D,Comment:()=>b,Declaration:()=>y,DeclarationList:()=>v,Dimension:()=>A,Function:()=>E,Hash:()=>C,IdSelector:()=>S,Identifier:()=>k,MediaFeature:()=>x,MediaQuery:()=>w,MediaQueryList:()=>T,NestingSelector:()=>F,Nth:()=>_,Number:()=>P,Operator:()=>B,Parentheses:()=>R,Percentage:()=>N,PseudoClassSelector:()=>I,PseudoElementSelector:()=>Q,Ratio:()=>M,Raw:()=>L,Rule:()=>$,Selector:()=>z,SelectorList:()=>U,String:()=>j,StyleSheet:()=>q,TypeSelector:()=>X,UnicodeRange:()=>Z,Url:()=>H,Value:()=>Y,WhiteSpace:()=>V});var W={};n.r(W),n.d(W,{AtrulePrelude:()=>VB,Selector:()=>GB,Value:()=>KB});var K={};function J(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.r(K),n.d(K,{AnPlusB:()=>CT,Atrule:()=>_T,AtrulePrelude:()=>IT,AttributeSelector:()=>YT,Block:()=>iF,Brackets:()=>lF,CDC:()=>dF,CDO:()=>gF,ClassSelector:()=>vF,Combinator:()=>TF,Comment:()=>NF,Declaration:()=>GF,DeclarationList:()=>i_,Dimension:()=>l_,Function:()=>p_,Hash:()=>D_,IdSelector:()=>S_,Identifier:()=>A_,MediaFeature:()=>F_,MediaQuery:()=>R_,MediaQueryList:()=>M_,NestingSelector:()=>j_,Nth:()=>H_,Number:()=>W_,Operator:()=>tP,Parentheses:()=>oP,Percentage:()=>uP,PseudoClassSelector:()=>fP,PseudoElementSelector:()=>bP,Ratio:()=>SP,Raw:()=>_P,Rule:()=>MP,Selector:()=>UP,SelectorList:()=>HP,String:()=>tB,StyleSheet:()=>lB,TypeSelector:()=>mB,UnicodeRange:()=>SB,Url:()=>IB,Value:()=>$B,WhiteSpace:()=>XB});var ee,te=n(905),ne=n.t(te,2),re=n(8721),ie=n(4824),oe=n.t(ie,2);function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fe(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ee.Pop,l=null,u=c();function c(){return(s.state||{idx:null}).idx}function h(){a=ee.Pop;let e=c(),t=null==e?null:e-u;u=e,l&&l({action:a,location:p.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:de(e);return n=n.replace(/ $/,"%20"),le(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,s.replaceState(se({},s.state,{idx:u}),""));let p={get action(){return a},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ae,h),l=e,()=>{i.removeEventListener(ae,h),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=ee.Push;let r=he(p.location,e,t);n&&n(r,e),u=c()+1;let h=ce(r,u),d=p.createHref(r);try{s.pushState(h,"",d)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;i.location.assign(d)}o&&l&&l({action:a,location:p.location,delta:1})},replace:function(e,t){a=ee.Replace;let r=he(p.location,e,t);n&&n(r,e),u=c();let i=ce(r,u),h=p.createHref(r);s.replaceState(i,"",h),o&&l&&l({action:a,location:p.location,delta:0})},go:e=>s.go(e)};return p}var me;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(me||(me={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function ge(e,t,n){return void 0===n&&(n="/"),Oe(e,t,n,!1)}function Oe(e,t,n,r){let i=_e(("string"===typeof t?pe(t):t).pathname||"/",n);if(null==i)return null;let o=De(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let s=null;for(let a=0;null==s&&a{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(le(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Ie([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(le(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),De(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:xe(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of be(e.path))i(e,t,r);else i(e,t)})),t}function be(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=be(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const ye=/^:[\w-]+$/,ve=3,Ae=2,Ee=1,Ce=10,ke=-2,Se=e=>"*"===e;function xe(e,t){let n=e.split("/"),r=n.length;return n.some(Se)&&(r+=ke),t&&(r+=Ae),n.filter((e=>!Se(e))).reduce(((e,t)=>e+(ye.test(t)?ve:""===t?Ee:Ce)),r)}function we(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:o,pathnameBase:s,pattern:e}}function Fe(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return ue(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _e(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Pe(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function Be(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Re(e,t){let n=Be(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Ne(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=pe(e):(i=se({},e),le(!i.pathname||!i.pathname.includes("?"),Pe("?","pathname","search",i)),le(!i.pathname||!i.pathname.includes("#"),Pe("#","pathname","hash",i)),le(!i.search||!i.search.includes("#"),Pe("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?pe(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:Me(r),hash:Le(i)}}(i,o),u=a&&"/"!==a&&a.endsWith("/"),c=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}const Ie=e=>e.join("/").replace(/\/\/+/g,"/"),Qe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Me=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Le=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function $e(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const ze=["post","put","patch","delete"],Ue=(new Set(ze),["get",...ze]);new Set(Ue),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=te.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,je({fromRouteId:t},i)))}),[e,t]);return r}():function(){Ge()||le(!1);let e=te.useContext(qe),{basename:t,future:n,navigator:r}=te.useContext(Ze),{matches:i}=te.useContext(Ye),{pathname:o}=We(),s=JSON.stringify(Re(i,n.v7_relativeSplatPath)),a=te.useRef(!1);Ke((()=>{a.current=!0}));let l=te.useCallback((function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void r.go(n);let l=Ne(n,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Ie([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,s,o,e]);return l}()}const et=te.createContext(null);function tt(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=te.useContext(Ze),{matches:i}=te.useContext(Ye),{pathname:o}=We(),s=JSON.stringify(Re(i,r.v7_relativeSplatPath));return te.useMemo((()=>Ne(e,JSON.parse(s),o,"path"===n)),[e,s,o,n])}function nt(e,t,n,r){Ge()||le(!1);let{navigator:i}=te.useContext(Ze),{matches:o}=te.useContext(Ye),s=o[o.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,c=We();if(t){var h;let e="string"===typeof t?pe(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||le(!1),u=e}else u=c;let d=u.pathname||"/",p=d;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=ge(e,{pathname:p});let m=at(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Ie([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Ie([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&m?te.createElement(He.Provider,{value:{location:je({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ee.Pop}},m):m}function rt(){let e=function(){var e;let t=te.useContext(Ve),n=ht(ut.UseRouteError),r=dt(ut.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=$e(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return te.createElement(te.Fragment,null,te.createElement("h2",null,"Unexpected Application Error!"),te.createElement("h3",{style:{fontStyle:"italic"}},t),n?te.createElement("pre",{style:i},n):null,null)}const it=te.createElement(rt,null);class ot extends te.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?te.createElement(Ye.Provider,{value:this.props.routeContext},te.createElement(Ve.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function st(e){let{routeContext:t,match:n,children:r}=e,i=te.useContext(qe);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),te.createElement(Ye.Provider,{value:t},r)}function at(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(i=n)?void 0:i.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id])));e>=0||le(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,r,i)=>{let o,c=!1,h=null,d=null;n&&(o=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||it,l&&(u<0&&0===i?(!function(e,t){t||pt[e]||(pt[e]=!0)}("route-fallback",!1),c=!0,d=null):u===i&&(c=!0,d=r.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,i+1)),f=()=>{let t;return t=o?h:c?d:r.route.Component?te.createElement(r.route.Component,null):r.route.element?r.route.element:e,te.createElement(st,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?te.createElement(ot,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()}),null)}var lt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lt||{}),ut=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ut||{});function ct(e){let t=te.useContext(qe);return t||le(!1),t}function ht(e){let t=te.useContext(Xe);return t||le(!1),t}function dt(e){let t=function(){let e=te.useContext(Ye);return e||le(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||le(!1),n.route.id}const pt={};function ft(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}ne.startTransition;function mt(e){return function(e){let t=te.useContext(Ye).outlet;return t?te.createElement(et.Provider,{value:e},t):t}(e.context)}function gt(e){le(!1)}function Ot(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ee.Pop,navigator:o,static:s=!1,future:a}=e;Ge()&&le(!1);let l=t.replace(/^\/*/,"/"),u=te.useMemo((()=>({basename:l,navigator:o,static:s,future:je({v7_relativeSplatPath:!1},a)})),[l,a,o,s]);"string"===typeof r&&(r=pe(r));let{pathname:c="/",search:h="",hash:d="",state:p=null,key:f="default"}=r,m=te.useMemo((()=>{let e=_e(c,l);return null==e?null:{location:{pathname:e,search:h,hash:d,state:p,key:f},navigationType:i}}),[l,c,h,d,p,f,i]);return null==m?null:te.createElement(Ze.Provider,{value:u},te.createElement(He.Provider,{children:n,value:m}))}function Dt(e){let{children:t,location:n}=e;return nt(bt(t),n)}new Promise((()=>{}));te.Component;function bt(e,t){void 0===t&&(t=[]);let n=[];return te.Children.forEach(e,((e,r)=>{if(!te.isValidElement(e))return;let i=[...t,r];if(e.type===te.Fragment)return void n.push.apply(n,bt(e.props.children,i));e.type!==gt&&le(!1),e.props.index&&e.props.children&&le(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=bt(e.props.children,i)),n.push(o)})),n}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function At(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Et=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ct=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(kI){}const kt=te.createContext({isTransitioning:!1});new Map;const St=ne.startTransition;oe.flushSync,ne.useId;function xt(e){let{basename:t,children:n,future:r,window:i}=e,o=te.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),fe((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=pe(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),he("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:de(t))}),(function(e,t){ue("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),s)));let a=o.current,[l,u]=te.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},h=te.useCallback((e=>{c&&St?St((()=>u(e))):u(e)}),[u,c]);return te.useLayoutEffect((()=>a.listen(h)),[a,h]),te.useEffect((()=>ft(r)),[r]),te.createElement(Ot,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const wt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=te.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:h}=e,d=vt(e,Et),{basename:p}=te.useContext(Ze),f=!1;if("string"===typeof u&&Tt.test(u)&&(n=u,wt))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=_e(t.pathname,p);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:f=!0}catch(kI){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Ge()||le(!1);let{basename:r,navigator:i}=te.useContext(Ze),{hash:o,pathname:s,search:a}=tt(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Ie([r,s])),i.createHref({pathname:l,search:a,hash:o})}(u,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=void 0===t?{}:t,l=Je(),u=We(),c=tt(e,{relative:s});return te.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:de(u)===de(c);l(e,{replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:a})}}),[u,l,c,r,i,n,e,o,s,a])}(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:h});return te.createElement("a",yt({},d,{href:n||m,onClick:f||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))}));const _t=te.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:l,children:u}=e,c=vt(e,Ct),h=tt(a,{relative:c.relative}),d=We(),p=te.useContext(Xe),{navigator:f,basename:m}=te.useContext(Ze),g=null!=p&&function(e,t){void 0===t&&(t={});let n=te.useContext(kt);null==n&&le(!1);let{basename:r}=Rt(Pt.useViewTransitionState),i=tt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=_e(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=_e(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Te(i.pathname,s)||null!=Te(i.pathname,o)}(h)&&!0===l,O=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,D=d.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(D=D.toLowerCase(),b=b?b.toLowerCase():null,O=O.toLowerCase()),b&&m&&(b=_e(b,m)||b);const y="/"!==O&&O.endsWith("/")?O.length-1:O.length;let v,A=D===O||!o&&D.startsWith(O)&&"/"===D.charAt(y),E=null!=b&&(b===O||!o&&b.startsWith(O)&&"/"===b.charAt(O.length)),C={isActive:A,isPending:E,isTransitioning:g},k=A?n:void 0;v="function"===typeof i?i(C):[i,A?"active":null,E?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let S="function"===typeof s?s(C):s;return te.createElement(Ft,yt({},c,{"aria-current":k,className:v,ref:t,style:S,to:a,viewTransition:l}),"function"===typeof u?u(C):u)}));var Pt,Bt;function Rt(e){let t=te.useContext(qe);return t||le(!1),t}function Nt(e){let t=te.useRef(At(e)),n=te.useRef(!1),r=We(),i=te.useMemo((()=>function(e,t){let n=At(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=Je(),s=te.useCallback(((e,t)=>{const r=At("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pt||(Pt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Bt||(Bt={}));function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;to/2),[o]),m=(0,te.useMemo)((()=>o/2-s/2),[o,s]),g=(0,te.useMemo)((()=>Math.PI*m*2),[m]),[O,D]=(0,te.useState)(g||0),b=e=>{var{clientHeight:t,scrollHeight:n,scrollTop:o}=r||qt;D(g-g*(o/(n-t))||0),h.current&&i>0&&(h.current.style.opacity=o>i?"1":"0")};(0,te.useEffect)((()=>{var e=r===qt?document:r;return e&&e.addEventListener("scroll",b,{passive:!0}),()=>{e&&e.removeEventListener("scroll",b)}}),[r]);return(0,Mt.jsxs)("div",It({className:d,ref:h},c,{onClick:e=>{r.scrollTo({top:0,behavior:a?"smooth":"auto"})},style:p,children:[!l&&(0,Mt.jsxs)("svg",{viewBox:"0 0 "+o+" "+o,width:o,height:o,focusable:"false",style:zt,children:[(0,Mt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:s,r:m,cx:f,cy:f}),(0,Mt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:s,r:m,cx:f,cy:f,strokeDasharray:g,strokeDashoffset:O||0,style:Ut})]}),u&&(0,Mt.jsx)("div",{style:jt,children:u})]}))}var Zt=n(8957);let Ht={data:""},Yt=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ht,Vt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Gt=/\/\*[^]*?\*\/| +/g,Wt=/\n+/g,Kt=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?Kt(s,o):o+"{"+Kt(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=Kt(s,t?t.replace(/([^,])+/g,(e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Kt.p?Kt.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Jt={},en=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+en(e[n]);return t}return e},tn=(e,t,n,r,i)=>{let o=en(e),s=Jt[o]||(Jt[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Jt[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=Vt.exec(e.replace(Gt,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Wt," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Wt," ").trim();return r[0]})(e);Jt[s]=Kt(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&Jt.g?Jt.g:null;return n&&(Jt.g=Jt[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Jt[s],t,r,a),s};function nn(e){let t=this||{},n=e.call?e(t.p):e;return tn(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Kt(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Yt(t.target),t.g,t.o,t.k)}nn.bind({g:1});let rn,on,sn,an=nn.bind({k:1});function ln(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:on&&on()},a),n.o=/ *go\d+/.test(l),a.className=nn.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let u=e;return e[0]&&(u=a.as||e,delete a.as),sn&&u[0]&&sn(a),rn(u,a)}return t?t(i):i}}var un,cn,hn,dn,pn,fn,mn,gn,On,Dn,bn,yn,vn,An,En,Cn,kn=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Sn=(()=>{let e=0;return()=>(++e).toString()})(),xn=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),wn=(e,t)=>{switch(t.type){case 0:return(0,Zt.A)((0,Zt.A)({},e),{},{toasts:[t.toast,...e.toasts].slice(0,20)});case 1:return(0,Zt.A)((0,Zt.A)({},e),{},{toasts:e.toasts.map((e=>e.id===t.toast.id?(0,Zt.A)((0,Zt.A)({},e),t.toast):e))});case 2:let{toast:n}=t;return wn(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return(0,Zt.A)((0,Zt.A)({},e),{},{toasts:e.toasts.map((e=>e.id===r||void 0===r?(0,Zt.A)((0,Zt.A)({},e),{},{dismissed:!0,visible:!1}):e))});case 4:return void 0===t.toastId?(0,Zt.A)((0,Zt.A)({},e),{},{toasts:[]}):(0,Zt.A)((0,Zt.A)({},e),{},{toasts:e.toasts.filter((e=>e.id!==t.toastId))});case 5:return(0,Zt.A)((0,Zt.A)({},e),{},{pausedAt:t.time});case 6:let i=t.time-(e.pausedAt||0);return(0,Zt.A)((0,Zt.A)({},e),{},{pausedAt:void 0,toasts:e.toasts.map((e=>(0,Zt.A)((0,Zt.A)({},e),{},{pauseDuration:e.pauseDuration+i})))})}},Tn=[],Fn={toasts:[],pausedAt:void 0},_n=e=>{Fn=wn(Fn,e),Tn.forEach((e=>{e(Fn)}))},Pn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Bn=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return(0,Zt.A)((0,Zt.A)({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||Sn()})}(t,e,n);return _n({type:2,toast:r}),r.id},Rn=(e,t)=>Bn("blank")(e,t);Rn.error=Bn("error"),Rn.success=Bn("success"),Rn.loading=Bn("loading"),Rn.custom=Bn("custom"),Rn.dismiss=e=>{_n({type:3,toastId:e})},Rn.remove=e=>_n({type:4,toastId:e}),Rn.promise=(e,t,n)=>{let r=Rn.loading(t.loading,(0,Zt.A)((0,Zt.A)({},n),null==n?void 0:n.loading));return"function"==typeof e&&(e=e()),e.then((e=>{let i=t.success?kn(t.success,e):void 0;return i?Rn.success(i,(0,Zt.A)((0,Zt.A)({id:r},n),null==n?void 0:n.success)):Rn.dismiss(r),e})).catch((e=>{let i=t.error?kn(t.error,e):void 0;i?Rn.error(i,(0,Zt.A)((0,Zt.A)({id:r},n),null==n?void 0:n.error)):Rn.dismiss(r)})),e};var Nn=(e,t)=>{_n({type:1,toast:{id:e,height:t}})},In=()=>{_n({type:5,time:Date.now()})},Qn=new Map,Mn=e=>{let{toasts:t,pausedAt:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,te.useState)(Fn),r=(0,te.useRef)(Fn);(0,te.useEffect)((()=>(r.current!==Fn&&n(Fn),Tn.push(n),()=>{let e=Tn.indexOf(n);e>-1&&Tn.splice(e,1)})),[]);let i=t.toasts.map((t=>{var n,r,i;return(0,Zt.A)((0,Zt.A)((0,Zt.A)((0,Zt.A)({},e),e[t.type]),t),{},{removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Pn[t.type],style:(0,Zt.A)((0,Zt.A)((0,Zt.A)({},e.style),null==(i=e[t.type])?void 0:i.style),t.style)})}));return(0,Zt.A)((0,Zt.A)({},t),{},{toasts:i})}(e);(0,te.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>Rn.dismiss(t.id)),n);t.visible&&Rn.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,te.useCallback)((()=>{n&&_n({type:6,time:Date.now()})}),[n]),i=(0,te.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=n||{},s=t.filter((t=>(t.position||o)===(e.position||o)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>te.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[t]);return(0,te.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(Qn.has(e))return;let n=setTimeout((()=>{Qn.delete(e),_n({type:4,toastId:e})}),t);Qn.set(e,n)}(e.id,e.removeDelay);else{let t=Qn.get(e.id);t&&(clearTimeout(t),Qn.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:Nn,startPause:In,endPause:r,calculateOffset:i}}},Ln=an(un||(un=J(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),$n=an(cn||(cn=J(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),zn=an(hn||(hn=J(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),Un=ln("div")(dn||(dn=J(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(e=>e.primary||"#ff4b4b"),Ln,$n,(e=>e.secondary||"#fff"),zn),jn=an(pn||(pn=J(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),qn=ln("div")(fn||(fn=J(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(e=>e.secondary||"#e0e0e0"),(e=>e.primary||"#616161"),jn),Xn=an(mn||(mn=J(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),Zn=an(gn||(gn=J(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),Hn=ln("div")(On||(On=J(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(e=>e.primary||"#61d345"),Xn,Zn,(e=>e.secondary||"#fff")),Yn=ln("div")(Dn||(Dn=J(["\n position: absolute;\n"]))),Vn=ln("div")(bn||(bn=J(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),Gn=an(yn||(yn=J(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),Wn=ln("div")(vn||(vn=J(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),Gn),Kn=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?te.createElement(Wn,null,n):n:"blank"===r?null:te.createElement(Vn,null,te.createElement(qn,(0,Zt.A)({},i)),"loading"!==r&&te.createElement(Yn,null,"error"===r?te.createElement(Un,(0,Zt.A)({},i)):te.createElement(Hn,(0,Zt.A)({},i))))},Jn=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),er=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),tr=ln("div")(An||(An=J(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),nr=ln("div")(En||(En=J(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),rr=te.memo((e=>{let{toast:t,position:n,style:r,children:i}=e,o=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=xn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Jn(n),er(n)];return{animation:t?"".concat(an(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(an(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}})(t.position||n||"top-center",t.visible):{opacity:0},s=te.createElement(Kn,{toast:t}),a=te.createElement(nr,(0,Zt.A)({},t.ariaProps),kn(t.message,t));return te.createElement(tr,{className:t.className,style:(0,Zt.A)((0,Zt.A)((0,Zt.A)({},o),r),t.style)},"function"==typeof i?i({icon:s,message:a}):te.createElement(te.Fragment,null,s,a))}));!function(e,t,n,r){Kt.p=t,rn=e,on=n,sn=r}(te.createElement);var ir=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:o}=e,s=te.useCallback((e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;i(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,i]);return te.createElement("div",{ref:s,className:n,style:r},o)},or=nn(Cn||(Cn=J(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),sr=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:o,containerStyle:s,containerClassName:a}=e,{toasts:l,handlers:u}=Mn(r);return te.createElement("div",{id:"_rht_toaster",style:(0,Zt.A)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return(0,Zt.A)((0,Zt.A)({left:0,right:0,display:"flex",position:"absolute",transition:xn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)})(r,u.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return te.createElement(ir,{id:e.id,key:e.id,onHeightUpdate:u.updateHeight,className:e.visible?or:"",style:s},"custom"===e.type?kn(e.message,e):o?o(e):te.createElement(rr,{toast:e,position:r}))})))},ar=Rn;var lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?Sr(Qr,--Nr):0,Br--,10===Ir&&(Br=1,Pr--),Ir}function Ur(){return Ir=Nr2||Zr(Ir)>3?"":" "}function Wr(e,t){for(;--t&&Ur()&&!(Ir<48||Ir>102||Ir>57&&Ir<65||Ir>70&&Ir<97););return Xr(e,qr()+(t<6&&32==jr()&&32==Ur()))}function Kr(e){for(;Ur();)switch(Ir){case e:return Nr;case 34:case 39:34!==e&&39!==e&&Kr(Ir);break;case 40:41===e&&Kr(e);break;case 92:Ur()}return Nr}function Jr(e,t){for(;Ur()&&e+Ir!==57&&(e+Ir!==84||47!==jr()););return"/*"+Xr(t,Nr-1)+"*"+yr(47===e?e:Ur())}function ei(e){for(;!Zr(jr());)Ur();return Xr(e,Nr)}function ti(e,t){for(var n="",r=0;r6)switch(Sr(e,t+1)){case 109:if(45!==Sr(e,t+4))break;case 102:return Cr(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+pr+(108==Sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kr(e,"stretch",0)?ri(Cr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Cr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,s,a){return dr+n+":"+r+a+(i?dr+n+"-span:"+(o?s:+s-+r)+a:"")+e}));case 4949:if(121===Sr(e,t+6))return Cr(e,":",":"+fr)+e;break;case 6444:switch(Sr(e,45===Sr(e,14)?18:11)){case 120:return Cr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+fr+(45===Sr(e,14)?"inline-":"")+"box$3$1"+fr+"$2$3$1"+dr+"$2box$3")+e;case 100:return Cr(e,":",":"+dr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Cr(e,"scroll-","scroll-snap-")+e}return e}function ii(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Or:return void(e.return=ri(e.value,e.length,n));case Dr:return ti([Lr(e,{value:Cr(e.value,"@","@"+fr)})],r);case gr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Er(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$r(Lr(e,{props:[Cr(t,/:(read-\w+)/,":-moz-$1")]})),$r(Lr(e,{props:[t]})),vr(e,{props:_r(n,r)});break;case"::placeholder":$r(Lr(e,{props:[Cr(t,/:(plac\w+)/,":"+fr+"input-$1")]})),$r(Lr(e,{props:[Cr(t,/:(plac\w+)/,":-moz-$1")]})),$r(Lr(e,{props:[Cr(t,/:(plac\w+)/,dr+"input-$1")]})),$r(Lr(e,{props:[t]})),vr(e,{props:_r(n,r)})}return""}))}}function oi(e){return Yr(si("",null,null,null,[""],e=Hr(e),0,[0],e))}function si(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,h=s,d=0,p=0,f=0,m=1,g=1,O=1,D=0,b="",y=i,v=o,A=r,E=b;g;)switch(f=D,D=Ur()){case 40:if(108!=f&&58==Sr(E,h-1)){-1!=kr(E+=Cr(Vr(D),"&","&\f"),"&\f",br(u?a[u-1]:0))&&(O=-1);break}case 34:case 39:case 91:E+=Vr(D);break;case 9:case 10:case 13:case 32:E+=Gr(f);break;case 92:E+=Wr(qr()-1,7);continue;case 47:switch(jr()){case 42:case 47:Fr(li(Jr(Ur(),qr()),t,n,l),l);break;default:E+="/"}break;case 123*m:a[u++]=wr(E)*O;case 125*m:case 59:case 0:switch(D){case 0:case 125:g=0;case 59+c:-1==O&&(E=Cr(E,/\f/g,"")),p>0&&wr(E)-h&&Fr(p>32?ui(E+";",r,n,h-1,l):ui(Cr(E," ","")+";",r,n,h-2,l),l);break;case 59:E+=";";default:if(Fr(A=ai(E,t,n,u,c,i,a,b,y=[],v=[],h,o),o),123===D)if(0===c)si(E,t,A,A,y,o,h,a,v);else switch(99===d&&110===Sr(E,3)?100:d){case 100:case 108:case 109:case 115:si(e,A,A,r&&Fr(ai(e,A,A,0,0,i,a,b,i,y=[],h,v),v),i,v,h,a,r?y:v);break;default:si(E,A,A,A,[""],v,0,a,v)}}u=c=p=0,m=O=1,b=E="",h=s;break;case 58:h=1+wr(E),p=f;default:if(m<1)if(123==D)--m;else if(125==D&&0==m++&&125==zr())continue;switch(E+=yr(D),D*m){case 38:O=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(wr(E)-1)*O,O=1;break;case 64:45===jr()&&(E+=Vr(Ur())),d=jr(),c=h=wr(b=E+=ei(qr())),D++;break;case 45:45===f&&2==wr(E)&&(m=0)}}return o}function ai(e,t,n,r,i,o,s,a,l,u,c,h){for(var d=i-1,p=0===i?o:[""],f=Tr(p),m=0,g=0,O=0;m0?p[D]+" "+b:Cr(b,/&\f/g,p[D])))&&(l[O++]=y);return Mr(e,t,n,0===i?gr:a,l,u,c,h)}function li(e,t,n,r){return Mr(e,t,n,mr,yr(Ir),xr(e,2,-2),0,r)}function ui(e,t,n,r,i){return Mr(e,t,n,Or,xr(e,0,r),xr(e,r+1,-1),r,i)}var ci={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hi=n(5683),di="undefined"!=typeof hi&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",pi="active",fi="data-styled-version",mi="6.1.18",gi="/*!sc*/\n",Oi="undefined"!=typeof window&&"undefined"!=typeof document,Di=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof hi&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof hi&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),bi={},yi=(new Set,Object.freeze([])),vi=Object.freeze({});function Ai(e,t,n){return void 0===n&&(n=vi),e.theme!==n.theme&&e.theme||t||n.theme}var Ei=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ci=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ki=/(^-|-$)/g;function Si(e){return e.replace(Ci,"-").replace(ki,"")}var xi=/(a)(d)/gi,wi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ti(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=wi(t%52)+n;return(wi(t%52)+n).replace(xi,"$1-$2")}var Fi,_i=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pi=function(e){return _i(5381,e)};function Bi(e){return Ti(Pi(e)>>>0)}function Ri(e){return e.displayName||e.name||"Component"}function Ni(e){return"string"==typeof e&&!0}var Ii="function"==typeof Symbol&&Symbol.for,Qi=Ii?Symbol.for("react.memo"):60115,Mi=Ii?Symbol.for("react.forward_ref"):60112,Li={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ui=((Fi={})[Mi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fi[Qi]=zi,Fi);function ji(e){return("type"in(t=e)&&t.type.$$typeof)===Qi?zi:"$$typeof"in e?Ui[e.$$typeof]:Li;var t}var qi=Object.defineProperty,Xi=Object.getOwnPropertyNames,Zi=Object.getOwnPropertySymbols,Hi=Object.getOwnPropertyDescriptor,Yi=Object.getPrototypeOf,Vi=Object.prototype;function Gi(e,t,n){if("string"!=typeof t){if(Vi){var r=Yi(t);r&&r!==Vi&&Gi(e,r,n)}var i=Xi(t);Zi&&(i=i.concat(Zi(t)));for(var o=ji(e),s=ji(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var oo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw io(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(gi)},o=0;o0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===gr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ko,n).replace(r,u))})),s.prefix&&c.push(ii),c.push(ni);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(So,""),u=oi(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(u=xo(u,s.namespace));var h,d=[];return ti(u,function(e){var t=Tr(e);return function(n,r,i,o){for(var s="",a=0;a="A"&&e<="Z"};function Qo(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=Ji(r,o),this.staticRulesId=o}else{for(var a=_i(this.baseHash,n.hash),l="",u=0;u>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Ji(r,d)}}return r},e}(),qo=te.createContext(void 0);qo.Consumer;var Xo={};new Set;function Zo(e,t,n){var r=Ki(e),i=e,o=!Ni(e),s=t.attrs,a=void 0===s?yi:s,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Si(e);Xo[n]=(Xo[n]||0)+1;var r="".concat(n,"-").concat(Bi(mi+n+Xo[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,h=void 0===c?function(e){return Ni(e)?"styled.".concat(e):"Styled(".concat(Ri(e),")")}(e):c,d=t.displayName&&t.componentId?"".concat(Si(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,f=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;f=function(e,t){return m(e,t)&&g(e,t)}}else f=m}var O=new jo(n,d,r?i.componentStyle:void 0);function D(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,l=e.target,u=te.useContext(qo),c=Bo(),h=e.shouldForwardProp||c.shouldForwardProp,d=Ai(t,u,o)||vi,p=function(e,t,n){for(var r,i=lr(lr({},t),{className:void 0,theme:n}),o=0;o2&&Co.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Oo(),r=eo([n&&'nonce="'.concat(n,'"'),"".concat(di,'="true"'),"".concat(fi,'="').concat(mi,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw io(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw io(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[di]="",t[fi]=mi,t.dangerouslySetInnerHTML={__html:n},t),i=Oo();return i&&(r.nonce=i),[te.createElement("style",lr({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Co({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw io(2);return te.createElement(Ro,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw io(3)}})(),"__sc-".concat(di,"__");const es="undefined"===typeof window||"Deno"in window;function ts(){}function ns(e){return"number"===typeof e&&e>=0&&e!==1/0}function rs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function is(e,t,n){return Os(e)?"function"===typeof t?(0,Zt.A)((0,Zt.A)({},n),{},{queryKey:e,queryFn:t}):(0,Zt.A)((0,Zt.A)({},t),{},{queryKey:e}):e}function os(e,t,n){return Os(e)?[(0,Zt.A)((0,Zt.A)({},t),{},{queryKey:e}),n]:[e||{},t]}function ss(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(Os(s))if(r){if(t.queryHash!==ls(s,t.options))return!1}else if(!cs(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof a||t.isStale()===a)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function as(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Os(o)){if(!t.options.mutationKey)return!1;if(n){if(us(t.options.mutationKey)!==us(o))return!1}else if(!cs(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function ls(e,t){return((null==t?void 0:t.queryKeyHashFn)||us)(e)}function us(e){return JSON.stringify(e,((e,t)=>ms(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function cs(e,t){return hs(e,t)}function hs(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!hs(e[n],t[n]))))}function ds(e,t){if(e===t)return e;const n=fs(e)&&fs(t);if(n||ms(e)&&ms(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l{setTimeout(t,e)}))}function bs(e){Ds(0).then(e)}function ys(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ds(e,t):t}const vs=console;const As=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):bs((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&bs((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...n)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Es{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Cs=new class extends Es{constructor(){super(),this.setup=e=>{if(!es&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},ks=["online","offline"];const Ss=new class extends Es{constructor(){super(),this.setup=e=>{if(!es&&window.addEventListener){const t=()=>e();return ks.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{ks.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function xs(e){return Math.min(1e3*2**e,3e4)}function ws(e){return"online"!==(null!=e?e:"online")||Ss.isOnline()}class Ts{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Fs(e){return e instanceof Ts}function _s(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>!Cs.isFocused()||"always"!==e.networkMode&&!Ss.isOnline(),u=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=()=>new Promise((n=>{t=e=>{const t=s||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),d=()=>{if(s)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(u).catch((t=>{var n,r;if(s)return;const a=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:xs,p="function"===typeof u?u(o,t):u,f=!0===a||"number"===typeof a&&o{if(l())return h()})).then((()=>{i?c(t):d()}))):c(t)}))};return ws(e.networkMode)?d():h().then(d),{promise:a,cancel:t=>{s||(c(new Ts(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class Ps{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ns(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:es?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Bs extends Ps{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||vs,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options=(0,Zt.A)((0,Zt.A)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=ys(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(ts).catch(ts):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!rs(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=function(){if("function"===typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(a(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=l.fetchOptions)?void 0:u.meta});const c=e=>{var t,n,r,i;(Fs(e)&&e.silent||this.dispatch({type:"error",error:e}),Fs(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_s({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):c(new Error(this.queryHash+" data is undefined"))},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return(0,Zt.A)((0,Zt.A)({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,Zt.A)((0,Zt.A)({},t),{},{fetchStatus:"paused"});case"continue":return(0,Zt.A)((0,Zt.A)({},t),{},{fetchStatus:"fetching"});case"fetch":return(0,Zt.A)((0,Zt.A)({},t),{},{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:ws(this.options.networkMode)?"fetching":"paused"},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,Zt.A)((0,Zt.A)({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const i=e.error;return Fs(i)&&i.revert&&this.revertState?(0,Zt.A)((0,Zt.A)({},this.revertState),{},{fetchStatus:"idle"}):(0,Zt.A)((0,Zt.A)({},t),{},{error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"});case"invalidate":return(0,Zt.A)((0,Zt.A)({},t),{},{isInvalidated:!0});case"setState":return(0,Zt.A)((0,Zt.A)({},t),e.state)}})(this.state),As.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Rs extends Es{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:ls(i,t);let s=this.get(o);return s||(s=new Bs({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){As.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=os(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>ss(n,e)))}findAll(e,t){const[n]=os(e,t);return Object.keys(n).length>0?this.queries.filter((e=>ss(n,e))):this.queries}notify(e){As.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}onFocus(){As.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){As.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Ns extends Ps{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||vs,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=(0,Zt.A)((0,Zt.A)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=_s({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,s,a,l,u;if(!t){var c,h,d,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(c=(h=this.mutationCache.config).onMutate)?void 0:c.call(h,this.state.variables,this));const e=await(null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,f,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,f,null,this.state.variables,this.state.context,this)),await(null==(l=(u=this.options).onSettled)?void 0:l.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(A){try{var f,m,g,O,D,b,y,v;throw await(null==(f=(m=this.mutationCache.config).onError)?void 0:f.call(m,A,this.state.variables,this.state.context,this)),await(null==(g=(O=this.options).onError)?void 0:g.call(O,A,this.state.variables,this.state.context)),await(null==(D=(b=this.mutationCache.config).onSettled)?void 0:D.call(b,void 0,A,this.state.variables,this.state.context,this)),await(null==(y=(v=this.options).onSettled)?void 0:y.call(v,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return(0,Zt.A)((0,Zt.A)({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,Zt.A)((0,Zt.A)({},t),{},{isPaused:!0});case"continue":return(0,Zt.A)((0,Zt.A)({},t),{},{isPaused:!1});case"loading":return(0,Zt.A)((0,Zt.A)({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ws(this.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,Zt.A)((0,Zt.A)({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,Zt.A)((0,Zt.A)({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return(0,Zt.A)((0,Zt.A)({},t),e.state)}})(this.state),As.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class Is extends Es{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Ns({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){As.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>as(e,t)))}findAll(e){return this.mutations.filter((t=>as(e,t)))}notify(e){As.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return As.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(ts)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Qs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,u=null==l?void 0:l.pageParam,c="forward"===(null==l?void 0:l.direction),h="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(s=e.state.data)?void 0:s.pageParams)||[];let f=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),O=(e,t,n,r)=>(f=r?[t,...f]:[...f,t],r?[n,...e]:[...e,n]),D=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const a=g(o),l=Promise.resolve(a).then((e=>O(t,r,e,i)));return l};let b;if(d.length)if(c){const t="undefined"!==typeof u,n=t?u:Ms(e.options,d);b=D(d,t,n)}else if(h){const t="undefined"!==typeof u,n=t?u:Ls(e.options,d);b=D(d,t,n,!0)}else{f=[];const t="undefined"===typeof e.options.getNextPageParam;b=!a||!d[0]||a(d[0],0,d)?D([],t,p[0]):Promise.resolve(O([],p[0],d[0]));for(let n=1;n{if(!a||!d[n]||a(d[n],n,d)){const i=t?p[n]:Ms(e.options,r);return D(r,t,i)}return Promise.resolve(O(r,p[n],d[n]))}))}else b=D([]);return b.then((e=>({pages:e,pageParams:f})))}}}}function Ms(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function Ls(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const $s=te.createContext(void 0),zs=te.createContext(!1);function Us(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$s),window.ReactQueryClientContext):$s)}const js=e=>{let{client:t,children:n,context:r,contextSharing:i=!1}=e;te.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const o=Us(r,i);return te.createElement(zs.Provider,{value:!r&&i},te.createElement(o.Provider,{value:t},n))};var qs;n(1784);const Xs=["title","titleId"];function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;tt.sql({dialect:t[e]})))}const Oa=[fa.t$.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2266).then(n.bind(n,2266)).then((e=>e.cpp()))}),fa.t$.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2266).then(n.bind(n,2266)).then((e=>e.cpp()))}),fa.t$.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>ga("Cassandra")}),fa.t$.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,8244)).then((e=>e.css()))}),fa.t$.of({name:"Go",extensions:["go"],load:()=>n.e(6769).then(n.bind(n,6769)).then((e=>e.go()))}),fa.t$.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,5221)).then((e=>e.html()))}),fa.t$.of({name:"Java",extensions:["java"],load:()=>n.e(9e3).then(n.bind(n,6619)).then((e=>e.java()))}),fa.t$.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript()))}),fa.t$.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(9407).then(n.bind(n,9407)).then((e=>e.json()))}),fa.t$.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({jsx:!0})))}),fa.t$.of({name:"LESS",extensions:["less"],load:()=>n.e(8615).then(n.bind(n,8615)).then((e=>e.less()))}),fa.t$.of({name:"Liquid",extensions:["liquid"],load:()=>n.e(4).then(n.bind(n,4)).then((e=>e.liquid()))}),fa.t$.of({name:"MariaDB SQL",load:()=>ga("MariaSQL")}),fa.t$.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,7469)).then((e=>e.markdown()))}),fa.t$.of({name:"MS SQL",load:()=>ga("MSSQL")}),fa.t$.of({name:"MySQL",load:()=>ga("MySQL")}),fa.t$.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(9188).then(n.bind(n,9188)).then((e=>e.php()))}),fa.t$.of({name:"PLSQL",extensions:["pls"],load:()=>ga("PLSQL")}),fa.t$.of({name:"PostgreSQL",load:()=>ga("PostgreSQL")}),fa.t$.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(9223).then(n.bind(n,9223)).then((e=>e.python()))}),fa.t$.of({name:"Rust",extensions:["rs"],load:()=>n.e(4089).then(n.bind(n,4089)).then((e=>e.rust()))}),fa.t$.of({name:"Sass",extensions:["sass"],load:()=>n.e(3450).then(n.bind(n,3450)).then((e=>e.sass({indented:!0})))}),fa.t$.of({name:"SCSS",extensions:["scss"],load:()=>n.e(3450).then(n.bind(n,3450)).then((e=>e.sass()))}),fa.t$.of({name:"SQL",extensions:["sql"],load:()=>ga("StandardSQL")}),fa.t$.of({name:"SQLite",load:()=>ga("SQLite")}),fa.t$.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),fa.t$.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({typescript:!0})))}),fa.t$.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(7873).then(n.bind(n,7873)).then((e=>e.wast()))}),fa.t$.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(1994).then(n.bind(n,1994)).then((e=>e.xml()))}),fa.t$.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(6576).then(n.bind(n,6576)).then((e=>e.yaml()))}),fa.t$.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(6175).then(n.bind(n,8556)).then((e=>ma(e.apl)))}),fa.t$.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(9468).then(n.bind(n,9468)).then((e=>ma(e.asciiArmor)))}),fa.t$.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(2007).then(n.bind(n,2007)).then((e=>ma(e.asn1({}))))}),fa.t$.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(866).then(n.bind(n,866)).then((e=>ma(e.asterisk)))}),fa.t$.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(6339).then(n.bind(n,6339)).then((e=>ma(e.brainfuck)))}),fa.t$.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(6547).then(n.bind(n,6547)).then((e=>ma(e.cobol)))}),fa.t$.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.csharp)))}),fa.t$.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>ma(e.clojure)))}),fa.t$.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>ma(e.clojure)))}),fa.t$.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2463).then(n.bind(n,2463)).then((e=>ma(e.gss)))}),fa.t$.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(935).then(n.bind(n,935)).then((e=>ma(e.cmake)))}),fa.t$.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(5473).then(n.bind(n,5473)).then((e=>ma(e.coffeeScript)))}),fa.t$.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(7607).then(n.bind(n,7607)).then((e=>ma(e.commonLisp)))}),fa.t$.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(4269).then(n.bind(n,4269)).then((e=>ma(e.cypher)))}),fa.t$.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4884).then(n.bind(n,4884)).then((e=>ma(e.cython)))}),fa.t$.of({name:"Crystal",extensions:["cr"],load:()=>n.e(8130).then(n.bind(n,8130)).then((e=>ma(e.crystal)))}),fa.t$.of({name:"D",extensions:["d"],load:()=>n.e(8448).then(n.bind(n,8448)).then((e=>ma(e.d)))}),fa.t$.of({name:"Dart",extensions:["dart"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.dart)))}),fa.t$.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(4829).then(n.bind(n,4829)).then((e=>ma(e.diff)))}),fa.t$.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(5912).then(n.bind(n,5912)).then((e=>ma(e.dockerFile)))}),fa.t$.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6736).then(n.bind(n,6736)).then((e=>ma(e.dtd)))}),fa.t$.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(8898).then(n.bind(n,8898)).then((e=>ma(e.dylan)))}),fa.t$.of({name:"EBNF",load:()=>n.e(6013).then(n.bind(n,6013)).then((e=>ma(e.ebnf)))}),fa.t$.of({name:"ECL",extensions:["ecl"],load:()=>n.e(3212).then(n.bind(n,3212)).then((e=>ma(e.ecl)))}),fa.t$.of({name:"edn",extensions:["edn"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>ma(e.clojure)))}),fa.t$.of({name:"Eiffel",extensions:["e"],load:()=>n.e(4989).then(n.bind(n,4989)).then((e=>ma(e.eiffel)))}),fa.t$.of({name:"Elm",extensions:["elm"],load:()=>n.e(5208).then(n.bind(n,5208)).then((e=>ma(e.elm)))}),fa.t$.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7717).then(n.bind(n,7717)).then((e=>ma(e.erlang)))}),fa.t$.of({name:"Esper",load:()=>n.e(1188).then(n.bind(n,1188)).then((e=>ma(e.esper)))}),fa.t$.of({name:"Factor",extensions:["factor"],load:()=>n.e(9553).then(n.bind(n,9553)).then((e=>ma(e.factor)))}),fa.t$.of({name:"FCL",load:()=>n.e(6193).then(n.bind(n,6193)).then((e=>ma(e.fcl)))}),fa.t$.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(1899).then(n.bind(n,1899)).then((e=>ma(e.forth)))}),fa.t$.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(3726).then(n.bind(n,3726)).then((e=>ma(e.fortran)))}),fa.t$.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>ma(e.fSharp)))}),fa.t$.of({name:"Gas",extensions:["s"],load:()=>n.e(685).then(n.bind(n,685)).then((e=>ma(e.gas)))}),fa.t$.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2678).then(n.bind(n,2678)).then((e=>ma(e.gherkin)))}),fa.t$.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(4388).then(n.bind(n,4388)).then((e=>ma(e.groovy)))}),fa.t$.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5692).then(n.bind(n,5692)).then((e=>ma(e.haskell)))}),fa.t$.of({name:"Haxe",extensions:["hx"],load:()=>n.e(9354).then(n.bind(n,9354)).then((e=>ma(e.haxe)))}),fa.t$.of({name:"HXML",extensions:["hxml"],load:()=>n.e(9354).then(n.bind(n,9354)).then((e=>ma(e.hxml)))}),fa.t$.of({name:"HTTP",load:()=>n.e(3790).then(n.bind(n,3790)).then((e=>ma(e.http)))}),fa.t$.of({name:"IDL",extensions:["pro"],load:()=>n.e(8219).then(n.bind(n,8219)).then((e=>ma(e.idl)))}),fa.t$.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(8437).then(n.bind(n,8437)).then((e=>ma(e.jsonld)))}),fa.t$.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>n.e(7316).then(n.bind(n,7316)).then((e=>ma(e.jinja2)))}),fa.t$.of({name:"Julia",extensions:["jl"],load:()=>n.e(7485).then(n.bind(n,7485)).then((e=>ma(e.julia)))}),fa.t$.of({name:"Kotlin",extensions:["kt","kts"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.kotlin)))}),fa.t$.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(8063).then(n.bind(n,8063)).then((e=>ma(e.liveScript)))}),fa.t$.of({name:"Lua",extensions:["lua"],load:()=>n.e(2682).then(n.bind(n,2682)).then((e=>ma(e.lua)))}),fa.t$.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5039).then(n.bind(n,5039)).then((e=>ma(e.mirc)))}),fa.t$.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(5516).then(n.bind(n,5516)).then((e=>ma(e.mathematica)))}),fa.t$.of({name:"Modelica",extensions:["mo"],load:()=>n.e(1086).then(n.bind(n,1086)).then((e=>ma(e.modelica)))}),fa.t$.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(3640).then(n.bind(n,3640)).then((e=>ma(e.mumps)))}),fa.t$.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9986).then(n.bind(n,9986)).then((e=>ma(e.mbox)))}),fa.t$.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(5188).then(n.bind(n,5188)).then((e=>ma(e.nginx)))}),fa.t$.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(1677).then(n.bind(n,1677)).then((e=>ma(e.nsis)))}),fa.t$.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(8945).then(n.bind(n,8945)).then((e=>ma(e.ntriples)))}),fa.t$.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.objectiveC)))}),fa.t$.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.objectiveCpp)))}),fa.t$.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>ma(e.oCaml)))}),fa.t$.of({name:"Octave",extensions:["m"],load:()=>n.e(9750).then(n.bind(n,9750)).then((e=>ma(e.octave)))}),fa.t$.of({name:"Oz",extensions:["oz"],load:()=>n.e(5395).then(n.bind(n,5395)).then((e=>ma(e.oz)))}),fa.t$.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4374).then(n.bind(n,4374)).then((e=>ma(e.pascal)))}),fa.t$.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(1615).then(n.bind(n,1615)).then((e=>ma(e.perl)))}),fa.t$.of({name:"Pig",extensions:["pig"],load:()=>n.e(1140).then(n.bind(n,1140)).then((e=>ma(e.pig)))}),fa.t$.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(1839).then(n.bind(n,1839)).then((e=>ma(e.powerShell)))}),fa.t$.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(5323).then(n.bind(n,5323)).then((e=>ma(e.properties)))}),fa.t$.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(2433).then(n.bind(n,2433)).then((e=>ma(e.protobuf)))}),fa.t$.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>n.e(3632).then(n.bind(n,3632)).then((e=>ma(e.pug)))}),fa.t$.of({name:"Puppet",extensions:["pp"],load:()=>n.e(9484).then(n.bind(n,9484)).then((e=>ma(e.puppet)))}),fa.t$.of({name:"Q",extensions:["q"],load:()=>n.e(3171).then(n.bind(n,3171)).then((e=>ma(e.q)))}),fa.t$.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(6054).then(n.bind(n,6054)).then((e=>ma(e.r)))}),fa.t$.of({name:"RPM Changes",load:()=>n.e(1993).then(n.bind(n,1993)).then((e=>ma(e.rpmChanges)))}),fa.t$.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(1993).then(n.bind(n,1993)).then((e=>ma(e.rpmSpec)))}),fa.t$.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>n.e(4702).then(n.bind(n,4702)).then((e=>ma(e.ruby)))}),fa.t$.of({name:"SAS",extensions:["sas"],load:()=>n.e(4505).then(n.bind(n,4505)).then((e=>ma(e.sas)))}),fa.t$.of({name:"Scala",extensions:["scala"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.scala)))}),fa.t$.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(2565).then(n.bind(n,2565)).then((e=>ma(e.scheme)))}),fa.t$.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(8226).then(n.bind(n,8226)).then((e=>ma(e.shell)))}),fa.t$.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(642).then(n.bind(n,642)).then((e=>ma(e.sieve)))}),fa.t$.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(5381).then(n.bind(n,5381)).then((e=>ma(e.smalltalk)))}),fa.t$.of({name:"Solr",load:()=>n.e(9562).then(n.bind(n,9562)).then((e=>ma(e.solr)))}),fa.t$.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>ma(e.sml)))}),fa.t$.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(5311).then(n.bind(n,5311)).then((e=>ma(e.sparql)))}),fa.t$.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(3498).then(n.bind(n,3498)).then((e=>ma(e.spreadsheet)))}),fa.t$.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>ma(e.squirrel)))}),fa.t$.of({name:"Stylus",extensions:["styl"],load:()=>n.e(7164).then(n.bind(n,7164)).then((e=>ma(e.stylus)))}),fa.t$.of({name:"Swift",extensions:["swift"],load:()=>n.e(7743).then(n.bind(n,7743)).then((e=>ma(e.swift)))}),fa.t$.of({name:"sTeX",load:()=>n.e(3884).then(n.bind(n,3884)).then((e=>ma(e.stex)))}),fa.t$.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(3884).then(n.bind(n,3884)).then((e=>ma(e.stex)))}),fa.t$.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(7062).then(n.bind(n,7062)).then((e=>ma(e.verilog)))}),fa.t$.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(6555).then(n.bind(n,6555)).then((e=>ma(e.tcl)))}),fa.t$.of({name:"Textile",extensions:["textile"],load:()=>n.e(8373).then(n.bind(n,8373)).then((e=>ma(e.textile)))}),fa.t$.of({name:"TiddlyWiki",load:()=>n.e(2290).then(n.bind(n,2290)).then((e=>ma(e.tiddlyWiki)))}),fa.t$.of({name:"Tiki wiki",load:()=>n.e(4517).then(n.bind(n,4517)).then((e=>ma(e.tiki)))}),fa.t$.of({name:"TOML",extensions:["toml"],load:()=>n.e(7534).then(n.bind(n,7534)).then((e=>ma(e.toml)))}),fa.t$.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(3743).then(n.bind(n,3743)).then((e=>ma(e.troff)))}),fa.t$.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(1947).then(n.bind(n,1947)).then((e=>ma(e.ttcn)))}),fa.t$.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(588).then(n.bind(n,588)).then((e=>ma(e.ttcnCfg)))}),fa.t$.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(7628).then(n.bind(n,7628)).then((e=>ma(e.turtle)))}),fa.t$.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(8047).then(n.bind(n,8047)).then((e=>ma(e.webIDL)))}),fa.t$.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(9978).then(n.bind(n,9978)).then((e=>ma(e.vb)))}),fa.t$.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(6881).then(n.bind(n,6881)).then((e=>ma(e.vbScript)))}),fa.t$.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(9557).then(n.bind(n,9557)).then((e=>ma(e.velocity)))}),fa.t$.of({name:"Verilog",extensions:["v"],load:()=>n.e(7062).then(n.bind(n,7062)).then((e=>ma(e.verilog)))}),fa.t$.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(7472).then(n.bind(n,7472)).then((e=>ma(e.vhdl)))}),fa.t$.of({name:"XQuery",extensions:["xy","xquery"],load:()=>n.e(854).then(n.bind(n,854)).then((e=>ma(e.xQuery)))}),fa.t$.of({name:"Yacas",extensions:["ys"],load:()=>n.e(3067).then(n.bind(n,3067)).then((e=>ma(e.yacas)))}),fa.t$.of({name:"Z80",extensions:["z80"],load:()=>n.e(8206).then(n.bind(n,8206)).then((e=>ma(e.z80)))}),fa.t$.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>ma(e.mscgen)))}),fa.t$.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>ma(e.xu)))}),fa.t$.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>ma(e.msgenny)))}),fa.t$.of({name:"Vue",extensions:["vue"],load:()=>n.e(2066).then(n.bind(n,2066)).then((e=>e.vue()))}),fa.t$.of({name:"Angular Template",load:()=>n.e(624).then(n.bind(n,624)).then((e=>e.angular()))})];var Da=n(4563);function ba(e){var{type:t="scroll",events:n,props:r}=e;return Da.Z9.fromClass(class{constructor(e){(this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,this.dom&&r)&&Object.keys(r).forEach((e=>{this.dom[e]=r[e]}));Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])}))}destroy(){Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])}))}})}var ya=n(2400),va=n(4450);function Aa(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const Ea=Aa(Ta,0),Ca=Aa(wa,0),ka=Aa(((e,t)=>wa(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function Sa(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const xa=50;function wa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((e=>Sa(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,t,n,r){let i,o,{open:s,close:a}=t,l=e.sliceDoc(n-xa,n),u=e.sliceDoc(r,r+xa),c=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(u)[0].length,d=l.length-c;if(l.slice(d-s.length,d)==s&&u.slice(h,h+a.length)==a)return{open:{pos:n-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-n<=2*xa?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+xa),o=e.sliceDoc(r-xa,r));let p=/^\s*/.exec(i)[0].length,f=/\s*$/.exec(o)[0].length,m=o.length-f-a.length;return i.slice(p,p+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:n+p+s.length,margin:/\s/.test(i.charAt(p+s.length))?1:0},close:{pos:r-f-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;for(let{from:o,to:s}of n){let e=r.length,n=1e9,a=Sa(t,o).line;if(a){for(let e=o;e<=s;){let l=t.doc.lineAt(e);if(l.from>i&&(o==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const Fa=ya.YH.define(),_a=ya.YH.define(),Pa=ya.sj.define(),Ba=ya.sj.define({combine:e=>(0,ya.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Ra=ya.sU.define({create:()=>Ga.empty,update(e,t){let n=t.state.facet(Ba),r=t.annotation(Fa);if(r){let i=$a.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?za(s,s.length,n.minDepth,i):Xa(s,t.startState.selection),new Ga(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation(_a);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(ya.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=$a.fromTransaction(t),s=t.annotation(ya.ZX.time),a=t.annotation(ya.ZX.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Ga(e.done.map($a.fromJSON),e.undone.map($a.fromJSON))});function Na(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(Ra,!1);if(!o)return!1;let s=o.pop(e,r,t);return!!s&&(i(s),!0)}}const Ia=Na(0,!1),Qa=Na(1,!1),Ma=Na(0,!0),La=Na(1,!0);class $a{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new $a(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new $a(e.changes&&ya.VR.fromJSON(e.changes),[],e.mapped&&ya.Gu.fromJSON(e.mapped),e.startSelection&&ya.OF.fromJSON(e.startSelection),e.selectionsAfter.map(ya.OF.fromJSON))}static fromTransaction(e,t){let n=ja;for(let r of e.startState.facet(Pa)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new $a(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,ja)}static selection(e){return new $a(void 0,ja,void 0,void 0,e)}}function za(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Ua(e,t){return e.length?t.length?e.concat(t):e:t}const ja=[],qa=200;function Xa(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-qa));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),za(e,e.length-1,1e9,n.setSelAfter(r)))}return[$a.selection([t])]}function Za(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Ha(e,t){if(!e.length)return e;let n=e.length,r=ja;for(;n;){let i=Ya(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[$a.selection(r)]:ja}function Ya(e,t,n){let r=Ua(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):ja,n);if(!e.changes)return $a.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new $a(i,ya.Pe.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const Va=/^(input\.type|delete)($|\.)/;class Ga{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Ga(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Va.test(n))&&(!s.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let s=0;s=e&&i<=t&&(r=!0)}})),r}(s.changes,e.changes))||"input.type.compose"==n)?za(o,o.length-1,r.minDepth,new $a(e.changes.compose(s.changes),Ua(ya.Pe.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,ja)):za(o,o.length,r.minDepth,e),new Ga(o,ja,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:ja;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new Ga(Xa(this.done,e),this.undone,t,n)}addMapping(e){return new Ga(Ha(this.done,e),Ha(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Fa.of({side:e,rest:Za(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?ja:r.slice(0,r.length-1);return i.mapped&&(n=Ha(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Fa.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Ga.empty=new Ga(ja,ja);const Wa=[{key:"Mod-z",run:Ia,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Qa,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Qa,preventDefault:!0},{key:"Mod-u",run:Ma,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:La,preventDefault:!0}];function Ka(e,t){return ya.OF.create(e.ranges.map(t),e.mainIndex)}function Ja(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function el(e,t){let{state:n,dispatch:r}=e,i=Ka(n.selection,t);return!i.eq(n.selection,!0)&&(r(Ja(n,i)),!0)}function tl(e,t){return ya.OF.cursor(t?e.to:e.from)}function nl(e,t){return el(e,(n=>n.empty?e.moveByChar(n,t):tl(n,t)))}function rl(e){return e.textDirectionAt(e.state.selection.main.head)==Da.OP.LTR}const il=e=>nl(e,!rl(e)),ol=e=>nl(e,rl(e));function sl(e,t){return el(e,(n=>n.empty?e.moveByGroup(n,t):tl(n,t)))}"undefined"!=typeof Intl&&Intl.Segmenter;function al(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ll(e,t,n){let r,i,o=(0,fa.mv)(e).resolveInner(t.head),s=n?va.uY.closedBy:va.uY.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;al(e,t,s)?o=t:a=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?(0,fa.jU)(e,o.from,1):(0,fa.jU)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,ya.OF.cursor(i,n?-1:1)}function ul(e,t){return el(e,(n=>{if(!n.empty)return tl(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const cl=e=>ul(e,!1),hl=e=>ul(e,!0);function dl(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):tl(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottompl(e,!1),ml=e=>pl(e,!0);function gl(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=ya.OF.cursor(r.from+n))}return i}function Ol(e,t,n){let r=!1,i=Ka(e.selection,(t=>{let i=(0,fa.jU)(e,t.head,-1)||(0,fa.jU)(e,t.head,1)||t.head>0&&(0,fa.jU)(e,t.head-1,1)||t.head{let n=t(e);return ya.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(Ja(e.state,n)),!0)}function bl(e,t){return Dl(e,(n=>e.moveByChar(n,t)))}const yl=e=>bl(e,!rl(e)),vl=e=>bl(e,rl(e));function Al(e,t){return Dl(e,(n=>e.moveByGroup(n,t)))}function El(e,t){return Dl(e,(n=>e.moveVertically(n,t)))}const Cl=e=>El(e,!1),kl=e=>El(e,!0);function Sl(e,t){return Dl(e,(n=>e.moveVertically(n,t,dl(e).height)))}const xl=e=>Sl(e,!1),wl=e=>Sl(e,!0),Tl=e=>{let{state:t,dispatch:n}=e;return n(Ja(t,{anchor:0})),!0},Fl=e=>{let{state:t,dispatch:n}=e;return n(Ja(t,{anchor:t.doc.length})),!0},_l=e=>{let{state:t,dispatch:n}=e;return n(Ja(t,{anchor:t.selection.main.anchor,head:0})),!0},Pl=e=>{let{state:t,dispatch:n}=e;return n(Ja(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function Bl(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);si&&(n="delete.forward",s=Rl(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=Rl(e,i,!1),o=Rl(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:ya.OF.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const Nl=(e,t,n)=>Bl(e,(r=>{let i,o,s=r.from,{state:a}=e,l=a.doc.lineAt(s);if(n&&!t&&s>l.from&&sNl(e,!1,!0),Ql=e=>Nl(e,!0,!1),Ml=(e,t)=>Bl(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=(0,ya.zK)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),u=s(l);if(null!=e&&u!=e)break;" "==l&&r==n.head||(e=u),r=a}return r})),Ll=e=>Ml(e,!1);function $l(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function zl(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of $l(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){r.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)i.push(ya.OF.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{r.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)i.push(ya.OF.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:ya.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ul(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of $l(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const jl=Xl(!1),ql=Xl(!0);function Xl(e){return t=>{let{state:n,dispatch:r}=t;if(n.readOnly)return!1;let i=n.changeByRange((t=>{let{from:r,to:i}=t,o=n.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,fa.mv)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(va.uY.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);let a=new fa.KB(n,{simulateBreak:r,simulateDoubleBreak:!!s}),l=(0,fa._v)(a,r);for(null==l&&(l=(0,ya.y$)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));io.from&&r{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let o=e.changes(i);return{changes:i,range:ya.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const Hl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Zl(t,((e,n)=>{n.push({from:e.from,insert:t.facet(fa.Xt)})})),{userEvent:"input.indent"})),!0)},Yl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Zl(t,((e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=(0,ya.y$)(r,t.tabSize),o=0,s=(0,fa.EI)(t,Math.max(0,i-(0,fa.tp)(t)));for(;oel(e,(t=>ya.OF.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>Dl(e,(t=>ya.OF.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>el(e,(t=>ya.OF.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>Dl(e,(t=>ya.OF.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Ql},{key:"Ctrl-h",run:Il},{key:"Ctrl-k",run:e=>Bl(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:ya.EY.of(["",""])},range:ya.OF.cursor(e.from)})));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,ya.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,ya.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:ya.OF.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:ml}],Gl=[{key:"ArrowLeft",run:il,shift:yl,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>sl(e,!rl(e)),shift:e=>Al(e,!rl(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>el(e,(t=>gl(e,t,!rl(e)))),shift:e=>Dl(e,(t=>gl(e,t,!rl(e)))),preventDefault:!0},{key:"ArrowRight",run:ol,shift:vl,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>sl(e,rl(e)),shift:e=>Al(e,rl(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>el(e,(t=>gl(e,t,rl(e)))),shift:e=>Dl(e,(t=>gl(e,t,rl(e)))),preventDefault:!0},{key:"ArrowUp",run:cl,shift:Cl,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Tl,shift:_l},{mac:"Ctrl-ArrowUp",run:fl,shift:xl},{key:"ArrowDown",run:hl,shift:kl,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Fl,shift:Pl},{mac:"Ctrl-ArrowDown",run:ml,shift:wl},{key:"PageUp",run:fl,shift:xl},{key:"PageDown",run:ml,shift:wl},{key:"Home",run:e=>el(e,(t=>gl(e,t,!1))),shift:e=>Dl(e,(t=>gl(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Tl,shift:_l},{key:"End",run:e=>el(e,(t=>gl(e,t,!0))),shift:e=>Dl(e,(t=>gl(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Fl,shift:Pl},{key:"Enter",run:jl,shift:jl},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:Il,shift:Il},{key:"Delete",run:Ql},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ll},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Ml(e,!0)},{mac:"Mod-Backspace",run:e=>Bl(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>Bl(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),Wl=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>el(e,(t=>ll(e.state,t,!rl(e)))),shift:e=>Dl(e,(t=>ll(e.state,t,!rl(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>el(e,(t=>ll(e.state,t,rl(e)))),shift:e=>Dl(e,(t=>ll(e.state,t,rl(e))))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return zl(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Ul(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return zl(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Ul(t,n,!0)}},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,r=t.selection,i=null;return r.ranges.length>1?i=ya.OF.create([r.main]):r.main.empty||(i=ya.OF.create([ya.OF.cursor(r.main.head)])),!!i&&(n(Ja(t,i)),!0)}},{key:"Mod-Enter",run:ql},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,r=$l(t).map((e=>{let{from:n,to:r}=e;return ya.OF.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:ya.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,r=Ka(t.selection,(e=>{let n=(0,fa.mv)(t),r=n.resolveStack(e.from,1);if(e.empty){let t=n.resolveStack(e.from,-1);t.node.from>=r.node.from&&t.node.to<=r.node.to&&(r=t)}for(let t=r;t;t=t.next){let{node:n}=t;if((n.from=e.to||n.to>e.to&&n.from<=e.from)&&t.next)return ya.OF.range(n.to,n.from)}return e}));return!r.eq(t.selection)&&(n(Ja(t,r)),!0)},preventDefault:!0},{key:"Mod-[",run:Yl},{key:"Mod-]",run:Hl},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new fa.KB(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=Zl(t,((e,n,o)=>{let s=(0,fa._v)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=(0,fa.EI)(t,s);(a!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes($l(t).map((e=>{let{from:n,to:r}=e;return n>0?n--:r{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return Ol(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Sa(e.state,n.from);return r.line?Ea(e):!!r.block&&ka(e)}},{key:"Alt-A",run:Ca},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat(Gl),Kl={key:"Tab",run:Hl,shift:Yl};function Jl(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class nu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(tu(e)):tu,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,ya.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,ya.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,ya.Fh)(e);let r=this.normalize(t);if(r.length)for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o,this.bufferPos+this.bufferStart);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=ru,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new lu(e,t,n,r,i);this.re=new RegExp(t,iu+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=uu(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=uu(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new au(t,e.sliceString(t,n));return su.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=uu(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=au.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function uu(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function cu(e){let t=Jl("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,s,a,l]=n,u=a?+a.slice(1):0,c=s?+s:i.number;if(s&&l){let e=c/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),c=Math.round(r.doc.lines*e)}else s&&o&&(c=c*("-"==o?-1:1)+i.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,c))),d=ya.OF.cursor(h.from+Math.max(0,Math.min(u,h.length)));e.dispatch({effects:[hu.of(!1),Da.Lz.scrollIntoView(d.from,{y:"center"})],selection:d}),e.focus()}return{dom:Jl("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:hu.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},Jl("label",e.state.phrase("Go to line"),": ",t)," ",Jl("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),Jl("button",{name:"close",onclick:()=>{e.dispatch({effects:hu.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["\xd7"]))}}"undefined"!=typeof Symbol&&(ou.prototype[Symbol.iterator]=lu.prototype[Symbol.iterator]=function(){return this});const hu=ya.Pe.define(),du=ya.sU.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(hu)&&(e=n.value);return e},provide:e=>Da.S7.from(e,(e=>e?cu:null))}),pu=Da.Lz.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),fu={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},mu=ya.sj.define({combine:e=>(0,ya.QR)(e,fu,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const gu=Da.NZ.mark({class:"cm-selectionMatch"}),Ou=Da.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Du(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=ya.Je.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ya.Je.Word)}const bu=Da.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(mu),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Da.NZ.none;let i,o=r.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return Da.NZ.none;let e=n.wordAt(o.head);if(!e)return Da.NZ.none;s=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return Da.NZ.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!Du(s,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==ya.Je.Word&&e(t.sliceDoc(r-1,r))==ya.Je.Word}(s,n,o.from,o.to))return Da.NZ.none}else if(i=n.sliceDoc(o.from,o.to),!i)return Da.NZ.none}let a=[];for(let l of e.visibleRanges){let e=new nu(n.doc,i,l.from,l.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!s||Du(s,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?a.push(Ou.range(r,i)):(r>=o.to||i<=o.from)&&a.push(gu.range(r,i)),a.length>t.maxMatches))return Da.NZ.none}}return Da.NZ.set(a)}},{decorations:e=>e.decorations}),yu=Da.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const vu=ya.sj.define({combine:e=>(0,ya.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Gu(e),scrollToMatch:e=>Da.Lz.scrollIntoView(e)})});class Au{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,iu),!0}catch(gm){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Tu(this):new ku(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:ya.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Su(this,r,t,n):Cu(this,r,t,n)}}class Eu{constructor(e){this.spec=e}}function Cu(e,t,n,r){return new nu(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Cu(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function Su(e,t,n,r){return new ou(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(xu(n.input,n.index))!=ya.Je.Word||i(wu(n.input,n.index))!=ya.Je.Word)&&(i(wu(n.input,n.index+n[0].length))!=ya.Je.Word||i(xu(n.input,n.index+n[0].length))!=ya.Je.Word)):void 0},n,r);var i}function xu(e,t){return e.slice((0,ya.zK)(e,t,!1),t)}function wu(e,t){return e.slice(t,(0,ya.zK)(e,t))}class Tu extends Eu{nextMatch(e,t,n){let r=Su(this.spec,e,n,e.doc.length).next();return r.done&&(r=Su(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=Su(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,((t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let r=n.length;r>0;r--){let t=+n.slice(0,r);if(t>0&&t=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=Su(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const Fu=ya.Pe.define(),_u=ya.Pe.define(),Pu=ya.sU.define({create:e=>new Bu(qu(e).create(),null),update(e,t){for(let n of t.effects)n.is(Fu)?e=new Bu(n.value.create(),e.panel):n.is(_u)&&(e=new Bu(e.query,n.value?ju:null));return e},provide:e=>Da.S7.from(e,(e=>e.panel))});class Bu{constructor(e,t){this.query=e,this.panel=t}}const Ru=Da.NZ.mark({class:"cm-searchMatch"}),Nu=Da.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Iu=Da.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Pu))}update(e){let t=e.state.field(Pu);(t!=e.startState.field(Pu)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return Da.NZ.none;let{view:r}=this,i=new ya.vB;for(let o=0,s=r.visibleRanges,a=s.length;os[o+1].from-500;)n=s[++o].to;t.highlight(r.state,e,n,((e,t)=>{let n=r.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,n?Nu:Ru)}))}return i.finish()}},{decorations:e=>e.decorations});function Qu(e){return t=>{let n=t.state.field(Pu,!1);return n&&n.query.spec.valid?e(t,n):Hu(t)}}const Mu=Qu(((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,i=n.nextMatch(e.state,r,r);if(!i)return!1;let o=ya.OF.single(i.from,i.to),s=e.state.facet(vu);return e.dispatch({selection:o,effects:[ec(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),Zu(e),!0})),Lu=Qu(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i}=r.selection.main,o=n.prevMatch(r,i,i);if(!o)return!1;let s=ya.OF.single(o.from,o.to),a=e.state.facet(vu);return e.dispatch({selection:s,effects:[ec(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),Zu(e),!0})),$u=Qu(((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:ya.OF.create(r.map((e=>ya.OF.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),zu=Qu(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i,to:o}=r.selection.main;if(r.readOnly)return!1;let s=n.nextMatch(r,i,i);if(!s)return!1;let a,l,u=s,c=[],h=[];u.from==i&&u.to==o&&(l=r.toText(n.getReplacement(u)),c.push({from:u.from,to:u.to,insert:l}),u=n.nextMatch(r,u.from,u.to),h.push(Da.Lz.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+".")));let d=e.state.changes(c);return u&&(a=ya.OF.single(u.from,u.to).map(d),h.push(ec(e,u)),h.push(r.facet(vu).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:h,userEvent:"input.replace"}),!0})),Uu=Qu(((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let r=n.matchAll(e.state,1e9).map((e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}}));if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:Da.Lz.announce.of(i),userEvent:"input.replace.all"}),!0}));function ju(e){return e.state.facet(vu).createPanel(e)}function qu(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let u=e.facet(vu);return new Au({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:u.wholeWord})}function Xu(e){let t=(0,Da.ld)(e,ju);return t&&t.dom.querySelector("[main-field]")}function Zu(e){let t=Xu(e);t&&t==e.root.activeElement&&t.select()}const Hu=e=>{let t=e.state.field(Pu,!1);if(t&&t.panel){let n=Xu(e);if(n&&n!=e.root.activeElement){let r=qu(e.state,t.query.spec);r.valid&&e.dispatch({effects:Fu.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[_u.of(!0),t?Fu.of(qu(e.state,t.query.spec)):ya.Pe.appendConfig.of(nc)]});return!0},Yu=e=>{let t=e.state.field(Pu,!1);if(!t||!t.panel)return!1;let n=(0,Da.ld)(e,ju);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:_u.of(!1)}),!0},Vu=[{key:"Mod-f",run:Hu,scope:"editor search-panel"},{key:"F3",run:Mu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Mu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Yu,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:i,to:o}=r.main,s=[],a=0;for(let l=new nu(t.doc,t.sliceDoc(i,o));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(ya.OF.range(l.value.from,l.value.to))}return n(t.update({selection:ya.OF.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,Da.ld)(e,cu);if(!t){let n=[hu.of(!0)];null==e.state.field(du,!1)&&n.push(ya.Pe.appendConfig.of([du,pu])),e.dispatch({effects:n}),t=(0,Da.ld)(e,cu)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:r}=t.selection;if(r.some((e=>e.from===e.to)))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,i=ya.OF.create(r.ranges.map((e=>t.wordAt(e.head)||ya.OF.cursor(e.head))),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)})({state:t,dispatch:n});let i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=i)))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,a=new nu(e.doc,t,r[r.length-1].to);;){if(a.next(),!a.done){if(s&&r.some((e=>e.from==a.value.from)))continue;if(o){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(s)return null;a=new nu(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(ya.OF.range(o.from,o.to),!1),effects:Da.Lz.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class Gu{constructor(e){this.view=e;let t=this.query=e.state.field(Pu).query.spec;function n(e,t,n){return Jl("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Jl("input",{value:t.search,placeholder:Wu(e,"Find"),"aria-label":Wu(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Jl("input",{value:t.replace,placeholder:Wu(e,"Replace"),"aria-label":Wu(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Jl("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Jl("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Jl("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Jl("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Mu(e)),[Wu(e,"next")]),n("prev",(()=>Lu(e)),[Wu(e,"previous")]),n("select",(()=>$u(e)),[Wu(e,"all")]),Jl("label",null,[this.caseField,Wu(e,"match case")]),Jl("label",null,[this.reField,Wu(e,"regexp")]),Jl("label",null,[this.wordField,Wu(e,"by word")]),...e.state.readOnly?[]:[Jl("br"),this.replaceField,n("replace",(()=>zu(e)),[Wu(e,"replace")]),n("replaceAll",(()=>Uu(e)),[Wu(e,"replace all")])],Jl("button",{name:"close",onclick:()=>Yu(e),"aria-label":Wu(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new Au({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Fu.of(e)}))}keydown(e){(0,Da.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Lu:Mu)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),zu(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Fu)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(vu).top}}function Wu(e,t){return e.state.phrase(t)}const Ku=30,Ju=/[\s\.,:;?!]/;function ec(e,t){let{from:n,to:r}=t,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,s=Math.max(i.from,n-Ku),a=Math.min(o,r+Ku),l=e.state.sliceDoc(s,a);if(s!=i.from)for(let u=0;ul.length-Ku;u--)if(!Ju.test(l[u-1])&&Ju.test(l[u])){l=l.slice(0,u);break}return Da.Lz.announce.of("".concat(e.state.phrase("current match"),". ").concat(l," ").concat(e.state.phrase("on line")," ").concat(i.number,"."))}const tc=Da.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),nc=[Pu,ya.Nb.low(Iu),tc];var rc=n(5045);class ic{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class oc{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(Dc).markerFilter;r&&(e=r(e,n));let i=e.slice().sort(((e,t)=>e.from-t.from||e.to-t.to)),o=new ya.vB,s=[],a=0;for(let u=0;;){let e,t,r=u==i.length?null:i[u];if(!r&&!s.length)break;for(s.length?(e=a,t=s.reduce(((e,t)=>Math.min(e,t.to)),r&&r.from>e?r.from:1e8)):(e=r.from,t=r.to,s.push(r),u++);un.from||n.to==e)){t=Math.min(n.from,t);break}s.push(n),u++,t=Math.min(n.to,t)}let l=wc(s);if(s.some((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from)))o.add(e,e,Da.NZ.widget({widget:new vc(l),diagnostics:s.slice()}));else{let n=s.reduce(((e,t)=>t.markClass?e+" "+t.markClass:e),"");o.add(e,t,Da.NZ.mark({class:"cm-lintRange cm-lintRange-"+l+n,diagnostics:s.slice(),inclusiveEnd:s.some((e=>e.to>t))}))}a=t;for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,((e,n,i)=>{let{spec:o}=i;if(!(t&&o.diagnostics.indexOf(t)<0))if(r){if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new ic(r.from,n,r.diagnostic)}else r=new ic(e,n,t||o.diagnostics[0])})),r}function ac(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Dc).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(uc)))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}function lc(e,t){return e.field(dc,!1)?t:t.concat(ya.Pe.appendConfig.of(Tc))}const uc=ya.Pe.define(),cc=ya.Pe.define(),hc=ya.Pe.define(),dc=ya.sU.define({create:()=>new oc(Da.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=sc(n,e.selected.diagnostic,i)||sc(n,null,i)}!n.size&&i&&t.state.facet(Dc).autoPanel&&(i=null),e=new oc(n,i,r)}for(let n of t.effects)if(n.is(uc)){let r=t.state.facet(Dc).autoPanel?n.value.length?Ec.open:null:e.panel;e=oc.init(n.value,r,t.state)}else n.is(cc)?e=new oc(e.diagnostics,n.value?Ec.open:null,e.selected):n.is(hc)&&(e=new oc(e.diagnostics,e.panel,n.value));return e},provide:e=>[Da.S7.from(e,(e=>e.panel)),Da.Lz.decorations.from(e,(e=>e.diagnostics))]});const pc=Da.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function fc(e,t,n){let r,{diagnostics:i}=e.state.field(dc),o=-1,s=-1;i.between(t-(n<0?1:0),t+(n>0?1:0),((e,i,a)=>{let{spec:l}=a;if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:mc(e,r)})}:null}function mc(e,t){return Jl("ul",{class:"cm-tooltip-lint"},t.map((t=>yc(e,t,!1))))}const gc=e=>{let t=e.state.field(dc,!1);return!(!t||!t.panel)&&(e.dispatch({effects:cc.of(!1)}),!0)},Oc=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(dc,!1);t&&t.panel||e.dispatch({effects:lc(e.state,[cc.of(!0)])});let n=(0,Da.ld)(e,Ec.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(dc,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}];const Dc=ya.sj.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,ya.QR)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function bc(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function yc(e,t,n){var r;let i=n?bc(t.actions):[];return Jl("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Jl("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=sc(e.state.field(dc).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,u=l<0?a:[a.slice(0,l),Jl("u",a.slice(l,l+1)),a.slice(l+1)];return Jl("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":" Action: ".concat(a).concat(l<0?"":' (access key "'.concat(i[r],')"'),".")},u)})),t.source&&Jl("div",{class:"cm-diagnosticSource"},t.source))}class vc extends Da.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Jl("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Ac{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=yc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ec{constructor(e){this.view=e,this.items=[];this.list=Jl("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)gc(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=bc(n.actions);for(let i=0;i{for(let t=0;tgc(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(dc).selected;if(!e)return-1;for(let t=0;t{let{spec:l}=a;for(let u of l.diagnostics){if(o.has(u))continue;o.add(u);let e,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),r=!0)),t&&e.diagnostic==t.diagnostic?e.dom.hasAttribute("aria-selected")||(e.dom.setAttribute("aria-selected","true"),i=e):e.dom.hasAttribute("aria-selected")&&e.dom.removeAttribute("aria-selected"),n++}}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.topn.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=sc(this.view.state.field(dc).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:hc.of(t)})}static open(e){return new Ec(e)}}function Cc(e){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"')")}function kc(e){return Cc(''),'width="6" height="3"')}const Sc=Da.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:kc("#d11")},".cm-lintRange-warning":{backgroundImage:kc("orange")},".cm-lintRange-info":{backgroundImage:kc("#999")},".cm-lintRange-hint":{backgroundImage:kc("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function xc(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function wc(e){let t="hint",n=1;for(let r of e){let e=xc(r.severity);e>n&&(n=e,t=r.severity)}return t}Da.wJ;const Tc=[dc,Da.Lz.decorations.compute([dc],(e=>{let{selected:t,panel:n}=e.field(dc);return t&&n&&t.from!=t.to?Da.NZ.set([pc.range(t.from,t.to)]):Da.NZ.none})),(0,Da.Ux)(fc,{hideOn:ac}),Sc];var Fc=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(rc.Bc)),!1!==e.defaultKeymap&&(n=n.concat(Wl)),!1!==e.searchKeymap&&(n=n.concat(Vu)),!1!==e.historyKeymap&&(n=n.concat(Wa)),!1!==e.foldKeymap&&(n=n.concat(fa.f7)),!1!==e.completionKeymap&&(n=n.concat(rc.OO)),!1!==e.lintKeymap&&(n=n.concat(Oc));var r=[];return!1!==e.lineNumbers&&r.push((0,Da.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,Da.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,Da.N$)()),!1!==e.history&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ra,Ba.of(e),Da.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Ia:"historyRedo"==e.inputType?Qa:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,fa.Lv)()),!1!==e.drawSelection&&r.push((0,Da.VH)()),!1!==e.dropCursor&&r.push((0,Da.A)()),!1!==e.allowMultipleSelections&&r.push(ya.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,fa.WD)()),!1!==e.syntaxHighlighting&&r.push((0,fa.y9)(fa.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,fa.SG)()),!1!==e.closeBrackets&&r.push((0,rc.wm)()),!1!==e.autocompletion&&r.push((0,rc.yU)()),!1!==e.rectangularSelection&&r.push((0,Da.D4)()),!1!==t&&r.push((0,Da.HJ)()),!1!==e.highlightActiveLine&&r.push((0,Da.dz)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[yu,bu];return e&&t.push(mu.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&r.push(fa.Xt.of(" ".repeat(e.tabSize))),r.concat([Da.w4.of(n.flat())]).filter(Boolean)},_c=n(1345);const Pc="#e5c07b",Bc="#e06c75",Rc="#56b6c2",Nc="#ffffff",Ic="#abb2bf",Qc="#7d8799",Mc="#61afef",Lc="#98c379",$c="#d19a66",zc="#c678dd",Uc="#21252b",jc="#2c313a",qc="#282c34",Xc="#353a42",Zc="#3E4451",Hc="#528bff",Yc=Da.Lz.theme({"&":{color:Ic,backgroundColor:qc},".cm-content":{caretColor:Hc},".cm-cursor, .cm-dropCursor":{borderLeftColor:Hc},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Zc},".cm-panels":{backgroundColor:Uc,color:Ic},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:qc,color:Qc,border:"none"},".cm-activeLineGutter":{backgroundColor:jc},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Xc},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Xc,borderBottomColor:Xc},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:jc,color:Ic}}},{dark:!0}),Vc=fa.cr.define([{tag:_c._A.keyword,color:zc},{tag:[_c._A.name,_c._A.deleted,_c._A.character,_c._A.propertyName,_c._A.macroName],color:Bc},{tag:[_c._A.function(_c._A.variableName),_c._A.labelName],color:Mc},{tag:[_c._A.color,_c._A.constant(_c._A.name),_c._A.standard(_c._A.name)],color:$c},{tag:[_c._A.definition(_c._A.name),_c._A.separator],color:Ic},{tag:[_c._A.typeName,_c._A.className,_c._A.number,_c._A.changed,_c._A.annotation,_c._A.modifier,_c._A.self,_c._A.namespace],color:Pc},{tag:[_c._A.operator,_c._A.operatorKeyword,_c._A.url,_c._A.escape,_c._A.regexp,_c._A.link,_c._A.special(_c._A.string)],color:Rc},{tag:[_c._A.meta,_c._A.comment],color:Qc},{tag:_c._A.strong,fontWeight:"bold"},{tag:_c._A.emphasis,fontStyle:"italic"},{tag:_c._A.strikethrough,textDecoration:"line-through"},{tag:_c._A.link,color:Qc,textDecoration:"underline"},{tag:_c._A.heading,fontWeight:"bold",color:Bc},{tag:[_c._A.atom,_c._A.bool,_c._A.special(_c._A.variableName)],color:$c},{tag:[_c._A.processingInstruction,_c._A.string,_c._A.inserted],color:Lc},{tag:_c._A.invalid,color:Nc}]),Gc=[Yc,(0,fa.y9)(Vc)];var Wc=Da.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Kc=ya.YH.define(),Jc=[];function eh(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:s,extensions:a=Jc,autoFocus:l,theme:u="light",height:c=null,minHeight:h=null,maxHeight:d=null,width:p=null,minWidth:f=null,maxWidth:m=null,placeholder:g="",editable:O=!0,readOnly:D=!1,indentWithTab:b=!0,basicSetup:y=!0,root:v,initialState:A}=e,[E,C]=(0,te.useState)(),[k,S]=(0,te.useState)(),[x,w]=(0,te.useState)(),T=Da.Lz.theme({"&":{height:c,minHeight:h,maxHeight:d,width:p,minWidth:f,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),F=Da.Lz.updateListener.of((e=>{if(e.docChanged&&"function"===typeof r&&!e.transactions.some((e=>e.annotation(Kc)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),_=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=e,a=[];switch(t&&a.unshift(Da.w4.of([Kl])),s&&("boolean"===typeof s?a.unshift(Fc()):a.unshift(Fc(s))),o&&a.unshift((0,Da.qf)(o)),i){case"light":a.push(Wc);break;case"dark":a.push(Gc);break;case"none":break;default:a.push(i)}return!1===n&&a.push(Da.Lz.editable.of(!1)),r&&a.push(ya.$t.readOnly.of(!0)),[...a]}({theme:u,editable:O,readOnly:D,placeholder:g,indentWithTab:b,basicSetup:y}),P=[F,T,..._];return s&&"function"===typeof s&&P.push(Da.Lz.updateListener.of(s)),P=P.concat(a),(0,te.useLayoutEffect)((()=>{if(E&&!x){var e={doc:t,selection:n,extensions:P},r=A?ya.$t.fromJSON(A.json,e,A.fields):ya.$t.create(e);if(w(r),!k){var i=new Da.Lz({state:r,parent:E,root:v});S(i),o&&o(i,r)}}return()=>{k&&(w(void 0),S(void 0))}}),[E,x]),(0,te.useEffect)((()=>{e.container&&C(e.container)}),[e.container]),(0,te.useEffect)((()=>()=>{k&&(k.destroy(),S(void 0))}),[k]),(0,te.useEffect)((()=>{l&&k&&k.focus()}),[l,k]),(0,te.useEffect)((()=>{k&&k.dispatch({effects:ya.Pe.reconfigure.of(P)})}),[u,a,c,h,d,p,f,m,g,O,D,b,y,r,s]),(0,te.useEffect)((()=>{if(void 0!==t){var e=k?k.state.doc.toString():"";k&&t!==e&&k.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[Kc.of(!0)]})}}),[t,k]),{state:x,setState:w,view:k,setView:S,container:E,setContainer:C}}var th=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],nh=(0,te.forwardRef)(((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:u,autoFocus:c,theme:h="light",height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:D,placeholder:b,indentWithTab:y,editable:v,readOnly:A,root:E,initialState:C}=e,k=Qt(e,th),S=(0,te.useRef)(null),{state:x,view:w,container:T,setContainer:F}=eh({root:E,value:r,autoFocus:c,theme:h,height:d,minHeight:p,maxHeight:f,width:m,minWidth:g,maxWidth:O,basicSetup:D,placeholder:b,indentWithTab:y,editable:v,readOnly:A,selection:i,onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:u,extensions:o,initialState:C});(0,te.useImperativeHandle)(t,(()=>({editor:S.current,state:x,view:w})),[S,T,x,w]);var _=(0,te.useCallback)((e=>{S.current=e,F(e)}),[F]);if("string"!==typeof r)throw new Error("value must be typeof string but got "+typeof r);var P="string"===typeof h?"cm-theme-"+h:"cm-theme";return(0,Mt.jsx)("div",It({ref:_,className:P+(n?" "+n:"")},k))}));nh.displayName="CodeMirror";const rh=nh,ih=function(e){if(null===e||void 0===e)return sh;if("function"===typeof e)return oh(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,h,d=lh;if((!t||o(i,a,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[uh,e];return null===e||void 0===e?lh:[e]}(n(i,l)),d[0]===ch))return d;if("children"in i&&i.children){const t=i;if(t.children&&d[0]!==hh)for(c=(r?t.children.length:-1)+s,h=l.concat(t);c>-1&&c0&&0===s.length)return}const a={};let l;for(l in t)Oh.call(t,l)&&(a[l]="children"===l?s:t[l]);return a}(e)}var bh=n(7799),yh=n(5898),vh=n(9885);function Ah(){Ah=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),Eh(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Ah.apply(this,arguments)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Sh=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){ph(e,"element",n)};function n(n,r,i){var o,s;if(i&&"pre"===i.tagName&&"code"===n.tagName){var a=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(s=n.properties)?void 0:s.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,u,c=function(e){for(var t,n=kh(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!c&&t.defaultLanguage&&n.properties.className.push("language-"+(c=t.defaultLanguage)),n.properties.className.push("code-highlight"),c)try{var h,d;d=null!=(h=c)&&h.includes("diff-")?c.split("-")[1]:c,l=e.highlight(fh(n),d),i.properties.className=(i.properties.className||[]).concat("language-"+d)}catch(y){if(!t.ignoreMissing||!/Unknown language/.test(y.message))throw y;l=n}else l=n;l.children=(u=1,function e(t){return t.reduce((function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:u,column:1},end:{line:u,column:1}},t.push(n);else for(var o,s=r.split("\n"),a=kh(s.entries());!(o=a()).done;){var l=o.value,c=l[0],h=l[1];t.push({type:"text",value:c===s.length-1?h:h+"\n",position:{start:{line:u+c,column:1},end:{line:u+c,column:1}}})}return u+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var d=u;return n.children=e(n.children),t.push(n),n.position={start:{line:d,column:1},end:{line:u,column:1}},t}return t.push(n),t}),[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var p,f=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map((function(e){return e.trim()})).join();if(t.test(n)){var r=t.exec(n)[1],i=bh(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(a),m=function(e){var t=Ah(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(a),g=function(e){for(var t=new Array(e),n=0;n=i+1}));o.children=s.children,!a.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||O.some((function(e){return a.toLowerCase().includes(e)}))||(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),f(i)&&o.properties.className.push("highlight-line"),("diff"===c||null!=(e=c)&&e.includes("diff-"))&&"-"===fh(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===c||null!=(n=c)&&n.includes("diff-"))&&"+"===fh(o).substring(0,1)&&o.properties.className.push("inserted")},b=kh(g.entries());!(p=b()).done;)D();g.length>0&&""===fh(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},xh=(Sh(yh.L),Sh(vh.L));class wh{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Th(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new wh(n,r,t)}function Fh(e){return e.toLowerCase()}wh.prototype.normal={},wh.prototype.property={},wh.prototype.space=void 0;class _h{constructor(e,t){this.attribute=t,this.property=e}}_h.prototype.attribute="",_h.prototype.booleanish=!1,_h.prototype.boolean=!1,_h.prototype.commaOrSpaceSeparated=!1,_h.prototype.commaSeparated=!1,_h.prototype.defined=!1,_h.prototype.mustUseProperty=!1,_h.prototype.number=!1,_h.prototype.overloadedBoolean=!1,_h.prototype.property="",_h.prototype.spaceSeparated=!1,_h.prototype.space=void 0;let Ph=0;const Bh=$h(),Rh=$h(),Nh=$h(),Ih=$h(),Qh=$h(),Mh=$h(),Lh=$h();function $h(){return 2**++Ph}const zh=Object.keys(r);class Uh extends _h{constructor(e,t,n,i){let o=-1;if(super(e,t),jh(this,"space",i),"number"===typeof n)for(;++o"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Zh(e,t){return t in e?e[t]:t}function Hh(e,t){return Zh(e,t.toLowerCase())}const Yh=qh({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mh,acceptCharset:Qh,accessKey:Qh,action:null,allow:null,allowFullScreen:Bh,allowPaymentRequest:Bh,allowUserMedia:Bh,alt:null,as:null,async:Bh,autoCapitalize:null,autoComplete:Qh,autoFocus:Bh,autoPlay:Bh,blocking:Qh,capture:null,charSet:null,checked:Bh,cite:null,className:Qh,cols:Ih,colSpan:null,content:null,contentEditable:Rh,controls:Bh,controlsList:Qh,coords:Ih|Mh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Bh,defer:Bh,dir:null,dirName:null,disabled:Bh,download:Nh,draggable:Rh,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Bh,formTarget:null,headers:Qh,height:Ih,hidden:Nh,high:Ih,href:null,hrefLang:null,htmlFor:Qh,httpEquiv:Qh,id:null,imageSizes:null,imageSrcSet:null,inert:Bh,inputMode:null,integrity:null,is:null,isMap:Bh,itemId:null,itemProp:Qh,itemRef:Qh,itemScope:Bh,itemType:Qh,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Bh,low:Ih,manifest:null,max:null,maxLength:Ih,media:null,method:null,min:null,minLength:Ih,multiple:Bh,muted:Bh,name:null,nonce:null,noModule:Bh,noValidate:Bh,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Bh,optimum:Ih,pattern:null,ping:Qh,placeholder:null,playsInline:Bh,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Bh,referrerPolicy:null,rel:Qh,required:Bh,reversed:Bh,rows:Ih,rowSpan:Ih,sandbox:Qh,scope:null,scoped:Bh,seamless:Bh,selected:Bh,shadowRootClonable:Bh,shadowRootDelegatesFocus:Bh,shadowRootMode:null,shape:null,size:Ih,sizes:null,slot:null,span:Ih,spellCheck:Rh,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ih,step:null,style:null,tabIndex:Ih,target:null,title:null,translate:null,type:null,typeMustMatch:Bh,useMap:null,value:Rh,width:Ih,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qh,axis:null,background:null,bgColor:null,border:Ih,borderColor:null,bottomMargin:Ih,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Bh,declare:Bh,event:null,face:null,frame:null,frameBorder:null,hSpace:Ih,leftMargin:Ih,link:null,longDesc:null,lowSrc:null,marginHeight:Ih,marginWidth:Ih,noResize:Bh,noHref:Bh,noShade:Bh,noWrap:Bh,object:null,profile:null,prompt:null,rev:null,rightMargin:Ih,rules:null,scheme:null,scrolling:Rh,standby:null,summary:null,text:null,topMargin:Ih,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ih,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Bh,disableRemotePlayback:Bh,prefix:null,property:null,results:Ih,security:null,unselectable:null},space:"html",transform:Hh}),Vh=qh({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Lh,accentHeight:Ih,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ih,amplitude:Ih,arabicForm:null,ascent:Ih,attributeName:null,attributeType:null,azimuth:Ih,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ih,by:null,calcMode:null,capHeight:Ih,className:Qh,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ih,diffuseConstant:Ih,direction:null,display:null,dur:null,divisor:Ih,dominantBaseline:null,download:Bh,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ih,enableBackground:null,end:null,event:null,exponent:Ih,externalResourcesRequired:null,fill:null,fillOpacity:Ih,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mh,g2:Mh,glyphName:Mh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ih,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ih,horizOriginX:Ih,horizOriginY:Ih,id:null,ideographic:Ih,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ih,k:Ih,k1:Ih,k2:Ih,k3:Ih,k4:Ih,kernelMatrix:Lh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ih,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ih,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ih,overlineThickness:Ih,paintOrder:null,panose1:null,path:null,pathLength:Ih,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qh,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ih,pointsAtY:Ih,pointsAtZ:Ih,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lh,rev:Lh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lh,requiredFeatures:Lh,requiredFonts:Lh,requiredFormats:Lh,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ih,specularExponent:Ih,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ih,strikethroughThickness:Ih,string:null,stroke:null,strokeDashArray:Lh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ih,strokeOpacity:Ih,strokeWidth:null,style:null,surfaceScale:Ih,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lh,tabIndex:Ih,tableValues:null,target:null,targetX:Ih,targetY:Ih,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ih,underlineThickness:Ih,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ih,values:null,vAlphabetic:Ih,vMathematical:Ih,vectorEffect:null,vHanging:Ih,vIdeographic:Ih,version:null,vertAdvY:Ih,vertOriginX:Ih,vertOriginY:Ih,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ih,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zh}),Gh=qh({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Wh=qh({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Hh}),Kh=qh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Jh=Th([Xh,Yh,Gh,Wh,Kh],"html"),ed=Th([Xh,Vh,Gh,Wh,Kh],"svg");var td={},nd={};function rd(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),vd=Dd(yd,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Ad=Dd(vd,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"],Selector:["part"]}}}),Ed={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{Selector:["part"]}}}},Cd=cd(cd({},Ad),{modules:Object.entries(Ed).filter((function(e){return e[1].latest})).map((function(e){return e[0]}))}),kd={css1:bd,css2:yd,css3:vd,"selectors-3":vd,"selectors-4":Ad,latest:Cd,progressive:Dd(Cd,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};var Sd=function(){for(var e={pseudoClasses:{},pseudoElements:{}},t=0,n=["css1","css2","css3","selectors-3","selectors-4"];t="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function wd(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function Td(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Fd={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},_d={'"':!0,"'":!0},Pd={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var Bd="css-selector-parser parse error: ";var Rd=function(){return Rd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)for(var l=0,u=a.modules;l0)for(var h=0,d=s;h0,_=a.pseudoClasses?[!0,a.pseudoClasses.definitions?ud(a.pseudoClasses.definitions):sd,"accept"===a.pseudoClasses.unknown]:[!1,sd,!1],P=_[0],B=_[1],R=_[2],N=a.pseudoElements?[!0,"singleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,!a.pseudoElements.notation||"doubleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,a.pseudoElements.definitions?ud(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):sd,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,sd,!1],I=N[0],Q=N[1],M=N[2],L=N[3],$=N[4],z="",U=z.length,j=0,q="",X=function(e){return q===e},Z=function(){return X("*")||xd(q)},H=function(e){j=e,q=z.charAt(j)},Y=function(){j++,q=z.charAt(j)},V=function(){var e=q;return j++,q=z.charAt(j),e};function G(e){var t=Math.min(U-1,j),n=new Error("".concat(Bd).concat(e," Pos: ").concat(t,"."));throw n.position=t,n.name="ParserError",n}function W(e,t){if(!e)return G(t)}var K=function(){W(j=U},ee=function(e){W(j=2&&G("Identifiers cannot start with two hyphens with strict mode on."),Pd[q]&&G("Identifiers cannot start with hyphens followed by digits.");j0&&(c+=". It is defined in: ".concat(u.join(", "))),G(c+".")}if(I&&(a||!a&&Q&&Object.prototype.hasOwnProperty.call(L,l))){var h={type:"PseudoElement",name:l};(p=de(l,"pseudo-element",d=null!==(t=L[l])&&void 0!==t?t:$&&ad))&&(W("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),h.argument=p),r.items.push(h)}else{var d;if(W(P,"Pseudo-classes are not enabled."),d=null!==(n=B[l])&&void 0!==n?n:R&&ad);else{u=Sd.pseudoClasses[l],c='Unknown pseudo-class: "'.concat(l,'"');u&&u.length>0&&(c+=". It is defined in: ".concat(u.join(", "))),G(c+".")}var p,f={type:"PseudoClass",name:l};(p=de(l,"pseudo-class",d))&&(f.argument=p),r.items.push(f)}}if(0===r.items.length)return J()?G("Expected rule but end of input reached."):G('Expected rule but "'.concat(q,'" found.'));if(ae(),!J()&&!X(",")&&!X(")")){var m=te(C);ae(),r.nestedRule=me(),r.nestedRule.combinator=m}return r}return function(e){if("string"!==typeof e)throw new Error("".concat(Bd,"Expected string input."));return U=(z=e).length,j=0,q=z.charAt(0),le()}}({syntax:"selectors-4"});function Qd(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return Id(e)}const Md="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Ld="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",$d=new RegExp("^[^"+Ld+"]*["+Md+"]"),zd=new RegExp("^[^"+Md+"]*["+Ld+"]");function Ud(e){const t=function(e){const t=String(e||"");return $d.test(t)?"rtl":zd.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function jd(e){const t="element"===e.type&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}var qd=n(8461);const Xd=/[A-Z]/g,Zd=/-[a-z]/g,Hd=/^data[-\w.:]+$/i;function Yd(e,t){const n=Fh(t);let r=t,i=_h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Hd.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Zd,Gd);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Zd.test(e)){let n=e.replace(Xd,Vd);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Uh}return new i(r,t)}function Vd(e){return"-"+e.toLowerCase()}function Gd(e){return e.charAt(1).toUpperCase()}var Wd=n(4818);function Kd(e,t,n){const r=Yd(n,e.name);let i=function(e,t){if(null===e||void 0===e);else if("boolean"===typeof e){if(e)return t.attribute}else{if(!Array.isArray(e))return String(e);if(e.length>0)return(t.commaSeparated?qd.A:Wd.A)(e)}}(t.properties[r.property],r);if(!e.value)return void 0!==i;e.value.type;let o=e.value.value;if("i"===e.caseSensitivityModifier&&(o=o.toLowerCase(),i&&(i=i.toLowerCase())),void 0!==i)switch(e.operator){case"=":return o===i;case"$=":return o===i.slice(-o.length);case"*=":return i.includes(o);case"^=":return o===i.slice(0,o.length);case"|=":return o===i||o===i.slice(0,o.length)&&"-"===i.charAt(o.length);case"~=":return o===i||Wd.q(i).includes(o)}return!1}const Jd=[];function ep(e,t){return(t.properties.className||Jd).includes(e.name)}function tp(e,t){return t.properties.id===e.name}function np(e,t){return e.name===t.tagName}function rp(e,t){return function(n,r){let i=op(n,"tag");const o=op(null===r||void 0===r?"*":r,"range"),s=[];let a=-1;for(;++ae<=n;if(0===t)return e=>e===n;if(1===t)return n<0?fp.trueFunc:e=>e>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=o(),i=s();if(t=dp&&e.charCodeAt(t)<=pp;)r=10*r+(e.charCodeAt(t)-dp),t++;return t===n?null:r}function a(){for(;t1?o-1:0),a=1;a0},is:Ep,lang:function(e,t,n,r,i){return e.argument,e.argument.type,""!==i.language&&void 0!==i.language&&ip(i.language,(0,qd.q)(e.argument.value)).length>0},"last-child":function(e,t,n,r,i){return yp(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return yp(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,n,r,i){return!Ep(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){const o=Ap(e);return yp(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){const o=Ap(e);return yp(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&o(i.elementCount-i.elementIndex-1))},"nth-last-of-type":function(e,t,n,r,i){const o=Ap(e);return yp(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&o(i.typeCount-1-i.typeIndex)},"nth-of-type":function(e,t,n,r,i){const o=Ap(e);return yp(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"only-child":function(e,t,n,r,i){return yp(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return yp(i,e),1===i.typeCount},optional:function(e,t){return!kp(e,t)},"read-only":function(e,t,n,r,i){return!Cp(e,t,n,r,i)},"read-write":Cp,required:kp,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,i){return i.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function yp(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function vp(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&ap(t,"disabled")}function Ap(e){let t=e._cachedFn;if(!t){const n=e.argument;if("Formula"!==n.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Dp(n.a+"n+"+n.b),e._cachedFn=t}return t}function Ep(e,t,n,r,i){e.argument,e.argument.type;const o=(0,Zt.A)((0,Zt.A)({},i),{},{found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1});return Tp(o,t),o.results[0]===t}function Cp(e,t,n,r,i){return"input"===t.tagName||"textarea"===t.tagName?!ap(t,"readOnly")&&!ap(t,"disabled"):Boolean(i.editableOrEditingHost)}function kp(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&ap(t,"required")}function Sp(e,t){const n=e.children;let r=-1;for(;++r0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wp}function Pp(e,t){if("element"===t.type){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Bp(e,t,n,r,i,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const a=function(e,t){const n=e.schema,r=e.language,i=e.direction,o=e.editableOrEditingHost;let s;if("element"===t.type){const r=t.properties.xmlLang||t.properties.lang,i=t.properties.type||"text",o=jd(t);null!==r&&void 0!==r&&(e.language=String(r)),n&&"html"===n.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=ed),"rtl"===o?s=o:"ltr"===o||"auto"!==o&&"html"===t.tagName||"auto"!==o&&"input"===t.tagName&&"tel"===i?s="ltr":"auto"!==o&&"bdi"!==t.tagName||("textarea"===t.tagName?s=Ud(fh(t)):"input"!==t.tagName||"email"!==i&&"search"!==i&&"tel"!==i&&"text"!==i?ph(t,(function(e){return"text"===e.type?(s=Ud(e.value),s?ch:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!jd(e)?void 0:hh})):s=t.properties.value?Ud(String(t.properties.value)):"ltr"),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=o}}(e,n);if("element"===n.type){let a=e.rootQuery.rules;i&&i!==o&&(a=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&i===o))),s=function(e,t,n,r,i){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(n)||e.results.push(n))}void 0===a.combinator?Fp(o,"descendant",a):"~"===a.combinator&&Fp(o,"generalSibling",a)}return o}(e,_p(t,a),n,r,i)}return!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n,r){const i=_p(t.descendant,t.directChild);let o,s=-1;const a={count:0,types:new Map},l={count:0,types:new Map};for(;++s1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=Np(t.children))})),e},Ip=e=>{const{selector:t,rewrite:n}=e||{};return e=>{if(n&&"function"===typeof n)if(t&&"string"===typeof t){const r=function(e,t,n){const r=Rp(e,t,n);return Tp(r,t||void 0),r.results}(t,e);r&&r.length>0&&ph(e,r,((e,t,r)=>{n(e,t,r)}))}else ph(e,((e,t,r)=>{n(e,t,r)}))}},Qp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>1?arguments[1]:void 0;for(;r/,"$2")||""))return;if(n){if(Qp(e,r,"pre",n))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},Mp=e=>{let{value:t=""}=e;const n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach((e=>{"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])})),n},Lp=(e,t,n)=>"string"===n?(0,Zt.A)((0,Zt.A)({},e),{},{"data-config":JSON.stringify((0,Zt.A)((0,Zt.A)({},t),{},{rehyp:!0}))}):"attr"===n?(0,Zt.A)((0,Zt.A)({},e),t):(0,Zt.A)((0,Zt.A)({},e),{},{"data-config":(0,Zt.A)((0,Zt.A)({},t),{},{rehyp:!0})}),$p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{ph(e,"element",((e,r,i)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(i.children,r);if(o){const r=Mp(o);Object.keys(r).length>0&&(e.properties=(0,Zt.A)((0,Zt.A)({},e.properties),{"data-type":"rehyp"}),n.properties=Lp(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&i&&Array.isArray(i.children)&&"number"===typeof r){const o=Qp(i.children,r,"",n);if(o){const n=Mp(o);Object.keys(n).length>0&&(e.properties=Lp(e.properties,n,t))}}}))}},zp="object"===typeof self?self:globalThis,Up=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new zp[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new zp[o](s),i)};return r})(new Map,e)(0),jp="",{toString:qp}={},{keys:Xp}=Object,Zp=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=qp.call(e).slice(8,-1);switch(n){case"Array":return[1,jp];case"Object":return[2,jp];case"Date":return[3,jp];case"RegExp":return[4,jp];case"Map":return[5,jp];case"Set":return[6,jp];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Hp=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Yp=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Zp(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([s,n],r);for(const t of Xp(r))!e&&Hp(Zp(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!Hp(Zp(i))&&!Hp(Zp(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&Hp(Zp(i))||t.push(o(i));return n}}const{message:l}=r;return i([s,{name:a,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Vp="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Up(Yp(e,t)):structuredClone(e):(e,t)=>Up(Yp(e,t)),Gp=/[#.]/g;function Wp(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i){let o;for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l1?n[e.line-2]:0)+e.column-1;if(r-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=rf(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},cf(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},cf(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===of.svg?ed:Jh;let r=-1;const i={};for(;++r"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Pf=Ff({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Bf(e,t){return t in e?e[t]:t}function Rf(e,t){return Bf(e,t.toLowerCase())}const Nf=Ff({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Rf,properties:{xmlns:null,xmlnsXLink:null}}),If=Ff({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:bf,ariaAutoComplete:null,ariaBusy:bf,ariaChecked:bf,ariaColCount:vf,ariaColIndex:vf,ariaColSpan:vf,ariaControls:Af,ariaCurrent:null,ariaDescribedBy:Af,ariaDetails:null,ariaDisabled:bf,ariaDropEffect:Af,ariaErrorMessage:null,ariaExpanded:bf,ariaFlowTo:Af,ariaGrabbed:bf,ariaHasPopup:null,ariaHidden:bf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Af,ariaLevel:vf,ariaLive:null,ariaModal:bf,ariaMultiLine:bf,ariaMultiSelectable:bf,ariaOrientation:null,ariaOwns:Af,ariaPlaceholder:null,ariaPosInSet:vf,ariaPressed:bf,ariaReadOnly:bf,ariaRelevant:null,ariaRequired:bf,ariaRoleDescription:Af,ariaRowCount:vf,ariaRowIndex:vf,ariaRowSpan:vf,ariaSelected:bf,ariaSetSize:vf,ariaSort:null,ariaValueMax:vf,ariaValueMin:vf,ariaValueNow:vf,ariaValueText:null,role:null}}),Qf=Ff({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Rf,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ef,acceptCharset:Af,accessKey:Af,action:null,allow:null,allowFullScreen:Df,allowPaymentRequest:Df,allowUserMedia:Df,alt:null,as:null,async:Df,autoCapitalize:null,autoComplete:Af,autoFocus:Df,autoPlay:Df,blocking:Af,capture:null,charSet:null,checked:Df,cite:null,className:Af,cols:vf,colSpan:null,content:null,contentEditable:bf,controls:Df,controlsList:Af,coords:vf|Ef,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Df,defer:Df,dir:null,dirName:null,disabled:Df,download:yf,draggable:bf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Df,formTarget:null,headers:Af,height:vf,hidden:Df,high:vf,href:null,hrefLang:null,htmlFor:Af,httpEquiv:Af,id:null,imageSizes:null,imageSrcSet:null,inert:Df,inputMode:null,integrity:null,is:null,isMap:Df,itemId:null,itemProp:Af,itemRef:Af,itemScope:Df,itemType:Af,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Df,low:vf,manifest:null,max:null,maxLength:vf,media:null,method:null,min:null,minLength:vf,multiple:Df,muted:Df,name:null,nonce:null,noModule:Df,noValidate:Df,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Df,optimum:vf,pattern:null,ping:Af,placeholder:null,playsInline:Df,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Df,referrerPolicy:null,rel:Af,required:Df,reversed:Df,rows:vf,rowSpan:vf,sandbox:Af,scope:null,scoped:Df,seamless:Df,selected:Df,shadowRootClonable:Df,shadowRootDelegatesFocus:Df,shadowRootMode:null,shape:null,size:vf,sizes:null,slot:null,span:vf,spellCheck:bf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:vf,step:null,style:null,tabIndex:vf,target:null,title:null,translate:null,type:null,typeMustMatch:Df,useMap:null,value:bf,width:vf,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Af,axis:null,background:null,bgColor:null,border:vf,borderColor:null,bottomMargin:vf,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Df,declare:Df,event:null,face:null,frame:null,frameBorder:null,hSpace:vf,leftMargin:vf,link:null,longDesc:null,lowSrc:null,marginHeight:vf,marginWidth:vf,noResize:Df,noHref:Df,noShade:Df,noWrap:Df,object:null,profile:null,prompt:null,rev:null,rightMargin:vf,rules:null,scheme:null,scrolling:bf,standby:null,summary:null,text:null,topMargin:vf,valueType:null,version:null,vAlign:null,vLink:null,vSpace:vf,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Df,disableRemotePlayback:Df,prefix:null,property:null,results:vf,security:null,unselectable:null}}),Mf=Ff({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Bf,properties:{about:Cf,accentHeight:vf,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:vf,amplitude:vf,arabicForm:null,ascent:vf,attributeName:null,attributeType:null,azimuth:vf,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:vf,by:null,calcMode:null,capHeight:vf,className:Af,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:vf,diffuseConstant:vf,direction:null,display:null,dur:null,divisor:vf,dominantBaseline:null,download:Df,dx:null,dy:null,edgeMode:null,editable:null,elevation:vf,enableBackground:null,end:null,event:null,exponent:vf,externalResourcesRequired:null,fill:null,fillOpacity:vf,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ef,g2:Ef,glyphName:Ef,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:vf,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:vf,horizOriginX:vf,horizOriginY:vf,id:null,ideographic:vf,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:vf,k:vf,k1:vf,k2:vf,k3:vf,k4:vf,kernelMatrix:Cf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:vf,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:vf,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:vf,overlineThickness:vf,paintOrder:null,panose1:null,path:null,pathLength:vf,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Af,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:vf,pointsAtY:vf,pointsAtZ:vf,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Cf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Cf,rev:Cf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Cf,requiredFeatures:Cf,requiredFonts:Cf,requiredFormats:Cf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:vf,specularExponent:vf,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:vf,strikethroughThickness:vf,string:null,stroke:null,strokeDashArray:Cf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:vf,strokeOpacity:vf,strokeWidth:null,style:null,surfaceScale:vf,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Cf,tabIndex:vf,tableValues:null,target:null,targetX:vf,targetY:vf,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Cf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:vf,underlineThickness:vf,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:vf,values:null,vAlphabetic:vf,vMathematical:vf,vectorEffect:null,vHanging:vf,vIdeographic:vf,version:null,vertAdvY:vf,vertOriginX:vf,vertOriginY:vf,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:vf,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Lf=ff([Pf,_f,Nf,If,Qf],"html"),$f=ff([Pf,_f,Nf,If,Mf],"svg"),zf=/^data[-\w.:]+$/i,Uf=/-[a-z]/g,jf=/[A-Z]/g;function qf(e){return"-"+e.toLowerCase()}function Xf(e){return e.charAt(1).toUpperCase()}const Zf={},Hf={}.hasOwnProperty,Yf=Op("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Gf(e.children,n,t),Wf(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=$f);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Hf.call(e.properties,o)){const t=Vf(r,o,e.properties[o]);t&&i.push(t)}const s=r.space;const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:of[s],childNodes:[],parentNode:null};a.childNodes=Gf(e.children,a,r),Wf(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Gf(e.children,n,t),Wf(e,n),n}(e.content,r));return a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Wf(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Wf(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Wf(e,t),t}}});function Vf(e,t,n){const r=function(e,t){const n=mf(t);let r=t,i=gf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&zf.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Uf,Xf);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Uf.test(e)){let n=e.replace(jf,qf);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=xf}return new i(r,t)}(e,t);if(!1===n||null===n||void 0===n||"number"===typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,qd.A)(n):(0,Wd.A)(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=of[r.space]}return i}function Gf(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function um(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function cm(e){return e>=64976&&e<=65007||Jf.has(e)}var hm;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(hm||(hm={}));class dm{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,o=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,tm.EOF;return this._err(hm.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,tm.EOF;const n=this.html.charCodeAt(t);return n===tm.CARRIAGE_RETURN?tm.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,tm.EOF;let e=this.html.charCodeAt(this.pos);if(e===tm.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,tm.LINE_FEED;if(e===tm.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,lm(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===tm.LINE_FEED||e===tm.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){um(e)?this._err(hm.controlCharacterInInputStream):cm(e)&&this._err(hm.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(pm||(pm={}));const mm=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0))));var gm;const Om=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);gm=String.fromCodePoint;function Dm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Om.get(e))&&void 0!==t?t:e}var bm;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(bm||(bm={}));var ym,vm,Am;function Em(e){return e>=bm.ZERO&&e<=bm.NINE}function Cm(e){return e>=bm.UPPER_A&&e<=bm.UPPER_F||e>=bm.LOWER_A&&e<=bm.LOWER_F}function km(e){return e===bm.EQUALS||function(e){return e>=bm.UPPER_A&&e<=bm.UPPER_Z||e>=bm.LOWER_A&&e<=bm.LOWER_Z||Em(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ym||(ym={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(vm||(vm={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Am||(Am={}));class Sm{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=vm.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Am.Strict}startEntity(e){this.decodeMode=e,this.state=vm.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case vm.EntityStart:return e.charCodeAt(t)===bm.NUM?(this.state=vm.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=vm.NamedEntity,this.stateNamedEntity(e,t));case vm.NumericStart:return this.stateNumericStart(e,t);case vm.NumericDecimal:return this.stateNumericDecimal(e,t);case vm.NumericHex:return this.stateNumericHex(e,t);case vm.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===bm.LOWER_X?(this.state=vm.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=vm.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t>14;for(;t>14,0!==i){if(o===bm.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Am.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&ym.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~ym.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case vm.NamedEntity:return 0===this.result||this.decodeMode===Am.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case vm.NumericDecimal:return this.emitNumericEntity(0,2);case vm.NumericHex:return this.emitNumericEntity(0,3);case vm.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case vm.EntityStart:return 0}}}function xm(e,t,n,r){const i=(t&ym.BRANCH_LENGTH)>>7,o=t&ym.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(nr))return e[t+i];a=t-1}}return-1}var wm,Tm,Fm,_m,Pm;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(wm||(wm={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(Tm||(Tm={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Fm||(Fm={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(_m||(_m={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(Pm||(Pm={}));const Bm=new Map([[_m.A,Pm.A],[_m.ADDRESS,Pm.ADDRESS],[_m.ANNOTATION_XML,Pm.ANNOTATION_XML],[_m.APPLET,Pm.APPLET],[_m.AREA,Pm.AREA],[_m.ARTICLE,Pm.ARTICLE],[_m.ASIDE,Pm.ASIDE],[_m.B,Pm.B],[_m.BASE,Pm.BASE],[_m.BASEFONT,Pm.BASEFONT],[_m.BGSOUND,Pm.BGSOUND],[_m.BIG,Pm.BIG],[_m.BLOCKQUOTE,Pm.BLOCKQUOTE],[_m.BODY,Pm.BODY],[_m.BR,Pm.BR],[_m.BUTTON,Pm.BUTTON],[_m.CAPTION,Pm.CAPTION],[_m.CENTER,Pm.CENTER],[_m.CODE,Pm.CODE],[_m.COL,Pm.COL],[_m.COLGROUP,Pm.COLGROUP],[_m.DD,Pm.DD],[_m.DESC,Pm.DESC],[_m.DETAILS,Pm.DETAILS],[_m.DIALOG,Pm.DIALOG],[_m.DIR,Pm.DIR],[_m.DIV,Pm.DIV],[_m.DL,Pm.DL],[_m.DT,Pm.DT],[_m.EM,Pm.EM],[_m.EMBED,Pm.EMBED],[_m.FIELDSET,Pm.FIELDSET],[_m.FIGCAPTION,Pm.FIGCAPTION],[_m.FIGURE,Pm.FIGURE],[_m.FONT,Pm.FONT],[_m.FOOTER,Pm.FOOTER],[_m.FOREIGN_OBJECT,Pm.FOREIGN_OBJECT],[_m.FORM,Pm.FORM],[_m.FRAME,Pm.FRAME],[_m.FRAMESET,Pm.FRAMESET],[_m.H1,Pm.H1],[_m.H2,Pm.H2],[_m.H3,Pm.H3],[_m.H4,Pm.H4],[_m.H5,Pm.H5],[_m.H6,Pm.H6],[_m.HEAD,Pm.HEAD],[_m.HEADER,Pm.HEADER],[_m.HGROUP,Pm.HGROUP],[_m.HR,Pm.HR],[_m.HTML,Pm.HTML],[_m.I,Pm.I],[_m.IMG,Pm.IMG],[_m.IMAGE,Pm.IMAGE],[_m.INPUT,Pm.INPUT],[_m.IFRAME,Pm.IFRAME],[_m.KEYGEN,Pm.KEYGEN],[_m.LABEL,Pm.LABEL],[_m.LI,Pm.LI],[_m.LINK,Pm.LINK],[_m.LISTING,Pm.LISTING],[_m.MAIN,Pm.MAIN],[_m.MALIGNMARK,Pm.MALIGNMARK],[_m.MARQUEE,Pm.MARQUEE],[_m.MATH,Pm.MATH],[_m.MENU,Pm.MENU],[_m.META,Pm.META],[_m.MGLYPH,Pm.MGLYPH],[_m.MI,Pm.MI],[_m.MO,Pm.MO],[_m.MN,Pm.MN],[_m.MS,Pm.MS],[_m.MTEXT,Pm.MTEXT],[_m.NAV,Pm.NAV],[_m.NOBR,Pm.NOBR],[_m.NOFRAMES,Pm.NOFRAMES],[_m.NOEMBED,Pm.NOEMBED],[_m.NOSCRIPT,Pm.NOSCRIPT],[_m.OBJECT,Pm.OBJECT],[_m.OL,Pm.OL],[_m.OPTGROUP,Pm.OPTGROUP],[_m.OPTION,Pm.OPTION],[_m.P,Pm.P],[_m.PARAM,Pm.PARAM],[_m.PLAINTEXT,Pm.PLAINTEXT],[_m.PRE,Pm.PRE],[_m.RB,Pm.RB],[_m.RP,Pm.RP],[_m.RT,Pm.RT],[_m.RTC,Pm.RTC],[_m.RUBY,Pm.RUBY],[_m.S,Pm.S],[_m.SCRIPT,Pm.SCRIPT],[_m.SEARCH,Pm.SEARCH],[_m.SECTION,Pm.SECTION],[_m.SELECT,Pm.SELECT],[_m.SOURCE,Pm.SOURCE],[_m.SMALL,Pm.SMALL],[_m.SPAN,Pm.SPAN],[_m.STRIKE,Pm.STRIKE],[_m.STRONG,Pm.STRONG],[_m.STYLE,Pm.STYLE],[_m.SUB,Pm.SUB],[_m.SUMMARY,Pm.SUMMARY],[_m.SUP,Pm.SUP],[_m.TABLE,Pm.TABLE],[_m.TBODY,Pm.TBODY],[_m.TEMPLATE,Pm.TEMPLATE],[_m.TEXTAREA,Pm.TEXTAREA],[_m.TFOOT,Pm.TFOOT],[_m.TD,Pm.TD],[_m.TH,Pm.TH],[_m.THEAD,Pm.THEAD],[_m.TITLE,Pm.TITLE],[_m.TR,Pm.TR],[_m.TRACK,Pm.TRACK],[_m.TT,Pm.TT],[_m.U,Pm.U],[_m.UL,Pm.UL],[_m.SVG,Pm.SVG],[_m.VAR,Pm.VAR],[_m.WBR,Pm.WBR],[_m.XMP,Pm.XMP]]);function Rm(e){var t;return null!==(t=Bm.get(e))&&void 0!==t?t:Pm.UNKNOWN}const Nm=Pm,Im={[wm.HTML]:new Set([Nm.ADDRESS,Nm.APPLET,Nm.AREA,Nm.ARTICLE,Nm.ASIDE,Nm.BASE,Nm.BASEFONT,Nm.BGSOUND,Nm.BLOCKQUOTE,Nm.BODY,Nm.BR,Nm.BUTTON,Nm.CAPTION,Nm.CENTER,Nm.COL,Nm.COLGROUP,Nm.DD,Nm.DETAILS,Nm.DIR,Nm.DIV,Nm.DL,Nm.DT,Nm.EMBED,Nm.FIELDSET,Nm.FIGCAPTION,Nm.FIGURE,Nm.FOOTER,Nm.FORM,Nm.FRAME,Nm.FRAMESET,Nm.H1,Nm.H2,Nm.H3,Nm.H4,Nm.H5,Nm.H6,Nm.HEAD,Nm.HEADER,Nm.HGROUP,Nm.HR,Nm.HTML,Nm.IFRAME,Nm.IMG,Nm.INPUT,Nm.LI,Nm.LINK,Nm.LISTING,Nm.MAIN,Nm.MARQUEE,Nm.MENU,Nm.META,Nm.NAV,Nm.NOEMBED,Nm.NOFRAMES,Nm.NOSCRIPT,Nm.OBJECT,Nm.OL,Nm.P,Nm.PARAM,Nm.PLAINTEXT,Nm.PRE,Nm.SCRIPT,Nm.SECTION,Nm.SELECT,Nm.SOURCE,Nm.STYLE,Nm.SUMMARY,Nm.TABLE,Nm.TBODY,Nm.TD,Nm.TEMPLATE,Nm.TEXTAREA,Nm.TFOOT,Nm.TH,Nm.THEAD,Nm.TITLE,Nm.TR,Nm.TRACK,Nm.UL,Nm.WBR,Nm.XMP]),[wm.MATHML]:new Set([Nm.MI,Nm.MO,Nm.MN,Nm.MS,Nm.MTEXT,Nm.ANNOTATION_XML]),[wm.SVG]:new Set([Nm.TITLE,Nm.FOREIGN_OBJECT,Nm.DESC]),[wm.XLINK]:new Set,[wm.XML]:new Set,[wm.XMLNS]:new Set},Qm=new Set([Nm.H1,Nm.H2,Nm.H3,Nm.H4,Nm.H5,Nm.H6]);new Set([_m.STYLE,_m.SCRIPT,_m.XMP,_m.IFRAME,_m.NOEMBED,_m.NOFRAMES,_m.PLAINTEXT]);var Mm;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(Mm||(Mm={}));const Lm={DATA:Mm.DATA,RCDATA:Mm.RCDATA,RAWTEXT:Mm.RAWTEXT,SCRIPT_DATA:Mm.SCRIPT_DATA,PLAINTEXT:Mm.PLAINTEXT,CDATA_SECTION:Mm.CDATA_SECTION};function $m(e){return e>=tm.LATIN_CAPITAL_A&&e<=tm.LATIN_CAPITAL_Z}function zm(e){return function(e){return e>=tm.LATIN_SMALL_A&&e<=tm.LATIN_SMALL_Z}(e)||$m(e)}function Um(e){return zm(e)||function(e){return e>=tm.DIGIT_0&&e<=tm.DIGIT_9}(e)}function jm(e){return e+32}function qm(e){return e===tm.SPACE||e===tm.LINE_FEED||e===tm.TABULATION||e===tm.FORM_FEED}function Xm(e){return qm(e)||e===tm.SOLIDUS||e===tm.GREATER_THAN_SIGN}class Zm{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Mm.DATA,this.returnState=Mm.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dm(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Sm(mm,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(hm.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(hm.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===tm.NULL?hm.nullCharacterReference:e>1114111?hm.characterReferenceOutsideUnicodeRange:lm(e)?hm.surrogateCharacterReference:cm(e)?hm.noncharacterCharacterReference:um(e)||e===tm.CARRIAGE_RETURN?hm.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(hm.endTagWithAttributes),e.selfClosing&&this._err(hm.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case pm.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case pm.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case pm.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:pm.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=qm(e)?pm.WHITESPACE_CHARACTER:e===tm.NULL?pm.NULL_CHARACTER:pm.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(pm.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Mm.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Am.Attribute:Am.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Mm.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Mm.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Mm.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Mm.DATA:this._stateData(e);break;case Mm.RCDATA:this._stateRcdata(e);break;case Mm.RAWTEXT:this._stateRawtext(e);break;case Mm.SCRIPT_DATA:this._stateScriptData(e);break;case Mm.PLAINTEXT:this._statePlaintext(e);break;case Mm.TAG_OPEN:this._stateTagOpen(e);break;case Mm.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Mm.TAG_NAME:this._stateTagName(e);break;case Mm.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Mm.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Mm.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Mm.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Mm.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Mm.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Mm.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Mm.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Mm.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Mm.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Mm.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Mm.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Mm.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Mm.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Mm.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Mm.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Mm.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Mm.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Mm.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Mm.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Mm.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Mm.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Mm.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Mm.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Mm.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Mm.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Mm.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Mm.BOGUS_COMMENT:this._stateBogusComment(e);break;case Mm.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Mm.COMMENT_START:this._stateCommentStart(e);break;case Mm.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Mm.COMMENT:this._stateComment(e);break;case Mm.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Mm.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Mm.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Mm.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Mm.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Mm.COMMENT_END:this._stateCommentEnd(e);break;case Mm.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Mm.DOCTYPE:this._stateDoctype(e);break;case Mm.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Mm.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Mm.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Mm.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Mm.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Mm.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Mm.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Mm.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Mm.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Mm.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Mm.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Mm.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Mm.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Mm.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Mm.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Mm.CDATA_SECTION:this._stateCdataSection(e);break;case Mm.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Mm.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Mm.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Mm.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case tm.LESS_THAN_SIGN:this.state=Mm.TAG_OPEN;break;case tm.AMPERSAND:this._startCharacterReference();break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this._emitCodePoint(e);break;case tm.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case tm.AMPERSAND:this._startCharacterReference();break;case tm.LESS_THAN_SIGN:this.state=Mm.RCDATA_LESS_THAN_SIGN;break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this._emitChars(em);break;case tm.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case tm.LESS_THAN_SIGN:this.state=Mm.RAWTEXT_LESS_THAN_SIGN;break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this._emitChars(em);break;case tm.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case tm.LESS_THAN_SIGN:this.state=Mm.SCRIPT_DATA_LESS_THAN_SIGN;break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this._emitChars(em);break;case tm.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case tm.NULL:this._err(hm.unexpectedNullCharacter),this._emitChars(em);break;case tm.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(zm(e))this._createStartTagToken(),this.state=Mm.TAG_NAME,this._stateTagName(e);else switch(e){case tm.EXCLAMATION_MARK:this.state=Mm.MARKUP_DECLARATION_OPEN;break;case tm.SOLIDUS:this.state=Mm.END_TAG_OPEN;break;case tm.QUESTION_MARK:this._err(hm.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Mm.BOGUS_COMMENT,this._stateBogusComment(e);break;case tm.EOF:this._err(hm.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(hm.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Mm.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(zm(e))this._createEndTagToken(),this.state=Mm.TAG_NAME,this._stateTagName(e);else switch(e){case tm.GREATER_THAN_SIGN:this._err(hm.missingEndTagName),this.state=Mm.DATA;break;case tm.EOF:this._err(hm.eofBeforeTagName),this._emitChars("");break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this.state=Mm.SCRIPT_DATA_ESCAPED,this._emitChars(em);break;case tm.EOF:this._err(hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Mm.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===tm.SOLIDUS?this.state=Mm.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zm(e)?(this._emitChars("<"),this.state=Mm.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Mm.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){zm(e)?(this.state=Mm.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case tm.NULL:this._err(hm.unexpectedNullCharacter),this.state=Mm.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(em);break;case tm.EOF:this._err(hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Mm.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===tm.SOLIDUS?(this.state=Mm.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Mm.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(om,!1)&&Xm(this.preprocessor.peek(om.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==wm.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ng,wm.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tg,wm.HTML)}clearBackToTableRowContext(){this.clearBackTo(eg,wm.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Pm.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Pm.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case wm.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case wm.SVG:if(Jm.has(r))return!1;break;case wm.MATHML:if(Km.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Vm)}hasInListItemScope(e){return this.hasInDynamicScope(e,Gm)}hasInButtonScope(e){return this.hasInDynamicScope(e,Wm)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case wm.HTML:if(Qm.has(t))return!0;if(Vm.has(t))return!1;break;case wm.SVG:if(Jm.has(t))return!1;break;case wm.MATHML:if(Km.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===wm.HTML)switch(this.tagIDs[t]){case e:return!0;case Pm.TABLE:case Pm.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===wm.HTML)switch(this.tagIDs[e]){case Pm.TBODY:case Pm.THEAD:case Pm.TFOOT:return!0;case Pm.TABLE:case Pm.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===wm.HTML)switch(this.tagIDs[t]){case e:return!0;case Pm.OPTION:case Pm.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&Hm.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&Ym.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&Ym.has(this.currentTagId);)this.pop()}}var og;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(og||(og={}));const sg={type:og.Marker};class ag{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=0;s[e.name,e.value])));let i=0;for(let o=0;or.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(sg)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:og.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:og.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(sg);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===og.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===og.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===og.Element&&t.element===e))}}const lg={createDocument:()=>({nodeName:"#document",mode:Fm.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};lg.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(lg.isTextNode(n))return void(n.value+=t)}lg.appendChild(e,lg.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&lg.isTextNode(r)?r.value+=t:lg.insertBefore(e,lg.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=(0,Zt.A)((0,Zt.A)({},e.sourceCodeLocation),t)}},ug="html",cg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],hg=[...cg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dg=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),pg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],fg=[...pg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function mg(e,t){return t.some((t=>e.startsWith(t)))}const gg="text/html",Og="application/xhtml+xml",Dg=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),bg=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:wm.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:wm.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:wm.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:wm.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:wm.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:wm.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:wm.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:wm.XML}],["xml:space",{prefix:"xml",name:"space",namespace:wm.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:wm.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:wm.XMLNS}]]),yg=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),vg=new Set([Pm.B,Pm.BIG,Pm.BLOCKQUOTE,Pm.BODY,Pm.BR,Pm.CENTER,Pm.CODE,Pm.DD,Pm.DIV,Pm.DL,Pm.DT,Pm.EM,Pm.EMBED,Pm.H1,Pm.H2,Pm.H3,Pm.H4,Pm.H5,Pm.H6,Pm.HEAD,Pm.HR,Pm.I,Pm.IMG,Pm.LI,Pm.LISTING,Pm.MENU,Pm.META,Pm.NOBR,Pm.OL,Pm.P,Pm.PRE,Pm.RUBY,Pm.S,Pm.SMALL,Pm.SPAN,Pm.STRONG,Pm.STRIKE,Pm.SUB,Pm.SUP,Pm.TABLE,Pm.TT,Pm.U,Pm.UL,Pm.VAR]);function Ag(e){for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Sg.INITIAL,this.originalInsertionMode=Sg.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=(0,Zt.A)((0,Zt.A)({},Tg),e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new Zm(this.options,this),this.activeFormattingElements=new ag(this.treeAdapter),this.fragmentContextID=n?Rm(this.treeAdapter.getTagName(n)):Pm.UNKNOWN,this._setContextModes(null!==n&&void 0!==n?n:this.document,this.fragmentContextID),this.openElements=new ig(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n=(0,Zt.A)((0,Zt.A)({},Tg),t);null!==e&&void 0!==e||(e=n.treeAdapter.createElement(_m.TEMPLATE,wm.HTML,[]));const r=n.treeAdapter.createElement("documentmock",wm.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===Pm.TEMPLATE&&i.tmplInsertionModeStack.unshift(Sg.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:xg,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===wm.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,wm.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Sg.TEXT}switchToPlaintextParsing(){this.insertionMode=Sg.TEXT,this.originalInsertionMode=Sg.IN_BODY,this.tokenizer.state=Lm.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===_m.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===wm.HTML)switch(this.fragmentContextID){case Pm.TITLE:case Pm.TEXTAREA:this.tokenizer.state=Lm.RCDATA;break;case Pm.STYLE:case Pm.XMP:case Pm.IFRAME:case Pm.NOEMBED:case Pm.NOFRAMES:case Pm.NOSCRIPT:this.tokenizer.state=Lm.RAWTEXT;break;case Pm.SCRIPT:this.tokenizer.state=Lm.SCRIPT_DATA;break;case Pm.PLAINTEXT:this.tokenizer.state=Lm.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&(0,Zt.A)((0,Zt.A)({},t),{},{startTag:t});this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!==t&&void 0!==t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,wm.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,wm.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(_m.HTML,wm.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Pm.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===pm.END_TAG&&r===t.tagName?{endTag:(0,Zt.A)({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Pm.SVG||this.treeAdapter.getTagName(t)!==_m.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==wm.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Pm.MGLYPH||e.tagID===Pm.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,wm.HTML))}_processToken(e){switch(e.type){case pm.CHARACTER:this.onCharacter(e);break;case pm.NULL_CHARACTER:this.onNullCharacter(e);break;case pm.COMMENT:this.onComment(e);break;case pm.DOCTYPE:this.onDoctype(e);break;case pm.START_TAG:this._processStartTag(e);break;case pm.END_TAG:this.onEndTag(e);break;case pm.EOF:this.onEof(e);break;case pm.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return kg(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===og.Marker||this.openElements.contains(e.element)));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Sg.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Pm.P),this.openElements.popUntilTagNamePopped(Pm.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Pm.TR:return void(this.insertionMode=Sg.IN_ROW);case Pm.TBODY:case Pm.THEAD:case Pm.TFOOT:return void(this.insertionMode=Sg.IN_TABLE_BODY);case Pm.CAPTION:return void(this.insertionMode=Sg.IN_CAPTION);case Pm.COLGROUP:return void(this.insertionMode=Sg.IN_COLUMN_GROUP);case Pm.TABLE:return void(this.insertionMode=Sg.IN_TABLE);case Pm.BODY:return void(this.insertionMode=Sg.IN_BODY);case Pm.FRAMESET:return void(this.insertionMode=Sg.IN_FRAMESET);case Pm.SELECT:return void this._resetInsertionModeForSelect(e);case Pm.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Pm.HTML:return void(this.insertionMode=this.headElement?Sg.AFTER_HEAD:Sg.BEFORE_HEAD);case Pm.TD:case Pm.TH:if(e>0)return void(this.insertionMode=Sg.IN_CELL);break;case Pm.HEAD:if(e>0)return void(this.insertionMode=Sg.IN_HEAD)}this.insertionMode=Sg.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Pm.TEMPLATE)break;if(e===Pm.TABLE)return void(this.insertionMode=Sg.IN_SELECT_IN_TABLE)}this.insertionMode=Sg.IN_SELECT}_isElementCausesFosterParenting(e){return wg.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Pm.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===wm.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Pm.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Im[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Sg.INITIAL:$g(this,e);break;case Sg.BEFORE_HTML:zg(this,e);break;case Sg.BEFORE_HEAD:Ug(this,e);break;case Sg.IN_HEAD:Xg(this,e);break;case Sg.IN_HEAD_NO_SCRIPT:Zg(this,e);break;case Sg.AFTER_HEAD:Hg(this,e);break;case Sg.IN_BODY:case Sg.IN_CAPTION:case Sg.IN_CELL:case Sg.IN_TEMPLATE:Gg(this,e);break;case Sg.TEXT:case Sg.IN_SELECT:case Sg.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Sg.IN_TABLE:case Sg.IN_TABLE_BODY:case Sg.IN_ROW:oO(this,e);break;case Sg.IN_TABLE_TEXT:cO(this,e);break;case Sg.IN_COLUMN_GROUP:fO(this,e);break;case Sg.AFTER_BODY:EO(this,e);break;case Sg.AFTER_AFTER_BODY:CO(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=em,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Sg.INITIAL:$g(this,e);break;case Sg.BEFORE_HTML:zg(this,e);break;case Sg.BEFORE_HEAD:Ug(this,e);break;case Sg.IN_HEAD:Xg(this,e);break;case Sg.IN_HEAD_NO_SCRIPT:Zg(this,e);break;case Sg.AFTER_HEAD:Hg(this,e);break;case Sg.TEXT:this._insertCharacters(e);break;case Sg.IN_TABLE:case Sg.IN_TABLE_BODY:case Sg.IN_ROW:oO(this,e);break;case Sg.IN_COLUMN_GROUP:fO(this,e);break;case Sg.AFTER_BODY:EO(this,e);break;case Sg.AFTER_AFTER_BODY:CO(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Mg(this,e);else switch(this.insertionMode){case Sg.INITIAL:case Sg.BEFORE_HTML:case Sg.BEFORE_HEAD:case Sg.IN_HEAD:case Sg.IN_HEAD_NO_SCRIPT:case Sg.AFTER_HEAD:case Sg.IN_BODY:case Sg.IN_TABLE:case Sg.IN_CAPTION:case Sg.IN_COLUMN_GROUP:case Sg.IN_TABLE_BODY:case Sg.IN_ROW:case Sg.IN_CELL:case Sg.IN_SELECT:case Sg.IN_SELECT_IN_TABLE:case Sg.IN_TEMPLATE:case Sg.IN_FRAMESET:case Sg.AFTER_FRAMESET:Mg(this,e);break;case Sg.IN_TABLE_TEXT:hO(this,e);break;case Sg.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Sg.AFTER_AFTER_BODY:case Sg.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Sg.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Fm.QUIRKS:function(e){if(e.name!==ug)return Fm.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Fm.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),dg.has(n))return Fm.QUIRKS;let e=null===t?hg:cg;if(mg(n,e))return Fm.QUIRKS;if(e=null===t?pg:fg,mg(n,e))return Fm.LIMITED_QUIRKS}return Fm.NO_QUIRKS}(t);(function(e){return e.name===ug&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,hm.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Sg.BEFORE_HTML}(this,e);break;case Sg.BEFORE_HEAD:case Sg.IN_HEAD:case Sg.IN_HEAD_NO_SCRIPT:case Sg.AFTER_HEAD:this._err(e,hm.misplacedDoctype);break;case Sg.IN_TABLE_TEXT:hO(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,hm.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Pm.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===Tm.COLOR||t===Tm.SIZE||t===Tm.FACE}))||vg.has(t)}(t))kO(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===wm.MATHML?Ag(t):r===wm.SVG&&(!function(e){const t=yg.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Rm(e.tagName))}(t),Eg(t)),Cg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Sg.INITIAL:$g(this,e);break;case Sg.BEFORE_HTML:!function(e,t){t.tagID===Pm.HTML?(e._insertElement(t,wm.HTML),e.insertionMode=Sg.BEFORE_HEAD):zg(e,t)}(this,e);break;case Sg.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.HEAD:e._insertElement(t,wm.HTML),e.headElement=e.openElements.current,e.insertionMode=Sg.IN_HEAD;break;default:Ug(e,t)}}(this,e);break;case Sg.IN_HEAD:jg(this,e);break;case Sg.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.BASEFONT:case Pm.BGSOUND:case Pm.HEAD:case Pm.LINK:case Pm.META:case Pm.NOFRAMES:case Pm.STYLE:jg(e,t);break;case Pm.NOSCRIPT:e._err(t,hm.nestedNoscriptInHead);break;default:Zg(e,t)}}(this,e);break;case Sg.AFTER_HEAD:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.BODY:e._insertElement(t,wm.HTML),e.framesetOk=!1,e.insertionMode=Sg.IN_BODY;break;case Pm.FRAMESET:e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_FRAMESET;break;case Pm.BASE:case Pm.BASEFONT:case Pm.BGSOUND:case Pm.LINK:case Pm.META:case Pm.NOFRAMES:case Pm.SCRIPT:case Pm.STYLE:case Pm.TEMPLATE:case Pm.TITLE:e._err(t,hm.abandonedHeadElementChild),e.openElements.push(e.headElement,Pm.HEAD),jg(e,t),e.openElements.remove(e.headElement);break;case Pm.HEAD:e._err(t,hm.misplacedStartTagForHeadElement);break;default:Hg(e,t)}}(this,e);break;case Sg.IN_BODY:tO(this,e);break;case Sg.IN_TABLE:sO(this,e);break;case Sg.IN_TABLE_TEXT:hO(this,e);break;case Sg.IN_CAPTION:!function(e,t){const n=t.tagID;dO.has(n)?e.openElements.hasInTableScope(Pm.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pm.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Sg.IN_TABLE,sO(e,t)):tO(e,t)}(this,e);break;case Sg.IN_COLUMN_GROUP:pO(this,e);break;case Sg.IN_TABLE_BODY:mO(this,e);break;case Sg.IN_ROW:OO(this,e);break;case Sg.IN_CELL:!function(e,t){const n=t.tagID;dO.has(n)?(e.openElements.hasInTableScope(Pm.TD)||e.openElements.hasInTableScope(Pm.TH))&&(e._closeTableCell(),OO(e,t)):tO(e,t)}(this,e);break;case Sg.IN_SELECT:bO(this,e);break;case Sg.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Pm.CAPTION||n===Pm.TABLE||n===Pm.TBODY||n===Pm.TFOOT||n===Pm.THEAD||n===Pm.TR||n===Pm.TD||n===Pm.TH?(e.openElements.popUntilTagNamePopped(Pm.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bO(e,t)}(this,e);break;case Sg.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Pm.BASE:case Pm.BASEFONT:case Pm.BGSOUND:case Pm.LINK:case Pm.META:case Pm.NOFRAMES:case Pm.SCRIPT:case Pm.STYLE:case Pm.TEMPLATE:case Pm.TITLE:jg(e,t);break;case Pm.CAPTION:case Pm.COLGROUP:case Pm.TBODY:case Pm.TFOOT:case Pm.THEAD:e.tmplInsertionModeStack[0]=Sg.IN_TABLE,e.insertionMode=Sg.IN_TABLE,sO(e,t);break;case Pm.COL:e.tmplInsertionModeStack[0]=Sg.IN_COLUMN_GROUP,e.insertionMode=Sg.IN_COLUMN_GROUP,pO(e,t);break;case Pm.TR:e.tmplInsertionModeStack[0]=Sg.IN_TABLE_BODY,e.insertionMode=Sg.IN_TABLE_BODY,mO(e,t);break;case Pm.TD:case Pm.TH:e.tmplInsertionModeStack[0]=Sg.IN_ROW,e.insertionMode=Sg.IN_ROW,OO(e,t);break;default:e.tmplInsertionModeStack[0]=Sg.IN_BODY,e.insertionMode=Sg.IN_BODY,tO(e,t)}}(this,e);break;case Sg.AFTER_BODY:!function(e,t){t.tagID===Pm.HTML?tO(e,t):EO(e,t)}(this,e);break;case Sg.IN_FRAMESET:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.FRAMESET:e._insertElement(t,wm.HTML);break;case Pm.FRAME:e._appendElement(t,wm.HTML),t.ackSelfClosing=!0;break;case Pm.NOFRAMES:jg(e,t)}}(this,e);break;case Sg.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.NOFRAMES:jg(e,t)}}(this,e);break;case Sg.AFTER_AFTER_BODY:!function(e,t){t.tagID===Pm.HTML?tO(e,t):CO(e,t)}(this,e);break;case Sg.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.NOFRAMES:jg(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Pm.P||t.tagID===Pm.BR)return kO(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===wm.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Sg.INITIAL:$g(this,e);break;case Sg.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Pm.HTML&&n!==Pm.HEAD&&n!==Pm.BODY&&n!==Pm.BR||zg(e,t)}(this,e);break;case Sg.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Pm.HEAD||n===Pm.BODY||n===Pm.HTML||n===Pm.BR?Ug(e,t):e._err(t,hm.endTagWithoutMatchingOpenElement)}(this,e);break;case Sg.IN_HEAD:!function(e,t){switch(t.tagID){case Pm.HEAD:e.openElements.pop(),e.insertionMode=Sg.AFTER_HEAD;break;case Pm.BODY:case Pm.BR:case Pm.HTML:Xg(e,t);break;case Pm.TEMPLATE:qg(e,t);break;default:e._err(t,hm.endTagWithoutMatchingOpenElement)}}(this,e);break;case Sg.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Pm.NOSCRIPT:e.openElements.pop(),e.insertionMode=Sg.IN_HEAD;break;case Pm.BR:Zg(e,t);break;default:e._err(t,hm.endTagWithoutMatchingOpenElement)}}(this,e);break;case Sg.AFTER_HEAD:!function(e,t){switch(t.tagID){case Pm.BODY:case Pm.HTML:case Pm.BR:Hg(e,t);break;case Pm.TEMPLATE:qg(e,t);break;default:e._err(t,hm.endTagWithoutMatchingOpenElement)}}(this,e);break;case Sg.IN_BODY:rO(this,e);break;case Sg.TEXT:!function(e,t){var n;t.tagID===Pm.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Sg.IN_TABLE:aO(this,e);break;case Sg.IN_TABLE_TEXT:hO(this,e);break;case Sg.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Pm.CAPTION:case Pm.TABLE:e.openElements.hasInTableScope(Pm.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pm.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Sg.IN_TABLE,n===Pm.TABLE&&aO(e,t));break;case Pm.BODY:case Pm.COL:case Pm.COLGROUP:case Pm.HTML:case Pm.TBODY:case Pm.TD:case Pm.TFOOT:case Pm.TH:case Pm.THEAD:case Pm.TR:break;default:rO(e,t)}}(this,e);break;case Sg.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Pm.COLGROUP:e.openElements.currentTagId===Pm.COLGROUP&&(e.openElements.pop(),e.insertionMode=Sg.IN_TABLE);break;case Pm.TEMPLATE:qg(e,t);break;case Pm.COL:break;default:fO(e,t)}}(this,e);break;case Sg.IN_TABLE_BODY:gO(this,e);break;case Sg.IN_ROW:DO(this,e);break;case Sg.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Pm.TD:case Pm.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Sg.IN_ROW);break;case Pm.TABLE:case Pm.TBODY:case Pm.TFOOT:case Pm.THEAD:case Pm.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),DO(e,t));break;case Pm.BODY:case Pm.CAPTION:case Pm.COL:case Pm.COLGROUP:case Pm.HTML:break;default:rO(e,t)}}(this,e);break;case Sg.IN_SELECT:yO(this,e);break;case Sg.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Pm.CAPTION||n===Pm.TABLE||n===Pm.TBODY||n===Pm.TFOOT||n===Pm.THEAD||n===Pm.TR||n===Pm.TD||n===Pm.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Pm.SELECT),e._resetInsertionMode(),e.onEndTag(t)):yO(e,t)}(this,e);break;case Sg.IN_TEMPLATE:!function(e,t){t.tagID===Pm.TEMPLATE&&qg(e,t)}(this,e);break;case Sg.AFTER_BODY:AO(this,e);break;case Sg.IN_FRAMESET:!function(e,t){t.tagID!==Pm.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Pm.FRAMESET||(e.insertionMode=Sg.AFTER_FRAMESET))}(this,e);break;case Sg.AFTER_FRAMESET:!function(e,t){t.tagID===Pm.HTML&&(e.insertionMode=Sg.AFTER_AFTER_FRAMESET)}(this,e);break;case Sg.AFTER_AFTER_BODY:CO(this,e)}}onEof(e){switch(this.insertionMode){case Sg.INITIAL:$g(this,e);break;case Sg.BEFORE_HTML:zg(this,e);break;case Sg.BEFORE_HEAD:Ug(this,e);break;case Sg.IN_HEAD:Xg(this,e);break;case Sg.IN_HEAD_NO_SCRIPT:Zg(this,e);break;case Sg.AFTER_HEAD:Hg(this,e);break;case Sg.IN_BODY:case Sg.IN_TABLE:case Sg.IN_CAPTION:case Sg.IN_COLUMN_GROUP:case Sg.IN_TABLE_BODY:case Sg.IN_ROW:case Sg.IN_CELL:case Sg.IN_SELECT:case Sg.IN_SELECT_IN_TABLE:iO(this,e);break;case Sg.TEXT:!function(e,t){e._err(t,hm.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Sg.IN_TABLE_TEXT:hO(this,e);break;case Sg.IN_TEMPLATE:vO(this,e);break;case Sg.AFTER_BODY:case Sg.IN_FRAMESET:case Sg.AFTER_FRAMESET:case Sg.AFTER_AFTER_BODY:case Sg.AFTER_AFTER_FRAMESET:Lg(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===tm.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Sg.IN_HEAD:case Sg.IN_HEAD_NO_SCRIPT:case Sg.AFTER_HEAD:case Sg.TEXT:case Sg.IN_COLUMN_GROUP:case Sg.IN_SELECT:case Sg.IN_SELECT_IN_TABLE:case Sg.IN_FRAMESET:case Sg.AFTER_FRAMESET:this._insertCharacters(e);break;case Sg.IN_BODY:case Sg.IN_CAPTION:case Sg.IN_CELL:case Sg.IN_TEMPLATE:case Sg.AFTER_BODY:case Sg.AFTER_AFTER_BODY:case Sg.AFTER_AFTER_FRAMESET:Vg(this,e);break;case Sg.IN_TABLE:case Sg.IN_TABLE_BODY:case Sg.IN_ROW:oO(this,e);break;case Sg.IN_TABLE_TEXT:uO(this,e)}}}function _g(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):nO(e,t),n}function Pg(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Bg(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=Rg(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Rg(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Ng(e,t,n){const r=Rm(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===Pm.TEMPLATE&&i===wm.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Ig(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Qg(e,t){for(let n=0;n<8;n++){const n=_g(e,t);if(!n)break;const r=Pg(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Bg(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Ng(e,o,i),Ig(e,r,n)}}function Mg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Lg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function $g(e,t){e._err(t,hm.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Fm.QUIRKS),e.insertionMode=Sg.BEFORE_HTML,e._processToken(t)}function zg(e,t){e._insertFakeRootElement(),e.insertionMode=Sg.BEFORE_HEAD,e._processToken(t)}function Ug(e,t){e._insertFakeElement(_m.HEAD,Pm.HEAD),e.headElement=e.openElements.current,e.insertionMode=Sg.IN_HEAD,e._processToken(t)}function jg(e,t){switch(t.tagID){case Pm.HTML:tO(e,t);break;case Pm.BASE:case Pm.BASEFONT:case Pm.BGSOUND:case Pm.LINK:case Pm.META:e._appendElement(t,wm.HTML),t.ackSelfClosing=!0;break;case Pm.TITLE:e._switchToTextParsing(t,Lm.RCDATA);break;case Pm.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Lm.RAWTEXT):(e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_HEAD_NO_SCRIPT);break;case Pm.NOFRAMES:case Pm.STYLE:e._switchToTextParsing(t,Lm.RAWTEXT);break;case Pm.SCRIPT:e._switchToTextParsing(t,Lm.SCRIPT_DATA);break;case Pm.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Sg.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Sg.IN_TEMPLATE);break;case Pm.HEAD:e._err(t,hm.misplacedStartTagForHeadElement);break;default:Xg(e,t)}}function qg(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Pm.TEMPLATE&&e._err(t,hm.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Pm.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,hm.endTagWithoutMatchingOpenElement)}function Xg(e,t){e.openElements.pop(),e.insertionMode=Sg.AFTER_HEAD,e._processToken(t)}function Zg(e,t){const n=t.type===pm.EOF?hm.openElementsLeftAfterEof:hm.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Sg.IN_HEAD,e._processToken(t)}function Hg(e,t){e._insertFakeElement(_m.BODY,Pm.BODY),e.insertionMode=Sg.IN_BODY,Yg(e,t)}function Yg(e,t){switch(t.type){case pm.CHARACTER:Gg(e,t);break;case pm.WHITESPACE_CHARACTER:Vg(e,t);break;case pm.COMMENT:Mg(e,t);break;case pm.START_TAG:tO(e,t);break;case pm.END_TAG:rO(e,t);break;case pm.EOF:iO(e,t)}}function Vg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Wg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wm.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Kg(e){const t=fm(e,Tm.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Jg(e,t){e._switchToTextParsing(t,Lm.RAWTEXT)}function eO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML)}function tO(e,t){switch(t.tagID){case Pm.I:case Pm.S:case Pm.B:case Pm.U:case Pm.EM:case Pm.TT:case Pm.BIG:case Pm.CODE:case Pm.FONT:case Pm.SMALL:case Pm.STRIKE:case Pm.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Pm.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_m.A);n&&(Qg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Pm.H1:case Pm.H2:case Pm.H3:case Pm.H4:case Pm.H5:case Pm.H6:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&Qm.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.P:case Pm.DL:case Pm.OL:case Pm.UL:case Pm.DIV:case Pm.DIR:case Pm.NAV:case Pm.MAIN:case Pm.MENU:case Pm.ASIDE:case Pm.CENTER:case Pm.FIGURE:case Pm.FOOTER:case Pm.HEADER:case Pm.HGROUP:case Pm.DIALOG:case Pm.DETAILS:case Pm.ADDRESS:case Pm.ARTICLE:case Pm.SEARCH:case Pm.SECTION:case Pm.SUMMARY:case Pm.FIELDSET:case Pm.BLOCKQUOTE:case Pm.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.LI:case Pm.DD:case Pm.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===Pm.LI&&t===Pm.LI||(n===Pm.DD||n===Pm.DT)&&(t===Pm.DD||t===Pm.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Pm.ADDRESS&&t!==Pm.DIV&&t!==Pm.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.BR:case Pm.IMG:case Pm.WBR:case Pm.AREA:case Pm.EMBED:case Pm.KEYGEN:Wg(e,t);break;case Pm.HR:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._appendElement(t,wm.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Pm.RB:case Pm.RTC:!function(e,t){e.openElements.hasInScope(Pm.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.RT:case Pm.RP:!function(e,t){e.openElements.hasInScope(Pm.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Pm.RTC),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.PRE:case Pm.LISTING:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Pm.XMP:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Lm.RAWTEXT)}(e,t);break;case Pm.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Eg(t),Cg(t),t.selfClosing?e._appendElement(t,wm.SVG):e._insertElement(t,wm.SVG),t.ackSelfClosing=!0}(e,t);break;case Pm.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Pm.BASE:case Pm.LINK:case Pm.META:case Pm.STYLE:case Pm.TITLE:case Pm.SCRIPT:case Pm.BGSOUND:case Pm.BASEFONT:case Pm.TEMPLATE:jg(e,t);break;case Pm.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Pm.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Pm.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Pm.NOBR)&&(Qg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,wm.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Pm.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ag(t),Cg(t),t.selfClosing?e._appendElement(t,wm.MATHML):e._insertElement(t,wm.MATHML),t.ackSelfClosing=!0}(e,t);break;case Pm.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Fm.QUIRKS&&e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML),e.framesetOk=!1,e.insertionMode=Sg.IN_TABLE}(e,t);break;case Pm.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wm.HTML),Kg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Pm.PARAM:case Pm.TRACK:case Pm.SOURCE:!function(e,t){e._appendElement(t,wm.HTML),t.ackSelfClosing=!0}(e,t);break;case Pm.IMAGE:!function(e,t){t.tagName=_m.IMG,t.tagID=Pm.IMG,Wg(e,t)}(e,t);break;case Pm.BUTTON:!function(e,t){e.openElements.hasInScope(Pm.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pm.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML),e.framesetOk=!1}(e,t);break;case Pm.APPLET:case Pm.OBJECT:case Pm.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Pm.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Lm.RAWTEXT)}(e,t);break;case Pm.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Sg.IN_TABLE||e.insertionMode===Sg.IN_CAPTION||e.insertionMode===Sg.IN_TABLE_BODY||e.insertionMode===Sg.IN_ROW||e.insertionMode===Sg.IN_CELL?Sg.IN_SELECT_IN_TABLE:Sg.IN_SELECT}(e,t);break;case Pm.OPTION:case Pm.OPTGROUP:!function(e,t){e.openElements.currentTagId===Pm.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,wm.HTML)}(e,t);break;case Pm.NOEMBED:case Pm.NOFRAMES:Jg(e,t);break;case Pm.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_FRAMESET)}(e,t);break;case Pm.TEXTAREA:!function(e,t){e._insertElement(t,wm.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Lm.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Sg.TEXT}(e,t);break;case Pm.NOSCRIPT:e.options.scriptingEnabled?Jg(e,t):eO(e,t);break;case Pm.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Pm.P)&&e._closePElement(),e._insertElement(t,wm.HTML),e.tokenizer.state=Lm.PLAINTEXT}(e,t);break;case Pm.COL:case Pm.TH:case Pm.TD:case Pm.TR:case Pm.HEAD:case Pm.FRAME:case Pm.TBODY:case Pm.TFOOT:case Pm.THEAD:case Pm.CAPTION:case Pm.COLGROUP:break;default:eO(e,t)}}function nO(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==Pm.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,o))break}}function rO(e,t){switch(t.tagID){case Pm.A:case Pm.B:case Pm.I:case Pm.S:case Pm.U:case Pm.EM:case Pm.TT:case Pm.BIG:case Pm.CODE:case Pm.FONT:case Pm.NOBR:case Pm.SMALL:case Pm.STRIKE:case Pm.STRONG:Qg(e,t);break;case Pm.P:!function(e){e.openElements.hasInButtonScope(Pm.P)||e._insertFakeElement(_m.P,Pm.P),e._closePElement()}(e);break;case Pm.DL:case Pm.UL:case Pm.OL:case Pm.DIR:case Pm.DIV:case Pm.NAV:case Pm.PRE:case Pm.MAIN:case Pm.MENU:case Pm.ASIDE:case Pm.BUTTON:case Pm.CENTER:case Pm.FIGURE:case Pm.FOOTER:case Pm.HEADER:case Pm.HGROUP:case Pm.DIALOG:case Pm.ADDRESS:case Pm.ARTICLE:case Pm.DETAILS:case Pm.SEARCH:case Pm.SECTION:case Pm.SUMMARY:case Pm.LISTING:case Pm.FIELDSET:case Pm.BLOCKQUOTE:case Pm.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Pm.LI:!function(e){e.openElements.hasInListItemScope(Pm.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Pm.LI),e.openElements.popUntilTagNamePopped(Pm.LI))}(e);break;case Pm.DD:case Pm.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Pm.H1:case Pm.H2:case Pm.H3:case Pm.H4:case Pm.H5:case Pm.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Pm.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_m.BR,Pm.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Pm.BODY:!function(e,t){if(e.openElements.hasInScope(Pm.BODY)&&(e.insertionMode=Sg.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Pm.HTML:!function(e,t){e.openElements.hasInScope(Pm.BODY)&&(e.insertionMode=Sg.AFTER_BODY,AO(e,t))}(e,t);break;case Pm.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Pm.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Pm.FORM):n&&e.openElements.remove(n))}(e);break;case Pm.APPLET:case Pm.OBJECT:case Pm.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Pm.TEMPLATE:qg(e,t);break;default:nO(e,t)}}function iO(e,t){e.tmplInsertionModeStack.length>0?vO(e,t):Lg(e,t)}function oO(e,t){if(void 0!==e.openElements.currentTagId&&wg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Sg.IN_TABLE_TEXT,t.type){case pm.CHARACTER:cO(e,t);break;case pm.WHITESPACE_CHARACTER:uO(e,t)}else lO(e,t)}function sO(e,t){switch(t.tagID){case Pm.TD:case Pm.TH:case Pm.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_m.TBODY,Pm.TBODY),e.insertionMode=Sg.IN_TABLE_BODY,mO(e,t)}(e,t);break;case Pm.STYLE:case Pm.SCRIPT:case Pm.TEMPLATE:jg(e,t);break;case Pm.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_m.COLGROUP,Pm.COLGROUP),e.insertionMode=Sg.IN_COLUMN_GROUP,pO(e,t)}(e,t);break;case Pm.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,wm.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Pm.TABLE:!function(e,t){e.openElements.hasInTableScope(Pm.TABLE)&&(e.openElements.popUntilTagNamePopped(Pm.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Pm.TBODY:case Pm.TFOOT:case Pm.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_TABLE_BODY}(e,t);break;case Pm.INPUT:!function(e,t){Kg(t)?e._appendElement(t,wm.HTML):lO(e,t),t.ackSelfClosing=!0}(e,t);break;case Pm.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_CAPTION}(e,t);break;case Pm.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wm.HTML),e.insertionMode=Sg.IN_COLUMN_GROUP}(e,t);break;default:lO(e,t)}}function aO(e,t){switch(t.tagID){case Pm.TABLE:e.openElements.hasInTableScope(Pm.TABLE)&&(e.openElements.popUntilTagNamePopped(Pm.TABLE),e._resetInsertionMode());break;case Pm.TEMPLATE:qg(e,t);break;case Pm.BODY:case Pm.CAPTION:case Pm.COL:case Pm.COLGROUP:case Pm.HTML:case Pm.TBODY:case Pm.TD:case Pm.TFOOT:case Pm.TH:case Pm.THEAD:case Pm.TR:break;default:lO(e,t)}}function lO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Yg(e,t),e.fosterParentingEnabled=n}function uO(e,t){e.pendingCharacterTokens.push(t)}function cO(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hO(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===Pm.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Pm.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Pm.OPTGROUP&&e.openElements.pop();break;case Pm.OPTION:e.openElements.currentTagId===Pm.OPTION&&e.openElements.pop();break;case Pm.SELECT:e.openElements.hasInSelectScope(Pm.SELECT)&&(e.openElements.popUntilTagNamePopped(Pm.SELECT),e._resetInsertionMode());break;case Pm.TEMPLATE:qg(e,t)}}function vO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Pm.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Lg(e,t)}function AO(e,t){var n;if(t.tagID===Pm.HTML){if(e.fragmentContext||(e.insertionMode=Sg.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Pm.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else EO(e,t)}function EO(e,t){e.insertionMode=Sg.IN_BODY,Yg(e,t)}function CO(e,t){e.insertionMode=Sg.IN_BODY,Yg(e,t)}function kO(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==wm.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),String.prototype.codePointAt;function SO(e,t){return function(n){let r,i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}new Map([[34,"""],[38,"&"],[160," "]]),new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]),new Set([_m.AREA,_m.BASE,_m.BASEFONT,_m.BGSOUND,_m.BR,_m.COL,_m.EMBED,_m.FRAME,_m.HR,_m.IMG,_m.INPUT,_m.KEYGEN,_m.LINK,_m.META,_m.PARAM,_m.SOURCE,_m.TRACK,_m.WBR]);const xO=TO("end"),wO=TO("start");function TO(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}const FO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_O=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),PO={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function BO(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Op("type",{handlers:{root:NO,element:IO,text:QO,comment:$O,doctype:MO,raw:zO},unknown:UO}),i={parser:n?new Fg(PO):Fg.getFragmentParser(void 0,PO),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),jO(i,wO());const o=function(e,t){const n=t||{};return lf({file:n.file||void 0,location:!1,schema:"svg"===n.space?ed:Jh,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&ph(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function RO(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:pm.CHARACTER,chars:e.value,location:XO(e)};jO(t,wO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function MO(e,t){const n={type:pm.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:XO(e)};jO(t,wO(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function LO(e,t){t.stitches=!0;const n=function(e){return Vp("children"in e?(0,Zt.A)((0,Zt.A)({},e),{},{children:[]}):e)}(e);if("children"in e&&"children"in n){const r=BO({type:"root",children:e.children},t.options);n.children=r.children}$O({type:"comment",value:{stitch:n}},t)}function $O(e,t){const n=e.value,r={type:pm.COMMENT,data:n,location:XO(e)};jO(t,wO(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function zO(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,qO(t,wO(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(FO,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function UO(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw _O.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}LO(n,t)}function jO(e,t){qO(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Lm.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function qO(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XO(e){const t=wO(e)||{line:void 0,column:void 0,offset:void 0},n=xO(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function ZO(e){return function(t,n){return BO(t,(0,Zt.A)((0,Zt.A)({},e),{},{file:n}))}}const HO=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC4\uDEFC-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,YO=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC4\uDEFC-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,VO={};function GO(e,t){return((t||VO).jsx?YO:HO).test(e)}const WO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var KO=n(9004);function JO(e){return e&&"object"===typeof e?"position"in e||"type"in e?tD(e.position):"start"in e||"end"in e?tD(e):"line"in e||"column"in e?eD(e):"":""}function eD(e){return nD(e&&e.line)+":"+nD(e&&e.column)}function tD(e){return eD(e&&e.start)+"-"+eD(e&&e.end)}function nD(e){return e&&"number"===typeof e?e:1}class rD 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}:(0,Zt.A)({},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=JO(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}}rD.prototype.file="",rD.prototype.name="",rD.prototype.reason="",rD.prototype.message="",rD.prototype.stack="",rD.prototype.column=void 0,rD.prototype.line=void 0,rD.prototype.ancestors=void 0,rD.prototype.cause=void 0,rD.prototype.fatal=void 0,rD.prototype.place=void 0,rD.prototype.ruleId=void 0,rD.prototype.source=void 0;const iD={}.hasOwnProperty,oD=new Map,sD=/[A-Z]/g,aD=new Set(["table","tbody","thead","tfoot","tr"]),lD=new Set(["td","th"]),uD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cD(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=wO(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ed:Jh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=hD(i,e,void 0);return o&&"string"!==typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function hD(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ed,e.schema=i);e.ancestors.push(t);const o=gD(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&iD.call(t.properties,i)){const o=mD(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"===typeof s&&lD.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=fD(e,t);aD.has(t.tagName)&&(a=a.filter((function(e){return"string"!==typeof e||!up(e)})));return dD(e,s,o,t),pD(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}OD(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=ed,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:gD(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else OD(e,t.position);else{const i=r.name;let o;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else OD(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=fD(e,t);return dD(e,s,o,t),pD(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);OD(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return pD(r,fD(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function dD(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function pD(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function fD(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:oD;for(;++ri?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);s0?(kD(e,e.length,0,t),e):t}class xD{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&wD(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),wD(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),wD(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF])/),ZD=HD(/\s/);function HD(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function YD(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(qD(r))return e.enter(n),s(r);return t(r)};function s(r){return qD(r)&&o++o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function D(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},WD={tokenize:function(e,t,n){return YD(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const KD={partial:!0,tokenize:function(e,t,n){return function(t){return qD(t)?YD(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||UD(e)?t(e):n(e)}}};const JD={resolve:function(e){return TD(e),e},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):UD(t)?e.check(eb,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}}},eb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),YD(e,i,"linePrefix")};function i(i){if(null===i||UD(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)}}};const tb={tokenize:function(e){const t=this,n=e.attempt(KD,(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,YD(e,e.attempt(this.parser.constructs.flow,r,e.attempt(JD,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 nb={resolveAll:sb()},rb=ob("string"),ib=ob("text");function ob(e){return{resolveAll:sb("text"===e?ab:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(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 l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i=3&&(null===o||UD(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),qD(t)?YD(e,o,"whitespace")(t):o(t))}}};const ub={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(KD,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,YD(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!qD(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(hb,t,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,YD(e,e.attempt(ub,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},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:LD(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(lb,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return LD(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"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(KD,r.interrupt?n:u,e.attempt(cb,h,c))}function u(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function c(t){return qD(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)}}},cb={partial:!0,tokenize:function(e,t,n){const r=this;return YD(e,(function(e){const i=r.events[r.events.length-1];return!qD(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},hb={partial:!0,tokenize:function(e,t,n){const r=this;return YD(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)}};const db={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(qD(t))return YD(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(db,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},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 qD(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function pb(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=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||MD(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"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||UD(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return c||null!==i&&41!==i&&!jD(i)?c999||null===h||91===h||93===h&&!a||94===h&&!l&&"_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):UD(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||UD(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!qD(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function mb(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),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):UD(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),YD(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||UD(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function gb(e,t){let n;return function r(i){if(UD(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(qD(i))return YD(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function Ob(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Db={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return fb.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Ob(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 jD(t)?gb(e,a)(t):a(t)}function a(t){return pb(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(bb,u,u)(t)}function u(t){return qD(t)?YD(e,c,"whitespace")(t):c(t)}function c(o){return null===o||UD(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},bb={partial:!0,tokenize:function(e,t,n){return function(t){return jD(t)?gb(e,r)(t):n(t)};function r(t){return mb(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return qD(t)?YD(e,o,"whitespace")(t):o(t)}function o(e){return null===e||UD(e)?t(e):n(e)}}};const yb={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),YD(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):UD(t)?e.attempt(vb,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||UD(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},vb={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):UD(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):YD(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):UD(e)?i(e):n(e)}}};const Ab={name:"headingAtx",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"},kD(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},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||jD(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||UD(n)?(e.exit("atxHeading"),t(n)):qD(n)?YD(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||jD(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const Eb={name:"setextUnderline",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:(0,Zt.A)({},e[n][1].start),end:(0,Zt.A)({},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=(0,Zt.A)({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e},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"),qD(t)?YD(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||UD(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Cb=["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"],kb=["pre","script","style","textarea"],Sb={concrete:!0,name:"htmlFlow",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},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:R):ND(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function c(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,d):ND(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:S:d):n(i)}function p(t){return ND(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||jD(a)){const l=47===a,u=s.toLowerCase();return l||o||!kb.includes(u)?Cb.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):S(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):S(a))}return 45===a||ID(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:S):n(i)}function g(t){return qD(t)?(e.consume(t),g):C(t)}function O(t){return 47===t?(e.consume(t),C):58===t||95===t||ND(t)?(e.consume(t),D):qD(t)?(e.consume(t),O):C(t)}function D(t){return 45===t||46===t||58===t||95===t||ID(t)?(e.consume(t),D):b(t)}function b(t){return 61===t?(e.consume(t),y):qD(t)?(e.consume(t),b):O(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):qD(t)?(e.consume(t),y):A(t)}function v(t){return t===l?(e.consume(t),l=null,E):null===t||UD(t)?n(t):(e.consume(t),v)}function A(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||jD(t)?b(t):(e.consume(t),A)}function E(e){return 47===e||62===e||qD(e)?O(e):n(e)}function C(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||UD(t)?S(t):qD(t)?(e.consume(t),k):n(t)}function S(t){return 45===t&&2===i?(e.consume(t),F):60===t&&1===i?(e.consume(t),_):62===t&&4===i?(e.consume(t),N):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),B):!UD(t)||6!==i&&7!==i?null===t||UD(t)?(e.exit("htmlFlowData"),x(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(xb,I,x)(t))}function x(t){return e.check(wb,w,I)(t)}function w(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||UD(t)?x(t):(e.enter("htmlFlowData"),S(t))}function F(t){return 45===t?(e.consume(t),R):S(t)}function _(t){return 47===t?(e.consume(t),s="",P):S(t)}function P(t){if(62===t){const n=s.toLowerCase();return kb.includes(n)?(e.consume(t),N):S(t)}return ND(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),P):S(t)}function B(t){return 93===t?(e.consume(t),R):S(t)}function R(t){return 62===t?(e.consume(t),N):45===t&&2===i?(e.consume(t),R):S(t)}function N(t){return null===t||UD(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),N)}function I(n){return e.exit("htmlFlow"),t(n)}}},xb={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(KD,t,n)}}},wb={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(UD(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)}}};const Tb={partial:!0,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)}}},Fb={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),qD(t)?YD(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=a?(e.exit("codeFencedFenceSequence"),qD(t)?YD(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||UD(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};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"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),qD(t)?YD(e,u,"whitespace")(t):u(t))}function u(n){return null===n||UD(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Tb,p,D)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||UD(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):qD(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),YD(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),c)}function h(t){return null===t||UD(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||UD(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,D,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&qD(t)?YD(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||UD(t)?e.check(Tb,p,D)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||UD(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function D(n){return e.exit("codeFenced"),t(n)}}};var _b=n(3789);const Pb={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"),l):(e.enter("characterReferenceValue"),i=31,o=ID,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=$D,u):(e.enter("characterReferenceValue"),i=7,o=LD,u(t))}function u(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==ID||(0,_b.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const h=(0,Zt.A)({},e[n][1].end),d=(0,Zt.A)({},e[c][1].start);jb(h,-a),jb(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:(0,Zt.A)({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:(0,Zt.A)({},e[c][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:(0,Zt.A)({},e[n][1].end),end:(0,Zt.A)({},e[c][1].start)},r={type:a>1?"strong":"emphasis",start:(0,Zt.A)({},o.start),end:(0,Zt.A)({},s.end)},e[n][1].end=(0,Zt.A)({},o.start),e[c][1].start=(0,Zt.A)({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=SD(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=SD(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=SD(l,Nb(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=SD(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=SD(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,kD(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c-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 f(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(){let e;for(;r._index13&&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 ay=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ly(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return sy(n.slice(t?2:1),t?16:10)}return(0,_b.s)(n)||e}const uy={}.hasOwnProperty;function cy(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(te),autolinkProtocol:k,autolinkEmail:k,atxHeading:o(W),blockQuote:o(Z),characterEscape:k,characterReference:k,codeFenced:o(H),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(H,s),codeText:o(Y,s),codeTextData:k,data:k,codeFlowValue:k,definition:o(V),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(G),hardBreakEscape:o(K),hardBreakTrailing:o(K),htmlFlow:o(J,s),htmlFlowData:k,htmlText:o(J,s),htmlTextData:k,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,h),listUnordered:o(ne),paragraph:o(ie),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(W),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:X,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,characterReference:j,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:S,codeIndented:l(O),codeText:l(_),codeTextData:S,data:S,definition:l(),definitionDestinationString:y,definitionLabelString:D,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(w),hardBreakTrailing:l(w),htmlFlow:l(T),htmlFlowData:S,htmlText:l(F),htmlTextData:S,image:l(B),label:N,labelText:R,lineEnding:x,link:l(P),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:$,resourceDestinationString:I,resourceTitleString:Q,resource:M,setextHeading:l(C),setextHeadingLineSequence:E,setextHeadingText:A,strong:l(),thematicBreak:l()}};dy(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},l=[];let h=-1;for(;++h0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||fy).call(o,void 0,e[0])}for(r.position={start:hy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:hy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Oy(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Dy(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function by(e,t){if(null==e)return{};var n,r,i=Qt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r1:t}function Ay(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ey(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ey(t.slice(i),i>0,!1)),o.join("")}function Ey(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Cy={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=gy(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yy(e,t);const i={src:gy(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:gy(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yy(e,t);const i={href:gy(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:gy(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=wO(t.children[1]),s=xO(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a0&&n.push({type:"text",value:"\n"}),n}function By(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ry(e,t){const n=function(e,t){const n=t||wy,r=new Map,i=new Map,o=new Map,s=(0,Zt.A)((0,Zt.A)({},Cy),n.handlers),a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&h.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,c);"string"===typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:(0,Zt.A)((0,Zt.A)({},Vp(s)),{},{id:"footnote-label"}),children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Ny(e,t){return e&&"run"in e?async function(n,r){const i=Ry(n,(0,Zt.A)({file:r},t));await e.run(i,r)}:function(n,r){return Ry(n,(0,Zt.A)({file:r},e||t))}}function Iy(e){if(e)throw e}var Qy=n(1886);function My(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 Ly(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?l-1:0),c=1;ci.length;let u;l&&i.push(o);try{u=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(u&&u.then&&"function"===typeof u.then?u.then(s,o):u instanceof Error?o(u):s(u))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;oe.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(zy(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){zy(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(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i2){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=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,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}(e)},sep:"/"};function zy(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Uy={cwd:function(){return"/"}};function jy(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function qy(e){if("string"===typeof e)e=new URL(e);else if(!jy(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(;++n1?r-1:0),o=1;o0){let[r,...o]=n;const s=t[i][1];My(s)&&My(r)&&(r=Qy(!0,s,r)),t[i]=[e,r,...o]}}}}const Jy=(new Ky).freeze();function ev(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function tv(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function nv(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 rv(e){if(!My(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function iv(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ov(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Zy(e)}const sv=[],av={allowDangerousHtml:!0},lv=/^(https?|ircs?|mailto|xmpp)$/i,uv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cv(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||sv,l=e.remarkPlugins||sv,u=e.remarkRehypeOptions?(0,Zt.A)((0,Zt.A)({},e.remarkRehypeOptions),av):av,c=e.skipHtml,h=e.unwrapDisallowed,d=e.urlTransform||hv,p=Jy().use(my).use(l).use(Ny,u).use(a),f=new Zy;"string"===typeof r&&(f.value=r);for(const O of uv)Object.hasOwn(e,O.from)&&(O.from,O.to&&O.to,O.id);const m=p.parse(f);let g=p.runSync(m,f);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),ph(g,(function(e,r,i){if("raw"===e.type&&i&&"number"===typeof r)return c?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in yD)if(Object.hasOwn(yD,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=yD[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&n&&"number"===typeof r&&(o=!n(e,r,i)),o&&i&&"number"===typeof r)return h&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}})),cD(g,{Fragment:Mt.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Mt.jsx,jsxs:Mt.jsxs,passKeys:!0,passNode:!0})}function hv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||lv.test(e.slice(0,t))?e:""}function dv(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function pv(e,t,n){const r=ih((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&h.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?h.push(...o):o&&h.push(o),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(a\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF]))([\+\x2D\.0-9A-Z_a-z]+)@([\x2D0-9A-Z_a-z]+(?:\.[\x2D0-9A-Z_a-z]+)+)/g,Sv]],{ignore:["link","linkReference"]})}function kv(e,t,n,r,i){let o="";if(!xv(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=dv(e,"(");let o=dv(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function Sv(e,t,n,r){return!(!xv(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function xv(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ZD(n)||XD(n))&&(!t||47!==n)}function wv(){this.buffer()}function Tv(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fv(){this.buffer()}function _v(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Pv(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ob(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bv(e){this.exit(e)}function Rv(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ob(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Nv(e){this.exit(e)}function Iv(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function Qv(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),l=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?Lv:Mv)));return a(),s},footnoteReference:Iv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Mv(e,t,n){return 0===t?e:Lv(e,t,n)}function Lv(e,t,n){return(n?"":" ")+e}Iv.peek=function(){return"["};const $v=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function zv(e){this.enter({type:"delete",children:[]},e)}function Uv(e){this.exit(e)}function jv(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,(0,Zt.A)((0,Zt.A)({},i.current()),{},{before:s,after:"~"})),s+=i.move("~~"),o(),s}function qv(e){return e.length}function Xv(e){return null===e||void 0===e?"":String(e)}function Zv(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Hv(e,t,n){return">"+(n?"":" ")+e}function Yv(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r"},l.current()))),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,(0,Zt.A)({before:u,after:e.title?" ":")"},l.current())))),a(),e.title&&(a=n.enter("title".concat(o)),u+=l.move(" "+i),u+=l.move(n.safe(e.title,(0,Zt.A)({before:u,after:i},l.current()))),u+=l.move(i),a()),u+=l.move(")"),s(),u}function rA(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,(0,Zt.A)({before:l,after:"]"},a.current()));l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),(0,Zt.A)({before:l,after:"]"},a.current()));return s(),n.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function iA(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\u007F]/.test(e.url))}function sA(e,t,n,r){const i=Wv(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(oA(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,(0,Zt.A)({before:r,after:">"},s.current()))),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,(0,Zt.A)({before:u,after:"]("},s.current()))),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,(0,Zt.A)({before:u,after:">"},s.current()))),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,(0,Zt.A)({before:u,after:e.title?" ":")"},s.current())))),l(),e.title&&(l=n.enter("title".concat(o)),u+=s.move(" "+i),u+=s.move(n.safe(e.title,(0,Zt.A)({before:u,after:i},s.current()))),u+=s.move(i),l()),u+=s.move(")"),a(),u}function aA(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,(0,Zt.A)({before:l,after:"]"},a.current()));l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),(0,Zt.A)({before:l,after:"]"},a.current()));return s(),n.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function lA(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 uA(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}jv.peek=function(){return"~"},eA.peek=function(e,t,n){return n.options.emphasis||"*"},tA.peek=function(){return"<"},nA.peek=function(){return"!"},rA.peek=function(){return"!"},iA.peek=function(){return"`"},sA.peek=function(e,t,n){return oA(e,n)?"<":"["},aA.peek=function(){return"["};const cA=ih(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hA(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),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,(0,Zt.A)({after:i,before:a},s.current())));const u=l.charCodeAt(0),c=Jv(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Kv(u)+l.slice(1));const h=l.charCodeAt(l.length-1),d=Jv(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+Kv(h));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},a+l+p}hA.peek=function(e,t,n){return n.options.strong||"*"};const dA={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()),Hv);return i(),s},break:Vv,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(function(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))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,Gv);return e(),t}const a=n.createTracker(r),l=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)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const t=n.enter("codeFencedLang".concat(s));c+=a.move(n.safe(e.lang,(0,Zt.A)({before:c,after:" ",encode:["`"]},a.current()))),t()}if(e.lang&&e.meta){const t=n.enter("codeFencedMeta".concat(s));c+=a.move(" "),c+=a.move(n.safe(e.meta,(0,Zt.A)({before:c,after:"\n",encode:["`"]},a.current()))),t()}return c+=a.move("\n"),o&&(c+=a.move(o+"\n")),c+=a.move(l),u(),c},definition:function(e,t,n,r){const i=Wv(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),(0,Zt.A)({before:u,after:"]"},l.current()))),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,(0,Zt.A)({before:u,after:">"},l.current()))),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,(0,Zt.A)({before:u,after:e.title?" ":"\n"},l.current())))),a(),e.title&&(a=n.enter("title".concat(o)),u+=l.move(" "+i),u+=l.move(n.safe(e.title,(0,Zt.A)({before:u,after:i},l.current()))),u+=l.move(i),a()),s(),u},emphasis:eA,hardBreak:Vv,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return ph(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ch})),Boolean((!e.depth||e.depth<3)&&AD(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,(0,Zt.A)((0,Zt.A)({},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"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,(0,Zt.A)({before:"# ",after:"\n"},o.current()));return/^[\t ]/.test(u)&&(u=Kv(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u},html:tA,image:nA,imageReference:rA,inlineCode:iA,link:sA,linkReference:aA,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):lA(n);const a=e.ordered?"."===s?")":".":function(e){const t=lA(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 l=!(!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]||(l=!0),uA(n)===s&&t){let t=-1;for(;++t-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 l=n.enter("listItem"),u=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 l(),u},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 cA(e)}));return(i?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:hA,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(uA(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}};function pA(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function fA(e){this.exit(e),this.data.inTable=void 0}function mA(e){this.enter({type:"tableRow",children:[]},e)}function gA(e){this.exit(e)}function OA(e){this.enter({type:"tableCell",children:[]},e)}function DA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bA(e,t){return"|"===t?t:e}function yA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=dA.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++iu&&(u=e[c].length);++ol[o])&&(l[o]=e)}t.push(s)}s[c]=t,a[c]=r}let h=-1;if("object"===typeof r&&"length"in r)for(;++hl[h]&&(l[h]=i),p[h]=i),d[h]=s}s.splice(1,0,d),a.splice(1,0,p),c=-1;const f=[];for(;++c0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}PA[43]=_A,PA[45]=_A,PA[46]=_A,PA[95]=_A,PA[72]=[_A,FA],PA[104]=[_A,FA],PA[87]=[_A,TA],PA[119]=[_A,TA];const LA={tokenize:function(e,t,n){const r=this;return YD(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function $A(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=Ob(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function zA(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function UA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||jD(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Ob(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return jD(a)||(o=!0),s++,e.consume(a),92===a?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function jA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!s||null===t||91===t||jD(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Ob(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return jD(t)||(s=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),YD(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function qA(e,t,n){return e.check(KD,t,e.attempt(LA,t,n))}function XA(e){e.exit("gfmFootnoteDefinition")}function ZA(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=zb(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),c=zb(o);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function YA(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?y:a;if(o===y&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):UD(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):qD(t)?YD(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||jD(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,qD(t)?YD(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return qD(t)?YD(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||UD(t)?D(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(t))}function O(t){return qD(t)?YD(e,D,"whitespace")(t):D(t)}function D(n){return 124===n?d(n):(null===n||UD(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function y(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||UD(n)?(e.exit("tableRow"),t(n)):qD(n)?YD(e,v,"whitespace")(n):(e.enter("data"),A(n))}function A(t){return null===t||124===t||jD(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?E:A)}function E(t){return 92===t||124===t?(e.consume(t),A):A(t)}}function GA(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,h=0;const d=new HA;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},JA(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function KA(e,t,n,r,i){const o=[],s=JA(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function JA(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const eE={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return jD(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return UD(r)?t(r):qD(r)?e.check({tokenize:tE},t,n)(r):n(r)}}};function tE(e,t,n){return YD(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const nE={};function rE(e){const t=e||nE,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return PD([{text:PA},{document:{91:{name:"gfmFootnoteDefinition",tokenize:jA,continuation:{tokenize:qA},exit:XA}},text:{91:{name:"gfmFootnoteCall",tokenize:UA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$A,resolveTo:zA}}},ZA(e),{flow:{null:{name:"table",tokenize:VA,resolveAll:GA}}},{text:{91:eE}}])}(t)),i.push([{transforms:[Cv],enter:{literalAutolink:Dv,literalAutolinkEmail:bv,literalAutolinkHttp:bv,literalAutolinkWww:bv},exit:{literalAutolink:Ev,literalAutolinkEmail:Av,literalAutolinkHttp:yv,literalAutolinkWww:vv}},{enter:{gfmFootnoteCallString:wv,gfmFootnoteCall:Tv,gfmFootnoteDefinitionLabelString:Fv,gfmFootnoteDefinition:_v},exit:{gfmFootnoteCallString:Pv,gfmFootnoteCall:Bv,gfmFootnoteDefinitionLabelString:Rv,gfmFootnoteDefinition:Nv}},{canContainEols:["delete"],enter:{strikethrough:zv},exit:{strikethrough:Uv}},{enter:{table:pA,tableData:OA,tableHeader:OA,tableRow:mA},exit:{codeText:DA,table:fA,tableData:gA,tableHeader:gA,tableRow:gA}},{exit:{taskListCheckValueChecked:vA,taskListCheckValueUnchecked:vA,paragraph:AA}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gv,notInConstruct:Ov},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gv,notInConstruct:Ov},{character:":",before:"[ps]",after:"\\/",inConstruct:gv,notInConstruct:Ov}]},Qv(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$v}],handlers:{delete:jv}},yA(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EA}}]}}(t))}const iE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,oE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,sE=function(){let{legacyTitle:e=!1,tagName:t="div"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{ph(n,"blockquote",((n,r,i)=>{let o="",s="",a=!0,l=n.children.map((t=>{if(a&&"paragraph"===t.type){const n=t.children[0],r="text"===n.type?n.value:"",i=e?oE:iE,l=r.match(i);if(l&&(a=!1,o=l[1].toLocaleLowerCase(),s=e&&l[2]||o.toLocaleUpperCase(),r.includes("\n")&&(t.children[0]={type:"text",value:r.replace(i,"").replace(/^\n+/,"")}),!r.includes("\n"))){const e=[];t.children.forEach(((t,n)=>{0!=n&&(1==n&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));o&&(n.data={hName:t,hProperties:{class:"markdown-alert markdown-alert-".concat(o),dir:"auto"}},l.unshift({type:"paragraph",children:[aE(o),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]}))}};function aE(e){var t;return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:null!==(t=lE[e])&&void 0!==t?t:""}},children:[]}]}}const lE={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};var uE=n(7323),cE=n.n(uE);function hE(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?hE(t.parentElement):null}function dE(e){var t=e=>{var t=hE(e.target);t&&(t.classList.add("active"),cE()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,te.useEffect)((()=>{var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),()=>{var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}}),[e])}var pE=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],fE=e=>e;const mE=te.forwardRef(((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:s=!1,skipHtml:a=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:h={},warpperElement:d={},urlTransform:p}=e,f=Qt(e,pE),m=te.useRef(null);(0,te.useImperativeHandle)(t,(()=>It({},e,{mdp:m})),[m,e]);var g=(n||"")+" "+(r||"");dE(m);var O=[...f.rehypePlugins||[]],D={allowElement:(e,t,n)=>f.allowElement?f.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)};a&&O.push(ZO);var b=[sE,...f.remarkPlugins||[],rE],y=It({},d,h);return(0,Mt.jsx)("div",It({ref:m,onScroll:l,onMouseOver:u},y,{className:g,style:o,children:(0,Mt.jsx)(cv,It({},D,f,{skipHtml:a,urlTransform:p||fE,rehypePlugins:c?c("rehype",O):O,remarkPlugins:c?c("remark",b):b,children:i||""}))}))}));var gE=function(e){return void 0===e&&(e={}),e=>{ph(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=It({},e.properties,{"data-meta":String(e.data.meta)}))}))}},OE=function(e){return void 0===e&&(e={}),e=>{ph(e,(e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}}))}};const DE=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,bE=Object.hasOwnProperty;function yE(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const vE={},AE=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(DE,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;bE.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};const EE=function(e){if(null===e||void 0===e)return kE;if("string"===typeof e)return function(e){return CE(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let n=-1;for(;++n0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return e=>{ph(e,((e,r,i)=>{if("element"===e.type||"root"===e.type){let r=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let i=(e.value||"").trim();if(i=i.replace(/^/,"$1"),i===t)return r=!0,!1;if(i===n)return r=!1,!1}return!r}))}}))}};var NE={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var IE=[function(e){const t=(e||vE).prefix||"";return function(e){AE.reset(),ph(e,"element",(function(e){yE(e)&&!e.properties.id&&(e.properties.id=t+AE.slug(fh(e)))}))}},function(e){const t=e||wE;let n=t.properties;const r=t.headingProperties,i=t.behavior||"prepend",o=t.content,s=t.group,a=EE(t.test);let l;return"after"===i||"before"===i?l=function(e,t,r){if("number"!==typeof t||!r)return;const a=_E(o||xE,e),l=FE(e,BE(n,e),a);let u="before"===i?[l,e]:[e,l];if(s){const t=PE(s,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=u,u=[t])}return r.children.splice(t,1,...u),[hh,t+u.length]}:"wrap"===i?l=function(e){let t=e.children,r=[];"function"===typeof o?(t=[],r=o(e)):o&&(r=TE(o));return e.children=[FE(e,BE(n,e),Array.isArray(r)?[...t,...r]:[...t,r])],[hh]}:(l=function(e){const t=_E(o||xE,e);return e.children["prepend"===i?"unshift":"push"](FE(e,BE(n,e),t)),[hh]},n||(n={ariaHidden:"true",tabIndex:-1})),function(e){ph(e,"element",(function(e,t,n){if(yE(e)&&e.properties.id&&a(e,t,n))return Object.assign(e.properties,BE(r,e)),l(e,t,n)}))}},RE];const QE=te.forwardRef(((e,t)=>{var n,r,i,o=[gE,ZO,OE,...IE,[Ip,{rewrite:(r=null!=(n=e.disableCopy)&&n,i=e.rehypeRewrite,(e,t,n)=>{if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=It({class:"anchor"},o.properties),o.children=[NE])}if("element"===e.type&&"pre"===e.tagName&&!r){var s=Np(e.children);e.children.push((void 0===(a=s)&&(a=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":a},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var a;i&&i(e,null===t?void 0:t,null===n?void 0:n)})}],[$p,{properties:"attr"}],...e.rehypePlugins||[],[xh,{ignoreMissing:!0}]];return(0,Mt.jsx)(mE,It({},e,{rehypePlugins:o,ref:t}))}));var ME={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Mt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:ya.OF.range(e.from+2,e.to+2)}))))}},LE={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,Mt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Mt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Mt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:ya.OF.range(e.from+1,e.to+1)}))))}},$E={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,Mt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Mt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Mt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"```js\n"+i+"\n```"},selection:ya.OF.range(r.from+3,r.from+5)})}}},zE={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Mt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:ya.OF.range(e.from+1,e.to+1)}))))}},UE={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Mt.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var s=o[0];s.length<6&&(i=s+"#")}i.length>6&&(i="#");var a=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+a},selection:{anchor:r.from+i.length+1}})}}},jE={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Mt.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:ya.OF.range(e.from+2,e.to+2)}))))}},qE={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Mt.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:ya.OF.range(e.from+3,e.to+3)}))))}},XE={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Mt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},ZE={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Mt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},HE={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Mt.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},YE={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Mt.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:ya.OF.range(r.from+3+i.length,r.to+3)})}}},VE={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Mt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,Mt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},GE={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Mt.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:ya.OF.range(r.from+4,r.to+4)})}}},WE={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Mt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&Qa(n)}},KE={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Mt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Mt.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&Ia(n)}},JE=["editorProps","command","onClick"],eC=e=>{var{editorProps:t,command:n,onClick:r}=e,i=Qt(e,JE),o=(0,te.useRef)(0),[s,a]=(0,te.useState)(!1),l=(0,te.useRef)(s),u=e=>{var n;for(var r of e){var i;o.current||(o.current=r.target.clientHeight),null!=(i=t.editor)&&null!=(i=i.current)&&null!=(i=i.view)&&i.dom&&(l.current?t.editor.current.view.dom.style.height=r.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}null==(n=c.current)||n.disconnect(),c.current=void 0},c=(0,te.useRef)(new ResizeObserver(u));(0,te.useEffect)((()=>{if(c.current||(c.current=new ResizeObserver(u)),t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&c.current){var e=t.containerEditor.current.parentElement;c.current.observe(e)}return()=>{c.current&&(c.current.disconnect(),c.current=void 0)}}),[t.containerEditor,u,t.editor,s,c]),(0,te.useEffect)((()=>{if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=s?"hidden":"initial",s?document.body.classList.add(t.prefixCls+"-fullscreen"):document.body.classList.remove(t.prefixCls+"-fullscreen"),e&&s?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}}),[s,t]);return(0,Mt.jsx)("button",It({},i,{onClick:e=>{var t=!s;l.current=t,a(t),null==r||r(e,t)},type:"button",className:s?"active":"",children:n.icon}))},tC={name:"fullscreen",keyCommand:"fullscreen",button:(e,t,n)=>(0,Mt.jsx)(eC,{command:e,editorProps:It({},t,n)}),icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Mt.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},nC=e=>{var{editorProps:t}=e,{containerEditor:n,preview:r,previewWidth:i="50%",enablePreview:o=!0}=t,[s,a]=(0,te.useState)(e.editorProps.visible);if((0,te.useEffect)((()=>a(e.editorProps.visible)),[e.editorProps.visible]),(0,te.useEffect)((()=>{if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&s?(e.style.width=i,e.style.overflow="auto","100%"!==i&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+i+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}}),[s,n,r,i]),o){return(0,Mt.jsx)("button",{onClick:()=>{t.onPreviewMode&&t.onPreviewMode(!s),a(!s)},type:"button",className:s?"active":"",children:e.command.icon})}},rC={name:"preview",keyCommand:"preview",button:(e,t,n)=>(0,Mt.jsx)(nC,{command:e,editorProps:It({},t,n)}),icon:(0,Mt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Mt.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},iC={undo:KE,redo:WE,bold:ME,italic:zE,header:UE,strike:jE,underline:qE,quote:HE,olist:XE,ulist:ZE,todo:VE,link:YE,image:GE,code:LE,codeBlock:$E,fullscreen:tC,preview:rC},oC=()=>Object.keys(iC).filter((e=>!/^(fullscreen|preview)/.test(e))).map((e=>iC[e])),sC=()=>[rC,tC],aC=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function lC(e){var{prefixCls:t="md-editor",className:n,toolbars:r=[],editor:i,mode:o,preview:s,container:a,containerEditor:l,editorProps:u={}}=e,c=Qt(e,aC);if(!r||0===r.length)return null;return u.prefixCls=t,(0,Mt.jsx)("div",It({className:t+"-toolbar "+(n||"")+" "+(o?t+"-toolbar-mode":"")},c,{children:[...r].map(((e,t)=>{var n={type:"button"},r="string"===typeof e?iC[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=()=>{var e;(e=r.execute)&&i&&i&&e(i.current)},r.button&&"object"===typeof r.button){var o=r.button;Object.keys(o).forEach((e=>{n[e]=o[e]}))}else if("function"===typeof r.button){var c=r.button(r,u,{preview:s,container:a,containerEditor:l,editor:i,editorProps:u});return(0,Mt.jsx)(te.Fragment,{children:c},t)}return(0,te.createElement)("button",It({},n,{key:t}))}))}))}var uC=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),n.fontSize&&(o.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=Da.Lz.theme(i,{dark:"dark"===t}),l=fa.cr.define(r);return[a,(0,fa.y9)(l)]};var cC=uC({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:_c._A.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:_c._A.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[_c._A.string,_c._A.special(_c._A.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:_c._A.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[_c._A.bool,_c._A.null],color:"var(--color-prettylights-syntax-entity)"},{tag:_c._A.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:_c._A.string,color:"var(--color-prettylights-syntax-string)"},{tag:_c._A.operator,color:"var(--color-accent-emphasis)"},{tag:_c._A.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:_c._A.deleted,color:"red"},{tag:_c._A.className,color:"var(--color-prettylights-syntax-variable)"},{tag:_c._A.definition(_c._A.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:_c._A.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:_c._A.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:_c._A.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:_c._A.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:_c._A.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:_c._A.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:_c._A.angleBracket,color:"var(--color-fg-default)"},{tag:_c._A.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:_c._A.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),hC=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","showToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],dC=Da.Lz.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),pC=te.forwardRef(mC);pC.Markdown=QE;const fC=pC;function mC(e,t){var{prefixCls:n="md-editor",className:r,onChange:i,toolbars:o=oC(),toolbarsMode:s=sC(),toolbarsFilter:a,visible:l=!0,renderPreview:u,visibleEditor:c=!0,hideToolbar:h,showToolbar:d=!0,toolbarBottom:p=!1,enableScroll:f=!0,enablePreview:m=!0,previewProps:g={},extensions:O=[],previewWidth:D="50%",reExtensions:b}=e,y=Qt(e,hC),[v,A]=(0,te.useState)(e.value||""),E=(0,te.useRef)(null),C=(0,te.useRef)(null),k=(0,te.useRef)(null),S=(0,te.useRef)(null),x=(0,te.useRef)("editor");(0,te.useImperativeHandle)(t,(()=>({editor:E,preview:S})),[E]);var w={prefixCls:n,preview:S,editor:E,container:C,containerEditor:k,editorProps:It({},e,{previewWidth:D})},T="number"===typeof y.height?y.height+"px":y.height,F=e.value;(0,te.useEffect)((()=>A(null!=F?F:"")),[F]);var _=(0,te.useCallback)((e=>{if(f){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===x.current&&S.current){var r,i=(null==(r=S.current)?void 0:r.scrollHeight)||0;S.current.scrollTop=i*n}else if(E.current&&E.current.view){var o=E.current.view.scrollDOM,s=E.current.view.scrollDOM.scrollHeight||0;o.scrollTop=s*n}}}),[f]),P=()=>x.current="preview",B=()=>x.current="editor";(0,te.useEffect)((()=>{var e=S.current;return e&&f&&(e.addEventListener("mouseover",P,!1),e.addEventListener("mouseleave",B,!1),e.addEventListener("scroll",_,!1)),()=>{e&&f&&(e.removeEventListener("mouseover",P),e.removeEventListener("mouseleave",P),e.addEventListener("mouseleave",_,!1))}}),[S,f,_]);var R=ba({type:"scroll",events:{scroll:_}}),N=b||[(0,pa.markdown)({base:pa.markdownLanguage,codeLanguages:Oa}),dC,...O];f&&N.push(R);var I=n+"-preview",Q=[n,"wmde-markdown-var",r].filter(Boolean).join(" ");g.source=v;var M=(0,Mt.jsxs)("div",{className:n+"-content",style:{height:y.height},children:[(0,Mt.jsx)("div",{className:n+"-content-editor",ref:k,children:c&&(0,Mt.jsx)(rh,It({theme:cC},y,{className:n+"-inner",extensions:N,height:T,ref:E,onChange:(e,t)=>{A(e),i&&i(e,t)}}))}),m&&(0,Mt.jsx)("div",{className:I,ref:S,children:u?u(g,!!l):(0,Mt.jsx)(QE,It({},g,{"data-visible":!!l}))})]}),L=[n&&n+"-toolbar-warp",n&&p&&n+"-toolbar-bottom"].filter(Boolean).join(" "),$=a?o.filter(a):o,z=a?s.filter(a):s,U=(null!=h?h:d)&&(0,Mt.jsxs)("div",{className:L,children:[(0,Mt.jsx)(lC,It({},w,{toolbars:$})),(0,Mt.jsx)(lC,It({},w,{toolbars:z,mode:!0}))]}),j=p?(0,Mt.jsxs)(te.Fragment,{children:[M,U]}):(0,Mt.jsxs)(te.Fragment,{children:[U,M]});return(0,Mt.jsx)("div",{className:Q,ref:C,children:j})}var gC={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},OC=[{tag:_c._A.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:_c._A.atom,color:"#77F"},{tag:_c._A.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:_c._A.number,color:"violet"},{tag:_c._A.definition(_c._A.variableName),color:"#fffabc"},{tag:_c._A.variableName,color:"#abcdef"},{tag:_c._A.function(_c._A.variableName),color:"#fffabc"},{tag:_c._A.typeName,color:"#FFDD44"},{tag:_c._A.tagName,color:"#def"},{tag:_c._A.string,color:"#2b4"},{tag:_c._A.meta,color:"#C9F"},{tag:_c._A.bracket,color:"#8a8a8a"},{tag:_c._A.attributeName,color:"#DDFF00"},{tag:_c._A.heading,color:"aquamarine",fontWeight:"bold"},{tag:_c._A.link,color:"blueviolet",fontWeight:"bold"}],DC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},gC,n),styles:[...OC,...r]})})(),bC={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},yC=[{tag:[_c._A.keyword,_c._A.deleted,_c._A.className],color:"#cc7832"},{tag:[_c._A.number,_c._A.literal,_c._A.derefOperator],color:"#6897bb"},{tag:[_c._A.link,_c._A.variableName],color:"#629755"},{tag:[_c._A.comment,_c._A.quote],color:"grey"},{tag:[_c._A.meta,_c._A.documentMeta],color:"#bbb529"},{tag:[_c._A.string,_c._A.propertyName,_c._A.attributeValue],color:"#6a8759"},{tag:[_c._A.heading,_c._A.typeName],color:"#ffc66d"},{tag:[_c._A.attributeName],color:"#a9b7c6"},{tag:[_c._A.emphasis],fontStyle:"italic"}],vC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},bC,n),styles:[...yC,...r]})})(),AC={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},EC=[{tag:[_c._A.function(_c._A.variableName),_c._A.function(_c._A.propertyName),_c._A.url,_c._A.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[_c._A.tagName,_c._A.heading],color:"#e06c75"},{tag:_c._A.comment,color:"#54636D"},{tag:[_c._A.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[_c._A.attributeName,_c._A.number],color:"hsl( 29, 54%, 61%)"},{tag:_c._A.className,color:"hsl( 39, 67%, 69%)"},{tag:_c._A.keyword,color:"hsl(286, 60%, 67%)"},{tag:[_c._A.string,_c._A.regexp,_c._A.special(_c._A.propertyName)],color:"#98c379"}],CC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},AC,n),styles:[...EC,...r]})})(),kC={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},SC=[{tag:[_c._A.meta,_c._A.comment],color:"#804000"},{tag:[_c._A.keyword,_c._A.strong],color:"#0000FF"},{tag:[_c._A.number],color:"#FF0080"},{tag:[_c._A.string],color:"#FF0080"},{tag:[_c._A.variableName],color:"#006600"},{tag:[_c._A.escape],color:"#33CC33"},{tag:[_c._A.tagName],color:"#1C02FF"},{tag:[_c._A.heading],color:"#0C07FF"},{tag:[_c._A.quote],color:"#000000"},{tag:[_c._A.list],color:"#B90690"},{tag:[_c._A.documentMeta],color:"#888888"},{tag:[_c._A.function(_c._A.variableName)],color:"#0000A2"},{tag:[_c._A.definition(_c._A.typeName),_c._A.typeName],color:"#6D79DE"}],xC=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},kC,n),styles:[...SC,...r]})})(),wC={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},TC=[{tag:[_c._A.atom,_c._A.number,_c._A.link,_c._A.bool],color:"#9b859d"},{tag:_c._A.comment,color:"#937121"},{tag:[_c._A.keyword,_c._A.tagName],color:"#cf6a4c"},{tag:_c._A.string,color:"#f9ee98"},{tag:_c._A.bracket,color:"#9d9b97"},{tag:[_c._A.variableName],color:"#5ea6ea"},{tag:_c._A.definition(_c._A.variableName),color:"#cf7d34"},{tag:[_c._A.function(_c._A.variableName),_c._A.className],color:"#cf7d34"},{tag:[_c._A.propertyName,_c._A.attributeName],color:"#54be0d"}],FC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},wC,n),styles:[...TC,...r]})})(),_C={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},PC=[{tag:[_c._A.atom,_c._A.number],color:"#bd93f9"},{tag:[_c._A.comment],color:"#61A151"},{tag:[_c._A.string],color:"#6A8759"},{tag:[_c._A.variableName,_c._A.operator],color:"#A9B7C6"},{tag:[_c._A.meta,_c._A.className],color:"#A9B7C6"},{tag:[_c._A.propertyName],color:"#FFC66D"},{tag:[_c._A.keyword],color:"#CC7832"},{tag:[_c._A.tagName],color:"#ff79c6"},{tag:[_c._A.typeName],color:"#ffb86c"}],BC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},_C,n),styles:[...PC,...r]})})(),RC={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},NC=[{tag:_c._A.comment,color:"#6272a4"},{tag:_c._A.string,color:"#f1fa8c"},{tag:_c._A.atom,color:"#bd93f9"},{tag:_c._A.meta,color:"#f8f8f2"},{tag:[_c._A.keyword,_c._A.operator,_c._A.tagName],color:"#ff79c6"},{tag:[_c._A.function(_c._A.propertyName),_c._A.propertyName],color:"#66d9ef"},{tag:[_c._A.definition(_c._A.variableName),_c._A.function(_c._A.variableName),_c._A.className,_c._A.attributeName],color:"#50fa7b"},{tag:_c._A.atom,color:"#bd93f9"}],IC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},RC,n),styles:[...NC,...r]})})(),QC={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},MC=[{tag:[_c._A.comment,_c._A.bracket],color:"#b6ad9a"},{tag:[_c._A.atom,_c._A.number,_c._A.keyword,_c._A.link,_c._A.attributeName,_c._A.quote],color:"#063289"},{tag:[_c._A.emphasis,_c._A.heading,_c._A.tagName,_c._A.propertyName,_c._A.variableName],color:"#2d2006"},{tag:[_c._A.typeName,_c._A.url,_c._A.string],color:"#896724"},{tag:[_c._A.operator,_c._A.string],color:"#1659df"},{tag:[_c._A.propertyName],color:"#b29762"},{tag:[_c._A.unit,_c._A.punctuation],color:"#063289"}],LC=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},QC,n),styles:[...MC,...r]})})(),$C={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},zC=[{tag:[_c._A.comment,_c._A.bracket],color:"#6c6783"},{tag:[_c._A.atom,_c._A.number,_c._A.keyword,_c._A.link,_c._A.attributeName,_c._A.quote],color:"#ffcc99"},{tag:[_c._A.emphasis,_c._A.heading,_c._A.tagName,_c._A.propertyName,_c._A.className,_c._A.variableName],color:"#eeebff"},{tag:[_c._A.typeName,_c._A.url],color:"#7a63ee"},{tag:_c._A.operator,color:"#ffad5c"},{tag:_c._A.string,color:"#ffb870"},{tag:[_c._A.propertyName],color:"#9a86fd"},{tag:[_c._A.unit,_c._A.punctuation],color:"#e09142"}],UC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},$C,n),styles:[...zC,...r]})})(),jC={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},qC=[{tag:[_c._A.comment],color:"#3F7F5F"},{tag:[_c._A.documentMeta],color:"#FF1717"},{tag:_c._A.keyword,color:"#7F0055",fontWeight:"bold"},{tag:_c._A.atom,color:"#00f"},{tag:_c._A.number,color:"#164"},{tag:_c._A.propertyName,color:"#164"},{tag:[_c._A.variableName,_c._A.definition(_c._A.variableName)],color:"#0000C0"},{tag:_c._A.function(_c._A.variableName),color:"#0000C0"},{tag:_c._A.string,color:"#2A00FF"},{tag:_c._A.operator,color:"black"},{tag:_c._A.tagName,color:"#170"},{tag:_c._A.attributeName,color:"#00c"},{tag:_c._A.link,color:"#219"}],XC=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},jC,n),styles:[...qC,...r]})})(),ZC={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},HC=[{tag:[_c._A.standard(_c._A.tagName),_c._A.tagName],color:"#116329"},{tag:[_c._A.comment,_c._A.bracket],color:"#6a737d"},{tag:[_c._A.className,_c._A.propertyName],color:"#6f42c1"},{tag:[_c._A.variableName,_c._A.attributeName,_c._A.number,_c._A.operator],color:"#005cc5"},{tag:[_c._A.keyword,_c._A.typeName,_c._A.typeOperator,_c._A.typeName],color:"#d73a49"},{tag:[_c._A.string,_c._A.meta,_c._A.regexp],color:"#032f62"},{tag:[_c._A.name,_c._A.quote],color:"#22863a"},{tag:[_c._A.heading,_c._A.strong],color:"#24292e",fontWeight:"bold"},{tag:[_c._A.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[_c._A.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[_c._A.atom,_c._A.bool,_c._A.special(_c._A.variableName)],color:"#e36209"},{tag:[_c._A.url,_c._A.escape,_c._A.regexp,_c._A.link],color:"#032f62"},{tag:_c._A.link,textDecoration:"underline"},{tag:_c._A.strikethrough,textDecoration:"line-through"},{tag:_c._A.invalid,color:"#cb2431"}],YC=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},ZC,n),styles:[...HC,...r]})})(),VC={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},GC=[{tag:[_c._A.standard(_c._A.tagName),_c._A.tagName],color:"#7ee787"},{tag:[_c._A.comment,_c._A.bracket],color:"#8b949e"},{tag:[_c._A.className,_c._A.propertyName],color:"#d2a8ff"},{tag:[_c._A.variableName,_c._A.attributeName,_c._A.number,_c._A.operator],color:"#79c0ff"},{tag:[_c._A.keyword,_c._A.typeName,_c._A.typeOperator,_c._A.typeName],color:"#ff7b72"},{tag:[_c._A.string,_c._A.meta,_c._A.regexp],color:"#a5d6ff"},{tag:[_c._A.name,_c._A.quote],color:"#7ee787"},{tag:[_c._A.heading,_c._A.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[_c._A.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[_c._A.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[_c._A.atom,_c._A.bool,_c._A.special(_c._A.variableName)],color:"#ffab70"},{tag:_c._A.link,textDecoration:"underline"},{tag:_c._A.strikethrough,textDecoration:"line-through"},{tag:_c._A.invalid,color:"#f97583"}],WC=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},VC,n),styles:[...GC,...r]})})(),KC={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},JC=[{tag:[_c._A.comment,_c._A.documentMeta],color:"#8292a2"},{tag:[_c._A.number,_c._A.bool,_c._A.null,_c._A.atom],color:"#ae81ff"},{tag:[_c._A.attributeValue,_c._A.className,_c._A.name],color:"#e6db74"},{tag:[_c._A.propertyName,_c._A.attributeName],color:"#a6e22e"},{tag:[_c._A.variableName],color:"#9effff"},{tag:[_c._A.squareBracket],color:"#bababa"},{tag:[_c._A.string,_c._A.special(_c._A.brace)],color:"#e6db74"},{tag:[_c._A.regexp,_c._A.className,_c._A.typeName,_c._A.definition(_c._A.typeName)],color:"#66d9ef"},{tag:[_c._A.definition(_c._A.variableName),_c._A.definition(_c._A.propertyName),_c._A.function(_c._A.variableName)],color:"#fd971f"},{tag:[_c._A.keyword,_c._A.definitionKeyword,_c._A.modifier,_c._A.tagName,_c._A.angleBracket],color:"#f92672"}],ek=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},KC,n),styles:[...JC,...r]})})(),tk={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},nk=[{tag:[_c._A.meta,_c._A.comment],color:"#A2A9B5"},{tag:[_c._A.attributeName,_c._A.keyword],color:"#B78FBA"},{tag:_c._A.function(_c._A.variableName),color:"#5AB0B0"},{tag:[_c._A.string,_c._A.regexp,_c._A.attributeValue],color:"#99C592"},{tag:_c._A.operator,color:"#f47954"},{tag:[_c._A.tagName,_c._A.modifier],color:"#E35F63"},{tag:[_c._A.number,_c._A.definition(_c._A.tagName),_c._A.className,_c._A.definition(_c._A.variableName)],color:"#fbac52"},{tag:[_c._A.atom,_c._A.bool,_c._A.special(_c._A.variableName)],color:"#E35F63"},{tag:_c._A.variableName,color:"#539ac4"},{tag:[_c._A.propertyName,_c._A.typeName],color:"#629ccd"},{tag:_c._A.propertyName,color:"#36b7b5"}];var rk=function(e){var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},tk,n),styles:[...nk,...r]})}(),ik={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},ok=[{tag:[_c._A.comment,_c._A.quote],color:"#707F8D"},{tag:[_c._A.typeName,_c._A.typeOperator],color:"#aa0d91"},{tag:[_c._A.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[_c._A.string,_c._A.meta],color:"#D23423"},{tag:[_c._A.name],color:"#032f62"},{tag:[_c._A.typeName],color:"#522BB2"},{tag:[_c._A.variableName],color:"#23575C"},{tag:[_c._A.definition(_c._A.variableName)],color:"#327A9E"},{tag:[_c._A.regexp,_c._A.link],color:"#0e0eff"}];var sk=function(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},ik,n),styles:[...ok,...r]})}(),ak={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},lk=[{tag:[_c._A.comment,_c._A.quote],color:"#7F8C98"},{tag:[_c._A.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[_c._A.string,_c._A.meta],color:"#FF8170"},{tag:[_c._A.typeName],color:"#DABAFF"},{tag:[_c._A.definition(_c._A.variableName)],color:"#6BDFFF"},{tag:[_c._A.name],color:"#6BAA9F"},{tag:[_c._A.variableName],color:"#ACF2E4"},{tag:[_c._A.regexp,_c._A.link],color:"#FF8170"}],uk=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uC({theme:t,settings:It({},ak,n),styles:[...lk,...r]})})();const ck='
\n

\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668

\n
\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![CI](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return
Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 Han\n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 Han\n \u5b57 zi\n \u62fc pin\n \u97f3 yin\n \u6ce8 zhu\n \u97f3 yin\n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n \n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',hk=ck,dk={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:cC},abcdef:{label:"Abcdef Theme",value:DC},androidstudio:{label:"Android Studio Theme",value:vC},atomone:{label:"Atomone Theme",value:CC},bbedit:{label:"Bbedit Theme",value:xC},bespin:{label:"Bespin Theme",value:FC},darcula:{label:"Darcula Theme",value:BC},dracula:{label:"Dracula Theme",value:IC},duotoneLight:{label:"Duotone Light Theme",value:LC},duotoneDark:{label:"Duotone Dark Theme",value:UC},eclipse:{label:"Eclipse Theme",value:XC},githubLight:{label:"Github Light Theme",value:YC},githubDark:{label:"Github Dark Theme",value:WC},okaidia:{label:"Okaidia Theme",value:ek},sublime:{label:"Sublime Theme",value:rk},xcodeLight:{label:"Xcode Light Theme",value:sk},xcodeDark:{label:"Xcode Dark Theme",value:uk}},pk={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 18px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 16px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},fk={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},mk=(Object.keys(pk).map((e=>pk[e].color)),te.createContext({preColor:"",setPreColor:()=>{},isLoading:!0,setIsLoading:()=>{},markdown:ck,setMarkdown:()=>{},css:pk.underscore.value,setCss:()=>{},previewTheme:"underscore",setPreviewTheme:()=>{},theme:"default",setTheme:()=>{}}));var gk,Ok,Dk,bk,yk,vk,Ak;const Ek=Ko.div(gk||(gk=J([""]))),Ck=Ko.div(Ok||(Ok=J(["\n position: relative;\n height: 2.8rem;\n"]))),kk=Ko.header(Dk||(Dk=J(["\n -webkit-app-region: drag;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: var(--color-canvas-default);\n border-bottom: 1px solid var(--color-border-muted);\n padding: 0.5rem 0.6rem 0.5rem 0.8rem;\n position: fixed;\n width: 100%;\n z-index: 9;\n"]))),Sk=Ko.article(bk||(bk=J(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.6rem;\n"]))),xk=Ko(Ys)(yk||(yk=J(["\n max-width: 3.6rem;\n"]))),wk=Ko.h1(vk||(vk=J(["\n font-size: 1rem;\n margin: 0;\n display: flex;\n align-items: center;\n user-select: none;\n sup {\n color: var(--color-fg-subtle);\n margin-left: 0.4rem;\n background-color: var(--color-border-muted);\n border-radius: 0.1rem;\n padding: 0 0.2rem 0 0.1rem;\n font-weight: normal;\n font-size: 0.7rem;\n letter-spacing: -0.1rem;\n }\n"]))),Tk=Ko.section(Ak||(Ak=J(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n dark-mode {\n font-size: 1.05rem;\n display: block;\n line-height: 12px;\n margin-left: 0.6rem;\n }\n a svg {\n display: block;\n }\n a {\n text-decoration: none;\n color: var(--color-theme-text);\n padding: 0.1rem 0.3rem;\n transition: all 0.3s;\n font-size: 0.9rem;\n border-radius: 0.2rem;\n &.active {\n background-color: var(--color-accent-fg);\n box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg);\n color: #fff;\n }\n &:hover:not(.active):not(:last-child) {\n background-color: var(--color-accent-fg);\n color: #fff;\n border-radius: 0.2rem;\n }\n }\n"])));function Fk(){const{isLoading:e}=(0,te.useContext)(mk);return(0,Mt.jsxs)(Ek,{className:"wmde-markdown-color",children:[(0,Mt.jsx)(Ck,{children:(0,Mt.jsxs)(kk,{className:"header",children:[(0,Mt.jsxs)(Sk,{className:"logo",children:[(0,Mt.jsx)(xk,{width:28,height:28}),(0,Mt.jsxs)(wk,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Mt.jsxs)("sup",{children:[" v","2.4.1"," "]})]}),e&&(0,Mt.jsx)(da,{})]}),(0,Mt.jsxs)(Tk,{children:[(0,Mt.jsx)(_t,{to:"/",children:"\u9996\u9875"}),(0,Mt.jsx)(_t,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Mt.jsx)(_t,{to:"/doc",children:"\u6587\u6863"}),(0,Mt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Mt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Mt.jsx)(Js,{width:23,height:23})})]})]})}),(0,Mt.jsx)(mt,{})]})}const _k=1,Pk=2,Bk=3,Rk=4,Nk=5,Ik=7,Qk=9,Mk=10,Lk=11,$k=12,zk=13,Uk=14,jk=15,qk=16,Xk=17,Zk=18,Hk=19,Yk=20,Vk=21,Gk=22,Wk=23,Kk=24,Jk=25,eS=0;function tS(e){return e>=48&&e<=57}function nS(e){return tS(e)||e>=65&&e<=70||e>=97&&e<=102}function rS(e){return e>=65&&e<=90}function iS(e){return function(e){return rS(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function oS(e){return iS(e)||tS(e)||45===e}function sS(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function aS(e){return 10===e||13===e||12===e}function lS(e){return aS(e)||32===e||9===e}function uS(e,t){return 92===e&&(!aS(t)&&t!==eS)}function cS(e,t,n){return 45===e?iS(t)||45===t||uS(t,n):!!iS(e)||92===e&&uS(e,t)}function hS(e,t,n){return 43===e||45===e?tS(t)?2:46===t&&tS(n)?3:0:46===e?tS(t)?2:0:tS(e)?1:0}function dS(e){return 65279===e||65534===e?1:0}const pS=new Array(128),fS=130;for(let SI=0;SIe.length)return!1;for(let i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const xS=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function wS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?dS(t.charCodeAt(0)):0,i=wS(e.lines,n),o=wS(e.columns,n);let s=e.startLine,a=e.startColumn;for(let l=r;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||TS(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||TS(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}const _S=16777215,PS=24,BS=new Map([[Pk,Gk],[Vk,Gk],[Hk,Yk],[Wk,Kk]]);class RS{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=wS(this.offsetAndType,e.length+1),i=wS(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,u)=>{switch(e){default:i[o]=n;break;case s:{let e=a&_S;for(a=i[e],s=a>>PS,i[o]=e,i[e++]=o;e>PS:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>PS,this.tokenEnd=t&_S):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>PS,this.tokenEnd=e&_S):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===zk||this.tokenType===Jk;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&_S:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>PS,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:xS[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}}function NS(e,t){function n(t){return t=e.length?void(u1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new QS;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new QS;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new QS;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(QS.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(QS.createItem(e))}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(QS.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(QS.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(QS.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function MS(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,"".concat(e,": ").concat(t,"\n"))}})}const LS=" ";function $S(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+" |"+t)).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),u=Math.max(4,String(l).length)+1;let c=0;i+=3*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>100&&(c=i-60+3,i=58);for(let h=a;h<=l;h++)h>=0&&h0&&s[h].length>c?"\u2026":"")+s[h].substr(c,98)+(s[h].length>c+100-1?"\u2026":""));return[o(a,r),new Array(i+u+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function zS(e,t,n,r,i){return Object.assign(MS("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>$S({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return"Parse error: ".concat(e,"\n")+$S({source:t,line:r,column:i},2)}})}function US(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Jk:this.next();continue;case zk:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const jS=()=>{};function qS(e){return function(){return this[e]()}}function XS(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function ZS(e){let t="",n="",r=!1,i=jS,o=!1;const s=new FS,a=Object.assign(new RS,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:XS(e.atrule),pseudo:XS(e.pseudo),node:XS(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=qS(e.parseContext[n])}return(0,Zt.A)((0,Zt.A)({config:t},t),t.node)}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:US,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new QS,createSingleNodeList:e=>(new QS).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(kI){if(o)throw kI;const r=t.call(this,n);return o=!0,i(kI,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==zk)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>DS(t,e,n),cmpStr:(e,n,r)=>bS(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Pk),e},consumeNumber(e){const n=t.substring(this.tokenStart,CS(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=xS[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n="".concat(/[[\](){}]/.test(t)?'"'.concat(t,'"'):t," is expected"),r=this.tokenStart;switch(e){case _k:this.tokenType===Pk||this.tokenType===Ik?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case Rk:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case Lk:this.tokenType===Mk&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===_k&&!1!==this.lookupValue(0,e)||this.error('Identifier "'.concat(e,'" is expected')),this.next()},eatDelim(e){this.isDelim(e)||this.error('Delim "'.concat(String.fromCharCode(e),'" is expected')),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n=0&&lS(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new zS(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},a.setSource(t,NS),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:jS,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:u="default",onComment:c}=l;if(u in a.context===!1)throw new Error("Unknown context `"+u+"`");"function"===typeof c&&a.forEachToken(((e,n,r)=>{if(e===Jk){const e=a.getLocation(n,r),i=bS(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);c(i,e)}}));const h=a.context[u].call(a,l);return a.eof||a.error(),h}),{SyntaxError:zS,config:a.config})}var HS=n(7428);const YS=new Set(["Atrule","Selector","Declaration"]);const VS=(e,t)=>{if(e===Qk&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},GS=[[_k,_k],[_k,Pk],[_k,Ik],[_k,8],[_k,"-"],[_k,Mk],[_k,Lk],[_k,$k],[_k,jk],[_k,Vk],[Bk,_k],[Bk,Pk],[Bk,Ik],[Bk,8],[Bk,"-"],[Bk,Mk],[Bk,Lk],[Bk,$k],[Bk,jk],[Rk,_k],[Rk,Pk],[Rk,Ik],[Rk,8],[Rk,"-"],[Rk,Mk],[Rk,Lk],[Rk,$k],[Rk,jk],[$k,_k],[$k,Pk],[$k,Ik],[$k,8],[$k,"-"],[$k,Mk],[$k,Lk],[$k,$k],[$k,jk],["#",_k],["#",Pk],["#",Ik],["#",8],["#","-"],["#",Mk],["#",Lk],["#",$k],["#",jk],["-",_k],["-",Pk],["-",Ik],["-",8],["-","-"],["-",Mk],["-",Lk],["-",$k],["-",jk],[Mk,_k],[Mk,Pk],[Mk,Ik],[Mk,8],[Mk,Mk],[Mk,Lk],[Mk,$k],[Mk,"%"],[Mk,jk],["@",_k],["@",Pk],["@",Ik],["@",8],["@","-"],["@",jk],[".",Mk],[".",Lk],[".",$k],["+",Mk],["+",Lk],["+",$k],["/","*"]],WS=GS.concat([[_k,Rk],[$k,Rk],[Rk,Rk],[Bk,Vk],[Bk,Nk],[Bk,qk],[Lk,Lk],[Lk,$k],[Lk,Pk],[Lk,"-"],[Gk,_k],[Gk,Pk],[Gk,Lk],[Gk,$k],[Gk,Rk],[Gk,"-"]]);function KS(e){const t=new Set(e.map((e=>{let[t,n]=e;return VS(t)<<16|VS(n)})));return function(e,n,r){const i=VS(n,r),o=r.charCodeAt(0);return(45===o&&n!==_k&&n!==Pk&&n!==jk||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",zk,!0),i}}const JS=KS(GS),ex=KS(WS);function tx(e,t){if("function"!==typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function nx(e){NS(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function rx(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",i=0,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:ex,token(e,t){i=this.tokenBefore(i,e,t),this.emit(t,e,!1),e===Qk&&92===t.charCodeAt(0)&&this.emit("\n",zk,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=function(e){const t=new HS.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const u=e.node;e.node=function(e){if(e.loc&&e.loc.start&&YS.has(e.type)){const u=e.loc.start.line,c=e.loc.start.column-1;r.line===u&&r.column===c||(r.line=u,r.column=c,n.line=s,n.column=a,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}u.call(this,e),l&&YS.has(e.type)&&(i.line=s,i.column=a)};const c=e.emit;e.emit=function(e,t,n){for(let r=0;ro.node(e),children:tx,token:(e,t)=>o.token(e,t),tokenize:nx};return o.node(e),o.result()}}const{hasOwnProperty:ix}=Object.prototype,ox=function(){};function sx(e){return"function"===typeof e?e:ox}function ax(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function lx(e,t){const n=t.structure,r=[];for(const i in n){if(!1===ix.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function ux(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function cx(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function hx(e){const t=function(e){const t={};for(const n in e.node)if(ix.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=lx(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const u in t)ix.call(t,u)&&null!==t[u]&&(n[u]=ux(t[u],!1),r[u]=ux(t[u],!0));const s=cx(n),a=cx(r),l=function(e,l){function u(e,t,n){const r=c.call(f,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,f,u,p))||h.call(f,e,t,n)===i)}let c=ox,h=ox,d=n,p=(e,t,n,r)=>e||u(t,n,r);const f={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)c=l;else if(l&&(c=sx(l.enter),h=sx(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");c=ax(c,l.visit),h=ax(h,l.visit)}if(c===ox&&h===ox)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");u(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l}function dx(e){return e}function px(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>px(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return px(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function fx(e,t){let n=dx,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),px(e,n,r,i)}const mx={offset:0,line:1,column:1};function gx(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?Ox(n):n:null}function Ox(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const Dx=function(e,t){const n=MS("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},bx=function(e,t,n,r){const i=MS("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:u}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(s=gx(o||t,"end")||Ox(mx,h),a=Ox(s)):(s=gx(o,"start")||Ox(gx(t,"start")||mx,h.slice(0,l)),a=gx(o,"end")||Ox(s,h.substr(l,u))),{css:h,mismatchOffset:l,mismatchLength:u,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?fx(t):"",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:u},i},yx=new Map,vx=new Map,Ax=45,Ex=function(e){if(yx.has(e))return yx.get(e);const t=e.toLowerCase();let n=yx.get(t);if(void 0===n){const e=kx(t,0),r=e?"":Sx(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return yx.set(e,n),n},Cx=function(e){if(vx.has(e))return vx.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=kx(t,n.length);if(!r&&(t=t.toLowerCase(),vx.has(t))){const n=vx.get(t);return vx.set(e,n),n}const i=r?"":Sx(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return vx.set(e,s),s};function kx(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ax&&e.charCodeAt(t+1)===Ax}function Sx(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ax&&e.charCodeAt(t+1)!==Ax){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const xx=["initial","inherit","unset","revert","revert-layer"],wx=45,Tx=!0;function Fx(e,t){return null!==e&&e.type===Qk&&e.value.charCodeAt(0)===t}function _x(e,t,n){for(;null!==e&&(e.type===zk||e.type===Jk);)e=n(++t);return t}function Px(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(43===i||i===wx){if(n)return 0;t++}for(;t6)return 0}return r}function Ix(e,t,n){if(!e)return 0;for(;Rx(n(t),63);){if(++e>6)return 0;t++}return t}const Qx=["calc(","-moz-calc(","-webkit-calc("],Mx=new Map([[Pk,Gk],[Vk,Gk],[Hk,Yk],[Wk,Kk]]);function Lx(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function qx(e){return function(t,n,r){return null===t?0:t.type===Pk&&zx(t.value,Qx)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case Kk:case Gk:case Yk:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case Pk:case Vk:case Hk:case Wk:r.push(n),n=Mx.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function Xx(e){return function(t){return null===t||t.type!==e?0:1}}function Zx(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==$k)return 0;const i=CS(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&Ux(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return jx(r,t.value,i)?0:1}}function Hx(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===Mk&&0===Number(t.value)?1:e(t,n,r)}}const Yx={"ident-token":Xx(_k),"function-token":Xx(Pk),"at-keyword-token":Xx(Bk),"hash-token":Xx(Rk),"string-token":Xx(Nk),"bad-string-token":Xx(6),"url-token":Xx(Ik),"bad-url-token":Xx(8),"delim-token":Xx(Qk),"number-token":Xx(Mk),"percentage-token":Xx(Lk),"dimension-token":Xx($k),"whitespace-token":Xx(zk),"CDO-token":Xx(Uk),"CDC-token":Xx(jk),"colon-token":Xx(qk),"semicolon-token":Xx(Xk),"comma-token":Xx(Zk),"[-token":Xx(Hk),"]-token":Xx(Yk),"(-token":Xx(Vk),")-token":Xx(Gk),"{-token":Xx(Wk),"}-token":Xx(Kk)},Vx={string:Xx(Nk),ident:Xx(_k),percentage:qx((function(e,t,n){return null===e||e.type!==Lk||jx(n,e.value,e.value.length-1)?0:1})),zero:Hx(),number:qx((function(e,t,n){if(null===e)return 0;const r=CS(e.value,0);return r===e.value.length||Ux(e.value,r)?jx(n,e.value,r)?0:1:0})),integer:qx((function(e,t,n){if(null===e||e.type!==Mk)return 0;let r=43===Lx(e.value,0)||45===Lx(e.value,0)?1:0;for(;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),uw={" ":1,"&&":2,"||":3,"|":4};function cw(e){return e.substringToPos(e.findWsEnd(e.pos))}function hw(e){let t=e.pos;for(;t=128||0===lw[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function dw(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function pw(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function fw(e){let t=null,n=null;return e.eat(aw),t=dw(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=dw(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function mw(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===aw?t=fw(e):63===e.charCode()?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case aw:t=fw(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,35===e.charCode()&&43===e.charCodeAt(e.pos-1)?mw(e,n):n):t}function gw(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function Ow(e){let t,n=null;return e.eat(60),t=hw(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(cw(e),n=function(e){let t=null,n=null,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():(t=r*Number(dw(e)),0!==lw[e.charCode()]&&(t+=hw(e))),cw(e),e.eat(44),cw(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*Number(dw(e)),0!==lw[e.charCode()]&&(n+=hw(e))),e.eat(93),{type:"Range",min:t,max:n}}(e)),e.eat(62),mw(e,{type:"Type",name:t,opts:n})}function Dw(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>uw[e]-uw[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function bw(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=yw(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:Dw(t,n)||" ",disallowEmpty:!1,explicit:!1}}function yw(e){let t=e.charCode();if(t<128&&1===lw[t])return function(e){const t=hw(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):mw(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return mw(e,function(e){let t;return e.eat(91),t=bw(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=hw(e),e.eat(39),e.eat(62),mw(e,{type:"Property",name:t})}(e):Ow(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return mw(e,{type:"String",value:pw(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:cw(e)};case 64:return t=e.nextCharCode(),t<128&&1===lw[t]?(e.pos++,{type:"AtKeyword",name:hw(e)}):gw(e);case 42:case 43:case 63:case 35:case 33:break;case aw:if(t=e.nextCharCode(),t<48||t>57)return gw(e);break;default:return gw(e)}}function vw(e){const t=new sw(e),n=bw(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const Aw=function(){};function Ew(e){return"function"===typeof e?e:Aw}const Cw={decorator(e){const t=[];let n=null;return(0,Zt.A)((0,Zt.A)({},e),{},{node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t})}};function kw(e,t){return"string"===typeof e?function(e){const t=[];return NS(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,Cw)}const Sw={type:"Match"},xw={type:"Mismatch"},ww={type:"DisallowEmpty"};function Tw(e,t,n){return t===Sw&&n===xw||e===Sw&&t===Sw&&n===Sw?e:("If"===e.type&&e.else===xw&&t===Sw&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Fw(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function _w(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Fw(e.name)}function Pw(e,t,n){switch(e){case" ":{let e=Sw;for(let n=t.length-1;n>=0;n--){e=Tw(t[n],e,xw)}return e}case"|":{let e=xw,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(_w(i)&&(null===n&&r>0&&_w(t[r-1])&&(n=Object.create(null),e=Tw({type:"Enum",map:n},Sw,e)),null!==n)){const e=(Fw(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=Tw(i,Sw,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=xw;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?Pw(e,t.filter((function(e){return e!==i})),!1):Sw,n=Tw(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Sw:xw;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?Pw(e,t.filter((function(e){return e!==i})),!0):Sw,r=Tw(i,o,r)}return r}}}function Bw(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Pw(e.combinator,e.terms.map(Bw),!1);return e.disallowEmpty&&(t=Tw(t,ww,xw)),t}case"Multiplier":return function(e){let t=Sw,n=Bw(e.term);if(0===e.max)n=Tw(n,ww,xw),t=Tw(n,null,xw),t.then=Tw(Sw,Sw,t),e.comma&&(t.then.else=Tw({type:"Comma",syntax:e},t,xw));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Sw&&(t=Tw({type:"Comma",syntax:e},t,xw)),t=Tw(n,Tw(Sw,Sw,t),xw);if(0===e.min)t=Tw(Sw,Sw,t);else for(let r=0;r=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function $w(e){return null===e||(e.type===Zk||e.type===Pk||e.type===Vk||e.type===Hk||e.type===Wk||function(e){return e.type===Qk&&"?"!==e.value}(e))}function zw(e){return null===e||(e.type===Gk||e.type===Yk||e.type===Kk||e.type===Qk&&"/"===e.value)}function Uw(e,t,n){function r(){do{O++,g=OD&&(D=O)}function u(){b=2===b.type?b.prev:{type:3,syntax:c.syntax,token:b.token,prev:b},c=c.prev}let c=null,h=null,d=null,p=null,f=0,m=null,g=null,O=-1,D=0,b={type:0,syntax:null,token:null,prev:null};for(r();null===m&&++f<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(O!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=xw;break}m=Iw;break}if((t=h.nextState)===ww){if(h.matchStack===b){t=xw;break}t=Sw}for(;h.syntaxStack!==c;)u();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||O>d.tokenIndex)&&(d=p,p=!1);else if(null===d){m="Mismatch";break}t=d.nextState,h=d.thenStack,c=d.syntaxStack,b=d.matchStack,O=d.tokenIndex,g=OO){for(;O":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type){if("custom-ident"===t.name&&g.type===_k||"length"===t.name&&"0"===g.value){null===p&&(p=o(t,d)),t=xw;break}}c={syntax:t.syntax,opts:t.syntax.opts||null!==c&&c.opts||null,prev:c},b={type:2,syntax:t.syntax,token:b.token,prev:b},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Lw(n,e)){l(),t=Sw;break}}t=xw;break}case"AtKeyword":case"Function":if(null!==g&&Lw(g.value,t.name)){l(),t=Sw;break}t=xw;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Sw;break}t=xw;break;case"Comma":null!==g&&g.type===Zk?$w(b.token)?t=xw:(l(),t=zw(g)?xw:Sw):t=$w(b.token)||zw(g)?Sw:xw;break;case"String":let r="",f=O;for(;f"Type"===e.type&&e.name===t))}function Zw(e,t){return Yw(this,e,(e=>"Property"===e.type&&e.name===t))}function Hw(e){return Yw(this,e,(e=>"Keyword"===e.type))}function Yw(e,t,n){const r=qw.call(e,t);return null!==r&&r.some(n)}function Vw(e){return"node"in e?e.node:Vw(e.match[0])}function Gw(e){return"node"in e?e.node:Gw(e.match[e.match.length-1])}function Ww(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=Vw(s),r=Gw(s);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new QS;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:Kw}=Object.prototype;function Jw(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function eT(e){return Boolean(e)&&Jw(e.offset)&&Jw(e.line)&&Jw(e.column)}function tT(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==Kw.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(eT(n.loc.start)){if(eT(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:tT(e,r)}}const rT=Rw(xx.join(" | "));function iT(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:fx(e[i].syntax,{compact:t}));return r}function oT(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:fx(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&iT(o.descriptors,t,n)};return r}function sT(e,t,n){return(0,Zt.A)({matched:e,iterations:n,error:t},l)}function aT(e,t,n,r){const i=kw(n,e.syntax);let o;return function(e){for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=Rw(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:vw(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:Rw(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Dx("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||aT(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=Ex(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new Dx("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Dx("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return sT(null,n);const r=this.getAtrule(e);return r.prelude?aT(this,r.prelude,t||"",!1):sT(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return sT(null,r);const i=this.getAtrule(e),o=Ex(t);return aT(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?sT(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Cx(e).custom)return sT(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?sT(null,n):aT(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?aT(this,n,t,!1):sT(null,new Dx("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),aT(this,e,t,!1)):sT(null,new Dx("Bad syntax"))}findValueFragments(e,t,n,r){return Ww(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Ww(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Ex(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Cx(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=Aw,i=Aw;if("function"===typeof t?r=t:t&&(r=Ew(t.enter),i=Ew(t.leave)),r===Aw&&i===Aw)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(s.syntax,(function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:iT(this.types,!t,e),properties:iT(this.properties,!t,e),atrules:oT(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function uT(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function cT(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function hT(e,t){const n=(0,Zt.A)({},e);for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]=(0,Zt.A)({},e[r]);for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]=(0,Zt.A)({},e[r]);for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:(0,Zt.A)({},i.descriptors)};if(t){o.prelude=t.prelude?uT(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?uT(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]=(0,Zt.A)({},e[r]);for(const[e,t]of Object.entries(i))n[r][e]=uT(n[r][e],t);break;case"scope":n[r]=(0,Zt.A)({},e[r]);for(const[e,t]of Object.entries(i))n[r][e]=(0,Zt.A)((0,Zt.A)({},n[r][e]),t);break;case"parseContext":n[r]=(0,Zt.A)((0,Zt.A)({},e[r]),i);break;case"atrule":case"pseudo":n[r]=(0,Zt.A)((0,Zt.A)({},e[r]),cT(i,["parse"]));break;case"node":n[r]=(0,Zt.A)((0,Zt.A)({},e[r]),cT(i,["name","structure","parse","generate","walkContext"]))}return n}function dT(e){const t=ZS(e),n=hx(e),r=rx(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof QS===!1&&(e.children=(new QS).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof QS&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new lT(e,s,s.lexer.structure),tokenize:NS,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=hT({},e);return dT("function"===typeof t?t(n,Object.assign):hT(n,t))}};return s.lexer=new lT({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const pT=43,fT=45,mT=110,gT=!0,OT=!1;function DT(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==pT&&r!==fT||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==pT&&n!==fT&&this.error("Number sign is expected")),bT.call(this,0!==t),t===fT?"-"+this.consume(Mk):this.consume(Mk)}const AT="AnPlusB",ET={a:[String,null],b:[String,null]};function CT(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===Mk)bT.call(this,OT),n=this.consume(Mk);else if(this.tokenType===_k&&this.cmpChar(this.tokenStart,fT))switch(t="-1",yT.call(this,1,mT),this.tokenEnd-this.tokenStart){case 2:this.next(),n=vT.call(this);break;case 3:yT.call(this,2,fT),this.next(),this.skipSC(),bT.call(this,gT),n="-"+this.consume(Mk);break;default:yT.call(this,2,fT),DT.call(this,3,gT),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===_k||this.isDelim(pT)&&this.lookupType(1)===_k){let r=0;switch(t="1",this.isDelim(pT)&&(r=1,this.next()),yT.call(this,0,mT),this.tokenEnd-this.tokenStart){case 1:this.next(),n=vT.call(this);break;case 2:yT.call(this,1,fT),this.next(),this.skipSC(),bT.call(this,gT),n="-"+this.consume(Mk);break;default:yT.call(this,1,fT),DT.call(this,2,gT),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===$k){const r=this.charCodeAt(this.tokenStart),i=r===pT||r===fT;let o=this.tokenStart+i;for(;o0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(Bk),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Wk&&this.tokenType!==Xk&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),ST):ST.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Xk:this.next();break;case Wk:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(xT.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function PT(e){this.token(Bk,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(Xk,";")}const BT="AtrulePrelude",RT="atrulePrelude",NT={children:[[]]};function IT(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==Wk&&this.tokenType!==Xk&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function QT(e){this.children(e)}const MT=36,LT=42,$T=61,zT=94,UT=124,jT=126;function qT(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(LT)?(t=!0,this.next()):this.isDelim(UT)||this.eat(_k),this.isDelim(UT)?this.charCodeAt(this.tokenStart+1)!==$T?(this.next(),this.eat(_k)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function XT(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==$T&&t!==jT&&t!==zT&&t!==MT&&t!==LT&&t!==UT&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==$T&&(this.isDelim($T)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const ZT="AttributeSelector",HT={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function YT(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Hk),this.skipSC(),t=qT.call(this),this.skipSC(),this.tokenType!==Yk&&(this.tokenType!==_k&&(n=XT.call(this),this.skipSC(),r=this.tokenType===Nk?this.String():this.Identifier(),this.skipSC()),this.tokenType===_k&&(i=this.consume(_k),this.skipSC())),this.eat(Yk),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function VT(e){this.token(Qk,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(_k,e.flags),this.token(Qk,"]")}const GT=38;function WT(e){return this.Raw(e,null,!0)}function KT(){return this.parseWithFallback(this.Rule,WT)}function JT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function eF(){if(this.tokenType===Xk)return JT.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,JT);return this.tokenType===Xk&&this.next(),e}const tF="Block",nF="block",rF={children:[["Atrule","Rule","Declaration"]]};function iF(e){const t=e?eF:KT,n=this.tokenStart;let r=this.createList();this.eat(Wk);e:for(;!this.eof;)switch(this.tokenType){case Kk:break e;case zk:case Jk:this.next();break;case Bk:r.push(this.parseWithFallback(this.Atrule.bind(this,e),WT));break;default:e&&this.isDelim(GT)?r.push(KT.call(this)):r.push(t.call(this))}return this.eof||this.eat(Kk),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function oF(e){this.token(Wk,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(Xk,";")})),this.token(Kk,"}")}const sF="Brackets",aF={children:[[]]};function lF(e,t){const n=this.tokenStart;let r=null;return this.eat(Hk),r=e.call(this,t),this.eof||this.eat(Yk),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function uF(e){this.token(Qk,"["),this.children(e),this.token(Qk,"]")}const cF="CDC",hF=[];function dF(){const e=this.tokenStart;return this.eat(jk),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function pF(){this.token(jk,"--\x3e")}const fF="CDO",mF=[];function gF(){const e=this.tokenStart;return this.eat(Uk),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function OF(){this.token(Uk,"\x3c!--")}const DF=46,bF="ClassSelector",yF={name:String};function vF(){return this.eatDelim(DF),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(_k)}}function AF(e){this.token(Qk,"."),this.token(_k,e.name)}const EF=43,CF=47,kF=62,SF=126,xF="Combinator",wF={name:String};function TF(){const e=this.tokenStart;let t;switch(this.tokenType){case zk:t=" ";break;case Qk:switch(this.charCodeAt(this.tokenStart)){case kF:case EF:case SF:this.next();break;case CF:this.next(),this.eatIdent("deep"),this.eatDelim(CF);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function FF(e){this.tokenize(e.name)}const _F=42,PF=47,BF="Comment",RF={value:String};function NF(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Jk),t-e+2>=2&&this.charCodeAt(t-2)===_F&&this.charCodeAt(t-1)===PF&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function IF(e){this.token(Jk,"/*"+e.value+"*/")}const QF=33,MF=35,LF=36,$F=38,zF=42,UF=43,jF=47;function qF(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function XF(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function ZF(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==Xk&&!1===this.isDelim(QF)&&!1===this.isBalanceEdge(e)&&this.error(),t}const HF="Declaration",YF="declaration",VF={important:[Boolean,String],property:String,value:["Value","Raw"]};function GF(){const e=this.tokenStart,t=this.tokenIndex,n=KF.call(this),r=kx(n),i=r?this.parseCustomProperty:this.parseValue,o=r?XF:qF;let s,a=!1;this.skipSC(),this.eat(qk);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(ZF,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===zk){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(QF)&&(a=JF.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==Xk&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function WF(e){this.token(_k,e.property),this.token(qk,":"),this.node(e.value),e.important&&(this.token(Qk,"!"),this.token(_k,!0===e.important?"important":e.important))}function KF(){const e=this.tokenStart;if(this.tokenType===Qk)switch(this.charCodeAt(this.tokenStart)){case zF:case LF:case UF:case MF:case $F:this.next();break;case jF:this.next(),this.isDelim(jF)&&this.next()}return this.tokenType===Rk?this.eat(Rk):this.eat(_k),this.substrToCursor(e)}function JF(){this.eat(Qk),this.skipSC();const e=this.consume(_k);return"important"===e||e}const e_=38;function t_(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const n_="DeclarationList",r_={children:[["Declaration","Atrule","Rule"]]};function i_(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case zk:case Jk:case Xk:this.next();break;case Bk:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),t_));break;default:this.isDelim(e_)?e.push(this.parseWithFallback(this.Rule,t_)):e.push(this.parseWithFallback(this.Declaration,t_))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function o_(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Xk,";")}))}const s_="Dimension",a_={value:String,unit:String};function l_(){const e=this.tokenStart,t=this.consumeNumber($k);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function u_(e){this.token($k,e.value+e.unit)}const c_="Function",h_="function",d_={name:String,children:[[]]};function p_(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(Gk),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function f_(e){this.token(Pk,e.name+"("),this.children(e),this.token(Gk,")")}const m_="XXX",g_="Hash",O_={value:String};function D_(){const e=this.tokenStart;return this.eat(Rk),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function b_(e){this.token(Rk,"#"+e.value)}const y_="Identifier",v_={name:String};function A_(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(_k)}}function E_(e){this.token(_k,e.name)}const C_="IdSelector",k_={name:String};function S_(){const e=this.tokenStart;return this.eat(Rk),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function x_(e){this.token(Qk,"#"+e.name)}const w_="MediaFeature",T_={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function F_(){const e=this.tokenStart;let t,n=null;if(this.eat(Vk),this.skipSC(),t=this.consume(_k),this.skipSC(),this.tokenType!==Gk){switch(this.eat(qk),this.skipSC(),this.tokenType){case Mk:n=this.lookupNonWSType(1)===Qk?this.Ratio():this.Number();break;case $k:n=this.Dimension();break;case _k:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(Gk),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function __(e){this.token(Vk,"("),this.token(_k,e.name),null!==e.value&&(this.token(qk,":"),this.node(e.value)),this.token(Gk,")")}const P_="MediaQuery",B_={children:[["Identifier","MediaFeature","WhiteSpace"]]};function R_(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Jk:case zk:this.next();continue;case _k:t=this.Identifier();break;case Vk:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function N_(e){this.children(e)}const I_="MediaQueryList",Q_={children:[["MediaQuery"]]};function M_(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Zk);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function L_(e){this.children(e,(()=>this.token(Zk,",")))}const $_=38,z_="NestingSelector",U_={};function j_(){const e=this.tokenStart;return this.eatDelim($_),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function q_(){this.token(Qk,"&")}const X_="Nth",Z_={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function H_(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}}function Y_(e){this.node(e.nth),null!==e.selector&&(this.token(_k,"of"),this.node(e.selector))}const V_="Number",G_={value:String};function W_(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Mk)}}function K_(e){this.token(Mk,e.value)}const J_="Operator",eP={value:String};function tP(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function nP(e){this.tokenize(e.value)}const rP="Parentheses",iP={children:[[]]};function oP(e,t){const n=this.tokenStart;let r=null;return this.eat(Vk),r=e.call(this,t),this.eof||this.eat(Gk),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function sP(e){this.token(Vk,"("),this.children(e),this.token(Gk,")")}const aP="Percentage",lP={value:String};function uP(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Lk)}}function cP(e){this.token(Lk,e.value+"%")}const hP="PseudoClassSelector",dP="function",pP={name:String,children:[["Raw"],null]};function fP(){const e=this.tokenStart;let t,n,r=null;return this.eat(qk),this.tokenType===Pk?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(Gk)):t=this.consume(_k),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function mP(e){this.token(qk,":"),null===e.children?this.token(_k,e.name):(this.token(Pk,e.name+"("),this.children(e),this.token(Gk,")"))}const gP="PseudoElementSelector",OP="function",DP={name:String,children:[["Raw"],null]};function bP(){const e=this.tokenStart;let t,n,r=null;return this.eat(qk),this.eat(qk),this.tokenType===Pk?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(Gk)):t=this.consume(_k),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function yP(e){this.token(qk,":"),this.token(qk,":"),null===e.children?this.token(_k,e.name):(this.token(Pk,e.name+"("),this.children(e),this.token(Gk,")"))}const vP=47,AP=46;function EP(){this.skipSC();const e=this.consume(Mk);for(let t=0;t0&&this.lookupType(-1)===zk?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const TP="Raw",FP={value:String};function _P(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?wP.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function PP(e){this.tokenize(e.value)}function BP(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function RP(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Wk&&this.error(),e}const NP="Rule",IP="rule",QP={prelude:["SelectorList","Raw"],block:["Block"]};function MP(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(RP,BP):BP.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function LP(e){this.node(e.prelude),this.node(e.block)}const $P="Selector",zP={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function UP(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function jP(e){this.children(e)}const qP="SelectorList",XP="selector",ZP={children:[["Selector","Raw"]]};function HP(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===Zk);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function YP(e){this.children(e,(()=>this.token(Zk,",")))}const VP=92,GP=34,WP=39;function KP(e){const t=e.length,n=e.charCodeAt(0),r=n===GP||n===WP?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(n===VP){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),uS(VP,n)){const t=s-1,n=AS(e,t);s=n-1,o+=SS(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const JP="String",eB={value:String};function tB(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:KP(this.consume(Nk))}}function nB(e){this.token(Nk,function(e,t){const n=t?"'":'"',r=t?WP:GP;let i="",o=!1;for(let s=0;s6&&this.error("Too many hex digits",r)}return this.next(),n}function vB(e){let t=0;for(;this.isDelim(bB);)++t>e&&this.error("Too many question marks"),this.next()}function AB(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===OB?"Plus sign":"Hyphen minus")+" is expected")}function EB(){let e=0;switch(this.tokenType){case Mk:if(e=yB.call(this,1,!0),this.isDelim(bB)){vB.call(this,6-e);break}if(this.tokenType===$k||this.tokenType===Mk){AB.call(this,DB),yB.call(this,1,!1);break}break;case $k:e=yB.call(this,1,!0),e>0&&vB.call(this,6-e);break;default:if(this.eatDelim(OB),this.tokenType===_k){e=yB.call(this,0,!0),e>0&&vB.call(this,6-e);break}if(this.isDelim(bB)){this.next(),vB.call(this,5);break}this.error("Hex digit or question mark is expected")}}const CB="UnicodeRange",kB={value:String};function SB(){const e=this.tokenStart;return this.eatIdent("u"),EB.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function xB(e){this.tokenize(e.value)}const wB=32,TB=92,FB=34,_B=39,PB=40,BB=41;const RB="Url",NB={value:String};function IB(){const e=this.tokenStart;let t;switch(this.tokenType){case Ik:t=function(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===BB?t-2:t-1,i="";for(;n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"